/* The workspace shell and everything that lives in it. Loaded last: it also sets the larger radii.
   Radii: --r1 4px tags · --r2 6px controls · --r3 8px cards · --r4 12px panels. */
.card, .receipt, .oauth, .toast, #slash, .fams button, .obs, .ver, .a-opt, .a-msg, .a-id, .a-joined, .i-terms, .tags { border-radius: var(--r3); }
.chip, .btn, .hb { border-radius: var(--r2); } .ava { border-radius: var(--r2); }

/* ───────── sandbox chip ───────── */
.sbx-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid rgba(255, 176, 32, .42); border-radius: var(--r2); color: var(--warn); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.sbx-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sbx-chip:hover { background: rgba(255, 176, 32, .1); }
.sbx-chip.ping i { animation: pingw 1.5s infinite; } @keyframes pingw { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 176, 32, 0); } }

/* ───────── sidebar ───────── */
#app { animation: appin .7s .05s var(--ease) both; }
body.no-panel #app { grid-template-columns: 248px minmax(0, 1fr); } body.no-panel #world { display: none; }
#rail { gap: 12px; padding: 18px 12px 12px; background: rgba(26, 26, 26, .55); }
.r-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 4px; }
.r-new { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r2); font-size: 13.5px; background: rgba(255, 255, 255, .035); transition: border-color .2s; } .r-new:hover { border-color: var(--ink); }
#r-nav { display: grid; gap: 2px; }
.r-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: var(--r2); color: var(--mut); font-size: 13px; text-align: left; min-width: 0; transition: color .2s, background .2s; }
.r-row:hover { color: var(--ink); background: rgba(255, 255, 255, .05); } .r-row.on { color: var(--ink); background: rgba(255, 255, 255, .08); }
.r-row svg { flex: none; }
.r-row > span, .r-row > button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-row small { flex: none; width: 26px; font: 500 10px/1 var(--mono); color: var(--dim); } .r-row.t1 small { color: var(--t1); } .r-row.t2 small { color: var(--t2); }
.r-row em { flex: none; font: normal 10.5px/1 var(--mono); color: var(--dim); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; } .r-row.join em { color: var(--t1); }
.r-row u { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--t1); text-decoration: none; }
.r-row.off { border: 1px dashed var(--line); } .r-row:disabled { opacity: .45; pointer-events: none; }
.r-scroll { flex: 1; overflow-y: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; scrollbar-width: none; } #r-chal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.r-scroll h5, .pg-s, #sbx h5, .pop h5 { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.r-scroll h5 { margin: 14px 10px 6px; }
#r-recent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; } #r-recent .r-row { padding: 0; gap: 0; }
#r-recent .r-row > button:first-child { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 10px; text-align: left; color: inherit; }
#r-recent .x { flex: none; width: 26px; height: 26px; margin-right: 4px; border-radius: var(--r1); color: var(--dim); opacity: 0; } #r-recent .r-row:hover .x, #r-recent .x:focus-visible { opacity: 1; } #r-recent .x:hover { color: var(--bad); }
.rail-foot { position: relative; } .who .ava { border-radius: var(--r2); }

/* ───────── popovers ───────── */
.pop { position: fixed; z-index: 35; background: var(--bg-3); border: 1px solid var(--line2); border-radius: var(--r3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); padding: 6px; animation: up .25s var(--ease); }
#acct-menu { position: absolute; left: 0; right: 0; bottom: 54px; display: grid; gap: 2px; }
#acct-menu button, #stage-pop button { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r2); font-size: 13px; color: var(--mut); text-align: left; }
#acct-menu button:hover, #stage-pop button:not(:disabled):hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
#acct-menu .lang { pointer-events: none; padding: 2px; } #acct-menu .lang b { padding: 4px 7px; font-size: 10px; }
.am-who { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); } .am-who b { font: 500 13px/1.4 var(--mono); } .am-who span { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; }
#bell { top: 54px; width: min(360px, calc(100% - 24px)); max-height: 62vh; overflow: auto; padding: 14px 16px 6px; } #bell h5 { margin-bottom: 6px; }
#stage-pop { top: 50px; display: grid; gap: 2px; min-width: 210px; }
#stage-pop button { justify-content: flex-start; } #stage-pop i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
#stage-pop .done i { background: var(--acc); } #stage-pop .cur { color: var(--ink); } #stage-pop .cur i { background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); } #stage-pop .lock { opacity: .4; cursor: default; }
.mailrow header { grid-template-columns: 1fr auto; } .mailrow p { margin-left: 0; } .mailrow p .btn { display: flex; margin-top: 10px; }

/* ───────── top bar ───────── */
.crumb { gap: 10px; font-size: 12.5px; } .crumb b { color: var(--ink); font-weight: 500; } .crumb b + span { color: var(--mut); } .crumb .ttl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.stage-b { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 10px; margin-left: 4px; border: 1px solid var(--line2); border-radius: var(--r2); font: 12px/1 var(--mono); color: var(--ink); transition: border-color .2s; } .stage-b:hover { border-color: var(--ink); }
.stage-b i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pulse 2s infinite; box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); } .stage-b.end i { animation: none; box-shadow: none; background: var(--mut); } .stage-b svg { color: var(--mut); }
.bar-r { gap: 6px; } .bell em { position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--acc); color: var(--on-acc); font: normal 500 9px/14px var(--mono); text-align: center; } .bell em:empty { display: none; }
.only-m { display: none; }
#toasts { top: 62px; } .toast.go { pointer-events: auto; cursor: pointer; }

/* ───────── thread ───────── */
.sec { display: flex; align-items: center; gap: 14px; margin: 46px 0 4px; scroll-margin-top: 12px; } .th > .sec:first-child { margin-top: 18px; }
.sec span { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); } .sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.act { list-style: none; display: grid; gap: 7px; max-width: 620px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r3); background: rgba(20, 20, 20, .6); font: 12.5px/1.5 var(--mono); color: var(--mut); }
.act li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 9px; align-items: start; animation: up .25s both; } .act li.acc span, .act li b { color: var(--ink); }
.act li i { width: 12px; height: 12px; margin-top: 3px; display: grid; place-items: center; font-style: normal; } .act li i::after { content: "✓"; font-size: 10.5px; line-height: 1; color: var(--acc); }
.act li.run i { border: 1.5px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: spin .7s linear infinite; } .act li.run i::after { content: none; } @keyframes spin { to { rotate: 360deg; } }
.a-act { max-width: none; min-height: 150px; align-content: start; }
.diff { display: grid; gap: 5px; margin-bottom: 8px; font: 12px/1.4 var(--mono); } .diff > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; } .diff del { color: var(--bad); opacity: .85; } .diff ins { color: var(--acc); text-decoration: none; }
.drop { position: relative; display: grid; gap: 6px; justify-items: center; padding: 26px 16px; border: 1px dashed var(--line2); border-radius: var(--r3); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; } .drop b { font: 400 13.5px/1.4 var(--mono); } .drop span { font: 11.5px/1 var(--mono); color: var(--mut); } .drop:hover, .drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, transparent); }
.card.bare .oauth { max-width: 440px; }
.plan-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .plan-g h6, .dcard h6 { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
.plan-g ul { list-style: none; } .plan-g li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; } .plan-g li b { font-weight: 400; }
.res-c { max-width: 620px; } .draft h3 { font: 500 17px/1.4 var(--mono); }
.read { list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.6; color: #dedede; } .read li { position: relative; padding-left: 16px; } .read li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 5px; height: 5px; background: var(--acc); rotate: 45deg; } .read b { color: #fff; font-weight: 600; }
.pub-s { list-style: none; display: flex; gap: 6px; } .pub-s li { flex: 1; padding-top: 8px; border-top: 2px solid var(--line2); font: 10.5px/1.3 var(--mono); color: var(--dim); } .pub-s .cur { color: var(--ink); border-color: var(--acc); } .pub-s .done { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.pub { display: grid; gap: 14px; } .pub output { color: var(--ink); } .pub input[type=range] { width: 100%; accent-color: var(--acc); }

/* ───────── empty chat ───────── */
.hero { display: grid; gap: 28px; padding-top: clamp(20px, 9vh, 96px); animation: up .6s var(--ease) both; }
.hero h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; }
.hero-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-g button, .pcard { text-align: left; display: grid; gap: 7px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); transition: border-color .2s, translate .25s var(--ease); }
.hero-g button:hover, .pcard:hover { border-color: var(--acc); translate: 0 -2px; }
.hero-g small, .pcard small { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); } .hero-g b, .pcard b { font: 500 14.5px/1.3 var(--mono); } .hero-g span, .pcard span { font-size: 12.5px; line-height: 1.5; color: var(--mut); }
.hero-c { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--t1) 40%, transparent); border-radius: var(--r3); background: color-mix(in srgb, var(--t1) 7%, transparent); font-size: 13.5px; text-align: left; transition: background .2s; }
.hero-c:hover { background: color-mix(in srgb, var(--t1) 14%, transparent); } .hero-c i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--t1); animation: ping 2.2s infinite; } .hero-c em { margin-left: auto; font-style: normal; color: var(--t1); white-space: nowrap; }

/* ───────── composer ───────── */
#composer { padding-bottom: 18px; }
#say { height: 54px; padding: 0 9px 0 18px; border-radius: var(--r4); }
.send { display: grid; place-items: center; border-radius: var(--r3); background: rgba(255, 255, 255, .08); color: var(--ink); } #say:focus-within .send { background: var(--acc); color: var(--on-acc); }
.chip { border-radius: var(--r3); } .chip.sg { border-color: var(--line2); background: rgba(32, 32, 32, .8); color: #dedede; } .chip.sg:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#slash { bottom: 84px; padding: 6px; } #slash button { border-radius: var(--r2); }

/* ───────── side panel ───────── */
#w-mode { padding: 14px 24px 0; } .w-mode { display: flex; justify-self: stretch; } .w-mode button { flex: 1; height: 30px; white-space: nowrap; }
.w-tabs { gap: 20px; }
#w-agent h4, #w-team h4 { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin: 26px 0 10px; }
.ag-seg { display: flex; justify-self: stretch; margin-bottom: 16px; } .ag-seg button { flex: 1; height: 30px; padding: 0 6px; font-size: 12px; position: relative; white-space: nowrap; } .ag-seg i { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--t1); }
.code { border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; background: var(--bg-3); }
.code header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); } .code header b { font: 500 12px/1 var(--mono); } .code header span { font: 10.5px/1.2 var(--mono); color: var(--dim); text-align: right; }
.code pre { margin: 0; padding: 12px; overflow-x: auto; font: 11.5px/1.75 var(--mono); color: #cfd6c8; white-space: pre; tab-size: 4; } .code pre i { font-style: normal; color: var(--dim); } .code pre b { font-weight: 400; color: var(--t2); } .code pre u { text-decoration: none; color: var(--acc); }
select.kn { display: inline-block; width: auto !important; padding: 0 20px 0 6px !important; height: 20px; font: 500 11.5px/1 var(--mono) !important; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent) !important; border-radius: var(--r1) !important; background-color: color-mix(in srgb, var(--acc) 9%, transparent); background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%; background-size: 4px 4px; vertical-align: baseline; }
.bt { display: flex; gap: 8px; margin-top: 12px; } .bt select { flex: 1; min-width: 0; padding: 6px 28px 6px 10px; font-size: 12.5px; }
.bt-out { display: grid; gap: 10px; margin-top: 16px; justify-items: start; } .bt-out .bigS b { font-size: 46px !important; } .bt-out svg { justify-self: stretch; }
.vl { list-style: none; display: grid; } .vl li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font: 12px/1 var(--mono); } .vl li:first-child { border-top: 0; } .vl b { color: var(--acc); font-weight: 500; } .vl span { color: var(--mut); } .vl code { margin-left: auto; color: var(--mut); }
.cli { list-style: none; display: grid; } .cli li { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--line); } .cli li:first-child { border-top: 0; }
.cli code { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; } .cli span { grid-column: 1; font-size: 12px; color: var(--mut); } .cli .ib { grid-row: 1 / span 2; grid-column: 2; width: 30px; height: 30px; font-size: 14px; }
.ag-empty { display: grid; gap: 14px; justify-items: start; } .ag-empty p { font-size: 13.5px; line-height: 1.6; color: var(--mut); }
.cal { list-style: none; margin: 24px 0 18px; } .cal li { position: relative; display: flex; align-items: center; gap: 6px; padding: 11px 0 11px 18px; border-left: 1px solid var(--line2); font-size: 13.5px; color: var(--mut); } .cal li > span { margin-right: auto; }
.cal li::before { content: ""; position: absolute; left: -3.5px; top: 50%; translate: 0 -50%; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); } .cal .done::before { background: var(--t1); } .cal .cur { color: var(--ink); } .cal .cur::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.tg { font: 500 10px/1 var(--mono); padding: 5px 7px; border-radius: var(--r1); border: 1px solid currentColor; } .tg.t1 { color: var(--t1); } .tg.t2 { color: var(--t2); }
#w-cal a { color: var(--acc); white-space: nowrap; }

/* model canvas, parameters, runs, experiment */
svg.cv { width: 100%; height: auto; display: block; margin-top: 18px; }
.cv .e { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; } .cv .el { font: 9px var(--mono); fill: var(--mut); }
.cv .n { cursor: pointer; outline: none; } .cv .n rect { fill: #1a1a1a; stroke: var(--line2); stroke-width: 1; transition: stroke .2s; } .cv .n text { font: 500 10.5px var(--mono); fill: #fff; pointer-events: none; } .cv .n .c { font-weight: 400; font-size: 9.5px; fill: rgba(255, 255, 255, .55); }
.cv .agent rect { stroke: color-mix(in srgb, var(--acc) 65%, transparent); } .cv .cell rect { fill: color-mix(in srgb, var(--acc) 12%, #1a1a1a); stroke: var(--acc); } .cv .link rect { stroke-dasharray: 3 3; } .cv .var rect { fill: transparent; }
.cv .n:hover rect, .cv .n:focus-visible rect, .cv .n.on rect { stroke: #fff; } .cv .n.on rect { stroke-width: 1.6; }
.cv-prop { display: grid; gap: 6px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r3); } .cv-prop:empty { display: none; } .cv-prop b { font: 500 13px/1.3 var(--mono); } .cv-prop p { font-size: 12.5px; line-height: 1.6; color: var(--mut); }
.cv-bar { display: flex; align-items: center; gap: 6px; margin: 16px 0 12px; } #cv-tick { margin-left: auto; font: 11.5px/1 var(--mono); color: var(--mut); font-variant-numeric: tabular-nums; }
#cv-live { display: grid; gap: 8px; } #cv-live .cap:not(:first-child) { margin-top: 12px; }
svg.wv { width: 100%; height: auto; display: block; border-radius: var(--r2); background: var(--bg-3); } .wv .s1 { fill: var(--bad); } .wv .s2 { fill: var(--t2); opacity: .5; }
.pr { display: grid; gap: 18px; } .pr .fld > span, .pub .fld > span { display: flex; justify-content: space-between; gap: 10px; } .pr output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 11.5px; } .pr input[type=range] { width: 100%; accent-color: var(--acc); }
.rl { list-style: none; display: grid; } .rl li { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); } .rl li:first-child { border-top: 0; padding-top: 2px; }
.rl header { display: flex; align-items: center; gap: 10px; } .rl header b { font: 500 12px/1 var(--mono); color: var(--acc); } .rl time { font: 10.5px/1 var(--mono); color: var(--dim); } .rl header .btn { margin-left: auto; height: 24px; } .rl p { font-size: 12px; line-height: 1.5; color: var(--mut); } .rl li.on header b { color: var(--ink); }
.dcard { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r3); background: rgba(20, 20, 20, .5); } .dcard + .read { margin-top: 16px; }
.tb { width: 100%; border-collapse: collapse; font: 12px/1.3 var(--mono); font-variant-numeric: tabular-nums; } .tb th { padding: 8px 0 8px 8px; text-align: right; vertical-align: bottom; font: 500 9.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mut); } .tb td { padding: 9px 0 9px 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; } .tb th:first-child, .tb td:first-child { text-align: left; padding-left: 0; } .tb tr.on td { color: var(--acc); }
#w-table .hint, #w-params .acts, #w-cal .hint { margin-top: 16px; }

/* ───────── library pages ───────── */
#page { min-height: 100%; } .pg { max-width: 1000px; margin: 0 auto; padding: 8px 28px 64px; animation: up .45s var(--ease) both; }
.pg-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 24px; } .pg-h h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; } .pg-h input { width: min(300px, 100%); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; } .pg-s { margin: 34px 0 12px; }
.pcard { min-height: 128px; } .pcard em { font: normal 12px/1.3 var(--mono); color: var(--ink); } .pcard.new { border-style: dashed; background: none; } .pcard.off { opacity: .5; }
.pcard footer, .post footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; } .pcard footer em, .post footer span { margin-left: auto; }
.pcard footer i, .post footer i, .by i { font: normal 500 10px/1 var(--mono); padding: 4px 6px; border-radius: var(--r1); border: 1px solid var(--line2); color: var(--mut); }
i.bd-official { color: var(--t1); border-color: color-mix(in srgb, var(--t1) 45%, transparent); } i.bd-popular { color: var(--warn); border-color: rgba(255, 176, 32, .4); } i.bd-pro { color: #c9a6ff; border-color: rgba(201, 166, 255, .4); } i.bd-top { color: var(--t2); border-color: color-mix(in srgb, var(--t2) 45%, transparent); }
.pg-list { display: grid; } .prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 15px 6px; border-top: 1px solid var(--line); text-align: left; border-radius: var(--r2); transition: background .2s; } .prow:hover { background: rgba(255, 255, 255, .04); }
.prow b { font: 500 14px/1.3 var(--mono); } .prow span { grid-column: 1; font-size: 12.5px; color: var(--mut); } .prow em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: normal 12px/1.3 var(--mono); color: var(--acc); text-align: right; }
.pg-feed { display: grid; gap: 12px; } .post { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); cursor: pointer; transition: border-color .2s; } .post:hover { border-color: var(--acc); }
.post small, .post-d small, .item small { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--mut); } .post h3 { font: 500 17px/1.35 var(--mono); margin: 8px 0; } .post p { font-size: 13px; line-height: 1.6; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .post footer span { font: 11px var(--mono); color: var(--mut); }
.pg-back { margin: 10px 0 8px -6px; } .post-d { display: grid; gap: 16px; max-width: 680px; } .post-d h2, .item h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; } .post-d p, .item p { font-size: 14.5px; line-height: 1.75; color: #dedede; }
.acts .btn.on { color: var(--bad); border-color: rgba(255, 77, 94, .5); } .post-d .acts, .item .acts { margin-top: 4px; align-items: center; gap: 10px; }
.cm { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); } .cm form { display: flex; gap: 8px; } .cm p { font-size: 13px; } .cm p b { margin-right: 8px; font-weight: 500; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: start; } .item > div { display: grid; gap: 14px; } .item .by { font-size: 13px; color: var(--mut); }
.mk-f { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; } .mk-c { display: flex; flex-wrap: wrap; gap: 6px; } .mk-c button { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 12px; color: var(--mut); transition: .2s; } .mk-c button:hover { color: var(--ink); } .mk-c button.on { color: var(--ink); border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, transparent); }
.pg > .empty { max-width: 56ch; line-height: 1.7; }

/* ───────── sandbox panel ───────── */
#sbx { position: fixed; top: 56px; right: 14px; z-index: 44; width: min(388px, calc(100% - 28px)); max-height: calc(100% - 72px); overflow: auto; background: #1b1b1b; border: 1px solid rgba(255, 176, 32, .35); border-radius: var(--r4); box-shadow: 0 30px 90px rgba(0, 0, 0, .65); animation: up .3s var(--ease); }
#sbx > header { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 0 18px; } #sbx > header b { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warn); }
.sbx-lead { padding: 2px 18px 14px; font-size: 12.5px; line-height: 1.55; color: var(--mut); }
#sbx section { padding: 14px 18px; border-top: 1px solid var(--line); } #sbx h5 { margin-bottom: 10px; } #sbx .hint { margin-top: 8px; font-size: 11.5px; }
.sbx-clock { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; } .sbx-clock button { height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 11.5px; color: var(--dim); transition: .2s; } .sbx-clock button:hover { color: var(--ink); border-color: var(--ink); }
.sbx-clock .done button { color: var(--mut); border-color: var(--line2); } .sbx-clock .cur button { color: var(--ink); border-color: var(--warn); }
.sbx-br { display: grid; gap: 6px; padding: 7px 0; } .sbx-br > span { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mut); } .sbx-br > span small { color: var(--dim); } .sbx-br.cur > span { color: var(--ink); }
.sbx-br > div { display: flex; flex-wrap: wrap; gap: 4px; } .sbx-br button { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r1); font: 11px/1 var(--mono); color: var(--mut); transition: .2s; } .sbx-br button:hover { border-color: var(--warn); color: var(--warn); }
.sbx-br button.def { color: var(--ink); border-color: var(--line2); } .sbx-br button.on { color: #1b1b1b; background: var(--warn); border-color: var(--warn); } .sbx-br button.seen::after { content: "·"; margin-left: 5px; color: var(--t1); } .sbx-br button.on.seen::after { color: #1b1b1b; }
.sbx-mail .mailrow p { display: block; } .sbx-mail .mailrow:first-child { padding-top: 2px; }
.sbx-foot { display: flex; align-items: center; gap: 14px; } .sbx-foot .sw { font-size: 12px; } .sbx-foot .link { margin-left: auto; }
.sbx-cov { padding: 0 18px 14px; font: 10.5px/1 var(--mono); color: var(--dim); } .sbx-cov:empty { display: none; }

/* ───────── settings ───────── */
#settings { position: fixed; inset: 0; z-index: 46; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .3s both; }
.set { width: min(740px, 100%); height: min(560px, 100%); display: flex; flex-direction: column; background: #1b1b1b; border: 1px solid var(--line2); border-radius: var(--r4); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); animation: up .35s var(--ease) both; overflow: hidden; }
.set > header { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); } .set h3 { font: 500 14px/1 var(--mono); }
.set-in { flex: 1; min-height: 0; display: grid; grid-template-columns: 168px minmax(0, 1fr); } #set-tabs { display: grid; align-content: start; gap: 2px; padding: 12px; border-right: 1px solid var(--line); }
#set-tabs button { height: 34px; padding: 0 10px; border-radius: var(--r2); text-align: left; font-size: 13px; color: var(--mut); } #set-tabs button:hover { color: var(--ink); } #set-tabs button.on { color: var(--ink); background: rgba(255, 255, 255, .08); }
#set-body { display: grid; gap: 18px; align-content: start; padding: 22px; overflow: auto; } #set-body .kv dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tier { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r3); } .tier.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.tier > b { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; } .tier strong { font: 500 24px/1 var(--display); } .tier strong small { font: 11px var(--mono); } .tier ul { list-style: none; display: grid; gap: 6px; } .tier li { display: flex; justify-content: space-between; gap: 6px; font: 11.5px/1.3 var(--mono); } .tier li span { color: var(--mut); } .tier em { font: normal 500 11px/30px var(--mono); color: var(--acc); }

/* ───────── sign in ───────── */
#auth { position: fixed; inset: 0; z-index: 18; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; animation: appin .7s var(--ease) both; }
#auth::before { content: ""; position: absolute; top: -8vh; left: 28%; width: 44%; height: 62vh; pointer-events: none; filter: blur(44px); opacity: .55; background: radial-gradient(24% 50% at 40% 34%, rgba(132, 196, 20, .5), transparent 72%), radial-gradient(18% 40% at 64% 38%, rgba(91, 196, 38, .2), transparent 72%); }
body[data-view="auth"] #field { opacity: .5; }
.au-body { position: relative; z-index: 1; display: grid; justify-content: center; align-content: start; padding: clamp(24px, 13vh, 150px) max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); overflow: auto; }
.au-pane { width: min(460px, calc(100vw - 48px)); } .au-pane .row { display: flex; flex-wrap: wrap; gap: 8px; } .au-pane .oauth { animation: up .4s var(--ease) both; }

/* ───────── responsive ───────── */
@media (max-width: 1180px) { body.no-panel #app { grid-template-columns: 232px minmax(0, 1fr); } .only-m { display: inline-grid; } .item { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  body.no-panel #app { grid-template-columns: minmax(0, 1fr); } #rail { padding-top: 14px; background: var(--bg-2); } .crumb b { display: inline; } .bar-r { gap: 2px; }
  .hero-g, .plan-g, .post { grid-template-columns: minmax(0, 1fr); } .post-c { display: none; } .pg { padding: 4px 16px 48px; }
  .set-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); } #set-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; } #set-tabs button { flex: none; }
  .sbx-chip { padding: 0 8px; letter-spacing: .08em; } .crumb b + span { display: none; } .sec { margin-top: 36px; }
}
