:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d0f11;
  color: #edf1f2;
  --accent: #62f5ff;
  --panel: #14191b;
  --line: #2a3437;
  --dim: #8d9ba0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { display: block; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #93a3a8; }
.lab { display: flex; align-items: center; gap: 9px; }
.lab span { display: grid; place-items: center; }
.edition { color: #5d6c71; }

main { max-width: 1200px; margin: auto; padding: 40px 28px 70px; }

.eyebrow { margin: 0 0 12px; font-size: 10px; letter-spacing: .16em; color: #5f7075; font-weight: 800; }
h1 { margin: 0; font-size: clamp(30px,5vw,46px); line-height: 1.04; font-weight: 880; letter-spacing: -.03em; font-style: italic; text-transform: uppercase; }
h1 em { font-style: italic; color: var(--accent); }
.intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,420px); gap: 30px; align-items: end; }
.intro-copy { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.75; }

.thesis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 34px 0 0; }
.thesis article { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 16px 16px 18px; box-shadow: 4px 4px 0 #000; }
.rank { display: grid; place-items: center; width: 22px; height: 22px; background: var(--accent); color: #0b1a1c; font-size: 10px; font-weight: 900; }
.thesis h3 { margin: 12px 0 7px; font-size: 17px; font-weight: 850; font-style: italic; letter-spacing: -.01em; }
.thesis p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.65; }

.workspace { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 30px; margin-top: 40px; align-items: start; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-title h2 { margin: 0; font-size: 14px; font-weight: 820; letter-spacing: .01em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.section-title h2 span { display: grid; place-items: center; width: 19px; height: 19px; background: var(--accent); color: #0b1a1c; font-size: 9px; font-weight: 900; }
.section-title > span { font-size: 10px; color: #627277; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.options section + section { margin-top: 32px; }

.names { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.name-btn { display: grid; gap: 4px; padding: 14px 12px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-align: left; transition: border-color 140ms ease, background 140ms ease; }
.name-btn:hover { border-color: #47585c; }
.name-btn[aria-pressed=true] { border-color: var(--accent); box-shadow: 3px 3px 0 rgba(98,245,255,.35); }
.name-btn b { font-size: 19px; font-weight: 880; font-style: italic; letter-spacing: -.01em; }
.name-btn small { color: #7e8e93; font-size: 11px; line-height: 1.45; }

.marks { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.mark-btn { display: grid; justify-items: center; gap: 9px; padding: 16px 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); transition: border-color 140ms ease; }
.mark-btn:hover { border-color: #47585c; }
.mark-btn[aria-pressed=true] { border-color: var(--accent); box-shadow: 3px 3px 0 rgba(98,245,255,.35); }
.mark-btn span { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #869599; }
.mark-note { margin: 12px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.6; min-height: 32px; }

.colors { display: flex; gap: 9px; flex-wrap: wrap; }
.color-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; padding: 0; display: grid; place-items: center; }
.color-btn i { width: 20px; height: 20px; border-radius: 2px; }
.color-btn[aria-pressed=true] { border-color: #e7f6f8; box-shadow: 3px 3px 0 #000; }

.product { border: 1px solid #3c4c4a; border-radius: 3px; background: #12181a; box-shadow: 4px 4px 0 #000; overflow: hidden; }
.product-head { display: flex; align-items: center; gap: 8px; padding: 13px 12px; border-bottom: 3px solid var(--accent); }
.product-head strong { font-size: 17px; font-weight: 880; font-style: italic; }
.plus { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); color: #0b1a1c; font-style: normal; font-weight: 900; box-shadow: 2px 2px 0 #000; }
.tabs { display: flex; gap: 2px; padding: 9px 11px 7px; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #6f8085; }
.tabs .chosen { background: var(--accent); color: #0b1a1c; padding: 3px 9px; clip-path: polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%,0 7px); }
.tabs span:not(.chosen) { padding: 3px 9px; }
.thread { display: grid; gap: 1px; margin: 4px 9px; padding: 7px 9px; border: 1px solid #2a3735; border-radius: 2px; background: #1b2426; }
.thread strong { font-size: 11.5px; font-weight: 820; }
.branch { font-size: 10.5px; color: #93a3a8; }
.st { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.st.thinking { color: #37e0d4; }
.st.wait { color: #ffb23d; }
.st.done { color: #6ee787; }
.st.done b { background: #6ee787; color: #06130b; padding: 0 4px; }
.thread.selected { background: var(--accent); border-color: var(--accent); box-shadow: 3px 3px 0 #05100e; }
.thread.selected strong { color: #0b1a1c; }
.thread.selected .branch { color: #2c5257; }
.thread.selected .st { color: #14484a; }
.account { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #47605b; background: #17201f; font-size: 12px; font-weight: 700; }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 3px; background: #1e2b29; }
.plan { margin-left: auto; border: 1px solid var(--accent); color: var(--accent); font-size: 8.5px; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; }

.sizes { margin-top: 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 14px; }
.sizes > span { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: #6f8085; text-transform: uppercase; }
.sizes div { display: flex; align-items: flex-end; gap: 16px; margin-top: 12px; }

.identity { margin-top: 48px; }
.stage { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: stretch; }
.stage-main { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); box-shadow: 5px 5px 0 #000; padding: 40px 32px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.stage-main h2 { margin: 0; font-size: clamp(30px,6vw,52px); font-weight: 900; font-style: italic; letter-spacing: -.035em; text-transform: uppercase; }
.stage-main p { margin: 0; color: var(--dim); font-size: 12.5px; }
.mono { display: grid; gap: 14px; }
.mono > div { display: grid; place-items: center; gap: 10px; border-radius: 3px; padding: 26px 16px; }
.mono-dark { background: #05070a; border: 1px solid #202a2d; }
.mono-light { background: #f2f5f4; color: #0d0f11; }
.mono strong { font-size: 19px; font-weight: 880; font-style: italic; }

.identity-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.identity-footer p { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.65; max-width: 62ch; }
.download { border: 1px solid #0e1416; background: var(--accent); color: #0b1a1c; font-weight: 850; font-size: 12px; padding: 11px 18px; border-radius: 2px; box-shadow: 3px 3px 0 #000; }
.download:hover { background: #fff; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 18px; border-top: 1px solid var(--line); color: #67777c; font-size: 11px; line-height: 1.6; }
footer a { color: #8fa0a5; }

@media (max-width: 980px) {
  .intro, .workspace, .stage { grid-template-columns: 1fr; }
  .thesis { grid-template-columns: 1fr; }
  .marks { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
