/* wrestler, banzuke, enter / manage */
/* wrestler */
.wrestler { max-width: 1100px; margin: 0 auto; }
.whead .meta { color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.whead .owner-actions { margin: 0 0 18px; }
.whead .owner-actions .button { display: inline-block; }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease); }
.stat:hover { border-color: var(--gold); transform: translateY(-2px); transition-timing-function: var(--ease-pop); }
.stat b { display: block; font-size: 24px; } .stat span { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
table.bouts td.won { color: var(--gold); } table.bouts td.lost { color: var(--danger); }
table.bouts a { border: 0; }

/* banzuke */
.banzuke-page { max-width: 1200px; margin: 0 auto; }
form.filter { margin: 10px 0 14px; max-width: 320px; }
form.filter select { width: auto; margin-left: 6px; }
table.ladder a { border: 0; }

.about { position: relative; min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); border-top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; overflow: hidden; }
.about .ring-bg { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; border: 10px solid var(--gold); opacity: .07; animation: breathe 7s var(--ease-io) infinite; pointer-events: none; }
.about .q { position: relative; font-family: var(--reading); font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; margin: 0 0 22px; text-wrap: balance; }
.about .q em { font-style: normal; color: var(--gold); text-shadow: 0 0 24px rgba(201, 162, 74, .35); }
.about .big { position: relative; font-family: var(--reading); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.4; max-width: 44ch; margin: 0 0 30px; color: var(--fg); text-wrap: balance; }
.about .yield { color: var(--gold); font-family: var(--mono); font-size: .85em; }
.about .links { position: relative; color: var(--dim); font-size: 13px; }
.about .links a { border-bottom-color: transparent; padding-bottom: 1px; } .about .links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.about .links .sep { color: var(--gold); margin: 0 12px; }

/* enter / manage */
.enter form, .manage form[data-enter] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.est { color: var(--gold); font-size: 12.5px; margin: -6px 0 14px; }
.error { color: var(--danger); border: 1px solid var(--danger); padding: 8px 12px; border-radius: var(--radius); }
.warn { color: var(--gold); border: 1px solid var(--gold); padding: 8px 12px; border-radius: var(--radius); font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.manage h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { margin: 0; width: auto; }
.whead .tagline { margin: 4px 0 8px; color: var(--dim); font-style: italic; }
.rules-table td:first-child { white-space: nowrap; color: var(--gold); }
pre.prompt { font-size: 12px; }
.card { margin-bottom: 20px; }
.card .meta { color: var(--dim); margin-bottom: 8px; }
.card pre.prompt { margin: 0; max-height: 360px; overflow: auto; }
details.cards { margin-top: 18px; }
details.cards summary { cursor: pointer; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; transition: color var(--fast) var(--ease); }
details.cards summary:hover { color: var(--gold); }
details.cards[open] .cards2 { animation: fade-in var(--mid) var(--ease) both; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.cardcol[data-side=west] { order: 1; } .cardcol[data-side=east] { order: 2; }
.cardcol h3 { font-size: 14px; margin: 0 0 8px; }
.cardcol[data-side=east] .tag { color: var(--east); } .cardcol[data-side=west] .tag { color: var(--west); }

/* ── yokozuna: the ring-entering ceremony on the wrestler page ── */
.whead.yokozuna { padding-top: 6px; }
.dohyo-iri { display: inline-flex; gap: 12px; align-items: baseline; color: var(--gold); margin-bottom: 8px; }
.dohyo-iri .kanji { font-family: var(--mincho); letter-spacing: .3em; font-size: 14px; }
.dohyo-iri .romaji { font-size: 11px; color: var(--dim); letter-spacing: .12em; }
/* the tsuna: a white braided rope with five shide, drawn under the name */
.tsuna { position: relative; height: 10px; margin: 6px 0 14px; max-width: 520px; border-radius: 6px;
  background: repeating-linear-gradient(-55deg, #efe9dc 0 8px, #cfc8b8 8px 12px, #efe9dc 12px 20px); box-shadow: 0 2px 10px -4px rgba(0,0,0,.8), inset 0 -2px 0 rgba(0,0,0,.25);
  transform: scaleX(0); transform-origin: left; animation: tsuna 1.4s var(--ease) .2s forwards; }
@keyframes tsuna { to { transform: scaleX(1); } }
.tsuna .shide { position: absolute; top: 10px; width: 10px; height: 26px; background: linear-gradient(180deg, #f4f0e6 0 30%, transparent 30% 36%, #f4f0e6 36% 66%, transparent 66% 72%, #f4f0e6 72%); clip-path: polygon(0 0, 100% 0, 100% 30%, 40% 36%, 100% 42%, 100% 66%, 40% 72%, 100% 78%, 100% 100%, 0 100%); opacity: 0; animation: shide 600ms var(--ease) forwards; }
.tsuna .shide:nth-child(1) { left: 8%; animation-delay: 1.2s; } .tsuna .shide:nth-child(2) { left: 28%; animation-delay: 1.35s; } .tsuna .shide:nth-child(3) { left: 48%; animation-delay: 1.5s; } .tsuna .shide:nth-child(4) { left: 68%; animation-delay: 1.65s; } .tsuna .shide:nth-child(5) { left: 88%; animation-delay: 1.8s; }
@keyframes shide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── the ladder, plain: number, crest, name, elo, last change ── */
.banzuke-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.banzuke-head h1 { margin-bottom: 4px; } .banzuke-head p { margin: 0; }
.banzuke-head form.filter { margin: 0 0 6px; }
.banzuke-head form.filter select { max-width: min(320px, 40vw); }
table.ladder th.num, table.ladder td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.ladder td.who { white-space: nowrap; }
table.ladder td.elo { font-weight: 700; }
table.ladder td.up { color: #6fbf73; } table.ladder td.down { color: var(--east); } table.ladder td.flat { color: var(--dim); }
table.ladder tr.top td { background: rgba(201, 162, 74, .05); }
table.ladder .rank { margin-left: 4px; }
.histo-title { margin: 30px 0 8px; }
svg.chart.density { height: 200px; }
svg.chart.density .area { fill: url(#dens); }
svg.chart.density .line { fill: none; stroke: var(--gold); stroke-width: 1.6; }
svg.chart.density .mean { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
svg.chart.density .rug { stroke: var(--fg); stroke-width: 1; opacity: .35; }
svg.chart.density a:hover .rug { opacity: 1; stroke: var(--gold); stroke-width: 2; }
.place { display: inline-block; min-width: 2.6ch; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.tachiai .meta .place { color: var(--fg); }

/* ── sign in, your wrestlers ── */
section.narrow.login { max-width: 340px; padding-top: 6vh; text-align: center; }
.login .providers { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 14px; }
.login .button.provider { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; font-size: 15px; background: transparent; color: var(--fg); border: 1px solid var(--line); }
.login .button.provider svg { width: 18px; height: 18px; flex: none; }
.login .button.provider:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; transform: none; filter: none; }
p.ok { color: #6fbf73; }
.acct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.acct-head h1 { margin: 0; }
button.plain { background: transparent; color: var(--dim); border: 1px solid var(--line); font-weight: 500; padding: 5px 10px; font-size: 12px; }
button.plain:hover { color: var(--fg); border-color: var(--gold); box-shadow: none; transform: none; filter: none; }
table.mine th.num, table.mine td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.mine td.who { white-space: nowrap; }
table.mine td.who a.manage { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--gold); }
table.mine td.who a.manage:hover { text-decoration: underline; }
table.mine a { border: 0; }
table.mine td.capped { color: var(--red, #d9563c); }
table.mine td.model span.model { font-family: var(--mono); font-size: 12px; }

/* the stable: active / bench / clubhouse */
.stable-day { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; }
.stable-day .capform { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stable-day .capform input { width: 5.5em; padding: 4px 8px; }
.stable-day details.cap { margin-left: auto; }
.stable-day details.cap > summary { cursor: pointer; list-style: none; color: var(--dim); }
.stable-day details.cap > summary::-webkit-details-marker { display: none; }
.stable-day details.cap[open] { flex-basis: 100%; }
.stable-section { margin-bottom: 26px; }
details.stable-section > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; }
details.stable-section > summary::-webkit-details-marker { display: none; }
details.stable-section > summary::before { content: "▸"; color: var(--dim); font-size: 12px; transition: transform var(--fast) var(--ease); }
details.stable-section[open] > summary::before { transform: rotate(90deg); }
.stable-section h2 { margin-bottom: 2px; display: inline; }
.stable-section > p.dim.small { margin-top: 0; margin-bottom: 8px; }
.stable-section p.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; }
table.mine td.moves { text-align: right; white-space: nowrap; }
table.mine td.moves form { display: inline-block; margin: 0 0 0 6px; }
button.small { padding: 4px 10px; font-size: 12px; font-weight: 600; }
table.versions th.num, table.versions td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.versions td.up { color: var(--gold); }
table.versions td.down { color: var(--red, #d9563c); }
table.versions tr.vprompt td { padding-top: 0; }
table.versions tr.vprompt pre.prompt { margin: 6px 0 10px; }
a.keywarn { color: var(--red, #d9563c); border: 0; font-size: 12px; white-space: nowrap; }
.stable-section form.challenge { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.stable-section form.challenge select { padding: 4px 8px; }
.acct-settings { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.acct-settings form.capform { margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.acct-settings input[name="handle"], .acct-settings input[type="email"] { padding: 4px 8px; width: 14em; }
header nav a.me { color: var(--dim); }

/* ── the rules page ── */
.prompt-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 6px 6px 0; margin-bottom: 18px; }
.prompt-label { display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; font-size: 12px; }
.prompt-label .tag { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); border: 1px solid rgba(201, 162, 74, .5); border-radius: 3px; padding: 2px 7px; }
.prompt-top .prompt-card pre.prompt { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
pre.prompt .slot { color: var(--gold); }
.endings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.ending { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color var(--mid) var(--ease); }
.ending:hover { border-color: #3a3a45; }
.ending-seal { flex: none; padding-top: 2px; }
.ending-seal .seal.small { font-size: 18px; padding: 4px 8px; margin: 0; line-height: 1.3; }
.ending-seal .kimarite-name { display: none; }
.ending-text b { font-size: 14px; }
.ending-text p { margin: 6px 0 0; font-size: 13.5px; color: var(--dim); }
.rank-ramp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px 16px; margin: 0 0 22px; }
.rank-ramp .rr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-body ul { margin: 0; padding-left: 18px; }

table.records th.num, table.records td.num { text-align: right; font-variant-numeric: tabular-nums; width: 8ch; }
table.records td.won { color: #6fbf73; } table.records td.lost { color: var(--east); }
table.records a { border: 0; }
table.records { margin-bottom: 26px; }
.h2h .w { color: var(--west); } .h2h .e { color: var(--east); }

/* ── the story: charts on the banzuke page ── */
.story { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 40px; }
.chart-block h2 { margin-bottom: 2px; }
.chart-block > p { margin: 0 0 12px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--mono); }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .base { stroke: rgba(201, 162, 74, .45); stroke-width: 1; stroke-dasharray: 3 4; }
svg.chart .tick { fill: var(--dim); font-size: 10px; text-anchor: end; }
svg.chart .tick.mid { text-anchor: middle; }
svg.chart .rowlabel { fill: var(--fg); font-size: 11px; text-anchor: end; }
svg.chart .collabel { fill: var(--fg); font-size: 11px; text-anchor: start; }
svg.rivers { height: 260px; }
svg.rivers .river path { fill: none; stroke-width: 1.6; opacity: .75; transition: opacity var(--fast) var(--ease), stroke-width var(--fast) var(--ease); }
svg.rivers:hover .river path { opacity: .18; }
svg.rivers .river:hover path { opacity: 1; stroke-width: 2.6; }
svg.rivers .river:hover circle { r: 4.5; }
svg.endings { height: auto; }
svg.endings rect { transition: filter var(--fast) var(--ease); } svg.endings rect:hover { filter: brightness(1.2); }
svg.endings .wy { fill: var(--gold); } svg.endings .wo { fill: rgba(201, 162, 74, .5); } svg.endings .dr { fill: #4a4a52; } svg.endings .lo { fill: rgba(217, 86, 60, .45); } svg.endings .ly { fill: var(--east); }
svg.endings .seg { fill: var(--bg); font-size: 10px; text-anchor: middle; font-weight: 700; pointer-events: none; }
svg.endings .dr + .seg, svg.endings .lo + .seg { fill: var(--fg); }
svg.grid { max-width: 100%; }
svg.grid .self { fill: rgba(255, 255, 255, .04); } svg.grid .none { fill: transparent; stroke: var(--line); stroke-width: .5; }
svg.grid .cell { stroke: var(--bg); stroke-width: 1; transition: filter var(--fast) var(--ease); } svg.grid .cell:hover { filter: brightness(1.3); }
svg.grid .cellnum { fill: var(--fg); font-size: 9px; text-anchor: middle; pointer-events: none; }
svg.talkers { height: 300px; }
svg.talkers .dot circle { opacity: .85; stroke: var(--bg); stroke-width: 1; transition: opacity var(--fast) var(--ease); }
svg.talkers .dot:hover circle { opacity: 1; }
svg.talkers .dotlabel { fill: var(--dim); font-size: 10px; }
svg.length { height: 200px; }
svg.length rect { transition: filter var(--fast) var(--ease); } svg.length rect:hover { filter: brightness(1.2); }
.k-yield { fill: var(--gold); } .k-overlength { fill: #e0463a; } .k-incoherent { fill: #c98d5a; } .k-repetition { fill: #b07dcf; } .k-refusal { fill: #6a6a74; } .k-error { fill: #3a3a45; } .k-cap { fill: #4d8ee0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 11px; color: var(--dim); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .key i { width: 10px; height: 10px; border-radius: 2px; background: var(--c, currentColor); display: inline-block; }
.legend .key.wy i { background: var(--gold); } .legend .key.wo i { background: rgba(201, 162, 74, .5); } .legend .key.dr i { background: #4a4a52; } .legend .key.lo i { background: rgba(217, 86, 60, .45); } .legend .key.ly i { background: var(--east); }
.legend .key.k-yield i { background: var(--gold); } .legend .key.k-overlength i { background: #e0463a; } .legend .key.k-incoherent i { background: #c98d5a; } .legend .key.k-repetition i { background: #b07dcf; } .legend .key.k-refusal i { background: #6a6a74; } .legend .key.k-error i { background: #3a3a45; } .legend .key.k-cap i { background: #4d8ee0; }
/* ten rows tall; scroll (no bar) for the rest, up to fifty */
.ladder-scroll { max-height: calc(21 * 37px); overflow-y: auto; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); overscroll-behavior: contain; }
.ladder-scroll::-webkit-scrollbar { display: none; }
.ladder-scroll table.ladder thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.story-note { margin: 0 0 -20px; }
.road-block { margin-bottom: 26px; }
.road-block h2 { margin-bottom: 2px; } .road-block > p { margin: 0 0 8px; }
svg.road { height: 220px; }
svg.road .line { fill: none; stroke: rgba(201, 162, 74, .55); stroke-width: 1.4; }
svg.road circle { stroke: var(--bg); stroke-width: 1; transition: r var(--fast) var(--ease); }
svg.road circle:hover { r: 6; }
svg.road .won { fill: var(--gold); } svg.road .lost { fill: var(--east); } svg.road .draw { fill: #6a6a74; }
.bouts-page { max-width: 1200px; margin: 0 auto; }
.bout-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 1rem; }
.bout-filters select, .bout-filters input[type="search"] { background: var(--panel, rgba(255,255,255,.04)); color: inherit; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: .3rem .5rem; font: inherit; font-size: .85rem; max-width: 13rem; }
.bout-filters button { font: inherit; font-size: .85rem; padding: .3rem .8rem; cursor: pointer; }
table.bouts.index .tag { font-size: .7rem; opacity: .7; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 0 .3rem; }
table.bouts.index a { border: 0; } table.bouts.index th.num, table.bouts.index td.num { text-align: right; }

/* the stable, live: the ring strip, the fighting row, the cap on the row, the shelf-wide move */
.ring-now { border: 1px solid var(--east); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; }
.ring-now h2 { margin: 0 0 6px; }
.ring-now ul.recent { margin: 0; }
.ring-now .dot, .live-mark .dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--east); vertical-align: middle; }
.ring-now .dot::after, .live-mark .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--east); animation: ripple 2s var(--ease) infinite; }
[data-turn].tick { animation: tick 520ms var(--ease-pop); }
.ring-now [data-turn], .live-mark [data-turn] { display: inline-block; font-variant-numeric: tabular-nums; }
table.mine tr.fighting td.who { border-left: 2px solid var(--east); }
table.mine a.live-mark { font-size: 12px; color: var(--east); white-space: nowrap; }
details.stable-section > summary form.shelf-move { margin-left: auto; }
p.stable-note { margin: 0 0 14px; }

/* the account's keys */
table.keys .hint { font-family: var(--mono); }
table.keys tr.revoked td { opacity: .55; }
form.addkey input[name="api_key"] { width: 18em; }
button.danger.plain { color: var(--east); }
p.keyline .keywarn { color: var(--gold); }

/* the enter form: three fields, the rest under more */
section.enter details.more { margin: 6px 0 12px; }
section.enter details.more > summary { cursor: pointer; color: var(--dim); font-size: 12.5px; }

/* /settings: the viewer's look, in this browser */
.settings .choices { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.settings .choice { display: grid; grid-template-columns: 18px 120px auto 1fr; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 4px; cursor: pointer; }
.settings .choice:hover { background: var(--panel); }
.settings .choice b { font-weight: 600; }
.settings .swatch { width: 110px; height: 22px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg); position: relative; }
.settings .swatch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -9px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; }
.settings .swatch.straw { color: var(--gold); }
.settings .swatch.ember { color: var(--east); }
.settings .swatch.ink { color: var(--dim); }
.settings .swatch.none::after { display: none; }
.settings .sample { width: 110px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings .sample.serif { font-family: Georgia, "Times New Roman", serif; }
.settings .sample.sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.settings .soundrow { display: flex; align-items: center; gap: 10px; }

/* the crest picker on the manage page */
form.crests { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
form.crests button.crest { width: 52px; height: 52px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--gold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
form.crests button.crest:hover { border-color: var(--gold); }
form.crests button.crest.worn { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 74, .35); }
/* /u/handle: the stablemaster */
.stablemaster header.who { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.stablemaster header.who .crest { color: var(--gold); display: inline-flex; }
.stablemaster header.who h1 { margin: 0; }
.stablemaster header.who a.small { margin-left: auto; }
.stablemaster p.bio { white-space: pre-line; max-width: var(--measure); }
.stablemaster table.roster td.who { white-space: nowrap; }
.stablemaster table.roster td.who .crest { color: var(--gold); margin-right: 6px; vertical-align: middle; display: inline-flex; }

/* the profile form on /me/account */
form.profile { display: grid; gap: 8px; margin: 12px 0 16px; }
form.profile h3 { margin: 0; }
form.profile .choices { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
form.profile .choice { display: grid; grid-template-columns: 18px 90px 1fr; align-items: center; gap: 10px; cursor: pointer; }
form.profile label { display: grid; gap: 4px; }
form.profile textarea, form.profile input { width: 100%; max-width: 48ch; }
form.profile button { justify-self: start; }

/* the model list above its id box: the box only shows for "other" */
label select[data-model-pick] + input[data-model] { margin-top: 6px; }

/* a row's model as a list; the set button is for a page without js */
table.mine td.model form.modelform { display: flex; gap: 6px; align-items: center; }
table.mine td.model select { width: auto; max-width: 22ch; padding: 3px 22px 3px 8px; font-size: 12px; font-family: var(--mono); }
.js table.mine td.model form.modelform button { display: none; }
