
.sb-overlay {
  --sb-bg: #111015;
  --sb-panel: #19151c;
  --sb-ink: #f2eaf0;
  --sb-muted: #bdacbc;
  --sb-dim: #9d8e9f;
  --sb-rose: #e1a9c0;
  --sb-cardinal: #c42d4c;
  --sb-gold: #e5c47f;
  --sb-mint: #a5d5bd;
  --sb-line: #4d3542;
  --sb-small: clamp(11px, .52vw, 17px);
  --sb-body: clamp(14px, .65vw, 21px);
  --sb-space: clamp(18px, 1.2vw, 46px);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  color: var(--sb-ink);
  background: radial-gradient(ellipse 70% 65% at 50% -20%, #61203550, transparent 78%), var(--sb-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--sb-body);
  line-height: 1.5;
  text-align: left;
  color-scheme: dark;
  isolation: isolate;
}
.sb-overlay[hidden] { display: none; }
.sb-overlay *, .sb-overlay *::before, .sb-overlay *::after { box-sizing: border-box; }
.sb-overlay button { font: inherit; cursor: pointer; }
.sb-overlay button:focus-visible, .sb-overlay summary:focus-visible, .sb-overlay [tabindex]:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 3px; }
.sb-overlay button[hidden], .sb-overlay [hidden] { display: none; }
.sb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: none; min-height: clamp(66px, 3.5vw, 134px); padding: 14px var(--sb-space); border-bottom: 1px solid #a17b505e; box-shadow: 0 1px #c42d4c1a, 0 8px 38px #c42d4c0a; }
.sb-brand { display: flex; align-items: center; gap: clamp(10px, .7vw, 27px); white-space: nowrap; }
.sb-brand-mark { color: var(--sb-ink); font-size: clamp(23px, 1.1vw, 42px); font-weight: 300; letter-spacing: .15em; }
.sb-brand-section { color: var(--sb-rose); font-size: var(--sb-small); letter-spacing: .24em; }
.sb-brand-slash { color: var(--sb-gold); font-size: 22px; font-weight: 200; }
.sb-brand-page { color: var(--sb-muted); font-size: var(--sb-small); letter-spacing: .16em; }
.sb-top-actions { display: flex; align-items: center; gap: 25px; }
.sb-sync { color: var(--sb-dim); font-size: var(--sb-small); }
.sb-sync::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--sb-dim); }
.sb-sync[data-state="good"]::before { background: var(--sb-mint); box-shadow: 0 0 10px #a5d5bd45; }
.sb-sync[data-state="error"] { color: var(--sb-gold); }
.sb-sync[data-state="error"]::before { background: var(--sb-gold); }
.sb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--sb-line); border-radius: 5px; color: var(--sb-muted); background: #ffffff03; line-height: 1.25; font-size: var(--sb-small) !important; transition: border-color .15s, background .15s; }
.sb-button:hover { border-color: #bb849d; background: #e1a9c00a; color: var(--sb-ink); }
.sb-body { display: grid; grid-template-columns: clamp(190px, 15vw, 480px) minmax(0, 1fr) clamp(260px, 22vw, 750px); min-height: 0; flex: 1; }
.sb-history { display: flex; flex-direction: column; min-height: 0; padding: var(--sb-space) 0; border-right: 1px solid #73564170; background: linear-gradient(110deg, #29182352, #16121740); }
.sb-history-head { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 20px; }
.sb-label { margin: 0; color: var(--sb-rose); font-size: var(--sb-small); font-weight: 550; letter-spacing: .15em; line-height: 1.5; }
.sb-history-count { color: var(--sb-dim); font-size: var(--sb-small); font-variant-numeric: tabular-nums; }
.sb-round-list { overflow-y: auto; min-height: 0; }
.sb-round { display: block; width: 100%; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid #61405228; padding: 22px; color: var(--sb-muted); text-align: left; background: transparent; }
.sb-round:hover { background: #ffffff03; }
.sb-round[data-selected="true"] { border-left-color: var(--sb-cardinal); background: linear-gradient(100deg, #812a452c, #812a4507); }
.sb-round-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.sb-round-number { font-size: var(--sb-small); color: var(--sb-dim); letter-spacing: .12em; }
.sb-round-dot { width: 5px; height: 5px; border-radius: 50%; background: #6e515f; }
.sb-round[data-selected="true"] .sb-round-dot { background: var(--sb-gold); box-shadow: 0 0 9px #e5c47f55; }
.sb-round-title { display: block; color: var(--sb-ink); font-size: var(--sb-body); font-weight: 500; line-height: 1.5; margin-bottom: 10px; }
.sb-round-date { display: block; font-size: var(--sb-small); color: var(--sb-dim); }
.sb-round-state { display: block; margin-top: 7px; color: var(--sb-rose); font-size: var(--sb-small); }
.sb-history-foot { margin-top: auto; padding: 36px 22px 0; }
.sb-small-rule { display: block; width: 28px; height: 1px; margin-bottom: 18px; background: var(--sb-gold); opacity: .5; }
.sb-quiet { font-size: var(--sb-small); color: var(--sb-muted); margin: 0 0 6px; }
.sb-small { margin: 4px 0; font-size: var(--sb-small); color: var(--sb-dim); overflow-wrap: anywhere; }
.sb-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: var(--sb-space) var(--sb-space) 0; }
.sb-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: none; margin-bottom: clamp(20px, 1.3vw, 48px); }
.sb-heading-words { min-width: 0; }
.sb-title { margin: 8px 0 8px; color: var(--sb-ink); font-weight: 450; font-size: clamp(24px, 1.25vw, 48px); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.sb-subtitle { margin: 0; color: var(--sb-dim); font-size: var(--sb-small); }
.sb-round-status { flex: none; margin-top: 28px; padding: 5px 10px; border: 1px solid #705d3e; border-radius: 4px; color: var(--sb-gold); font-size: var(--sb-small); white-space: nowrap; }
.sb-round-status[data-state="approved"] { border-color: #6b8b7552; color: var(--sb-mint); background: #a5d5bd05; }
.sb-round-status[data-state="failed"], .sb-round-status[data-state="send_back"] { border-color: #c42d4c99; color: var(--sb-rose); }
.sb-round-notice { flex: none; margin: -8px 0 20px; padding: 11px 14px; border-left: 2px solid var(--sb-cardinal); background: #74213a22; color: var(--sb-rose); font-size: var(--sb-small); overflow-wrap: anywhere; }
.sb-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 clamp(20px, 1.2vw, 46px); padding: 0; flex: none; }
.sb-stage { display: flex; align-items: center; gap: 9px; position: relative; padding: 0 12px 13px 0; color: #8c7e8f; border-bottom: 1px solid #65434e; font-size: var(--sb-small); }
.sb-stage::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 5px; height: 5px; background: #6c4d59; border-radius: 50%; }
.sb-stage[data-state="done"], .sb-stage[data-state="current"] { color: var(--sb-gold); border-color: #e5c47fa6; }
.sb-stage[data-state="done"]::after, .sb-stage[data-state="current"]::after { background: var(--sb-gold); }
.sb-stage[data-state="current"]::after { box-shadow: 0 0 12px #e5c47f99; }
.sb-stage-number { opacity: .6; font-size: .8em; font-variant-numeric: tabular-nums; }
.sb-stage[data-state="current"] .sb-stage-name { color: var(--sb-ink); }
.sb-light { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--sb-gold); box-shadow: 0 0 8px #e5c47f32; }
.sb-light[data-seat="gothi"] { background: var(--sb-gold); box-shadow: 0 0 8px #e5c47f40; }
.sb-light[data-seat="first_officer"] { background: #d86489; box-shadow: 0 0 8px #d8648940; }
.sb-light[data-seat="second_officer"] { background: #c2b7d9; box-shadow: 0 0 8px #c2b7d932; }
.sb-light[data-seat="crew"] { background: #b1c5c4; box-shadow: 0 0 8px #b1c5c432; }
.sb-activity { margin: 8px 0 16px; text-align: center; color: var(--sb-dim); font-size: var(--sb-small); line-height: 1.4; min-height: 1.4em; }
.sb-log-head { display: flex; align-items: center; gap: 15px; padding-bottom: 14px; flex: none; border-bottom: 1px solid #5d3e4d80; }
.sb-log-title { display: flex; align-items: baseline; gap: 12px; }
.sb-log-hint { margin-left: auto; color: var(--sb-dim); font-size: var(--sb-small); }
.sb-latest { padding: 4px 9px; min-height: 28px; }
.sb-log { flex: 1; overflow-y: auto; min-height: 170px; padding: 22px 10px 48px 0; scrollbar-color: #705060 #19151c; scrollbar-width: thin; }
.sb-entry { display: grid; grid-template-columns: clamp(65px, 4vw, 150px) minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 24px; }
.sb-axis { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 15px 4px 0 0; }
.sb-axis::after { content: ''; position: absolute; top: 46px; bottom: -8px; left: 13px; width: 1px; background: #6e48593b; }
.sb-time { color: #b6a6b6; font-size: var(--sb-small); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-axis-index { margin-top: 13px; color: #b58c69; font-size: 10px; letter-spacing: .06em; z-index: 1; padding: 2px 7px; background: #18131a; border: 1px solid #674836; border-radius: 3px; }
.sb-post-stack { min-width: 0; }
.sb-post { display: block; width: 100%; padding: clamp(16px, .85vw, 32px); text-align: left; color: var(--sb-ink); background: linear-gradient(100deg, #35212d6e, #221b24a1); border: 1px solid #64425091; border-radius: 6px 6px 0 0; transition: background .15s, border-color .15s; }
.sb-post:hover { background: linear-gradient(100deg, #45243588, #2b1e2a); border-color: #a2687c; }
.sb-post[data-selected="true"], .sb-gothi-reply[data-selected="true"] { box-shadow: inset 3px 0 var(--sb-cardinal); border-color: #bb6c88; }
.sb-post-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.sb-post-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sb-author { font-size: var(--sb-small); font-weight: 600; }
.sb-stand-in { color: var(--sb-dim); font-size: clamp(10px, .38vw, 15px); }
.sb-post-kind { font-size: var(--sb-small); color: var(--sb-gold); text-transform: capitalize; }
.sb-post-to { display: block; margin: 4px 0 14px 14px; font-size: var(--sb-small); color: var(--sb-dim); }
.sb-haiku { display: block; border-left: 1px solid #c3829b48; margin-left: 2px; padding-left: 13px; color: #b5a3b2; font-size: clamp(13px, .58vw, 19px); line-height: 1.55; }
.sb-haiku-line { display: block; }
.sb-gothi-reply { display: block; width: 100%; padding: clamp(16px, .85vw, 32px); border: 1px solid #64425091; border-top: 0; border-radius: 0 0 6px 6px; color: var(--sb-ink); background: #21192380; text-align: left; transition: background .15s, border-color .15s; }
.sb-gothi-reply:hover { background: #30202d; border-color: #a2687c; }
.sb-gothi-label { display: flex; align-items: center; gap: 8px; color: var(--sb-rose); font-size: var(--sb-small); margin-bottom: 8px; }
.sb-gothi-name { font-weight: 550; }
.sb-reply-time { color: var(--sb-dim); font-size: .92em; margin-left: auto; font-variant-numeric: tabular-nums; }
.sb-plain { display: block; font-size: clamp(17px, .82vw, 26px); font-weight: 400; line-height: 1.5; letter-spacing: -.012em; overflow-wrap: anywhere; }
.sb-reply-proof { display: block; color: var(--sb-gold); font-size: var(--sb-small); margin-top: 12px; }
.sb-reply-proof[data-ok="true"] { color: #a8c3af; }
.sb-reply-proof::before { content: '◇'; margin-right: 6px; }
.sb-decoder-caption { display: block; color: var(--sb-gold); font-size: var(--sb-small); margin-top: 10px; }
.sb-pending { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border: 1px solid #64425091; border-top: 0; border-radius: 0 0 6px 6px; background: #22192150; color: var(--sb-dim); font-size: var(--sb-small); }
.sb-detail { min-width: 0; min-height: 0; overflow-y: auto; padding: var(--sb-space); border-left: 1px solid #a17b505e; background: linear-gradient(160deg, #2a1d281f, #18141b); scrollbar-color: #705060 #19151c; scrollbar-width: thin; box-shadow: -8px 0 28px #c42d4c05; }
.sb-detail-head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; margin-bottom: 24px; }
.sb-detail-close { font-size: 22px !important; min-height: 28px; width: 28px; padding: 0; }
.sb-record-glyph { display: flex; flex-direction: column; gap: 8px; width: 56px; padding: 15px 11px; border: 1px solid #bc8a6450; border-radius: 4px; margin: 50px 0 25px; transform: rotate(-4deg); background: linear-gradient(145deg,#67324622,transparent); }
.sb-glyph-line { height: 1px; width: 30px; background: #cda77caa; }
.sb-glyph-line:last-child { width: 19px; }
.sb-detail-title { margin: 0; color: var(--sb-ink); font-size: clamp(20px, .85vw, 33px); line-height: 1.25; font-weight: 400; letter-spacing: -.025em; }
.sb-detail-intro { color: var(--sb-muted); font-size: var(--sb-body); margin: 12px 0 22px; line-height: 1.6; }
.sb-detail-invite { padding-top: 22px; margin-top: 18px; border-top: 1px solid #503542; color: var(--sb-dim); font-size: var(--sb-small); line-height: 1.7; }
.sb-detail-identity { display: flex; align-items: center; gap: 10px; }
.sb-detail-route { margin: 0 0 9px; color: var(--sb-rose); font-size: var(--sb-small); overflow-wrap: anywhere; }
.sb-detail-by { margin-bottom: 28px; }
.sb-detail-section { margin: 28px 0; padding-top: 18px; border-top: 1px solid #63415165; }
.sb-detail-section .sb-label { font-size: clamp(10px,.4vw,16px); letter-spacing: .11em; }
.sb-detail-text { margin: 10px 0 0; font-size: var(--sb-body); color: #d8cbd6; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sb-detail-haiku { margin: 12px 0 0; white-space: pre-wrap; color: #d4bdcd; font: inherit; line-height: 1.7; }
.sb-evidence { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: var(--sb-small); }
.sb-evidence-key { color: var(--sb-dim); }
.sb-evidence-value { margin: 0; color: #dfd0da; overflow-wrap: anywhere; }
.sb-check-box { margin-top: 12px; }
.sb-check-title { color: var(--sb-gold); margin: 0 0 7px; font-size: var(--sb-body); }
.sb-check-title[data-ok="true"] { color: var(--sb-mint); }
.sb-check-item { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; color: #c8b7c4; font-size: var(--sb-small); line-height: 1.65; }
.sb-check-symbol { color: var(--sb-gold); flex: none; }
.sb-check-description { overflow-wrap: anywhere; }
.sb-raw { padding: 12px 0; border-top: 1px solid #63415165; }
.sb-raw-summary { cursor: pointer; color: var(--sb-rose); font-size: var(--sb-small); }
.sb-raw-text { margin: 15px 0 0; padding: 12px; background: #100e12; border: 1px solid #503241; border-radius: 5px; color: #c6b1c0; font: clamp(11px,.38vw,15px)/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sb-post-id { color: var(--sb-dim); font-size: 10px; overflow-wrap: anywhere; }
.sb-empty { display: grid; place-items: center; min-height: 200px; padding: 30px; color: var(--sb-muted); text-align: center; }
.sb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sb-preview { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #111015; color: #f2eaf0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sb-preview-card { max-width: 600px; padding: 48px; border: 1px solid #654250; border-top-color: #e5c47f; border-radius: 8px; background: radial-gradient(ellipse at top left, #4d20344d, transparent), #19151c; }
.sb-preview-label { color: #e1a9c0; font-size: 12px; letter-spacing: .15em; }
.sb-preview-title { font-size: 34px; font-weight: 400; letter-spacing: -.03em; }
.sb-preview-copy { line-height: 1.6; color: #bdacbc; }
.sb-preview-open { padding: 12px 18px; margin-top: 14px; background: #6a263d; color: #f2eaf0; border: 1px solid #b46983; border-radius: 5px; font: inherit; cursor: pointer; }
.sb-preview-open:focus-visible { outline: 2px solid #e5c47f; outline-offset: 4px; }
@media (min-width: 2400px) {
  .sb-history-head, .sb-round, .sb-history-foot { padding-left: 36px; padding-right: 36px; }
  .sb-round { padding-top: 32px; padding-bottom: 32px; }
  .sb-light { width: 8px; height: 8px; }
  .sb-button { min-height: 46px; padding: 10px 18px; }
  .sb-entry { padding-bottom: 36px; }
  .sb-axis-index { font-size: 15px; }
  .sb-post-to { margin-bottom: 20px; }
  .sb-post-id { font-size: 14px; }
  .sb-record-glyph { width: 80px; padding: 20px 17px; gap: 12px; }
  .sb-glyph-line { width: 43px; }
}
@media (max-width: 1300px) {
  .sb-body { grid-template-columns: 175px minmax(0, 1fr) 260px; }
  .sb-top-actions { gap: 15px; }
  .sb-log-hint { display: none; }
  .sb-log-title { margin-right: auto; }
  .sb-title { font-size: 25px; }
  .sb-round-status { margin-top: 27px; padding: 4px 7px; }
}
@media (max-width: 1050px) {
  .sb-body { grid-template-columns: 165px minmax(0, 1fr); }
  .sb-detail { position: absolute; top: 80px; bottom: 16px; right: 16px; width: min(380px, calc(100vw - 32px)); z-index: 3; border: 1px solid #976c80; border-top-color: #e5c47f; border-radius: 8px; box-shadow: 0 20px 70px #000b; background: #1c1620; display: none; }
  .sb-detail:has(.sb-detail-close) { display: block; }
  .sb-brand-page { display: none; }
  .sb-brand-slash { display: none; }
}
@media (max-width: 760px) {
  .sb-topbar { padding: 12px 16px; min-height: 64px; }
  .sb-sync { display: none; }
  .sb-body { display: flex; flex-direction: column; }
  .sb-history { flex: none; padding: 0; border-right: 0; border-bottom: 1px solid #73564170; }
  .sb-history-head, .sb-history-foot { display: none; }
  .sb-round-list { display: flex; overflow-x: auto; }
  .sb-round { padding: 9px 14px; width: 220px; flex: none; border-left: 0; border-bottom: 2px solid transparent; }
  .sb-round[data-selected="true"] { border-bottom-color: var(--sb-cardinal); }
  .sb-round-top { margin-bottom: 3px; }
  .sb-round-title { font-size: 12px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-round-date, .sb-round-state { display: none; }
  .sb-workspace { flex: 1; padding: 18px 16px 0; }
  .sb-heading { margin-bottom: 18px; }
  .sb-title { font-size: 22px; }
  .sb-subtitle { font-size: 10px; }
  .sb-round-status { margin-top: 24px; font-size: 10px; }
  .sb-stages { margin-bottom: 18px; }
  .sb-stage { font-size: 11px; gap: 5px; padding-bottom: 8px; }
  .sb-activity { margin-bottom: 18px; font-size: 10px; }
  .sb-log { padding-top: 14px; padding-right: 0; }
  .sb-entry { grid-template-columns: 56px minmax(0, 1fr); gap: 4px; }
  .sb-time { font-size: 10px; }
  .sb-post, .sb-gothi-reply { padding: 13px; }
  .sb-post-head { gap: 8px; }
  .sb-post-who { gap: 6px; }
  .sb-author, .sb-post-kind { font-size: 10px; }
  .sb-stand-in { font-size: 9px; }
  .sb-post-to { font-size: 10px; }
  .sb-haiku { font-size: 12px; }
  .sb-plain { font-size: 16px; }
  .sb-gothi-label, .sb-reply-proof { font-size: 10px; }
  .sb-detail { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-button, .sb-post, .sb-gothi-reply, .sb-seat { transition: none; }
}
@media (forced-colors: active) {
  .sb-overlay, .sb-seat, .sb-post, .sb-gothi-reply, .sb-detail, .sb-round, .sb-button { color: CanvasText; background: Canvas; border-color: CanvasText; }
}


.sb-seats { display: flex; flex-direction: column; position: relative; flex: none; height: clamp(320px, 39vh, 570px); min-width: 0; border: 1px solid #684052; border-top-color: #85435b; border-radius: 10px; background: radial-gradient(ellipse 46% 80% at 50% 46%, #69422b19, transparent), linear-gradient(115deg, #30232d75, #24202975); box-shadow: inset 0 1px #e8a1b51c, 0 2px 0 #100d13; }
.sb-picture-head { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 14px 0; }
.sb-picture-head .sb-label { font-size: var(--sb-small); letter-spacing: .12em; }
.sb-replay-status { margin-left: auto; color: var(--sb-dim); font-size: var(--sb-small); font-variant-numeric: tabular-nums; }
.sb-replay { min-width: 74px; min-height: 28px; padding: 5px 10px; }
.sb-picture { width: 100%; flex: 1; display: block; min-height: 0; overflow: visible; }
.sb-board-orbit { fill: none; stroke: #b1946250; stroke-width: 1; stroke-dasharray: 2 8; }
.sb-board-plate { fill: #b4915720; stroke: #d0b77988; stroke-width: 1.25; }
.sb-board-notch { stroke: #d0b77960; stroke-width: 1; }
.sb-board-word { fill: var(--sb-gold); font-size: 12px; letter-spacing: 4px; }
.sb-spoke { fill: none; stroke: #b1946240; stroke-width: 1.5; }
.sb-station { cursor: pointer; outline: none; }
.sb-station-glow { opacity: .25; transition: opacity .2s; pointer-events: none; }
.sb-station-disc { fill: #17141b; stroke-width: 2; }
.sb-station-core { opacity: .7; }
.sb-console { fill: none; stroke-width: 5; opacity: .55; }
.sb-station[data-active="true"] .sb-station-glow, .sb-station:hover .sb-station-glow, .sb-station:focus-visible .sb-station-glow { opacity: 1; }
.sb-station[data-active="true"] .sb-station-core { opacity: 1; }
.sb-station[data-active="true"] .sb-console, .sb-station[data-receiving="true"] .sb-console { opacity: 1; }
.sb-station:focus-visible .sb-station-disc { stroke: var(--sb-ink); stroke-width: 4; }
.sb-station-name { fill: var(--sb-ink); font-size: 16px; font-weight: 600; letter-spacing: 1.6px; }
.sb-station-identity { fill: var(--sb-muted); font-size: 15px; }
.sb-station-count { fill: var(--sb-gold); font-size: 14px; }
.sb-station-lamp { fill: #635965; stroke: #17141b; stroke-width: 3; }
.sb-station-lamp[data-state="on"] { fill: var(--sb-gold); filter: drop-shadow(0 0 4px #e5c47f77); }
.sb-station-lamp[data-state="warn"] { fill: #edb270; filter: drop-shadow(0 0 6px #edb270); }
.sb-pulse { cursor: pointer; outline: none; }
.sb-pulse-route { fill: none; stroke-width: 2; opacity: .65; }
.sb-pulse-hit { fill: none; stroke: transparent; stroke-width: 24; pointer-events: stroke; }
.sb-pulse-dot { filter: drop-shadow(0 0 6px #e5c47f88); pointer-events: none; }
.sb-pulse-label { font-size: 16px; font-weight: 600; letter-spacing: .25px; paint-order: stroke; stroke: #211b24; stroke-width: 5px; stroke-linejoin: round; }
.sb-pulse:focus-visible .sb-pulse-route, .sb-pulse:hover .sb-pulse-route { stroke-width: 4; opacity: 1; }
.sb-bounce-ring { fill: none; stroke: #edb270; stroke-width: 4; opacity: 0; pointer-events: none; }
.sb-bounce-ring[data-on="true"] { opacity: 1; }
.sb-bounce-ring[data-animate="true"] { animation: sb-bounce 1.1s ease-in-out 1; }
@keyframes sb-bounce { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: .2; } }
.sb-picture-caption { display: block; flex: none; width: 100%; padding: 10px 15px; margin: 0; min-height: 38px; max-height: 84px; overflow-y: auto; border: 0; border-top: 1px solid #68405280; border-radius: 0 0 10px 10px; color: var(--sb-muted); background: #15111835; text-align: left; font-size: var(--sb-small) !important; line-height: 1.5; overflow-wrap: anywhere; }
.sb-picture-caption:hover { color: var(--sb-ink); background: #e1a9c008; }
.sb-picture-caption[data-warning="true"] { color: #edb270; border-top-color: #edb27070; }
.sb-post[data-playing="true"], .sb-gothi-reply[data-playing="true"] { border-color: #b49862; box-shadow: inset 2px 0 var(--sb-gold); }
@media (min-width: 1900px) {
  .sb-picture-head { padding: 16px 22px 0; }
  .sb-picture-caption { padding: 14px 22px; max-height: 100px; }
  .sb-activity { margin-bottom: 24px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .sb-workspace { overflow-y: auto; }
  .sb-log { flex: none; height: 340px; }
}
@media (max-width: 760px) {
  .sb-workspace { overflow-y: auto; }
  .sb-seats { height: 320px; }
  .sb-picture-head { padding: 10px 10px 0; gap: 8px; }
  .sb-picture-head .sb-label { font-size: 10px; letter-spacing: .07em; }
  .sb-replay-status { font-size: 10px; }
  .sb-log { flex: none; height: 420px; }
  .sb-picture-caption { max-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-station-glow { transition: none; }
  .sb-bounce-ring[data-animate="true"] { animation: none; }
}
@media (forced-colors: active) {
  .sb-station-disc, .sb-board-plate, .sb-board-orbit, .sb-spoke, .sb-pulse-route { stroke: CanvasText; }
  .sb-station-name, .sb-station-identity, .sb-station-count, .sb-pulse-label { fill: CanvasText; stroke: none; }
  .sb-station-lamp, .sb-station-core, .sb-pulse-dot { fill: Highlight; }
}
@media (min-width: 761px) and (max-width: 1600px) and (min-height: 761px) {
  .sb-heading { margin-bottom: 12px; }
  .sb-title { margin: 6px 0; }
  .sb-stages { margin-bottom: 12px; }
  .sb-seats { height: 300px; }
  .sb-activity { margin: 6px 0 10px; }
  .sb-log-head { padding-bottom: 8px; }
  .sb-log { padding-top: 14px; }
  .sb-post, .sb-gothi-reply { padding: 12px 16px; }
  .sb-post-to { margin-bottom: 7px; }
  .sb-reply-proof { margin-top: 8px; }
}


.sb-overlay { --sb-axis: clamp(62px, 3.8vw, 150px); }
.sb-body { grid-template-columns: clamp(160px, 12.5vw, 420px) minmax(0, 1fr) clamp(240px, 20vw, 700px); }
.sb-workspace { padding-left: calc(var(--sb-axis) + 10px + var(--sb-space) * .6); }
.sb-entry { grid-template-columns: var(--sb-axis) minmax(0, 1fr); }
.sb-log { margin-left: calc(-1 * (var(--sb-axis) + 10px)); }
.sb-round { padding: 18px 16px; }
