:root{--cal-pending: #d4940a}.main:has(.leave-layout){overflow-x:clip}.leave-layout{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;align-items:start}.leave-layout>*{min-width:0}.leave-cal-pane{position:sticky;top:1.5rem;display:flex;flex-direction:column;gap:.75rem}.leave-agenda-pane{display:flex;flex-direction:column;gap:.75rem}.leave-fab{display:none}.leave-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;align-items:center}.leave-toolbar select{width:auto;min-height:44px}.leave-month-summary{font-size:.82rem;color:var(--muted);border-top:1px solid var(--border);padding-top:.6rem}.leave-month-summary b,.leave-month-summary .num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text);font-weight:700}.agenda-day-head{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;font-weight:700;font-size:.95rem;padding:.35rem 0}.agenda-day-head .agenda-counts{font-family:var(--font-mono);font-size:.78rem;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}.agenda-day-head .spacer{flex:1 1 auto}.agenda-day-head.is-selected{color:var(--accent-dark)}.agenda-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.5rem;row-gap:.15rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:.5rem .7rem;font-size:.85rem}.agenda-item+.agenda-item{margin-top:.4rem}.agenda-item.is-mine{background:var(--accent-soft)}.agenda-item .agenda-name{font-weight:700}.agenda-item .agenda-head{display:contents}.agenda-item .agenda-who,.agenda-item .agenda-badges{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem}.agenda-item .agenda-who{grid-column:1 / -1;grid-row:1}.agenda-item .agenda-who .small{font-size:.75rem}.agenda-item .agenda-meta{grid-column:1 / -1;grid-row:2;color:var(--muted);font-size:.75rem}.agenda-item .agenda-badges{grid-column:1;grid-row:3;align-self:center;justify-content:flex-start;gap:.25rem}.agenda-item .agenda-badges .badge{font-size:.68rem;padding:.05rem .4rem}.agenda-item .agenda-actions{grid-column:2;grid-row:3;justify-self:end;align-self:center;display:flex;flex-wrap:nowrap;gap:.3rem;margin-top:.2rem}.agenda-item .agenda-actions button{min-height:28px;padding:.1rem .65rem;font-size:.72rem;line-height:1.2}.leave-cal{display:flex;flex-direction:column;user-select:none;-webkit-user-select:none}.cal-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}.cal-title{margin:0;font-size:1.15rem;white-space:nowrap}.cal-title-month{color:var(--accent);font-weight:800}.cal-title-year{color:var(--muted);font-weight:500}.cal-nav{display:flex;align-items:center;gap:.25rem}.cal-nav button{min-height:44px;padding:.2rem .6rem;font-size:.85rem}.cal-nav .cal-arrow{width:44px;min-width:44px;padding:0;font-size:1.25rem;line-height:1}.cal-grid{transition:opacity .15s ease;touch-action:pan-y}.leave-cal.is-loading .cal-grid{opacity:.6}.cal-weekdays,.cal-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.cal-wd-head{text-align:center;font-size:.72rem;font-weight:600;color:var(--muted);padding:.2rem 0}.cal-wd-head.is-sun{color:var(--danger)}.cal-row{gap:2px;margin-top:2px;max-height:5rem;overflow:hidden}.cal-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;min-height:3.1rem;padding:.3rem 0 .25rem;cursor:pointer;border:1px solid transparent;border-radius:10px;color:var(--text);-webkit-tap-highlight-color:transparent}.cal-cell:hover{background:var(--sunken)}.cal-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.cal-cell.is-past{color:var(--muted)}.cal-cell.is-sun{color:var(--danger)}.cal-cell.is-outside{opacity:.6}.cal-cell.is-today{border-color:var(--accent)}.cal-cell.is-today .cal-num{font-weight:800}.cal-cell.is-selected{background:var(--accent-soft);border:2px solid var(--accent);padding:calc(.3rem - 1px) 0 calc(.25rem - 1px)}.cal-cell.is-selected .cal-num{font-weight:800;color:var(--accent-dark)}.cal-cell.is-selected.is-sun .cal-num{color:var(--danger)}.cal-wd{display:none;font-size:.66rem;line-height:1.1;color:var(--muted)}.cal-num{font-size:.95rem;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}.cal-mine{position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--accent)}.leave-cal{--cal-mine-c: #ff6a00;--cal-mine-soft: #fff1e6;--cal-mine-ink: #9a3d00}.cal-mine-btn{display:flex;align-items:center;gap:.45rem;width:100%;min-height:40px;margin-bottom:.35rem;padding:.3rem .7rem;border-radius:999px;font-size:.8rem;font-weight:600;text-align:left;border:1.5px solid var(--cal-mine-c);background:var(--cal-mine-soft);color:var(--cal-mine-ink);animation:cal-glow 1.6s ease-in-out infinite}.cal-mine-btn b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:.78rem;text-align:right}.cal-mine-btn-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--cal-mine-c);animation:cal-dot-pulse 1.6s ease-in-out infinite}@media(hover:hover){button.cal-mine-btn:hover:not(:disabled){border-color:var(--cal-mine-c);color:var(--cal-mine-ink);background:#ffe3cc}}.cal-cell.is-mine{border-color:var(--cal-mine-c);animation:cal-cell-glow 1.6s ease-in-out infinite}.cal-cell.is-mine .cal-num{color:var(--cal-mine-ink);font-weight:800}.cal-cell.is-mine .cal-mine{background:var(--cal-mine-c)}.cal-cell.is-mine.is-selected{border-color:var(--cal-mine-c);background:var(--cal-mine-soft)}@keyframes cal-glow{0%,to{box-shadow:0 0 #ff6a0000,0 0 4px #ff6a0059}50%{box-shadow:0 0 0 4px #ff6a0038,0 0 16px #ff6a00bf}}@keyframes cal-cell-glow{0%,to{box-shadow:0 0 2px #ff6a004d}50%{box-shadow:0 0 10px 1px #ff6a00b3}}@keyframes cal-dot-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.6}}.cal-stats{display:flex;align-items:baseline;justify-content:center;white-space:nowrap;width:100%;height:.8rem;overflow:visible;font-family:var(--font-mono);font-size:.6rem;line-height:.8rem;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.cal-stat i{font-style:normal;font-weight:400;color:var(--border-strong);margin:0}.cal-stat.pending{color:var(--muted)}.cal-stat.approved{color:var(--success)}.cal-stat.rejected{color:var(--danger)}.status-filter{display:flex;gap:.3rem;flex:1 1 auto;max-width:480px}.sf-chip{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:.25rem;min-height:34px;padding:.15rem .3rem;border-radius:999px;font-size:.72rem;font-weight:600;background:var(--surface);border:1px solid var(--border-strong);color:var(--muted);white-space:nowrap}.sf-chip b{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:700}.sf-chip.all{color:var(--text)}.sf-chip.pending{color:var(--muted)}.sf-chip.approved{color:var(--success)}.sf-chip.rejected{color:var(--danger)}.sf-chip.mine{color:var(--accent-dark)}.sf-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent)}.sf-chip.active{border-width:2px;padding:calc(.15rem - 1px) calc(.3rem - 1px)}.sf-chip.all.active{background:var(--accent);border-color:var(--accent);color:#fff}.sf-chip.pending.active{background:var(--sunken);border-color:var(--muted)}.sf-chip.approved.active{background:var(--success-bg);border-color:var(--success)}.sf-chip.rejected.active{background:var(--danger-bg);border-color:var(--danger)}.sf-chip.mine.active{background:var(--accent-soft);border-color:var(--accent)}.cal-handle{display:none}@media(max-width:768px){.leave-layout{grid-template-columns:1fr;gap:.75rem}.leave-cal-pane{position:relative;top:auto;z-index:30;background:var(--surface);border-bottom:1px solid var(--border);margin:0 -.75rem;padding:.35rem .75rem 0;gap:0}.leave-cal-pane.is-collapsed{position:sticky;top:var(--topbar-h, 56px)}.leave-agenda-pane{padding-bottom:72px}.agenda-group{scroll-margin-top:calc(var(--topbar-h, 56px) + 120px)}.leave-toolbar{flex-wrap:nowrap;gap:.4rem}.leave-toolbar select{min-height:44px;padding:.3rem .4rem;font-size:16px}.leave-month-summary,.agenda-day-head.hide-sm,.leave-toolbar select.hide-sm{display:none}.leave-fab{display:flex;align-items:center;justify-content:center;gap:.25rem;position:fixed;z-index:50;right:.75rem;bottom:calc(var(--nav-h, 58px) + env(safe-area-inset-bottom) + .75rem);min-height:40px;padding:.4rem .9rem;border:0;border-radius:999px;background:var(--accent);color:#fff;font-weight:600;font-size:.82rem;box-shadow:0 4px 14px #123e4640}.agenda-item{padding:.4rem .55rem;font-size:.72rem}.agenda-item+.agenda-item{margin-top:.3rem}.agenda-item .agenda-who .small,.agenda-item .agenda-meta{font-size:.64rem}.agenda-item .agenda-badges{gap:.2rem}.agenda-item .agenda-badges .badge{font-size:.6rem;padding:.05rem .35rem}.agenda-item .agenda-actions{margin-top:0}.agenda-item .agenda-actions button{min-height:26px;padding:.1rem .55rem;font-size:.66rem}.leave-fab:hover:not(:disabled){background:var(--accent-dark);color:#fff}.cal-title{font-size:1.05rem}.cal-cell{min-height:2.9rem;padding-top:.25rem}.cal-cell.is-selected{padding-top:calc(.25rem - 1px)}.cal-num{font-size:.9rem}.cal-row{transition:max-height .18s ease,opacity .18s ease,margin-top .18s ease;opacity:1}.leave-cal.is-collapsed .cal-row:not(.is-kept){max-height:0;opacity:0;margin-top:0;visibility:hidden;transition:max-height .18s ease,opacity .12s ease,margin-top .18s ease,visibility 0s linear .18s}.leave-cal.is-collapsed .cal-weekdays{display:none}.leave-cal.is-collapsed .cal-wd{display:block}.leave-cal.is-collapsed .cal-cell.is-sun .cal-wd{color:var(--danger)}.cal-handle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;min-height:44px;padding:.15rem 0 .2rem;margin-top:.1rem;border:0;border-radius:0;background:transparent;color:var(--muted);touch-action:none;-webkit-tap-highlight-color:transparent}.cal-handle:hover:not(:disabled){color:var(--accent-dark)}.cal-handle-bar{display:block;width:36px;height:4px;border-radius:999px;background:var(--border-strong)}.cal-chevron{display:block;margin-top:-1px}}@media(prefers-reduced-motion:reduce){.cal-mine-btn,.cal-mine-btn-dot,.cal-cell.is-mine{animation:none!important}.cal-mine-btn{box-shadow:0 0 10px #ff6a0099}.cal-cell.is-mine{box-shadow:0 0 6px #ff6a008c}.cal-grid,.cal-row,.leave-cal.is-collapsed .cal-row:not(.is-kept){transition:none!important}}.step-row{padding:.6rem 0;border-top:1px dashed var(--border)}.step-row:first-child{border-top:0}.step-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem .4rem;font-size:.9rem}.step-content{flex:1 1 auto}.step-results{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-top:.45rem}.step-result-btn{min-height:42px;padding:.3rem .35rem;font-size:.78rem;line-height:1.2;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer}.step-result-btn:hover:not(:disabled){border-color:var(--border-strong)}.step-result-btn.sr-correct.active{background:var(--accent);border-color:var(--accent);color:#fff}.step-result-btn.sr-incomplete.active{background:var(--warn-bg);border-color:var(--warn);color:var(--warn)}.step-result-btn.sr-incorrect.active{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}.step-result-btn.sr-not_applicable.active{background:var(--sunken);border-color:var(--border-strong);color:var(--muted)}.step-note-toggle{margin-top:.4rem;padding:.2rem .5rem;min-height:0;font-size:.78rem;color:var(--muted);border:1px dashed var(--border);background:transparent}.step-note{margin-top:.4rem;width:100%}.score-bar{display:none}.proc-compare-list{list-style:none;margin:0;padding:0}.proc-compare-list>li{padding:.55rem 0;border-top:1px dashed var(--border)}.proc-compare-list>li:first-child{border-top:0}.proc-compare-name{font-weight:600;font-size:.87rem;margin-bottom:.3rem}.proc-compare-row{display:flex;align-items:center;gap:.5rem;margin-top:.25rem}.proc-compare-row .bar{flex:1 1 auto}.proc-compare-val{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:.82rem;min-width:3.6rem;text-align:right}@media(max-width:768px){.step-results{grid-template-columns:repeat(2,1fr)}.score-bar{display:flex;align-items:center;gap:.6rem;position:fixed;left:0;right:0;bottom:calc(54px + env(safe-area-inset-bottom));z-index:55;background:var(--surface);border-top:1px solid var(--border);padding:.5rem .75rem}.score-bar-count{flex:1 1 auto;min-width:0;text-align:left;background:transparent;border:0;padding:.2rem 0;font-size:.82rem;font-weight:600;min-height:0}.score-bar .primary{flex:0 0 auto}}.cme{display:flex;flex-direction:column;gap:12px;padding-bottom:24px}.cme h1{font-size:1.25rem;margin:0}.cme button,.cme .cme-btn{min-height:44px;min-width:44px;font-size:1rem}.cme input,.cme textarea,.cme select{font-size:16px;min-height:44px;width:100%;padding:8px 10px}.cme-total{position:sticky;top:var(--topbar-h, 56px);z-index:5;background:var(--accent);color:#fff;border-radius:var(--radius);padding:12px 14px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.cme-total strong{font-size:1.9rem;line-height:1}.cme-total small{opacity:.9;text-align:right}.cme-tabs{display:flex;gap:8px}.cme-tabs button{flex:1}.cme-tabs button[aria-selected=true]{background:var(--accent);color:#fff}.cme-year{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.cme-year>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;cursor:pointer;font-weight:600;list-style:none}.cme-year>summary::-webkit-details-marker{display:none}.cme-year>summary:before{content:"▸";margin-right:8px}.cme-year[open]>summary:before{content:"▾"}.cme-card{border-top:1px solid var(--border);padding:12px;display:flex;flex-direction:column;gap:6px}.cme-card h3{font-size:1rem;margin:0;line-height:1.35;overflow-wrap:anywhere}.cme-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--muted);font-size:.875rem}.cme-hours{font-weight:700;color:var(--accent-dark)}.cme-badges{display:flex;flex-wrap:wrap;gap:6px}.cme-badge{font-size:.8125rem;padding:3px 8px;border-radius:999px;background:var(--sunken)}.cme-badge.dup{background:var(--danger-bg);color:var(--danger)}.cme-badge.future{background:var(--warn-bg);color:var(--warn)}.cme-badge.pending{background:var(--accent-soft);color:var(--accent-dark)}.cme-badge.ok{background:var(--success-bg);color:var(--success)}.cme-actions{display:flex;flex-wrap:wrap;gap:8px}.cme-link{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--accent);font-weight:600}.cme-picker{position:relative}.cme-picker ul{list-style:none;margin:4px 0 0;padding:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);max-height:260px;overflow:auto}.cme-picker li button{width:100%;text-align:left;border:0;border-bottom:1px solid var(--border);background:transparent;padding:8px 12px}.cme-sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:80;display:flex;align-items:flex-end}.cme-sheet{width:100%;max-height:85vh;overflow:auto;background:var(--surface);border-radius:12px 12px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}.cme-sheet textarea{min-height:96px}.cme-req{border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}@media(min-width:768px){.cme{max-width:820px}.cme-sheet-bg{align-items:center;justify-content:center}.cme-sheet{max-width:480px;border-radius:12px}}:root{--bg: #ffffff;--surface: #ffffff;--sunken: #f6f6f4;--border: #dedcd6;--border-strong: #c7c5bd;--text: #17181a;--muted: #6b6d70;--accent: #1c5b66;--accent-dark: #123e46;--accent-soft: #e7f0ef;--success: #1f7a4d;--success-bg: #e8f5ee;--danger: #ab281f;--danger-bg: #fbeceb;--warn: #8a5a09;--warn-bg: #faf1de;--radius: 4px;--topbar-h: 56px;--nav-h: 58px;--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;font-family:var(--font-sans)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(28,91,102,.12)}button,a,summary,label,select,input[type=radio],input[type=checkbox]{touch-action:manipulation}a{color:var(--accent)}h1,h2,h3{margin:0 0 .5rem;line-height:1.25;font-weight:700;letter-spacing:-.01em}h1{font-size:1.4rem}h2{font-size:1.1rem}h3{font-size:.95rem}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh;min-height:100dvh}.topbar{display:none}.topbar-brand{display:flex;align-items:center;gap:.55rem}.topbar-account,.bottom-nav{display:none}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:1.25rem 1rem;display:flex;flex-direction:column;gap:1rem;position:sticky;top:0;height:100vh;height:100dvh;overflow-y:auto}.sidebar .brand{display:flex;align-items:center;gap:.55rem;font-weight:700;font-size:1rem}.mark{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--text);border-radius:3px;font-family:var(--font-mono);font-size:.72rem;font-weight:700;flex:none}.sidebar nav{display:flex;flex-direction:column;gap:.15rem}.sidebar nav a{padding:.6rem .7rem;border-radius:var(--radius);text-decoration:none;color:var(--text);font-size:.93rem;min-height:44px;display:flex;align-items:center}@media(hover:hover){.sidebar nav a:hover{background:var(--sunken)}}.sidebar nav a.active{background:var(--accent-soft);color:var(--accent-dark);font-weight:600}.sidebar .user{margin-top:auto;font-size:.85rem;color:var(--muted);border-top:1px solid var(--border);padding-top:.85rem}.main{padding:1.5rem 2rem;max-width:1400px;min-width:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}.stack{display:flex;flex-direction:column;gap:1rem}.row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:flex-end}.grid-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.kpi{background:var(--sunken)}.kpi .label{font-size:.78rem;color:var(--muted)}.kpi .value{font-family:var(--font-mono);font-size:1.55rem;font-weight:700;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:.85rem}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}label.field{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:var(--muted)}.field.w-sm{flex:0 1 160px;max-width:160px}.field.w-md{flex:1 1 240px}.field.w-lg{flex:2 1 360px}label.field{min-width:0}label.field>select,label.field>input{width:100%}input,select,textarea{font:inherit;padding:.55rem .6rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);min-width:0;min-height:44px}input[type=radio],input[type=checkbox]{min-height:0;padding:0;width:auto;margin:0;accent-color:var(--accent)}textarea{min-height:auto}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}button{font:inherit;padding:.55rem .9rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;min-height:44px}@media(hover:hover){button:hover:not(:disabled){border-color:var(--accent);color:var(--accent-dark)}}button:active:not(:disabled){background:var(--sunken)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}@media(hover:hover){button.primary:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}}button.primary:active:not(:disabled){background:var(--accent-dark);color:#fff}button.danger{color:var(--danger);border-color:var(--danger)}@media(hover:hover){button.danger:hover:not(:disabled){background:var(--danger-bg);color:var(--danger)}}button.btn-sm{padding:.3rem .7rem;min-height:44px;font-size:.85rem}.badge{display:inline-block;padding:.15rem .5rem;border-radius:3px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.badge.approved{background:var(--success-bg);color:var(--success)}.badge.rejected{background:var(--danger-bg);color:var(--danger)}.badge.pending{background:var(--warn-bg);color:var(--warn)}.badge.safety{background:var(--danger-bg);color:var(--danger)}.badge.cancelled{background:var(--sunken);color:var(--muted)}.table-wrap{overflow-x:auto;background:linear-gradient(to right,var(--surface) 50%,rgba(255,255,255,0)),linear-gradient(to left,var(--surface) 50%,rgba(255,255,255,0)) 100% 0,linear-gradient(to right,#0000001f,#0000 20px),linear-gradient(to left,#0000001f,#0000 20px) 100% 0;background-repeat:no-repeat;background-size:20px 100%,20px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll}table{border-collapse:collapse;width:100%;min-width:max-content;font-size:.9rem;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.6rem;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--muted);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.02em}@media(hover:hover){tbody tr:hover{background:var(--sunken)}}tr.clickable{cursor:pointer}.col-rate{min-width:140px}.bar{height:8px;background:var(--border);border-radius:2px;overflow:hidden;min-width:80px}.bar>span{display:block;height:100%;background:var(--accent)}details.day{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}details.day>summary{cursor:pointer;padding:.8rem 1rem;font-weight:600;min-height:44px;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}details.day>div{padding:0 1rem 1rem}details.day>.item-list{padding:0 1rem .25rem}.req{padding:.5rem 0;border-top:1px dashed var(--border);font-size:.9rem}.req-head{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem}.req-meta{margin-top:.15rem}.req-actions{margin-top:.35rem}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#17181a73;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:70}.dialog{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;width:min(640px,100%);max-height:88vh;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain}.dialog:focus{outline:none}.dialog h2{margin-bottom:1rem}.dialog .actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}.alert{padding:.65rem .8rem;border-radius:var(--radius);font-size:.9rem;border:1px solid transparent}.alert.error{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-bg)}.alert.info{background:var(--sunken);color:var(--text);border-color:var(--border)}.alert.ok{background:var(--success-bg);color:var(--success);border-color:var(--success-bg)}.login-page{display:grid;place-items:center;min-height:100vh;min-height:100dvh;padding:1.25rem;background:var(--sunken)}.login-card{width:min(440px,100%)}.google-btn{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:48px;font-size:1rem;font-weight:600}.seg{display:inline-flex;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.seg button{border:0;border-radius:0;padding:.5rem 1rem;background:transparent;min-height:44px}.seg button+button{border-left:1px solid var(--border)}.seg button.active{background:var(--accent);color:#fff}.only-mobile{display:none}.search{position:relative}.search input{width:100%;padding-left:2.1rem}.search svg{position:absolute;left:.65rem;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.item-list{list-style:none;margin:0;padding:0}.item{display:block;width:100%;text-align:left;padding:.65rem 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;min-height:0;color:var(--text)}.item:last-child{border-bottom:0}button.item{cursor:pointer}@media(hover:hover){button.item:hover:not(:disabled){color:var(--text);background:var(--sunken)}}button.item:active:not(:disabled){background:var(--sunken)}.item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.item-title{font-weight:600;line-height:1.3}.item-sub{color:var(--muted);font-size:.85rem;margin-top:.1rem}.item-chevron{color:var(--muted);flex:none}.item-stats{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin-top:.35rem;font-size:.85rem}.item-stats .stat{display:flex;flex-direction:column}.item-stats .stat b{font-family:var(--font-mono);font-size:.95rem;font-variant-numeric:tabular-nums}.item-stats .stat span{color:var(--muted);font-size:.75rem}.item-stats .stat.grow{flex:1 1 8rem}.badge.neutral{background:var(--sunken);color:var(--muted)}.radio-row{display:flex;gap:1rem;flex-wrap:wrap;font-size:.87rem}.radio-row label{display:flex;gap:.35rem;align-items:center;cursor:pointer;min-height:44px}@media(max-width:768px){body{font-size:14px;line-height:1.45}h1{font-size:1.15rem;margin-bottom:.25rem}h2{font-size:1rem;margin-bottom:.4rem}h3{font-size:.9rem}.small{font-size:.85rem}.main{min-width:0}.app{grid-template-columns:1fr;grid-template-rows:auto 1fr}.topbar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;position:sticky;top:0;z-index:40;height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);padding:.25rem .75rem;padding-left:calc(.75rem + env(safe-area-inset-left));padding-right:calc(.75rem + env(safe-area-inset-right))}.topbar-title{font-weight:700;font-size:.9rem}.topbar-account{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text);flex:none;min-height:44px;padding:0}.sidebar{display:none}.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--surface);border-top:1px solid var(--border);min-height:var(--nav-h);padding:.2rem .15rem calc(.2rem + env(safe-area-inset-bottom))}.bottom-nav a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;padding:.25rem .1rem;border-radius:var(--radius);text-decoration:none;color:var(--muted);font-size:.75rem;line-height:1.2;min-height:48px}.bottom-nav a span{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.bottom-nav a{color:#4a4d50}.bottom-nav a.active{color:var(--accent-dark);background:var(--accent-soft);font-weight:700}.main{padding:.85rem .75rem;padding-bottom:calc(1.25rem + var(--nav-h) + env(safe-area-inset-bottom));padding-left:calc(.75rem + env(safe-area-inset-left));padding-right:calc(.75rem + env(safe-area-inset-right))}.card{padding:.75rem}.stack{gap:.75rem}.row{gap:.5rem}.row>*{flex:1 1 100%;max-width:none}.row>.field:not(.w-md):not(.w-lg){flex:1 1 8rem}.row>button{flex:0 0 auto}label.field{font-size:.85rem;gap:.25rem}.grid-kpi{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.kpi{padding:.6rem .7rem}.kpi .label{font-size:.78rem;line-height:1.3}.kpi .value{font-size:1.2rem}input,select,textarea{font-size:16px;padding:.45rem .55rem;min-height:42px}button{font-size:.875rem;padding:.45rem .75rem;min-height:42px}.seg button{padding:.45rem .8rem;min-height:42px}.radio-row{gap:.25rem 1rem;font-size:.875rem}.radio-row label{min-height:44px}.badge{font-size:.75rem;padding:.1rem .4rem}.alert{font-size:.875rem;padding:.55rem .65rem}.hide-sm{display:none}table{font-size:.8rem;min-width:0}th,td{padding:.4rem .45rem}th{font-size:.75rem;white-space:normal}td:first-child,th:first-child{white-space:normal;min-width:6rem}.col-text{white-space:normal;min-width:9rem}.col-rate{min-width:92px}.bar{min-width:48px}.only-mobile{display:block}.only-desktop{display:none}.search.sticky{position:sticky;top:var(--topbar-h);z-index:30;background:var(--surface);padding:.35rem 0}details.day>summary{padding:.6rem .7rem;gap:.4rem;min-height:42px;font-size:.9rem}details.day>div{padding:0 .7rem .7rem}details.day>.item-list{padding:0 .7rem .2rem}.req{font-size:.85rem;padding:.45rem 0}.dialog{padding:.85rem}.dialog h2{margin-bottom:.7rem}.dialog .actions{position:sticky;bottom:0;margin:.85rem -.85rem -.85rem;padding:.6rem .85rem;padding-bottom:calc(.6rem + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)}.dialog .actions button{flex:1 1 0}}@media(max-width:640px){.backdrop{padding:0}.dialog{width:100%;height:100%;max-height:100%;border-radius:0;border:0;height:100dvh;max-height:100dvh;display:flex;flex-direction:column}.dialog .actions{margin-top:auto}}.skeleton{display:block;min-height:1em;border-radius:var(--radius);background:linear-gradient(90deg,var(--sunken) 25%,#ecece8 50%,var(--sunken) 75%);background-size:200% 100%;animation:skeleton-shimmer 1.3s ease-in-out infinite}.skeleton.line{height:14px;margin:.5rem 0}.skeleton.title{height:22px;width:55%;margin-bottom:.75rem}.skeleton.block{height:72px}.skeleton-stack{display:flex;flex-direction:column;gap:.6rem}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}.empty-state{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-align:center;padding:2rem 1rem;color:var(--muted);border:1px dashed var(--border-strong);border-radius:var(--radius)}.empty-state .empty-title{color:var(--text);font-weight:600}.empty-state button{margin-top:.5rem}.toast-region{position:fixed;left:0;right:0;z-index:80;display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:0 1rem;pointer-events:none;bottom:calc(1rem + env(safe-area-inset-bottom))}.toast{pointer-events:auto;display:flex;align-items:center;gap:.75rem;max-width:min(480px,100%);padding:.7rem .9rem;border-radius:var(--radius);font-size:.9rem;line-height:1.35;background:var(--text);color:#fff;box-shadow:0 4px 16px #00000040;animation:toast-in .18s ease-out}.toast.ok{background:var(--success)}.toast.error{background:var(--danger)}.toast button{background:transparent;border:0;color:inherit;min-height:44px;min-width:44px;padding:0 .5rem;font-size:1.2rem;line-height:1}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:768px){.toast-region{bottom:calc(.75rem + var(--nav-h) + env(safe-area-inset-bottom))}}.account-sheet .account-email,.login-card .account-email{word-break:break-all}.account-sheet .logout-btn{min-height:48px;width:100%;font-size:1rem;font-weight:600}.notice-banner{position:fixed;top:0;left:0;right:0;z-index:80;padding:.75rem 1rem;padding-top:calc(.75rem + env(safe-area-inset-top));background:var(--warn-bg);color:var(--warn);font-size:.9rem;text-align:center;border-bottom:1px solid var(--border)}
