:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e5eaf1;
  --line-soft: #eef2f7;
  --text: #16202c;
  --muted: #6b7a8c;
  --accent: #1a5fd0;
  --accent-hover: #1550b3;
  --accent-soft: #e9f1ff;
  --green: #12996b;
  --amber: #b7791f;
  --red: #cf3b3b;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 48, .05);
  --shadow-md: 0 10px 30px rgba(18, 32, 48, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.titlebar {
  height: 36px; display: flex; align-items: center; gap: 10px;
  padding: 0 0 0 14px; background: #fff; border-bottom: 1px solid var(--line);
  user-select: none; -webkit-app-region: drag;
}
.tb-brand { font-size: 12px; font-weight: 600; color: #41546a; display: flex; align-items: center; gap: 7px; }
.tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tb-drag { flex: 1; height: 100%; }
.tb-controls { display: flex; height: 100%; -webkit-app-region: no-drag; }
.tb-controls button {
  width: 46px; height: 36px; border: 0; background: transparent; color: #5b6b7d; font-size: 12px;
}
.tb-controls button:hover { background: #eef2f7; }
.tb-controls button.close:hover { background: #e81123; color: #fff; }

.shell { display: flex; height: calc(100vh - 36px); }
body.no-titlebar .titlebar { display: none; }
body.no-titlebar .shell { height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 264px; flex: 0 0 264px; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #2b74e8, #12408f); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px rgba(26, 95, 208, .28);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); }

.new-btn {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  height: 42px; font-weight: 600; font-size: 13.5px; margin: 0 4px 18px;
  box-shadow: 0 6px 16px rgba(26, 95, 208, .25); transition: .15s;
}
.new-btn span { font-size: 19px; line-height: 1; font-weight: 400; }
.new-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 11px;
  border: 0; background: transparent; border-radius: 9px; font-size: 13.5px; color: #33475d; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; color: #6c7f94; }
.nav-item:hover { background: #f2f5fa; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active svg { color: var(--accent); }
.nav-label { font-size: 10.5px; letter-spacing: .13em; color: #93a3b6; font-weight: 600; margin: 20px 0 7px; padding-left: 11px; }

.storage-card { margin-top: auto; background: #f7f9fc; border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px; }
.storage-head { display: flex; justify-content: space-between; font-size: 11.5px; color: #5a6c80; margin-bottom: 7px; }
.storage-bar { height: 6px; border-radius: 99px; background: #e3e9f1; overflow: hidden; }
.storage-bar div { height: 100%; width: 2%; background: linear-gradient(90deg, #2b74e8, #6aa4ff); border-radius: 99px; transition: width .4s; }
.storage-text { font-size: 11px; color: #8494a7; margin-top: 6px; }

.user { display: flex; align-items: center; gap: 9px; padding: 13px 6px 2px; margin-top: 10px; border-top: 1px solid var(--line-soft); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #dbe8ff; color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; }
.user-plan { font-size: 10.5px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c3ccd8; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 153, 107, .14); }
.status-dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(207, 59, 59, .14); }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 66px; flex: 0 0 66px; display: flex; align-items: center; gap: 18px;
  padding: 0 26px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 13.5px; color: #44576c; min-width: 150px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs button { border: 0; background: none; color: #62758a; padding: 2px 3px; border-radius: 5px; font-size: 13.5px; }
.crumbs button:hover { background: #eef2f8; color: var(--accent); }
.crumbs .sep { color: #b3c0cf; }
.search { flex: 1; max-width: 520px; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8494a7; }
.search input {
  width: 100%; height: 38px; border: 1px solid transparent; background: #f1f4f9; border-radius: 10px;
  padding: 0 14px 0 36px; font: inherit; font-size: 13px; outline: none; transition: .15s;
}
.search input:focus { background: #fff; border-color: #b9d0f5; box-shadow: 0 0 0 3px rgba(26, 95, 208, .1); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #5b6b7d; display: grid; place-items: center; }
.icon-btn:hover { background: #f4f7fb; }
.icon-btn.active { background: var(--accent-soft); border-color: #c7dcff; color: var(--accent); }
.upload-btn {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 9px;
  border: 1px solid #c9dcfa; background: #f3f8ff; color: var(--accent); font-weight: 600; font-size: 13px;
}
.upload-btn svg { width: 16px; height: 16px; }
.upload-btn:hover { background: #e8f1ff; }

.content { flex: 1; overflow: auto; padding: 26px 28px 40px; }

/* ---------- Files ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.section-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: #eef2f8; color: #5b6b7d; font-weight: 600; }
.chip.blue { background: var(--accent-soft); color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px;
  cursor: pointer; transition: .14s; position: relative; box-shadow: var(--shadow-sm); min-height: 132px;
}
.card:hover { border-color: #c8d8ee; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 95, 208, .12); }
.card .ficon { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 10px; }
.card .ficon svg { width: 23px; height: 23px; stroke-width: 1.6; }
.card .fname { font-size: 13px; font-weight: 600; line-height: 1.35; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .fmeta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.card .more { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: #7d8ea1; opacity: 0; }
.card:hover .more { opacity: 1; }
.card .more:hover { background: #eef2f8; }

.list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.row { display: grid; grid-template-columns: 1fr 120px 150px 44px; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #f8fafd; }
.row.selected { background: var(--accent-soft); }
.row .rname { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 500; font-size: 13px; }
.row .rname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rsize, .row .rdate { font-size: 12px; color: var(--muted); }
.row .ricon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 30px; }
.row .ricon svg { width: 16px; height: 16px; }
.row-head { background: #fafbfd; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8494a7; font-weight: 600; cursor: default; }
.row-head:hover { background: #fafbfd; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: #3c5068; }
.empty p { margin: 0; font-size: 13px; }

/* ---------- Inspector ---------- */
.inspector { width: 316px; flex: 0 0 316px; background: #fff; border-left: 1px solid var(--line); padding: 20px; overflow: auto; }
.inspector-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #93a3b6; text-align: center; gap: 10px; }
.inspector-glyph { font-size: 34px; opacity: .5; }
.inspector-empty p { font-size: 12.5px; max-width: 190px; line-height: 1.5; margin: 0; }
.insp-preview { height: 130px; border-radius: 10px; background: #f7f9fc; border: 1px solid var(--line-soft); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.insp-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.insp-preview pre { margin: 0; padding: 10px; font-size: 9.5px; line-height: 1.45; color: #55677c; white-space: pre-wrap; overflow: hidden; max-height: 128px; width: 100%; }
.insp-name { font-size: 15px; font-weight: 700; word-break: break-word; margin: 0 0 4px; }
.insp-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.insp-actions { display: grid; gap: 7px; margin-bottom: 18px; }
.btn { height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { background: #f5f8fc; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red); border-color: #f0d2d2; }
.btn.danger:hover { background: #fdf3f3; }
.btn svg { width: 15px; height: 15px; }
.insp-section { font-size: 10.5px; letter-spacing: .11em; color: #8494a7; font-weight: 700; margin: 0 0 8px; }
.ai-box { background: #f7faff; border: 1px solid #dfe9f8; border-radius: 10px; padding: 12px; font-size: 12.5px; line-height: 1.55; color: #33475d; white-space: pre-wrap; }
.ai-box.loading { color: #7d8ea1; font-style: italic; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; }

/* ---------- Chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 36px - 66px - 60px); max-width: 860px; margin: 0 auto; }
.chat-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 16px; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg .meta { display: block; font-size: 10px; opacity: .6; margin-top: 6px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); }
.chat-input textarea { flex: 1; border: 0; outline: none; resize: none; font: inherit; font-size: 13.5px; padding: 8px; max-height: 140px; background: transparent; }
.chat-input button { height: 38px; padding: 0 18px; border-radius: 9px; border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }
.chat-input button:disabled { opacity: .5; }
.chat-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.select { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; padding: 0 9px; color: #33475d; }

/* ---------- Gateway / Tests ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8494a7; font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.stat-value.small { font-size: 17px; }
.stat-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #8494a7; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; }
.pill.pass { background: #e6f7f0; color: #0f7a56; }
.pill.fail { background: #fdecec; color: #b32d2d; }
.pill.blocked { background: #fff4e0; color: #9a6512; }
.pill.run { background: #e9f1ff; color: var(--accent); }
.mono { font-family: "Cascadia Code", ui-monospace, monospace; font-size: 11.5px; }
.bar { height: 7px; border-radius: 99px; background: #e8edf4; overflow: hidden; }
.bar div { height: 100%; background: linear-gradient(90deg, #2b74e8, #6aa4ff); width: 0; transition: width .3s; }

.game-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b1220; box-shadow: var(--shadow-md); }
.game-hero img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.game-hero .overlay { position: absolute; inset: auto 0 0 0; padding: 26px; background: linear-gradient(transparent, rgba(4, 10, 18, .9)); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.game-hero h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.game-hero p { margin: 0; font-size: 12.5px; color: #b9cbe0; }
.game-hero .btn { background: #fff; border: 0; color: #0b1220; height: 40px; padding: 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.feature b { display: block; font-size: 13px; margin-bottom: 4px; }
.feature span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- Modal / toast / context ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 24, 38, .35); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; }
.modal { width: min(420px, 92vw); background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px rgba(10, 20, 35, .3); }
.modal h3 { margin: 0 0 6px; font-size: 17px; }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font: inherit; margin-bottom: 16px; outline: none; }
.modal input:focus { border-color: #b9d0f5; box-shadow: 0 0 0 3px rgba(26, 95, 208, .1); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions .btn { padding: 0 16px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 10px); background: #16202c; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 12.5px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.ctx { position: fixed; z-index: 55; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); padding: 5px; min-width: 180px; }
.ctx button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; text-align: left; }
.ctx button:hover { background: #f2f6fb; }
.ctx button.danger { color: var(--red); }

@media (max-width: 1180px) {
  .inspector { display: none; }
}
@media (max-width: 900px) {
  .sidebar { width: 76px; flex-basis: 76px; padding: 14px 10px; }
  .brand-name, .brand-sub, .nav-item span, .nav-label, .storage-card, .user-meta, .new-btn span + *, .new-btn { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .new-btn { font-size: 0; height: 38px; }
  .new-btn span { font-size: 20px; }
  .brand { justify-content: center; padding-bottom: 12px; }
}

/* ================================================================
   MR. ROBOTS STREET-ART SYSTEM
   Supplied platform artwork is a local, user-provided reference asset.
   ================================================================ */
:root {
  --bg: #111315;
  --panel: rgba(20, 23, 25, .94);
  --line: rgba(232, 235, 226, .17);
  --line-soft: rgba(232, 235, 226, .09);
  --text: #f0efe7;
  --muted: #aeb0a8;
  --accent: #f0bd18;
  --accent-hover: #ffd84a;
  --accent-soft: rgba(240, 189, 24, .16);
  --green: #a8df35;
  --amber: #f59d27;
  --red: #e14b3f;
  --blue: #57c8ed;
  --radius: 6px;
  --shadow-sm: 0 2px 0 rgba(0,0,0,.28), 0 8px 22px rgba(0,0,0,.16);
  --shadow-md: 0 4px 0 rgba(0,0,0,.32), 0 18px 48px rgba(0,0,0,.34);
}

body {
  background: #111315;
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}
.titlebar {
  height: 38px; background: #0b0d0e; border-bottom: 1px solid rgba(240,189,24,.38);
  color: #d8d7cf;
}
.tb-brand { color: #d8d7cf; font-family: Impact, "Arial Narrow", sans-serif; letter-spacing: .11em; font-size: 11px; }
.tb-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(240,189,24,.14); }
.tb-controls button { color: #aaa9a2; }
.tb-controls button:hover { background: rgba(255,255,255,.08); }

.shell {
  height: calc(100vh - 38px);
  background:
    linear-gradient(90deg, rgba(6,8,9,.97) 0%, rgba(8,10,11,.91) 25%, rgba(8,10,11,.78) 58%, rgba(8,10,11,.94) 100%),
    url('/desktop/assets/mr-robots-platform.png') center / cover fixed;
}
body.no-titlebar .shell { height: 100vh; }
.sidebar {
  width: 276px; flex-basis: 276px; padding: 18px 15px 14px;
  background: rgba(11,13,14,.91); border-right: 1px solid rgba(240,189,24,.32);
  box-shadow: 8px 0 30px rgba(0,0,0,.28); position: relative; overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .11;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.16) 19px 20px, transparent 21px 43px);
  mix-blend-mode: screen;
}
.brand { padding: 2px 7px 18px; position: relative; z-index: 1; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 2px; transform: rotate(-3deg);
  background: #eeeae0; color: #111315; font-family: Impact, sans-serif; font-size: 13px;
  border: 2px solid #111315; box-shadow: 4px 4px 0 var(--accent), 0 0 0 1px #eeeae0;
}
.brand-name { font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; }
.brand-sub { color: var(--accent); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; }
.new-btn {
  position: relative; z-index: 1; height: 43px; margin: 0 4px 18px; border-radius: 2px;
  background: var(--accent); color: #111315; border: 1px solid #111315;
  box-shadow: 4px 4px 0 #eeeae0; text-transform: uppercase; letter-spacing: .08em;
}
.new-btn:hover { background: var(--accent-hover); transform: translate(-1px,-1px); }
.nav, .nav-label, .storage-card, .user { position: relative; z-index: 1; }
.nav-item {
  height: 39px; border-radius: 2px; color: #bfc0b9; border-left: 3px solid transparent;
  text-transform: uppercase; letter-spacing: .045em; font-size: 12px;
}
.nav-item svg { color: #8c9088; }
.nav-item:hover { background: rgba(255,255,255,.065); color: #fff; }
.nav-item.active { background: rgba(240,189,24,.15); border-left-color: var(--accent); color: var(--accent); font-weight: 800; }
.nav-item.active svg { color: var(--accent); }
.nav-label { color: #7d807a; letter-spacing: .22em; margin-top: 22px; }
.storage-card { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 2px; }
.storage-head, .storage-text { color: #aeb0a8; }
.storage-bar { background: rgba(255,255,255,.12); border-radius: 0; }
.storage-bar div { background: linear-gradient(90deg, var(--green), var(--accent)); border-radius: 0; }
.user { border-top-color: rgba(240,189,24,.28); }
.avatar { border-radius: 2px; background: #eeeae0; color: #111315; font-family: Impact, sans-serif; box-shadow: 3px 3px 0 var(--red); }
.user-name { color: #eeeae0; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.user-plan { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

.main { background: rgba(11,13,14,.66); }
.topbar {
  height: 70px; flex-basis: 70px; padding: 0 27px; background: rgba(12,14,15,.82);
  border-bottom: 1px solid rgba(240,189,24,.3); backdrop-filter: blur(13px);
}
.crumbs { color: #eeeae0; text-transform: uppercase; letter-spacing: .11em; font-family: Impact, "Arial Narrow", sans-serif; font-size: 15px; }
.crumbs button { color: #c0c1b9; }
.crumbs button:hover { background: rgba(240,189,24,.13); color: var(--accent); }
.crumbs .sep { color: var(--accent); }
.search input { color: #eeeae0; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); border-radius: 2px; }
.search input::placeholder { color: #8e918b; }
.search input:focus { background: rgba(0,0,0,.25); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,189,24,.13); }
.icon-btn { border-color: rgba(255,255,255,.16); border-radius: 2px; background: rgba(255,255,255,.06); color: #d3d3ca; }
.icon-btn:hover, .icon-btn.active { background: rgba(240,189,24,.15); border-color: var(--accent); color: var(--accent); }
.upload-btn { border: 1px solid var(--accent); border-radius: 2px; background: rgba(240,189,24,.13); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.upload-btn:hover { background: var(--accent); color: #111315; }
.content { padding: 28px 30px 44px; }
.section-title { font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .07em; font-size: 25px; color: #f1eee4; text-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.section-sub { color: #aeb0a8; }
.chip { background: rgba(255,255,255,.09); color: #c8c9c1; border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; }
.chip.blue { background: rgba(87,200,237,.15); color: var(--blue); }

.card, .list, .panel, .stat-card, .feature {
  background: rgba(18,21,22,.88); border: 1px solid rgba(240,238,225,.17); border-radius: 2px; box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--accent); box-shadow: 5px 5px 0 rgba(240,189,24,.15), var(--shadow-md); }
.card.selected { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.card .fname, .row .rname { color: #eeeae0; }
.card .fmeta, .row .rsize, .row .rdate { color: #9fa29b; }
.card .more { color: #c8c8bf; }
.card .more:hover { background: rgba(240,189,24,.17); }
.row { border-bottom-color: rgba(255,255,255,.08); }
.row:hover { background: rgba(240,189,24,.08); }
.row.selected { background: rgba(240,189,24,.13); }
.row-head, .row-head:hover { background: rgba(255,255,255,.045); color: #9b9f97; }
.empty { color: #a4a69e; }
.empty h3 { color: #eeeae0; font-family: Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; }

.inspector { background: rgba(13,15,16,.92); border-left: 1px solid rgba(240,189,24,.28); }
.inspector-empty { color: #8e928a; }
.inspector-glyph { color: var(--accent); }
.insp-preview { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); border-radius: 2px; }
.insp-name { color: #eeeae0; }
.insp-meta { color: #9fa29b; }
.btn { background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.18); border-radius: 2px; color: #eeeae0; text-transform: uppercase; letter-spacing: .04em; }
.btn:hover { background: rgba(255,255,255,.13); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111315; box-shadow: 3px 3px 0 #eeeae0; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: #ff8578; border-color: rgba(225,75,63,.5); }
.insp-section, .stat-label { color: var(--accent); }
.ai-box { background: rgba(87,200,237,.09); border-color: rgba(87,200,237,.3); color: #d6eef4; border-radius: 2px; }
.kv { border-bottom-color: rgba(255,255,255,.1); }
.kv span:first-child { color: #9fa29b; }
.kv span:last-child { color: #eeeae0; }

.msg.assistant { background: rgba(18,21,22,.94); border-color: rgba(240,238,225,.18); color: #eeeae0; }
.msg.user { background: var(--accent); color: #111315; border-radius: 2px; }
.chat-input { background: rgba(18,21,22,.94); border-color: rgba(240,189,24,.37); border-radius: 2px; }
.chat-input textarea { color: #eeeae0; }
.chat-input button { background: var(--accent); color: #111315; border-radius: 2px; text-transform: uppercase; }
.select { background: rgba(255,255,255,.08); color: #eeeae0; border-color: rgba(255,255,255,.2); border-radius: 2px; }

.stat-value { color: #f1eee4; font-family: Impact, sans-serif; letter-spacing: .05em; }
.stat-hint { color: #9fa29b; }
th { color: #9fa29b; border-bottom-color: rgba(255,255,255,.16); }
td { border-bottom-color: rgba(255,255,255,.08); color: #deded6; }
.pill.pass { background: rgba(168,223,53,.18); color: var(--green); }
.pill.fail { background: rgba(225,75,63,.18); color: #ff8578; }
.pill.blocked { background: rgba(245,157,39,.2); color: var(--amber); }
.pill.run { background: rgba(87,200,237,.17); color: var(--blue); }
.bar { background: rgba(255,255,255,.1); border-radius: 0; }
.bar div { background: linear-gradient(90deg, var(--blue), var(--green), var(--accent)); }
.game-hero { border-radius: 2px; border-color: rgba(240,189,24,.35); }
.feature b { color: #eeeae0; font-family: Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.feature span { color: #aeb0a8; }

.modal-backdrop { background: rgba(0,0,0,.7); }
.modal { background: #171a1b; border: 1px solid rgba(240,189,24,.42); border-radius: 2px; box-shadow: 8px 8px 0 rgba(240,189,24,.15), 0 30px 80px rgba(0,0,0,.5); }
.modal h3 { color: #eeeae0; font-family: Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.modal p { color: #aeb0a8; }
.modal input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #eeeae0; border-radius: 2px; }
.toast { background: #eeeae0; color: #111315; border-radius: 2px; box-shadow: 4px 4px 0 var(--accent); }
.ctx { background: #171a1b; border-color: rgba(240,189,24,.35); border-radius: 2px; }
.ctx button { color: #eeeae0; }
.ctx button:hover { background: rgba(240,189,24,.14); }

@media (max-width: 1180px) { .inspector { background: rgba(13,15,16,.98); } }
@media (max-width: 900px) {
  .sidebar { width: 78px; flex-basis: 78px; }
  .brand-name, .brand-sub, .nav-item span, .nav-label, .storage-card, .user-meta { display: none; }
  .brand { justify-content: center; }
  .new-btn { font-size: 0; box-shadow: 3px 3px 0 #eeeae0; }
  .new-btn span { font-size: 22px; }
}

/* ================================================================
   NEXUS COMMAND DECK
   The artwork is a branded system surface, never the whole application.
   ================================================================ */
.command-hero {
  position: relative; min-height: 264px; overflow: hidden; display: flex; align-items: flex-end;
  border: 1px solid rgba(240,189,24,.42); border-radius: 2px; box-shadow: var(--shadow-md);
  background: #0b0d0e; isolation: isolate; margin-bottom: 18px;
}
.command-hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url('/desktop/assets/mr-robots-exact.png') center / cover no-repeat;
  filter: saturate(.92) contrast(1.05);
}
.command-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,7,8,.94) 0%, rgba(5,7,8,.73) 45%, rgba(5,7,8,.13) 100%), linear-gradient(0deg, rgba(5,7,8,.88), transparent 70%);
}
.command-hero-copy { max-width: 650px; padding: 28px 32px; }
.command-hero h1 { margin: 7px 0 7px; color: #f3f0e6; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(28px, 3.4vw, 48px); line-height: .98; letter-spacing: .035em; text-transform: uppercase; text-shadow: 4px 4px 0 rgba(0,0,0,.52); }
.command-hero p { max-width: 570px; margin: 0; color: #d0d1c8; line-height: 1.55; font-size: 13px; }
.eyebrow { color: var(--accent); font: 700 10px/1.2 "Cascadia Code", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; }
.command-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.command-hero-actions .btn { padding: 0 15px; text-decoration: none; }
.deck-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.deck-stat { min-height: 105px; padding: 15px 17px; border: 1px solid rgba(240,238,225,.18); border-left: 3px solid var(--accent); border-radius: 2px; background: rgba(18,21,22,.9); box-shadow: var(--shadow-sm); }
.deck-stat-label { color: #9fa29b; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.deck-stat-value { margin-top: 9px; color: #f1eee4; font: 30px/1 Impact, sans-serif; letter-spacing: .04em; }
.deck-stat-value.ok { color: var(--green); }
.deck-stat-value.warn { color: var(--amber); }
.deck-stat-hint { margin-top: 6px; color: #9fa29b; font-size: 11px; }
.deck-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 12px; }
.deck-section-head h2 { margin: 5px 0 0; color: #eeeae0; font: 25px/1 Impact, "Arial Narrow", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.deck-live { display: flex; align-items: center; gap: 7px; color: #aeb0a8; font-size: 11px; }
.deck-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(168,223,53,.15); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.module-card { display: flex; align-items: flex-start; gap: 13px; min-height: 132px; padding: 16px; border: 1px solid rgba(240,238,225,.18); border-radius: 2px; background: rgba(18,21,22,.9); color: #eeeae0; text-align: left; box-shadow: var(--shadow-sm); transition: .15s; }
.module-card:hover { border-color: var(--accent); background: rgba(240,189,24,.1); box-shadow: 4px 4px 0 rgba(240,189,24,.2); transform: translate(-1px,-1px); }
.module-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(240,189,24,.12); color: var(--accent); border: 1px solid rgba(240,189,24,.38); border-radius: 2px; }
.module-icon svg { width: 22px; height: 22px; }
.module-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.module-copy b { font: 17px/1 Impact, "Arial Narrow", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.module-copy small { color: #aeb0a8; font-size: 11.5px; line-height: 1.45; }
.module-copy em { margin-top: auto; color: var(--accent); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.command-grid .btn { justify-content: space-between; min-height: 42px; padding: 0 12px; text-align: left; }
.command-grid .mono { color: var(--accent); }
@media (max-width: 1080px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .deck-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .command-hero-copy { padding: 23px; } }
@media (max-width: 520px) { .command-grid, .module-grid, .deck-stat-grid { grid-template-columns: 1fr; } .command-hero { min-height: 320px; } }
