:root {
  --bg: #050608;
  --surface: rgba(16, 18, 22, .78);
  --surface-strong: #111318;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f6f8;
  --muted: #8f949e;
  --dim: #626874;
  --acid: #c8ff3d;
  --acid-soft: #a6d72d;
  --violet: #8b5cf6;
  --orange: #ff7a18;
  --red: #ff5d55;
  --blue: #65b7ff;
  --radius: 22px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--font); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }

.cosmos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; background: radial-gradient(circle at 50% 25%, #12121b 0, #08090d 31%, #040507 70%); }
.stars { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.2px); background-size: 113px 113px; opacity: .22; }
.stars-far { transform: rotate(18deg) scale(1.2); background-size: 73px 73px; opacity: .1; }
.nebula { position: absolute; width: 780px; height: 580px; border-radius: 50%; filter: blur(110px); opacity: .12; }
.nebula-a { left: -260px; top: 10%; background: #6038d8; }
.nebula-b { right: -340px; bottom: -100px; background: #c74d11; opacity: .08; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.topbar { height: 84px; padding: 0 clamp(22px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); background: rgba(5,6,8,.68); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; width: max-content; }
.brand-mark { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(200,255,61,.3); border-radius: 50%; box-shadow: 0 0 24px rgba(200,255,61,.12); }
.brand-mark::before { content: ""; position: absolute; width: 28px; height: 8px; border: 2px solid var(--acid); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-16deg); }
.brand-mark i { width: 10px; height: 10px; border-radius: 50%; background: #030404; box-shadow: 0 0 0 1px var(--acid); }
.brand b { font-size: 14px; letter-spacing: .14em; display: block; }
.brand small { font-size: 9px; letter-spacing: .32em; color: var(--acid); display: block; margin-top: 2px; }

.nav { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.nav-link { background: transparent; border: 0; color: var(--muted); padding: 9px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; transition: .2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,.09); }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 20px; background: rgba(255,255,255,.09); font-size: 10px; }
.nav-count.alert:not(:empty) { color: #170501; background: var(--orange); }
.user-menu { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--acid), #5f7f12); color: #111600; font-weight: 800; }
.user-copy { display: grid; min-width: 0; }
.user-copy b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.user-copy small { color: var(--muted); font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; transform: rotate(90deg); padding: 8px; }
.icon-button:hover { color: var(--text); }

main { min-height: calc(100vh - 154px); }
.view { display: none; width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 60px 0 90px; }
.view.active { display: block; animation: view-in .35s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } }
.eyebrow { color: var(--acid); font-size: 10px; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--acid); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px rgba(200,255,61,.09), 0 0 14px var(--acid); }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.hero-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: .99; letter-spacing: -.055em; font-weight: 660; }
.hero-copy h1 em { color: var(--muted); font-style: normal; font-weight: 480; }
.hero-copy > p:last-child { max-width: 690px; color: var(--muted); line-height: 1.65; margin: 22px auto 0; font-size: 15px; }

.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.singularity-panel, .composer-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(19,21,26,.76), rgba(8,9,12,.86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 30px 90px rgba(0,0,0,.28); overflow: hidden; }
.singularity-panel { min-height: clamp(610px, 58vw, 760px); background: #030409; }
.singularity-panel::before { content: ""; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(circle at 50% 47%, rgba(133,106,204,.12), transparent 25%), radial-gradient(circle at 31% 20%, rgba(72,97,158,.12), transparent 27%), radial-gradient(circle at 73% 72%, rgba(151,89,54,.07), transparent 26%); filter: blur(35px); }
.singularity-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 10; border-radius: inherit; box-shadow: inset 0 0 100px 22px rgba(0,0,0,.72), inset 0 0 0 1px rgba(255,255,255,.025); }
.drop-zone { position: absolute; inset: 14px 14px 64px; border-radius: 18px; overflow: hidden; outline: none; cursor: pointer; isolation: isolate; background: radial-gradient(circle at 50% 48%, rgba(77,70,122,.2) 0, rgba(12,14,24,.62) 31%, rgba(2,3,7,.94) 72%), linear-gradient(145deg, #070a12, #020308 64%, #09070d); }
.drop-zone::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .42; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.45px), radial-gradient(circle, rgba(169,194,255,.7) 0 .8px, transparent 1.2px); background-position: 0 0, 43px 27px; background-size: 103px 103px, 67px 67px; -webkit-mask-image: radial-gradient(circle at 50% 49%, transparent 0 20%, #000 37% 100%); mask-image: radial-gradient(circle at 50% 49%, transparent 0 20%, #000 37% 100%); }
.drop-zone::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(circle at 50% 49%, transparent 0 16%, rgba(0,0,0,.12) 29%, transparent 48%), linear-gradient(180deg, rgba(1,2,5,.28), transparent 22% 76%, rgba(1,2,5,.55)); }
.drop-zone:focus-visible { box-shadow: inset 0 0 0 2px var(--acid); }
.drop-zone.dragging { box-shadow: inset 0 0 0 1px var(--acid), 0 0 42px rgba(200,255,61,.12); }
.drop-zone.dragging .accretion-disk, .drop-zone.dragging .vortex-haze { filter: brightness(1.4); transform: translate(-50%, -50%) rotate(-8deg) scale(1.045); }
.drop-zone.consuming .drop-copy { opacity: 0; transform: translate(-50%, -42%); }
.drop-zone.consuming .black-core { animation: consume-pulse 1s ease infinite; }
.drop-zone.consuming .accretion-disk { animation-duration: 1.4s; }
.drop-zone-meta { position: absolute; left: 22px; right: 22px; top: 18px; z-index: 9; display: flex; justify-content: space-between; align-items: center; color: rgba(222,226,238,.55); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; pointer-events: none; }
.drop-zone-meta span { display: inline-flex; align-items: center; gap: 7px; }
.drop-zone-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.event-horizon-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.vortex-haze, .accretion-shadow, .accretion-disk, .photon-ring, .black-core { position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.vortex-haze { z-index: 3; width: min(78%, 820px); aspect-ratio: 1; opacity: .72; background: repeating-conic-gradient(from 14deg, transparent 0 6deg, rgba(226,232,255,.16) 8deg 9deg, rgba(92,112,178,.2) 11deg 18deg, transparent 23deg 33deg), conic-gradient(from 40deg, rgba(255,255,255,.08), rgba(108,91,165,.32), transparent 24%, rgba(194,167,124,.17) 42%, transparent 63%, rgba(90,114,172,.26), rgba(255,255,255,.08)); -webkit-mask: radial-gradient(circle, transparent 0 17%, #000 29%, rgba(0,0,0,.82) 54%, transparent 76%); mask: radial-gradient(circle, transparent 0 17%, #000 29%, rgba(0,0,0,.82) 54%, transparent 76%); filter: blur(13px) contrast(1.2); animation: vortex-turn 42s linear infinite; transition: .35s ease; }
.haze-inner { width: min(59%, 580px); opacity: .86; filter: blur(7px) contrast(1.3); animation-duration: 24s; animation-direction: reverse; background: repeating-conic-gradient(from 0deg, transparent 0 10deg, rgba(255,237,198,.24) 12deg 13deg, rgba(147,112,197,.22) 15deg 23deg, transparent 28deg 39deg), conic-gradient(rgba(255,255,255,.12), rgba(91,74,150,.4), transparent 38%, rgba(222,170,108,.18), transparent 70%, rgba(255,255,255,.12)); -webkit-mask: radial-gradient(circle, transparent 0 25%, #000 37%, rgba(0,0,0,.7) 61%, transparent 76%); mask: radial-gradient(circle, transparent 0 25%, #000 37%, rgba(0,0,0,.7) 61%, transparent 76%); }
@keyframes vortex-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.accretion-shadow { width: min(62%, 650px); height: min(27%, 200px); background: radial-gradient(ellipse, #000 0 36%, rgba(1,1,3,.92) 49%, transparent 73%); filter: blur(17px); opacity: .98; z-index: 4; transform: translate(-50%, -50%) rotate(-7deg); }
.accretion-disk { width: min(68%, 720px); height: min(24%, 184px); z-index: 5; transition: .35s ease; transform: translate(-50%, -50%) rotate(-7deg); }
.disk-wide { background: radial-gradient(ellipse, transparent 0 23%, rgba(255,255,245,.9) 25%, rgba(255,216,151,.82) 29%, rgba(184,134,205,.67) 39%, rgba(91,77,150,.5) 56%, rgba(46,55,91,.25) 67%, transparent 76%); filter: blur(7px) contrast(1.3); box-shadow: 0 0 70px rgba(126,92,184,.26), 0 0 160px rgba(62,77,134,.18); animation: disk-breathe 5.5s ease-in-out infinite; }
.disk-hot { width: min(51%, 530px); height: min(13%, 96px); background: radial-gradient(ellipse, transparent 0 28%, #fff 31%, #ffe7b2 36%, rgba(198,149,205,.9) 47%, rgba(108,81,165,.62) 57%, transparent 70%); filter: blur(2.5px); opacity: .92; animation: disk-breathe 3.8s ease-in-out infinite reverse; }
@keyframes disk-breathe { 50% { filter: blur(9px) contrast(1.4) brightness(1.16); transform: translate(-50%,-50%) rotate(-4deg) scaleX(1.035); } }
@keyframes consume-pulse { 50% { transform: translate(-50%,-50%) scale(1.075); box-shadow: 0 0 13px 6px rgba(255,244,213,.9), 0 0 44px 19px rgba(150,107,210,.68), 0 0 145px 62px rgba(70,78,142,.34); } }
.photon-ring { width: clamp(224px, 26vw, 318px); height: clamp(224px, 26vw, 318px); z-index: 6; border: 2px solid rgba(255,255,255,.14); border-top-color: rgba(255,245,218,.92); border-right-color: rgba(189,153,237,.76); border-bottom-color: rgba(80,94,154,.34); filter: blur(.25px); box-shadow: 0 0 8px rgba(255,235,194,.68), 0 0 25px rgba(145,102,204,.48), inset 0 0 21px rgba(100,83,165,.5); opacity: .92; transform: translate(-50%, -50%) rotate(-18deg); animation: ring-shimmer 8s ease-in-out infinite; }
@keyframes ring-shimmer { 50% { opacity: .7; filter: blur(.65px) brightness(1.18); transform: translate(-50%, -50%) rotate(-9deg) scale(1.018); } }
.black-core { width: clamp(205px, 24vw, 294px); height: clamp(205px, 24vw, 294px); z-index: 7; background: radial-gradient(circle at 47% 43%, #000 0 59%, #020207 75%, #000 100%); box-shadow: 0 0 7px 3px rgba(255,244,215,.66), 0 0 31px 13px rgba(145,105,202,.58), 0 0 105px 42px rgba(65,77,138,.31), inset -17px -19px 25px #000; }
.black-core::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: conic-gradient(from 40deg, transparent, rgba(255,245,220,.32) 7%, transparent 14% 46%, rgba(153,112,210,.24) 58%, transparent 69%); filter: blur(5px); }
.core-glint { position: absolute; inset: -7px; border-radius: 50%; border-top: 2px solid rgba(255,246,219,.76); border-right: 1px solid rgba(183,139,235,.68); border-bottom: 1px solid rgba(72,89,152,.22); transform: rotate(-22deg); filter: blur(.35px); }
.drop-copy { position: absolute; left: 50%; top: 49%; z-index: 9; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; transition: .25s ease; width: 190px; text-shadow: 0 2px 14px #000, 0 0 24px #000; }
.drop-copy strong { font-size: 15px; margin-top: 9px; letter-spacing: .01em; }
.drop-copy small { color: #aaaeba; font-size: 11px; margin-top: 4px; }
.drop-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px rgba(156,120,214,.18); font-size: 23px; font-weight: 200; }
.particles { display: none; }
.upload-state { position: absolute; z-index: 8; left: 30px; right: 30px; bottom: 22px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 11px; }
.upload-state.success { color: var(--acid); }
.upload-state.error { color: var(--red); }
.progress-track { flex: 1; height: 2px; background: rgba(255,255,255,.09); overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--orange), var(--acid)); transition: width .2s ease; box-shadow: 0 0 8px var(--acid); }

.composer-card { min-height: 0; padding: 32px 34px 34px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(18,20,25,.88), rgba(8,9,12,.9)); }
.composer-card::before { content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,255,61,.35), rgba(139,92,246,.32), transparent); }
.composer-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.composer-intro .eyebrow { margin-bottom: 9px; }
.composer-intro h2 { margin: 0; font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.035em; }
.composer-intro p:last-child { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.composer-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--muted); border: 1px solid var(--line); background: rgba(0,0,0,.2); border-radius: 999px; padding: 8px 11px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.composer-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.composer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: min(430px, 100%); padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.18); }
.composer-tab { border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.composer-tab.active { background: rgba(255,255,255,.09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.composer-body { flex: 1; display: flex; flex-direction: column; padding-top: 24px; }
.field-label, label > span { display: block; color: #d3d5da; font-size: 11px; font-weight: 650; margin-bottom: 9px; }
textarea, input, select { width: 100%; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; outline: none; padding: 12px 13px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; line-height: 1.6; }
#knowledge-text { min-height: 225px; flex: 0 0 auto; resize: vertical; font-size: 14px; }
textarea::placeholder, input::placeholder { color: #5c616b; }
textarea:focus, input:focus, select:focus { border-color: rgba(200,255,61,.5); box-shadow: 0 0 0 3px rgba(200,255,61,.06); }
.character-line { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; padding: 8px 2px 15px; }
.context-details { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 13px; }
.context-details summary { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; cursor: pointer; list-style: none; padding: 4px 0 12px; }
.context-details summary::-webkit-details-marker { display: none; }
.context-details summary span::before { content: "＋"; margin-right: 7px; color: var(--acid); }
.context-details[open] summary span::before { content: "−"; }
.context-details summary small { color: var(--dim); }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 0 15px; }
.context-grid .full-width { grid-column: 1 / -1; }
.context-grid label > span { color: var(--muted); font-size: 10px; margin: 0 0 6px; }
.context-grid label > small { display: block; color: var(--dim); font-size: 8px; margin-top: 5px; line-height: 1.45; }
.context-grid input, .context-grid select, .context-grid textarea { font-size: 11px; padding: 9px 10px; border-radius: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 0 17px; border-radius: 11px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.button:disabled { opacity: .45; cursor: wait; transform: none; }
.button-primary { background: var(--acid); color: #121707; box-shadow: 0 8px 25px rgba(200,255,61,.12); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.055); border-color: var(--line-strong); }
.button-danger { color: #ffd7d3; background: rgba(255,93,85,.1); border-color: rgba(255,93,85,.24); }
.button-wide { width: 100%; }
.consume-button { margin-top: 18px; min-height: 49px; justify-content: space-between; padding: 0 19px; }
.consume-button b { font-size: 18px; }
.file-composer { min-height: 330px; align-items: center; justify-content: center; text-align: center; padding: 40px 22px; }
.file-glyph { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); border-radius: 20px; color: var(--acid); font-size: 29px; }
.file-composer h2 { margin: 20px 0 8px; font-size: 20px; }
.file-composer p { color: var(--muted); max-width: 300px; line-height: 1.6; font-size: 12px; margin: 0 0 22px; }

.trust-strip { max-width: 1180px; margin: 22px auto 0; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(10,11,14,.62); }
.trust-strip > div { display: flex; align-items: center; gap: 13px; padding: 17px 21px; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip > div > span { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.trust-strip p { display: grid; gap: 3px; margin: 0; }
.trust-strip b { font-size: 11px; }
.trust-strip small { color: var(--muted); font-size: 9px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.page-heading h1 { font-size: clamp(34px, 4vw, 54px); margin: 0; letter-spacing: -.045em; }
.page-heading > div > p:last-child { color: var(--muted); margin: 12px 0 0; max-width: 650px; line-height: 1.55; }
.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.summary-card { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; padding: 17px; }
.summary-card small { color: var(--muted); font-size: 10px; }
.summary-card b { display: block; font-size: 26px; margin-top: 7px; }
.history-list { display: grid; gap: 10px; }
.history-card { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; overflow: hidden; }
.history-card summary { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 15px 18px; list-style: none; cursor: pointer; }
.history-card summary::-webkit-details-marker { display: none; }
.source-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.055); border: 1px solid var(--line); color: var(--acid); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.history-main { min-width: 0; }
.history-main b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-main small { display: block; color: var(--muted); margin-top: 5px; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-size: 9px; font-weight: 760; letter-spacing: .03em; text-transform: uppercase; background: rgba(255,255,255,.055); color: var(--muted); }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-accepted, .status-active { color: var(--acid); background: rgba(200,255,61,.08); }
.status-conflict { color: var(--orange); background: rgba(255,122,24,.09); }
.status-review, .status-pending { color: var(--blue); background: rgba(101,183,255,.09); }
.status-queued, .status-stored { color: #c294ff; background: rgba(139,92,246,.1); }
.status-removed { color: #ff8278; background: rgba(255,93,84,.1); }
.history-detail { border-top: 1px solid var(--line); padding: 18px; display: grid; gap: 15px; }
.history-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 10px; }
.knowledge-list { display: grid; gap: 8px; }
.knowledge-item { border-left: 2px solid var(--line-strong); padding: 8px 12px; background: rgba(0,0,0,.13); }
.knowledge-item p { margin: 0; font-size: 11px; line-height: 1.55; color: #d4d7dd; }
.knowledge-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tag { color: var(--muted); background: rgba(255,255,255,.055); border: 1px solid var(--line); padding: 3px 6px; border-radius: 6px; font-size: 8px; }
.empty-state { text-align: center; border: 1px dashed var(--line-strong); border-radius: 18px; padding: 70px 20px; color: var(--muted); }
.empty-state span { font-size: 38px; color: var(--acid); }
.empty-state h2 { color: var(--text); margin: 12px 0 7px; }
.empty-state p { margin: 0; }

.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-tab { border: 0; background: transparent; color: var(--muted); padding: 13px 4px; margin-right: 18px; cursor: pointer; border-bottom: 2px solid transparent; font-size: 12px; }
.admin-tab.active { color: var(--text); border-color: var(--acid); }
.admin-tab span { margin-left: 6px; min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; background: rgba(255,255,255,.07); border-radius: 20px; font-size: 9px; }
.admin-panel { display: none; }
.admin-panel.active { display: grid; gap: 12px; }
.conflict-card, .pending-card, .user-row { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px; }
.conflict-head, .pending-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 13px; }
.conflict-head b, .pending-head b { font-size: 12px; }
.conflict-head small, .pending-head small { display: block; color: var(--muted); margin-top: 5px; font-size: 9px; }
.conflict-reason { color: #ffb26f; background: rgba(255,122,24,.07); border: 1px solid rgba(255,122,24,.16); border-radius: 10px; padding: 10px 12px; font-size: 10px; line-height: 1.5; }
.comparison { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: stretch; margin: 13px 0; }
.comparison-source { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.comparison-source.new { border-color: rgba(200,255,61,.22); }
.comparison-source small { color: var(--muted); font-size: 9px; }
.comparison-source p { font-size: 11px; line-height: 1.55; margin: 9px 0 0; }
.versus { align-self: center; text-align: center; color: var(--dim); font-size: 9px; }
.resolution { border-top: 1px solid var(--line); padding-top: 13px; }
.resolution summary { cursor: pointer; color: var(--acid); font-size: 10px; }
.resolution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.resolution-grid .full-width { grid-column: 1 / -1; }
.resolution-grid label span { color: var(--muted); font-size: 9px; }
.resolution-grid textarea, .resolution-grid select { font-size: 10px; padding: 9px; }
.pending-card p { color: #d5d8dd; font-size: 12px; line-height: 1.6; }
.pending-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.user-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr auto; align-items: center; gap: 14px; padding: 14px 17px; }
.user-row b { font-size: 11px; }
.user-row small { color: var(--muted); font-size: 9px; }
.role-label { font-size: 9px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }

footer { width: min(1440px, calc(100% - 48px)); margin: 0 auto; min-height: 70px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 9px; letter-spacing: .04em; }

.login-screen { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.login-card { width: min(420px, 100%); padding: 34px; border-radius: 22px; border: 1px solid var(--line-strong); background: rgba(12,14,18,.83); backdrop-filter: blur(22px); box-shadow: 0 32px 120px rgba(0,0,0,.55); position: relative; z-index: 3; }
.login-card h1 { font-size: 30px; letter-spacing: -.04em; margin: 0 0 10px; }
.login-card .muted { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 24px; }
.login-card label { display: block; margin-bottom: 14px; }
.login-card input { height: 47px; }
.login-card .button { margin-top: 7px; height: 48px; }
.form-error { color: var(--red); min-height: 16px; font-size: 10px; margin: 12px 0 0; text-align: center; }
.password-hint { color: var(--muted); font-size: 9px; line-height: 1.5; margin: -2px 0 13px; }
.login-orbit { position: absolute; width: 760px; height: 760px; display: grid; place-items: center; opacity: .3; transform: rotate(-12deg); }
.mini-disk { position: absolute; width: 100%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, transparent 0 20%, #fff0af 24%, #f57825 32%, #6f3ad4 50%, transparent 72%); filter: blur(12px); }
.mini-core { width: 300px; height: 300px; border-radius: 50%; background: #000; box-shadow: 0 0 12px #ff9d3d, 0 0 50px #7d42d9, 0 0 160px #6f3ad4; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast { border: 1px solid var(--line-strong); background: rgba(18,20,24,.96); border-radius: 13px; padding: 13px 15px; box-shadow: 0 15px 50px rgba(0,0,0,.35); animation: toast-in .25s ease; font-size: 11px; line-height: 1.45; }
.toast.success { border-color: rgba(200,255,61,.28); }
.toast.error { border-color: rgba(255,93,85,.34); color: #ffd7d3; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; background: rgba(12,14,18,.94); backdrop-filter: blur(18px); box-shadow: 0 12px 50px #000; }
  .singularity-panel { min-height: 610px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { height: 58px; padding: 5px; display: block; }
  .brand, .user-menu { display: none; }
  .nav { position: static; transform: none; width: 100%; height: 48px; justify-content: stretch; }
  .nav-link { flex: 1; padding: 8px 7px; }
  .view { width: min(100% - 24px, 1440px); padding-top: 38px; }
  .hero-copy { margin-bottom: 25px; }
  .hero-copy h1 { font-size: 39px; }
  .intake-layout { display: block; }
  .singularity-panel { min-height: 510px; margin-bottom: 12px; }
  .drop-zone { inset: 8px 8px 58px; }
  .drop-zone-meta { left: 14px; right: 14px; top: 13px; font-size: 7px; letter-spacing: .09em; }
  .composer-card { padding: 22px 18px 24px; }
  .composer-intro { align-items: flex-start; flex-direction: column; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; }
  .composer-tabs { width: 100%; }
  .black-core { width: 168px; height: 168px; }
  .photon-ring { width: 188px; height: 188px; }
  .vortex-haze { width: 116%; }
  .haze-inner { width: 87%; }
  .accretion-disk { width: 108%; }
  .disk-hot { width: 84%; }
  .drop-copy { width: 150px; }
  .drop-copy strong { font-size: 13px; }
  .drop-copy small { font-size: 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .versus { padding: 2px; }
  .user-row { grid-template-columns: 1fr auto; }
  .user-row > :nth-child(2), .user-row > :nth-child(3) { display: none; }
  .context-grid { grid-template-columns: 1fr; }
  .context-grid .full-width { grid-column: auto; }
  footer { padding-bottom: 80px; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
