:root { font-family:"Segoe UI",system-ui,sans-serif; color:#192d2c; background:#f1f5f3; font-synthesis:none; --ink:#192d2c; --mute:#536b67; --deep:#10322e; --green:#146451; --mint:#bae5d4; --line:#dce7e1; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
h1,h2,h3,p,ul,ol,dl,dd { margin:0; }
h1 { font-family:Georgia,serif; font-weight:500; font-size:clamp(2.1rem,3.6vw,3.3rem); line-height:1.06; letter-spacing:-.045em; overflow-wrap:anywhere; }
h2 { font-size:1.13rem; letter-spacing:-.02em; }
h3 { font-size:1.05rem; }
p { line-height:1.6; }
small,.small { font-size:.82rem; }
a { color:#146451; text-underline-offset:.2em; }
a:hover { color:#073d31; }
input,textarea,button { font:inherit; color:inherit; }
button { cursor:pointer; }
[hidden] { display:none!important; }
:focus-visible { outline:solid 3px #258b73; outline-offset:3px; }
.skip { position:fixed; left:12px; top:12px; z-index:20; padding:12px; background:white; transform:translateY(-180%); }
.skip:focus { transform:none; }
.muted { color:var(--mute); }
.startup { max-width:45rem; margin:12vh auto; padding:1.4rem; }
.shell { min-height:100vh; display:grid; grid-template-columns:14.2rem minmax(0,1fr); }
.sidebar { display:flex; flex-direction:column; gap:2.15rem; background:var(--deep); color:#eaf7f0; padding:1.45rem 1rem; }
.brand { display:inline-flex; gap:.7rem; align-items:center; text-decoration:none; color:inherit; font-weight:700; line-height:1.2; font-size:.98rem; }
.brand:hover { color:#d1f3e0; }
.brand-mark { width:2.2rem; height:2.2rem; position:relative; flex:none; border-radius:.65rem; background:#9ce0c4; }
.brand-mark::before,.brand-mark::after { content:""; position:absolute; inset:.61rem .61rem .67rem .61rem; border:1.5px solid var(--deep); border-radius:.14rem; }
.brand-mark::after { inset:.96rem .56rem .53rem .67rem; transform:rotate(-6deg); }
.nav { display:grid; gap:.2rem; }
.nav-link { display:flex; align-items:center; min-height:44px; padding:.43rem .65rem; border-radius:.55rem; text-decoration:none; color:#daeee5; font-size:.91rem; }
.nav-link:hover,.nav-link[aria-current=page] { background:#23554b; color:white; }
.nav-link[aria-current=page] { box-shadow:inset .2rem 0 #a1e5c8; }
.account { margin-top:auto; padding-top:.85rem; border-top:1px solid #396559; display:grid; grid-template-columns:2rem minmax(0,1fr); align-items:center; gap:.52rem; }
.avatar { border-radius:50%; background:#2d5b51; width:2rem; height:2rem; display:grid; place-items:center; flex:none; font-weight:700; }
.user-label { display:grid; min-width:0; }
.user-label>* { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-label small { color:#c6ded3; }
.logout { grid-column:1/-1; width:max-content; min-height:44px; background:transparent; color:#dbf1e8; border:0; padding:0; }
.logout:hover { text-decoration:underline; }
.workspace { min-width:0; width:min(100%,106rem); margin:0 auto; padding:clamp(1rem,2.6vw,2.7rem); }
.page-heading { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin:0 0 1.25rem; }
.page-heading p { margin-top:.5rem; color:var(--mute); }
.page-heading .badge { margin-bottom:.3rem; }
.back { display:inline-flex; align-items:center; min-height:36px; margin:0 0 .55rem; font-size:.91rem; font-weight:650; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; font-weight:650; padding:.55rem .85rem; border-radius:.56rem; border:1px solid transparent; flex:none; transition:background .16s,border-color .16s; }
.primary { background:var(--green); color:white; }
.primary:hover { background:#084f3d; color:white; }
.outline { background:white; color:#164f41; border-color:#c5d8cf; }
.outline:hover { background:#ebf6ef; color:#0d4435; }
.button:disabled { cursor:wait; opacity:.64; }
.panel,.metric { background:white; border:1px solid var(--line); border-radius:.88rem; box-shadow:0 3px 12px #21423208; min-width:0; }
.panel-head { min-height:3.6rem; display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.7rem 1rem; border-bottom:1px solid var(--line); }
.notice { background:#eaf5ef; border:1px solid #cde4d8; border-radius:.66rem; padding:.64rem .85rem; color:#235847; }
.notice.demo { margin-bottom:1rem; font-size:.87rem; }
.notice.error { color:#8d322b; background:#feeeea; border-color:#f1c7bf; }
.empty { padding:1.75rem; }
.empty p { margin:.33rem 0 0; color:var(--mute); }
.project-list,.timeline { padding:0; list-style:none; }
.project-list li+li,.timeline li+li { border-top:1px solid var(--line); }
.project-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.project-row>.delete-trigger { margin:0 .85rem 0 .1rem; }
.project-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }
.button.followup-trigger { min-height:50px; gap:.55rem; padding:.52rem 1rem; font-weight:750; box-shadow:0 3px 9px #1a655132; }
.followup-icon { display:grid; place-items:center; width:1.45rem; height:1.45rem; border-radius:.38rem; background:#ffffff2b; font-size:1.1rem; line-height:1; }
.delete-trigger { background:white; color:#923c32; border-color:#e7cec8; font-size:.85rem; }
.delete-trigger:hover { background:#fbefeb; border-color:#c3887a; }
.delete-dialog { width:min(calc(100% - 2rem),31rem); border:1px solid var(--line); border-radius:.9rem; padding:1.35rem; color:var(--ink); box-shadow:0 24px 48px #0f2e2855; }
.delete-dialog::backdrop { background:#18373075; }
.delete-form { display:grid; gap:.7rem; }
.delete-name { font-weight:650; overflow-wrap:anywhere; }
.delete-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.55rem; margin-top:.45rem; }
.danger { background:#94362e; color:white; }
.danger:hover { background:#782920; }
.project-link { display:flex; align-items:center; gap:.8rem; padding:.95rem 1.02rem; min-height:65px; color:var(--ink); text-decoration:none; }
.project-link:hover { background:#f1f9f4; }
.project-text { display:grid; gap:.22rem; flex:1; min-width:0; overflow-wrap:anywhere; }
.project-icon { display:grid; place-items:center; width:2.2rem; height:2.2rem; border-radius:.55rem; background:#e1f3e9; color:#215f50; flex:none; font-size:1.35rem; }
.badge,.certainty { display:inline-block; width:fit-content; border-radius:.35rem; padding:.25rem .45rem; font-size:.76rem; font-weight:700; line-height:1.18; }
.badge.waiting { background:#eaf0f4; color:#375265; }
.badge.working { background:#dff0fb; color:#0c5577; }
.badge.partial,.certainty.likely { background:#fbefd2; color:#6b480b; }
.badge.done,.certainty.safe { background:#dcf1e5; color:#1d5c45; }
.badge.issue { background:#fbe9e5; color:#8b3a32; }
.certainty.uncertain,.certainty.neutral { background:#ecf0f4; color:#465970; }
.pagination { padding:.8rem 1rem; border-top:1px solid var(--line); display:flex; gap:.5rem; }
.auth { min-height:100svh; display:grid; place-items:center; padding:clamp(1rem,4vw,4rem); background:#eceee6; }
.auth-layout { display:grid; grid-template-columns:minmax(0,1.16fr) minmax(0,1fr); width:min(100%,77rem); border:1px solid #d6ddd1; border-radius:1.4rem; overflow:hidden; box-shadow:0 24px 76px #142d2422; }
.auth-brand { display:flex; flex-direction:column; align-items:start; gap:clamp(2.1rem,6vw,6rem); min-height:41rem; padding:clamp(1.5rem,4vw,4rem); color:#fff9ec; background:linear-gradient(145deg,#0c211bf0 2%,#0c211bc9 39%,#0c211b20 76%),#102e25 url('/registre-archives.jpg') center 54% / cover no-repeat; }
.auth-brand .brand { gap:.76rem; font-size:1.04rem; letter-spacing:.005em; }
.auth-brand .brand-mark { background:#dfe8cf; }
.auth-brand.with-demo { gap:clamp(1.45rem,3.8vw,3.7rem); }
.auth-demo-trigger { display:flex; align-items:center; gap:.9rem; width:max-content; max-width:100%; min-height:54px; margin-top:auto; padding:.45rem .9rem .45rem .45rem; color:#f8fffa; background:#112f26; border:1px solid #6f9483; border-radius:.72rem; text-align:left; }
.auth-demo-trigger:hover { background:#214638; border-color:#c0dccb; }
.auth-demo-poster { position:relative; flex:none; width:clamp(5rem,9vw,8.5rem); aspect-ratio:16/9; overflow:hidden; border-radius:.4rem; }
.auth-demo-thumb { display:block; width:100%; height:100%; object-fit:cover; }
.auth-demo-play { position:absolute; inset:0; display:grid; place-items:center; }
.auth-demo-play::before { content:""; width:1.85rem; height:1.85rem; border-radius:50%; background:#11362e; border:1px solid #fff; }
.auth-demo-play::after { content:""; position:absolute; margin-left:.15rem; border:solid transparent; border-width:.27rem 0 .27rem .43rem; border-left-color:white; }
.auth-demo-label { display:grid; gap:.2rem; }
.auth-demo-label small { color:#d5e9df; }
.auth-demo-dialog { inset:0; margin:auto; width:min(calc(100% - 1.5rem),65rem); max-width:none; max-height:calc(100dvh - 1.5rem); border-radius:.9rem; }
.auth-demo-dialog .project-dialog-body { display:block; overflow:auto; }
.auth-demo-video { display:block; width:100%; max-height:calc(100dvh - 10.5rem); aspect-ratio:16/9; background:#152e27; }
.auth-demo-description { padding:.85rem 1rem; color:var(--mute); font-size:.9rem; }
.auth-intro h1 { font-size:clamp(2.65rem,5.35vw,5.05rem); max-width:10ch; line-height:.98; }
.auth-intro p { margin-top:1.15rem; max-width:32ch; color:#f0f1e2; font-size:clamp(.94rem,1.5vw,1.08rem); }
.auth-card { display:flex; flex-direction:column; justify-content:center; gap:1.65rem; background:#fffefa; padding:clamp(1.55rem,4.75vw,4.2rem); }
.auth-heading h2 { font-family:Georgia,serif; font-weight:500; letter-spacing:-.055em; line-height:1.05; font-size:clamp(2.15rem,3.5vw,3.65rem); }
.auth-heading p { margin-top:.54rem; color:#51655c; }
.auth-switch { display:grid; grid-template-columns:1fr 1fr; gap:.25rem; padding:.25rem; background:#edf0e8; border-radius:.7rem; }
.auth-switch a { display:grid; place-items:center; min-height:44px; padding:.3rem .65rem; color:#425b50; text-decoration:none; border-radius:.49rem; font-size:.92rem; font-weight:650; }
.auth-switch a:hover { background:#e0e8dd; color:var(--deep); }
.auth-switch a[aria-current=page] { background:#fffefa; color:var(--deep); box-shadow:0 1px 4px #28413123; }
.auth-form { display:grid; gap:1rem; }
.auth-form .input { min-height:51px; border-color:#cbd8cd; background:#fffefa; }
.auth-submit { width:100%; min-height:51px; margin-top:.2rem; }
.password-wrap { position:relative; }
.password-wrap .input { padding-right:5.35rem; }
.reveal { position:absolute; right:.24rem; bottom:.21rem; min-height:44px; min-width:4.62rem; background:transparent; border:0; border-radius:.5rem; color:#245b48; font-size:.84rem; font-weight:650; }
.reveal:hover { background:#eaf3e9; }
.password-hint { color:#51655c; margin-top:-.55rem; }
.auth-back { min-height:44px; display:inline-flex; align-items:center; align-self:start; font-weight:650; }
.demo-entry { border-top:1px solid var(--line); padding-top:1rem; }
.form-stack,.form-section { display:grid; gap:.84rem; }
.field { display:grid; gap:.37rem; color:var(--ink); min-width:0; font-weight:650; font-size:.94rem; }
.field .muted { font-weight:400; }
.input { min-height:44px; width:100%; border:1px solid #bed0c7; border-radius:.56rem; padding:.65rem .75rem; background:#fff; font-size:1rem; line-height:1.38; font-weight:400; }
.input::placeholder { color:#5a716b; }
textarea { resize:vertical; }
.research-page { max-width:52rem; }
.research-form>.notice { margin:1rem; }
.form-section { padding:1.1rem 1.25rem; }
.form-section+.form-section,.form-actions { border-top:1px solid var(--line); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.form-actions { padding:1rem; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.6rem; }
.shell-project { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); height:100dvh; min-height:42rem; }
.shell-project .sidebar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:clamp(.75rem,2.2vw,2rem); padding:.45rem clamp(.85rem,1.5vw,1.5rem); }
.shell-project .nav { display:flex; flex-wrap:wrap; gap:.25rem; min-width:0; }
.shell-project .nav-link { padding-inline:.7rem; }
.shell-project .nav-link[aria-current=page] { box-shadow:inset 0 -.15rem #a1e5c8; }
.shell-project .account { display:flex; align-items:center; margin:0; padding:0; border:0; }
.shell-project .user-label { max-width:13rem; }
.shell-project .logout { padding-inline:.35rem; }
.project-workspace { display:flex; flex-direction:column; min-height:0; width:100%; padding:.75rem clamp(.65rem,1.2vw,1.25rem) .95rem; }
.project-page { display:flex; flex:1; flex-direction:column; min-height:0; }
.project-page .page-heading { flex:none; align-items:center; gap:.7rem; margin-bottom:.7rem; }
.project-page .page-heading h1 { font-size:clamp(1.55rem,2.25vw,2.2rem); letter-spacing:-.035em; }
.project-page .page-heading p { margin-top:.25rem; font-size:.84rem; }
.project-page .page-heading .badge { margin:0; }
.project-layout { display:grid; flex:1; grid-template-columns:minmax(0,1.45fr) minmax(22rem,1fr); gap:.75rem; min-height:0; }
.graph-host { display:flex; min-width:0; min-height:0; }
.result-panel,.result-tree { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0; }
.result-panel { overflow:hidden; }
.graph-toolbar,.result-panel>.panel-head,.result-details>.panel-head,.project-dialog>.panel-head { flex:none; }
.result-views,.graph-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.result-views .tool[aria-pressed=true] { background:#e6f4ed; border-color:#78aa97; color:#103e31; }
.graph-toolbar { justify-content:space-between; padding:.5rem .8rem; border-bottom:1px solid var(--line); }
.graph-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; }
.tool { min-width:40px; padding:.42rem .59rem; min-height:44px; font-size:.88rem; }
.zoom-status { color:var(--mute); font-size:.86rem; min-width:3.25em; text-align:center; }
.graph-legend { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem 1rem; color:var(--mute); font-size:.86rem; }
.key { display:inline-flex; align-items:center; gap:.35rem; }
.key i { width:.68rem; height:.68rem; border-radius:50%; background:#4e8b75; }
.key.root i { background:#1a4a3c; }
.key.finding i { background:#90b6a6; }
.graph-view { position:relative; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; cursor:grab; background:radial-gradient(circle,#cadad2 1px,transparent 1px) 0 0/17px 17px,#f7faf8; }
.graph-view.dragging { cursor:grabbing; user-select:none; }
.graph-size { position:relative; overflow:hidden; min-width:100%; }
.graph-layout { position:absolute; inset:0 auto auto 0; transform-origin:top left; }
.connectors { position:absolute; inset:0 auto auto 0; pointer-events:none; }
.graph-card { position:absolute; display:grid; gap:.4rem; min-height:44px; text-align:left; border:1px solid #cdded4; border-radius:.65rem; padding:.56rem .65rem; background:white; box-shadow:0 2px 8px #244f3e15; transition:border-color .16s,box-shadow .16s; }
.graph-card[aria-pressed=true] { outline:2px solid #38836d; outline-offset:2px; }
.graph-card:hover { border-color:#3b8a70; box-shadow:0 2px 10px #244f3e35; }
.graph-card.level-root { background:#1a443a; border-color:#1a443a; color:#f5fff9; }
.graph-card.level-hypothesis { border-left:4px solid #4c9d80; background:#f3fbf6; }
.graph-card.level-finding { border-left:3px solid #a5c5b4; }
.graph-card.level-reply { border-left:4px solid #748ca2; }
.card-title { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:.15rem .42rem; line-height:1.2; }
.card-title strong { min-width:0; font-size:.92rem; overflow-wrap:anywhere; }
.card-title small { font-size:.72rem; white-space:normal; overflow-wrap:anywhere; opacity:.86; }
.card-text { font-size:.84rem; line-height:1.36; overflow-wrap:anywhere; }
.graph-card .certainty { justify-self:end; font-size:.68rem; padding:.13rem .31rem; }
.result-details { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }
.detail-heading { flex-wrap:wrap; }
.detail-heading .sources .button { font-size:.85rem; padding-inline:.65rem; }
.details-body { flex:1; min-height:0; padding:clamp(.85rem,1.2vw,1.2rem); overflow:auto; overscroll-behavior:contain; }
.details-empty { padding:.45rem 0; }
.preview-frame { margin:0; min-width:0; }
.document-preview { position:relative; display:block; width:100%; padding:.35rem; border:1px solid #d3ddd6; border-radius:.65rem; background:#eef2ed; cursor:zoom-in; }
.document-preview:hover { border-color:#5d927e; }
.archive-image { display:block; width:100%; object-fit:contain; }
.document-preview .archive-image { height:clamp(16rem,47dvh,37rem); }
.document-preview span { position:absolute; right:.75rem; bottom:.75rem; border:1px solid #bfd3c8; border-radius:.45rem; background:white; color:#174a3c; padding:.35rem .58rem; font-size:.82rem; font-weight:650; }
.preview-unavailable { padding:.8rem; background:#f3f6f3; border:1px solid var(--line); border-radius:.55rem; }
.project-dialog { padding:0; border:1px solid var(--line); background:white; color:var(--ink); box-shadow:0 20px 65px #102a2455; }
.project-dialog[open] { display:flex; flex-direction:column; }
.project-dialog::backdrop { background:#102c2466; }
.project-dialog-actions { display:flex; align-items:center; gap:.45rem; }
.project-dialog-body { display:flex; flex:1; flex-direction:column; min-height:0; }
.feedback-dialog { inset:0 0 0 auto; margin:0; width:min(100%,32rem); height:100dvh; max-width:none; max-height:none; }
.feedback-dialog .project-dialog-body { overflow:auto; }
.feedback-form { display:grid; gap:1rem; padding:1.15rem; }
.feedback-voice { display:grid; justify-items:start; gap:.35rem; }
.feedback-voice .button { gap:.45rem; }
.feedback-voice [role=status]:empty { display:none; }
.microphone-icon { width:1rem; height:.76rem; border:1.5px solid currentColor; border-top:0; border-radius:0 0 1rem 1rem; position:relative; margin-bottom:.2rem; }
.microphone-icon::before { content:""; position:absolute; width:.38rem; height:.72rem; top:-.28rem; left:50%; transform:translateX(-50%); background:currentColor; border-radius:1rem; }
.microphone-icon::after { content:""; position:absolute; width:1.5px; height:.25rem; top:100%; left:50%; background:currentColor; }
.feedback-actions { display:flex; justify-content:flex-end; }
.feedback-list { padding:0; list-style:none; }
.feedback-list li { padding:1rem; overflow-wrap:anywhere; }
.feedback-list li+li { border-top:1px solid var(--line); }
.feedback-list header small { display:block; }
.feedback-message { margin-top:.5rem; white-space:pre-wrap; }
.discussion-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:min(100vw,36rem); max-width:none; height:100dvh; max-height:none; }
.image-dialog { inset:0; margin:auto; width:min(92vw,77rem); height:min(92dvh,62rem); border-radius:.9rem; }
.image-dialog .project-dialog-body { display:block; overflow:auto; padding:.8rem; background:#eef2ed; }
.magnifier-toggle { gap:.55rem; }
.magnifier-toggle[aria-pressed=true] { background:#e6f4ed; border-color:#71a591; }
.magnifier-icon { position:relative; width:.82rem; height:.82rem; border:2px solid currentColor; border-radius:50%; margin-right:.18rem; }
.magnifier-icon::after { content:""; position:absolute; width:.38rem; height:2px; left:80%; top:87%; background:currentColor; transform:rotate(45deg); transform-origin:left center; }
.image-surface { position:relative; overflow:hidden; }
.image-surface:has(.document-lens:not([hidden])) { cursor:crosshair; }
.document-lens { position:absolute; inset:0 auto auto 0; width:min(90%,clamp(7rem,19vw,12rem)); max-height:100%; aspect-ratio:1; overflow:hidden; pointer-events:none; border:3px solid #fff; border-radius:50%; background:#eef2ed; box-shadow:0 0 0 2px #244d41, 0 7px 21px #112d2680; }
.document-lens .archive-image { position:absolute; max-width:none; object-fit:fill; }
.inspector-head,.message-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.45rem; }
.result-evidence { display:grid; gap:.7rem; overflow-wrap:anywhere; }
.claim,.justification p { white-space:pre-wrap; }
.justification { background:#f0f7f3; border-left:3px solid #6ba38d; border-radius:0 .5rem .5rem 0; padding:.65rem .8rem; }
.justification h4 { margin:0 0 .22rem; font-size:.82rem; color:#27574b; }
.justification p { font-size:.92rem; }
.evidence,.compact-info { color:var(--mute); font-size:.88rem; }
.evidence>div,.compact-info>div { display:grid; grid-template-columns:minmax(5.5rem, .27fr) minmax(0,1fr); gap:.55rem; padding:.26rem 0; }
dt { font-weight:650; }
dd { overflow-wrap:anywhere; }
.sources { display:flex; flex-wrap:wrap; gap:.5rem; }
.sources .button { min-width:0; white-space:normal; text-align:center; }
.sources:empty { display:none; }
.results-list { display:grid; flex:1; align-content:start; gap:.65rem; min-height:0; overflow:auto; overscroll-behavior:contain; list-style:none; padding:.85rem; }
.results-list>li { padding:.95rem; border:1px solid var(--line); border-radius:.65rem; }
.results-list .open-result { margin-top:.65rem; }
.chat-items { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.timeline li { padding:.78rem .87rem; }
.timeline .message { margin:.52rem 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.compact-info { line-height:1.32; margin-bottom:.55rem; }
.compact-info>div { grid-template-columns:minmax(4rem,.31fr) minmax(0,1fr); }
.reply { background:#f0f7f3; border-radius:.55rem; padding:.55rem .65rem; margin-top:.6rem; overflow-wrap:anywhere; }
.reply strong { font-size:.85rem; color:#27574b; }
.reply p { font-size:.88rem; white-space:pre-wrap; }
.message-form { flex:none; padding:.84rem; border-top:1px solid var(--line); display:grid; gap:.55rem; }
.message-form>.button { justify-self:start; }
.admin { display:grid; gap:1rem; }
.admin .page-heading { margin-bottom:0; }
.admin-actions { display:flex; flex-wrap:wrap; gap:.35rem; }
.admin-table th:last-child { min-width:10.5rem; }
.admin-table td:first-child { overflow-wrap:anywhere; }
.admin-decision { display:block; margin-top:.28rem; color:var(--mute); }
.admin .panel>.notice { margin:.75rem 1rem; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.7rem; }
.metric { display:grid; gap:.38rem; padding:.88rem 1rem; }
.metric span { color:var(--mute); font-size:.88rem; }
.metric strong { font-size:1.54rem; letter-spacing:-.03em; }
.monitor-list div { display:flex; justify-content:space-between; gap:1rem; padding:.65rem 1rem; }
.monitor-list div+div { border-top:1px solid var(--line); }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th,td { padding:.65rem .8rem; border-bottom:1px solid var(--line); font-size:.89rem; }
thead { background:#eef6f0; }
@media(max-width:780px) {
  .shell.shell-project { display:grid; grid-template-rows:auto 1fr; min-height:100dvh; height:auto; }
  .shell-project .sidebar { grid-template-columns:minmax(0,1fr) auto; gap:.15rem .5rem; }
  .shell-project .nav { grid-column:1/-1; grid-row:2; }
  .shell-project .user-label { max-width:9rem; }
  .project-page .page-heading { flex-direction:column; align-items:start; }
  .project-layout { grid-template-columns:minmax(0,1fr); }
  .graph-host { height:clamp(26rem,72svh,45rem); }
  .document-preview .archive-image { height:clamp(13rem,43dvh,27rem); }
}
@media(max-width:760px) {
  .shell { display:block; }
  .sidebar { padding:.72rem .8rem; gap:.45rem; }
  .nav { display:flex; flex-wrap:wrap; gap:.2rem; }
  .nav-link { font-size:.85rem; }
  .account { display:flex; align-items:center; padding-top:.25rem; gap:.4rem; }
  .user-label { margin-right:auto; }
  .logout { font-size:.85rem; }
  .page-heading { flex-direction:column; align-items:start; }
  .auth-layout { grid-template-columns:minmax(0,1fr); max-width:34rem; }
  .auth-brand { min-height:15rem; gap:1.25rem; background-position:center 53%; }
  .auth-intro h1 { max-width:15ch; }
  .auth-intro p { margin-top:.65rem; }
  .auth-card { gap:1.35rem; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:490px) {
  .form-grid { grid-template-columns:minmax(0,1fr); }
  .result-panel>.panel-head { align-items:start; flex-direction:column; }
  .graph-legend { gap:.45rem .7rem; }
  .project-icon { display:none; }
  .project-actions { width:100%; }
  .project-actions .followup-trigger { flex:1; }
  .shell-project .avatar,.shell-project .user-label { display:none; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; } }
