:root{--black:#0a0a0a;--white:#fff;--surface:#f4f4f2;--muted:#8a8a85;--line:#deded9;--blue:#2a4cdb;--sage:#3f7d5c;--brick:#b8503b;--brick-text:#8f3526;--sidebar:264px;font-family:Inter,Arial,sans-serif;color:var(--black);background:var(--surface);line-height:1.5}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;background:var(--surface)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:var(--black);text-underline-offset:3px}a:hover{color:var(--blue)}:focus-visible{outline:3px solid #8094eb;outline-offset:2px}h1,h2,h3{font-family:Fredoka,Inter,sans-serif;letter-spacing:-.025em;line-height:1.08;margin:0}h1{font-size:clamp(2rem,4vw,3rem);font-weight:700}h2{font-size:1.45rem;font-weight:650}p{margin:.55rem 0}.muted,.secondary,small{color:var(--muted)}.mono{font-family:"JetBrains Mono",monospace;font-variant-numeric:tabular-nums}.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}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--sidebar);padding:30px 20px 22px;display:flex;flex-direction:column;background:var(--black);color:var(--white)}.brand{display:block;padding:2px 12px 30px}.brand img{display:block;width:174px;height:auto;filter:invert(1)}.sidebar nav{display:grid;gap:6px}.nav-link,.logout{display:flex;align-items:center;gap:13px;min-height:48px;padding:11px 14px;border-radius:12px;color:#fff;font-weight:650;text-decoration:none}.nav-link:hover,.logout:hover{color:#fff;background:#ffffff12}.nav-link.active{background:var(--blue);color:#fff}.nav-icon{flex:0 0 23px;width:23px;height:23px}.logout{margin-top:auto;color:#d6d6d2}.main-content{min-height:100vh;margin-left:var(--sidebar);padding:48px clamp(28px,5vw,72px) 72px}.main-content>*{max-width:1240px;margin-left:auto;margin-right:auto}.main-content>.card{margin-left:auto;margin-right:auto}.mobile-header,.nav-scrim{display:none}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading p{max-width:680px;color:#5f5f5a}.eyebrow{margin-bottom:6px;color:var(--muted);font-size:.73rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.count-badge{flex:none;padding:8px 13px;border-radius:999px;background:#e9ecfa;color:#203ba8;font-size:.8rem;font-weight:750}.count-badge.warning{background:#f7e9e5;color:var(--brick-text)}
.card,.status,.metrics article{border:1px solid #e7e7e2;border-radius:16px;background:var(--white);box-shadow:0 12px 35px #0a0a0a0a}.card{padding:clamp(20px,3vw,32px);margin:0 0 24px}.status{min-height:116px;margin-bottom:24px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:22px}.status>div,.status.ok{display:flex;align-items:center;justify-content:flex-start}.status span+span{margin-left:16px}.status strong,.status small{display:block}.status strong{font-family:Fredoka,Inter,sans-serif;font-size:1.25rem}.status.ok{border-left:5px solid var(--sage)}.status.warning{border-left:5px solid var(--brick)}.status-ring,.empty-ring{position:relative;flex:0 0 auto;display:inline-grid;place-items:center;width:48px;height:48px;border:8px solid var(--sage);border-radius:50%}.status.warning .status-ring{border-color:var(--brick)}.status-ring i,.empty-ring i{position:absolute;right:-4px;bottom:-4px;width:13px;height:13px;border:3px solid #fff;border-radius:50%;background:var(--sage)}.status.warning .status-ring i{background:var(--brick)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:18px}.metrics article{min-height:150px;padding:26px;display:flex;flex-direction:column;justify-content:space-between}.metric-label{color:var(--muted);font-size:.83rem;font-weight:750;letter-spacing:.03em;text-transform:uppercase}.metrics strong{font-family:Fredoka,Inter,sans-serif;font-size:3rem;line-height:1}.metric-toggle{border:1px solid #e7e7e2;border-radius:16px;background:var(--white);box-shadow:0 12px 35px #0a0a0a0a;min-height:150px;padding:26px;display:flex;flex-direction:column;justify-content:space-between;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s,transform .15s}.metric-toggle:hover{border-color:var(--blue);transform:translateY(-1px)}.metric-toggle[aria-expanded=true]{border-color:var(--blue)}.archived-today-panel{margin-top:24px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid .wide,.form-heading{grid-column:1/-1}.form-card{margin-bottom:24px}.form-heading{padding-bottom:8px;border-bottom:1px solid var(--line)}label{display:flex;flex-direction:column;gap:7px;font-size:.86rem;font-weight:700}input,select,textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #cecec8;border-radius:10px;background:#fff;color:var(--black);transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:var(--muted)}input:hover,select:hover,textarea:hover{border-color:#a8a8a2}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2a4cdb1e;outline:none}textarea{min-height:92px;resize:vertical}.check-label{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px}.check-label input{width:20px;min-height:20px;accent-color:var(--blue)}
button,.button{min-height:45px;padding:11px 18px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:750;text-decoration:none;cursor:pointer;justify-self:start;transition:transform .15s,background .15s}button:hover,.button:hover{color:#fff;background:#1f3fc4;transform:translateY(-1px)}.button-secondary,.button-quiet{border:1px solid #cecec8;background:#fff;color:var(--black)}.button-secondary:hover,.button-quiet:hover{border-color:var(--black);background:var(--surface);color:var(--black)}button.danger{border:1px solid #d9aaa0;background:#fff;color:var(--brick-text)}button.danger:hover{border-color:var(--brick);background:#fbefec;color:var(--brick-text)}.inline{display:inline;margin:0}.inline button{min-height:34px;padding:6px 9px;font-size:.78rem}.actions{min-width:245px;text-align:right;white-space:nowrap}.actions>*{margin-left:7px}.actions>a{font-size:.82rem;font-weight:700}
.disclosure{margin:0 0 18px}.disclosure-toggle{display:inline-flex;align-items:center;gap:8px}.disclosure-toggle::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}.disclosure-toggle[aria-expanded=true]::after{transform:rotate(225deg) translate(-2px,-1px)}.disclosure-panel[hidden]{display:none}.disclosure-panel{margin-top:16px}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.form-actions .button{min-height:45px}
.row-toggle{width:100%;min-height:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;justify-self:stretch;cursor:pointer}.row-toggle:hover{background:transparent;transform:none;color:inherit}.row-toggle-icon{flex:0 0 auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .15s}.row-toggle[aria-expanded=true] .row-toggle-icon{transform:rotate(45deg)}tr.row-open{background:var(--surface)}.row-detail td{padding:0 18px 20px;border-top:0;background:var(--surface)}.detail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px 20px;padding:16px 0 4px}.detail-item span{display:block;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.detail-item strong{display:block;margin-top:3px;font-size:.9rem;font-weight:650;overflow-wrap:anywhere}
.list-card{padding:0;overflow:hidden}.section-heading{padding:24px 28px 18px}.section-heading.flat{display:flex;justify-content:space-between;align-items:flex-start;padding:0 0 18px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.88rem}thead{color:var(--muted);font-size:.72rem;letter-spacing:.075em;text-transform:uppercase}th,td{padding:13px 18px;border-top:1px solid #e6e6e1;text-align:left;vertical-align:middle}tbody tr:nth-child(even){background:var(--surface)}tbody tr:hover{background:#eeeff7}.code-cell{width:90px;font-weight:700}.entity{display:flex;align-items:center;gap:11px;min-width:190px}.entity-mark{position:relative;flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border:4px solid var(--black);border-radius:50%;font-family:Fredoka,sans-serif;font-weight:700}.entity-mark i{position:absolute;right:-5px;bottom:-3px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:var(--blue)}.entity-mark.inactive{border-color:var(--muted);color:var(--muted)}.entity-mark.inactive i{background:var(--muted)}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}.badge.success{background:#e6f1eb;color:#295d42}.badge.warning{background:#f7e9e5;color:var(--brick-text)}.badge.neutral{background:#e9e9e6;color:#555550}
.review-list{display:grid;gap:20px}.review-card{border-left:5px solid var(--brick)}.review-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.review-head h2{margin-top:10px;overflow-wrap:anywhere}.review-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border-radius:12px;background:var(--surface)}.review-meta span{color:var(--muted);font-size:.74rem;font-weight:700;text-transform:uppercase}.review-meta strong{display:block;margin-top:4px;color:var(--black);font-size:.9rem;text-transform:none}.review-reason{color:var(--brick-text);font-weight:650}.review-form{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.review-form button{grid-column:1/-1}.review-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.tech-trace{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.tech-trace>summary{font-weight:750;cursor:pointer}.tech-steps{display:grid;gap:8px;margin-top:14px}.tech-step{border:1px solid #e3e3de;border-radius:10px;background:var(--surface);padding:2px 0}.tech-step>summary{min-height:40px;padding:9px 13px;display:flex;align-items:baseline;gap:6px;cursor:pointer;font-size:.88rem}.tech-step-time{color:var(--muted);font-size:.78rem}.tech-step-summary{margin:0;padding:0 13px 12px;font-size:.86rem;color:#4f4f4b;overflow-wrap:anywhere}.tech-step-json{margin:0 13px 12px}.tech-step-json>summary{cursor:pointer;color:var(--muted);font-size:.8rem;font-weight:700}.tech-step-json pre{margin:8px 0 0;padding:12px;border-radius:8px;background:#fff;border:1px solid #e3e3de;font-size:.78rem;overflow-x:auto;white-space:pre}.empty-state{padding:54px 24px;text-align:center}.empty-state .empty-ring{width:64px;height:64px;margin-bottom:18px;border-width:10px;border-color:var(--black)}.empty-ring i{background:var(--blue)}.empty-state p{color:var(--muted)}.review-empty{min-height:330px;display:grid;place-items:center;align-content:center}.storage-card h2{margin:8px 0;font-size:2rem}.bot-status{margin-top:24px}.bot-status-line{margin:6px 0;color:var(--muted)}.bot-status-line strong{color:var(--black);font-weight:650}.bot-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px}.bot-actions button[disabled]{opacity:.6;cursor:not-allowed;transform:none}.bot-message{margin:0;color:var(--brick-text);font-weight:650;font-size:.88rem}.folder-tree{display:grid;gap:6px;margin-top:8px}.folder-node,.folder-leaf{border:1px solid #e3e3de;border-radius:12px;background:#fff}.folder-node[open]{background:#fbfbfa}.folder-node summary{min-height:44px;padding:10px 14px;display:flex;align-items:center;gap:10px;font-weight:750;cursor:pointer}.folder-leaf{min-height:44px}.folder-node summary::marker{color:var(--muted)}.folder-children{display:grid;gap:6px;padding:0 12px 12px 26px}.folder-leaf{color:#4f4f4b}.folder-icon{position:relative;flex:0 0 auto;width:20px;height:15px;border:2px solid var(--black);border-radius:4px}.folder-icon::before{content:"";position:absolute;left:1px;top:-6px;width:9px;height:6px;border:2px solid var(--black);border-bottom:0;border-radius:4px 4px 0 0;background:#fff}.level-2>.folder-icon,.level-2>summary .folder-icon{border-color:var(--blue)}.level-2>.folder-icon::before,.level-2>summary .folder-icon::before{border-color:var(--blue)}.level-3>.folder-icon,.level-3>summary .folder-icon{border-color:var(--muted)}.level-3>.folder-icon::before,.level-3>summary .folder-icon::before{border-color:var(--muted)}.storage-empty{padding:36px 20px}.folder-node,.folder-leaf,.folder-children,.folder-node summary{min-width:0}.node-link{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:10px 14px;border-radius:11px;color:inherit;text-decoration:none;font-weight:750}a.node-link:hover{color:var(--blue);background:var(--surface)}.node-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}.file-icon{position:relative;flex:0 0 auto;width:15px;height:19px;border:2px solid var(--muted);border-radius:2px 4px 2px 2px;background:#fff}.file-icon::before{content:"";position:absolute;right:-2px;top:-2px;width:6px;height:6px;border-bottom:2px solid var(--muted);border-left:2px solid var(--muted);background:#fbfbfa}.folder-loading,.folder-error,.folder-empty{padding:10px 14px;color:var(--muted);font-size:.86rem}.folder-error{color:var(--brick-text)}
.login-page{display:grid;place-items:center;padding:40px 20px;background:#fff}.login-main{width:100%;max-width:500px}.login-wrap{display:grid;justify-items:center;gap:28px}.login-logo{width:min(330px,78vw);height:auto}.login{width:100%;margin:0;padding:34px}.login h1{margin-bottom:8px;font-size:2.1rem}.login form{display:grid;gap:18px;margin-top:26px}.login button{width:100%}.error{border-left:4px solid var(--brick);padding:12px 14px;border-radius:10px;background:#fbefec;color:var(--brick-text);font-weight:650}code{display:block;overflow:auto;padding:16px;border-radius:10px;background:var(--surface)}
@media(max-width:980px){.mobile-header{position:sticky;top:0;z-index:35;height:70px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;background:var(--black)}.mobile-header img{width:122px;filter:invert(1)}.menu-toggle{width:46px;min-height:46px;padding:11px;display:grid;align-content:center;gap:5px;border:1px solid #ffffff3d;background:transparent}.menu-toggle i{display:block;height:2px;border-radius:2px;background:#fff}.menu-toggle:hover{background:#ffffff14;transform:none}.sidebar{transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 50px #0005}body.menu-open{overflow:hidden}body.menu-open .sidebar{transform:translateX(0)}.nav-scrim{position:fixed;inset:0;z-index:38;width:100%;min-height:100%;border-radius:0;background:#0008}body.menu-open .nav-scrim{display:block}.main-content{margin-left:0;padding:32px 22px 56px}.review-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.main-content{padding:26px 15px 48px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.grid,.metrics,.review-meta{grid-template-columns:1fr}.grid .wide,.review-form button{grid-column:auto}.metrics article{min-height:118px}.status,.status.ok{align-items:flex-start;flex-direction:column}.status>div{align-items:flex-start}.status .button{width:100%;text-align:center}.review-head{flex-direction:column}.review-head .button{width:100%;text-align:center}.card{padding:20px}.list-card{padding:0}.actions{min-width:225px}.login{padding:26px 22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.filter-chip{min-height:36px;padding:7px 15px;border:1px solid #cecec8;border-radius:999px;background:#fff;color:var(--black);font:inherit;font-size:.84rem;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s,color .15s}.filter-chip:hover{border-color:var(--blue);transform:none;background:#fff;color:var(--black)}.filter-chip[aria-pressed=true]{border-color:var(--blue);background:var(--blue);color:#fff}
