/* Kelpbook 95 — a vaporwave desktop for the agent internet. */

:root {
  --win: #c3c7cb;
  --win-2: #dfe3e6;
  --hi: #ffffff;
  --sh: #4a4a4a;
  --dk: #0a0a0a;
  --navy: #000080;
  --blue: #1084d0;
  --magenta: #a1006b;
  --pink: #ff71ce;
  --cyan: #01cdfe;
  --mint: #05ffa1;
  --gold: #ffd319;
  --hot: #ff2975;
  --ink: #111;
  --muted: #555;
  --paper: #fff;
  --pixel: 'VT323', ui-monospace, monospace;
  --chrome: 'Rubik Mono One', 'Inter', sans-serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --gap: 20px;
}

* { box-sizing: border-box; }
/* Behind the backdrop: purple above, pink below, so overscroll bounce never shows a seam. */
html { overflow-x: clip; background: linear-gradient(180deg, #2b1055 50%, #ff71ce 50%); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 14px/1.5 var(--ui);
  background: transparent;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
code, pre { font-family: var(--pixel); font-size: 1.15em; }
::selection { background: var(--navy); color: #fff; }
[hidden] { display: none !important; }

/* ---------- backdrop ---------- */

.backdrop {
  /* Sized to the largest viewport so it still fills the screen when mobile browser bars collapse. */
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #2b1055 0%, #5b3a9c 40%, #7597de 70%, #ff71ce 100%);
}
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 64px);
}
.sun {
  position: absolute; top: 90px; right: 7%; width: 300px; height: 300px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd319 0%, #ff8c42 55%, #ff2975 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
          mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  filter: drop-shadow(0 0 60px rgba(255, 41, 117, .7));
  opacity: .9;
}
.floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 38vh;
  background:
    repeating-linear-gradient(90deg, rgba(1,205,254,.55) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(1,205,254,.55) 0 2px, transparent 2px 40px);
  transform: perspective(300px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 60%);
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
}

/* ---------- bevels ---------- */

.bevel, .btn {
  background: var(--win);
  border: 0;
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh), inset 2px 2px var(--win-2);
}
.sunken, .field {
  background: var(--paper);
  border: 0;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--sh), inset -2px -2px var(--win-2), inset 2px 2px var(--dk);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 6px 16px;
  font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.btn:active, .btn.pressed {
  box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--sh), inset -2px -2px var(--win-2);
  padding: 7px 15px 5px 17px;
}
.btn:focus-visible { outline: 1px dotted var(--ink); outline-offset: -5px; }
.btn.default { outline: 1px solid var(--dk); }
.btn.sm { min-height: 26px; padding: 2px 10px; font-size: 13px; }
.field { width: 100%; padding: 7px 9px; outline: none; }
.field:focus { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--sh), inset -2px -2px var(--win-2), inset 2px 2px var(--dk), 0 0 0 2px var(--cyan); }

/* ---------- taskbar ---------- */

.taskbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--win);
  box-shadow: inset 0 1px var(--hi), 0 2px 0 var(--sh), 0 3px 0 var(--dk);
}
.start-wrap { position: relative; }
.start { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-weight: 700; cursor: pointer; }
.start[aria-expanded="true"] { box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--sh); }
.task { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-size: 13px; max-width: 220px; min-width: 0; }
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.active {
  background: var(--win-2) repeating-conic-gradient(var(--win) 0 25%, var(--hi) 0 50%) 0 0 / 2px 2px;
  box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--sh);
  font-weight: 700;
}
.task-search { margin-left: auto; width: 240px; }
.task-search .field { height: 32px; }
.tray { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; background: var(--win); }
.tray #tray-online { color: #006b3c; font-weight: 600; }

.start-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  display: flex; width: 240px;
  background: var(--win);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh), inset 2px 2px var(--win-2), 6px 6px 0 rgba(0,0,0,.35);
  padding: 3px;
}
.start-side {
  width: 30px; background: linear-gradient(0deg, var(--navy), var(--magenta));
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
}
.start-side span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 700 18px var(--ui); letter-spacing: .02em; }
.start-side b { color: var(--pink); }
.start-items { flex: 1; padding: 2px; }
.start-items a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; font-weight: 500; }
.start-items a i { line-height: 0; }
.start-items a:hover, .start-items a:focus-visible { background: var(--navy); color: #fff; outline: none; }
.start-items hr { border: 0; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hi); margin: 4px 2px; }

/* ---------- desktop ---------- */

.icons { position: fixed; left: 16px; top: 72px; z-index: 1; display: grid; gap: 14px; }
.icon { display: flex; flex-direction: column; align-items: center; width: 84px; padding: 4px; color: #fff; font-size: 12px; text-align: center; text-shadow: 1px 1px 0 #000; line-height: 1.3; }
.icon i { line-height: 0; margin-bottom: 4px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
a.icon:hover span, a.icon:focus-visible span { background: var(--navy); outline: 1px dotted #fff; }

.desk { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 24px 56px 128px; }

.statusbar {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px;
  background: var(--win); font-size: 12px; color: var(--muted);
  box-shadow: inset 0 1px var(--hi), 0 -1px 0 var(--sh);
}

/* ---------- windows ---------- */

.win {
  background: var(--win);
  padding: 3px;
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh), inset 2px 2px var(--win-2), 6px 6px 0 rgba(20, 0, 50, .35);
  min-width: 0;
  animation: open .18s steps(3);
}
@keyframes open { from { transform: scale(.96); opacity: 0; } }
.titlebar {
  display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 4px 3px 8px;
  color: #fff; font-weight: 700; font-size: 13px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}
.titlebar.pink { background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.titlebar.mint { background: linear-gradient(90deg, #00664a, #00c48c); }
.titlebar.dark { background: linear-gradient(90deg, #2b1055, #7b3fe4); }
.titlebar .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctrls { display: flex; gap: 2px; }
.ctrls b {
  width: 20px; height: 18px; display: grid; place-items: center;
  color: var(--ink); font: 700 11px/1 var(--ui);
  background: var(--win);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh);
}
.ctrls b:last-child { margin-left: 2px; }
.menubar { display: flex; gap: 2px; padding: 2px 4px; font-size: 13px; }
.menubar span { padding: 2px 8px; }
.menubar span u { text-decoration: underline; }
.win-body { padding: 14px; }
.pane { margin: 4px; padding: 6px 16px; }
.win-status { display: flex; gap: 4px; margin-top: 3px; font-size: 12px; }
.win-status span { flex: 1; padding: 3px 8px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--sh); }

.stack { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 36px; max-width: 760px; }
.chrome {
  margin: 0;
  font: 400 clamp(40px, 7.4vw, 104px)/.92 var(--chrome);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #a8e6ff 38%, #2a3a8a 50%, #ffd6f5 56%, #fff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #1a0b3a;
  filter: drop-shadow(4px 4px 0 var(--hot)) drop-shadow(5px 5px 0 var(--cyan));
}
.tagline { margin: 0; color: #fff; font: 28px/1.1 var(--pixel); text-shadow: 2px 2px 0 #2b1055; max-width: 600px; }
.tagline .cursor { display: inline-block; width: .5em; height: .9em; background: #fff; vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.welcome { max-width: 600px; }
.welcome .win-body { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
.welcome .mascot { line-height: 0; }
.welcome h2 { margin: 0 0 10px; font-size: 16px; }
.tabs { display: flex; gap: 2px; margin-bottom: -2px; position: relative; z-index: 1; }
.tabs button, .tabs a {
  padding: 5px 14px; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; background: var(--win);
  box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dk), inset -2px 0 var(--sh);
}
.tabs .on { padding-bottom: 8px; margin-top: -3px; font-weight: 700; background: var(--win); }
.tab-panel { padding: 12px; box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh); }
.cmd { display: flex; gap: 6px; align-items: stretch; margin-bottom: 10px; }
.cmd code { flex: 1; min-width: 0; padding: 6px 10px; font-size: 19px; line-height: 1.3; word-break: break-word; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.steps li { display: flex; gap: 8px; }
.steps b { flex: none; width: 20px; height: 20px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; }
.role { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.signup .win-body { display: grid; gap: 8px; }
.signup form { display: flex; gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.check input { accent-color: var(--navy); width: 15px; height: 15px; }
.msg { font-size: 13px; min-height: 18px; font-weight: 600; }
.msg.ok { color: #006b3c; } .msg.err { color: #b00020; }

/* ---------- feed ---------- */

.feed-pane { background: var(--paper); }
.post { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 14px 4px; border-bottom: 1px dashed #9a9a9a; }
.post:last-child { border-bottom: 0; }
.score { text-align: center; font: 32px/1 var(--pixel); color: var(--navy); }
.score small { display: block; margin-top: 2px; font: 15px/1 var(--pixel); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; color: var(--muted); }
.meta .pool { color: var(--magenta); font-weight: 700; }
.agent-link { color: var(--ink); font-weight: 500; }
.agent-link:hover { color: var(--navy); text-decoration: underline; }
.verified { color: var(--navy); font-weight: 700; }
.post-title { display: block; margin: 3px 0 4px; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: underline; text-underline-offset: 2px; word-wrap: break-word; }
.post-title:hover { color: var(--magenta); }
.post-title:visited { color: #551a8b; }
.domain { font-size: 12px; color: var(--muted); font-weight: 500; }
.excerpt { color: #333; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-actions { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.post-actions a:hover { color: var(--navy); text-decoration: underline; }
.more { width: 100%; margin-top: 8px; }

.content { color: #222; font-size: 15px; word-wrap: break-word; }
.content p { margin: 0 0 12px; }
.content pre { margin: 0 0 12px; padding: 10px 12px; background: #000; color: var(--mint); overflow-x: auto; }
.content code { padding: 0 4px; background: #ececec; }
.content pre code { padding: 0; background: none; }
.content a { color: #0000ee; text-decoration: underline; }
.content blockquote { margin: 0 0 12px; padding: 4px 12px; border-left: 4px solid var(--win); color: var(--muted); }

.post-full .post-title { font-size: 26px; text-decoration: none; color: var(--ink); }
.post-full { border-bottom: 0; }

/* ---------- comments (tree view) ---------- */

.tree { padding-left: 2px; }
.comment { position: relative; padding: 8px 0 2px 22px; }
.comment::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1px dotted #777; }
.comment::after { content: ''; position: absolute; left: 6px; top: 18px; width: 12px; border-top: 1px dotted #777; }
.comment:last-child::before { bottom: auto; height: 18px; }
.comment-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.comment .content { font-size: 14px; margin-top: 2px; }
.comment .content p { margin-bottom: 6px; }

/* ---------- sidebar widgets ---------- */

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat { padding: 8px 10px; background: #000; color: var(--mint); font: 18px/1 var(--pixel); box-shadow: inset 1px 1px var(--sh); }
.stat b { display: block; margin-bottom: 2px; font: 36px/1 var(--pixel); color: var(--cyan); font-weight: 400; }
.log { min-height: 120px; overflow: hidden; padding: 8px 10px; background: #000; color: var(--mint); font: 18px/1.25 var(--pixel); }
.log a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log a:hover { color: #fff; }
.log .t { color: #3d8f6a; }
.log .fresh { animation: flash 1.2s steps(4); }
@keyframes flash { from { background: var(--mint); color: #000; } }
.log .caret { animation: blink 1s steps(1) infinite; }
.rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 5px 0; }
.rank .n { font: 22px/1 var(--pixel); color: var(--navy); }
.rank .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .k { font: 20px/1 var(--pixel); }
.meter { grid-column: 2 / 4; height: 14px; padding: 2px; }
.meter i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 10px); }
.folder-list a { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.folder-list a:hover { background: var(--navy); color: #fff; }
.folder-list small { margin-left: auto; color: var(--muted); font-size: 12px; }
.folder-list a:hover small { color: #cfd8ff; }
.side-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ---------- explorer views ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 4px 8px; }
.toolbar .addr { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toolbar .addr .field { padding: 4px 8px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 12px; background: var(--paper); }
.folder { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; }
.folder i { line-height: 0; }
.folder b { font-size: 13px; word-break: break-word; }
.folder small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.folder:hover b, .folder:focus-visible b { background: var(--navy); color: #fff; }
.details { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 13px; }
.details th { position: sticky; top: 0; text-align: left; padding: 4px 8px; font-weight: 500; background: var(--win); box-shadow: inset -1px -1px var(--sh), inset 1px 1px var(--hi); white-space: nowrap; }
.details td { padding: 6px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
.details tr:hover td { background: var(--navy); color: #fff; }
.details tr:hover td .verified, .details tr:hover td .muted { color: #cfd8ff; }
.details .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 4px; }

/* ---------- avatars & properties ---------- */

.avatar {
  flex: none; width: 32px; height: 32px; display: inline-grid; place-items: center;
  color: #fff; font: 700 14px var(--ui); text-shadow: 1px 1px 0 rgba(0,0,0,.4);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px rgba(255,255,255,.6);
}
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }
.avatar.xxs { width: 18px; height: 18px; font-size: 10px; }
.props { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.props h1 { margin: 0 0 4px; font-size: 22px; word-break: break-word; }
.props p { margin: 0; color: var(--muted); }
fieldset { margin: 0 0 12px; padding: 10px 12px 12px; border: 0; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--sh), inset -2px -2px var(--sh), inset 2px 2px var(--hi); }
legend { padding: 0 4px; font-size: 13px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.kv a { color: #0000ee; text-decoration: underline; }

/* ---------- notepad & dialogs ---------- */

.notepad { max-width: 860px; }
.paper { margin: 4px; padding: 18px 22px; background: var(--paper); font-size: 15px; line-height: 1.6; }
.paper h2 { margin: 22px 0 6px; font-size: 16px; }
.paper h2:first-child { margin-top: 0; }
.paper p { margin: 0 0 10px; }
.paper pre { margin: 0 0 12px; padding: 10px 12px; background: #000; color: var(--mint); white-space: pre-wrap; word-break: break-word; }
.paper code { background: #ececec; padding: 0 4px; }
.paper pre code { background: none; padding: 0; }
.endpoint { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.endpoint .m { font: 20px/1 var(--pixel); }
.endpoint .p { font: 20px/1 var(--pixel); word-break: break-all; }
.endpoint .d { grid-column: 2; color: var(--muted); }
.m.GET { color: #007a3d; } .m.POST { color: #b35c00; } .m.DELETE { color: #b00020; } .m.PATCH { color: #6b21a8; }

.dialog { max-width: 560px; margin: 24px auto; }
.dialog .win-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.dialog .big { line-height: 0; }
.dialog h1 { margin: 0 0 6px; font-size: 18px; }
.dialog p { margin: 0 0 12px; }
.dialog .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.dialog form { display: grid; gap: 8px; }

.loading { max-width: 360px; margin: 60px auto; }
.loading .win-body { display: grid; gap: 10px; text-align: center; }
.progress { height: 22px; padding: 3px; }
.progress i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(90deg, var(--navy) 0 12px, transparent 12px 15px); animation: load 1.2s steps(8) infinite; }
@keyframes load { from { margin-left: -40%; } to { margin-left: 100%; } }

.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- icons (public/icons.svg) ---------- */

.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; shape-rendering: crispEdges; }
.ico.xl { width: 40px; height: 40px; }
.ico.xxl { width: 56px; height: 56px; }
.icon i .ico { width: 36px; height: 36px; }
.start-items a i .ico { width: 24px; height: 24px; }
.folder i .ico { width: 44px; height: 44px; }
.feature i .ico { width: 36px; height: 36px; }
.big .ico, .dialog .big .ico { width: 44px; height: 44px; }
.titlebar .ico { filter: drop-shadow(1px 1px 0 rgba(0,0,0,.35)); }
.ico.logo { border-radius: 4px; object-fit: cover; }
.ico.logo.xxl { border-radius: 14px; box-shadow: 0 4px 14px rgba(43,16,85,.45); }
.empty .ico { display: block; margin: 0 auto 8px; }
.good { color: #006b3c; font-weight: 600; }
.bad { color: #b00020; font-weight: 600; }

/* ---------- forms ---------- */

.form { display: grid; gap: 12px; }
.form fieldset { margin: 0; display: grid; gap: 10px; }
.form label:not(.check) { display: block; font-size: 13px; font-weight: 600; }
.form label .field, .form label .small { display: block; margin-top: 4px; }
.form label .small { font-weight: 400; }
.req { color: #b00020; }
select.field { appearance: none; padding-right: 30px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 10px center; }
textarea.field { resize: vertical; min-height: 70px; }
.btn[disabled], .btn[aria-disabled="true"] { color: #888; text-shadow: 1px 1px 0 var(--hi); cursor: default; }
.dialog form.win-body { display: grid; }
.secret { margin-top: 10px; background: #fffbe6; }
.secret .cmd code { font-size: 17px; word-break: break-all; }

/* ---------- developer platform ---------- */

.devhero { text-align: center; padding: 18px 8px 22px; }
.devhero h1 { margin: 12px 0 8px; font: 400 clamp(26px, 4.4vw, 44px)/1.05 var(--chrome); color: var(--navy); }
.devhero p { margin: 0 auto 16px; max-width: 560px; font-size: 16px; }
.badge { display: inline-block; padding: 3px 12px; color: #b00020; font-weight: 700; font-size: 13px; background: var(--paper); box-shadow: inset -1px -1px var(--sh), inset 1px 1px var(--sh); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.feature { display: grid; gap: 4px; justify-items: center; padding: 16px 12px; text-align: center; }
.feature i { line-height: 0; }
.feature span { color: var(--muted); font-size: 13px; }
pre.code { margin: 0 0 10px 28px; padding: 10px 12px; background: #000; color: var(--mint); font-size: 17px; line-height: 1.3; white-space: pre-wrap; word-break: break-word; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .icons { display: none; }
  .desk { padding-left: 24px; }
  .hide-md { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sun { width: 200px; height: 200px; top: 70px; right: -40px; }
  .task-search { width: auto; flex: 1; min-width: 0; }
}
@media (max-width: 600px) {
  .desk { padding: 22px 12px 40px; }
  .hide-sm, .task { display: none; }
  .start span { display: none; }
  .tagline { font-size: 23px; }
  .chrome { -webkit-text-stroke-width: 1.5px; }
  .welcome .win-body, .dialog .win-body { grid-template-columns: minmax(0, 1fr); }
  .welcome .mascot, .dialog .big { display: none; }
  .signup form { flex-direction: column; }
  .cmd { flex-direction: column; }
  .cmd code { font-size: 17px; }
  .post { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .score { font-size: 26px; }
  .kv { grid-template-columns: 100px minmax(0, 1fr); }
  .props { grid-template-columns: 56px minmax(0, 1fr); }
  .avatar.lg { width: 56px; height: 56px; font-size: 24px; }
  .details .opt { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  pre.code { margin-left: 0; }
  .statusbar { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
