:root{color-scheme:light;--bg:#f3f5f7;--surface:#fff;--surface2:#f6f8fa;--text:#17212c;--muted:#657180;--line:#dde3e9;--accent:#bcef68;--accent-text:#22350a;--selected:#eaf4dc;--danger:#b63239;--shadow:0 12px 36px #1522380a}
:root[data-theme=dark]{color-scheme:dark;--bg:#10151d;--surface:#181f29;--surface2:#1e2733;--text:#edf2f7;--muted:#9da9b9;--line:#2c3745;--accent:#bcef68;--accent-text:#22350a;--selected:#293720;--danger:#ff9a9e;--shadow:0 12px 36px #0002}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#10151d;--surface:#181f29;--surface2:#1e2733;--text:#edf2f7;--muted:#9da9b9;--line:#2c3745;--accent:#bcef68;--accent-text:#22350a;--selected:#293720;--danger:#ff9a9e;--shadow:0 12px 36px #0002}}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding:6rem}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #70a92f;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.8rem,3.1vw,2.75rem);line-height:1.2;letter-spacing:-.045em;font-weight:720;overflow-wrap:anywhere}h2{font-size:1.25rem;line-height:1.4;letter-spacing:-.025em}h3{font-size:1rem}p{margin:.5rem 0}.muted{color:var(--muted)}.hint,small{font-size:.8125rem;line-height:1.5;color:var(--muted)}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.13em;color:var(--muted);margin:0 0 .7rem}.title-dot{color:#7ca932}.sidebar{position:fixed;width:232px;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:2.2rem 1.1rem;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.4rem;font-weight:750;letter-spacing:-.05em;padding:0 .6rem}.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-text);width:40px;height:40px;border-radius:12px;font-size:1.7rem;font-weight:800;letter-spacing:-.14em;padding-right:.18em;line-height:1}.brand-mark span{font-weight:650}.brand-mark.small{width:30px;height:30px;font-size:1.35rem;border-radius:9px}.brand-mark.large{width:64px;height:64px;font-size:2.6rem;border-radius:19px;margin-bottom:1.75rem}.sidebar-label{font-size:.6875rem;letter-spacing:.12em;color:var(--muted);font-weight:700;margin:3.5rem .75rem 1rem}.nav-link{display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;border-radius:10px;color:var(--muted);font-size:.9375rem;margin:.3rem 0}.nav-link span{font-size:1.3rem}.nav-link.selected{background:var(--selected);color:var(--text);font-weight:650}.sidebar-bottom{margin-top:auto;display:flex;gap:.7rem;align-items:center;border-top:1px solid var(--line);padding:1.2rem .4rem 0}.sidebar-bottom strong{font-size:.875rem;display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom small{display:block;font-size:.75rem}.avatar{display:grid;place-items:center;width:36px;height:36px;background:var(--surface2);border:1px solid var(--line);border-radius:50%;flex-shrink:0}.app-shell{margin-left:232px}.topbar{height:78px;padding:0 3rem;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem}.desktop-context{font-size:.6875rem;font-weight:650;letter-spacing:.1em;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:1rem}.network{font-size:.75rem;color:var(--muted);display:flex;align-items:center;gap:.5rem}.network i,.live-dot{width:6px;height:6px;background:#79b549;border-radius:50%;display:inline-block}.network.offline i{background:#d89b36}.icon-button{border:0;background:transparent;color:var(--text);width:44px;height:44px;font-size:1.5rem;display:inline-grid;place-items:center;border-radius:10px;flex-shrink:0}.icon-button:hover{background:var(--surface2)}main{max-width:1330px;margin:0 auto;padding:2.8rem 3rem 5rem}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-bottom:2.4rem}.page-heading p.muted{font-size:.9375rem;margin-top:.65rem}.page-heading.compact{margin-top:1.2rem;margin-bottom:2rem}.page-heading.compact h1{font-size:clamp(1.7rem,2.8vw,2.3rem);margin-top:.7rem}.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;padding:.65rem 1.1rem;border-radius:10px;border:1px solid transparent;font-size:.875rem;font-weight:650;white-space:nowrap}.button.primary{background:var(--accent);color:var(--accent-text)}.button.primary:hover{filter:brightness(.96)}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--text)}.wide{width:100%}.toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding-bottom:1.3rem;border-bottom:1px solid var(--line);margin-bottom:1.25rem}.segmented{display:flex;gap:.25rem;align-items:center;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:4px}.segmented a{padding:.5rem .85rem;color:var(--muted);font-size:.875rem;border-radius:7px}.segmented a.selected{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0001;font-weight:650}.search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;max-width:275px}.search input{border:0;background:transparent;width:100%;min-width:0;padding:.6rem .9rem;color:var(--text);font-size:.875rem}.section-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem;margin-bottom:1rem}.section-caption span+span{font-size:.625rem;letter-spacing:.08em}.order-list{display:grid;gap:1rem}.order-card{display:flex;gap:1.2rem;padding:1.5rem;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);transition:border-color .15s,transform .15s}.order-card:hover{border-color:#88ad58;transform:translateY(-1px)}.order-icon{width:45px;height:48px;border:1px solid var(--line);background:var(--surface2);border-radius:12px;display:grid;place-items:center;font-size:1.6rem;color:var(--muted)}.order-main{min-width:0;flex:1}.order-main h2{margin:.5rem 0 .2rem;overflow-wrap:anywhere}.order-main p{font-size:.875rem;color:var(--muted);margin:.2rem 0 .9rem}.order-meta{display:flex;gap:1.2rem;color:var(--muted);font-size:.75rem}.order-right{display:flex;flex-direction:column;justify-content:space-between;text-align:right;color:var(--muted);font-size:.75rem}.order-right>span{font-size:1.5rem}.badge{display:inline-flex;align-items:center;gap:.4rem;color:var(--muted);background:var(--surface2);border:1px solid var(--line);border-radius:5px;padding:.15rem .5rem;font-size:.6875rem;font-weight:650;letter-spacing:.02em}.badge.active,.badge.completed{color:#427322;background:var(--selected);border-color:transparent}.badge.active:before{content:"";width:5px;height:5px;border-radius:50%;background:#79b549}[data-theme=dark] .badge.active,[data-theme=dark] .badge.completed{color:var(--accent)}.empty-state{display:flex;min-height:420px;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:3rem 1rem}.empty-state p{max-width:350px;color:var(--muted);font-size:.9375rem;margin:.7rem 0 1.5rem}.empty-symbol{position:relative;font-size:3rem;color:var(--muted);background:var(--surface);border:1px solid var(--line);width:90px;height:90px;border-radius:25px;margin-bottom:1.5rem;display:grid;place-items:center;transform:rotate(-6deg)}.empty-symbol span{position:absolute;bottom:-5px;right:-5px;width:30px;height:30px;background:var(--accent);color:var(--accent-text);border:4px solid var(--bg);border-radius:10px;font-size:1rem;line-height:22px}.back-link{color:var(--muted);font-size:.875rem;display:inline-block;min-height:30px}.heading-meta{display:flex;align-items:center;gap:.65rem}.work-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:2rem;align-items:start}.timeline-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:.3rem 0 1.5rem}.timeline-heading h2{font-size:1rem}.timeline-heading .hint{font-size:.6875rem}.count{display:inline-grid;place-items:center;background:var(--surface2);color:var(--muted);font-size:.75rem;min-width:24px;height:24px;border-radius:6px;margin-left:.4rem}.panel{padding:1.5rem;background:var(--surface);border:1px solid var(--line);border-radius:15px;margin-bottom:1.25rem;box-shadow:var(--shadow)}.panel h2,.panel h3{margin-bottom:.65rem}.panel .muted{font-size:.875rem}.closeout-panel{border-top:3px solid #9dce53}.panel-icon{font-size:1.5rem;width:40px;height:40px;display:grid;place-items:center;background:var(--selected);border-radius:11px;margin-bottom:1.2rem;color:#78a939}.closeout-panel .eyebrow{font-size:.625rem}.closeout-panel form{display:grid;gap:1rem;margin-top:1.5rem}.closeout-panel .hint{font-size:.75rem;text-align:center;margin-top:1rem}.timeline-empty{border-left:1px solid var(--line);margin:1rem 0 2rem 12px;padding:1rem 1.5rem 2rem;position:relative}.timeline-empty .live-dot{position:absolute;left:-4px;top:1.5rem}.timeline-empty p{font-size:.9375rem;color:var(--muted);max-width:420px}.day-divider{font-size:.75rem;font-weight:650;color:var(--muted);margin:1.3rem 0 1.1rem}.timeline-item{position:relative;border-left:1px solid var(--line);margin-left:13px;padding:0 0 1.25rem 1.7rem}.timeline-marker{position:absolute;left:-14px;top:4px;width:27px;height:27px;border:4px solid var(--bg);border-radius:50%;background:var(--surface2);display:grid;place-items:center;color:var(--muted);font-size:.875rem;line-height:1}.type-issue .timeline-marker{background:#f5d68d;color:#6e4900}.type-check_in .timeline-marker,.type-check_out .timeline-marker{background:var(--accent);color:var(--accent-text)}.entry-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1rem 1.15rem}.entry-top{display:flex;justify-content:space-between;gap:.8rem;align-items:center;font-size:.75rem;color:var(--muted)}.entry-type{text-transform:capitalize;font-weight:650}.entry-top>div{display:flex;align-items:center;gap:.6rem}.edit-entry{border:0;background:transparent;color:var(--muted);font-size:.75rem;min-height:30px}.entry-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.7;margin:.4rem 0 .15rem}figure{margin:.9rem 0 0}figure img{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:8px}figcaption{font-size:.8125rem;color:var(--muted);margin-top:.5rem;overflow-wrap:anywhere}.composer{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:1.3rem;scroll-margin-bottom:6rem;margin-top:1rem}.composer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:.6rem}.composer-heading .hint{font-size:.6875rem}.entry-types{border:0;margin:0 0 .85rem;padding:0;display:flex;gap:.35rem;flex-wrap:wrap}.entry-types label{display:inline-block}.entry-types input{position:absolute;opacity:0;width:1px;height:1px}.entry-types span{display:block;font-size:.75rem;padding:.4rem .65rem;background:var(--surface2);border:1px solid var(--line);border-radius:7px;cursor:pointer;color:var(--muted)}.entry-types input:checked+span{background:var(--selected);border-color:#92b863;color:var(--text)}.entry-types input:focus-visible+span{outline:2px solid #70a92f}.composer textarea{background:transparent;border:0;padding:.3rem 0;min-height:105px}.composer-footer{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding-top:.8rem;margin-top:.3rem;border-top:1px solid var(--line)}.photo-button{position:relative;cursor:pointer;display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.875rem;min-height:44px;overflow:hidden}.photo-button span{font-size:1.35rem}.photo-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}#photo-fields{background:var(--surface2);border-radius:10px;padding:.8rem;margin:.5rem 0}#photo-preview{max-width:160px;max-height:160px;border-radius:8px;margin-top:.75rem}.text-button{border:0;background:transparent;color:var(--muted);padding:.5rem 0;font-size:.8125rem;min-height:44px}.report-link{display:flex;justify-content:space-between;gap:.7rem;padding:.9rem 0;border-top:1px solid var(--line);font-size:.875rem}.report-link small{display:block;margin-top:.25rem;font-size:.75rem}dl{margin:0}dt{color:var(--muted);font-size:.75rem;margin-top:1rem}dd{margin:.25rem 0;font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}label{display:grid;gap:.45rem;font-size:.875rem;font-weight:550}label small{font-weight:400}input:not([type=radio]):not([type=hidden]):not([type=file]),textarea,select{width:100%;border:1px solid var(--line);border-radius:9px;padding:.7rem .8rem;background:var(--surface2);color:var(--text);min-height:46px;font-size:1rem;max-width:100%}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}.stack{display:grid;gap:1.1rem}.stack>p{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.notice{padding:1rem 1.15rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:1.5rem;font-size:.875rem;overflow-wrap:anywhere}.notice.success{border-color:#7ca94b;background:var(--selected)}.notice.error{border-color:var(--danger);color:var(--danger)}.notice ul{padding-left:1.2rem;margin:.4rem 0 0}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:1.75rem;width:min(540px,calc(100% - 2rem));max-height:85dvh;box-shadow:0 24px 100px #0005;overscroll-behavior:contain}dialog::backdrop{background:#090f1980;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.dialog-heading h2{margin:0}.dialog-heading>.icon-button{margin:-.5rem}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}.settings-grid .panel{margin:0}.templates-panel{grid-column:1/-1}.template-details{border-top:1px solid var(--line);margin-top:1rem;padding-top:.25rem}summary{cursor:pointer;min-height:48px;padding:.75rem 0;font-size:.875rem}summary small{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:.2rem}.template-details>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem}.template-details>form{padding:1rem 0}.setting-block{border-top:1px solid var(--line);padding-top:1.3rem;margin-top:1.5rem}.mono,.report-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:.875rem!important}.report-editor{background:var(--surface)!important;min-height:65vh;padding:1.5rem!important;line-height:1.8;white-space:pre-wrap}.report-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.guest-shell{margin-left:0}.guest-shell .desktop-context{visibility:hidden}.auth-card{max-width:420px;margin:2rem auto;padding:2rem 0}.auth-card h1{font-size:2.4rem}.auth-card>.muted{margin:.75rem 0 2rem}.auth-card>.hint{text-align:center;margin-top:1.5rem}.guest-shell main{padding-top:1rem}.mobile-brand,.mobile-nav,.floating-log{display:none}.skip{position:fixed;left:1rem;top:-100px;background:var(--accent);color:#22350a;z-index:100;padding:.7rem}.skip:focus{top:1rem}.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}.toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:.8rem 1.25rem;border-radius:12px;font-size:.875rem;z-index:100;box-shadow:var(--shadow);max-width:90vw}.pagination{margin:1rem 0}.pagination svg{max-width:20px}#print-content{display:none}
@media(min-width:1500px){main{padding-top:3.5rem}.work-layout{gap:3rem;grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1150px){.sidebar{width:200px}.app-shell{margin-left:200px}.guest-shell{margin-left:0}main{padding:2rem}.topbar{padding:0 2rem}.work-layout{grid-template-columns:minmax(0,1fr) 260px;gap:1.25rem}.panel{padding:1.1rem}.timeline-heading{align-items:flex-start;flex-direction:column;gap:.3rem}}
@media(max-width:850px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:68px;padding:env(safe-area-inset-top) 1.25rem 0;min-height:calc(68px + env(safe-area-inset-top));background:var(--bg);position:sticky;top:0;z-index:10}.desktop-context{display:none}.mobile-brand{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:750;letter-spacing:-.04em}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:.45rem 1rem calc(.45rem + env(safe-area-inset-bottom));z-index:20}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.05rem;color:var(--muted);font-size:.6875rem;min-width:100px;min-height:46px}.mobile-nav a span{font-size:1.4rem;line-height:1.2}.mobile-nav a.selected{color:var(--text);font-weight:650}.mobile-nav a.selected span{color:#7ca932}main{padding:1.8rem 1.25rem calc(7rem + env(safe-area-inset-bottom))}.work-layout{grid-template-columns:minmax(0,1fr) 270px;gap:1.5rem}.timeline-heading{flex-direction:column}.page-heading h1{font-size:2rem}.page-heading{margin-bottom:1.8rem}.settings-grid{gap:1rem}.toast{bottom:calc(6rem + env(safe-area-inset-bottom))}}
@media(max-width:650px){.page-heading{align-items:flex-start;flex-wrap:wrap;gap:1rem}.page-heading>.button.primary{width:100%}.page-heading.compact{gap:.75rem}.page-heading.compact>.button{min-height:38px;padding:.4rem .75rem;font-size:.8125rem}.page-heading.compact h1{font-size:1.85rem}.page-heading p.muted{font-size:.875rem}.toolbar{align-items:stretch;flex-direction:column;gap:.85rem}.segmented{align-self:flex-start}.search{max-width:none}.search input{font-size:1rem}.work-layout{display:flex;flex-direction:column;gap:1.5rem}.timeline-section,.work-aside{width:100%}.timeline-heading{flex-direction:row;align-items:center;gap:.5rem}.timeline-heading .hint{font-size:.625rem;max-width:110px;text-align:right}.timeline-item{padding-left:1.25rem;margin-left:9px}.timeline-marker{left:-12px;width:23px;height:23px}.entry-card{padding:.8rem .9rem}.entry-body{font-size:1rem}.entry-top>div{gap:.3rem}.entry-top time{font-size:.6875rem}.composer{padding:1rem}.composer-heading .hint{font-size:.625rem}.composer-footer{gap:.5rem}.work-aside .panel{padding:1.3rem}.floating-log{display:inline-flex;position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));right:1rem;z-index:15;box-shadow:0 5px 20px #0003;min-height:46px;border-radius:30px}.floating-log.in-view{display:none}.order-card{padding:1.1rem;gap:.8rem}.order-icon{display:none}.order-main h2{font-size:1.1rem}.order-main p{font-size:.8125rem}.order-right{max-width:80px;font-size:.6875rem}.empty-state{min-height:340px;padding:2rem .5rem}.settings-grid{grid-template-columns:1fr;gap:1rem}.templates-panel{grid-column:auto}.templates-panel>.dialog-heading{align-items:flex-start;flex-direction:column}.settings-grid .panel{padding:1.3rem}.settings-grid h2{font-size:1.125rem}.form-grid{grid-template-columns:1fr}dialog{max-height:90dvh;padding:1.25rem;border-radius:20px 20px 0 0;width:100%;max-width:none;margin:auto 0 0;max-height:calc(100dvh - env(safe-area-inset-top) - 2rem);padding-bottom:calc(1.5rem + env(safe-area-inset-bottom))}.auth-card{margin:1rem auto;padding:1rem .25rem}.auth-card h1{font-size:2.1rem}.guest-shell .topbar{position:static}.report-editor{padding:1rem!important;font-size:.875rem!important;min-height:65dvh}.report-actions{display:grid;grid-template-columns:1fr 1fr}.report-actions .button{padding:.65rem .5rem;font-size:.8125rem}.report-actions+.hint{margin-bottom:1rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.entry-types span{font-size:.875rem;min-height:44px;display:flex;align-items:center}.edit-entry{min-height:44px;font-size:.8125rem}
@media print{body{background:#fff;color:#000}.sidebar,.topbar,.mobile-nav,.floating-log,.back-link,.page-heading,.notice,#report-form,.toast,.skip{display:none!important}.app-shell{margin:0}main{padding:0;max-width:none}#print-content{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font:11pt/1.5 monospace;margin:0}@page{margin:18mm}}
