:root{--bg:#ffffff;--ink:hsl(220 20% 15%);--muted:hsl(220 10% 45%);--accent:hsl(0 72% 40%);--accent-2:hsl(20 80% 45%);--accent-ink:#ffffff;--card:#ffffff;--surface:hsl(220 20% 97%);--surface-hover:hsl(220 14% 92%);--border:hsl(220 14% 88%);--topbar-h:64px}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.55;background:radial-gradient(55rem 32rem at 78% -6%,hsl(20 80% 45%/.08),transparent 60%),radial-gradient(42rem 28rem at -12% 45%,hsl(0 72% 40%/.05),transparent 60%),var(--bg);background-attachment:fixed}main{max-width:720px;margin:0 auto;padding:3rem 1.5rem}.topbar{position:-webkit-sticky;position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:1rem;height:var(--topbar-h);padding:0 1.1rem;background:hsl(0 0% 100%/.85);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-bottom:1px solid var(--border);font-size:.92rem}.topbar a{color:var(--ink);text-decoration:none}.topbar a:hover{color:var(--accent)}.brand{font-weight:800;font-size:1.3rem;letter-spacing:.01em;background:linear-gradient(to right,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent!important}.crumbs{display:flex;align-items:center;min-width:0;gap:.15rem}.crumb{white-space:nowrap}.crumb-sep{color:var(--muted);margin:0 .4rem}.crumb-current{color:var(--muted);display:inline-block;vertical-align:bottom;max-width:22rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.linklike{color:var(--accent);font:inherit;font-weight:500;padding:0}.icon-btn,.linklike{background:none;border:none;cursor:pointer;margin:0}.icon-btn{color:var(--muted);padding:.35rem;border-radius:8px;display:inline-flex;align-items:center}.icon-btn:hover{background:var(--surface-hover);color:var(--ink)}.icon-btn-accent{color:var(--accent)}.icon-btn-accent:hover{background:var(--surface-hover);color:var(--accent-2)}.user-area{gap:.9rem;position:relative}.user-area,.user-chip{display:flex;align-items:center}.user-chip{gap:.55rem;margin:0;padding:.25rem .5rem;border-radius:10px;color:var(--muted)}.avatar{width:34px;height:34px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.95rem;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.user-meta{text-align:left;line-height:1.25}.user-meta .name{display:block;color:var(--ink);font-weight:600;font-size:.85rem;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-meta .role{display:block;font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.shell{display:flex;align-items:stretch}.sidebar{width:225px;flex-shrink:0;position:-webkit-sticky;position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));background:hsl(220 20% 97%/.75);border-right:1px solid var(--border);padding:.9rem .6rem;display:flex;flex-direction:column;gap:.3rem;transition:width .15s ease;overflow:visible}.shell.collapsed .sidebar{width:62px}.sidebar-head{display:flex;align-items:center;gap:.25rem;padding:0 .15rem .5rem;margin-bottom:.2rem;border-bottom:1px solid var(--border)}.sidebar-head .side-link{flex:1 1 auto}.shell.collapsed .sidebar-head{flex-direction:column;align-items:center}.side-link{display:flex;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:9px;color:var(--ink);text-decoration:none;font-weight:500;font-size:.95rem;white-space:nowrap}.side-link.active,.side-link:hover{background:var(--surface-hover)}.side-link.active{color:var(--accent)}.side-link svg{flex-shrink:0}.shell.collapsed .side-link span{display:none}.sidebar-foot{margin-top:auto;border-top:1px solid var(--border);padding-top:.5rem;display:flex;flex-direction:column;gap:.3rem}.content{flex:1 1 auto;min-width:0}.settings-popover{position:absolute;bottom:calc(100% + .3rem);left:0;min-width:190px;background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px hsl(220 20% 15%/.14);padding:.35rem;display:flex;flex-direction:column;gap:.15rem;z-index:60}.settings-popover-item{display:flex;align-items:center;gap:.65rem;padding:.5rem .6rem;border-radius:7px;color:var(--ink);text-decoration:none;font-weight:500;font-size:.9rem;white-space:nowrap}.settings-popover-item:hover{background:var(--surface-hover)}.settings-popover-item svg{flex-shrink:0}button.settings-popover-item{background:none;border:none;width:100%;text-align:left;font:inherit;cursor:pointer}button.settings-popover-item:disabled{opacity:.5;cursor:not-allowed}.row-actions-menu{position:absolute;top:calc(100% + .3rem);right:0;min-width:190px;background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px hsl(220 20% 15%/.14);padding:.35rem;display:flex;flex-direction:column;gap:.15rem;z-index:60}h1{font-size:2.2rem;line-height:1.15;margin:0 0 .75rem;font-weight:800;letter-spacing:-.02em}p.lede{color:var(--muted);font-size:1.05rem;margin:0 0 2rem}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px hsl(220 20% 15%/.05)}.hub-card{text-decoration:none;color:inherit;max-width:16rem}.hub-card:hover{border-color:var(--accent)}input[type=email],input[type=text],textarea{width:100%;font:inherit;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:#fff}textarea{min-height:130px;resize:vertical}button{font:inherit;font-weight:600;background:var(--accent);color:var(--accent-ink);border:none;border-radius:8px;padding:.75rem 1.5rem;cursor:pointer;margin-top:1rem}button:hover:not(:disabled){filter:brightness(1.1)}button:disabled{opacity:.5;cursor:default}.progress{color:var(--muted);font-size:.9rem;margin-bottom:1rem}.section-tag{display:inline-block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:.5rem;font-weight:600}.error{color:hsl(0 84% 40%);margin-top:.75rem}.done{text-align:center}main.wide{max-width:1320px}.row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.hint{color:var(--muted);font-size:.9rem}button.secondary{background:transparent;color:var(--accent);border:1px solid var(--accent)}button.secondary.danger{color:#b91c1c;border-color:#b91c1c}label{display:block;margin-top:1rem;font-weight:600}input[type=password]{width:100%;font:inherit;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:#fff}table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden}td,th{text-align:left;padding:.75rem 1rem;border-bottom:1px solid var(--border)}th{text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.status,th{font-size:.8rem}.status{padding:.15rem .6rem;border-radius:999px;background:var(--border)}.status-validated{background:#d1fae5;color:#065f46}.status-extracting,.status-in_validation{background:#fef3c7;color:#92400e}.status-active{background:#dbeafe;color:#1e40af}.status-rejected{background:#fee2e2;color:#991b1b}.card.req{margin-bottom:1rem}.card.stat{padding:.9rem 1.25rem}.card.stat strong{display:block;font-size:1.3rem}.bar{width:90px;height:8px;background:var(--border);border-radius:999px;overflow:hidden;display:inline-block;margin-right:.5rem}.bar-fill{height:100%;background:linear-gradient(to right,var(--accent),var(--accent-2))}select{font:inherit;padding:.35rem .5rem;border:1px solid var(--border);border-radius:6px;background:#fff}.status-completed,.status-done,.status-sent{background:#d1fae5;color:#065f46}.status-at_risk,.status-blocked{background:#fee2e2;color:#991b1b}.status-in_progress,.status-planning{background:#dbeafe;color:#1e40af}.status-confirmed{background:#d1fae5;color:#065f46}.status-dismissed{background:#fee2e2;color:#991b1b}.status-approved,.status-implemented,.status-issued,.status-paid{background:#d1fae5;color:#065f46}.status-proposed,.status-submitted{background:#fef3c7;color:#92400e}.status-void{background:#fee2e2;color:#991b1b}.status-promoted{background:#d1fae5;color:#065f46}.status-new,.status-queued{background:#dbeafe;color:#1e40af}.status-drafted,.status-enriching{background:#fef3c7;color:#92400e}.status-contacted,.status-engaged,.status-replied{background:#dbeafe;color:#1e40af}.status-converted,.status-qualified{background:#d1fae5;color:#065f46}.status-bounced,.status-lost,.status-skipped{background:#fee2e2;color:#991b1b}.req-head{display:flex;gap:.5rem;align-items:center}td input[type=text],td select,td textarea{width:100%;box-sizing:border-box}td textarea{min-height:3.2em;resize:vertical}.row-remove{background:none;border:none;color:#b91c1c;cursor:pointer;font-size:1.1rem;line-height:1;padding:.3rem .5rem;margin:0}.row-remove:hover{background:#fee2e2;border-radius:6px}h2{margin-top:2.5rem;scroll-margin-top:calc(var(--topbar-h) + 1rem)}h3{margin:1.5rem 0 .5rem;font-size:1.05rem}details{margin:.5rem 0;color:var(--muted);font-size:.9rem}details>.card{margin-top:.75rem}.section-summary{cursor:pointer;font-weight:700;color:var(--ink);font-size:1.05rem;padding:.75rem 0}.page-outline-trigger-wrap{position:fixed;left:1.25rem;bottom:1.25rem;z-index:40}.page-outline-trigger{width:42px;height:42px;border-radius:50%;margin:0;padding:0;background:var(--card);color:var(--accent);border:1px solid var(--border);cursor:pointer;box-shadow:0 2px 10px hsl(220 20% 15%/.2);display:flex;align-items:center;justify-content:center}.page-outline-trigger:hover{background:var(--surface-hover)}.page-outline-menu{position:absolute;bottom:calc(100% + .5rem);left:0;min-width:220px;max-width:320px;max-height:60vh;overflow-y:auto;background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px hsl(220 20% 15%/.14);padding:.35rem;display:flex;flex-direction:column;gap:.1rem}.page-outline-menu-item{display:block;width:100%;text-align:left;background:none;border:none;padding:.5rem .65rem;border-radius:7px;color:var(--ink);font-size:.85rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-outline-menu-item:hover{background:var(--surface-hover)}.page-outline-menu-item.active{color:var(--accent);font-weight:600}.scroll-top-btn{position:fixed;right:1.25rem;bottom:1.25rem;z-index:40;width:42px;height:42px;border-radius:50%;margin:0;background:var(--accent);color:#fff;border:none;font-size:1.1rem;line-height:1;cursor:pointer;box-shadow:0 2px 10px hsl(220 20% 15%/.2);display:flex;align-items:center;justify-content:center}.scroll-top-btn:hover{filter:brightness(1.1)}.scroll-progress-btn{position:fixed;right:1.25rem;bottom:1.25rem;z-index:40;width:44px;height:44px;border-radius:50%;margin:0;padding:0;background:var(--card);border:none;cursor:pointer;box-shadow:0 2px 10px hsl(220 20% 15%/.2);display:flex;align-items:center;justify-content:center}.scroll-progress-btn svg{position:absolute;top:0;left:0}.scroll-progress-track{stroke:var(--border)}.scroll-progress-fill{stroke:var(--accent);transition:stroke-dashoffset .1s linear}.scroll-progress-arrow{position:relative;color:var(--accent);font-size:1rem;line-height:1}.scroll-progress-btn:hover .scroll-progress-fill{stroke:var(--accent-2)}.scroll-progress-btn:hover .scroll-progress-arrow{color:var(--accent-2)}