:root{--navy:#1c2b4a;--navy-soft:#2a3d63;--gold:#c49a1a;--bg:#f4f3ef;--surface:#fff;--text:#1c2b4a;--muted:#5d6679;--line:#dcdad2;--ok-bg:#e6f4ea;--ok-text:#1e5b32;--error-bg:#fdeaea;--error-text:#8f1d1d;--radius:10px;--sidebar-width:220px;--topbar-height:56px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45}h1{margin:0 0 1rem;font-size:1.5rem}h2{margin:1.25rem 0 .5rem;font-size:1.1rem}h2:first-child{margin-top:0}a{color:var(--navy)}code{background:#ecebe5;border-radius:4px;padding:.1em .35em}.muted{color:var(--muted)}.stack{gap:1rem;display:grid}label{gap:.25rem;margin-bottom:.9rem;font-size:.9rem;font-weight:600;display:grid}input:not([type=checkbox]):not([type=radio]){font:inherit;border:1px solid var(--line);color:var(--text);background:#fff;border-radius:8px;width:100%;min-height:44px;padding:.6rem .7rem;font-weight:400}input:focus-visible,button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb, var(--gold) 55%, transparent);outline-offset:1px}label.check{align-items:flex-start;gap:.6rem;margin-bottom:.6rem;font-weight:400;display:flex}label.check input{width:1.1rem;height:1.1rem;margin-top:.2rem}.btn{font:inherit;text-align:center;border:1px solid var(--line);min-height:44px;color:var(--navy);cursor:pointer;background:#fff;border-radius:8px;padding:.6rem 1rem;font-weight:600;text-decoration:none;display:inline-block}.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn.primary:hover:not(:disabled){background:var(--navy-soft)}.btn.small{min-height:36px;padding:.3rem .7rem;font-size:.85rem}.btn:disabled{opacity:.6;cursor:default}.notice{border-radius:8px;margin:0 0 .9rem;padding:.6rem .8rem;font-size:.9rem}.notice.ok{background:var(--ok-bg);color:var(--ok-text)}.notice.error{background:var(--error-bg);color:var(--error-text)}.notice p{margin:0 0 .5rem}.notice input{margin-bottom:.5rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem}.card.narrow{width:100%;max-width:400px}.card.narrow h1{color:var(--navy);border-bottom:3px solid var(--gold);padding-bottom:.5rem;display:inline-block}.center-screen{place-items:center;min-height:100dvh;padding:1rem;display:grid}.app-shell{min-height:100dvh}.topbar{z-index:20;height:var(--topbar-height);background:var(--navy);color:#fff;align-items:center;gap:.75rem;padding:0 1rem;display:flex;position:sticky;top:0}.brand{font-size:1.1rem;font-weight:700}.brand span{color:var(--gold)}.topbar-user{align-items:center;gap:.5rem;margin-left:auto;font-size:.9rem;display:flex}.user-name{display:none}.menu-button{color:#fff;cursor:pointer;background:0 0;border:0;min-width:44px;min-height:44px;font-size:1.4rem}.avatar{background:var(--gold);width:32px;height:32px;color:var(--navy);border-radius:50%;flex:none;place-items:center;font-size:.75rem;font-weight:700;display:inline-grid}.sidebar{top:var(--topbar-height);z-index:15;background:var(--navy);flex-direction:column;gap:.25rem;padding:1rem;display:none;position:fixed;bottom:0;left:0;right:0;overflow-y:auto}.sidebar.open{display:flex}.sidebar a{color:#dfe4ee;border-radius:8px;padding:.75rem .9rem;text-decoration:none}.sidebar a.active{background:var(--navy-soft);color:#fff;box-shadow:inset 3px 0 0 var(--gold)}.sidebar .logout{font:inherit;text-align:left;color:#dfe4ee;cursor:pointer;background:0 0;border:1px solid #44567d;border-radius:8px;min-height:44px;margin-top:auto;padding:.75rem .9rem}.content{max-width:960px;padding:1rem}@media (width>=800px){.menu-button{display:none}.user-name{display:inline}.sidebar{width:var(--sidebar-width);display:flex;right:auto}.content{margin-left:var(--sidebar-width);padding:1.5rem 2rem}}.tabs{border-bottom:1px solid var(--line);gap:.5rem;margin-bottom:1rem;display:flex}.tabs a{color:var(--muted);border-bottom:3px solid #0000;margin-bottom:-1px;padding:.6rem .9rem;text-decoration:none}.tabs a.active{color:var(--navy);border-bottom-color:var(--gold);font-weight:600}.member-list{margin:0;padding:0;list-style:none}.member-list li{border-bottom:1px solid var(--line);align-items:center;gap:.75rem;padding:.6rem 0;display:flex}.member-list li:last-child{border-bottom:0}.member-info{flex:1;min-width:0;display:grid}.member-info small{text-overflow:ellipsis;overflow:hidden}.badge{color:var(--muted);background:#ecebe5;border-radius:999px;padding:.15rem .5rem;font-size:.75rem}fieldset.choice{border:0;margin:0 0 .9rem;padding:0}fieldset.choice legend{margin-bottom:.4rem;padding:0;font-size:.9rem;font-weight:600}textarea,select{font:inherit;border:1px solid var(--line);color:var(--text);background:#fff;border-radius:8px;width:100%;min-height:44px;padding:.6rem .7rem;font-weight:400}textarea:focus-visible{outline:3px solid color-mix(in srgb, var(--gold) 55%, transparent);outline-offset:1px}.small{font-size:.85rem}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.page-head h1,.page-head h2{margin:0 0 .5rem}.button-row{flex-wrap:wrap;gap:.5rem;display:flex}.btn.danger,.link-button.danger{color:var(--error-text)}.link-button{font:inherit;color:var(--navy);cursor:pointer;background:0 0;border:0;min-height:32px;padding:.35rem .25rem;font-size:.85rem;text-decoration:underline}.form-row{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:0 1rem;display:grid}.notice.warn{color:#6b4e00;background:#fff4d6}.notice.warn a{color:inherit;font-weight:600}.toolbar{flex-wrap:wrap;gap:.75rem;margin-bottom:1rem;display:flex}.toolbar input[type=search]{flex:1;width:auto;min-width:160px}.segmented{border:1px solid var(--line);background:#fff;border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{font:inherit;cursor:pointer;min-height:44px;color:var(--muted);background:0 0;border:0;padding:.55rem .9rem}.segmented button.active{background:var(--navy);color:#fff}.event-list{gap:.6rem;margin:0 0 1rem;padding:0;list-style:none;display:grid}.event-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--text);grid-template-columns:1fr auto;align-items:center;gap:.4rem .75rem;padding:.8rem 1rem;text-decoration:none;display:grid}.event-card:hover{border-color:var(--gold)}.event-card-main{min-width:0;display:grid}.event-card .progress-wrap{grid-column:1/-1}.countdown{white-space:nowrap;border-radius:999px;padding:.2rem .6rem;font-size:.8rem;font-weight:700}.tone-urgent{color:#8f1d1d;background:#fbdcdc}.tone-soon{color:#7a4b00;background:#ffe9c7}.tone-later{color:#6b4e00;background:#fff4d6}.tone-far{color:#1e5b32;background:#e6f4ea}.tone-past{color:var(--muted);background:#ecebe5}.progress-wrap{align-items:center;gap:.6rem;display:flex}.progress{background:#ecebe5;border-radius:999px;flex:1;height:8px;overflow:hidden}.progress-fill{background:var(--gold);height:100%}.progress-text{color:var(--muted);text-align:right;min-width:3ch;font-size:.8rem}.template-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.6rem;display:grid}.template-card{font:inherit;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;color:var(--text);gap:.2rem;padding:.8rem;display:grid}.template-card.active{border-color:var(--navy);box-shadow:inset 0 0 0 2px var(--navy)}.phase h3{color:var(--navy);margin:1rem 0 .4rem;font-size:1rem}.preview-list,.task-list,.subtasks,.today-list{margin:0;padding:0;list-style:none}.preview-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.4rem 0;display:flex}.preview-title{min-width:0;display:grid}.preview-list select{flex:none;width:5.5rem}.event-head{margin-bottom:1rem}.task{border-bottom:1px solid var(--line);padding:.4rem 0}.task.done .task-title{color:var(--muted);text-decoration:line-through}.task-line{align-items:center;gap:.6rem;display:flex}.task-check{flex:none;width:1.35rem;height:1.35rem}.task-body{flex:1;min-width:0;display:grid}.task-due{color:var(--muted);white-space:nowrap;font-size:.85rem}.task-due.late{color:var(--error-text);font-weight:700}.task-actions{gap:.25rem;display:none}.task:hover>.task-line .task-actions,.task:focus-within>.task-line .task-actions{display:inline-flex}@media (hover:none){.task-actions{display:inline-flex}}.subtasks{margin:.25rem 0 .25rem 1.6rem}.subtasks .task{border-bottom:0;padding:.15rem 0}.avatar.small{width:26px;height:26px;font-size:.65rem}.avatar.empty{border:1px dashed var(--line);background:0 0}.overlay{z-index:40;background:#1c2b4a73;place-items:start center;padding:1rem;display:grid;position:fixed;inset:0;overflow-y:auto}.dialog{width:100%;max-width:560px;margin:1rem 0}.due-preview{align-self:center;margin:0 0 .9rem}.today-section{margin-bottom:1rem}.today-list li a{background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:.4rem;padding:.55rem .8rem;text-decoration:none;display:grid}.count{vertical-align:middle;background:#ecebe5;border-radius:999px;padding:.1rem .5rem;font-size:.75rem}.count.late{color:#8f1d1d;background:#fbdcdc}@media print{.topbar,.sidebar,.no-print{display:none!important}.content{max-width:none;margin:0;padding:0}body{background:#fff}.card{border:0;padding:0}.task-actions{display:none!important}}.facts{grid-template-columns:max-content 1fr;gap:.2rem 1rem;margin:.5rem 0;display:grid}.facts dt{color:var(--muted);font-size:.85rem}.facts dd{margin:0}.struck{color:var(--muted);text-decoration:line-through}.toolbar select{width:auto;min-width:180px}.company-chips{flex-wrap:wrap;gap:.4rem;margin:.4rem 0 .8rem;display:flex}.task-actions.always{flex-wrap:wrap;display:inline-flex}.filters{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0 1rem;margin-bottom:1rem;display:grid}.audit-list,.audit-changes{margin:0;padding:0;list-style:none}.audit-list>li{border-bottom:1px solid var(--line);padding:.6rem 0}.audit-head{flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;display:flex}.audit-changes{margin:.25rem 0 0 .75rem;font-size:.9rem}.tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;min-height:44px;margin-bottom:-1px;padding:.6rem .9rem}.tabs button.active{color:var(--navy);border-bottom-color:var(--gold);font-weight:600}
