/* The desk (2026-11-10): the signed-in pages (profile, API dashboard) in the silver room of the API page and the
   END IS UI reference. Loaded after app.css, whose tokens it turns light so its own pieces (buttons, the confirm
   dialog, the replay metrics) follow. Geist for the headings, mono for the captions, hairlines, black for the
   active thing, one purple. */
:root { --head: "Geist", "Helvetica Neue", Arial, sans-serif; --sans: "Geist", "Helvetica Neue", Arial, sans-serif; --serif: "Instrument Serif", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; --display: "Martian Mono", "JetBrains Mono", monospace; }
body { --bg: #c4c8ce; --ink: #15181c; --ink-2: #3e444b; --ink-3: #5c636c; --rule: rgba(5,7,10,.26); --pos: #6d3fe0; --neg: #b3261e; --warn: #8a5a00; --trade-profit: #1b7f4b; --trade-loss: #b3261e;
  --gut: max(16px, env(safe-area-inset-left, 0px)); --gur: max(16px, env(safe-area-inset-right, 0px)); --hair: rgba(5,7,10,.26); --paper: rgba(255,255,255,.18); }
html { background: #959ba4; }
html, body { overflow: auto; height: auto; min-height: 100%; }
body { margin: 0; color: #15181c; font: 400 13px/1.55 var(--mono); background: linear-gradient(180deg, #d9dce1 0%, #c4c8ce 40%, #a9afb7 78%, #959ba4 100%) fixed; position: relative; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 120px), repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 64px); -webkit-mask: linear-gradient(transparent 20%, #000); mask: linear-gradient(transparent 20%, #000); }
a { color: #05070a; }
.desk { position: relative; z-index: 1; padding: 120px max(28px, var(--gur)) 48px max(28px, var(--gut)); max-width: 1440px; margin: 0 auto; }
.cap { margin: 0; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; color: #3e444b; }
.cap b { font-weight: 500; color: #05070a; }

/* the bar */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 72px; min-height: 72px; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding-left: max(28px, var(--gut)); padding-right: max(28px, var(--gur)); background: rgba(196,200,206,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bar .mark { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 800 12px/1 var(--display); letter-spacing: .38em; color: #05070a; text-decoration: none; }
.bar .mark img { filter: brightness(0); }
.bar nav { display: flex; gap: 2px; }
.bar nav a, .bar nav button { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 11px; border: 1px solid rgba(5,7,10,.4); color: #05070a; background: transparent; cursor: pointer; transition: border-color .2s; }
.bar nav a:hover, .bar nav button:hover { border-color: #05070a; }
.bar nav a[aria-current] { background: #05070a; color: #fff; border-color: #05070a; }

/* the head: date left, right note, the big greeting */
.head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.head .tl, .head .tr { margin: 0; font: 500 15px/1.2 var(--sans); color: #15181c; }
.head .tl i, .head .tr i { display: inline-block; width: 34px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 12px; }
.head .tr { text-align: right; }
h1.big { margin: 44px 0 0; font: 400 clamp(40px, 5.2vw, 84px)/1 var(--head); letter-spacing: -.045em; color: #05070a; }
h1.big .it { font: italic 400 .9em/1 var(--serif); letter-spacing: -.02em; color: #6d3fe0; }
.sub { margin: 14px 0 0; font-size: 13px; color: #3e444b; max-width: 70ch; }
.sub a { color: #05070a; }
.gate { display: none; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #05070a; background: rgba(255,255,255,.3); color: #05070a; font-size: 13px; }
.gate a { color: #4a10b8; }

/* the numbers (the strip from the scripts: .c with .k, b, .n) */
.nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: clamp(36px, 4vw, 56px) 0 0; border-top: 1px solid var(--hair); }
.nums .c { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; min-width: 0; }
.nums .c .k { font: 400 11px/1.4 var(--mono); letter-spacing: .04em; color: #3e444b; }
.nums .c b { font: 400 clamp(28px, 2.8vw, 44px)/1 var(--head); letter-spacing: -.04em; color: #05070a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nums .c .n { font-size: 11px; color: #5c636c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nums .c.hl b { color: #6d3fe0; }

/* panels: a hairline, a numbered caption, the body. .dark is the black card. */
.grid { display: grid; gap: clamp(18px, 2vw, 28px); margin-top: clamp(36px, 4vw, 56px); }
.g2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.col { display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; min-width: 0; }
.panel { border: 1px solid var(--hair); background: var(--paper); min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.panel > .ph { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 18px 12px; border-bottom: 1px solid var(--hair); }
.panel > .ph .t { font: 500 15px/1.2 var(--sans); letter-spacing: -.02em; color: #05070a; }
.panel > .ph .t .no { font: 400 11px var(--mono); color: #6d3fe0; margin-right: 10px; letter-spacing: .04em; }
.panel > .ph .s { font: 400 11px/1.4 var(--mono); color: #5c636c; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel > .pb { padding: 18px; min-width: 0; }
.panel.dark { background: #000; color: #d6d6d6; border-color: #000; box-shadow: 0 40px 70px -28px rgba(10,14,20,.6); }
.panel.dark > .ph { border-bottom-color: #1d1d21; } .panel.dark > .ph .t { color: #fff; } .panel.dark > .ph .s { color: #85858e; } .panel.dark > .ph .t .no { color: #a77bff; }
.panel.dark a { color: #fff; }
.fine { margin: 10px 0 0; font-size: 11px; line-height: 1.55; color: #5c636c; } .fine a { color: #3e444b; }
.panel.dark .fine { color: #85858e; } .panel.dark .fine a { color: #c9c9d0; }
.err { color: #b3261e; min-height: 16px; font-size: 12px; margin-top: 8px; } .panel.dark .err { color: #ff8a80; }
.empty { color: #5c636c; font-size: 12px; padding: 6px 0; }

/* buttons and fields (the scripts make .btn2, .btn2.go, .btn2.danger, .btn2.sm, input.f, select.f; app.css's .btn, used by the replay module) */
.btn2, .btn { height: 40px; padding: 0 16px; border: 1px solid #05070a; background: transparent; color: #05070a; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn2:hover:not(:disabled), .btn:hover:not(:disabled) { background: #05070a; color: #fff; }
.btn2.go { background: #05070a; color: #fff; } .btn2.go:hover:not(:disabled) { background: #5b2fd6; border-color: #5b2fd6; }
.btn2.danger { border-color: rgba(5,7,10,.4); color: #3e444b; } .btn2.danger:hover:not(:disabled) { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn2.sm, .btn.sm { height: 30px; padding: 0 10px; font-size: 10px; }
.btn2:disabled, .btn:disabled { opacity: .35; cursor: default; }
.panel.dark .btn2 { border-color: #34343b; color: #fff; } .panel.dark .btn2:hover:not(:disabled) { border-color: #a77bff; background: transparent; }
.panel.dark .btn2.go { background: #fff; color: #000; border-color: #fff; } .panel.dark .btn2.go:hover:not(:disabled) { background: #a77bff; border-color: #a77bff; color: #000; }
.panel.dark .btn2.danger { color: #ff8a80; } .panel.dark .btn2.danger:hover:not(:disabled) { background: #b3261e; border-color: #b3261e; color: #fff; }
input.f, select.f, .acct input { height: 40px; padding: 0 12px; background: rgba(255,255,255,.35); color: #05070a; font: 400 13px var(--mono); border: 1px solid rgba(5,7,10,.4); border-radius: 0; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
input.f:focus, select.f:focus, .acct input:focus { outline: 0; border-color: #05070a; background: rgba(255,255,255,.6); }
select.f { background-image: linear-gradient(45deg, transparent 50%, #05070a 50%), linear-gradient(135deg, #05070a 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lbl { font: 400 11px var(--mono); letter-spacing: .04em; color: #3e444b; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { text-align: left; font: 400 11px var(--mono); letter-spacing: .04em; color: #5c636c; padding: 0 8px 8px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.t td { text-align: left; padding: 11px 8px 11px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; color: #3e444b; vertical-align: middle; }
table.t tr:hover td { background: rgba(255,255,255,.22); }
table.t td.nm b { color: #05070a; font-weight: 500; font-size: 13.5px; } table.t td.nm small { display: block; color: #5c636c; font-size: 10.5px; margin-top: 2px; }
table.t td.r, table.t th.r { text-align: right; } table.t td.act { text-align: right; padding-right: 0; } table.t td.act .btn2 + .btn2 { margin-left: 6px; }
table.t td.s { font-weight: 500; color: #05070a; width: 56px; } table.t td .bar { height: 6px; background: rgba(5,7,10,.12); position: relative; min-width: 80px; } table.t td .bar i { position: absolute; inset: 0 auto 0 0; background: #05070a; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1b7f4b; box-shadow: 0 0 6px rgba(27,127,75,.6); margin-right: 8px; vertical-align: 1px; } .live.off { background: rgba(5,7,10,.25); box-shadow: none; }

/* the kv lists (the add-on window's .qkv, the account's .kv) */
.qkv, .acct .kvs { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; font-size: 12.5px; }
.qkv span:nth-child(odd), .acct .kv span:first-child { color: #85858e; font-size: 11px; letter-spacing: .04em; padding-top: 2px; }
.qkv span:nth-child(even) { color: #fff; overflow-wrap: anywhere; }
.acct .kv { display: contents; } .acct .kv span:last-child { color: #05070a; overflow-wrap: anywhere; }
.acct .kv span:first-child { color: #5c636c; }
.acct label { display: block; margin: 16px 0 6px; font: 400 11px var(--mono); letter-spacing: .04em; color: #3e444b; }
.acct input { width: 100%; } .acct form button { margin-top: 14px; width: 100%; }

.panel.dark { --pos: #a77bff; }
.panel.dark .kv span:first-child { color: #85858e; } .panel.dark .kv span:last-child { color: #fff; } .panel.dark .kv a { color: #a77bff; }
.panel.dark label { color: #9b9ba4; } .panel.dark input { background: #0a0a0c; color: #fff; border-color: #34343b; } .panel.dark input:focus { border-color: #a77bff; background: #0a0a0c; }

/* mobile */
@media (max-width: 980px) {
  .desk { padding: 96px var(--gur) 40px var(--gut); }
  .bar { height: 64px; padding-left: var(--gut); padding-right: var(--gur); } .bar nav a, .bar nav button { padding: 7px 8px; font-size: 10px; letter-spacing: .04em; }
  .head .tr { display: none; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nums .c { padding: 12px 12px 14px 0; }
  .g2, .g3, .g21 { grid-template-columns: minmax(0, 1fr); }
  .panel > .ph .s { display: none; }
}
