:root{--bg:#f6f3ee;--fg:#2b2724;--muted:#7a716a;--line:#e2dcd3;color:var(--fg);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}h1{margin:0 0 8px;font-size:1.5rem}p{color:var(--muted)}.auth{place-items:center;min-height:100dvh;padding:16px;display:grid}.auth-card{flex-direction:column;gap:16px;width:100%;max-width:400px;display:flex}.auth-card form{flex-direction:column;gap:12px;display:flex}.field{flex-direction:column;gap:4px;font-size:.9rem;display:flex}input,button{font:inherit}.field input{border:1px solid var(--line);color:var(--fg);background:#fff;border-radius:8px;padding:10px 12px}button{border:1px solid var(--fg);background:var(--fg);min-height:44px;color:var(--bg);cursor:pointer;border-radius:8px;padding:0 16px}button:disabled{opacity:.5;cursor:default}.link-button{color:var(--fg);background:0 0;border-color:#0000;text-decoration:underline}.form-error{color:#9b2c2c;margin:0}.org-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.org-list button{width:100%;color:var(--fg);border-color:var(--line);text-align:left;background:0 0}.shell{grid-template-rows:auto 1fr auto;grid-template-areas:"header""main""nav";min-height:100dvh;display:grid}.shell-header{z-index:2;padding:calc(env(safe-area-inset-top) + 8px) 16px 8px;background:var(--bg);border-bottom:1px solid var(--line);grid-area:header;justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.shell-org{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.shell-main{grid-area:main;min-width:0;padding:16px}.shell-nav{padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--line);grid-area:nav;grid-template-columns:repeat(5,1fr);display:grid;position:sticky;bottom:0}.shell-tab{min-height:56px;color:var(--muted);place-items:center;font-size:.8rem;text-decoration:none;display:grid}.shell-tab.active{color:var(--fg);font-weight:600}.menu{position:relative}.menu-button{min-height:40px;color:var(--fg);border-color:var(--line);background:0 0}.menu-list{border:1px solid var(--line);background:#fff;border-radius:8px;flex-direction:column;min-width:200px;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 4px 16px #00000014}.menu-list button{color:var(--fg);text-align:left;background:0 0;border:0}@media (width>=768px){.shell{grid-template:"header header""nav main"1fr/200px 1fr}.shell-nav{border-top:0;border-right:1px solid var(--line);flex-direction:column;align-self:start;gap:4px;min-height:calc(100dvh - 57px);padding:16px 8px;display:flex;position:sticky;top:57px}.shell-tab{border-radius:8px;place-items:center start;min-height:44px;padding:0 12px;font-size:1rem}.shell-tab.active{background:var(--line)}.shell-main{width:100%;max-width:720px;padding:24px}}.page{flex-direction:column;gap:16px;display:flex}.row{flex-wrap:wrap;gap:8px;display:flex}.row>.field,.row>button{flex:1 1 0;min-width:0}.field select,.field textarea,.field input:not([type=checkbox]){border:1px solid var(--line);width:100%;min-height:44px;color:var(--fg);font:inherit;background:#fff;border-radius:8px;padding:10px 12px}.check{align-items:center;gap:8px;min-height:44px;display:flex}.check input{width:20px;height:20px}button.secondary{color:var(--fg);border-color:var(--line);background:#fff}button.small{min-height:36px;padding:0 12px;font-size:.9rem}.num{font-variant-numeric:tabular-nums}.badge{color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 8px;font-size:.75rem}.entry-form{border:1px solid var(--line);background:#fff;border-radius:8px;flex-direction:column;gap:12px;padding:12px;display:flex}.day{flex-direction:column;gap:4px;display:flex}.day-head{justify-content:space-between;gap:8px;margin:8px 0 0;font-size:1rem;display:flex}.entry-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.entry{border-bottom:1px solid var(--line);grid-template-columns:1fr auto;gap:4px 12px;padding:10px 0;display:grid}.entry>.entry-form{grid-column:1/-1}.entry-main,.entry-side{flex-direction:column;gap:2px;min-width:0;display:flex}.entry-side{text-align:right;align-items:flex-end}.entry-title{font-weight:600}.entry-sub{color:var(--muted);font-size:.9rem}.entry-note{overflow-wrap:anywhere;font-size:.9rem}.entry-actions{grid-column:1/-1;gap:8px;display:flex}.timer{left:0;right:0;bottom:calc(57px + env(safe-area-inset-bottom));z-index:1;background:var(--bg);border-top:1px solid var(--line);flex-direction:column;gap:8px;padding:12px 16px;display:flex;position:fixed;box-shadow:0 -4px 12px #0000000d}.timer .row>button,.timer-form>button{min-height:52px;font-size:1.05rem}.timer-form{flex-direction:column;gap:8px;display:flex}.timer-form .field>span{color:var(--muted);font-size:.8rem}.timer-readout{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.timer-clock{font-variant-numeric:tabular-nums;font-size:1.75rem;font-weight:600}.timer-what{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.timer-notice{color:var(--fg);margin:0;font-size:.9rem}.has-timer{padding-bottom:200px}@media (width>=768px){.timer{border:1px solid var(--line);box-shadow:none;border-radius:8px;padding:16px;position:static}.has-timer{padding-bottom:0}}.person{flex-direction:column;margin-top:4px;display:flex}.person-head{color:var(--muted);justify-content:space-between;gap:8px;margin:8px 0 0;font-size:.9rem;font-weight:600;display:flex}.name-form{flex-direction:column;gap:8px;min-width:260px;padding:8px;display:flex}.name-form button{background:var(--fg);color:var(--bg);border:1px solid var(--fg);text-align:center}.name-form button.secondary{color:var(--fg);border-color:var(--line);background:#fff}.segmented{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.segmented button{padding:0 4px;font-size:.9rem}.segmented button[aria-pressed=true]{background:var(--fg);color:var(--bg);border-color:var(--fg)}.task-add{flex-direction:column;gap:8px;display:flex}.task-add .task-add-title{flex:2 12rem}.task-add .task-add-due{flex:9rem}.task{border-bottom:1px solid var(--line);grid-template-columns:auto 1fr auto;align-items:start;gap:4px 12px;padding:10px 0;display:grid}.task-check{width:24px;height:24px;margin:10px 0 0}.task-title{min-height:44px;color:var(--fg);text-align:left;overflow-wrap:anywhere;background:0 0;border:0;align-items:center;padding:0;font-weight:600;display:flex}span.task-title{min-height:0;padding-top:10px}.task[data-done=true] .task-title{color:var(--muted);font-weight:400;text-decoration:line-through}.task .entry-sub{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.badge.overdue{color:#9b2c2c;border-color:#e3b7b7}.task-move{gap:4px;display:flex}.task-move button{min-width:44px;min-height:44px;padding:0}.segmented.two{grid-template-columns:repeat(2,1fr)}.notes-bar{align-items:stretch;gap:8px;display:flex}.notes-bar .segmented{flex:auto}.note-item{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--fg);text-align:left;background:0 0;border-radius:0;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 0;display:flex}.note-item .entry-note{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.note-item .entry-sub{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.back{align-self:flex-start}.note-form textarea{resize:vertical;min-height:12rem}.note-help{margin:0;font-size:.9rem}.note-help[data-visibility=org]{color:var(--fg);font-weight:600}.note-actions{align-items:center;gap:8px;display:flex}.note-status{color:var(--muted);flex:auto;font-size:.9rem}.note-body{white-space:pre-wrap;overflow-wrap:anywhere}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.agent{padding-bottom:96px}.agent-disclosure{border:1px solid var(--line);color:var(--fg);background:#fff;border-radius:8px;margin:0;padding:10px 12px;font-size:.9rem}.agent-chips{flex-wrap:wrap;gap:8px;display:flex}.agent-turns{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.agent-turn{flex-direction:column;gap:2px;max-width:90%;display:flex}.agent-turn[data-role=user]{text-align:right;align-self:flex-end}.agent-who{color:var(--muted);font-size:.8rem}.agent-text{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 12px}.agent-turn[data-role=user] .agent-text{background:var(--fg);color:var(--bg);border-color:var(--fg)}.agent-pending,.agent-empty{color:var(--muted)}.agent-end{scroll-margin-bottom:calc(57px + 72px + env(safe-area-inset-bottom))}.agent-ask{left:0;right:0;bottom:calc(57px + env(safe-area-inset-bottom));z-index:1;background:var(--bg);border-top:1px solid var(--line);gap:8px;padding:8px 16px;display:flex;position:fixed}.agent-ask .field{flex:auto}@media (width>=768px){.agent{padding-bottom:0}.agent-ask{border-top:0;padding:0;position:static}.agent-end{scroll-margin-bottom:0}}.shell-tab.bar-rail{display:none}@media (width>=768px){.shell-tab.bar-rail{display:grid}.shell-tab.bar-bottom{display:none}}.more-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.more-item{border:1px solid var(--line);width:100%;min-height:52px;color:var(--fg);text-align:left;background:0 0;border-radius:8px;align-items:center;padding:0 16px;font-size:1rem;text-decoration:none;display:flex}.project-form,.client-add{flex-direction:column;gap:12px;display:flex}.client-add{border:1px solid var(--line);border-radius:8px;padding:12px}.project-fields{grid-template-columns:max-content 1fr;gap:8px 16px;margin:0;display:grid}.project-fields dt{color:var(--muted)}.project-fields dd{flex-direction:column;gap:2px;margin:0;display:flex}.project-detail h2{margin:8px 0;font-size:1rem}.nag{color:var(--muted);margin:0;font-size:.9rem}.badge.client{color:var(--fg)}
