:root {
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #17202a;
  --ink-2: #4d5966;
  --ink-3: #78838f;
  --line: #e3e6ea;
  --line-strong: #cdd2d8;
  --brand: #0f9e96;
  --brand-dark: #0c8a83;
  --brand-soft: #e1f5f3;
  --teal: #087e8b;
  --teal-soft: #e6f5f5;
  --green: #18794e;
  --green-soft: #e7f6ed;
  --amber: #9a6700;
  --amber-soft: #fff4ce;
  --red: #c4314b;
  --red-soft: #fde7e9;
  --blue: #0f6cbd;
  --blue-soft: #e6f2fb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .04);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.icon { display: block; flex: 0 0 auto; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--ink-2); }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 14px; display: block; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Authentication */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  background: var(--surface);
}
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-box { width: min(390px, 100%); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; color: white; font-weight: 800;
  border-radius: 9px; background: linear-gradient(145deg, #17b7ad, #0c8a83); box-shadow: 0 6px 14px rgba(15,158,150,.28);
}
.login-box h1 { margin: 50px 0 10px; font-size: 30px; letter-spacing: -.035em; line-height: 1.15; }
.login-box > p { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }
.ms-button {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center;
  gap: 11px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ms-button:hover { border-color: #9ca3ab; background: var(--surface-2); }
.ms-logo { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-logo i:nth-child(1) { background:#f25022 }.ms-logo i:nth-child(2) { background:#7fba00 }
.ms-logo i:nth-child(3) { background:#00a4ef }.ms-logo i:nth-child(4) { background:#ffb900 }
.demo-button { width: 100%; margin-top: 10px; min-height: 40px; border: 0; background: transparent; color: var(--brand-dark); font-weight: 600; }
.login-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.login-art {
  position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end;
  background:
    radial-gradient(circle at 72% 22%, rgba(85,213,198,.18), transparent 28%),
    radial-gradient(circle at 20% 70%, rgba(99,91,255,.35), transparent 38%),
    linear-gradient(145deg, #16172b 5%, #22234d 55%, #153e48);
  color: white; padding: 72px;
}
.login-art::before, .login-art::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
}
.login-art::before { width: 520px; height: 520px; top: -180px; right: -110px; }
.login-art::after { width: 380px; height: 380px; top: -110px; right: -40px; }
.art-content { position: relative; z-index: 1; max-width: 540px; }
.art-eyebrow { text-transform: uppercase; letter-spacing: .14em; opacity: .65; font-size: 11px; font-weight: 700; }
.art-content h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; margin: 14px 0 20px; font-weight: 600; }
.art-content p { color: rgba(255,255,255,.68); font-size: 16px; max-width: 480px; }
.art-status { display: flex; gap: 28px; margin-top: 36px; color: rgba(255,255,255,.76); font-size: 12px; }
.art-status span::before { content: ""; width: 7px; height: 7px; background: #63d6a7; display: inline-block; border-radius: 50%; margin-right: 8px; }

/* Shell */
.shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 236px; display: flex; flex-direction: column;
  background: #171927; color: #eef0f6; border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar .brand { height: 64px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.product-label { margin-left: 3px; color: #9199aa; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.nav { padding: 16px 10px; overflow-y: auto; }
.nav-group { margin: 0 10px 7px; color: #747d90; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.nav-group:not(:first-child) { margin-top: 20px; }
.nav-link {
  width: 100%; height: 38px; border: 0; background: transparent; color: #aeb4c2; border-radius: 7px;
  display: flex; align-items: center; gap: 11px; padding: 0 11px; text-decoration: none; font-size: 13px;
}
.nav-link:hover { color: white; background: rgba(255,255,255,.055); }
.nav-link.active { color: white; background: rgba(15,158,150,.24); }
.nav-link.active .icon { color: #73d8d2; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #36394a; color: #c9cdd6; font-size: 10px; text-align: center; }
.nav-link.active .nav-badge { background: var(--brand); color: #fff; }
.sidebar-footer { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.profile {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: white;
}
.avatar { width: 31px; height: 31px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #14b8a6); display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; }
.profile-info { flex: 1; min-width: 0; }
.profile-info b, .profile-info span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-info b { font-size: 12px; font-weight: 600; }.profile-info span { color: #80889a; font-size: 10px; }
.profile button { border: 0; color: #8d95a5; background: transparent; padding: 6px; border-radius: 5px; }
.profile button:hover { color: white; background: rgba(255,255,255,.07); }
.main-area { grid-column: 2; min-width: 0; }
.topbar {
  height: 64px; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 16px;
}
.mobile-menu { display: none; border: 0; background: none; color: var(--ink); padding: 6px; }
.global-search { flex: 1; max-width: 430px; position: relative; }
.global-search .icon { position: absolute; left: 11px; top: 10px; color: var(--ink-3); }
.global-search input { width: 100%; height: 36px; border: 1px solid transparent; border-radius: 7px; padding: 0 34px; background: #f2f3f5; color: var(--ink); outline: none; }
.global-search input:focus { background: white; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.shortcut { position:absolute; right:8px; top:8px; border:1px solid var(--line); background:white; color:var(--ink-3); border-radius:4px; padding:1px 5px; font-size:10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.top-icon { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink-2); border-radius: 7px; display:grid;place-items:center; }
.top-icon:hover { background: var(--canvas); color: var(--ink); }
.environment { padding: 4px 8px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.demo-env { background: var(--amber-soft); color: var(--amber); }
.content { padding: 27px 30px 56px; width: 100%; max-width: 1560px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.page-title h1 { font-size: 24px; line-height: 1.2; margin: 0 0 5px; letter-spacing: -.028em; font-weight: 650; }
.page-title p { margin: 0; color: var(--ink-2); font-size: 13px; }
.header-actions { display: flex; gap: 8px; }

/* Primitives */
.button {
  min-height: 34px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--line-strong); background: white;
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 12px; text-decoration:none;
}
.button:hover { background: var(--surface-2); border-color: #b8bec5; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.danger { color: var(--red); border-color: #efb7c0; }.button.danger:hover { background: var(--red-soft); }
.button.ghost { border-color: transparent; background: transparent; }.button.ghost:hover { background: var(--canvas); }
.button:disabled { opacity: .45; cursor: default; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); }
.card-header h2 { font-size: 13px; margin: 0; font-weight: 650; }.card-header p { color:var(--ink-3);font-size:11px;margin:2px 0 0; }
.card-body { padding: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 104px; padding: 15px; position: relative; overflow: hidden; }
.metric-label { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.metric-value { font-size: 25px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; margin-top: 11px; }
.metric-foot { color: var(--ink-3); font-size: 10px; margin-top: 6px; }
.metric-foot.up { color: var(--green); }.metric-foot.warn { color: var(--amber); }
.dashboard-grid { display:grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 16px; }
.service-list { padding: 4px 17px; }
.service-row { min-height: 53px; display:flex; align-items:center; gap:11px; border-bottom:1px solid var(--line); }
.service-row:last-child { border-bottom:0; }
.status-dot { width: 8px; height: 8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px var(--green-soft); }
.status-dot.degraded { background:var(--amber); box-shadow:0 0 0 3px var(--amber-soft); }
.service-name { flex:1; font-weight:600; font-size:12px; }.service-meta { color:var(--ink-3);font-size:11px; }
.status-text { font-size:10px; text-transform:capitalize; font-weight:650; color:var(--green); }.status-text.degraded { color:var(--amber); }
.activity-list { padding: 2px 17px; }
.activity-row { display:grid; grid-template-columns: 28px 1fr auto; gap:10px; align-items:center; min-height:54px; border-bottom:1px solid var(--line); }
.activity-row:last-child { border:0; }
.activity-icon { width:27px;height:27px;border-radius:7px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center; }
.activity-main { min-width:0; }.activity-main b,.activity-main span { display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.activity-main b {font-size:11px}.activity-main span {color:var(--ink-3);font-size:10px}.activity-time {color:var(--ink-3);font-size:10px;white-space:nowrap}
.health-strip { display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ink-2); }.health-strip strong{color:var(--green)}

.toolbar { display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px; }
.field { position:relative; }
.field .icon { position:absolute;left:10px;top:9px;color:var(--ink-3); }
.input, .select {
  height:34px;border:1px solid var(--line-strong);border-radius:6px;background:white;color:var(--ink);padding:0 10px;outline:none;font-size:12px;
}
.input.search-input { padding-left:32px;width:270px; }.select{padding-right:28px;}
.input:focus,.select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.toolbar-spacer { flex:1; }
.table-card { overflow:hidden; }
.table-wrap { overflow:auto; }
table { width:100%;border-collapse:collapse;white-space:nowrap; }
th { height:39px;padding:0 13px;text-align:left;background:#fafafa;color:var(--ink-3);font-size:10px;text-transform:uppercase;letter-spacing:.055em;font-weight:700;border-bottom:1px solid var(--line); }
td { height:52px;padding:8px 13px;border-bottom:1px solid var(--line);font-size:11px;vertical-align:middle; }
tbody tr:last-child td {border-bottom:0} tbody tr:hover{background:#fbfbfc}
.cell-title { font-weight:600;color:var(--ink); }.cell-sub {display:block;color:var(--ink-3);font-size:10px;margin-top:2px}
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:var(--ink-2); }
.badge {display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:10px;font-size:9px;font-weight:700;text-transform:capitalize;line-height:1.2}
.badge.success,.badge.active,.badge.verified,.badge.done,.badge.operational {background:var(--green-soft);color:var(--green)}
.badge.pending,.badge.queued,.badge.medium {background:var(--amber-soft);color:var(--amber)}
.badge.failure,.badge.failed,.badge.error,.badge.disabled,.badge.rejected {background:var(--red-soft);color:var(--red)}
.badge.running,.badge.professional {background:var(--blue-soft);color:var(--blue)}
.badge.suspended,.badge.cancelled,.badge.superseded {background:#f0f0f0;color:#606b75}
.badge.enterprise,.badge.high {background:var(--brand-soft);color:var(--brand-dark)}
.confidence {display:flex;align-items:center;gap:7px}.confidence-bar{width:52px;height:4px;border-radius:4px;background:var(--line);overflow:hidden}.confidence-bar i{display:block;height:100%;background:var(--green);border-radius:4px}
.row-action {width:28px;height:28px;border:0;background:transparent;border-radius:5px;color:var(--ink-3);display:grid;place-items:center}.row-action:hover{background:var(--canvas);color:var(--ink)}
.empty { padding:55px 20px;text-align:center;color:var(--ink-3); }.empty .icon{margin:0 auto 10px}

/* Moderation */
.moderation-layout { display:grid;grid-template-columns:360px minmax(0,1fr);gap:15px;min-height:610px; }
.queue { overflow:hidden; }.queue-header{padding:14px 15px;border-bottom:1px solid var(--line)}.queue-header .input{width:100%}
.queue-list{max-height:620px;overflow:auto}
.queue-item{width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;padding:14px 15px;display:block}
.queue-item:hover{background:#fafafa}.queue-item.active{background:var(--brand-soft);box-shadow:inset 3px 0 var(--brand)}
.queue-top{display:flex;justify-content:space-between;gap:10px}.queue-item h3{font-size:12px;margin:0 0 3px}.queue-item p{font-size:10px;color:var(--ink-3);margin:0}.queue-meta{display:flex;gap:9px;color:var(--ink-3);font-size:9px;margin-top:10px}
.review-pane{overflow:hidden}.review-head{padding:16px 19px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between}
.review-head h2{font-size:16px;margin:0 0 3px}.review-head p{font-size:11px;color:var(--ink-3);margin:0}
.review-body{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(320px,1.1fr);min-height:480px}
.pdf-preview{background:#e9ebee;padding:24px;display:grid;place-items:center;border-right:1px solid var(--line)}
.pdf-page{width:min(300px,90%);aspect-ratio:.707;background:white;box-shadow:0 3px 14px rgba(0,0,0,.14);padding:25px;color:#333}
.pdf-logo{font-size:10px;color:var(--brand);font-weight:800}.pdf-page h4{font-size:15px;margin:32px 0 6px}.pdf-rule{height:4px;background:#20222a;margin:10px 0}.pdf-line{height:4px;background:#d7d9dc;margin:7px 0;border-radius:2px}.pdf-line.short{width:58%}.pdf-hazard{display:flex;gap:8px;margin-top:25px}.diamond{width:28px;height:28px;border:2px solid #d13438;transform:rotate(45deg);display:grid;place-items:center}.diamond span{transform:rotate(-45deg);font-weight:800}
.metadata{padding:19px;overflow:auto;max-height:480px}.metadata h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3);margin:0 0 12px}
.data-row{display:grid;grid-template-columns:125px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:11px}.data-row span:first-child{color:var(--ink-3)}
.detection{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.signal-box{padding:12px;border:1px solid var(--line);border-radius:7px}.signal-box span{display:block;color:var(--ink-3);font-size:9px;text-transform:uppercase}.signal-box b{display:block;font-size:14px;margin-top:4px}
.review-actions{padding:12px 17px;border-top:1px solid var(--line);display:flex;gap:7px;justify-content:flex-end;background:#fafafa}

/* Storage and charts */
.storage-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);gap:16px}
.storage-scope-card{margin-bottom:12px}
.storage-scope{padding:12px 15px;display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:11px;color:var(--ink-2)}
.storage-scope b{color:var(--ink)}
.donut-wrap{display:flex;align-items:center;gap:34px;padding:25px}.donut{position:relative;width:170px;height:170px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--brand) 0 66%,#42a5b3 66% 84%,#8b84ff 84% 89%,#f0a04b 89% 97%,#aeb5bd 97%)}.donut::before{content:"";width:112px;height:112px;border-radius:50%;background:white;position:absolute}.donut-center{position:relative;text-align:center;z-index:1}.donut-center b{display:block;font-size:22px}.donut-center span{font-size:10px;color:var(--ink-3)}
.legend{flex:1}.legend-row{display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center;padding:7px 0;font-size:11px}.legend-dot{width:8px;height:8px;border-radius:2px}.legend-row span:nth-child(2){color:var(--ink-2)}
.legend-row b{display:block;font-size:11px;color:var(--ink)}
.legend-sub{display:block;color:var(--ink-3);font-size:10px;margin-top:1px}
.integrity-list{padding:6px 17px}.integrity-row{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.integrity-row:last-child{border:0}.integrity-icon{width:32px;height:32px;border-radius:7px;background:var(--amber-soft);color:var(--amber);display:grid;place-items:center}.integrity-row div:nth-child(2){flex:1}.integrity-row b,.integrity-row span{display:block}.integrity-row b{font-size:11px}.integrity-row span{font-size:9px;color:var(--ink-3)}.integrity-row strong{font-size:17px}
.chart{height:210px;padding:26px 22px 16px;display:flex;align-items:flex-end;gap:13px;border-bottom:1px solid var(--line);position:relative}.bar{flex:1;min-width:16px;background:linear-gradient(#827bff,#635bff);border-radius:4px 4px 0 0;position:relative}.bar:hover{background:var(--brand-dark)}.bar label{position:absolute;left:50%;top:-20px;transform:translateX(-50%);font-size:9px;color:var(--ink-3)}.chart-labels{display:flex;gap:13px;padding:8px 22px 14px}.chart-labels span{flex:1;text-align:center;font-size:9px;color:var(--ink-3)}
.inventory-summary{display:flex;gap:10px;flex-wrap:wrap;padding:10px 17px;border-bottom:1px solid var(--line)}
.inventory-summary span{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:10px;color:var(--ink-2);font-weight:600}
.inventory-empty{display:flex;gap:11px;align-items:flex-start;padding:20px 18px;color:var(--ink-2)}
.inventory-empty b{display:block;font-size:12px;color:var(--ink)}
.inventory-empty span{display:block;margin-top:3px;font-size:11px;color:var(--ink-3)}
.inventory-toolbar{padding:10px 17px;border-bottom:1px solid var(--line);margin:0}
.inventory-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 17px;border-top:1px solid var(--line)}
.analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rank-list{padding:8px 17px}.rank-row{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:7px;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}.rank-row:last-child{border:0}.rank-no{color:var(--ink-3)}.rank-value{font-weight:650}
.wide-card{grid-column:1/-1}

.card,
.button,
.input,
.select,
.nav-link,
.queue-item,
tbody tr {
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

/* Drawers and dialogs */
.overlay{position:fixed;inset:0;background:rgba(16,20,30,.42);backdrop-filter:blur(1px);z-index:60;animation:fadein .14s}
.drawer{position:fixed;z-index:61;top:0;right:0;height:100vh;width:min(520px,95vw);background:white;box-shadow:-8px 0 30px rgba(0,0,0,.14);display:flex;flex-direction:column;animation:slidein .2s ease-out}
@keyframes fadein{from{opacity:0}}@keyframes slidein{from{transform:translateX(30px);opacity:0}}
.drawer-head{min-height:65px;padding:13px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.drawer-head>div{flex:1}.drawer-head h2{font-size:16px;margin:0}.drawer-head p{font-size:10px;color:var(--ink-3);margin:2px 0 0}.close-button{width:32px;height:32px;border:0;background:transparent;border-radius:6px;color:var(--ink-2);display:grid;place-items:center}.close-button:hover{background:var(--canvas)}
.drawer-body{padding:20px;overflow:auto;flex:1}.detail-section{margin-bottom:23px}.detail-section h3{font-size:10px;color:var(--ink-3);text-transform:uppercase;letter-spacing:.07em;margin:0 0 10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:7px;overflow:hidden}.detail{padding:11px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.detail:nth-child(even){border-right:0}.detail span,.detail b{display:block}.detail span{font-size:9px;color:var(--ink-3);margin-bottom:3px}.detail b{font-size:11px;overflow-wrap:anywhere}.code-block{background:#171927;color:#cbd1dd;border-radius:7px;padding:13px;font:10px/1.6 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.drawer-actions{padding:13px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#fafafa}
.dialog{position:fixed;z-index:62;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 30px));background:white;border-radius:10px;box-shadow:0 18px 55px rgba(0,0,0,.2);padding:22px;animation:pop .15s}
@keyframes pop{from{transform:translate(-50%,-48%) scale(.98);opacity:0}}.dialog h2{font-size:17px;margin:0 0 7px}.dialog p{font-size:12px;color:var(--ink-2);margin:0 0 17px}.dialog textarea{width:100%;height:80px;border:1px solid var(--line-strong);border-radius:6px;padding:9px;outline:none;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:17px}

#toast-region{position:fixed;z-index:100;right:18px;bottom:18px;display:flex;flex-direction:column;gap:8px}
.toast{min-width:280px;max-width:380px;background:#252735;color:white;padding:11px 13px;border-radius:7px;box-shadow:0 10px 30px rgba(0,0,0,.18);font-size:11px;display:flex;gap:9px;align-items:center;animation:toastin .2s}.toast.success::before{content:"✓";color:#72d9a7;font-weight:800}.toast.error::before{content:"!";color:#ff9aad;font-weight:800}
@keyframes toastin{from{transform:translateY(8px);opacity:0}}

@media(max-width:1200px){.metric-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.analytics-grid{grid-template-columns:1fr 1fr}.moderation-layout{grid-template-columns:310px 1fr}.review-body{grid-template-columns:1fr}.pdf-preview{display:none}}
@media(max-width:850px){
  .login-page{grid-template-columns:1fr}.login-art{display:none}.login-panel{padding:28px}
  .shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s}.shell.nav-open .sidebar{transform:translateX(0);box-shadow:10px 0 30px rgba(0,0,0,.2)}.main-area{margin:0}.mobile-menu{display:block}
  .topbar{padding:0 15px}.content{padding:20px 15px 45px}.global-search{max-width:none}.shortcut,.top-actions .top-icon:first-child{display:none}
  .moderation-layout,.storage-grid{grid-template-columns:1fr}.queue-list{max-height:280px}.review-body{min-height:420px}.analytics-grid{grid-template-columns:1fr}.storage-scope{grid-template-columns:1fr}
}
@media(max-width:560px){.metric-grid{grid-template-columns:1fr 1fr}.page-header{display:block}.header-actions{margin-top:13px}.input.search-input{width:100%}.field{flex:1}.toolbar-spacer{display:none}.environment{display:none}.donut-wrap{display:block}.donut{margin:0 auto 20px}.art-status{display:block}.detail-grid{grid-template-columns:1fr}.detail{border-right:0}}
