/* Lock and Lay — field-notebook UI. Tokens from Open Props (sizes, easings, shadows, radii). */
:root {
  --paper: #f3eee4; --paper-2: #e9e2d4; --paper-3: #ddd4c2; --ink: #1e1a15; --ink-2: #5d564c; --ink-3: #8d8578;
  --rule: #cfc6b3; --rule-2: #b9ae98;
  --moss: #2f5d3a; --moss-2: #3e7a4c; --brick: #8b3a2b; --amber: #b8731f; --sky: #3a6d8c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  font-family: var(--sans); font-size: 14px; color: var(--ink);
}
:root[data-theme="dark"] {
  --paper: #1f1d1a; --paper-2: #27241f; --paper-3: #34302a; --ink: #ece5d6; --ink-2: #b3a996; --ink-3: #7f766a;
  --rule: #3a352e; --rule-2: #4d463d;
  --moss: #4e8f5f; --moss-2: #5fa572; --brick: #c9614e; --amber: #d59a3f; --sky: #6ca0c2;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: #15130f; color: var(--ink); border-color: var(--rule-2); }
:root[data-theme="dark"] .specimen, :root[data-theme="dark"] .gene, :root[data-theme="dark"] .tag { background: #15130f; }
:root[data-theme="dark"] .specimen { box-shadow: 2px 2px 0 #0e0d0b; }
:root[data-theme="dark"] .specimen canvas, :root[data-theme="dark"] #detail canvas, :root[data-theme="dark"] .post canvas, :root[data-theme="dark"] .egg.open canvas { background: linear-gradient(#2a2722, #1a1815); }
:root[data-theme="dark"] .egg.open { background: #15130f; }
:root[data-theme="dark"] button:hover { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .toast { background: #2a2722; }
:root[data-theme="dark"] #phone { background: #0a0a0a; box-shadow: var(--shadow-6), inset 0 0 0 2px #333; }
:root[data-theme="dark"] .phone-notch { background: #0a0a0a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #14120f; overflow: hidden; }
#view { position: fixed; inset: 0; }
#view canvas { display: block; }
.hidden { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.num, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lbl, .small-caps { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.rule { flex: 1; height: 1px; background: var(--rule); }
.paper { background: var(--paper); background-image: var(--grain); }

button { font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius-1); padding: 6px 12px; transition: background .12s var(--ease-2), color .12s var(--ease-2); }
button:hover { background: var(--ink); color: var(--paper); }
button.primary { background: var(--moss); border-color: var(--moss); color: #fff; }
button.primary:hover { background: var(--moss-2); border-color: var(--moss-2); }
button.danger { color: var(--brick); border-color: var(--brick); } button.danger:hover { background: var(--brick); color: #fff; }
button.quiet { border-color: transparent; color: var(--ink-2); } button.quiet:hover { background: var(--paper-2); color: var(--ink); }
button.small { padding: 3px 8px; font-size: 12px; }
button.wide { width: 100%; padding: 10px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.icon { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 0 6px; } button.icon:hover { background: transparent; color: var(--brick); }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: var(--radius-1); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 6px 6px; border-bottom: 1px solid var(--ink); }
td { padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr.row:hover td { background: rgba(47, 93, 58, .06); cursor: pointer; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--ink); }
th.sortable.on { color: var(--moss); }
.coll-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.coll-bar input { width: 240px; padding: 6px 9px; font-size: 13px; }
.meta { font-size: 12px; color: var(--ink-2); }
.loc { font-size: 13px; } .loc b { color: var(--moss); }
.sex { font-weight: 700; } .sex.M { color: var(--sky); } .sex.F { color: #a03f6a; }
.section { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.section::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--ink-2); margin-right: 4px; background: #fff; }
.tag.warn { border-color: var(--amber); color: var(--amber); } .tag.bad { border-color: var(--brick); color: var(--brick); } .tag.good { border-color: var(--moss); color: var(--moss); } .tag.info { border-color: var(--sky); color: var(--sky); }
.empty { color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 15px; padding: 28px 0; text-align: center; }
.bar { height: 5px; background: var(--paper-3); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--moss); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* overlay + auth */
.overlay { position: fixed; inset: 0; background: rgba(12, 10, 8, .7); display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(3px); }
.auth-card { background: var(--paper); background-image: var(--grain); width: 460px; padding: 34px 40px 28px; box-shadow: var(--shadow-6); display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--moss); }
.masthead { display: flex; align-items: center; gap: 14px; }
.brand { font-family: var(--serif); font-size: 30px; letter-spacing: .03em; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.lede { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--ink); }
.auth-tabs button { border: 0; border-radius: 0; padding: 8px 14px; color: var(--ink-3); background: transparent; }
.auth-tabs button:hover { background: transparent; color: var(--ink); }
.auth-tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.auth-err { color: var(--brick); font-size: 13px; min-height: 18px; }
.agree { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-2); flex-direction: row; }
.agree input { margin-right: 6px; }
.agree a, .fine a { color: var(--moss); }
.oauth-row { display: flex; flex-direction: column; gap: 10px; }
.or { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.or i { flex: 1; height: 1px; background: var(--rule); }
.oauth-btns { display: flex; gap: 8px; }
.oauth-btns a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.oauth-btns a:hover { border-color: var(--ink); }
:root[data-theme="dark"] .oauth-btns a { background: #15130f; }
.oauth-btns svg { width: 18px; height: 18px; }
.fine { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin: 0; }

/* hud */
#hud { position: fixed; top: 0; left: 0; right: 0; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: var(--paper); background-image: var(--grain); border-bottom: 1px solid var(--ink); z-index: 20; }
.ledger { display: flex; }
.cell { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-right: 1px solid var(--rule); line-height: 1.15; font-size: 14px; white-space: nowrap; }
.brand-cell .brand { font-size: 17px; }
.hud-nav { display: flex; align-items: stretch; }
.navbtn { border: 0; border-radius: 0; background: transparent; padding: 0 14px; color: var(--ink-2); font-weight: 500; position: relative; }
.navbtn { display: inline-flex; align-items: center; gap: 7px; }
.navbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; flex: none; }
.navbtn.active svg { opacity: 1; stroke: var(--moss); }
@media (max-width: 1180px) { .navbtn > span:not(.badge) { display: none; } .navbtn { padding: 0 10px; } .navbtn svg { width: 18px; height: 18px; } }
.navbtn:hover { background: var(--paper-2); color: var(--ink); }
.navbtn.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--moss); background: transparent; }
.badge { position: absolute; top: 10px; right: 4px; background: var(--brick); color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 5px; font-family: var(--mono); }
.hud-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 14px; }
.hud-right button { white-space: nowrap; }
.tool { position: relative; border-color: var(--rule-2); } .tool.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.who { font-family: var(--serif); font-size: 15px; margin-left: 8px; }

#hint { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 8px 16px; font-size: 13px; z-index: 19; max-width: 680px; text-align: center; box-shadow: var(--shadow-3); }
#hint b { color: #f2c98a; font-weight: 500; }
.hint-x { border: 0; background: transparent; color: var(--paper); opacity: .6; font-size: 16px; padding: 0 4px; margin-left: 6px; line-height: 1; }
.hint-x:hover { opacity: 1; background: transparent; color: #f2c98a; }

/* left binder panel */
#panel { position: fixed; top: 56px; left: 0; bottom: 0; width: 640px; background: var(--paper); background-image: var(--grain); border-right: 1px solid var(--ink); z-index: 18; display: flex; flex-direction: column; box-shadow: var(--shadow-5); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 24px 12px; border-bottom: 1px solid var(--ink); }
.panel-head h2 { font-size: 26px; }
.panel-body { overflow: auto; padding: 16px 24px 30px; flex: 1; }
.tabs { display: flex; border-bottom: 1px solid var(--rule-2); margin-bottom: 14px; }
.tabs button { border: 0; border-radius: 0; padding: 8px 12px; color: var(--ink-3); background: transparent; }
.tabs button:hover { color: var(--ink); background: transparent; }
.tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* specimen cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.specimen { background: #fff; border: 1px solid var(--rule-2); display: flex; flex-direction: column; box-shadow: 2px 2px 0 var(--paper-3); }
.specimen canvas { width: 100%; aspect-ratio: 52 / 30; display: block; background: linear-gradient(#f5f1e9, #e8e1d3); border-bottom: 1px solid var(--rule); }
.specimen .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.specimen h4 { font-size: 16px; line-height: 1.2; }
.specimen dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12px; }
.specimen dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; align-self: center; }
.specimen dd { margin: 0; font-family: var(--mono); }
.specimen .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--rule); padding-top: 8px; margin-top: 2px; }
.specimen .price { font-size: 15px; }
.specimen .blurb { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.specimen .brandline { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stats-line { font-size: 11px; color: var(--ink-2); font-family: var(--mono); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 54px; height: 54px; border: 1px solid var(--rule-2); cursor: pointer; display: flex; align-items: flex-end; padding: 3px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.swatch.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* odds */
.odds { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-size: 13px; align-items: center; }
.odds .pct { font-family: var(--mono); font-size: 12px; }

/* detail card */
#detail { position: fixed; top: 64px; right: 12px; width: 372px; max-height: calc(100vh - 76px); overflow: auto; background: var(--paper); background-image: var(--grain); border: 1px solid var(--ink); z-index: 18; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-5); }
#detail .name { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
#detail .morph { color: var(--ink-2); font-size: 13px; }
#detail canvas { width: 100%; aspect-ratio: 52 / 30; display: block; background: linear-gradient(#f5f1e9, #e8e1d3); border: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stats div { background: var(--paper); padding: 6px 8px; }
.stats b { display: block; font-size: 14px; font-weight: 500; font-family: var(--mono); }
.genes { display: flex; flex-wrap: wrap; gap: 4px; }
.gene { font-size: 11px; padding: 2px 7px; border: 1px solid var(--rule-2); background: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.pill { display: inline-block; font-size: 10px; line-height: 1.5; padding: 0 6px; border-radius: 9px; border: 1px solid; font-style: normal; white-space: nowrap; }
.pill.codom { background: #fff3d6; border-color: #d9a441; color: #7a5410; }
.pill.dom { background: #e3edfa; border-color: #6c8fbf; color: #244a7a; }
.pill.rec { background: #efe4f7; border-color: #9a6db5; color: #4f2d6b; }
.pill.rec.het { background: transparent; border-style: dashed; color: #6a4d80; }
.pill.rec.het.unlikely, .gene.rec.het.unlikely { opacity: .55; border-color: var(--rule-2); color: var(--ink-3); }
.pill.paradox { background: #fff; border-color: #c99b3f; color: #8a6a1a; }
.pill.more { border-color: var(--rule-2); color: var(--ink-3); }
.pill[class*="tag-"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill.tag-holdback { background: var(--moss); border-color: var(--moss); color: #fff; }
.pill.tag-sell { background: var(--brick); border-color: var(--brick); color: #fff; }
:root[data-theme="dark"] .pill.codom { background: #3a2e12; color: #f2cd7a; } :root[data-theme="dark"] .pill.dom { background: #172a40; color: #a9c6ea; } :root[data-theme="dark"] .pill.rec { background: #2b1d38; color: #d3b5ea; } :root[data-theme="dark"] .pill.rec.het { background: transparent; color: #b99ad0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2); border-radius: 14px; padding: 3px 10px; font-size: 12px; }
.chip span { margin-left: 5px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); } .chip.on span { color: var(--paper-3); }
.chip:hover { background: var(--paper-2); color: var(--ink); } .chip.on:hover { background: var(--ink); color: var(--paper); }
.legend { display: flex; gap: 5px; align-items: center; margin-bottom: 8px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.gene.codom { border-color: #c99b3f; } .gene.dom { border-color: #6c8fbf; } .gene.rec { border-color: #9a6db5; } .gene.het { border-style: dashed; color: var(--ink-2); }

/* design + hold bars */
#designbar, #holdbar, #visitbar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--paper); background-image: var(--grain); border: 1px solid var(--ink); padding: 8px 12px; display: flex; align-items: center; gap: 8px; z-index: 22; box-shadow: var(--shadow-4); font-size: 13px; }
.db-hint { color: var(--ink-2); padding: 0 8px; border-left: 1px solid var(--rule-2); margin-left: 4px; max-width: 360px; }
.db-hint.bad { color: var(--brick); }
#holdText, #visitText { font-family: var(--serif); font-size: 16px; }

/* phone */
#phone { position: fixed; right: 18px; bottom: 14px; width: 330px; height: 640px; background: #111; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-6), inset 0 0 0 2px #2a2a2a; z-index: 25; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #111; border-radius: 12px; z-index: 2; }
.phone-screen { flex: 1; background: var(--paper); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 12px; font-family: var(--mono); }
.phone-body { flex: 1; overflow: auto; padding: 8px 12px 12px; }
.phone-nav { display: flex; border-top: 1px solid var(--rule-2); background: var(--paper-2); }
.phone-nav button { flex: 1; border: 0; border-radius: 0; padding: 12px 0 14px; font-size: 12px; color: var(--ink-3); position: relative; }
.phone-nav button:hover { background: var(--paper-3); color: var(--ink); }
.phone-nav button.on { color: var(--ink); font-weight: 500; box-shadow: inset 0 2px 0 var(--ink); }
.post { border-bottom: 1px solid var(--rule); padding: 10px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.post .head { display: flex; justify-content: space-between; align-items: baseline; }
.post .author { font-weight: 500; }
.post canvas { width: 100%; aspect-ratio: 52 / 30; display: block; background: linear-gradient(#f5f1e9, #e8e1d3); border: 1px solid var(--rule); }
.post .caption { font-size: 13px; line-height: 1.4; }
.post .caption b { font-family: var(--serif); font-weight: 600; }
.post .react { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.post .react button { border: 0; padding: 2px 6px; color: var(--ink-2); } .post .react button:hover { background: transparent; color: var(--brick); } .post .react button.liked { color: var(--brick); }
.post .comments { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.post .comments b { font-weight: 500; }
.post form { display: flex; gap: 4px; } .post form input { flex: 1; padding: 5px 8px; font-size: 12px; }
.chatlog { display: flex; flex-direction: column; gap: 5px; font-size: 13px; padding-bottom: 8px; }
.chatlog .sys { color: var(--ink-3); font-style: italic; font-size: 12px; }
.chatlog b { color: var(--moss); font-weight: 500; }
.chatform { display: flex; gap: 4px; position: sticky; bottom: 0; background: var(--paper); padding-top: 6px; }
.chatform input { flex: 1; }
.phone h3 { font-size: 20px; margin: 6px 0 8px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--rule-2); }
.seg button { border: 0; border-radius: 0; padding: 4px 9px; font-size: 11px; color: var(--ink-3); }
.seg button.on { background: var(--ink); color: var(--paper); }
.author { cursor: pointer; } .author:hover { text-decoration: underline; }
.alert { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 13px; align-items: flex-start; }
.alert.unread { background: rgba(78, 143, 95, .08); }
.alert .kind { width: 22px; height: 22px; border: 1px solid var(--rule-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.prof-head { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--moss); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; flex: none; }
.prof-bio { font-size: 13px; line-height: 1.45; margin: 4px 0 8px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 10px 0; }
.prof-stats div { background: var(--paper); padding: 6px 8px; text-align: center; }
.prof-stats b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.prof-stats span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prof-cell canvas { width: 100%; aspect-ratio: 26 / 15; display: block; background: linear-gradient(#f5f1e9, #e8e1d3); border: 1px solid var(--rule); }
:root[data-theme="dark"] .prof-cell canvas { background: linear-gradient(#2a2722, #1a1815); }

/* toasts */
#toasts { position: fixed; left: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 30; width: 340px; pointer-events: none; }
.toast { background: var(--paper); color: var(--ink); padding: 9px 12px; font-size: 13px; line-height: 1.35; border: 1px solid var(--ink); border-left: 5px solid var(--ink-3); animation: pop .2s var(--ease-out-3); pointer-events: auto; box-shadow: var(--shadow-3); }
.toast.breed { border-left-color: #a03f6a; } .toast.hatch { border-left-color: var(--amber); } .toast.warn { border-left-color: var(--brick); } .toast.death { border-left-color: #000; } .toast.buy, .toast.sell, .toast.ok { border-left-color: var(--moss); } .toast.ach { border-left-color: #c99b3f; background: #fff7df; } .toast.news { border-left-color: var(--sky); opacity: .9; } .toast.social { border-left-color: #6c8fbf; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* modal */
.modal { background: var(--paper); background-image: var(--grain); padding: 26px 30px; width: min(900px, 94vw); max-height: 90vh; overflow: auto; border: 1px solid var(--ink); box-shadow: var(--shadow-6); }
.modal h2 { font-size: 26px; margin-bottom: 4px; }
.modal.narrow { width: min(460px, 94vw); }
.dialog { display: flex; flex-direction: column; gap: 12px; }
.dlg-body { margin: 0; line-height: 1.5; color: var(--ink-2); font-size: 14px; }
.dlg-body b { color: var(--ink); font-family: var(--mono); }
.eggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.egg { background: linear-gradient(#cdbfa3, #b8a889); height: 160px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; border: 1px solid #9c8f74; }
.egg .shell { width: 78px; height: 96px; background: radial-gradient(circle at 35% 30%, #fffdf6, #e9e2cf 70%, #d6cdb5); border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; box-shadow: inset -6px -8px 14px rgba(120, 100, 70, .25), 0 6px 10px rgba(0, 0, 0, .2); transition: transform .2s; }
.egg:hover .shell { transform: scale(1.05) rotate(-3deg); }
.egg.slug .shell { background: radial-gradient(circle at 35% 30%, #f3e6b3, #d9c26a 70%, #b59a3e); transform: scale(.8); opacity: .8; }
.egg.dead .shell { background: radial-gradient(circle at 35% 30%, #b8ad98, #8e836b 70%, #6c634f); }
.egg.open { background: #fff; cursor: default; flex-direction: column; gap: 4px; padding: 6px; }
.egg.open canvas { width: 100%; aspect-ratio: 52 / 30; background: linear-gradient(#f5f1e9, #e8e1d3); }
.egg.open .n { font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; }
.egg.open .v { font-size: 11px; color: var(--ink-2); font-family: var(--mono); }
.egg.open .keep { display: inline-flex; align-items: center; gap: 3px; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.egg.open.jackpot { box-shadow: inset 0 0 0 3px var(--amber); }
.tubpick { display: grid; gap: 4px; margin: 6px 0 14px; }
.tubpick button { padding: 6px; font-size: 12px; border-color: var(--rule-2); }
.tubpick button.occ { background: var(--paper-2); color: var(--ink-2); }
.tubpick button.here { outline: 2px solid var(--moss); }
.help p { line-height: 1.55; font-size: 14px; }
.help h3 { margin: 16px 0 4px; font-size: 17px; }
.news { font-size: 12.5px; color: var(--ink-2); padding: 5px 0; border-bottom: 1px dotted var(--rule-2); }


/* trades + lots */
.presets { display: flex; gap: 6px; margin: 6px 0 10px; flex-wrap: wrap; }
#modal2 { z-index: 60; }
.callout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--amber); border-left-width: 5px; background: rgba(213, 154, 63, .08); font-size: 13px; line-height: 1.4; }
.callout button { flex: none; }
.selbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border: 1px dashed var(--rule-2); }
.selbar .rule { flex: 1; }
.selcell { width: 30px; }
.specimen.lot { position: relative; }
.lotbadge { position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; }
.lotlist { font-size: 13px; line-height: 1.5; max-height: 110px; overflow: auto; }
.trade .thead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tcols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.tcols.builder { grid-template-columns: 1fr 1fr; }
.tcols .arrow { font-size: 22px; color: var(--ink-3); padding-top: 26px; }
.tside { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 13px; }
.tside canvas { width: 64px; height: 37px; border: 1px solid var(--rule); background: linear-gradient(#f5f1e9, #e8e1d3); flex: none; }
.tside.cash { font-family: var(--mono); color: var(--moss); }
.tb-head { margin-bottom: 8px; }
.tpicks { max-height: 300px; overflow: auto; border: 1px solid var(--rule); padding: 4px 8px; margin-bottom: 8px; }
.tpick { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--rule); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.tpick.on { background: rgba(63, 141, 92, .08); }
.tpick canvas { width: 64px; height: 37px; border: 1px solid var(--rule); background: linear-gradient(#f5f1e9, #e8e1d3); flex: none; }
:root[data-theme="dark"] .tside canvas, :root[data-theme="dark"] .tpick canvas { background: linear-gradient(#2a2722, #1a1815); }

/* ===================== readability + custom controls pass ===================== */
:root { font-size: 15px; }
body { line-height: 1.45; }
button { font-size: 14px; min-height: 34px; padding: 6px 14px; border-radius: 4px; }
button.small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
button.icon { min-height: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .csel-btn:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
input, textarea { font-size: 15px; padding: 9px 12px; border-radius: 4px; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
textarea { resize: vertical; min-height: 72px; }
label { font-size: 11.5px; gap: 5px; }

/* checkboxes */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--rule-2); border-radius: 3px; background: #fff; display: inline-grid; place-content: center; padding: 0; margin: 0 6px 0 0; vertical-align: -3px; cursor: pointer; }
input[type=checkbox]::before { content: ""; width: 9px; height: 9px; background: var(--moss); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); transition: transform .1s var(--ease-out-2); }
input[type=checkbox]:checked { border-color: var(--moss); }
input[type=checkbox]:checked::before { transform: scale(1); }
:root[data-theme="dark"] input[type=checkbox] { background: #15130f; }

/* custom select */
.csel { position: relative; display: inline-block; width: 100%; }
.csel select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.csel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--rule-2); padding: 8px 12px; font-size: 15px; color: var(--ink); }
.csel-btn:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.csel-btn .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); flex: none; }
.csel.open .csel-btn { border-color: var(--ink); }
.csel-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--shadow-4); z-index: 60; }
.csel.open .csel-menu { display: block; }
.csel-opt { padding: 8px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.csel-opt:last-child { border-bottom: 0; }
.csel-opt:hover { background: var(--paper-2); }
.csel-opt.on { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .csel-btn { background: #15130f; }
:root[data-theme="dark"] .csel-btn:hover { background: #15130f; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--rule-2); border: 3px solid var(--paper); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* panels */
#panel { width: 720px; }
.panel-head { padding: 20px 26px 14px; align-items: flex-start; }
.panel-head h2 { font-size: 28px; line-height: 1.1; }
.panel-head h2 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0; }
.panel-body { padding: 18px 26px 40px; }
.section { margin: 22px 0 10px; font-size: 11px; }
.tabs button { padding: 9px 14px; font-size: 14px; min-height: 0; }
table { font-size: 14px; }
th { font-size: 11px; padding: 8px 8px; position: sticky; top: -18px; background: var(--paper); z-index: 1; }
td { padding: 10px 8px; }
tr.row td:first-child b { font-size: 15px; }
.meta { font-size: 13px; }
.tag { font-size: 11.5px; padding: 2px 8px; }
.pill { font-size: 10.5px; line-height: 1.6; }
.specimen h4 { font-size: 17px; }
.specimen dl { font-size: 13px; }
.specimen .blurb { font-size: 13px; }
.specimen .body { padding: 12px 14px 14px; gap: 7px; }
.empty { font-size: 16px; padding: 36px 0; }

/* detail card */
#detail { width: 400px; padding: 16px 18px 18px; gap: 12px; }
#detail .name { font-size: 26px; }
#detail .morph { font-size: 14px; }
.stats b { font-size: 15px; }
.stats div { padding: 8px 10px; }
.actions { gap: 8px; }
#detail .actions button { flex: 1 1 45%; }

/* hud */
#hud { height: 60px; }
.cell { font-size: 15px; }
.navbtn { font-size: 15px; }
#hint { font-size: 14px; padding: 10px 18px; }

/* design / hold / visit bars */
#designbar, #holdbar, #visitbar { padding: 10px 14px; font-size: 14px; gap: 10px; }

/* toasts */
.toast { font-size: 14px; padding: 11px 14px; }

/* phone */
.phone-body { font-size: 14px; }
.phone h3 { font-size: 22px; }
.post .caption { font-size: 14px; }
.phone-nav button { font-size: 12.5px; min-height: 0; }

/* dialog */
.dialog label { margin-top: 4px; }
.dlg-body { font-size: 15px; }
.eggs { gap: 14px; }
.egg { height: 170px; }
.egg.open .n { font-size: 13px; }

/* tip bar lives at the bottom, out of the way of panel headers */
#hint { top: auto; bottom: 18px; max-width: 720px; z-index: 17; }
body.bar #hint { display: none !important; }

/* collection thumbnails */
.thumbcell { width: 92px; padding-right: 2px; }
.thumbcell canvas { width: 88px; height: 51px; display: block; border: 1px solid var(--rule); background: linear-gradient(#f5f1e9, #e8e1d3); border-radius: 3px; }
:root[data-theme="dark"] .thumbcell canvas { background: linear-gradient(#2a2722, #1a1815); }

.csel-btn, .csel-opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); }

/* sex badges: bold and unmissable */
.sex { display: inline-block; font-weight: 800; font-size: 0.95em; line-height: 1.35; min-width: 1.5em; text-align: center; padding: 0 5px; border-radius: 10px; margin-left: 3px; vertical-align: 1px; }
.sex.M { color: #fff; background: #2f6f9f; } .sex.F { color: #fff; background: #b5457a; }
.egg.open .n .sex, .specimen h4 .sex, #detail .name .sex { font-size: 0.8em; }

.tpick { flex-direction: row; align-items: center; }
.tpick input[type=checkbox] { flex: none; }

/* header settings menu + name clamp */
#hud { grid-template-columns: auto auto 1fr; }
.hud-right { min-width: 0; }
.who { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-wrap { position: relative; }
#settingsBtn { display: inline-flex; align-items: center; gap: 6px; }
#settingsBtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--paper); background-image: var(--grain); border: 1px solid var(--ink); box-shadow: var(--shadow-4); z-index: 40; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu-item { border: 0; border-radius: 3px; text-align: left; background: transparent; color: var(--ink); padding: 8px 10px; min-height: 0; }
.menu-item:hover { background: var(--ink); color: var(--paper); }
.menu-sep { height: 1px; background: var(--rule); margin: 4px 0; }
@media (max-width: 1280px) { #settingsBtn span, .who { display: none; } .ledger .cell { padding: 0 10px; } }

/* egg cards: labeled keep/list toggles */
.egg { height: auto; min-height: 170px; }
.egg.open { justify-content: flex-start; }
.eggacts { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.chip.tiny.on[data-act="keep"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.chip.tiny.on[data-act="list"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.chip.tiny.on[data-act="sell"] { background: var(--brick); border-color: var(--brick); color: #fff; }
.chip.tiny:disabled { cursor: default; }
.hatch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hatch-bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--rule); }
.hatch-bulk .lbl { margin-right: 4px; }
.hatch-price { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.hatch-price input { width: 64px; padding: 3px 6px; font-family: var(--mono); }
.hatch-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: -26px; margin: 0 -30px -26px; padding: 12px 30px 16px; background: var(--paper); background-image: var(--grain); border-top: 1px solid var(--ink); }
.hatch-foot .meta { font-size: 13px; line-height: 1.4; } .hatch-foot .meta b { color: var(--ink); font-family: var(--mono); }
.hatch-foot .actions { margin: 0; flex: none; }
.egg.open .stamp { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; border: 1.5px solid currentColor; transform: rotate(-8deg); background: rgba(255, 255, 255, .7); }
:root[data-theme="dark"] .egg.open .stamp { background: rgba(0, 0, 0, .4); }
.stamp.kept { color: var(--moss); } .stamp.listed { color: var(--sky); } .stamp.sold { color: var(--brick); }
.egg.open.decided canvas { opacity: .55; }
body.mobile .hatch-foot { margin: 0 -18px calc(-20px - env(safe-area-inset-bottom)); padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); bottom: calc(-20px - env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }
body.mobile .hatch-foot .actions { display: flex; } body.mobile .hatch-foot .actions button { flex: 1; }
body.mobile .hatch-price { margin-left: 0; }
.chip.tiny { padding: 2px 9px; font-size: 11px; min-height: 0; }
.chip.tiny.on[data-keep] { background: var(--moss); border-color: var(--moss); color: #fff; }
.chip.tiny.on[data-list] { background: var(--sky); border-color: var(--sky); color: #fff; }
.chip.tiny:disabled { opacity: .7; }

/* toasts live bottom-right, out of the way of the panel; slide left when the phone is open */
#toasts { left: auto; right: 12px; bottom: 14px; width: 320px; }
body.phone-open #toasts { right: 362px; }
body.detail-open #toasts { right: 424px; }
.toast { cursor: pointer; }

/* ---- front page ---------------------------------------------------------- */
#auth.landing { position: fixed; inset: 0; overflow-y: auto; background: var(--paper); background-image: var(--grain); z-index: 50; color: var(--ink); scrollbar-gutter: stable; }
.land { max-width: 1240px; margin: 0 auto; padding: 22px 48px 64px 56px; position: relative; }
.land::before { content: ''; position: absolute; top: 0; bottom: 0; left: 34px; width: 1px; background: rgba(139, 58, 43, .35); }
.land-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.brandline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brandline .rule { width: 40px; height: 1px; background: var(--ink); flex: none; }
.land-links { display: flex; gap: 18px; font-size: 13px; flex: none; }
.land-links a, .land-foot a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.land-links a:hover, .land-foot a:hover { color: var(--ink); border-color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding: 40px 0 28px; align-items: start; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; font-variation-settings: "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--moss); }
.hero .lede { font-size: 17px; max-width: 60ch; }
.live { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.live .lbl { flex: none; }
.live .lbl::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); margin-right: 7px; vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.fresh { margin-top: 14px; }
.fresh .fresh-row { display: flex; gap: 14px; margin-top: 6px; }
.fresh figure { margin: 0; width: 150px; }
.fresh canvas, .parent canvas, .degg.open canvas { width: 100%; aspect-ratio: 52 / 30; display: block; background: linear-gradient(#f5f1e9, #e8e1d3); border: 1px solid var(--rule); }
:root[data-theme="dark"] .fresh canvas, :root[data-theme="dark"] .parent canvas, :root[data-theme="dark"] .degg.open canvas { background: linear-gradient(#2a2722, #1a1815); }
.fresh figcaption { font-size: 12.5px; line-height: 1.3; margin-top: 5px; }
.fresh figcaption .meta { display: block; }

.demo { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink); }
.demo-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.parents { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.parent { margin: 0; }
.parent figcaption { margin-top: 7px; font-size: 14px; line-height: 1.3; }
.parent .pval { font-family: var(--mono); font-size: 11.5px; margin-top: 2px; }
.parent .chip { margin-top: 8px; }
.cross { font-family: var(--serif); font-size: 36px; color: var(--ink-3); font-style: italic; }
.dodds { margin: 14px 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.dodds b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.demo-act { display: flex; align-items: center; gap: 12px; }
.clutch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.clutch .dcount { width: 100%; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.degg { width: 132px; min-height: 118px; background: linear-gradient(#cdbfa3, #b8a889); border: 1px solid #9c8f74; display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; overflow: hidden; animation: drop .4s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.degg .shell { width: 54px; height: 68px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: radial-gradient(circle at 35% 30%, #fffdf6, #e9e2cf 70%, #d6cdb5); box-shadow: inset -5px -7px 12px rgba(120, 100, 70, .25), 0 5px 8px rgba(0, 0, 0, .2); animation: wobble 1.6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.degg.slug .shell { transform: scale(.75); background: radial-gradient(circle at 35% 30%, #f3e6b3, #d9c26a 70%, #b59a3e); animation: none; opacity: .85; }
.degg.open { background: #fff; padding: 5px; gap: 3px; justify-content: flex-start; }
:root[data-theme="dark"] .degg.open { background: #15130f; }
.degg .n { font-size: 11px; font-weight: 500; text-align: center; line-height: 1.2; }
.degg .v { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.degg.jackpot { box-shadow: inset 0 0 0 3px var(--amber); }

.landing .auth-card { position: sticky; top: 24px; width: auto; padding: 26px 30px 22px; box-shadow: none; border: 1px solid var(--ink); border-top: 6px solid var(--moss); background: var(--paper-2); }
.landing .auth-card h3 { font-size: 24px; font-weight: 500; }
.landing .auth-card > .meta { margin: -6px 0 2px; line-height: 1.45; }

.season { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink); }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.season h2 { font-size: 32px; font-weight: 400; }
.panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.panel { cursor: pointer; opacity: .5; transition: opacity .5s; }
.panel.on { opacity: 1; }
.panel svg { width: 100%; aspect-ratio: 240 / 170; display: block; color: var(--ink); overflow: visible; }
.panel svg :is(path, rect, ellipse, circle, line, polyline) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.panel.on svg :is(path, rect, ellipse, circle, line, polyline) { animation: ink 1s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .14s); }
@keyframes ink { to { stroke-dashoffset: 0; } }
.panel svg text { opacity: 0; font: 500 11px var(--mono); fill: currentColor; }
.panel.on svg text { animation: fadein .5s forwards; animation-delay: calc(var(--i, 0) * .14s + .9s); }
@keyframes fadein { to { opacity: 1; } }
.panel .pull { transform: translateX(0); }
.panel.on .pull { animation: pull 1s 1.4s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes pull { to { transform: translateX(44px); } }
.panel .tag { opacity: 0; }
.panel.on .tag { animation: fadein .5s forwards; animation-delay: calc(var(--i, 0) * .5s + 1.8s); }
.panel .cap { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.panel .cap b { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 3px; }
.panel .num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-3); margin-right: 6px; float: left; line-height: 1.55; }
.panel.now .cap b { text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 4px; }

.land-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.land-foot p { margin: 0; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .landing .auth-card { position: static; }
  .panels { grid-template-columns: 1fr 1fr; }
  .land { padding: 18px 22px 40px; }
  .land::before { display: none; }
  .land-foot { grid-template-columns: 1fr; }
  .land-top { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel svg :is(path, rect, ellipse, circle, line, polyline) { stroke-dashoffset: 0; animation: none !important; }
  .panel svg text, .panel .tag { opacity: 1; animation: none !important; }
  .degg .shell, .live .lbl::before { animation: none; }
}
