/* Cyberpunk retouch. Local assets only; no font or image requests. */
:root {
  color-scheme: dark;
  --paper: #080b12;
  --white: #101620;
  --ink: #ecf1f3;
  --muted: #a4b4c2;
  --line: #30404f;
  --orange: #fcee0a;
  --green: #42efd4;
  --cyan: #66f3ff;
  --yellow: #fcee0a;
  --red: #ff647c;
  --mono: "Cascadia Code", "Lucida Console", Consolas, monospace;
}

::selection { background: var(--yellow); color: #080b12; }
body {
  background: #080b12;
  background-image: linear-gradient(#4dc8ec05 1px, transparent 1px), linear-gradient(90deg, #4dc8ec05 1px, transparent 1px);
  background-size: 44px 44px;
}
button, input, textarea, select { border-radius: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.skip { background: var(--yellow); color: #080b12; font-weight: 700; }

.sidebar {
  background: #0b1018;
  border-right: 1px solid #3d4650;
  border-top: 4px solid var(--yellow);
  padding-top: 32px;
}
.sidebar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 170px;
  width: 3px;
  height: 95px;
  background: var(--cyan);
  box-shadow: 0 0 14px #66f3ff50;
  pointer-events: none;
}
.brand { color: var(--yellow); font-family: "Arial Narrow", "Segoe UI", sans-serif; font-weight: 800; font-style: italic; letter-spacing: -1.3px; }
.brand-light { font-weight: 400; color: var(--ink); }
.brand small { color: var(--cyan); font-style: normal; font-size: 8px; letter-spacing: 1.6px; }
.brand-icon {
  background: var(--yellow);
  color: #080b12;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
  padding-bottom: 3px;
}
.nav-item { border-radius: 0; color: #b4c3cf; font-family: var(--mono); font-size: 11px; border-left: 2px solid transparent; }
.nav-item.selected { background: var(--yellow); color: #080b12; font-weight: 700; border-left-color: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.nav-item:hover { background: #152735; color: var(--cyan); border-left-color: var(--cyan); }
.nav-item.selected:hover { background: #fff94e; color: #080b12; }
.nav-item.selected:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px #080b12; }
.history-heading { color: var(--cyan); letter-spacing: 1.4px; }
.history-heading button { color: #b4c3cf; }
.history-item { border-radius: 0; border-left: 2px solid #2b4552; }
.history-item:hover { background: #14242f; border-left-color: var(--cyan); }
.history-item strong { color: #dce6eb; }
.history-item small, .history-empty, .sidebar-bottom p { color: #a3b5c4; }
.sidebar-bottom { color: var(--cyan); border-top-color: #304553; font-family: var(--mono); font-size: 10px; }
.local-dot { background: var(--cyan); border-radius: 0; box-shadow: 0 0 7px #66f3ff70; }
.version { color: var(--yellow); }

.topbar { border-bottom-color: #2d4e5b; color: var(--cyan); letter-spacing: 1.5px; position: relative; }
.topbar::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 105px; height: 2px; background: var(--cyan); }
.tiny-square { background: var(--yellow); box-shadow: 0 0 8px #fcee0a40; }
.text-button { color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.text-button:hover { color: var(--yellow); }
.intro { position: relative; padding: 38px 0 42px; gap: 9px 45px; }
.intro::after {
  content: "";
  position: absolute;
  bottom: 22px;
  right: 0;
  width: 113px;
  height: 5px;
  background: repeating-linear-gradient(120deg, var(--yellow) 0 3px, transparent 3px 7px);
  opacity: .75;
}
.intro > .eyebrow { color: var(--cyan); letter-spacing: 2.1px; font-size: 9px; margin-bottom: 7px; }
.intro > .eyebrow, .intro > h1, .intro > p { position: relative; z-index: 1; }
.depth-accent {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 260px;
  height: 112px;
  pointer-events: none;
  user-select: none;
  opacity: .17;
  contain: strict;
  overflow: hidden;
  z-index: 0;
}
.depth-accent > canvas, .depth-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.depth-accent > canvas { opacity: 0; }
.depth-accent[data-depth-ready="true"] > canvas { opacity: 1; }
.depth-accent[data-depth-ready="true"] > .depth-fallback { opacity: 0; }
@media(max-width: 1099px), (pointer: coarse) { .depth-accent { display: none; } }
.intro h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(45px, 4.8vw, 74px);
  font-weight: 400;
  font-style: italic;
  line-height: .99;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 2px 1px 0 #ff3c6b;
}
.intro h1 > span { font: inherit; color: var(--cyan); text-shadow: 2px 1px 0 #075b77; }
.intro p { color: #c0cdd5; font-size: 13px; line-height: 1.85; margin-bottom: 4px; max-width: 325px; padding-left: 17px; border-left: 2px solid #fcee0a70; }

.workbench {
  background: #0f1520;
  border: 1px solid #4b5d63;
  border-top: 2px solid var(--yellow);
  border-radius: 0;
  box-shadow: 0 14px 70px #0005;
}
.brief-panel { background: #10151e; border-right-color: #3b4b56; }
.output-panel { background: #0b151e; box-shadow: inset 0 1px #66f3ff30; }
.section-top { margin-bottom: 27px; }
.section-top h2 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); }
.step { color: var(--yellow); border-bottom: 1px solid var(--yellow); padding-bottom: 3px; font-size: 10px; }
.output-panel .step { color: var(--cyan); border-color: var(--cyan); }
.muted { color: var(--muted); }
label { font-size: 11px; letter-spacing: .2px; color: #e1e9ed; }
.required { color: var(--yellow); }
textarea, input, select {
  color: #e4eef2;
  background: #070e16;
  border: 1px solid #3b515e;
  border-left: 2px solid #4b7d88;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  caret-color: var(--yellow);
}
#goal { font-size: 12px; }
textarea::placeholder, input::placeholder { color: #94aab8; opacity: 1; }
textarea:focus, input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #66f3ff18; }
select { color-scheme: dark; }
select option { background: #101a24; color: #e4eef2; }
.field-foot, .field-help, .generation-note, .optional { color: #a3b6c4; }
.field-foot, .generation-note { font-family: var(--mono); font-size: 8px; }
.field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-row > div { min-width: 0; }
.examples > span { color: var(--yellow); }
.examples button { border: 1px solid #365563; background: #0b1b25; color: #b4e7ee; border-radius: 0; font-family: var(--mono); font-size: 9px; }
.examples button:hover { background: var(--yellow); color: #080b12; border-color: var(--yellow); }
.advanced { border-color: #344854; }
.advanced summary { color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.advanced summary:hover { color: var(--yellow); }
.primary {
  color: #080b12;
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 12px;
  font-weight: 800;
  padding: 16px 18px;
}
.primary:hover { background: #fff95a; }
.primary:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px #080b12; }
.primary span { font-size: 21px; }
.generation-note > span:first-child { color: var(--cyan); }

.pill { border: 1px solid #4d747e; background: #132b36; color: var(--cyan); border-radius: 0; font-size: 8px; }
.bar-card { border: 1px solid #2e6671; border-left: 3px solid var(--cyan); background: #0c242d; border-radius: 0; position: relative; }
.bar-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.bar-card .eyebrow { color: var(--cyan); }
.bar-card .eyebrow > span:last-child { color: #a7ccd4; }
.bar-dot { border-radius: 0; background: var(--cyan); }
.bar-card p { color: #c6e5e9; font-size: 11px; line-height: 1.85; }
.loop-track { border-color: #274552; color: #d9e8eb; font-family: var(--mono); font-size: 10px; }
.loop-track div > span { color: var(--cyan); }
.loop-track b { color: #80a8b5; }
.repeat { color: var(--yellow); }
.empty-output { padding-top: 35px; }
.empty-symbol { color: var(--cyan); font-size: 65px; text-shadow: 2px 0 #ff557599; }
.empty-output h3 { color: var(--yellow); font-family: var(--mono); font-size: 14px; letter-spacing: -.3px; }
.empty-output p { color: #a8bbc8; }
.empty-rule { background: var(--cyan); width: 70px; }
.empty-output > span { color: #a8c2cd; letter-spacing: .8px; }
.output-toolbar [role=tablist] { border-color: #2d4c5b; }
.output-toolbar [role=tab] { color: #b6c6d0; font-family: var(--mono); font-size: 9px; }
.output-toolbar [aria-selected=true] { border-color: var(--cyan); color: var(--cyan); }
#word-count { color: #a6c0cc; }
pre { background: #060d14; color: #c4e6ec; border-color: #335362; border-radius: 0; font-size: 10px; line-height: 1.9; scrollbar-color: #466777 #0b1520; }
.meta-note, .checks-note { color: #a2b9c5; }
.output-actions button { border-radius: 0; font-family: var(--mono); font-size: 10px; }
.copy-button { background: var(--cyan); color: #07131a; font-weight: 700; border: 1px solid var(--cyan); }
.copy-button:hover { background: #a0f8ff; }
.download-button { color: var(--cyan); background: #10232d; border-color: #4f7985; }
.download-button:hover { border-color: var(--cyan); background: #183644; }
.checks-heading { color: #b6c5cc; font-size: 8px; }
.checks-heading span { color: var(--cyan); }
.checks { color: #bfd5dc; font-size: 10px; }
.check > span:first-child { color: var(--cyan); }
.check > span:last-child { color: #bfd5dc; }
.run-note { border-color: #2e4a59; color: #b6c8d1; }
.run-note > span { color: var(--yellow); }
.run-note strong { color: var(--cyan); }
.stale { background: #342511; border-color: #9c7835; color: #ffe4a8; border-radius: 0; }
.error { background: #34131d; color: #ffc6cf; border: 1px solid var(--red); border-left-width: 3px; border-radius: 0; }

.footer { color: #9aaebb; font-family: var(--mono); font-size: 8px; }
.footer a { color: var(--cyan); }
dialog { background: #0c141e; color: var(--ink); border: 1px solid #3c7b89; border-top: 3px solid var(--yellow); border-radius: 0; box-shadow: 0 30px 100px #000c, 0 0 32px #66f3ff10; }
dialog::backdrop { background: #030610cb; backdrop-filter: blur(5px); }
.dialog-top .eyebrow { color: var(--cyan); }
.close { color: var(--cyan); }
.close:hover { color: var(--yellow); }
dialog h2 { color: var(--yellow); font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .5px; font-weight: 400; font-size: 32px; }
dialog p, .method-steps span { color: #aec2ce; }
.method-steps strong { color: #e4f2f4; }
.method-steps li::marker { color: var(--cyan); font-family: var(--mono); }
.dialog-note { background: #122a35; border-left: 2px solid var(--cyan); border-radius: 0; }
.source-links a { color: var(--cyan); }
#clear-history-mobile { border-color: #4f7985; border-radius: 0; }
#history-mobile .history-item { border-bottom-color: #304957; }
.toast { background: #102b35; color: #dbfbff; border: 1px solid var(--cyan); border-left: 4px solid var(--cyan); border-radius: 0; font-family: var(--mono); font-size: 11px; box-shadow: 0 8px 32px #0008; }

@media (min-width: 1500px) {
  .intro { padding-top: 44px; padding-bottom: 46px; }
  .intro h1 { font-size: 76px; }
}
@media (max-width: 1150px) {
  .intro h1 { font-size: 53px; }
  .intro p { font-size: 12px; }
  .nav-item { font-size: 10px; }
  .section-top h2 { font-size: 11px; }
}
@media (max-width: 850px) {
  .sidebar { padding: 16px 24px; border-top-width: 3px; border-bottom-color: #314856; }
  .sidebar::after { display: none; }
  .nav-item { font-size: 10px; }
  .intro h1 { font-size: 51px; }
  .intro p { font-size: 12px; }
  .output-toolbar [role=tab] { font-size: 9px; }
}
@media (max-width: 640px) {
  .sidebar { padding: 15px 18px; }
  .nav-item { font-size: 0; }
  .brand { font-size: 23px; }
  .brand small { font-size: 7px; }
  .topbar { font-size: 7px; letter-spacing: 1px; }
  .topbar .text-button { font-size: 9px; }
  .intro { padding: 30px 0 35px; }
  .intro > .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 16px; }
  .intro h1 { font-size: clamp(43px, 12.8vw, 68px); line-height: 1.02; }
  .intro p { font-size: 12px; margin-top: 20px; max-width: 350px; padding-left: 12px; }
  .intro::after { width: 70px; height: 3px; bottom: 14px; }
  .workbench { border-radius: 0; }
  .brief-panel { border-bottom-color: #355260; }
  .section-top h2 { font-size: 11px; }
  .section-top > .small { font-size: 8px; }
  .output-toolbar [role=tab] { font-size: 9px; }
  .loop-track { font-size: 10px; }
  .checks { font-size: 10px; }
  .footer { font-size: 8px; }
  .empty-output > span { font-size: 7px; letter-spacing: .4px; }
  .field-foot { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
