@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: Manrope; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #110e19;
  --ink: #fff1d8;
  --muted: #b9acc9;
  --dim: #82738f;
  --line: #665674;
  --rose: #f28bbb;
  --peach: #ffb282;
  --aqua: #a3d1be;
  --field: #171120;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--peach); text-underline-offset: .2em; }
h1,h2,h3,p { margin: 0; }
p { line-height: 1.65; }
button,input,textarea,select { border-radius: 0; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
.skip { position: absolute; z-index: 10; transform: translateY(-200%); padding: .6rem; background: var(--peach); color: var(--bg); }
.skip:focus { transform: translateY(0); }
.shell { width: 100%; margin: 0; padding: 28px clamp(16px,2vw,32px) 88px; }
.brand { display: flex; align-items: center; gap: 26px; padding: 0 0 18px; border-bottom: 1px solid var(--line); --dot: 9px; }
.bore-mark { display: grid; grid-template-columns: repeat(11,var(--dot)); grid-template-rows: repeat(9,var(--dot)); gap: 1px; flex-shrink: 0; }
.pixel-word { display: flex; gap: calc(var(--dot)*.8); }
.pixel-letter { display: grid; grid-template-columns: repeat(5,var(--dot)); grid-template-rows: repeat(7,var(--dot)); gap: 1px; }
.pixel.on { background: var(--ink); }
.pixel.rose { background: var(--rose); }
.pixel.salmon { background: #f4a0ad; }
.pixel.peach { background: var(--peach); }
.welcome { padding: 14px 0 18px; }
.welcome > p:first-child { font-size: 1rem; letter-spacing: .01em; }
.command-guide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,760px); row-gap: .4rem; margin: 12px 0 0; }
.command-guide div { display: grid; grid-template-columns: 9ch 1fr; gap: 1rem; align-items: baseline; }
.command-guide dt { color: var(--peach); font-weight: 650; }
.command-guide dd { color: var(--muted); margin: 0; }
.intro-hint { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.accent { color: var(--peach); }
.helper { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.small { font-size: .8rem; color: var(--muted); }
.entry { margin: 0 0 16px; }
.prompt-line, .entry-prompt { display: flex; align-items: baseline; gap: .85rem; line-height: 1.5; font-size: 1rem; }
.entry-prompt { flex-wrap: wrap; column-gap: .85rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.entry-prompt .entry-command { color: var(--peach); white-space: pre-wrap; min-width: 0; }
.prompt { color: var(--ink); white-space: nowrap; font-weight: 550; }
.prompt-user { color: var(--rose); }
.entry-output { margin-left: 16px; }
.entry-output > p { white-space: pre-wrap; overflow-wrap: anywhere; }
.module { border-block: 1px solid var(--line); padding: 10px 0 12px; width: 100%; }
.module-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 10px; }
.module h2 { font-size: 1.125rem; line-height: 1.4; font-weight: 650; }
.module h3 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 .45rem; }
.module-state { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.form-row { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.field > span { color: var(--muted); font-size: .875rem; }
input,select,textarea { width: 100%; min-width: 0; border: 1px solid var(--line); color: var(--ink); background: var(--field); padding: 8px 10px; min-height: 40px; }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position: calc(100% - 19px) 52%,calc(100% - 13px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { display: block; resize: vertical; line-height: 1.6; min-height: 112px; }
input[type=range] { border: 0; min-height: 32px; padding: 0; accent-color: var(--peach); }
.range-label { display: flex; justify-content: space-between; }
.range-label output { color: var(--ink); }
.button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 12px; min-height: 38px; font-size: .875rem; width: fit-content; }
.button:hover:not(:disabled) { border-color: var(--peach); color: var(--peach); }
.primary { background: var(--peach); color: #251622; border-color: var(--peach); font-weight: 650; }
.primary:hover:not(:disabled) { background: #ffccac; color: #251622; }
.text-button { border: 0; background: transparent; color: var(--peach); text-decoration: underline; text-underline-offset: .25em; padding: 6px 2px; min-height: 36px; font-size: .875rem; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.form-status { color: var(--aqua); font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.form-status:not(:empty) { margin-top: 12px; }
.error { color: #ffb7a7; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 14px 0; }
.metrics div { min-width: 0; }
.metrics dt { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.metrics dd { margin: 5px 0 0; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.command-form { margin-top: 8px; position: relative; }
.command-form .prompt-line { align-items: center; }
.command-input { position: relative; flex: 1; min-width: 40px; }
.command-input input { border: 0; background: transparent; padding: 5px 0; min-height: 42px; outline: none; font-size: inherit; caret-color: var(--peach); }
.command-input input:focus { box-shadow: 0 1px var(--line); }
.idle-cursor { position: absolute; top: 50%; left: 0; transform: translateY(-50%); background: var(--peach); width: .65em; height: 1.2em; pointer-events: none; }
.command-input:focus-within .idle-cursor, .command-input.has-text .idle-cursor { display: none; }
.submit-command { border: 0; background: transparent; color: var(--muted); font-size: .8rem; min-height: 44px; padding: 6px; }
.submit-command:hover { color: var(--peach); }
.suggestions { list-style: none; margin: 5px 0 0; padding: 0; border: 1px solid var(--line); background: var(--field); max-width: 700px; }
.suggestions li { padding: 10px 15px; display: flex; gap: 15px; cursor: pointer; }
.suggestions [aria-selected=true] { background: #37283e; }
.suggestions span:first-child { color: var(--peach); min-width: 11ch; }
.suggestions span:last-child { color: var(--muted); font-size: .9rem; }
.terminal-footer { position: fixed; bottom: 0; inset-inline: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 10px clamp(16px,2vw,32px); border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .83rem; z-index: 3; }
.terminal-footer > span:last-child { margin-left: auto; }
.terminal-footer #footer-mining { color: var(--aqua); }
pre,code { font: inherit; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 0; }
.code-block { position: relative; padding: 42px 15px 15px; background: #191422; border: 1px solid #48394f; margin: 14px 0; overflow: auto; }
.code-block > .text-button { position: absolute; right: 12px; top: 0; font-size: .8rem; }
.code-block pre { font-size: .88rem; }
.answer-text p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .8rem 0; }
.answer-text ul,.answer-text ol { padding-left: 1.8rem; line-height: 1.65; }
.answer-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.response-placeholder { min-height: 55px; padding-top: 15px; }
.usage-line { display: flex; gap: 12px 30px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: 16px; }
summary { width: fit-content; color: var(--muted); min-height: 40px; padding: 10px 0; }
.advanced { margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
.data-table th,.data-table td { border-bottom: 1px solid #3c3047; padding: 12px 9px; vertical-align: top; overflow-wrap: anywhere; }
.data-table th { color: var(--muted); font-weight: 500; }
.data-table small { display: block; color: var(--muted); margin-top: 5px; }
.table-wrap { overflow-x: auto; margin-top: 15px; }
.secret { display: block; padding: 15px; border: 1px solid var(--peach); color: var(--peach); margin: 15px 0; overflow-wrap: anywhere; user-select: all; }
.confirm-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; padding: 0; margin: 16px 0 0; }
.list > li { border-bottom: 1px solid #403348; padding: 12px 0; }
.list .meta { color: var(--muted); font-size: .8rem; margin: 5px 0; }
.module .help-commands { display: grid; grid-template-columns: 12ch minmax(0,1fr); row-gap: 12px; margin: 16px 0; }
.help-commands dt { color: var(--peach); }
.help-commands dd { margin: 0; color: var(--muted); }
.key-name { max-width: 450px; }
.journal-output { margin-top: 15px; }
.record-meta { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.record-text { margin: 12px 0; white-space: pre-wrap; }

@media (max-width: 700px) {
  .brand { --dot: clamp(4px,1vw,6px); gap: 15px; }
  .command-guide { column-gap: 15px; }
  .command-guide div { display: block; }
  .command-guide dd { margin-top: 4px; font-size: .84rem; }
  .prompt-line, .entry-prompt { font-size: .95rem; gap: .5rem; }
  .entry-output { margin-left: 0; }
  .form-row { gap: 15px; }
  .field { flex-basis: 100%; }
  .metrics { gap: 10px; }
  .metrics dd { font-size: 1.05rem; }
  .metrics dt { font-size: .8rem; }
  .terminal-footer { font-size: .73rem; gap: 8px; }
  #session-status { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .data-table { font-size: .8rem; min-width: 540px; }
}
@media (max-width: 400px) {
  .command-form .prompt-line { flex-wrap: wrap; }
  .command-input { flex-basis: 55%; }
  .command-guide { grid-template-columns: 1fr; }
  .command-guide div { display: grid; grid-template-columns: 9ch 1fr; }
  .command-guide dd { margin: 0; }
  .module .help-commands { grid-template-columns: 11ch minmax(0,1fr); font-size: .86rem; }
  .terminal-footer #footer-mining { max-width: 36%; white-space: nowrap; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }


html { scrollbar-gutter: stable; }
.modal-open { overflow: hidden; }
.module-navigation { margin: -2px 0 6px; }
.module-navigation:empty { display: none; }
.module-navigation .text-button { min-height: 30px; padding-block: 4px; }
.collapsed-entry { margin-bottom: 7px; }
.collapsed-entry .entry-prompt { margin-bottom: 0; }
.entry-reopen { min-height: 28px; padding: 2px 6px; font-size: .8rem; }
.mining-controls .field:first-child { flex: 0 1 300px; }
.mining-controls .field:last-child { flex: 1 1 280px; max-width: 640px; }
.playground-config .field:first-child { flex: 0 1 360px; }
.playground-config .field:nth-child(2) { flex: 0 1 190px; }
.wallet-form > .field { max-width: 300px; }
.wallet-form { margin: 14px 0; }
.wallet-form + .form-status:not(:empty) { margin-bottom: 10px; }
.caret-mirror { position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; white-space: pre-wrap; overflow-wrap: break-word; box-sizing: border-box; }

.history-dialog {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  width: min(920px,calc(100vw - 48px));
  max-height: min(740px,calc(100dvh - 48px));
  padding: 0; border: 1px solid #574762; border-radius: 12px;
  background: #1c1725; color: #f7f0f6; overflow: hidden;
}
.history-dialog[open] { display: flex; flex-direction: column; }
.history-dialog::backdrop { background: #05030bd1; }
.history-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 16px; border-bottom: 1px solid #44364f; }
.history-header h2 { font-size: 1.125rem; font-weight: 650; }
.history-close,.history-secondary { font: inherit; font-size: .875rem; color: #f7edf5; background: #302639; border: 1px solid #64506e; border-radius: 6px; min-height: 38px; padding: 8px 12px; }
.history-close:hover,.history-secondary:hover { border-color: var(--peach); }
.history-body { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.history-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.history-toolbar label { display: grid; gap: 6px; font-size: .875rem; color: #c9b9d2; width: min(260px,70%); }
.history-toolbar select { border-radius: 6px; background-color: #241b2f; font-size: .875rem; }
.history-notice { font-size: .875rem; color: #c9b9d2; line-height: 1.5; overflow-wrap: anywhere; }
.history-notice:not(:empty) { margin-bottom: 12px; }
.history-notice.error { color: #ffb7a7; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.history-table th { color: #c9b9d2; font-size: .8rem; font-weight: 600; }
.history-table th,.history-table td { padding: 12px 8px; border-bottom: 1px solid #413348; }
.history-table td:first-child { color: #c9b9d2; }
.history-link { border: 0; background: transparent; color: #ffc29d; text-decoration: underline; text-underline-offset: .2em; min-height: 36px; padding: 6px; font-size: .875rem; }
.history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.history-pagination > span { color: #c9b9d2; font-size: .85rem; }
.history-detail h3 { margin: 16px 0; font-size: 1.125rem; }
.history-detail dl { margin: 0 0 18px; }
.history-detail dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 10px 0; }
.history-detail dt { color: #c9b9d2; font-size: .875rem; }
.history-detail dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .shell { padding-top: 20px; }
  .button,input,select,.text-button,.submit-command { min-height: 44px; }
  .mining-controls .field:first-child,.mining-controls .field:last-child,
  .playground-config .field:first-child,.playground-config .field:nth-child(2) { flex-basis: 100%; max-width: 100%; }
  .module-navigation .text-button,.entry-reopen { min-height: 40px; }
}
@media (max-width: 600px) {
  .history-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .history-body,.history-header { padding: 16px; }
  .history-close,.history-secondary,.history-link { min-height: 44px; }
  .history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .history-table tbody { display: block; }
  .history-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid #413348; }
  .history-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .history-table td:before { content: attr(data-label); display: block; color: #c9b9d2; margin-bottom: 4px; font-size: .875rem; }
  .history-table td:first-child,.history-table td:last-child { grid-column: 1 / -1; }
  .history-table td:last-child:before { display: none; }
  .history-pagination { gap: 8px; position: sticky; bottom: -16px; padding-block: 12px; background: #1c1725; }
  .history-toolbar select { font-size: 1rem; }
  .history-detail dl div { grid-template-columns: 1fr; gap: 5px; }
}
.terminal-home { margin-left: auto; font: inherit; color: var(--muted); }
.terminal-home:hover { color: var(--peach); }

/* 5.9.0: Terminal has no top bar */
body { background: radial-gradient(900px 420px at 85% -10%, rgba(242,139,187,.10), transparent 60%), var(--bg); background-attachment: fixed; }
.terminal-footer { font-size: .8125rem; }
.terminal-home { min-height: 32px; display: inline-flex; align-items: center; padding-inline: 6px; }
@keyframes rl-app-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shell > .brand { animation: rl-app-in .7s cubic-bezier(.16,1,.3,1) both; }
/* 5.10.0: the welcome lines and the prompt appear after the logo, one after another. */
@keyframes rl-gate-open { to { opacity: 1; } }
html[data-rl-gate] .shell > .welcome > *, html[data-rl-gate] .shell > #transcript, html[data-rl-gate] .shell > .command-form { opacity: 0; animation: rl-gate-open .4s 3.2s forwards; }
.shell.rl-wait > .welcome > *, .shell.rl-wait > #transcript, .shell.rl-wait > .command-form { opacity: 0; }
.shell.rl-reveal > .welcome > *, .shell.rl-reveal > #transcript, .shell.rl-reveal > .command-form { animation: rl-app-in .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--rl-base, 0s) + var(--i, 0) * .15s); }
.shell.rl-reveal > .welcome > :nth-child(2) { --i: 1; }
.shell.rl-reveal > .welcome > :nth-child(3) { --i: 2; }
.shell.rl-reveal > #transcript { --i: 3; }
.shell.rl-reveal > .command-form { --i: 3; }
@media (prefers-reduced-motion: reduce) { .shell > .brand, .shell.rl-reveal > .welcome > *, .shell.rl-reveal > #transcript, .shell.rl-reveal > .command-form { animation: none; } .shell.rl-wait > .welcome > *, .shell.rl-wait > #transcript, .shell.rl-wait > .command-form { opacity: 1; } }

/* 5.8.3: the pixel logo builds itself when the Terminal opens. Typing works at once; any key or click completes it. */
.brand.is-building { animation: none; }
.brand.is-building .pixel.on, .brand.is-building .pixel.rose, .brand.is-building .pixel.salmon, .brand.is-building .pixel.peach { opacity: 0; transform: scale(.2); animation: rl-px .42s cubic-bezier(.2,.9,.3,1.35) var(--d, 0ms) forwards; }
.brand.is-built .bore-mark { animation: rl-mark-glow 1.4s ease-out; }
@keyframes rl-px { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }
@keyframes rl-mark-glow { 0% { filter: drop-shadow(0 0 0 rgba(242,139,187,0)); } 35% { filter: drop-shadow(0 0 14px rgba(242,139,187,.75)); } 100% { filter: drop-shadow(0 0 0 rgba(242,139,187,0)); } }
@media (prefers-reduced-motion: reduce) { .brand.is-building .pixel { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* 5.11.0: text fields show focus with a soft plum border and a peach caret instead of the thick outline. */
input:not([type=range]):not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea { caret-color: var(--peach); transition: border-color .15s, background-color .15s; }
input:not([type=range]):not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: #b98aae; background-color: #1d1626; }
.command-input input:focus { border-color: transparent; background-color: transparent; }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255,178,130,.3); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255,178,130,.3); }
/* 5.11.0 Mining panel device row and six-cell metrics. */
.device-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 14px 0 4px; padding: 10px 12px; border: 1px solid var(--line); background: #ffffff06; }
.device-row .device-label { color: var(--muted); }
.device-row strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.device-row .device-note { color: var(--muted); font-size: .85rem; margin-left: auto; }
.mining-metrics { gap: 10px; }
.mining-metrics > div { border: 1px solid var(--line); padding: 10px 12px; }
.mining-metrics > div:first-child dd, .mining-metrics > div:nth-child(4) dd { color: var(--peach); }
@media (max-width: 640px) { .mining-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .device-row .device-note { margin-left: 0; } }
/* 5.11.0 leaderboard */
.board-periods { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.board-periods button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 12px; min-height: 34px; cursor: pointer; }
.board-periods button[aria-pressed=true] { border-color: var(--peach); color: var(--peach); background: rgba(255,178,130,.08); }
.board-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.board { width: 100%; max-width: 820px; border-collapse: collapse; font-size: .92rem; }
.board th { color: var(--muted); font-weight: 400; text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.board td { padding: 8px 10px; border-bottom: 1px dashed #2b2233; }
.board th:last-child, .board td:last-child { text-align: right; white-space: nowrap; }
.board td:first-child { width: 58px; color: var(--muted); }
.board tr.top td:first-child { color: var(--peach); font-weight: 700; }
.board td.board-device { color: #cbb6c8; }
.board tr.you td { background: rgba(242,139,187,.08); color: var(--ink); }
.board .you-tag { color: var(--rose); font-size: .78rem; margin-left: 6px; }
.board tr.gap td { text-align: center; color: #6f6078; border-bottom: 0; padding: 2px; }
@media (max-width: 640px) {
  .board { font-size: .8rem; }
  .board thead th:nth-child(3) { display: none; }
  .board tbody tr { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; border-bottom: 1px dashed #2b2233; }
  .board thead tr { display: grid; grid-template-columns: 44px 1fr auto; }
  .board tbody td { border-bottom: 0; padding: 6px; }
  .board tbody td:first-child, .board tbody td:last-child { grid-row: 1 / 3; }
  .board tbody td:last-child { grid-column: 3; }
  .board tbody td.board-device { grid-column: 2; padding-top: 0; font-size: .72rem; color: var(--muted); }
  .board tbody td:nth-child(2) { padding-bottom: 1px; }
  .board tr.gap { display: block; }
}
/* 5.11.0 API keys: clear Delete action per key. */
.key-count { margin-top: 18px; }
.key-list > li.key-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.key-info { min-width: 0; }
.key-info strong { overflow-wrap: anywhere; }
.button.danger-outline { background: transparent; color: #ff9b9b; border: 1px solid #8a3d4a; }
.button.danger-outline:hover { background: rgba(255,120,120,.08); }
.button.danger { background: #e0606f; color: #160d12; border: 1px solid #e0606f; }

/* 5.13.0: Playground is a chat. */
.playground-chat .ch-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.ch-model { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 4px 10px; background: var(--field); max-width: 100%; }
.ch-model select { background: transparent; color: var(--ink); border: 0; padding: 4px 0; max-width: 46vw; }
.ch-model select option { background: var(--field); }
.ch-price { color: var(--dim); font-size: .8rem; white-space: nowrap; }
.ch-balance { color: var(--muted); font-size: .85rem; }
.ch-balance b { color: var(--ink); font-weight: 500; }
.ch-links { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.ch-settings { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; border: 1px dashed var(--line); padding: 12px; margin-bottom: 14px; max-width: 980px; }
.ch-thread { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 980px; }
.ch-empty { color: var(--muted); border-left: 2px solid #4a3350; padding: 2px 0 2px 16px; }
.ch-empty .helper { margin-top: 4px; }
.ch-who { display: block; font-size: .75rem; margin-bottom: 4px; }
.ch-user { align-self: flex-end; max-width: 78%; background: #2a1d2e; border: 1px solid #4a3350; padding: 10px 14px; line-height: 1.65; }
.ch-user .ch-who { color: var(--rose); }
.ch-user .ch-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-reply { border-left: 2px solid var(--rose); padding: 2px 0 2px 16px; color: #e9dccd; line-height: 1.75; min-width: 0; }
.ch-reply .ch-who { color: var(--peach); margin-bottom: 2px; }
.ch-reply .answer-text > :first-child { margin-top: .3rem; }
.ch-reply .answer-text p { margin: .5rem 0; }
.ch-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--peach); vertical-align: -2px; margin-left: 2px; animation: ch-blink 1s steps(2) infinite; }
@keyframes ch-blink { 50% { opacity: 0; } }
.ch-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: .75rem; margin-top: 4px; }
.ch-meta .text-button { font-size: .75rem; }
.ch-composer { margin-top: 20px; border: 1px solid #4a3350; background: #18131f; max-width: 980px; }
.ch-composer textarea { display: block; width: 100%; border: 0; background: transparent; color: var(--ink); padding: 12px 14px; resize: vertical; min-height: 58px; line-height: 1.6; }
.ch-composer textarea:focus-visible { outline: 0; }
.ch-composer:focus-within { border-color: var(--rose); }
.ch-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 8px 10px 8px 14px; border-top: 1px solid #2b2233; font-size: .78rem; color: var(--dim); }
.ch-actions { margin-left: auto; display: flex; gap: 10px; }
.ch-actions .button { padding: 6px 14px; min-height: 0; }
.ch-stop { border: 1px solid #6a4a55; color: var(--peach); background: transparent; }
.playground-chat .form-status { margin-top: 10px; }
.ch-summary { color: var(--dim); font-size: .78rem; margin-top: 8px; max-width: 980px; }
.ch-summary:empty { display: none; }
@media (max-width: 600px) {
  .ch-user { max-width: 92%; }
  .ch-reply { padding-left: 12px; }
  .ch-links { margin-left: 0; width: 100%; justify-content: flex-start; }
  .ch-hint { display: none; }
  .ch-settings { grid-template-columns: 1fr; }
  .ch-model select { max-width: 58vw; }
}
@media (prefers-reduced-motion: reduce) { .ch-cursor { animation: none; } }

/* 5.13.0: Hash Field on /mine. */
.hash-field { border: 1px solid var(--line); background: #120e18; padding: 12px 14px 10px; margin: 12px 0 10px; }
.hf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.hf-label:before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--dim); margin-right: 8px; vertical-align: 1px; }
.hash-field.is-live .hf-label { color: var(--aqua); }
.hash-field.is-live .hf-label:before { background: var(--aqua); animation: hf-blink 1.2s steps(2) infinite; }
@keyframes hf-blink { 50% { opacity: .25; } }
.hf-rate { color: var(--ink); }
.hash-field canvas { display: block; width: 100%; height: 200px; margin: 8px 0 6px; }
.hf-next { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; }
.hf-bar { flex: 1; height: 3px; background: #2a1f2c; position: relative; overflow: hidden; }
.hf-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--rose), var(--peach)); }
.hf-eta { min-width: 84px; text-align: right; }
.hf-log { margin-top: 8px; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.hf-log:empty { display: none; }
.hf-log div { animation: hf-in .4s ease-out; }
@keyframes hf-in { from { opacity: 0; transform: translateX(-8px); } }
.hf-time { color: var(--dim); } .hf-ok { color: var(--aqua); } .hf-cr { color: var(--peach); }
@media (max-width: 600px) { .hash-field canvas { height: 170px; } .hf-eta { min-width: 70px; } }
@media (prefers-reduced-motion: reduce) { .hash-field.is-live .hf-label:before, .hf-log div { animation: none; } }
.answer-text code:not(pre code) { background: #221a29; border: 1px solid #33283b; padding: 0 5px; color: var(--peach); }
.answer-text strong { color: var(--ink); font-weight: 650; }

/* 5.13.1: the Models table becomes one card per model on phones (no squeezed columns or cut-off words). */
.data-table td.num { white-space: nowrap; overflow-wrap: normal; }
.model-table tr.is-unavailable td { color: var(--muted); }
@media (max-width: 700px) {
  .model-table { min-width: 0; }
  .model-table thead { display: none; }
  .model-table, .model-table tbody { display: block; }
  .model-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 8px; padding: 14px 0; border-bottom: 1px solid #3c3047; }
  .model-table td { display: block; border: 0; padding: 0; overflow-wrap: normal; }
  .model-table td.model-name, .model-table td.model-action { grid-column: 1 / -1; }
  .model-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .72rem; margin-bottom: 3px; }
  .model-table td.model-action:empty { display: none; }
}
