:root{--radius:15px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.28;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
button{color:inherit}
a{color:inherit;text-decoration:none}
button svg{flex-shrink:0}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(27px,2.7vw,37px);line-height:1.2;font-weight:580;letter-spacing:-1.3px}
h2{font-size:17px;line-height:1.35;font-weight:600;letter-spacing:-.35px}
h3{font-size:14px;font-weight:600}
.icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}
.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:650}
.muted{color:var(--muted)}
.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}
.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:var(--surface);padding:12px}
.skip-link:focus{top:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:var(--chrome);border-right:1px solid var(--line);padding:36px 21px 24px;z-index:20;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:11px;padding:0 9px 0 7px}
.brand img{border-radius:11px}
.brand>span{font-size:22px;line-height:.97;letter-spacing:-.7px;font-weight:420}
.brand strong{font-weight:690}
.sidebar-label{margin:57px 0 16px 15px;color:var(--muted);font-size:9px;letter-spacing:1.8px;font-weight:650}
.desktop-nav{display:grid;gap:6px}
.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:9px;font-size:12px;font-weight:500;color:var(--muted);min-height:44px}
.nav-item:hover{background:var(--soft);color:var(--accent)}
.nav-item.active{background:var(--soft);color:var(--accent);font-weight:620}
.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:auto}
.nav-item .icon{width:18px;height:18px}
.sidebar-bottom{margin-top:auto}
.sidebar-note{padding:22px 15px 26px;color:var(--muted)}
.sidebar-note>.icon{color:var(--muted);margin-bottom:13px;width:25px;height:25px}
.sidebar-note p{font-size:12px;line-height:1.8}
.sidebar-note em{color:var(--ink);font-style:normal}
.private-note{display:flex;align-items:center;gap:8px;padding:18px 7px 0;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.private-note .icon{width:16px;height:16px}
.workspace{margin-left:220px}
.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:var(--chrome)}
.breadcrumb{font-size:11px;color:var(--muted)}
.breadcrumb span{margin:0 14px;color:var(--muted)}
.breadcrumb strong{font-weight:500;color:var(--ink)}
.topbar-right{display:flex;align-items:center;gap:11px}
.save-indicator{color:var(--muted);font-size:10px;margin-right:17px;display:flex;gap:5px;align-items:center}
.save-indicator .icon{width:13px;height:13px}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--accent-ink);display:grid;place-items:center;font-size:12px;font-weight:600;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.profile-name{font-size:11px;color:var(--ink)}
.topbar .topbar-logout{min-height:44px;padding:9px 13px;margin-left:3px}
.account-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 25px;margin-bottom:24px}
.account-summary h2{font-size:18px;margin:0 0 7px}
.account-summary p{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.account-summary-actions{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
@media(max-width:720px){.account-topbar .save-indicator,.account-topbar .avatar,.account-topbar .profile-name{display:none}.account-summary{align-items:flex-start;flex-direction:column;padding:20px;gap:16px}.account-summary-actions{width:100%}.topbar-logout{font-size:12px;padding:9px 12px;margin-left:0}}
.mobile-brand,.mobile-nav{display:none}
main{max-width:1500px;margin:0 auto;padding:38px 40px 0;min-width:0}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}
.page-heading .eyebrow{color:var(--muted);margin-bottom:11px;font-size:9px}
.page-subtitle{color:var(--muted);font-size:11px;margin-top:11px}
.subtitle-dot{margin:0 9px;color:var(--muted)}
.heading-actions{display:flex;align-items:center;flex-shrink:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;border:1px solid transparent;border-radius:8px;padding:10px 16px;font-size:12px;font-weight:550;transition:background .15s,transform .15s;white-space:nowrap}
.button:active{transform:translateY(1px)}
.button .icon{width:16px;height:16px}
.button-primary{background:var(--accent);color:var(--on-accent);box-shadow:0 3px 5px var(--shadow)}
.button-primary:hover{background:var(--accent-hover)}
.button-outline{border-color:var(--line);background:var(--surface);color:var(--accent-ink)}
.button-outline:hover{background:var(--soft)}
.button-quiet{background:var(--soft);color:var(--muted)}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--accent-ink);border:0;background:none;font-size:11px;font-weight:550;padding:8px 0;min-height:38px}
.text-button:hover{color:var(--accent-hover);text-decoration:underline}
.text-button .icon{width:14px;height:14px}
.icon-button{border:0;background:none;border-radius:6px;min-width:36px;min-height:36px;display:inline-grid;place-items:center;color:var(--muted);padding:5px;font-size:25px;line-height:1}
.icon-button:hover{background:var(--soft);color:var(--accent)}
.icon-button .icon{width:17px;height:17px}
.flipped{transform:rotate(180deg)}
.mobile-months{display:none}
.stats-grid{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:18px;margin-bottom:23px}
.goal-card{border-radius:var(--radius);background:var(--goal-bg);color:var(--goal-ink);padding:23px 27px 22px;position:relative;overflow:hidden;min-height:199px}
.goal-card::after{content:"";position:absolute;width:230px;height:230px;border:1px solid var(--goal-ring);border-radius:50%;right:-90px;top:-90px;box-shadow:0 0 0 20px var(--goal-glow),0 0 0 40px var(--goal-glow);pointer-events:none}
.goal-card-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}
.goal-card-top .eyebrow{color:var(--goal-muted);font-size:9px;letter-spacing:1.4px}
.goal-mark{border:1px solid var(--goal-ring);border-radius:8px;width:32px;height:32px;display:grid;place-items:center;color:var(--goal-muted)}
.goal-mark .icon{width:17px;height:17px}
.total-display{display:flex;align-items:baseline;gap:11px;margin-top:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.total-display>strong{font-size:46px;font-weight:480;letter-spacing:-2px;line-height:1.4}
.total-display>span{font-size:13px;color:var(--goal-muted)}
.progress-track{height:6px;border-radius:8px;background:var(--goal-track);margin:18px 0 13px;overflow:hidden}
.progress-track>div{height:100%;border-radius:8px;background:var(--goal-fill);transition:width .3s}
.goal-card-bottom{display:flex;justify-content:space-between;font-size:10px;color:var(--goal-muted);gap:8px}
.goal-card-bottom strong{color:var(--goal-muted);font-weight:500}
.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:23px 23px 22px;display:flex;flex-direction:column;min-width:0}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:5px}
.stat-top .eyebrow{color:var(--muted);font-size:9px;letter-spacing:1.35px}
.stat-icon{width:32px;height:32px;display:grid;place-items:center;background:var(--soft);border-radius:8px;color:var(--accent-ink)}
.stat-icon .icon{width:17px;height:17px}
.stat-icon.pale{background:var(--soft);color:var(--muted)}
.stat-value{font-size:39px;letter-spacing:-1.8px;font-weight:450;font-variant-numeric:tabular-nums;margin-top:8px}
.stat-bottom{margin-top:auto;padding-top:18px;color:var(--muted);font-size:10px;display:flex;align-items:center;gap:7px}
.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;flex-shrink:0;vertical-align:middle}
.regular{background:var(--chart)}
.bucket{background:var(--bucket)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(245px,1fr);gap:22px;margin-bottom:23px}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 25px 8px}
.panel-heading p{font-size:10px;color:var(--muted);margin-top:5px}
.chart-panel .panel-heading{align-items:flex-start}
.chart-legend{display:flex;gap:13px;font-size:9px;color:var(--muted);align-items:center;padding-top:7px;flex-shrink:0}
.chart-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.line-swatch{display:inline-block;width:13px;border-top:2px solid}
.line-swatch.actual{border-color:var(--chart)}
.line-swatch.target{border-color:var(--chart-pace);border-top-style:dashed}
.trend-wrap{padding:20px 13px 0 9px}
.trend-wrap svg{width:100%;display:block;overflow:visible}
.chart-grid{stroke:var(--chart-grid);stroke-width:1;stroke-dasharray:3 4}
.chart-label{fill:var(--muted);font-family:var(--font);font-size:11px}
.target-path{fill:none;stroke:var(--chart-pace);stroke-width:1.8;stroke-dasharray:6 5}
.actual-path{fill:none;stroke:var(--chart);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.chart-caption{margin:9px 25px 21px;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted)}
.chart-caption strong{font-weight:500;color:var(--muted)}
.pace-panel{padding-bottom:18px}
.pace-panel .panel-heading{padding-bottom:14px}
.pace-panel .panel-heading>.icon{color:var(--muted);width:17px;height:17px}
.as-of-field{margin:0 24px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:10px}
.as-of-field input{max-width:137px;width:137px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--chrome);font-size:10px;padding:5px 7px;min-height:30px;min-width:0}
.use-today{margin:0 24px;min-height:24px;font-size:10px;padding-top:4px;padding-bottom:0}
.pace-status{margin:21px 25px 0;line-height:1.25;font-variant-numeric:tabular-nums}
.pace-status>strong{font-size:39px;font-weight:450;letter-spacing:-1.6px}
.pace-sign{font-size:30px;font-weight:300;vertical-align:2px;margin-right:2px}
.pace-status-label{display:block;font-size:11px;margin-top:4px;color:var(--muted)}
.positive{color:var(--positive)}
.negative{color:var(--negative)}
.pace-divider{height:1px;background:var(--line);margin:20px 25px 12px}
.pace-detail{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:8px 25px;font-size:10px;color:var(--muted)}
.pace-detail strong{font-size:15px;color:var(--accent-ink);font-weight:550;font-variant-numeric:tabular-nums}
.pace-detail small{font-size:10px;color:var(--muted);font-weight:400}
.pace-footnote{font-size:9px;line-height:1.5;color:var(--muted);margin:14px 25px 0}
.finish-plan{display:flex;justify-content:space-between;align-items:center;gap:22px;background:var(--soft);border:1px solid var(--line);padding:23px 25px;border-radius:12px;margin-bottom:28px}
.finish-plan-title{display:flex;align-items:center;gap:15px}
.finish-icon{border:1px solid var(--line);background:var(--soft);border-radius:11px;width:40px;height:40px;display:grid;place-items:center;color:var(--accent-ink);flex-shrink:0}
.finish-plan h2{font-size:14px;color:var(--accent-ink)}
.finish-plan p{font-size:10px;color:var(--muted);margin-top:5px}
.plan-numbers{display:flex;gap:28px;flex-shrink:0}
.plan-numbers>div{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:26px}
.plan-numbers strong{font-size:24px;line-height:1.2;color:var(--accent-ink);font-weight:480;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.plan-numbers span{font-size:9px;margin-top:6px;color:var(--muted)}
.months-panel .panel-heading{padding-bottom:5px}
.monthly-bars{display:flex;gap:18px;margin:10px 30px 0;overflow-x:auto;padding:5px 0 0}
.bar-column{flex:1;min-width:28px;padding:0;border:0;background:none;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.bar-area{height:85px;display:block;position:relative;margin:0 9px;background:linear-gradient(to top,var(--soft),transparent);border-radius:4px}
.bar-stack{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;border-radius:4px 4px 0 0;min-height:2px}
.bar-bucket{background:var(--bucket)}
.bar-regular{background:var(--chart)}
.bar-column:hover .bar-regular{background:var(--accent-hover)}
.bar-column:hover .bar-label{color:var(--accent-hover)}
.bar-target{height:0;border-top:1px dashed var(--chart-pace);position:absolute;left:-9px;right:-9px;z-index:1}
.bar-label{font-size:9px;color:var(--muted)}
.bar-caption{display:flex;justify-content:space-between;gap:10px;margin:13px 27px 19px;color:var(--muted);font-size:9px}
.bar-caption>span{display:flex;align-items:center;gap:5px}
.bar-caption .legend-dot{width:6px;height:6px}
.bar-caption .legend-dot.bucket{margin-left:9px}
.table-scroll{overflow-x:auto;width:100%;border-radius:0 0 var(--radius) var(--radius)}
table{border-collapse:collapse;width:100%;font-size:11px;font-variant-numeric:tabular-nums}
th,td{text-align:right;padding:12px 16px;white-space:nowrap;border-top:1px solid var(--chart-grid);height:49px}
th:first-child,td:first-child{text-align:left;padding-left:26px}
thead th{font-size:9px;color:var(--muted);font-weight:500;background:var(--chrome);padding-top:12px;padding-bottom:12px;height:auto}
tbody th{font-weight:500}
tbody td{color:var(--muted)}
.table-total{font-weight:600;color:var(--accent-ink)}
tbody tr:hover{background:var(--chrome)}
tbody tr.current-month{background:var(--official-bg)}
tfoot{font-weight:550;color:var(--accent-ink);background:var(--chrome)}
tfoot td{font-weight:600}
.monthly-table th:last-child,.monthly-table td:last-child{padding:5px 17px 5px 2px;width:35px}
.month-link{padding:0;border:0;background:none;color:var(--accent-ink);font-size:11px;display:flex;gap:8px;align-items:center;min-height:26px}
.month-link:hover{text-decoration:underline}
.tiny-pill{font-size:7px;font-weight:650;letter-spacing:.6px;border-radius:3px;padding:2px 5px;background:var(--official-bg);color:var(--official-ink);display:inline-block;vertical-align:middle}
.pace-badge{font-size:9px;background:var(--soft);padding:3px 7px;border-radius:4px}
.pace-badge.negative{background:var(--negative-bg)}
.source-badge{font-size:9px;padding:3px 7px;border-radius:4px;color:var(--muted);background:var(--soft);font-weight:450;white-space:nowrap;display:inline-block}
.source-badge.official{color:var(--official-ink);background:var(--official-bg)}
.page-footer{display:flex;justify-content:space-between;padding:28px 0 25px;color:var(--muted);font-size:8px;gap:10px}
.page-footer>span:first-child{letter-spacing:1.5px}
.version{color:var(--muted);margin:0 6px}
.month-selector{display:flex;justify-content:space-between;align-items:center;margin:4px 0 23px}
.month-selector>.muted{font-size:11px}
.month-navigation{display:flex;gap:10px;align-items:center}
.month-navigation select{font-size:19px;font-weight:500;letter-spacing:-.4px;min-height:40px;padding:5px 24px 5px 10px;border:0;background:transparent;color:var(--ink);max-width:220px}
.logbook-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr;margin-bottom:22px;gap:16px}
.mini-stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px 24px}
.mini-stat>span{color:var(--muted);font-size:11px;display:block;margin-bottom:7px}
.mini-stat>strong{font-size:29px;letter-spacing:-1px;font-weight:450}
.mini-stat small{font-size:12px;color:var(--muted);letter-spacing:0;font-weight:400}
.mini-stat.counted{background:var(--soft);border-color:var(--line)}








.daily-panel .panel-heading{padding-bottom:20px}
.daily-key{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px;white-space:nowrap}
.eight-dot{width:7px;height:7px;border-radius:50%;background:var(--soft-strong)}
.daily-table th,.daily-table td{padding-top:7px;padding-bottom:7px;height:46px}
.daily-table th:first-child{width:30%}
.daily-table .weekend{background:var(--chrome)}
.daily-table .today-row{background:var(--official-bg)}
.day-link{border:0;background:none;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;padding:0;min-height:32px}
.day-number{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;color:var(--accent-ink);background:var(--soft);font-size:11px;font-weight:500}
.day-number.eight-hours{background:var(--soft-strong);color:var(--accent-ink)}
.day-edit{color:var(--muted);font-size:10px;background:none;border:0;padding:9px 8px;min-width:46px;min-height:32px;border-radius:5px}
.day-edit:hover{background:var(--soft);color:var(--accent-hover)}
.daily-table td:last-child{padding-right:20px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:start}
.settings-panel .panel-heading,.data-panel .panel-heading{padding-bottom:22px}
.settings-panel .panel-heading>.icon,.data-panel .panel-heading>.icon{color:var(--muted)}
.settings-panel form{padding:0 25px 25px}
.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted);font-weight:500;margin-top:19px;min-width:0}
.field input{border:1px solid var(--line);padding:11px 12px;border-radius:7px;min-height:44px;background:var(--chrome);color:var(--ink);min-width:0;width:100%;font-size:14px}
.field input::placeholder{color:var(--muted);font-weight:400}
.field input:focus{outline:2px solid var(--focus);outline-offset:1px}
.field input[type="date"]{min-width:0;width:100%;max-width:100%;min-height:44px;-webkit-appearance:none}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-hint{font-size:10px;line-height:1.7;color:var(--muted);margin-top:15px;font-weight:400}
.field .form-hint{margin-top:0;font-size:10px}
.form-error{font-size:12px;color:var(--negative);margin:15px 0 0;line-height:1.5}
.form-error:empty{display:none}
.settings-panel form>.button{margin-top:23px}
.data-action{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 24px;border-top:1px solid var(--line)}
.data-action h3{font-size:12px;color:var(--accent-ink);font-weight:500}
.data-action p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.7}
.data-action .button{min-height:36px;font-size:10px;padding:7px 10px;flex-shrink:0}
.data-action .button .icon{width:13px;height:13px}
.settings-right{display:grid;gap:20px}
.storage-card{display:flex;align-items:flex-start;gap:14px;padding:23px;border:1px solid var(--line);background:var(--soft);border-radius:12px;color:var(--accent-ink)}
.storage-card>.icon{margin-top:1px}
.storage-card h3{font-size:12px;color:var(--accent-ink)}
.storage-card p{font-size:10px;line-height:1.8;color:var(--muted);margin-top:6px}
.install-panel{padding:22px 24px}
.install-panel h2{font-size:14px}
.install-panel p{margin-top:8px;font-size:11px;color:var(--muted);line-height:1.8}
dialog{width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 25px 110px var(--shadow);color:var(--ink)}
dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(4px)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-5px -9px 14px 0}
.dialog-top .eyebrow{color:var(--muted);font-size:9px}
dialog h2{font-size:26px;font-weight:500;letter-spacing:-.8px}
dialog h2+.muted{font-size:12px;margin-top:8px;color:var(--muted)}
dialog .field{margin-top:22px;font-size:12px}
dialog .field input{font-size:18px;height:50px}
dialog .field input[type="date"]{font-size:15px}
dialog .form-hint{font-size:11px}
.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:25px;padding-top:21px;border-top:1px solid var(--line)}
.restore-preview{margin-top:22px;border-radius:10px;padding:20px;background:var(--soft)}
.restore-preview>strong{font-size:14px;font-weight:550}
.restore-preview>p{margin-top:6px;font-size:11px;color:var(--muted)}
.restore-preview>div{margin-top:17px;font-size:29px;font-weight:450;letter-spacing:-.8px}
.restore-preview small{font-size:11px;letter-spacing:0;color:var(--muted)}
#toast{position:fixed;left:calc(50% + 110px);transform:translate(-50%,16px);bottom:25px;z-index:100;background:var(--accent);color:var(--on-accent);padding:13px 20px;border-radius:10px;box-shadow:0 8px 30px var(--shadow);font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(620px,90vw);display:flex;align-items:center;gap:20px}
#toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}
#toast button{background:none;border:0;color:var(--on-accent);text-decoration:underline;font-size:12px;padding:0}
.notice{padding:14px 18px;background:var(--official-bg);border:1px solid var(--official-line);border-radius:9px;color:var(--official-ink);font-size:12px;line-height:1.7;margin-bottom:24px}
.notice .text-button{margin-left:15px}
.loading{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:20px;color:var(--muted)}
.brand-symbol{width:72px;height:72px}
@media(min-width:1500px){main{padding-left:54px;padding-right:54px}.topbar{padding-left:54px;padding-right:54px}.stats-grid{gap:24px}.goal-card{padding-right:32px;padding-left:32px}.total-display>strong{font-size:53px}.stat-value{font-size:44px}.dashboard-grid{grid-template-columns:minmax(0,2.35fr) minmax(285px,1fr)}.pace-status{margin-top:30px}.pace-divider{margin-top:25px}.pace-detail{margin-top:12px}}
@media(max-width:1200px){.sidebar{width:190px;padding-left:16px;padding-right:16px}.workspace{margin-left:190px}.brand{padding-left:5px}.brand>span{font-size:20px}.brand img{width:38px;height:38px}.nav-item{font-size:11px;padding-left:10px;padding-right:10px}main{padding:30px 27px 0}.topbar{padding:0 27px}.stats-grid{grid-template-columns:1.5fr 1fr 1fr;gap:13px}.stat-card{padding:20px 17px}.goal-card{padding:20px}.total-display>strong{font-size:38px}.total-display>span{font-size:11px}.stat-value{font-size:34px}.stat-bottom{font-size:9px}.stat-top .eyebrow{font-size:8px}.goal-card-bottom{font-size:9px}.panel-heading{padding-left:20px;padding-right:20px}.chart-legend{gap:8px;font-size:8px}.chart-panel .panel-heading{flex-wrap:wrap;gap:10px}.chart-panel .panel-heading p{font-size:10px}.chart-caption{flex-wrap:wrap;margin:8px 20px 18px;gap:4px}.finish-plan{padding:20px;gap:15px}.finish-icon{display:none}.plan-numbers{gap:18px}.plan-numbers>div{padding-left:18px}.finish-plan h2{font-size:13px}.finish-plan p{font-size:9px}.plan-numbers span{font-size:8px}.plan-numbers strong{font-size:22px}.monthly-bars{gap:12px;margin-left:24px;margin-right:24px}th,td{padding-left:12px;padding-right:12px}#toast{left:calc(50% + 95px)}}
@media(max-width:980px){.sidebar{width:175px;padding-left:12px;padding-right:12px}.workspace{margin-left:175px}.brand>span{font-size:18px}.brand{gap:9px}.brand img{width:34px;height:34px}.nav-item{gap:9px}.sidebar-label{margin-left:10px}.private-note{font-size:9px}.sidebar-note{padding-left:9px}.topbar{height:66px}main{padding-left:22px;padding-right:22px}.topbar{padding-left:22px;padding-right:22px}.total-display{gap:7px}.total-display>strong{font-size:34px}.goal-card{padding:18px}.goal-card-top .eyebrow{font-size:8px}.goal-mark{display:none}.stat-card{padding:18px 15px}.stat-icon{width:27px;height:27px}.stat-top{align-items:flex-start;flex-direction:column-reverse;gap:11px}.stat-value{font-size:29px;margin-top:4px}.stat-bottom{font-size:8px;padding-top:14px}.goal-card-bottom{flex-direction:column;gap:4px}.goal-card .progress-track{margin-top:21px}.goal-card .total-display{margin-top:18px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.pace-panel{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:18px}.pace-panel .panel-heading{padding:0;grid-column:1/3;margin-bottom:14px}.pace-panel .panel-heading>.icon{display:none}.as-of-field{grid-column:3;grid-row:1;margin:0 0 14px;font-size:9px}.as-of-field input{font-size:9px;width:122px;max-width:122px}.as-of-field>span{display:none}.pace-status{margin:0;grid-column:1;grid-row:2/4}.pace-status>strong{font-size:32px}.pace-status-label{font-size:10px}.pace-detail{margin:0 0 0 18px;border-left:1px solid var(--line);padding-left:18px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;grid-row:2}.pace-detail strong{font-size:23px}.pace-detail small{font-size:10px}.pace-footnote{margin:12px 0 0;grid-column:1/4;font-size:9px}.pace-divider{display:none}.use-today{grid-column:3;grid-row:4;font-size:9px;margin:2px 0 0;justify-content:flex-start}.finish-plan{flex-direction:column;align-items:stretch;gap:19px}.finish-plan-title{gap:10px}.finish-icon{display:grid;width:33px;height:33px}.plan-numbers{justify-content:space-between}.plan-numbers>div{padding-left:14px;flex:1}.plan-numbers>div:first-child{border-left:none;padding-left:0}.plan-numbers span{font-size:9px}.settings-grid{grid-template-columns:1fr}.settings-panel form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.settings-panel form>.form-row,.settings-panel form>.form-hint,.settings-panel form>.form-error{grid-column:1/-1}.settings-panel form>.field{margin-top:0}.settings-panel form>.button{justify-self:start}.monthly-table{min-width:680px}.chart-panel .panel-heading{flex-wrap:nowrap}.chart-legend{font-size:9px}.trend-wrap{padding-top:12px}#toast{left:calc(50% + 87px)}}
@media(max-width:720px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:66px;padding:0 21px;position:relative}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:620;letter-spacing:-.5px}.mobile-brand img{border-radius:8px}.save-indicator{font-size:9px;margin-right:3px;gap:4px}.topbar-right{gap:8px}.profile-name{display:none}.avatar{width:27px;height:27px;font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;background:var(--chrome);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:8px 15px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav>a{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:85px;min-height:44px;color:var(--muted);font-size:9px;padding:4px;border-radius:8px}.mobile-nav>a.active{color:var(--accent-ink);background:var(--soft)}.mobile-nav .icon{width:20px;height:20px}main{padding:27px 20px 85px}.page-heading{gap:15px;margin-bottom:23px;align-items:flex-start}.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:9px}h1{font-size:28px;letter-spacing:-1.1px;max-width:280px}.page-subtitle{font-size:10px;margin-top:9px;max-width:290px;line-height:1.8}.heading-actions{padding-top:20px}.heading-actions .button{font-size:11px;padding:10px 12px;gap:6px;min-height:39px}.heading-actions .icon{width:14px;height:14px}.stats-grid{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.goal-card{grid-column:1/-1;padding:23px 25px 22px;min-height:190px}.goal-card-top .eyebrow{font-size:9px}.goal-mark{display:grid}.goal-card .total-display{margin-top:5px}.total-display>strong{font-size:51px;letter-spacing:-2px}.total-display>span{font-size:13px;margin-left:4px}.goal-card .progress-track{margin-top:17px}.goal-card-bottom{flex-direction:row;font-size:10px}.stat-card{padding:19px 20px 18px;min-height:143px}.stat-top{flex-direction:row;align-items:center;gap:8px}.stat-top .eyebrow{font-size:9px;letter-spacing:1px}.stat-icon{width:27px;height:27px}.stat-value{font-size:33px;margin-top:7px}.stat-bottom{font-size:9px;padding-top:12px}.dashboard-grid{gap:18px;margin-bottom:18px}.panel-heading{padding:20px 20px 7px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px}.chart-panel .panel-heading{flex-wrap:wrap;gap:9px}.chart-legend{font-size:9px;padding-top:0}.trend-wrap{padding:12px 9px 0 0}.chart-caption{margin:10px 20px 18px;font-size:9px;gap:4px}.chart-label{font-size:13px}.pace-panel{padding:20px}.pace-panel .panel-heading{margin-bottom:15px}.pace-status>strong{font-size:31px}.pace-sign{font-size:24px}.pace-status-label{font-size:9px}.pace-detail{padding-left:15px;margin-left:15px;font-size:9px}.pace-detail strong{font-size:23px}.pace-footnote{font-size:9px;margin-top:15px}.finish-plan{padding:20px;margin-bottom:20px;gap:20px}.finish-plan h2{font-size:14px}.finish-plan p{font-size:10px}.finish-icon{width:35px;height:35px}.plan-numbers strong{font-size:25px}.plan-numbers span{font-size:8px}.months-panel .panel-heading{gap:5px}.months-panel .text-button{font-size:10px}.monthly-bars{gap:6px;margin:13px 19px 0}.bar-column{min-width:19px}.bar-area{margin:0 4px;height:65px}.bar-target{left:-4px;right:-4px}.bar-label{font-size:8px}.bar-caption{margin:12px 20px 16px;font-size:8px;gap:8px}.bar-caption .legend-dot.bucket{margin-left:5px}.page-footer{font-size:7px;padding-top:24px;padding-bottom:16px}.page-footer>span:first-child{letter-spacing:1px}.month-selector{margin-top:0;margin-bottom:18px}.month-navigation{gap:4px}.month-navigation select{font-size:18px;padding-left:3px;padding-right:10px;max-width:155px}.month-selector>.muted{font-size:10px}.logbook-summary{gap:10px;grid-template-columns:1fr 1fr}.mini-stat{padding:17px 19px}.mini-stat>span{font-size:10px}.mini-stat>strong{font-size:27px}.mini-stat.counted{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.mini-stat.counted>span{margin:0;font-size:11px}.daily-panel .panel-heading{padding:18px}.daily-key{font-size:9px}.daily-table{font-size:10px}.daily-table th,.daily-table td{padding:7px 10px}.daily-table th:first-child{padding-left:15px;width:auto}.daily-table td:last-child{padding-right:11px}.daily-table .running-cell{display:none}.day-link{font-size:10px;gap:8px}.day-number{width:27px;height:27px;font-size:10px}.day-link .tiny-pill{font-size:6px;padding:2px 3px}.daily-table thead th{font-size:8px}.day-edit{font-size:9px;padding:9px 4px;min-width:35px}.daily-table tfoot th{font-size:9px}.settings-grid{gap:18px}.settings-panel form{display:block;padding:0 20px 21px}.settings-panel form>.field{margin-top:18px}.settings-panel .panel-heading{padding-bottom:5px}.field input{font-size:16px}.field{font-size:12px}.form-hint{font-size:11px}.settings-panel form>.button{width:100%}.data-action{padding:17px 20px;gap:10px}.data-action p{font-size:10px}.data-action h3{font-size:12px}.data-panel .panel-heading{padding-bottom:18px}.settings-right{gap:18px}.storage-card p{font-size:11px}.install-panel{padding:20px}.install-panel p{font-size:12px}.form-row{gap:12px}.settings-panel .field input[type="date"]{font-size:14px}.form-row .field{font-size:11px}dialog{padding:23px;width:calc(100% - 28px)}dialog h2{font-size:25px}dialog .field input{font-size:20px}.dialog-actions .button{min-height:44px}#toast{left:50%;bottom:calc(90px + env(safe-area-inset-bottom));max-width:calc(100% - 30px);width:max-content;font-size:11px;padding:13px 17px}.notice{font-size:11px}}
@media(max-width:390px){main{padding-left:15px;padding-right:15px}.topbar{padding-left:15px;padding-right:15px}.save-indicator{font-size:8px}.mobile-brand{font-size:14px}.mobile-brand img{width:27px;height:27px}.topbar-right{gap:6px}.page-heading{gap:8px}h1{font-size:25px;letter-spacing:-.9px}.heading-actions .button{padding:8px 10px;font-size:10px}.heading-actions{padding-top:19px}.page-subtitle{font-size:9px}.page-subtitle .subtitle-dot{margin:0 5px}.total-display>strong{font-size:47px}.goal-card{padding:20px}.stat-card{padding:17px}.stat-top .eyebrow{font-size:8px}.stat-icon{width:24px;height:24px}.stat-bottom{font-size:8px}.pace-panel{padding:18px}.pace-detail{padding-left:11px;margin-left:11px;font-size:8px}.pace-status>strong{font-size:29px}.pace-status-label{font-size:8px}.pace-detail strong{font-size:21px}.plan-numbers span{font-size:7px}.bar-caption{font-size:7px}.monthly-bars{gap:4px}.page-footer{font-size:6px}.day-link{gap:6px;font-size:9px}.daily-table th,.daily-table td{padding-left:8px;padding-right:8px}.daily-table th:first-child{padding-left:11px}.daily-key{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep the quieter labels readable at actual phone size. */
.nav-item{font-size:13px}.breadcrumb{font-size:12px}.save-indicator{font-size:11px}.profile-name{font-size:12px}
.page-subtitle{font-size:12px;color:var(--muted)}.stat-bottom{font-size:11px;color:var(--muted)}.stat-top .eyebrow{color:var(--muted)}
.panel-heading p{font-size:11px;color:var(--muted)}.chart-legend{font-size:10px;color:var(--muted)}.chart-caption{font-size:10px;color:var(--muted)}
.as-of-field{font-size:11px;color:var(--muted)}.as-of-field input{font-size:11px;width:144px;max-width:144px;color:var(--accent-ink)}
.pace-status-label{font-size:12px;color:var(--muted)}.pace-detail{font-size:11px;color:var(--muted)}.pace-footnote{font-size:10px;color:var(--muted)}
.finish-plan p{font-size:11px;color:var(--muted)}.plan-numbers span{font-size:10px;color:var(--muted)}
table{font-size:12px}thead th{font-size:10px;color:var(--muted)}tbody td{color:var(--muted)}.month-link{font-size:12px}.pace-badge,.source-badge{font-size:10px}.source-badge.official{color:var(--official-ink)}
.bar-caption{font-size:10px;color:var(--muted)}.bar-label{font-size:10px;color:var(--muted)}.page-footer{font-size:9px;color:var(--muted)}
.field{font-size:12px}.form-hint{font-size:11px;color:var(--muted)}.field .form-hint{font-size:11px}.data-action h3{font-size:13px}.data-action p{font-size:11px;color:var(--muted)}
.storage-card p{font-size:11px;color:var(--muted)}.install-panel p{color:var(--muted)}
@media(max-width:980px){.nav-item{font-size:11px}.stat-bottom{font-size:9px}.plan-numbers span{font-size:9px}.pace-detail{font-size:10px}}
@media(max-width:720px){.save-indicator{font-size:9px}.page-subtitle{font-size:11px}.stat-bottom{font-size:10px}.chart-caption{font-size:10px}.pace-status-label{font-size:10px}.pace-detail{font-size:10px}.pace-footnote{font-size:10px}.finish-plan p{font-size:10px}.plan-numbers span{font-size:9px}.bar-caption{font-size:8px}.bar-label{font-size:8px}.page-footer{font-size:7px}.daily-table{font-size:12px}.daily-table thead th{font-size:10px}.day-link{font-size:11px}.day-edit{font-size:11px;min-height:40px}.day-number{width:29px;height:29px;font-size:12px}.daily-table th,.daily-table td{padding-left:9px;padding-right:9px}.data-action p{font-size:11px}.data-action h3{font-size:13px}.storage-card p{font-size:12px}.sidebar-label{font-size:9px}.field input{font-size:16px}.daily-table tfoot th{font-size:10px}}
@media(max-width:390px){.page-subtitle{font-size:10px}.stat-bottom{font-size:9px}.plan-numbers span{font-size:8px}.pace-status-label{font-size:9px}.pace-detail{font-size:9px}.daily-table{font-size:11px}.day-link{font-size:10px}.daily-table th,.daily-table td{padding-left:7px;padding-right:7px}}
@media(max-width:720px){
  .months-panel>.table-scroll{display:none}
  .mobile-months{display:block}
  .mobile-month{border-top:1px solid var(--line)}
  .mobile-month.is-current{background:var(--official-bg)}
  .mobile-month>summary{list-style:none;display:flex;align-items:center;gap:13px;padding:16px 20px;cursor:pointer;min-height:76px}
  .mobile-month>summary::-webkit-details-marker{display:none}
  .mobile-month>summary>.icon{width:15px;height:15px;color:var(--muted);transition:transform .15s}
  .mobile-month[open]>summary>.icon{transform:rotate(90deg)}
  .mobile-month-name{font-size:13px;font-weight:500;color:var(--accent-ink);flex:1}
  .mobile-month small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px;min-height:15px}
  .mobile-month-total{text-align:right;font-size:16px;color:var(--accent-ink);font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
  .mobile-month-total small{letter-spacing:0}
  .mobile-month-detail{padding:0 20px 15px;background:var(--chrome)}
  .mobile-month-detail dl{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin:0;padding:17px 0 6px;border-top:1px dashed var(--line)}
  .mobile-month-detail dt{font-size:10px;color:var(--muted)}
  .mobile-month-detail dd{margin:4px 0 0;font-size:14px;color:var(--accent-ink);font-variant-numeric:tabular-nums}
  .mobile-month-detail .text-button{font-size:11px;min-height:40px}
  .mobile-cycle-total{display:flex;justify-content:space-between;gap:15px;padding:20px;border-top:1px solid var(--line);background:var(--soft);border-radius:0 0 15px 15px;color:var(--accent-ink);font-size:12px}
  .mobile-cycle-total strong{font-size:15px;font-weight:550;font-variant-numeric:tabular-nums}
}

/* Appearance controls and the hourglass wordmark. */
.brand-mark{display:block;flex-shrink:0;width:43px;height:43px;border-radius:11px}
.brand-mark .mark-bg{fill:var(--soft-strong)}
.brand-mark .mark-lines{stroke:var(--accent);fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.brand-mark .mark-sand{fill:var(--accent)}
.brand-mark .mark-spark{fill:var(--chart)}
.brand>span{font-size:20px;line-height:1.1;letter-spacing:-.65px}
.brand-kicker{display:block;font-size:11px;letter-spacing:.35px;line-height:1.65;font-weight:500}
.mobile-brand .brand-mark{width:31px;height:31px;border-radius:8px}
.topbar-settings{width:40px;height:40px;min-height:40px;min-width:40px;color:var(--accent-ink);border:1px solid var(--line);border-radius:10px}
.topbar-settings[aria-current="page"]{background:var(--soft)}
.settings-left{display:grid;gap:24px;min-width:0}
.appearance-panel .panel-heading{align-items:flex-start;padding-bottom:20px}
.appearance-panel .panel-heading>.icon{color:var(--accent-ink)}
.theme-picker{border:0;padding:0 24px 24px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.theme-choice{position:relative;min-width:0;cursor:pointer}
.theme-option{display:block;border:2px solid var(--line);border-radius:12px;padding:7px 7px 11px;background:var(--surface);height:100%;transition:border-color .15s,box-shadow .15s}
.theme-choice input:checked+.theme-option{border-color:var(--accent);box-shadow:0 0 0 2px var(--soft)}
.theme-choice input:focus-visible+.theme-option{outline:3px solid var(--focus);outline-offset:3px}
.theme-preview{height:68px;display:block;background:var(--paper);border-radius:6px;padding:9px;overflow:hidden}
.theme-preview-top{display:flex;gap:3px;align-items:center;margin-bottom:8px}
.theme-preview-top i{display:block;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.theme-preview-top i+i{background:var(--bucket)}
.theme-preview-goal{display:block;width:100%;height:19px;border-radius:4px;background:var(--goal-bg);padding:6px}
.theme-preview-goal::after{content:"";display:block;width:60%;height:3px;border-radius:2px;background:var(--goal-fill)}
.theme-preview-bars{display:flex;gap:3px;align-items:flex-end;height:13px;padding-top:4px}
.theme-preview-bars i{display:block;width:20%;height:70%;background:var(--chart);border-radius:2px 2px 0 0}
.theme-preview-bars i:nth-child(2){height:100%;background:var(--bucket)}
.theme-preview-bars i:nth-child(3){height:50%}
.theme-name{display:flex;align-items:center;justify-content:space-between;gap:3px;margin:10px 2px 0;font-size:12px;font-weight:600;color:var(--ink);line-height:1.3}
.theme-name .icon{width:14px;height:14px;visibility:hidden;color:var(--accent);flex-shrink:0}
.theme-choice input:checked+.theme-option .theme-name .icon{visibility:visible}
.theme-description{display:block;margin:5px 2px 0;font-size:10px;line-height:1.4;color:var(--muted)}
.theme-help{margin:0 25px 22px;font-size:11px;color:var(--muted);line-height:1.6}
.chart-area-stop{stop-color:var(--chart)}
.chart-endpoint{fill:var(--chart);stroke:var(--surface);stroke-width:3}
@media(max-width:1200px){.brand-mark{width:38px;height:38px}.brand>span{font-size:18px}.theme-picker{padding-left:20px;padding-right:20px;gap:8px}.theme-name{font-size:11px}}
@media(max-width:980px){.brand-mark{width:34px;height:34px}.brand>span{font-size:17px}.brand-kicker{font-size:10px}.theme-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-name{font-size:13px}.theme-description{font-size:11px}}
@media(max-width:720px){.settings-left{gap:18px}.topbar-settings{width:40px;height:40px}.mobile-brand{font-size:16px;white-space:nowrap}.topbar-right{gap:8px}.save-indicator{margin-right:0}.save-label{display:none}.save-indicator .icon{width:15px;height:15px}.theme-picker{padding:0 20px 20px;gap:9px}.theme-option{padding:6px 6px 10px}.theme-name{font-size:12px;flex-wrap:wrap}.theme-description{font-size:10px}.theme-help{margin:0 20px 20px}.appearance-panel .panel-heading{padding-bottom:18px}}
@media(max-width:390px){.mobile-brand{font-size:15px;gap:7px}.topbar-right{gap:6px}.theme-picker{gap:7px}.theme-name{font-size:11px}.theme-name .icon{width:12px;height:12px}.theme-description{font-size:9px}}

/* Choose daily detail or monthly totals without leaving the logbook. */
.heading-actions{gap:8px}
.heading-actions:empty{display:none}
.field select{border:1px solid var(--line);padding:11px 12px;border-radius:7px;min-height:44px;background:var(--chrome);color:var(--ink);min-width:0;width:100%;font-size:15px}
.field select:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.workbook-notice{display:flex;align-items:center;gap:12px;background:var(--soft);border-color:var(--line);color:var(--accent-ink)}
.workbook-notice>span{flex:1}
.workbook-notice>.icon{width:18px;height:18px}
.view-toggle{display:flex;gap:5px;width:fit-content;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin:0 0 24px}
.view-toggle button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:500;min-height:42px;min-width:140px;padding:10px 18px}
.view-toggle button .icon{width:16px;height:16px}
.view-toggle button[aria-pressed="true"]{background:var(--surface);color:var(--accent-ink);box-shadow:0 2px 6px var(--shadow)}
.monthly-entry-panel .panel-heading{padding-bottom:10px}
.monthly-entry-help{font-size:11px;line-height:1.7;color:var(--muted);padding:0 25px 22px;max-width:680px}
.monthly-entry-table th:first-child>span{display:block;color:var(--ink);font-size:13px}
.monthly-entry-table th:first-child>small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}
.month-entry-edit{min-height:42px;min-width:49px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--chrome);color:var(--accent-ink);font-size:11px}
.month-entry-edit:hover{background:var(--soft)}
@media(max-width:720px){
  .page-heading:has(.heading-actions>.button+.button){flex-wrap:wrap}
  .heading-actions:has(>.button+.button){padding-top:0;width:100%;display:grid;grid-template-columns:1fr 1fr}
  .heading-actions:has(>.button+.button)>.button{min-height:44px;font-size:12px}
  .view-toggle{width:100%;margin-bottom:22px}
  .view-toggle button{flex:1;min-width:0;font-size:12px;min-height:44px}
  .monthly-entry-help{padding:0 20px 20px;font-size:11px}
  .monthly-entry-table{font-size:11px}
  .monthly-entry-table th,.monthly-entry-table td{padding:11px 7px}
  .monthly-entry-table th:first-child,.monthly-entry-table td:first-child{padding-left:16px}
  .monthly-entry-table th:last-child,.monthly-entry-table td:last-child{padding-right:12px;padding-left:3px}
  .monthly-entry-table th:first-child>span{font-size:12px}
  .monthly-entry-table th:first-child>small{font-size:9px}
  .monthly-entry-table thead th{font-size:9px}
  .monthly-entry-table tfoot{font-size:10px}
  .month-entry-edit{font-size:10px;min-width:42px;padding:6px}
  dialog .field select{font-size:16px}
}

.shared-status{display:flex;align-items:center;gap:9px;min-height:40px;padding:4px 40px;background:var(--soft);border-bottom:1px solid var(--line);color:var(--accent-ink);font-size:11px}
.shared-status[hidden]{display:none}
.shared-status>.icon{width:15px;height:15px}
.shared-status .shared-label{flex:1}
.shared-status .text-button{min-height:32px;font-size:11px;padding:4px 0}
.shared-status[data-status="waiting"],.shared-status[data-status="saving"]{background:var(--official-bg);color:var(--official-ink)}
.shared-status[data-status="error"],.shared-status[data-status="conflict"]{background:var(--negative-bg);color:var(--negative)}
.save-indicator[data-status="waiting"],.save-indicator[data-status="error"]{color:var(--official-ink)}
.sync-conflict h2{font-size:17px;margin-bottom:7px}
.sync-conflict p{font-size:12px}
.sync-conflict ul{padding-left:18px;margin:14px 0}
.sync-conflict li{margin:8px 0}
.sync-conflict li>span{display:block;font-size:11px}
.sync-conflict-actions{display:flex;gap:10px;flex-wrap:wrap}
#shared-history-list{margin-top:20px}
.history-version{display:flex;gap:12px;align-items:center;justify-content:space-between;width:100%;background:var(--surface);border:0;border-top:1px solid var(--line);padding:15px 0;font-size:11px;text-align:left;min-height:60px}
.history-version>span{flex:1;color:var(--ink)}
.history-version small{display:block;color:var(--muted);margin-top:5px}
.history-version>strong{font-variant-numeric:tabular-nums;color:var(--accent-ink);font-weight:550}
.history-version>.icon{width:14px;height:14px;color:var(--muted)}
@media(max-width:720px){.shared-status{padding:5px 20px;min-height:42px;font-size:10px}.shared-status .text-button{font-size:10px;min-height:36px}.sync-conflict-actions .button{white-space:normal;font-size:11px;min-height:44px;flex:1}}
