:root {
  --paper: #f7f5ee;
  --paper-2: #fffef8;
  --ink: #101010;
  --muted: #625f58;
  --line: #171717;
  --blue: #0d43da;
  --blue-2: #2168d3;
  --acid: #b8ff00;
  --yellow: #ffd94f;
  --green: #6ed779;
  --red: #f05454;
  --soft: #e8e4d9;
  --pixel: "Courier New", "Lucida Console", monospace;
  --sans: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17,17,17,.08) .7px, transparent .7px);
  background-size: 6px 6px;
}
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.optional { color: #77736a; font-size: 11px; font-weight: 500; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
#deviceDesk, #latest, #changeDesk, #fixDesk, #research { scroll-margin-top: 100px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--line);
  background: rgba(247,245,238,.94);
  backdrop-filter: blur(9px);
}
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { display: block; width: 232px; height: auto; image-rendering: pixelated; }
.site-nav { display: flex; align-items: center; gap: 31px; font-size: 14px; font-weight: 820; }
.site-nav a, .site-nav button { border: 0; padding: 7px 0; background: none; text-decoration: none; }
.site-nav a:hover, .site-nav button:hover { color: var(--blue); }
.menu-button { display: none; border: 2px solid var(--line); padding: 8px 10px; background: var(--paper-2); font: 700 12px var(--pixel); }

main { padding: 28px 0 72px; }
.pixel-kicker, .section-no { margin: 0 0 8px; font: 700 12px/1.2 var(--pixel); letter-spacing: .08em; }
.search-portal { width: min(970px, 100%); margin: 30px auto 0; padding: 32px 45px 0; }
.portal-window { position: relative; min-height: 350px; border: 2px solid var(--line); background: rgba(255,254,248,.97); box-shadow: 5px 5px 0 rgba(16,16,16,.11); }
.portal-titlebar { display: flex; min-height: 47px; align-items: center; justify-content: space-between; padding: 0 13px 0 18px; border-bottom: 2px solid var(--line); color: white; background: var(--blue); font: 800 14px var(--pixel); }
.window-controls { display: flex; gap: 7px; }
.window-controls i { display: grid; width: 23px; height: 23px; place-items: center; border: 2px solid var(--line); color: var(--ink); background: var(--paper-2); font: 900 15px/1 var(--pixel); font-style: normal; }
.portal-content { width: min(650px, calc(100% - 80px)); margin: 0 auto; padding: 34px 0 45px; text-align: center; }
.portal-content h1 { margin: 0 0 15px; font-size: clamp(37px, 4.15vw, 50px); font-weight: 840; line-height: 1.24; letter-spacing: -.045em; word-break: keep-all; }
.portal-content > p { margin: 0 0 25px; color: #3d3a35; font-size: 15px; line-height: 1.7; }
.portal-search { position: relative; z-index: 12; display: grid; grid-template-columns: 1fr 150px; text-align: left; }
.portal-search input { min-height: 64px; padding: 0 20px; border-right: 0; font: 800 23px var(--pixel); background: #fff; }
.portal-search .black-button { min-height: 64px; box-shadow: none; }
.search-suggestions { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; border: 2px solid var(--line); background: var(--paper-2); box-shadow: 5px 5px 0 rgba(16,16,16,.12); }
.suggestion-heading { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 11px var(--pixel); }
.suggestion-option { display: grid; grid-template-columns: 15px 1fr auto; gap: 12px; width: 100%; min-height: 48px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 14px; background: transparent; text-align: left; }
.suggestion-option:last-child { border-bottom: 0; }
.suggestion-option:hover, .suggestion-option.active { color: white; background: var(--blue); }
.suggestion-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 13px var(--pixel); }
.suggestion-option small { white-space: nowrap; font-size: 11px; font-weight: 800; }
.suggestion-empty { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; font-size: 13px; }
.portal-links { position: relative; z-index: 4; display: flex; justify-content: center; gap: 18px; margin-top: 23px; align-items: center; }
.portal-links .text-button { font-size: 13px; }
.version-guide { display: grid; gap: 6px; margin-top: 15px; border: 1px solid var(--line); padding: 11px 13px; background: #f4f7ff; text-align: left; font-size: 12px; line-height: 1.55; }
.version-guide b { color: var(--blue); }
.portal-sprite { position: absolute; z-index: 2; height: auto; image-rendering: pixelated; pointer-events: none; }
.sprite-warning { top: -42px; left: 27px; width: 44px; }
.sprite-download { top: -31px; right: 115px; width: 42px; }
.sprite-error { top: 145px; left: -50px; width: 58px; }
.sprite-safe { bottom: 58px; left: -37px; width: 48px; }
.sprite-gpu { bottom: -38px; left: -84px; width: 105px; }
.sprite-phone { top: 76px; right: -62px; width: 78px; }
.sprite-kb { bottom: 26px; right: -54px; width: 53px; }
.sprite-wait { bottom: -48px; right: 24px; width: 67px; }
.sprite-chat { bottom: -50px; left: 112px; width: 44px; }
.sprite-cursor { top: 230px; right: 104px; z-index: 14; width: 39px; }
.source-ticker { position: relative; display: flex; min-height: 46px; align-items: center; gap: 10px; margin-top: 28px; border: 2px solid var(--line); padding: 0 54px 0 16px; background: var(--acid); font: 800 12px var(--pixel); }
.source-ticker img { position: absolute; right: 8px; bottom: -1px; width: 39px; height: auto; image-rendering: pixelated; }

.company-stage { width: min(1080px, 100%); margin: 38px auto 0; scroll-margin-top: 96px; }
.company-heading { text-align: center; }
.company-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 45px); line-height: 1.18; letter-spacing: -.055em; }
.company-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.company-lineup { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; margin-top: 22px; padding: 0 12px; }
.company-character { position: relative; display: grid; min-width: 0; justify-items: center; border: 0; padding: 8px 5px 14px; background: transparent; }
.company-character::after { content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: 38px; height: 13px; opacity: 0; background: var(--acid); box-shadow: 0 0 18px rgba(184,255,0,.6); transition: opacity .15s ease, left .15s ease, right .15s ease; }
.company-character:hover::after, .company-character:focus-visible::after, .company-character[aria-pressed="true"]::after { left: 8%; right: 8%; opacity: 1; }
.company-character:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.character-art { display: grid; width: 100%; height: 110px; place-items: end center; }
.character-art img { width: auto; height: auto; max-width: 132px; max-height: 104px; object-fit: contain; image-rendering: pixelated; transition: transform .15s ease; }
.company-character:hover .character-art img, .company-character[aria-pressed="true"] .character-art img { transform: translateY(-4px); }
.company-character b { position: relative; z-index: 1; margin-top: 8px; font-size: 15px; }
.company-character small { position: relative; z-index: 1; margin-top: 5px; overflow: hidden; max-width: 100%; color: var(--muted); font: 700 11px var(--pixel); text-overflow: ellipsis; white-space: nowrap; }
.company-detail { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto auto; gap: 18px; min-height: 112px; align-items: center; margin-top: 12px; border: 2px solid var(--line); padding: 16px 20px; background: rgba(255,254,248,.96); box-shadow: 4px 4px 0 rgba(16,16,16,.1); }
.company-detail-kicker { margin: 0; color: var(--blue); font: 800 11px/1.6 var(--pixel); }
.company-detail h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.35; }
.company-detail div p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.company-verdict { min-width: 92px; border: 2px solid var(--line); padding: 8px 10px; background: var(--yellow); text-align: center; font-size: 12px; font-weight: 900; }
.company-verdict.safe, .company-verdict.resolved { background: var(--acid); }
.company-verdict.avoid { color: white; background: var(--red); }
.company-verdict.investigating { color: white; background: var(--blue); }
.company-actions { display: flex; align-items: center; gap: 13px; }
.company-actions .blue-button { white-space: nowrap; }
.company-actions .text-button { white-space: nowrap; font-size: 12px; }
.company-history { margin-top: 12px; border: 2px solid var(--line); background: rgba(255,254,248,.96); }
.company-history-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 16px 18px 13px; border-bottom: 2px solid var(--line); }
.company-history-head p { margin: 0 0 4px; color: var(--blue); font: 800 10px var(--pixel); letter-spacing: .08em; }
.company-history-head h3 { margin: 0; font-size: 19px; }
.company-history-head a { border-bottom: 2px solid var(--line); padding-bottom: 3px; font-size: 12px; font-weight: 850; text-decoration: none; }
.company-history-row { display: grid; grid-template-columns: minmax(190px, .8fr) 92px minmax(260px, 1.7fr) 105px; gap: 14px; width: 100%; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 13px 18px; background: transparent; text-align: left; }
.company-history-row:last-child { border-bottom: 0; }
.company-history-row:hover, .company-history-row:focus-visible { background: #f4f7ff; }
.company-history-row:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.history-version { display: grid; gap: 3px; min-width: 0; }
.history-version b { font: 850 13px var(--pixel); }
.history-version small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.history-date { color: var(--muted); font: 700 10px var(--pixel); }
.history-overview { display: -webkit-box; overflow: hidden; color: #3d3a35; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.history-status { border: 2px solid var(--line); padding: 7px 6px; background: var(--yellow); text-align: center; font-size: 10px; font-weight: 900; }
.history-status.safe, .history-status.resolved { background: var(--acid); }
.history-status.avoid { color: white; background: var(--red); }
.history-status.investigating { color: white; background: var(--blue); }
.company-stage .source-ticker { margin-top: 13px; }

.information-hub { width: min(1080px,100%); margin: 62px auto 0; scroll-margin-top: 96px; }
.information-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.information-card { position: relative; min-height: 176px; overflow: hidden; border: 2px solid var(--line); padding: 20px; background: rgba(255,254,248,.96); box-shadow: 4px 4px 0 rgba(16,16,16,.1); text-decoration: none; }
.information-card::after { content:""; position:absolute; right:-22px; top:-22px; width:58px; height:58px; border:2px solid var(--line); transform:rotate(45deg); background:var(--acid); }
.information-card:nth-child(2)::after { background:var(--blue); }
.information-card:nth-child(3)::after { background:var(--yellow); }
.information-card:nth-child(4)::after { background:var(--ink); }
.information-card > span { color:var(--blue); font:800 11px var(--pixel); }
.information-card h3 { margin:22px 0 8px; font-size:20px; letter-spacing:-.04em; }
.information-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.65; }
.information-card:hover,.information-card:focus-visible { transform:translate(-1px,-1px); box-shadow:6px 6px 0 rgba(16,16,16,.14); }
.information-card:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.chat-lobby-link { display:flex;min-height:76px;align-items:center;gap:15px;margin-top:12px;border:2px solid var(--line);padding:6px 18px 6px 13px;background:var(--acid);box-shadow:4px 4px 0 rgba(16,16,16,.1);text-decoration:none; }
.chat-lobby-link img { width:42px;height:auto;image-rendering:pixelated; }
.chat-lobby-link span { display:grid;gap:3px; }
.chat-lobby-link b { font-size:16px; }
.chat-lobby-link small { color:#35332e;font-size:12px;line-height:1.45; }
.chat-lobby-link strong { margin-left:auto;white-space:nowrap;color:var(--blue);font-size:13px; }
.chat-lobby-link:hover,.chat-lobby-link:focus-visible { transform:translate(-1px,-1px);box-shadow:6px 6px 0 rgba(16,16,16,.14); }

.ruled-box { border: 2px solid var(--line); background: rgba(255,254,248,.93); box-shadow: 4px 4px 0 rgba(16,16,16,.1); }
.device-desk { margin-top: 55px; padding: 22px; }
.box-title-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.box-title-row h2, .section-heading h2 { margin: 0; font-size: clamp(26px, 4vw, 39px); letter-spacing: -.055em; }
.text-button, .underline-button { border: 0; border-bottom: 2px solid var(--line); padding: 5px 2px; background: transparent; font-weight: 750; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
select, input[type="text"], input[type="search"] { width: 100%; min-height: 50px; border: 2px solid var(--line); border-radius: 0; padding: 0 14px; background: var(--paper-2); outline: 0; }
select:focus, input:focus { border-color: var(--blue); box-shadow: 3px 3px 0 rgba(13,67,218,.18); }
select:disabled { cursor: not-allowed; color: #858178; background: #e9e6de; }
.find-help { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 13px; }
.find-help summary { width: fit-content; color: var(--blue); cursor: pointer; font-weight: 800; }
.find-help div { margin-top: 10px; line-height: 1.7; }
kbd, code { border: 1px solid #aaa59b; padding: 2px 5px; background: #ece9df; font-family: var(--pixel); }
.black-button, .blue-button { display: inline-grid; place-items: center; min-height: 50px; border: 2px solid var(--line); padding: 0 22px; color: white; background: var(--ink); font-weight: 900; text-decoration: none; box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
.blue-button { background: var(--blue); }
.black-button:hover, .blue-button:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(0,0,0,.18); }
.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.profile-actions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.verdict-layout { display: grid; grid-template-columns: 1.72fr 1fr; gap: 13px; margin-top: 28px; }
.verdict-board { --verdict-color: var(--blue); position: relative; min-height: 465px; overflow: hidden; padding: 30px 32px 58px; }
.verdict-board[data-status="safe"], .verdict-board[data-status="resolved"] { --verdict-color: var(--acid); }
.verdict-board[data-status="caution"] { --verdict-color: var(--yellow); }
.verdict-board[data-status="avoid"] { --verdict-color: #f08a48; }
.verdict-board[data-status="investigating"] { --verdict-color: var(--blue); }
.board-accent { height: 12px; margin: -20px -20px 25px; background: var(--verdict-color); transition: background-color .16s ease; }
.selection-line { margin: 0; color: var(--blue); font: 800 15px var(--pixel); }
.update-overview { max-width: 670px; margin: 15px 0 18px; padding: 12px 14px; border-left: 4px solid var(--blue); background: #f4f7ff; }
.update-overview strong { display: block; margin-bottom: 5px; font-size: 13px; }
.update-overview p { margin: 0; color: #35322e; font-size: 15px; line-height: 1.72; word-break: keep-all; }
.verdict-board h2 { max-width: 620px; margin: 14px 0 12px; font-size: clamp(38px, 4.2vw, 48px); font-weight: 820; line-height: 1.12; letter-spacing: -.065em; word-break: keep-all; }
.verdict-reason { max-width: 650px; min-height: 54px; margin: 0 0 17px; color: #36332f; font-size: 15px; line-height: 1.78; word-break: keep-all; }
.verdict-facts { display: grid; grid-template-columns: 1fr 1fr; max-width: 700px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.fact { display: grid; grid-template-columns: minmax(108px, auto) 1fr; gap: 12px; padding: 13px 10px; line-height: 1.55; }
.fact:nth-child(even) { border-left: 1px solid var(--line); }
.fact:nth-child(n+3) { border-top: 1px solid var(--line); }
.fact b { color: var(--blue); white-space: nowrap; }
.verdict-links { display: flex; align-items: center; gap: 30px; margin-top: 20px; }
.verdict-links .blue-button { min-height: 48px; }
.verdict-pixel { position: absolute; right: 24px; bottom: 51px; width: auto; height: auto; max-width: 130px; max-height: 115px; image-rendering: pixelated; object-fit: contain; }
.verdict-board[data-status="caution"] .verdict-pixel { width: 110px; max-height: 124px; }
.verdict-board[data-status="avoid"] .verdict-pixel { width: 180px; max-width: 180px; }
.verdict-board[data-status="safe"] .verdict-pixel, .verdict-board[data-status="resolved"] .verdict-pixel { width: 64px; }
.verdict-board[data-status="investigating"] .verdict-pixel { width: 54px; }
.verdict-board footer { position: absolute; inset: auto 0 0; min-height: 42px; display: flex; align-items: center; padding: 0 22px; border-top: 2px solid var(--line); background: var(--verdict-color); font: 700 12px var(--pixel); transition: background-color .16s ease; }
.verdict-board[data-status="avoid"] footer, .verdict-board[data-status="investigating"] footer { color: white; }
.side-stack { display: grid; gap: 13px; grid-template-rows: auto 1fr; }
.mini-panel { padding: 22px; }
.mini-panel h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.04em; }
.mini-title { display: flex; align-items: start; justify-content: space-between; }
.mini-title img { width: 38px; height: auto; image-rendering: pixelated; }
.empty-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-note button { margin-top: 9px; }
.note-line { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.note-line b { display: block; margin-bottom: 2px; }
.note-line > span:not(.evidence-badge) { display:block; color:var(--muted); font-size:11px; }
.note-line > a { display:inline-block; margin-top:5px; color:var(--blue); font-size:11px; font-weight:800; }
.latest-list a { display: grid; grid-template-columns: 15px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font: 700 13px var(--pixel); }
.status-dot { align-self: center; width: 12px; height: 12px; border: 2px solid var(--line); background: var(--green); }
.status-dot.caution { background: var(--yellow); }
.status-dot.avoid { background: var(--red); }
.status-dot.investigating { background: var(--blue); }

.change-desk, .fix-desk { padding-top: 68px; }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 22px; }
.section-heading .section-no { grid-column: 1 / -1; }
.section-heading > p:last-child { max-width: 520px; margin: 0 0 3px 24px; color: var(--muted); line-height: 1.55; }
.change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.change-card { position: relative; min-height: 230px; overflow: hidden; border: 2px solid var(--line); padding: 22px; background: var(--paper-2); }
.change-card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 66px; height: 66px; border: 2px solid var(--line); transform: rotate(45deg); background: var(--blue); }
.change-card.green-corner::after { background: var(--green); }
.change-card.yellow-corner::after { background: var(--yellow); }
.change-card.black-corner::after { background: var(--ink); }
.change-card > span { font: 800 11px var(--pixel); color: var(--blue); }
.change-card h3 { margin: 7px 0 14px; font-size: 23px; }
.evidence-item { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.evidence-item a { display: inline-block; margin-top: 5px; color: var(--blue); font-size: 11px; font-weight: 800; }
.evidence-badge { display:inline-block; margin:0 0 6px; border:1px solid var(--line); padding:3px 5px; background:var(--acid); font:800 9px/1.2 var(--pixel); }
.evidence-badge.community { background:var(--yellow); }
.evidence-badge.manual { color:#fff;background:var(--blue); }
.evidence-empty { color: var(--muted); font-size: 13px; line-height: 1.6; }

.urgent-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 13px; }
.urgent-row button { min-height: 58px; border: 2px solid var(--line); background: var(--yellow); font-weight: 900; }
.urgent-row button b { display: inline-grid; width: 25px; height: 25px; margin-right: 7px; place-items: center; border: 2px solid var(--line); background: var(--paper-2); font: 900 15px var(--pixel); }
.urgent-row button.active { color: white; background: var(--blue); }
.resolution-context { display: grid; grid-template-columns: 1fr 1fr auto; gap: 13px; align-items: end; margin: 16px 0; padding: 18px; }
.resolution-context > b { grid-column: 1 / -1; }
.resolution-selection { min-height: 20px; margin: 12px 0; color: var(--blue); font-size: 13px; font-weight: 800; line-height: 1.6; }
.resolution-panel { min-height: 0; padding: 24px; }
.empty-resolution { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 100px; color: var(--muted); text-align: center; line-height: 1.7; }
.empty-resolution img { image-rendering: pixelated; }
.resolution-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--line); }
.resolution-head h3 { margin: 0 0 5px; font-size: 26px; }
.confidence { border: 2px solid var(--line); padding: 7px 9px; background: var(--yellow); font: 800 11px var(--pixel); white-space: nowrap; }
.resolution-step { display: grid; grid-template-columns: 48px 1fr 190px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-no { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--line); color: white; background: var(--blue); font: 900 15px var(--pixel); }
.resolution-step h4 { margin: 0 0 5px; font-size: 17px; }
.resolution-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.step-source { padding-left: 13px; border-left: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.step-source a { color: var(--blue); font-weight: 800; }
.step-risk { display: inline-block; margin-top: 7px; border: 1px solid var(--line); padding: 3px 5px; background: var(--paper); font: 700 10px var(--pixel); }
.step-kind { display: inline-block; margin-top: 7px; margin-right: 5px; border: 1px solid var(--line); padding: 3px 5px; color: white; background: var(--blue); font: 700 10px var(--pixel); }
.outcome-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; }
.outcome-actions { display: flex; gap: 7px; }
.outcome-actions button { border: 1.5px solid var(--line); padding: 8px 10px; background: var(--paper-2); font-size: 12px; font-weight: 800; }

.research-desk { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 70px; }
.research-copy { padding: 28px; border-right: 2px solid var(--line); }
.research-copy h2 { margin: 8px 0 12px; font-size: 34px; letter-spacing: -.055em; }
.research-copy p:not(.section-no) { color: var(--muted); line-height: 1.65; }
.research-copy button { margin-top: 10px; }
.request-list { padding: 15px 24px; }
.request-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.request-item:last-child { border: 0; }
.request-item b { font-family: var(--pixel); }
.request-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.request-stage { align-self: start; border: 1px solid var(--line); padding: 4px 6px; background: var(--soft); font: 700 10px var(--pixel); }
.request-stage.done { color: white; background: var(--blue); }

.site-footer { border-top: 2px solid var(--line); padding: 32px 0; background: #efede4; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 30px; align-items: start; }
.footer-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-grid nav a { font-size: 12px; font-weight: 750; }

dialog { width: min(590px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow: auto; border: 2px solid var(--line); border-radius: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 9px 9px 0 rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(17,17,17,.62); }
dialog form { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; margin: -24px -24px 22px; padding: 22px 24px; border-bottom: 2px solid var(--line); }
.modal-head h2 { margin: 5px 0; font-size: 25px; }
.modal-head p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.icon-close { align-self: start; border: 0; background: transparent; font-size: 30px; line-height: 1; }
dialog label, dialog fieldset { margin: 0 0 16px; }
dialog fieldset { border: 0; padding: 0; }
dialog legend { margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.binary-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.binary-choice input { position: absolute; opacity: 0; }
.binary-choice span { display: grid; min-height: 48px; place-items: center; border: 2px solid var(--line); background: var(--paper-2); }
.binary-choice input:checked + span { color: white; background: var(--blue); }
.full { width: 100%; }
.honeypot { position: absolute; left: -9999px; }
.turnstile-slot { margin-bottom: 15px; }
.form-status { min-height: 18px; margin: 10px 0 0; color: var(--blue); font-size: 12px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: min(390px, calc(100% - 36px)); border: 2px solid var(--line); padding: 13px 16px; opacity: 0; transform: translateY(90px); background: var(--acid); font-size: 13px; font-weight: 800; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { color: white; background: var(--red); }

@media (max-width: 900px) {
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-wrap: wrap; justify-content: center; gap: 14px 24px; padding: 18px; border-bottom: 2px solid var(--line); background: var(--paper); }
  .site-nav.open { display: flex; }
  .menu-button { display: block; }
  .device-grid { grid-template-columns: 1fr 1fr; }
  .search-portal { padding-inline: 70px; }
  .portal-content { width: min(620px, calc(100% - 30px)); }
  .sprite-gpu, .sprite-chat, .sprite-kb { display: none; }
  .sprite-error { left: -42px; }
  .sprite-phone { right: -48px; }
  .verdict-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .verdict-pixel { right: 20px; max-width: 105px; max-height: 100px; }
  .resolution-context { grid-template-columns: 1fr 1fr; }
  .resolution-context .blue-button { grid-column: 1 / -1; }
  .research-desk { grid-template-columns: 1fr; }
  .research-copy { border-right: 0; border-bottom: 2px solid var(--line); }
  .company-detail { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .company-actions { grid-column: 2 / -1; justify-self: end; }
  .company-history-row { grid-template-columns: minmax(150px, .8fr) 78px minmax(190px, 1.5fr) 94px; gap: 10px; padding-inline: 13px; }
  .information-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 1180px); }
  .header-row { min-height: 68px; }
  .brand-mark { width: 188px; }
  .site-nav { top: 68px; }
  main { padding-top: 18px; }
  .search-portal { margin-top: 28px; padding: 25px 5px 0; }
  .portal-window { min-height: 365px; }
  .portal-titlebar { min-height: 42px; padding-inline: 11px; font-size: 11px; }
  .window-controls i { width: 20px; height: 20px; }
  .portal-content { width: calc(100% - 26px); padding: 42px 0 48px; }
  .portal-content h1 { font-size: clamp(30px, 9.2vw, 38px); line-height: 1.28; letter-spacing: -.035em; }
  .portal-content > p { margin-bottom: 20px; font-size: 13px; }
  .portal-search { grid-template-columns: 1fr 94px; }
  .portal-search input { min-width: 0; min-height: 56px; padding-inline: 12px; font-size: 17px; }
  .portal-search .black-button { min-height: 56px; padding-inline: 8px; font-size: 13px; }
  .suggestion-option { grid-template-columns: 14px minmax(0,1fr); }
  .suggestion-option small { grid-column: 2; }
  .portal-links { gap: 9px; }
  .portal-links .text-button { font-size: 11px; }
  .sprite-warning { top: -28px; left: 17px; width: 34px; }
  .sprite-download { top: -18px; right: 83px; width: 31px; }
  .sprite-error { top: 120px; left: -15px; width: 36px; }
  .sprite-safe { bottom: 40px; left: -8px; width: 34px; }
  .sprite-phone { top: 63px; right: -12px; width: 47px; }
  .sprite-wait { bottom: -29px; right: 9px; width: 47px; }
  .sprite-cursor { top: 221px; right: 68px; width: 27px; }
  .source-ticker { min-height: 42px; margin-top: 22px; padding-left: 11px; font-size: 10px; }
  .company-stage { margin-top: 38px; }
  .company-heading { padding-inline: 12px; }
  .company-heading h2 { font-size: 30px; line-height: 1.22; }
  .company-lineup { grid-template-columns: repeat(3, 1fr); gap: 3px 6px; margin-top: 22px; padding: 0; }
  .company-character { padding-inline: 1px; }
  .character-art { height: 91px; }
  .character-art img { max-width: 104px; max-height: 86px; }
  .company-character b { font-size: 12px; }
  .company-character small { font-size: 9px; }
  .company-detail { grid-template-columns: 1fr auto; gap: 10px; min-height: 0; padding: 15px; }
  .company-detail-kicker { grid-column: 1 / -1; }
  .company-detail div { grid-column: 1 / -1; }
  .company-detail h3 { font-size: 18px; }
  .company-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; }
  .company-actions .blue-button { min-height: 43px; padding-inline: 14px; font-size: 12px; }
  .company-history-head { align-items: start; padding: 14px; }
  .company-history-head h3 { font-size: 17px; }
  .company-history-head a { max-width: 118px; text-align: right; line-height: 1.45; }
  .company-history-row { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 12px 14px; }
  .history-version { grid-column: 1; }
  .history-date { grid-column: 2; grid-row: 1; }
  .history-overview { grid-column: 1; grid-row: 2; }
  .history-status { grid-column: 2; grid-row: 2; align-self: center; }
  .information-hub { margin-top:44px; }
  .information-grid { grid-template-columns:1fr; }
  .information-card { min-height:142px; }
  .chat-lobby-link { align-items:flex-start;padding:11px; }
  .chat-lobby-link img { width:36px; }
  .chat-lobby-link strong { align-self:center;font-size:11px; }
  .device-desk { padding: 16px; }
  .device-grid, .change-grid, .side-stack { grid-template-columns: 1fr; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .box-title-row { align-items: start; }
  .verdict-board { min-height: 480px; padding: 22px 19px 58px; }
  .board-accent { margin: -12px -9px 21px; }
  .verdict-board h2 { max-width: calc(100% - 42px); font-size: 34px; line-height: 1.14; }
  .verdict-facts { grid-template-columns: 1fr; }
  .fact:nth-child(even) { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .verdict-links { align-items: stretch; flex-direction: column; gap: 12px; }
  .verdict-pixel { right: 15px; bottom: 46px; }
  .verdict-board[data-status="caution"] .verdict-pixel { width: 82px; }
  .verdict-board[data-status="avoid"] .verdict-pixel { width: 126px; }
  .section-heading { display: block; }
  .section-heading > p:last-child { margin: 10px 0 0; }
  .urgent-row { grid-template-columns: 1fr; }
  .resolution-context { grid-template-columns: 1fr; }
  .resolution-context .blue-button { grid-column: auto; }
  .resolution-panel { padding: 16px; }
  .resolution-step { grid-template-columns: 42px 1fr; }
  .step-source { grid-column: 2; padding: 10px 0 0; border-left: 0; border-top: 1px dashed #999; }
  .outcome-box { align-items: start; flex-direction: column; }
  .outcome-actions { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
