:root{--bg:#f7f6f3;--surface:#fff;--surface2:#f5f3ef;--line:#e7e4df;--text:#292527;--muted:#777176;--brand:#711e36;--brand-soft:#f5e8ec;--gold:#9a7945;--success:#3c735f;--success-soft:#eaf3ee;--warning:#886328;--shadow:0 14px 40px #25101c08;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
:root[data-theme=dark]{--bg:#181719;--surface:#211f22;--surface2:#29262a;--line:#353136;--text:#f0e9eb;--muted:#aaa1a8;--brand:#e5a6b8;--brand-soft:#3a2430;--gold:#d2b37e;--success:#9ac5ad;--success-soft:#25362d;--warning:#d8b778;--shadow:0 14px 40px #0002}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--brand);text-decoration:none}button{color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:34px;font-weight:550;line-height:1.2;letter-spacing:-1.1px}h2{font-size:18px;font-weight:600;letter-spacing:-.4px}h3{font-size:15px;font-weight:600}small,.tiny{font-size:11px;color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.muted{color:var(--muted)}.error{color:#b54452}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--surface);border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;z-index:10}.wordmark{display:flex;gap:12px;align-items:center;color:var(--text);font-size:20px;font-weight:750;letter-spacing:2px;padding:0 10px}.wordmark small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;margin-top:1px}.brand-mark{background:#711e36;border-radius:19px;width:68px;height:68px;font-family:Georgia,serif;color:white;font-size:58px;line-height:62px;letter-spacing:-9px;padding-left:14px;position:relative}.brand-mark span{color:#e0bd85;font-size:22px;position:absolute;right:12px;top:-1px}.brand-mark.small{width:38px;height:40px;border-radius:11px;font-size:36px;line-height:36px;padding-left:7px;letter-spacing:-5px}.brand-mark.small span{font-size:15px;right:6px;top:-1px}.workspace-label{font-size:10px;letter-spacing:.3px;margin:38px 8px 15px;color:var(--muted);display:flex;align-items:center;gap:7px}.workspace-dot{width:6px;height:6px;border-radius:50%;background:var(--gold)}#nav{display:grid;gap:3px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:9px;font-size:12px;color:var(--muted);border:0;background:none;text-align:left}.nav-item:hover{background:var(--surface2);color:var(--text)}.nav-item.active{background:var(--brand-soft);color:var(--brand);font-weight:650}.nav-item svg{width:17px;height:17px;stroke-width:1.6}.nav-count{margin-left:auto;background:var(--brand);color:var(--surface);font-size:9px;padding:0 5px;border-radius:4px}.nav-divider{height:1px;background:var(--line);margin:10px}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.sidebar-bottom .tiny{font-size:9px;letter-spacing:1px}.sidebar-bottom strong{display:block;font-size:18px;margin-top:4px}.sidebar-bottom strong span{font-size:11px;font-weight:400;color:var(--muted)}.mini-track{height:4px;background:var(--surface2);border-radius:9px;overflow:hidden;margin-top:12px}.mini-track i{display:block;height:100%;background:var(--gold);width:0}.sidebar-bottom p{font-size:10px;color:var(--muted);margin-top:8px}.text-button{border:0;background:none;padding:0;font-size:11px;color:var(--muted);margin-top:20px;display:flex;gap:8px}.main-wrap{grid-column:2;min-width:0}.topbar{height:80px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--bg)}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 13px;color:var(--line)}.breadcrumb strong{font-weight:500;color:var(--text)}.top-actions{display:flex;align-items:center;gap:16px}.pill{display:inline-flex;align-items:center;gap:7px;font-size:10px;border:1px solid var(--line);padding:5px 10px;border-radius:20px;white-space:nowrap}.pill:before{content:"";width:5px;height:5px;background:var(--gold);border-radius:50%}.pill.green:before{background:var(--success)}.avatar{width:31px;height:31px;border-radius:50%;border:1px solid var(--line);background:var(--brand-soft);color:var(--brand);font-size:12px}.icon-button{width:31px;height:31px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:18px;display:grid;place-items:center}main{padding:38px 40px 20px;max-width:1600px;margin:auto;min-height:calc(100dvh - 143px)}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:30px}.page-head .eyebrow{margin-bottom:12px}.page-head p:not(.eyebrow){font-size:12px;color:var(--muted);margin-top:10px;max-width:520px;line-height:1.7}.head-actions{display:flex;gap:10px;padding-top:25px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:1px solid var(--line);padding:9px 15px;border-radius:9px;background:var(--surface);font-size:11px;font-weight:550;white-space:nowrap}.button.primary{background:var(--brand);border-color:var(--brand);color:var(--surface)}.button.danger{color:#b54452;border-color:#c65d6c50}.button svg{width:15px;height:15px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow)}.stat-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.stat-label svg{width:16px;height:16px;color:var(--gold)}.stat-value{font-size:28px;font-weight:550;letter-spacing:-.8px;margin:14px 0 6px;line-height:1}.stat-value small{font-size:13px;font-weight:400;letter-spacing:0}.stat-note{font-size:10px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:22px;align-items:start}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;box-shadow:var(--shadow);margin-bottom:22px}.panel-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.panel-head h2{font-size:14px}.panel-head .text-link{font-size:10px;color:var(--brand);background:none;border:0}.panel-body{padding:22px}.hero-panel{position:relative;padding:26px;background:#711e36;color:#fff;border-radius:var(--radius);margin-bottom:22px;overflow:hidden;min-height:178px}.hero-panel .eyebrow{color:#e1b8c5;font-size:9px}.hero-panel h2{font-size:25px;font-weight:450;line-height:1.3;max-width:360px;margin:12px 0 20px}.hero-panel p{font-size:11px;color:#e8cbd4;max-width:365px}.hero-panel .hero-line{position:absolute;border:1px solid #ffffff18;width:220px;height:220px;border-radius:50%;right:-90px;top:-38px}.hero-panel .hero-line:after{content:"";position:absolute;inset:23px;border:1px solid #ffffff18;border-radius:50%}.hero-panel .button{margin-top:20px;background:#ffffff14;border-color:#ffffff35;color:#fff}.status-tag{font-size:9px;color:var(--brand);background:var(--brand-soft);padding:3px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:6px}.status-tag.good{color:var(--success);background:var(--success-soft)}.status-tag.warn{color:var(--warning);background:var(--surface2)}.empty{padding:32px 22px;text-align:center}.empty-symbol{border:1px solid var(--line);border-radius:13px;width:44px;height:44px;margin:0 auto 15px;display:grid;place-items:center;color:var(--gold);background:var(--surface2)}.empty-symbol svg{width:22px;height:22px}.empty h3{font-size:13px;font-weight:550;margin-bottom:7px}.empty p{font-size:11px;color:var(--muted);max-width:325px;margin:0 auto;line-height:1.75}.empty .button{margin-top:17px}.split{display:flex;align-items:center;justify-content:space-between;gap:15px}.metric-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:10px 0}.metric-row+.metric-row{border-top:1px solid var(--line)}.metric-row span:first-child{color:var(--muted)}.metric-row strong{font-weight:550}.budget-donut{display:flex;justify-content:center;position:relative;margin:3px 0 18px}.budget-donut svg{width:145px;height:145px;transform:rotate(-90deg)}.donut-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut-label strong{font-size:24px;font-weight:500;letter-spacing:-.5px}.donut-label span{font-size:9px;color:var(--muted)}.notice{border:1px solid var(--line);background:var(--surface2);padding:13px 15px;border-radius:10px;font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 20px;display:flex;gap:12px}.notice svg{width:17px;height:17px;flex-shrink:0;color:var(--gold);margin-top:2px}.notice strong{color:var(--text);font-weight:550}.list-row{display:flex;gap:13px;padding:17px 22px;align-items:center;cursor:pointer}.list-row+.list-row{border-top:1px solid var(--line)}.list-row:hover{background:var(--surface2)}.row-icon{width:34px;height:34px;border-radius:10px;background:var(--surface2);display:grid;place-items:center;color:var(--brand);flex-shrink:0}.row-icon svg{width:16px;height:16px}.row-main{flex:1;min-width:0}.row-main strong{font-size:12px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis}.row-main p{font-size:10px;color:var(--muted);margin-top:3px}.chevron{color:var(--muted);font-size:16px}.activity{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.activity:last-child{border:0}.activity-dot{width:7px;height:7px;margin:6px 0 0;flex-shrink:0;background:var(--gold);border-radius:50%}.activity .tiny{margin-top:3px;display:block;font-size:9px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.role-card{border:1px solid var(--line);background:var(--surface);padding:22px;border-radius:var(--radius)}.role-card .row-icon{width:40px;height:40px;border-radius:12px;margin-bottom:18px}.role-card h3{margin:5px 0 7px}.role-card p{font-size:11px;color:var(--muted);min-height:35px}.role-card .split{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:10px}.role-card button{border:0;padding:0;background:none;color:var(--brand);font-size:11px}.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:16px;overflow:auto;padding-bottom:18px}.board-col{min-height:380px;background:var(--surface2);border-radius:13px;padding:13px 10px}.board-title{font-size:11px;display:flex;align-items:center;gap:8px;padding:3px 4px 14px}.board-title span{background:var(--surface);font-size:9px;border-radius:5px;min-width:20px;text-align:center;border:1px solid var(--line)}.task-card{width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:15px;display:block;margin:0 0 10px;box-shadow:var(--shadow)}.task-card h3{font-size:12px;line-height:1.55;margin:9px 0 18px}.task-meta{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.task-meta .initial{width:22px;height:22px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:9px}.board-empty{font-size:10px;color:var(--muted);text-align:center;margin:25px 0;border:1px dashed var(--line);padding:20px 5px;border-radius:9px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}th{background:var(--surface2);color:var(--muted);font-size:9px;letter-spacing:.5px;text-transform:uppercase;font-weight:550;white-space:nowrap}td,th{padding:14px 20px;border-bottom:1px solid var(--line)}td code{font-size:10px;word-break:break-all}tbody tr:last-child td{border-bottom:0}.inline-code,code{font-family:ui-monospace,SFMono-Regular,monospace;color:var(--brand);font-size:11px}.memory-card{padding:20px;cursor:pointer}.memory-card+.memory-card{border-top:1px solid var(--line)}.memory-card p{margin:8px 0;color:var(--muted);font-size:11px;white-space:pre-wrap}.memory-card h3{font-size:13px}.search{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 15px;margin-bottom:20px;font-size:12px;color:var(--text)}label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}input,textarea,select{width:100%;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:11px 12px;margin:0 0 18px;min-width:0;font-size:12px}textarea{resize:vertical;min-height:120px;line-height:1.65}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}.field-note{font-size:10px;color:var(--muted);margin:-10px 0 16px}.check-line{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:12px}.check-line input{width:17px;height:17px;margin:0;accent-color:var(--brand)}.check-line label{margin:0;color:var(--text)}.timeline{padding:4px 0 4px 15px}.timeline-item{border-left:1px solid var(--line);padding:0 0 27px 26px;position:relative}.timeline-item:before{content:"";position:absolute;width:9px;height:9px;left:-5px;top:7px;background:var(--surface);border:2px solid var(--gold);border-radius:50%}.timeline-item h3{font-size:14px;margin-bottom:8px}.timeline-feature{padding:9px 0;color:var(--muted);font-size:11px}.timeline-item:last-child{padding-bottom:0}.dependency{font-size:10px;color:var(--muted);margin-top:8px}.mobile-nav{display:none}footer{padding:20px 40px;color:var(--muted);font-size:9px;display:flex;justify-content:space-between;letter-spacing:.4px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;width:min(680px,calc(100% - 32px));padding:23px;max-height:88dvh;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#21131d55;backdrop-filter:blur(4px)}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}#modal-body h2{font-size:23px;margin-bottom:17px;line-height:1.4}#modal-body p{font-size:12px;line-height:1.8;margin:10px 0}.detail-list{display:grid;grid-template-columns:120px 1fr;font-size:11px;gap:10px;margin:20px 0}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.criteria{padding-left:20px;font-size:12px;line-height:1.8}.pre{background:var(--surface2);padding:15px;border-radius:10px;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;max-height:360px;overflow:auto}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--surface);padding:12px 22px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;max-width:90%;z-index:100}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:30px;background:var(--bg)}.login-card{width:100%;max-width:390px}.login-card .eyebrow{margin:28px 0 14px}.login-card h1{font-size:43px;font-weight:450;line-height:1.18;letter-spacing:-1.5px}.login-card p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.8;margin:20px 0}.login-card .tiny{display:block;margin-top:35px}.login-card .button{width:100%}.chat-layout{max-width:830px}.chat-message{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:0 0 14px}.chat-message.ceo{margin-left:50px;background:var(--brand-soft)}.chat-message strong{font-size:10px;letter-spacing:.4px}.chat-message p{font-size:12px;line-height:1.8;white-space:pre-wrap;margin-top:9px}.chat-input{display:flex;gap:10px}.chat-input textarea{min-height:75px;margin:0}.chat-input button{align-self:flex-end}.loading-line{height:3px;background:var(--brand);position:fixed;inset:0 60% auto 0;z-index:200;animation:loading 1s ease-in-out infinite}@keyframes loading{50%{inset:0 0 auto 60%}}.safe-word{font-size:10px;color:var(--muted);display:flex;gap:8px;align-items:center}.safe-word svg{width:14px;height:14px;color:var(--success)}
@media(min-width:1450px){main{padding-top:45px}.dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr)}}
@media(max-width:1150px){.sidebar{width:210px;padding:28px 14px}.shell{grid-template-columns:210px 1fr}.topbar{padding:0 25px}main{padding:28px 25px}.stats{gap:10px}.stat{padding:18px 15px}.stat-value{font-size:24px}.page-head h1{font-size:29px}.dashboard-grid{gap:16px;grid-template-columns:minmax(0,1.35fr) minmax(245px,1fr)}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sidebar{display:none}.shell{display:block}.main-wrap{grid-column:auto}.topbar{height:64px;padding:0 22px}.topbar .breadcrumb{font-size:10px}.top-actions{gap:10px}main{padding:28px 22px 70px;min-height:calc(100dvh - 110px)}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:20;justify-content:space-around}.mobile-item{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;color:var(--muted);min-width:50px;padding:5px}.mobile-item svg{width:20px;height:20px}.mobile-item.active{color:var(--brand)}footer{display:none}.toast{bottom:100px}.page-head{margin-bottom:24px}.head-actions{padding-top:20px}.grid-2{gap:16px}.grid-3{gap:14px}.panel-head{padding:17px 18px}.panel-body{padding:18px}.list-row{padding:16px 18px}}
@media(max-width:600px){h1{font-size:29px}.page-head{display:block}.page-head h1{font-size:28px}.head-actions{padding-top:18px}.head-actions .button{min-height:38px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:18px}.stat{border-radius:14px;padding:17px}.stat-value{font-size:25px;margin:14px 0 7px}.stat-label{font-size:10px}.stat-note{font-size:9px}.dashboard-grid,.grid-2,.grid-3{display:block}.role-card{margin-bottom:14px}.hero-panel{padding:24px;min-height:185px}.hero-panel h2{font-size:25px;max-width:255px}.hero-panel p{max-width:255px}.panel{margin-bottom:18px;border-radius:15px}.topbar .breadcrumb{color:var(--text)}.breadcrumb span{padding:0 8px}.topbar .avatar{display:none}.board{margin-right:-22px;padding-right:22px;grid-template-columns:repeat(4,245px)}.notice{font-size:10px;gap:10px}.button{font-size:11px}.chat-message.ceo{margin-left:25px}td,th{padding:13px 15px}dialog{padding:19px}.form-actions{flex-wrap:wrap}.detail-list{grid-template-columns:90px 1fr}.topbar .pill{font-size:9px}.row-main strong{font-size:11px}.page-head .eyebrow{font-size:9px}.topbar #refresh{display:none}.safe-word{font-size:9px}.sidebar-bottom{padding-bottom:18px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
