:root {
    color-scheme: dark;
    --bg: #08111f;
    --deep: #060c16;
    --panel: #111d30;
    --panel2: #18263c;
    --panel3: #1d2d46;
    --border: #2b3c57;
    --soft: #21314a;
    --text: #f1f6fc;
    --muted: #8ea3bd;
    --mint: #20d5b0;
    --cyan: #31c9e7;
    --amber: #f5b72d;
    --rose: #f0607d;
    --violet: #a47bf5;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 0 0, rgba(32,213,176,.07), transparent 28rem), var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted, .hint { color: var(--muted); }
.hint { margin: 7px 0 0; font-size: 11px; line-height: 1.5; }
.centered { text-align: center; }
.eyebrow {
    margin: 0 0 7px;
    color: var(--mint);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #04130f;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--cyan), var(--mint));
    box-shadow: 0 8px 25px rgba(32,213,176,.2);
    font-size: 24px;
    font-weight: 900;
}
.brand strong { font-size: 22px; letter-spacing: -.045em; }
.brand em { color: var(--mint); font-style: normal; }

.button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .day:focus-visible, .nav-button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
.button.primary { color: #04150f; background: var(--mint); box-shadow: 0 7px 22px rgba(32,213,176,.15); }
.button.primary:hover { background: #3ee6c2; }
.button.secondary { border-color: var(--border); background: var(--panel2); }
.button.outline { color: var(--mint); border-color: var(--mint); background: rgba(32,213,176,.05); }
.button.ghost { color: var(--muted); }
.button.danger { color: #ff9db0; border-color: rgba(240,96,125,.4); background: rgba(240,96,125,.1); }
.button.wide { width: 100%; }
.button.compact { min-height: 33px; padding: 7px 11px; }
.button.icon { width: 39px; padding: 0; }

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
    align-items: center;
    gap: 28px;
    padding: 0 22px;
    border-bottom: 1px solid var(--soft);
    background: rgba(6,12,22,.9);
    backdrop-filter: blur(18px);
}
.topbar nav { display: flex; gap: 4px; }
.nav-button {
    padding: 10px 14px;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
.nav-button.active { color: var(--text); background: var(--panel3); }
.top-actions { display: flex; align-items: center; gap: 7px; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu > div {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    width: 245px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 20px 55px rgba(0,0,0,.45);
}
.menu a, .menu div button {
    display: block;
    width: 100%;
    padding: 10px 11px;
    color: #bdcadd;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
}
.menu a:hover, .menu div button:hover { color: var(--text); background: var(--panel3); }

body > #app > main {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 19px 22px 45px;
}
.import-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    width: 100%;
    min-height: 64px;
    align-items: center;
    gap: 13px;
    padding: 10px 12px 10px 17px;
    color: var(--text);
    border: 1px dashed #34506d;
    border-radius: 11px;
    background: rgba(24,38,60,.72);
    cursor: pointer;
    text-align: left;
}
.import-strip:hover { border-color: var(--mint); }
.import-strip > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.import-strip small { color: var(--muted); font-size: 11px; }
.import-strip > b { padding: 9px 13px; color: #04150f; border-radius: 8px; background: var(--mint); font-size: 11px; }
.import-symbol {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--mint);
    border-radius: 9px;
    background: rgba(32,213,176,.1);
    font-size: 21px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin: 15px 0;
}
.metrics article {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: linear-gradient(140deg, rgba(29,45,70,.95), rgba(17,29,48,.95));
}
.metrics i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    font-size: 20px;
    font-style: normal;
}
.metrics i.teal { color: var(--mint); background: rgba(32,213,176,.12); }
.metrics i.amber { color: var(--amber); background: rgba(245,183,45,.13); }
.metrics i.violet { color: var(--violet); background: rgba(164,123,245,.13); }
.metrics i.blue { color: var(--cyan); background: rgba(49,201,231,.12); }
.metrics i.rose { color: var(--rose); background: rgba(240,96,125,.12); }
.metrics div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.metrics strong { overflow: hidden; font-size: 21px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.metrics span { color: var(--muted); font-size: 11px; }

.incomplete-section {
    margin: 0 0 15px;
    padding: 18px 20px;
    border: 1px solid rgba(245,183,45,.35);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(245,183,45,.08), rgba(17,29,48,.94) 42%),
        var(--panel);
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}
.incomplete-section > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}
.incomplete-section h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.incomplete-section header p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.status-pill {
    padding: 6px 9px;
    color: var(--amber);
    border: 1px solid rgba(245,183,45,.32);
    border-radius: 999px;
    background: rgba(245,183,45,.09);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}
.incomplete-list { display: grid; gap: 9px; }
.incomplete-card {
    display: block;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(8,17,31,.72);
}
.incomplete-card.paused { border-color: rgba(245,183,45,.34); }
.incomplete-card-main { min-width: 0; }
.incomplete-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.incomplete-card-heading strong { font-size: 13px; }
.incomplete-badge {
    padding: 4px 7px;
    color: var(--amber);
    border-radius: 999px;
    background: rgba(245,183,45,.11);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}
.incomplete-badge.working { color: var(--mint); background: rgba(32,213,176,.1); }
.incomplete-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
}
.incomplete-times span { display: inline-flex; align-items: center; gap: 5px; }
.incomplete-times b { color: #c7d5e5; font-weight: 750; }
.incomplete-note { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.incomplete-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--soft);
}
.incomplete-actions .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.incomplete-actions .finish-day { min-width: 105px; }

.panel {
    padding: 21px 23px 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(17,29,48,.92);
    box-shadow: 0 15px 50px rgba(0,0,0,.14);
}
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--soft);
}
.panel-head h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.panel-head p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.year-controls { display: flex; align-items: center; gap: 7px; }
.year-controls > button:not(.button) {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    color: #b9c8db;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel2);
    cursor: pointer;
    font-size: 21px;
}
.year-controls > strong { min-width: 45px; text-align: center; }
.legend { display: flex; min-height: 42px; align-items: center; justify-content: flex-end; gap: 5px; color: var(--muted); font-size: 10px; }
.legend i { width: 13px; height: 13px; border: 1px solid var(--border); border-radius: 3px; }
.legend span:last-child { margin-left: 12px; }
.legend b {
    display: inline-grid;
    width: 15px;
    height: 15px;
    margin-right: 3px;
    place-items: center;
    color: #031713;
    border-radius: 3px;
    background: var(--mint);
    font-size: 8px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    transition: opacity .2s;
}
.calendar.loading { opacity: .45; pointer-events: none; }
.month { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #0c1727; }
.month > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.month h2 { margin: 0; color: #dce8f6; font-size: 13px; }
.month header span { color: var(--muted); font-size: 9px; font-weight: 750; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays { margin-bottom: 5px; }
.weekdays span { color: #6c83a0; font-size: 8px; font-weight: 750; text-align: center; }
.weekdays span:nth-last-child(-n+2) { color: #9a6578; }
.days > i { aspect-ratio: 1; }
.day {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    color: #8096b0;
    border: 1px solid var(--soft);
    border-radius: 5px;
    background: #152237;
    cursor: pointer;
    font-size: 8px;
    font-weight: 750;
    transition: .12s ease;
}
.day:hover { z-index: 2; border-color: var(--cyan); filter: brightness(1.18); transform: scale(1.08); }
.day > span { position: absolute; top: 3px; left: 4px; }
.day small { position: absolute; right: 3px; bottom: 2px; font-size: 7px; }
.day b { position: absolute; top: 2px; right: 2px; display: grid; width: 10px; height: 10px; place-items: center; color: #031713; border-radius: 3px; background: rgba(255,255,255,.82); font-size: 6px; }
.day.today { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 10px rgba(49,201,231,.16); }
.day.incomplete {
    border-color: var(--amber) !important;
    box-shadow: inset 0 0 0 1px rgba(245,183,45,.35);
}
.l0 { background: #152237 !important; }
.l1 { color: #d8fff4 !important; border-color: #176b60 !important; background: #105d54 !important; }
.l2 { color: #e4fff7 !important; border-color: #138878 !important; background: #087c6d !important; }
.l3 { color: #041b16 !important; border-color: #28c3a4 !important; background: #24b598 !important; }
.l4 { color: #031713 !important; border-color: #4ae8c7 !important; background: #2ed7b3 !important; }

.dialog {
    width: min(590px, calc(100vw - 30px));
    max-height: calc(100vh - 34px);
    padding: 0;
    overflow: auto;
    color: var(--text);
    border: 1px solid #344866;
    border-radius: 15px;
    background: #101c2e;
    box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
.dialog.wide { width: min(900px, calc(100vw - 30px)); }
.dialog::backdrop { background: rgba(3,8,15,.8); backdrop-filter: blur(5px); }
.dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 23px 16px; border-bottom: 1px solid var(--soft); }
.dialog header h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.dialog header > button {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 23px;
}
.dialog header > button:hover { color: var(--text); background: var(--panel2); }
.entry-body { display: grid; grid-template-columns: 1.35fr .9fr; }
.form-side, .calc-side { padding: 23px; }
.calc-side { border-left: 1px solid var(--soft); background: rgba(6,15,27,.48); }
label { display: flex; flex-direction: column; gap: 6px; color: #b5c5d8; font-size: 11px; font-weight: 750; }
input, select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: 0;
    background: #0b1728;
    font-size: 13px;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(49,201,231,.1); }
input[type="date"], input[type="time"] { color-scheme: dark; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 15px 0; }
.entry-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 11px;
    padding: 9px 10px;
    color: var(--muted);
    border: 1px solid var(--soft);
    border-radius: 8px;
    background: rgba(8,17,31,.5);
    font-size: 10px;
}
.entry-status strong { color: var(--amber); }
.entry-status.complete strong { color: var(--mint); }
.unit { display: flex; }
.unit input { border-radius: 8px 0 0 8px; }
.unit span { display: flex; align-items: center; padding: 0 11px; color: var(--muted); border: 1px solid var(--border); border-left: 0; border-radius: 0 8px 8px 0; background: var(--panel2); font-size: 11px; }
.calc-row, .calc-total { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: #b6c5d7; border-bottom: 1px solid var(--soft); font-size: 12px; }
.calc-row strong { color: var(--text); }
.calc-row.pause strong { color: var(--amber); }
.calc-total { border: 0; color: var(--text); font-size: 14px; }
.calc-total strong { color: var(--mint); font-size: 20px; }
.suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    padding: 17px;
    border: 1px solid rgba(32,213,176,.25);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(32,213,176,.1), rgba(49,201,231,.04));
}
.suggestion span { color: #b6c5d7; font-size: 10px; }
.suggestion strong { margin: 3px 0; color: var(--mint); font-size: 32px; letter-spacing: -.04em; }
.suggestion small { color: var(--muted); font-size: 9px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.chips button { padding: 7px; color: #b7c6d9; border: 1px solid var(--border); border-radius: 7px; background: var(--panel2); cursor: pointer; font-size: 10px; }
.chips button.recommended { color: #042017; border-color: var(--mint); background: var(--mint); font-weight: 850; }
.odoo-info { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-top: 14px; padding: 11px; border: 1px solid rgba(49,201,231,.2); border-radius: 8px; background: rgba(49,201,231,.05); }
.odoo-info span, .odoo-info small { color: var(--muted); font-size: 10px; }
.odoo-info strong { color: var(--cyan); }
.odoo-info small { grid-column: 1 / -1; }
.dialog-content { padding: 20px 23px; }
.dialog-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 14px 23px; border-top: 1px solid var(--soft); background: rgba(6,15,27,.4); }
.privacy-box { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(32,213,176,.23); border-radius: 9px; background: rgba(32,213,176,.06); }
.privacy-box strong { color: var(--mint); font-size: 12px; }
.privacy-box span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.privacy-box .button { margin-top: 7px; }
.drop-zone { align-items: center; margin-top: 14px; padding: 24px; color: var(--mint); border: 1px dashed #3b5371; border-radius: 10px; background: #0b1728; cursor: pointer; text-align: center; font-size: 27px; }
.drop-zone strong { color: var(--text); font-size: 12px; }
.drop-zone small { color: var(--muted); font-size: 10px; font-weight: 500; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-preview { display: grid; gap: 3px; margin-top: 13px; padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel2); }
.import-preview span, .import-preview small { color: var(--muted); font-size: 10px; }
.stack-form { display: grid; gap: 14px; }

.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--soft); }
.audit-row > i { display: grid; width: 28px; height: 28px; place-items: center; color: var(--mint); border-radius: 8px; background: rgba(32,213,176,.1); font-style: normal; }
.audit-row > div { display: flex; flex-direction: column; gap: 2px; }
.audit-row strong { font-size: 12px; }
.audit-row span, .audit-row time { color: var(--muted); font-size: 10px; }
.empty { padding: 45px; color: var(--muted); text-align: center; }
.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; width: min(350px, calc(100vw - 40px)); gap: 7px; pointer-events: none; }
.toast { padding: 12px 14px; opacity: 0; border: 1px solid rgba(32,213,176,.35); border-radius: 9px; background: #12302d; box-shadow: 0 18px 55px rgba(0,0,0,.4); font-size: 11px; font-weight: 750; transform: translateY(7px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(240,96,125,.4); background: #321d2a; }

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 25px;
    background: radial-gradient(circle at 18% 20%, rgba(49,201,231,.11), transparent 28rem), radial-gradient(circle at 80% 80%, rgba(32,213,176,.08), transparent 30rem), var(--deep);
}
.login-shell { display: grid; width: min(980px, 100%); grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #0b1728; box-shadow: 0 35px 110px rgba(0,0,0,.5); }
.login-visual { position: relative; display: flex; min-height: 560px; flex-direction: column; justify-content: center; padding: 55px; overflow: hidden; border-right: 1px solid var(--soft); background: linear-gradient(145deg, rgba(32,213,176,.08), transparent 55%), #091424; }
.login-visual .logo-mark { display: grid; width: 55px; height: 55px; margin-bottom: 32px; place-items: center; color: #04130f; border-radius: 17px; background: linear-gradient(145deg, var(--cyan), var(--mint)); font-size: 35px; font-weight: 900; }
.login-visual h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); letter-spacing: -.055em; line-height: 1; }
.login-visual h1 span { color: var(--mint); }
.login-visual > p:not(.eyebrow) { max-width: 440px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-visual ul { display: grid; gap: 9px; margin: 30px 0 0; padding: 0; color: #b6c5d8; list-style: none; font-size: 11px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 43px; background: var(--panel); }
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 { margin: 0 0 12px; font-size: 31px; letter-spacing: -.045em; }
.auth-card .intro { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-card.standalone { width: min(510px, 100%); min-height: 500px; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.4); }
.alert { margin-bottom: 16px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; line-height: 1.5; }
.alert.error { color: #ffc4cf; border-color: rgba(240,96,125,.35); background: rgba(240,96,125,.09); }
.alert.success { color: #bdf8e8; border-color: rgba(32,213,176,.35); background: rgba(32,213,176,.08); }
.technical-note { color: #6f849f; font-family: ui-monospace, monospace; font-size: 10px; overflow-wrap: anywhere; }

@media (max-width: 1200px) {
    .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .topbar { grid-template-columns: 1fr auto; gap: 12px; }
    .topbar nav { order: 3; grid-column: 1 / -1; margin: 0 -22px; padding: 0 22px 8px; border-top: 1px solid var(--soft); }
    .top-actions .button:not(.icon), .top-actions .menu { display: none; }
    .metrics, .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-body { grid-template-columns: 1fr; }
    .calc-side { border-top: 1px solid var(--soft); border-left: 0; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 350px; padding: 36px; border-right: 0; border-bottom: 1px solid var(--soft); }
    .login-visual ul { display: none; }
}
@media (max-width: 620px) {
    .topbar { padding: 0 13px; }
    .brand strong { font-size: 18px; }
    body > #app > main { padding: 13px 11px 32px; }
    .import-strip { grid-template-columns: auto 1fr; }
    .import-strip > b { display: none; }
    .metrics { grid-template-columns: 1fr 1fr; gap: 7px; }
    .metrics article { min-height: 76px; padding: 11px; }
    .metrics strong { font-size: 16px; }
    .metrics i { width: 31px; height: 31px; font-size: 16px; }
    .incomplete-section { padding: 15px 12px; }
    .incomplete-section > header { flex-direction: column; }
    .incomplete-actions { justify-content: stretch; }
    .incomplete-actions .button { flex: 1; }
    .panel { padding: 16px 12px; }
    .panel-head { flex-direction: column; }
    .year-controls { width: 100%; flex-wrap: wrap; }
    .calendar { grid-template-columns: 1fr; }
    .legend { justify-content: flex-start; overflow: auto; }
    .month { padding: 16px; }
    .time-grid { grid-template-columns: 1fr; }
    .dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }
    .dialog-actions { grid-template-columns: 1fr 1fr; }
    .dialog-actions > span { display: none; }
    .auth-page { padding: 11px; }
    .login-visual { min-height: 290px; padding: 28px 24px; }
    .login-visual h1 { font-size: 39px; }
    .auth-card { padding: 31px 23px; }
    .audit-row { grid-template-columns: auto 1fr; }
    .audit-row time { grid-column: 2; }
}
