@font-face { font-family: "Montech V02"; src: url("../assets/hb/fonts/MONTECHV02_Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A1-00FF; }
/* HoloBit — conversation, the things it makes, and the challenge. One accent per track, everything else quiet. */
:root {
  --bg: #202020; --bg-2: #1a1a1a; --bg-3: #141414; --ink: #ffffff; --mut: rgba(255, 255, 255, .6); --dim: rgba(255, 255, 255, .38); --line: rgba(255, 255, 255, .1); --line2: rgba(255, 255, 255, .2);
  --panel: rgba(26, 26, 26, .86); --t1: #5BC426; --t2: #2fc6d6; --acc: var(--t1); --warn: #ffb020; --bad: #ff4d5e; --on-acc: #ffffff;
  --mono: "IBM Plex Mono", "Noto Sans SC", ui-monospace, "SFMono-Regular", Menlo, monospace; --body: var(--mono); --display: "MONTECH V02", "Montech V02", "Saira", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --r1: 4px; --r2: 6px; --r3: 8px; --r4: 12px; --r: var(--r3);
  color-scheme: dark;
}
body[data-track="t2"] { --acc: var(--t2); --on-acc: #04181c; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--mono); letter-spacing: .01em; font-stretch: 94%; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 2px; border-radius: var(--r1); }
::selection { background: color-mix(in srgb, var(--acc) 35%, transparent); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
code, .mono { font-family: var(--mono); }
small { font-size: .82em; color: var(--mut); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s; }
body[data-view="app"] #field { opacity: .9; } body[data-view="apply"] #field { opacity: .5; }
#veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body[data-view="app"] #veil { background: linear-gradient(180deg, rgba(32, 32, 32, .95) 0, rgba(32, 32, 32, .88) 50%, rgba(32, 32, 32, .5) 100%); }

.mark { display: inline-flex; align-items: center; align-self: flex-start; padding: 4px 2px; opacity: .95; transition: opacity .2s; } .mark:hover { opacity: 1; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r2); padding: 3px; font: 500 11px/1 var(--mono); }
.lang b { padding: 6px 9px; border-radius: 2px; font-weight: 500; color: var(--mut); transition: .25s; }
body[data-lang="en"] .lang b:first-child, body[data-lang="zh"] .lang b:last-child { background: var(--ink); color: var(--bg); }

/* ───────── buttons + fields ───────── */
.btn { height: 38px; padding: 0 16px; border-radius: var(--r2); border: 1px solid var(--line2); background: rgba(255, 255, 255, .035); font: 400 13.5px/1 var(--mono); white-space: nowrap; transition: border-color .2s, background .2s, transform .2s var(--ease), color .2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 500; }
.btn.solid:hover { background: color-mix(in srgb, var(--acc) 58%, #000); border-color: transparent; }
.btn.link { border-color: transparent; background: none; color: var(--mut); padding: 0 6px; }
.btn.link:hover { color: var(--ink); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: var(--r1); }
.btn:disabled { opacity: .4; pointer-events: none; }
.ib { width: 36px; height: 36px; border-radius: var(--r2); display: inline-grid; place-items: center; grid-auto-flow: column; gap: 5px; color: var(--mut); position: relative; transition: .2s; font-size: 17px; }
.ib:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.ib[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: 42px; right: 0; white-space: nowrap; font: 500 11px/1 var(--mono); padding: 7px 9px; border-radius: var(--r1); background: var(--ink); color: var(--bg); z-index: 5; }

.fld { display: grid; gap: 7px; min-width: 0; }
.fld > span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: var(--r2); padding: 10px 12px; font-size: 14.5px; outline: 0; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--acc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 16%, transparent); }
textarea { resize: vertical; line-height: 1.5; } textarea.mono, input.mono { font-size: 12.5px; } textarea.code { color: #d6e6c9; tab-size: 2; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: #1a1a1a; }
input.up { text-transform: uppercase; letter-spacing: .12em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .span2 { grid-column: 1 / -1; }
.unit { position: relative; } .unit em { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font: 12px var(--mono); color: var(--mut); font-style: normal; }
.err { color: var(--bad); font-size: 13px; } .hint { color: var(--mut); font-size: 12.5px; } .sep { height: 1px; background: var(--line); }
.checks, .docs { display: grid; gap: 10px; }
.ck { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; }
.ck input, .sw input, .ver input { position: absolute; opacity: 0; pointer-events: none; }
.ck i { flex: none; width: 18px; height: 18px; border-radius: var(--r1); border: 1px solid var(--line2); display: grid; place-items: center; transition: .2s; }
.ck input:checked + i { background: var(--acc); border-color: var(--acc); }
.ck input:checked + i::after { content: ""; width: 9px; height: 5px; border: solid var(--on-acc); border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.ck input:focus-visible + i, .sw input:focus-visible + i { outline: 1.5px solid var(--acc); outline-offset: 2px; }
.doc code { margin-left: auto; font-size: 11px; color: var(--dim); }
.sw { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13.5px; color: var(--mut); }
.sw i { flex: none; width: 34px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, .1); position: relative; transition: .25s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: .25s var(--ease); }
.sw input:checked + i { background: var(--acc); } .sw input:checked + i::after { left: 17px; background: var(--on-acc); } .sw input:checked ~ span { color: var(--ink); }
.pill { display: inline-flex; align-items: center; font: 500 11px/1 var(--mono); padding: 4px 8px; border-radius: var(--r1); border: 1px solid var(--line2); color: var(--mut); white-space: nowrap; vertical-align: middle; }
.pill.ok { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); } .pill.warn { color: var(--warn); border-color: rgba(255, 176, 32, .45); } .pill.bad { color: var(--bad); border-color: rgba(255, 77, 94, .5); } .pill.mono { color: var(--ink); }
.warn { color: var(--warn); } .bad { color: var(--bad); } .acc { color: var(--acc); }
.shake { animation: shake .4s; } @keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }

.oauth { background: var(--bg-3); border: 1px solid var(--line2); border-radius: var(--r1); padding: 24px; display: grid; gap: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.oauth header { display: flex; align-items: center; gap: 12px; } .oauth header i { flex: 0 0 40px; height: 1px; background: repeating-linear-gradient(90deg, var(--mut) 0 4px, transparent 4px 8px); }
.oauth h3 { font: 500 16px/1.3 var(--mono); } .oauth ul { list-style: none; display: grid; gap: 6px; color: var(--mut); font-size: 13.5px; } .oauth li::before { content: "✓ "; color: var(--acc); }
.oauth footer { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes up { from { opacity: 0; translate: 0 12px; } }

/* ───────── app shell ───────── */
#app { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 248px minmax(0, 1fr) 388px; animation: appin 1s .15s var(--ease) both; }
@keyframes appin { from { opacity: 0; } }
#rail { display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 14px 22px; border-right: 1px solid var(--line); min-height: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.who { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px; border-radius: var(--r2); transition: .2s; min-width: 0; }
.who:hover { background: rgba(255, 255, 255, .05); }
.who div:last-child, .idc div:last-child { display: grid; min-width: 0; } .who b, .idc b { font: 500 13px/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who span, .idc span { font: 11px/1.3 var(--mono); color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ava { flex: none; width: 32px; height: 32px; border-radius: var(--r2); display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font: 600 14px/1 var(--mono); }

#stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
#bar { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 0 28px; }
.crumb { display: flex; align-items: center; gap: 9px; font: 12px/1 var(--mono); color: var(--mut); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumb b { color: var(--acc); font-weight: 500; } .crumb i { font-style: normal; color: var(--dim); } .crumb > span:last-child { color: var(--ink); }
.bar-r { display: flex; align-items: center; gap: 4px; } .bar-r .lang { margin-left: 8px; }
#scroll { flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: auto; }
#thread { max-width: 780px; margin: 0 auto; padding: 8px 28px 56px; }
#newpill { position: absolute; bottom: 132px; left: 50%; translate: -50% 0; width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-size: 16px; z-index: 3; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

/* ───────── thread ───────── */
.in { animation: up .5s var(--ease) both; } body.fast .in { animation: none; }
.msg { margin-top: 18px; }
.msg.sys { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 16px; }
.msg.sys .gl { width: 7px; height: 7px; margin-top: 9px; background: var(--acc); rotate: 45deg; border-radius: 1px; }
.msg.sys.warn .gl { background: var(--warn); } .msg.sys.bad .gl { background: var(--bad); }
.msg.sys .bd { font-size: 14.5px; line-height: 1.72; max-width: 62ch; color: #dedede; text-wrap: pretty; }
.msg.sys.wide .bd { max-width: none; }
.msg.sys.wide .gl { opacity: 0; }
.msg.sys .bd b { color: #fff; font-weight: 600; }
.msg .bd code { font-size: .84em; background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: var(--r1); word-break: break-all; }
.msg.typing .bd { display: none; } .msg.typing .gl { animation: blink .7s infinite alternate; } @keyframes blink { to { opacity: .2; scale: .6; } }
.msg.typing::after { content: ""; width: 34px; height: 2px; margin-top: 11px; background: linear-gradient(90deg, var(--acc), transparent); animation: scan .8s infinite var(--ease); transform-origin: left; }
@keyframes scan { from { scale: 0 1; } 60% { scale: 1 1; opacity: 1; } to { scale: 1 1; opacity: 0; } }
.msg.me { display: flex; justify-content: flex-end; }
.msg.me .bd { max-width: 80%; padding: 9px 16px; border-radius: var(--r3) var(--r3) 3px var(--r3); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 9%, transparent); font: 400 14px/1.5 var(--mono); }

.card { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); backdrop-filter: blur(14px); max-width: 620px; position: relative; transition: border-color .4s; }
.card::before { content: ""; position: absolute; top: -1px; left: 18px; width: 28px; height: 1px; background: var(--acc); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.card:hover::after { opacity: 1; } .card.bare::after, .card.done::after { display: none; }
.card > header { display: flex; align-items: center; gap: 10px; }
.card h4 { font: 500 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-right: auto; } .card h4 small { font: 400 11.5px/1 var(--mono); margin-left: 10px; }
.card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } .sp { flex: 1; }
.card.done { border-color: rgba(255, 255, 255, .05); } .card.done::before { background: var(--dim); }
.card.done > footer button:not([data-keep]) { display: none; } .card.done > footer:not(:has([data-keep], code)) { display: none; }
.card.bare { padding: 0; border: 0; background: none; backdrop-filter: none; max-width: none; } .card.bare::before { display: none; }
.card.decide, .card.evalc, .card.resultc, .card.wtc { max-width: none; }
.kv { display: grid; } .kv > div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kv > div:first-child { border-top: 0; padding-top: 0; } .kv > div:last-child { padding-bottom: 0; }
.kv dt { color: var(--mut); font-size: 13px; flex: none; } .kv dd { font: 12.5px/1.5 var(--mono); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.receipt { max-width: 520px; padding: 18px 20px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 9%, var(--bg-2)), var(--bg-2) 60%); display: grid; gap: 14px; }
.receipt header { display: flex; justify-content: space-between; align-items: baseline; } .receipt header b { font: 500 19px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--acc) !important; } .receipt header > span { font: 10.5px/1 var(--mono); color: var(--mut); }
.stripes { display: flex; gap: 2px; height: 26px; overflow: hidden; } .stripes i { flex: 0 0 calc(var(--w) * 1.6px); background: var(--ink); opacity: .82; }
.receipt > code { font-size: 10.5px !important; color: var(--mut); background: none !important; padding: 0 !important; letter-spacing: .04em; }
.steps { list-style: none; display: grid; gap: 14px; } .steps li { display: grid; gap: 8px; } .steps b { font: 500 13px/1 var(--body) !important; color: var(--mut) !important; } .steps li.ok b::before { content: "✓ "; color: var(--acc); }
.otp { display: flex; gap: 8px; } .otp input { width: 44px !important; height: 54px; text-align: center; padding: 0 !important; font: 500 22px/1 var(--mono) !important; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r2); background: rgba(255, 255, 255, .035); }
.tags b { font: 12px/1 var(--mono) !important; padding: 7px 9px; border-radius: var(--r1); background: rgba(255, 255, 255, .08); } .tags input { flex: 1 1 140px; border: 0 !important; background: none !important; padding: 5px 6px !important; box-shadow: none !important; }
.formula { font: 500 clamp(26px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: .02em; padding-bottom: 4px; }
.fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.fams button { text-align: left; display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); transition: .2s; }
.fams small { font: 500 11px/1 var(--mono); color: var(--acc); } .fams span { font-size: 13px; line-height: 1.3; }
.fams button:hover { border-color: var(--acc); translate: 0 -2px; } .card.done .fams button:not(.on) { opacity: .3; } .fams button.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }

/* decision console */
.obs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.obs > div { background: var(--bg-2); padding: 10px 12px; display: grid; gap: 5px; } .obs span, .cap span, .hold3 small { font: 500 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.obs b { font: 500 15px/1 var(--mono) !important; font-variant-numeric: tabular-nums; } .obs em { font-style: normal; }
.sig { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 12px/1 var(--mono); color: var(--mut); padding: 9px 12px; border-radius: var(--r1); background: rgba(255, 176, 32, .07); } .sig i { font-style: normal; color: var(--warn); } .sig b { color: var(--warn) !important; font-weight: 500 !important; }
.hold3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font: 12.5px/1.6 var(--mono); } .hold3 small { display: block; margin-bottom: 4px; }
.adds { display: flex; flex-wrap: wrap; gap: 6px; } .adds button { font: 500 12px/1 var(--body); padding: 8px 10px; border-radius: var(--r1); border: 1px dashed var(--line2); color: var(--mut); transition: .2s; } .adds button:hover { color: var(--acc); border-color: var(--acc); border-style: solid; }
.plan { list-style: none; display: grid; gap: 6px; counter-reset: p; } .plan:empty { display: none; }
.plan li { counter-increment: p; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-radius: var(--r1); background: rgba(255, 255, 255, .04); animation: up .3s var(--ease) both; flex-wrap: wrap; }
.plan li::before { content: counter(p); font: 10px var(--mono); color: var(--acc); } .plan b { font: 500 13px/1 var(--body) !important; min-width: 74px; }
.plan select { width: auto !important; padding: 5px 26px 5px 9px !important; font-size: 12.5px !important; border-radius: var(--r1) !important; } .plan em { font: 11.5px var(--mono); color: var(--mut); font-style: normal; }
.plan input[type=range] { flex: 1 1 90px; min-width: 70px; accent-color: var(--acc); } .plan output { font: 12px var(--mono); width: 40px; text-align: right; }
.plan .x { margin-left: auto; width: 26px; height: 26px; border-radius: var(--r1); color: var(--mut); } .plan .x:hover { color: var(--bad); background: rgba(255, 77, 94, .1); }
.dry { font: 12.5px/1.5 var(--mono); color: var(--mut); padding: 9px 12px; border-radius: var(--r1); background: rgba(255, 255, 255, .04); }
.why { min-height: 40px; font-size: 13.5px !important; }
.clock { position: relative; width: 34px; height: 34px; flex: none; } .clock svg { width: 34px; height: 34px; rotate: -90deg; } .clock circle { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.clock .arc { stroke: var(--acc); stroke-dasharray: 50.3; animation: arc linear forwards; } @keyframes arc { to { stroke-dashoffset: 50.3; } }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 9.5px/1 var(--mono); } .card.done .clock .arc, body.fast .clock .arc { animation-play-state: paused; }
.params { width: 100%; border-collapse: collapse; font-size: 13px; } .params tr { border-top: 1px solid var(--line); } .params tr:first-child { border-top: 0; }
.params th { text-align: left; font-weight: 400; padding: 6px 0; } .params td { font: 12.5px var(--mono); padding: 6px 0 6px 10px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .params .cur, .params .lim { color: var(--mut); } .params .lim { font-size: 11px; width: 108px; }
.params .st { display: inline-flex; align-items: center; gap: 2px; height: auto; width: auto; grid-template-columns: none; color: inherit; } .params .st button { width: 24px; height: 24px; border-radius: var(--r1); border: 1px solid var(--line2); color: var(--ink); } .params .st button:hover { border-color: var(--acc); color: var(--acc); }
.params output { display: inline-block; min-width: 58px; text-align: center; } .params tr.ch output { color: var(--acc); } .params tr.over output, .params tr.over .lim { color: var(--warn); } .params tr.cd th { color: var(--dim); }
.switches { display: grid; gap: 10px; }
.res { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .res span { font-size: 14px; } .res p { flex: 0 0 100%; } .res p { font: 12.5px/1.5 var(--mono); color: var(--mut); }
.bigS { display: flex; align-items: baseline; gap: 10px; } .bigS b { font: 500 clamp(56px, 8vw, 92px)/.9 var(--display) !important; letter-spacing: .02em; color: var(--acc) !important; } .bigS.neg b { color: var(--bad) !important; } .bigS span { font: 13px var(--mono); color: var(--mut); }
.terms, .split { display: grid; gap: 8px; } .terms > div, .split > div { display: grid; grid-template-columns: minmax(96px, 190px) 1fr 62px; align-items: center; gap: 12px; font-size: 13px; }
.terms span, .split span { color: var(--mut); } .terms b, .split b { font: 500 12.5px var(--mono) !important; text-align: right; } .terms i, .split i { height: 6px; border-radius: var(--r1); background: linear-gradient(90deg, var(--acc) var(--v), rgba(255, 255, 255, .06) var(--v)); } .terms i.neg, .split i.neg { background: linear-gradient(90deg, var(--bad) var(--v), rgba(255, 255, 255, .06) var(--v)); }
.lb { list-style: none; display: grid; } .lb li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mut); } .lb li:first-child { border-top: 0; }
.lb i { font: 500 11px/22px var(--mono); width: 22px; height: 22px; text-align: center; border-radius: var(--r1); background: rgba(255, 255, 255, .07); font-style: normal; } .lb .me { color: var(--ink); } .lb .me i { background: var(--acc); color: var(--on-acc); } .lb .me b { font: 500 13px var(--mono) !important; color: var(--acc) !important; } .lb .base span { font-style: italic; }
.wt { width: 100%; border-collapse: collapse; font-size: 13px; } .wt tr { border-top: 1px solid var(--line); } .wt tr:first-child { border: 0; } .wt th { font: 500 11px var(--mono); color: var(--acc); text-align: left; width: 38px; padding: 7px 0; } .wt td { padding: 7px 0 7px 8px; } .wt td:nth-child(3) { font: 12.5px var(--mono); text-align: right; } .wt td:last-child { text-align: right; width: 84px; } .wt tr.plat td:nth-child(3), .wt tr.crash td:nth-child(3) { color: var(--warn); }
.vers { display: grid; gap: 8px; } .ver { display: grid; grid-template-columns: 18px auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); cursor: pointer; min-width: 0; } .ver code { font-size: 11.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line2); } .ver:has(input:checked) { border-color: var(--acc); } .ver input:checked + i { border: 5px solid var(--acc); }
.g13 { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; } .gr { display: grid; gap: 4px; } .gr small { font: 500 9.5px/1 var(--mono); text-align: center; margin-bottom: 3px; }
.gr i { height: 30px; border-radius: var(--r2); background: rgba(255, 255, 255, .05); transition: background .4s, opacity .4s; } .gr i.up { background: var(--acc); opacity: var(--a); } .gr i.dn { background: #8a8a8a; opacity: var(--a); } .gr i.gate { background: var(--bad); } .gr i.plat { background: repeating-linear-gradient(45deg, var(--warn) 0 4px, transparent 4px 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font: 11px var(--mono); color: var(--mut); } .legend > span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--acc); } .legend .dn::before { background: #8a8a8a; } .legend .gate::before { background: var(--bad); } .legend .plat::before { background: var(--warn); }
.cnt { font: 12px var(--mono); color: var(--mut); }
.rk { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; } .rk > b { font: 500 clamp(72px, 10vw, 120px)/.8 var(--display) !important; letter-spacing: .02em; color: var(--acc) !important; } .rk > span { font: 12px/1.6 var(--mono); color: var(--mut); padding-bottom: 6px; }
.tt { margin-left: auto; text-align: right; font: 500 26px/1 var(--mono); padding-bottom: 6px; } .tt small { display: block; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; } .tt em { font-style: normal; font-size: 13px; color: var(--mut); }
.fine { font-size: 11.5px; line-height: 1.55; color: var(--dim); max-width: 70ch; }
.end h3 { font: 500 clamp(36px, 5vw, 60px)/1 var(--display); letter-spacing: .02em; color: #fff; } .end p { margin-top: 12px; color: var(--mut); } .end p b { color: var(--acc) !important; font-family: var(--mono); }
svg.chart { width: 100%; height: auto; display: block; } .chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; } .chart .zero { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 2 3; } .chart .ax { font: 8.5px var(--mono); fill: var(--mut); } .chart .band { fill: var(--acc); opacity: .12; }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .cap b { font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* ───────── composer ───────── */
#composer { flex: none; padding: 0 28px 12px; position: relative; }
#composer > * { max-width: 724px; margin-inline: auto; }
#chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; min-height: 0; }
.chip { height: 40px; padding: 0 18px; border-radius: var(--r2); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); background: color-mix(in srgb, var(--acc) 8%, rgba(32, 32, 32, .8)); font: 400 14px/1 var(--mono); transition: background .2s, color .2s, translate .25s var(--ease); animation: up .4s var(--ease) both; backdrop-filter: blur(8px); }
.chip:nth-child(2) { animation-delay: .05s; } .chip:nth-child(3) { animation-delay: .1s; }
.chip:hover { background: var(--acc); color: var(--on-acc); translate: 0 -2px; }
#say { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border: 1px solid var(--line2); border-radius: var(--r2); background: rgba(26, 26, 26, .92); backdrop-filter: blur(14px); transition: border-color .2s; }
#say:focus-within { border-color: var(--acc); }
#say .prompt { font: 500 18px/1 var(--mono); color: var(--acc); }
#in { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font-size: 15px !important; }
.send { width: 36px; height: 36px; border-radius: var(--r2); color: var(--mut); font-size: 16px; } .send:hover { background: var(--acc); color: var(--on-acc); }
#slash { position: absolute; left: 28px; right: 28px; bottom: 80px; background: var(--bg-3); border: 1px solid var(--line2); border-radius: var(--r2); padding: 6px; display: grid; max-height: 320px; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); z-index: 4; }
#slash button { display: flex; gap: 14px; align-items: center; padding: 9px 12px; border-radius: var(--r1); text-align: left; font-size: 13.5px; color: var(--mut); } #slash code { color: var(--acc); font-size: 12.5px; width: 92px; } #slash button:hover, #slash button.on { background: rgba(255, 255, 255, .06); color: var(--ink); }

/* ───────── world ───────── */
#world { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(26, 26, 26, .55); }
.w-tabs { display: flex; gap: 22px; padding: 0 24px; height: 58px; align-items: center; flex: none; }
.w-tabs button[data-tab] { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 8px 0; border-bottom: 1px solid transparent; transition: .2s; display: flex; gap: 6px; align-items: center; }
.w-tabs button:hover { color: var(--ink); } .w-tabs button.on { color: var(--ink); border-color: var(--acc); }
.w-tabs em { font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r1); background: var(--acc); color: var(--on-acc); font-size: 9.5px; line-height: 16px; text-align: center; } .w-tabs em:empty { display: none; } .w-x { margin-left: auto; }
.info-b { color: var(--ink); } .info-b:hover { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); } .w-tabs .info-b { margin-left: auto; margin-right: -8px; } .bar-r .info-b { display: none; }
.w-pane { display: none; flex: 1; overflow-y: auto; padding: 10px 24px 28px; min-height: 0; } .w-pane.on { display: block; animation: up .35s var(--ease); }
.w-phase h2 { font: 500 30px/1.1 var(--display); } .w-phase p { font: 11.5px/1.4 var(--mono); color: var(--mut); margin-top: 8px; min-height: 16px; }
#w-viz { margin-top: 26px; display: grid; gap: 8px; } #w-viz .cap:not(:first-child) { margin-top: 16px; }
#w-vitals { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.vit { border-top: 1px solid var(--line); padding: 11px 0 13px; display: grid; gap: 7px; min-width: 0; } .vit span { font: 500 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); } .vit b { font: 500 19px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ring { width: 190px; aspect-ratio: 1; margin: 12px auto; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--bg) 88%, transparent 89%), conic-gradient(var(--acc) calc(var(--p) * 360deg), rgba(255, 255, 255, .07) 0); } .ring b { font: 500 58px/1 var(--display); letter-spacing: .02em; } .ring span { font: 12px var(--mono); color: var(--mut); }
.empty { color: var(--dim); font-size: 13.5px; padding-top: 8px; }
.mailrow { border-top: 1px solid var(--line); padding: 13px 0; cursor: pointer; } .mailrow:first-child { border-top: 0; }
.mailrow header { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; } .mailrow small { font: 500 10px var(--mono); color: var(--dim); } .mailrow b { font: 400 13.5px/1.35 var(--body); color: var(--mut); } .mailrow time { font: 10.5px var(--mono); color: var(--dim); }
.mailrow.unread b { color: var(--ink); font-weight: 500; } .mailrow.unread small { color: var(--acc); }
.mailrow p { font-size: 12.5px; color: var(--mut); margin: 6px 0 0 42px; display: none; overflow-wrap: anywhere; } .mailrow.open p, .mailrow:first-child p { display: block; }
.chain { display: grid; } .rec { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 8px; padding: 10px 0 10px 14px; border-left: 1px solid var(--line2); position: relative; font: 12px/1.3 var(--mono); }
.rec::before { content: ""; position: absolute; left: -3.5px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); } .rec.failed::before { background: var(--bad); } .rec.rejected::before { background: var(--warn); }
.rec b { color: var(--acc); font-weight: 500; } .rec span { color: var(--ink); } .rec code { color: var(--mut); } .rec small { grid-column: 2 / -1; font-size: 10.5px; color: var(--dim); }
.idc { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; } .idc .ava { width: 44px; height: 44px; border-radius: var(--r2); font-size: 19px; } .idc b { font-size: 15px; }
#w-team h4 { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin: 26px 0 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }


/* ───────── toasts ───────── */
#toasts { position: fixed; top: 66px; right: 18px; z-index: 40; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { max-width: 320px; padding: 11px 14px; border-radius: var(--r2); background: var(--bg-3); border: 1px solid var(--line2); font-size: 13px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: tin .45s var(--ease) both; display: flex; gap: 10px; align-items: baseline; }
.toast small { font: 500 10px var(--mono); color: var(--acc); } .toast.out { opacity: 0; translate: 20px 0; transition: .4s; } @keyframes tin { from { opacity: 0; translate: 24px 0; } }

/* ───────── display type: uppercase, tracked, fading to the right — as on holobit.xyz ───────── */
body[data-lang="zh"] :is(.w-phase h2, .end h3, .h-h2.a-h, .i-hero h2, .hero h2, .pg-h h2, .post-d h2, .item h2) { letter-spacing: .08em; font-weight: 500; }

/* ───────── responsive ───────── */
.only-s { display: none; }
@media (max-width: 1180px) {
  #app { grid-template-columns: 232px minmax(0, 1fr); }
  #world { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 15; background: var(--bg-2); translate: 100% 0; transition: translate .5s var(--ease); }
  body.world-open #world { translate: 0 0; box-shadow: -40px 0 120px rgba(0, 0, 0, .7); }
  .only-s[data-act=world], .w-x, .bar-r .info-b { display: inline-grid; } .w-tabs .info-b { display: none; }
}
@media (max-width: 820px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  #rail { position: fixed; top: 0; left: 0; bottom: 0; width: 264px; z-index: 15; background: var(--bg-2); translate: -100% 0; transition: translate .5s var(--ease); }
  body.rail-open #rail { translate: 0 0; box-shadow: 40px 0 120px rgba(0, 0, 0, .7); }
  .only-s { display: inline-grid; }
  #bar { padding: 0 max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px)); } #thread { padding: 4px 16px 40px; } #composer { padding: 0 16px 14px; } #slash { left: 16px; right: 16px; }
  .grid2 { grid-template-columns: 1fr; } .obs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hold3 { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; } .msg.sys.wide { grid-template-columns: minmax(0, 1fr); } .msg.sys.wide .gl { display: none; } .obs > div:last-child { grid-column: span 2; } .crumb > span:not(:last-child), .crumb i, .crumb b { display: none; } .g13 { gap: 3px; } .gr i { height: 22px; } .params .lim { display: none; }
  .terms > div, .split > div { grid-template-columns: 96px 1fr 54px; }
  .bar-r .lang { margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } }
