/* ============================================================
   THEME VARIABLES — light | dark | neo | paper
   ============================================================ */

/* --- 1. LIGHT (default) --- */
:root,
[data-theme="light"] {
    --bg:            #f0f2f5;
    --surface:       #ffffff;
    --surface-2:     #f8fafc;
    --border:        #e2e8f0;
    --text:          #0f172a;
    --text-muted:    #64748b;
    --text-on-color: #ffffff;

    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-faint: rgba(99,102,241,.1);

    --success:       #22c55e;
    --success-dark:  #16a34a;
    --success-faint: rgba(34,197,94,.12);

    --warning:       #f59e0b;
    --warning-dark:  #d97706;
    --warning-faint: rgba(245,158,11,.12);

    --danger:        #ef4444;
    --danger-dark:   #dc2626;
    --danger-faint:  rgba(239,68,68,.1);

    --sky:           #0ea5e9;
    --sky-faint:     rgba(14,165,233,.1);
    --orange:        #f97316;
    --orange-faint:  rgba(249,115,22,.1);
    --green:         #10b981;
    --green-faint:   rgba(16,185,129,.1);

    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --radius:     14px;
    --radius-sm:  8px;
    --transition: all .2s ease;
    --body-font:  'Inter', -apple-system, sans-serif;
    --timer-font: inherit;
}

/* --- 2. DARK --- */
[data-theme="dark"] {
    --bg:            #0b0f19;
    --surface:       #131929;
    --surface-2:     #1a2235;
    --border:        #263145;
    --text:          #e8edf5;
    --text-muted:    #8b9ab5;
    --text-on-color: #ffffff;

    --primary:       #818cf8;
    --primary-dark:  #6366f1;
    --primary-faint: rgba(129,140,248,.12);

    --success:       #4ade80;
    --success-dark:  #22c55e;
    --success-faint: rgba(74,222,128,.12);

    --warning:       #fbbf24;
    --warning-dark:  #f59e0b;
    --warning-faint: rgba(251,191,36,.12);

    --danger:        #f87171;
    --danger-dark:   #ef4444;
    --danger-faint:  rgba(248,113,113,.1);

    --sky:           #38bdf8;
    --sky-faint:     rgba(56,189,248,.1);
    --orange:        #fb923c;
    --orange-faint:  rgba(251,146,60,.1);
    --green:         #34d399;
    --green-faint:   rgba(52,211,153,.1);

    --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
    --shadow-md:  0 4px 12px rgba(0,0,0,.4);
    --shadow-lg:  0 12px 24px rgba(0,0,0,.5);
    --radius:     14px;
    --radius-sm:  8px;
    --transition: all .2s ease;
    --body-font:  'Inter', -apple-system, sans-serif;
    --timer-font: inherit;
}

/* --- 3. NEOMORPHISM --- */
[data-theme="neo"] {
    --bg:            #e0e5ec;
    --surface:       #e0e5ec;
    --surface-2:     #d6dbe4;
    --border:        transparent;
    --text:          #2d3748;
    --text-muted:    #8a9bb5;
    --text-on-color: #ffffff;

    --primary:       #5e72e4;
    --primary-dark:  #4a5ec7;
    --primary-faint: rgba(94,114,228,.12);

    --success:       #2dce89;
    --success-dark:  #21b674;
    --success-faint: rgba(45,206,137,.12);

    --warning:       #fb6340;
    --warning-dark:  #e54e26;
    --warning-faint: rgba(251,99,64,.12);

    --danger:        #f5365c;
    --danger-dark:   #d42347;
    --danger-faint:  rgba(245,54,92,.1);

    --sky:           #0284c7;
    --sky-faint:     rgba(2,132,199,.15);
    --orange:        #fd7e14;
    --orange-faint:  rgba(253,126,20,.12);
    --green:         #059669;
    --green-faint:   rgba(5,150,105,.15);

    --shadow-sm:  6px 6px 14px #b8bec7, -6px -6px 14px #ffffff;
    --shadow-md:  8px 8px 18px #b0b8c2, -8px -8px 18px #ffffff;
    --shadow-lg:  12px 12px 24px #a8b0bb, -12px -12px 24px #ffffff;
    --radius:     16px;
    --radius-sm:  12px;
    --transition: all .2s ease;
    --body-font:  'Inter', sans-serif;
    --timer-font: inherit;
}

/* --- 4. PAPER (minimalista) --- */
[data-theme="paper"] {
    --bg:            #faf9f7;
    --surface:       #ffffff;
    --surface-2:     #f5f4f1;
    --border:        #d4cfc8;
    --text:          #1a1917;
    --text-muted:    #7c756d;
    --text-on-color: #ffffff;

    --primary:       #1a1917;
    --primary-dark:  #000000;
    --primary-faint: rgba(26,25,23,.07);

    --success:       #2d6a4f;
    --success-dark:  #1b4332;
    --success-faint: rgba(45,106,79,.1);

    --warning:       #9b7a00;
    --warning-dark:  #7a6000;
    --warning-faint: rgba(155,122,0,.1);

    --danger:        #9b2226;
    --danger-dark:   #7a1a1d;
    --danger-faint:  rgba(155,34,38,.08);

    --sky:           #023e8a;
    --sky-faint:     rgba(2,62,138,.08);
    --orange:        #9b4f00;
    --orange-faint:  rgba(155,79,0,.08);
    --green:         #2d6a4f;
    --green-faint:   rgba(45,106,79,.1);

    --shadow-sm:  none;
    --shadow-md:  none;
    --shadow-lg:  0 4px 12px rgba(0,0,0,.08);
    --radius:     4px;
    --radius-sm:  2px;
    --transition: all .2s ease;
    --body-font:  'Georgia', 'Times New Roman', serif;
    --timer-font: 'Georgia', serif;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background .35s, color .35s;
    font-size: 15px;
    line-height: 1.6;
}

/* NEO: eltavolitja a kartya border-t */
[data-theme="neo"] .card { border: none; }
[data-theme="neo"] .card:hover { transform: translateY(-1px); }

/* NEO: Javított olvashatóság a jelvényeknél */
[data-theme="neo"] .section-badge {
    box-shadow: 2px 2px 5px #b8bec7, -2px -2px 5px #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.4);
}

/* NEO: benyomott input */
[data-theme="neo"] input[type="text"],
[data-theme="neo"] input[type="number"],
[data-theme="neo"] input[type="email"],
[data-theme="neo"] textarea {
    box-shadow: inset 3px 3px 7px #b8bec7, inset -3px -3px 7px #ffffff;
    background: var(--bg);
    border: none;
}
[data-theme="neo"] input:focus,
[data-theme="neo"] textarea:focus {
    box-shadow: inset 2px 2px 5px #b8bec7, inset -2px -2px 5px #ffffff,
                0 0 0 2px var(--primary);
}
[data-theme="neo"] button {
    box-shadow: 4px 4px 8px #b8bec7, -4px -4px 8px #ffffff;
}
[data-theme="neo"] button:active {
    box-shadow: inset 3px 3px 7px #b8bec7, inset -3px -3px 7px #ffffff;
    transform: translateY(1px);
}

/* PAPER: senki sem hover-arnyek */
[data-theme="paper"] .card:hover { box-shadow: none; }
[data-theme="paper"] #timer { font-family: 'Georgia', serif; }
[data-theme="paper"] .app-header h1 { font-family: 'Georgia', serif; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.container {
    width: 100%;
    max-width: 780px;
}

/* ============================================================
   APP HEADER
   ============================================================ */
.app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.app-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.app-subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.card-body {
    padding: 20px;
}

/* ============================================================
   COLLAPSIBLE (details/summary)
   ============================================================ */
.collapsible > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.collapsible > summary::-webkit-details-marker { display: none; }

.collapsible-header { transition: background .15s; }
.collapsible-header:hover { background: var(--primary-faint); }

.collapsible .chevron {
    color: var(--text-muted);
    transition: transform .25s ease;
    flex-shrink: 0;
}

.collapsible[open] .chevron { transform: rotate(180deg); }

/* ============================================================
   SECTION BADGES
   ============================================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

[data-theme="paper"] .section-badge { border-radius: 0; border: 1px solid var(--border); }

.badge-purple  { background: var(--primary-faint); color: var(--primary); }
.badge-sky     { background: var(--sky-faint);     color: var(--sky); }
.badge-green   { background: var(--green-faint);   color: var(--green); }
.badge-orange  { background: var(--orange-faint);  color: var(--orange); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }

label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-faint);
}

textarea {
    resize: vertical;
    min-height: 68px;
    line-height: 1.5;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================================
   LOGO FELTÖLTÉS
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.logo-upload-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 22px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .82rem;
    color: var(--text-muted);
    transition: border-color .2s, background .2s, color .2s;
    text-align: center;
    min-width: 130px;
}

.logo-upload-label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-faint);
}

.logo-upload-label small {
    font-size: .72rem;
    opacity: .7;
}

.logo-preview-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo-preview-wrap img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 6px;
}

.logo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--danger, #ef4444);
    color: #fff;
    border: 2px solid var(--surface);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
}

.logo-remove-btn:active { transform: scale(.9); }

/* ============================================================
   BUTTONS
   ============================================================ */
button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

button:active { transform: scale(.97); }

.btn-primary  { background: var(--primary);  color: var(--text-on-color); }
.btn-primary:hover  { background: var(--primary-dark); }

.btn-success  { background: var(--success);  color: var(--text-on-color); }
.btn-success:hover  { background: var(--success-dark); }

.btn-warning  { background: var(--warning);  color: var(--text-on-color); }
.btn-warning:hover  { background: var(--warning-dark); }

.btn-danger   { background: var(--danger);   color: var(--text-on-color); }
.btn-danger:hover   { background: var(--danger-dark); }

.btn-info     { background: var(--sky);      color: var(--text-on-color); }
.btn-info:hover     { background: #0284c7; }

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-muted); color: var(--text); }

.btn-danger-ghost {
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--danger);
}
.btn-danger-ghost:hover { background: var(--danger-faint); color: var(--danger); }

.btn-sm { padding: 6px 12px; font-size: .82rem; }

button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   BUTTON GROUPS
   ============================================================ */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group--stretch > button { flex: 1; justify-content: center; }

/* ============================================================
   TIMER
   ============================================================ */
.timer-card {
    text-align: center;
    padding: 36px 24px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    position: relative;
    overflow: visible;
}

.timer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--primary-faint) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="paper"] .timer-card::before { display: none; }

#timer {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
    font-family: var(--timer-font, inherit);
}

#timer-status {
    font-size: .82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 28px;
    font-weight: 500;
    position: relative;
    display: block;
}

/* ============================================================
   LOG LIST
   ============================================================ */
#log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.log-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: box-shadow .15s;
}

.log-item:hover { box-shadow: var(--shadow-sm); }

.log-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.log-item-info { flex: 1; min-width: 0; }

.log-item-project {
    font-weight: 600;
    font-size: .95rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-item-meta {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.log-item-cost {
    font-size: .9rem;
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
}

.log-item-note {
    margin-top: 8px;
    font-size: .82rem;
    color: var(--text-muted);
    background: var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.5;
}

[data-theme="neo"] .log-item-note { background: rgba(0,0,0,.05); }

.log-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.log-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.log-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.log-edit-time {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.log-edit-time input { width: 72px; text-align: center; }

.log-edit-time span {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.log-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg { opacity: .35; }
.empty-state p { font-size: .9rem; }

/* ============================================================
   SUMMARY
   ============================================================ */
.summary-project-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.summary-project-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}

.summary-row:last-child { border-bottom: none; }
.summary-row-label { color: var(--text-muted); }
.summary-row-value { font-weight: 600; color: var(--text); }
.summary-row-value.highlight { color: var(--success); }

.summary-total {
    background: linear-gradient(135deg, var(--primary-faint), var(--success-faint));
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-total-label {
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary);
}

.summary-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.summary-pdf-btn { margin-top: 10px; }

.summary-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.summary-actions > button { flex: 1; justify-content: center; }

/* ============================================================
   FLOATING THEME CONTROLS
   ============================================================ */
.theme-controls {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Stilusvaltok */
.style-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.style-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 175px;

    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.style-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.style-menu-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    padding: 2px 8px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.style-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background .15s;
    font-family: var(--body-font);
    box-shadow: none !important;
}

.style-option:hover  { background: var(--primary-faint); }
.style-option:active { transform: none; }
.style-option.active { background: var(--primary-faint); color: var(--primary); font-weight: 700; }

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,.1);
    display: inline-block;
}

/* Gombsor: paletta + sotetviltogato */
.theme-btn-row {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-btn:hover {
    color: var(--text);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.06);
}

.theme-btn:active { transform: scale(.92) !important; }

/* Neo arnyek a lebeg gombokon */
[data-theme="neo"] .theme-btn {
    box-shadow: 4px 4px 8px #b8bec7, -4px -4px 8px #ffffff;
    border: none;
}
[data-theme="neo"] .theme-btn:hover {
    box-shadow: 6px 6px 12px #b0b8c2, -6px -6px 12px #ffffff;
}
[data-theme="neo"] .style-menu {
    box-shadow: 8px 8px 18px #b0b8c2, -8px -8px 18px #ffffff;
}

/* Paper - szimplabb gomb */
[data-theme="paper"] .theme-btn {
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border);
}

/* Hold / Nap ikon lathatosaga */
[data-theme="light"]  .icon-sun  { display: none; }
[data-theme="dark"]   .icon-moon { display: none; }
[data-theme="neo"]    .icon-sun  { display: none; }
[data-theme="paper"]  .icon-sun  { display: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .page-wrapper { padding: 20px 12px 48px; }
    #timer { font-size: 3.5rem; }
    .app-header h1 { font-size: 1.4rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .btn-group--stretch { flex-direction: column; }
    .log-edit-row { grid-template-columns: 1fr; }
    .theme-controls { bottom: 16px; right: 14px; }
    .summary-actions { flex-direction: column; }
}
