@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-VariableFont.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
}
:root {
  --glacier: #0A1018;
  --glass: rgba(18, 26, 36, 0.78);
  --glass-strong: rgba(14, 20, 30, 0.88);
  --glass-border: rgba(245, 247, 250, 0.14);
  --cyan: #C47840;
  --cyan-dim: rgba(168, 82, 40, 0.16);  /* c4 rich copper */
  --ember: #A85228;
  --ember-grad: linear-gradient(135deg, #3A2114 0%, #6c391e 45%, #A85228 100%);
  --textile-red: #6c391e; /* c4 rich copper */
  --gold: #C47840; /* copper highlight, not yellow-gold */
  --snow: #F5F7FA;
  --muted: #A8B3C2;
  --pine: #3A6B55;
  --pine-bright: #5FBF8F;
  --warn: #C47840; /* c4 copper highlight, was yellow-leaning */
  --bad: #C45C4A;
  --line: rgba(245,247,250,0.10);
  --shadow: 0 18px 48px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", "IBM Plex Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 1440px; height: 900px;
  overflow: hidden;
  /* demo: fixed artboard; scaled by wrapper */
  font-family: var(--font);
  color: var(--snow);
  background: var(--glacier);
  -webkit-font-smoothing: antialiased;
}
body.screen {
  position: relative;
  background-color: var(--glacier);
  background-size: cover;
  background-position: center;
}
body.screen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,20,0.55) 0%, rgba(8,12,20,0.35) 40%, rgba(8,12,20,0.62) 100%);
  pointer-events: none;
  z-index: 0;
}
.layer { position: relative; z-index: 1; width: 1440px; height: 900px; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 999px; border: none;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--snow); cursor: default;
}
.btn-primary { color: #F2E6D8; background: #6c391e; background-image: none; box-shadow: 0 0 14px rgba(108,57,30,0.34), inset 0 1px 0 rgba(196,120,64,0.22); border: 1px solid rgba(168,82,40,0.55); text-shadow: 0 1px 1px rgba(10,4,0,0.65); font-weight: 700; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
}
.btn-cyan {
  background: var(--cyan-dim);
  border: 1px solid rgba(94,200,232,0.45);
  color: var(--cyan);
}
.muted { color: var(--muted); }
.tiny { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; margin: 0; }
.h3 { font-size: 16px; font-weight: 650; margin: 0; }
.p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.ribbon {
  /* c4 Rich copper · fine braided strip (not flat sunset gradient) */
  height: 6px !important;
  border-radius: 999px;
  background-color: #3a2114;
  background-image: url("/assets/hairline-strip.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: center;
  box-shadow: 0 0 10px rgba(108,57,30,0.34), inset 0 1px 0 rgba(196,120,64,0.18);
  position: relative;
  flex: 0 0 auto;
  min-height: 5px;
  line-height: 0;
}
.ribbon::before, .ribbon::after { display: none !important; content: none !important; background: none !important; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.pill.ok { color: var(--pine-bright); border-color: rgba(95,191,143,0.35); background: rgba(58,107,85,0.25); }
.pill.warn { color: var(--warn); border-color: rgba(208,137,59,0.4); background: rgba(208,137,59,0.12); }
.pill.info { color: var(--cyan); border-color: rgba(94,200,232,0.35); background: var(--cyan-dim); }
.pill.ember { color: #F0C39A; border-color: rgba(168,82,40,0.4); background: rgba(168,82,40,0.12); }
.pill.bad { color: #F0A8A0; border-color: rgba(196,92,74,0.4); background: rgba(196,92,74,0.14); }

/* Shell layouts */
.app-shell { display: grid; grid-template-columns: 232px 1fr; gap: 18px; padding: 22px; height: 900px; }
.sidebar {
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  background: url("/assets/logo-mark-flat-36.png") center/contain no-repeat;
  box-shadow: 0 0 10px rgba(108,57,30,0.3);
  position: relative;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.45));
}
.brand-mark::after { display: none !important; content: none !important; }
.brand-name { font-weight: 700; font-variation-settings: "wght" 700; font-size: 14px; letter-spacing: 0.01em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 550;
}
.nav a.active {
  color: var(--snow);
  background: linear-gradient(90deg, rgba(94,200,232,0.18), rgba(168,82,40,0.08));
  border: 1px solid rgba(94,200,232,0.35);
  box-shadow: inset 0 0 0 1px rgba(94,200,232,0.08);
}
.nav .section-label {
  margin: 12px 12px 6px; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(168,179,194,0.7);
}
.main { padding: 22px 26px; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  padding: 14px 16px;
}
.metric .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.metric .value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.metric .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card {
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; color: var(--muted); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
}
.table td { padding: 12px; border-bottom: 1px solid rgba(245,247,250,0.06); vertical-align: middle; }
.progress {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden;
}
.progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #A85228, #C47840, #C47840);
}
.input, .textarea, .select {
  width: 100%;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--snow);
  padding: 11px 14px;
  font: 500 14px/1.4 var(--font);
}
.textarea { min-height: 110px; resize: none; }
.chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.45;
}
.chat-bubble.bot {
  background: rgba(94,200,232,0.10);
  border: 1px solid rgba(94,200,232,0.22);
}
.chat-bubble.user {
  background: rgba(168,82,40,0.14);
  border: 1px solid rgba(168,82,40,0.28);
  margin-left: auto;
}
.center-stage {
  width: 1440px; height: 900px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.hero-card {
  width: 520px; padding: 36px 40px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.orb {
  width: 168px; height: 168px;
  background: url("../assets/neural-orb.jpg") center/cover no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(94,200,232,0.25), 0 0 60px rgba(168,82,40,0.18);
}
.seed {
  width: 180px; height: 180px;
  background: url("../assets/seed-cube.jpg") center/contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(168,82,40,0.45));
}
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ember-grad); font-weight: 700; font-size: 14px;
}
.code {
  font-family: "IBM Plex Sans", ui-monospace, monospace;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #D7E6F2;
}
.dial {
  width: 210px; height: 210px; position: relative; margin: 0 auto;
}
.dial svg { width: 210px; height: 210px; }
.dial .center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.dial .center .pct { font-size: 36px; font-weight: 750; letter-spacing: -0.03em; }
.theme-chip {
  width: 100%; aspect-ratio: 16/10; border-radius: 12px;
  border: 2px solid transparent; overflow: hidden; position: relative;
}
.theme-chip.selected { border-color: #A85228; box-shadow: 0 0 0 3px rgba(168,82,40,0.22); }
.theme-chip span {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 12px; font-weight: 650;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.footer-note {
  margin-top: auto; font-size: 12px; color: var(--muted); text-align: center;
}
.icon-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #A85228;
  box-shadow: 0 0 8px rgba(168,82,40,0.65);
}
.sparkline {
  height: 42px; width: 100%;
  background:
    linear-gradient(180deg, transparent 60%, rgba(168,82,40,0.10)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpolyline fill='none' stroke='%23E07A3A' stroke-width='2' points='0,30 20,26 40,28 60,18 80,22 100,10 120,14 140,8 160,16 180,12 200,6'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.bar-row .name { width: 120px; color: var(--muted); }
.bar-row .track { flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-row .track > i { display: block; height: 100%; background: linear-gradient(90deg, #3A2114, #A85228, #C47840); border-radius: 999px; }
.bar-row .val { width: 56px; text-align: right; font-weight: 650; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(245,247,250,0.06);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6c391e, #A85228);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.model-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-card {
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; min-height: 138px;
}
.model-card .size { color: var(--gold); font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.family-band {
  height: 3px; border-radius: 999px; margin-bottom: 6px;
  background: linear-gradient(90deg, transparent, #A85228, #C47840, #A85228, transparent);
  box-shadow: 0 0 8px rgba(196,120,64,0.35);
}
.stack-plate {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(168,82,40,0.10), rgba(196,120,64,0.06));
  display: flex; justify-content: space-between; align-items: center;
}
.stack-plate.done { border-color: rgba(95,191,143,0.35); }
.stack-plate.active { border-color: rgba(168,82,40,0.55); box-shadow: 0 0 20px rgba(168,82,40,0.18); }
.qa-banner {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(208,137,59,0.4);
  background: rgba(208,137,59,0.1);
  color: #F0C39A; font-size: 13px;
}
.dropzone {
  border: 1.5px dashed rgba(168,82,40,0.45);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  background: rgba(168,82,40,0.06);
}
.ws-shell { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 20px; height: 900px; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; max-height: 520px; overflow: hidden; }


/* c4 braided dial arc under crisp centre text */
.dial { position: relative; }
.dial > svg { position: relative; z-index: 1; }
.dial svg .bb-arc { stroke: transparent !important; stroke-width: 15 !important; }
.dial svg .bb-arc-under { stroke: rgba(245,247,250,0.10) !important; stroke-width: 15 !important; }
.dial-copper-arc {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  z-index: 2;
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
.dial[data-pct="18"] .dial-copper-arc { background-image: url("/assets/dial-arc-18.png"); }
.dial[data-pct="62"] .dial-copper-arc { background-image: url("/assets/dial-arc-62.png"); }
.dial[data-pct="75"] .dial-copper-arc { background-image: url("/assets/dial-arc-75.png"); }
.dial .center {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  pointer-events: none;
}
.dial .center .tiny {
  color: rgba(245,247,250,0.92) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 8px rgba(0,0,0,0.45);
  font-weight: 650;
}
.dial .center .pct {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.5);
  font-weight: 750;
}
.dial .center .p {
  color: rgba(245,247,250,0.88) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}
.dial svg circle[r="3"] { display: none !important; opacity: 0 !important; }
.family-band {
  height: 4px; border-radius: 999px; margin-bottom: 6px;
  background-color: #3a2114;
  background-image: url("/assets/hairline-strip.png");
  background-size: auto 100%; background-repeat: repeat-x;
  box-shadow: 0 0 6px rgba(108,57,30,0.28);
}

