:root {
  --ink: #151816; --coal: #111312; --panel: #1a1d1b; --panel-2: #202421; --line: #343a35;
  --cream: #f1e6cf; --muted: #a8aea8; --red: #ba3b3f; --red-bright: #df555a;
  --green: #29815c; --green-bright: #35a776; --gold: #d2ae6d;
}

.app-shell { min-height: 100vh; background: radial-gradient(circle at 15% 0%, #242a25 0, transparent 34rem), var(--coal); color: var(--cream); }
.topbar { min-height: 82px; padding: 14px clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(17,19,18,.88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #566158; border-radius: 50%; color: var(--red-bright); font-size: 30px; line-height: 1; }
.brand p, .eyebrow { margin: 0 0 3px; font-size: 10px; letter-spacing: .2em; color: var(--gold); font-weight: 800; }
.brand h1 { margin: 0; font-size: clamp(16px, 2vw, 22px); letter-spacing: .04em; }
.topbar-controls { display: flex; align-items: center; gap: 10px; }
.view-tabs { display: flex; padding: 4px; background: #0c0e0d; border: 1px solid var(--line); border-radius: 12px; }
.view-tabs button { min-width: 92px; padding: 9px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-weight: 700; }
.view-tabs button.active { background: var(--cream); color: var(--ink); }
.language-switcher { min-width: 116px; display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }
.language-switcher select { min-height: 38px; padding: 7px 28px 7px 9px; border-radius: 10px; color: var(--cream); background: #0c0e0d; font-size: 12px; font-weight: 800; }

.practice-layout { width: min(1440px, 100%); margin: 0 auto; padding: clamp(20px, 3vw, 44px); display: grid; grid-template-columns: minmax(460px, 1.05fr) minmax(380px, .95fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.board-panel { position: sticky; top: 116px; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.card-title-row h2, .editor-intro h2 { margin: 0; font-size: clamp(20px, 2vw, 29px); }
.darts-left, .round-start { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.board-shell { width: min(100%, 680px); margin: 12px auto 6px; position: relative; aspect-ratio: 1; }
.dartboard { width: 100%; height: 100%; filter: drop-shadow(0 22px 32px rgba(0,0,0,.45)); }
.board-bezel { fill: #090a09; stroke: #444a45; stroke-width: 3; }
.board-number-ring { fill: #171a18; stroke: #090a09; stroke-width: 1; }
.board-number { fill: #eee8dd; font-size: 20px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.board-segment { stroke: #292e2a; stroke-width: 1.2; transition: filter .12s ease, opacity .12s ease; outline: none; }
.board-segment:hover, .board-segment:focus-visible { filter: brightness(1.45); stroke: #fff; stroke-width: 2; }
.single-cream { fill: #e9dec9; } .single-black { fill: #151715; }
.ring-red, .inner-bull { fill: #b83c40; } .ring-green, .outer-bull { fill: #277b57; }
.board-disabled { position: absolute; inset: 36%; display: grid; place-items: center; text-align: center; border-radius: 50%; color: #fff; background: rgba(11,13,12,.84); border: 1px solid #4b534c; font-size: 13px; font-weight: 800; pointer-events: none; }
.board-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.board-actions button { min-width: 0; padding: 9px 8px; white-space: nowrap; font-size: 12px; }

.score-panel { display: grid; gap: 16px; }
.score-card, .throws-card, .arrange-card, .history-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(32,36,33,.98), rgba(24,27,25,.98)); border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.score-card { padding: clamp(20px, 3vw, 30px); }
.score-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; }
.status-dot { color: #807d76; font-size: 10px; letter-spacing: .15em; }
.status-dot.live { color: var(--green-bright); }
.status-dot.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.score-number { margin: 2px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(78px, 11vw, 126px); line-height: .94; letter-spacing: -.05em; color: #fff8ea; }
.mobile-round-start { display: none; }
.score-setup { display: grid; grid-template-columns: auto 92px 1fr; gap: 10px; align-items: center; }
.score-setup label { color: var(--muted); font-size: 12px; }
.start-controls { display: grid; gap: 10px; }
.random-setup { padding: 11px; display: grid; grid-template-columns: auto 76px auto 76px 1fr; gap: 8px; align-items: end; border: 1px solid #3e463f; border-radius: 12px; background: #151816; }
.random-label { align-self: center; color: var(--gold); font-size: 11px; font-weight: 900; }
.random-setup label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.random-setup input { padding: 8px; }
.range-separator { align-self: center; color: var(--muted); }
.random-button { min-height: 36px; border: 1px solid var(--gold); border-radius: 9px; background: rgba(210,174,109,.1); color: var(--cream); font-weight: 900; }
.random-button:hover { background: var(--gold); color: var(--ink); }
.rule-settings { margin-top: 12px; padding: 12px; display: grid; grid-template-columns: 1.2fr .9fr; gap: 10px; border: 1px solid #3e463f; border-radius: 12px; background: #151816; }
.rule-group { display: grid; gap: 6px; }
.rule-group > span { color: var(--gold); font-size: 10px; font-weight: 900; }
.rule-options { display: flex; padding: 3px; border: 1px solid #3c433e; border-radius: 9px; background: #0d100e; }
.rule-options button { min-height: 34px; flex: 1; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.rule-options button.active { background: var(--cream); color: var(--ink); }
.rule-options button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.rule-settings > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
input, select, textarea { width: 100%; border: 1px solid #444b45; background: #111412; color: var(--cream); border-radius: 9px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210,174,109,.12); }
.primary-button, .next-round-button { border: 0; border-radius: 10px; padding: 11px 17px; background: var(--red); color: white; font-weight: 800; box-shadow: 0 8px 16px rgba(120,25,30,.24); }
.primary-button:hover, .next-round-button:hover { background: var(--red-bright); }
.secondary-button { border: 1px solid #4b534d; border-radius: 9px; padding: 9px 15px; background: transparent; color: var(--cream); font-weight: 700; }
.secondary-button:hover { border-color: var(--cream); }
button:disabled { cursor: not-allowed; opacity: .35; }
.game-message { min-height: 24px; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.game-message.checkout { color: var(--green-bright); font-weight: 800; }

.throws-card, .arrange-card, .history-card { padding: 21px; }
.throw-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 17px 0 12px; }
.throw-slot { min-height: 92px; padding: 11px; display: flex; flex-direction: column; justify-content: space-between; border: 1px dashed #464d47; border-radius: 12px; background: #151816; color: #737a74; }
.throw-slot span { font-size: 10px; font-weight: 800; } .throw-slot strong { font-size: 23px; color: inherit; } .throw-slot small { font-size: 10px; }
.throw-slot.filled { border-style: solid; border-color: #657067; color: var(--cream); background: #252a26; }
.throw-slot.bust { border-color: var(--red); color: #ff8f92; }
.previous-round-button { border: 1px solid #59615b; border-radius: 10px; padding: 11px 13px; background: transparent; color: var(--cream); font-weight: 800; }
.previous-round-button:hover { border-color: var(--cream); background: rgba(241,230,207,.06); }
.next-round-button { width: 100%; background: var(--green); box-shadow: 0 8px 16px rgba(25,85,58,.2); } .next-round-button:hover { background: var(--green-bright); }
.candidate-list { display: grid; gap: 9px; margin-top: 16px; }
.candidate { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; border: 1px solid #3a413b; border-radius: 13px; background: #151816; }
.candidate-rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink); font-family: Georgia, serif; font-weight: 900; }
.candidate-body strong { display: block; margin: 4px 0; color: #fff8e9; font-size: clamp(17px, 2vw, 21px); letter-spacing: .02em; }
.candidate-body p { margin: 0; color: var(--muted); font-size: 12px; }
.candidate-meta { display: flex; gap: 7px; align-items: center; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.custom-chip { padding: 2px 6px; border-radius: 4px; color: var(--green-bright); background: rgba(53,167,118,.12); }
.empty-candidate { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.empty-candidate.success { color: var(--green-bright); font-weight: 900; }
.text-button { margin-top: 12px; padding: 8px 0; border: 0; background: transparent; color: var(--gold); font-weight: 800; } .text-button:hover { color: var(--cream); }
.history-card h2 { margin: 0; font-size: 18px; } .history-card .card-title-row > span { color: var(--muted); font-size: 11px; }
.history-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-row:first-of-type { margin-top: 10px; } .history-row strong { color: var(--cream); }

.editor-page { width: min(1180px, 100%); margin: 0 auto; padding: clamp(26px, 5vw, 64px); }
.editor-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.editor-intro h2 { font-size: clamp(27px, 4vw, 44px); }
.editor-intro p { max-width: 680px; color: var(--muted); line-height: 1.8; }
.editor-intro .data-source-status { width: fit-content; margin: 8px 0 0; padding: 5px 9px; border: 1px solid rgba(53,167,118,.4); border-radius: 999px; color: var(--green-bright); background: rgba(53,167,118,.08); font-size: 10px; font-weight: 800; line-height: 1.2; }
.editor-intro .data-source-status.warning { border-color: rgba(223,85,90,.45); color: #ff9ca0; background: rgba(223,85,90,.08); }
.editor-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.editor-filter { margin: 28px 0 18px; padding: 16px; display: grid; grid-template-columns: 190px 150px 130px 1fr; gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.editor-filter label, .editor-card > label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.editor-filter .text-button { justify-self: end; } .text-button.danger { color: #ef7c80; }
.editor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.arrangement-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.arrangement-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.arrangement-table th { padding: 12px; text-align: left; color: var(--gold); background: #111412; font-size: 10px; letter-spacing: .08em; }
.arrangement-table th:nth-child(1) { width: 70px; } .arrangement-table th:nth-child(2) { width: 115px; } .arrangement-table th:nth-child(3) { width: 25%; }
.arrangement-table td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.arrangement-table textarea { min-height: 64px; resize: vertical; }
.table-standard { display: grid; gap: 5px; } .table-standard strong { color: #fff8e9; font-size: 17px; } .table-standard small { color: var(--muted); line-height: 1.45; }
.table-toggle b { min-width: 28px; color: var(--muted); font-size: 10px; }
.editor-card { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(150deg, var(--panel-2), var(--panel)); display: grid; gap: 16px; }
.editor-card-head, .editor-card-head > div { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 32px; height: 18px; padding: 2px; border-radius: 99px; background: #4a504b; }
.toggle span::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .2s; }
.toggle input:checked + span { background: var(--green); } .toggle input:checked + span::after { transform: translateX(14px); }
.standard-route { padding: 12px; display: grid; gap: 4px; border-radius: 10px; background: #111412; }
.standard-route span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; } .standard-route strong { font-size: 17px; } .standard-route small { color: var(--muted); }
.editor-card textarea { resize: vertical; }
.editor-footer { display: flex; align-items: center; gap: 18px; margin-top: 20px; } .editor-footer p { color: var(--muted); font-size: 12px; }
footer { padding: 24px; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 16px; text-align: center; color: #747b75; font-size: 11px; }
footer a { padding: 6px 10px; border: 1px solid #3e463f; border-radius: 999px; color: var(--gold); text-decoration: none; }
footer a:hover { border-color: var(--gold); color: var(--cream); }
footer small { font-size: inherit; }

.calculator-page { width: min(620px, 100%); margin: 0 auto; padding: clamp(14px, 3vw, 38px); }
.calculator-card, .calculator-history { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #202421, #171a18); box-shadow: 0 18px 40px rgba(0,0,0,.28); overflow: hidden; }
.calculator-head { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #121513; }
.calculator-head > div { display: flex; align-items: baseline; gap: 10px; }
.calculator-head span, .calculator-round-score span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.calculator-head strong { color: var(--cream); font-family: Georgia, serif; font-size: 28px; }
.calculator-head .calculator-total strong { color: white; font-size: 38px; }
.calculator-round-score { padding: 14px 20px 5px; display: flex; align-items: baseline; justify-content: space-between; }
.calculator-round-score strong { color: #fff8ea; font-family: Georgia, serif; font-size: 64px; line-height: 1; }
.calculator-throws { padding: 10px 14px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calculator-throws > div { min-height: 78px; padding: 9px; display: grid; gap: 2px; border: 1px dashed #485049; border-radius: 12px; color: #747b75; background: #131614; }
.calculator-throws > div.filled { border-style: solid; border-color: #626d64; color: var(--cream); background: #252a26; }
.calculator-throws span, .calculator-throws small { font-size: 9px; font-weight: 800; }
.calculator-throws strong { font-size: 22px; }
.manual-row { padding: 11px 14px; display: grid; grid-template-columns: 1fr 110px; gap: 7px; border-block: 1px solid var(--line); background: #121513; }
.manual-row label { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-weight: 800; }
.manual-row input { min-height: 48px; font-size: 20px; font-weight: 800; }
.manual-row button { border: 0; border-radius: 9px; background: var(--cream); color: var(--ink); font-weight: 900; }
.multiplier-row { padding: 12px 14px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.multiplier-row button { min-height: 51px; border: 1px solid #4a524c; border-radius: 10px; color: white; background: #272c28; font-size: 14px; font-weight: 900; }
.multiplier-row button span { margin-left: 7px; opacity: .7; font-size: 10px; }
.multiplier-row .triple.active { border-color: var(--green-bright); background: var(--green); box-shadow: 0 0 0 2px rgba(53,167,118,.2); }
.multiplier-row .double.active { border-color: var(--red-bright); background: var(--red); box-shadow: 0 0 0 2px rgba(223,85,90,.2); }
.number-grid { padding: 0 14px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.number-grid button { min-height: 55px; border: 1px solid #434a44; border-radius: 10px; background: #f1e6cf; color: #151816; font-family: Georgia, serif; font-size: 23px; font-weight: 900; box-shadow: inset 0 -3px rgba(0,0,0,.12); }
.number-grid button:active, .bull-row button:active { transform: translateY(1px); box-shadow: none; }
.bull-row, .calculator-actions { padding: 0 14px 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bull-row button { min-height: 47px; border: 1px solid #48a47b; border-radius: 10px; background: #1f664a; color: white; font-size: 15px; font-weight: 900; }
.bull-row button:last-child { border-color: #d76367; background: #913137; }
.calculator-actions button { min-height: 43px; border: 1px solid #515a53; border-radius: 9px; background: transparent; color: var(--cream); font-weight: 800; }
.confirm-round { width: calc(100% - 28px); min-height: 53px; margin: 2px 14px 8px; border: 0; border-radius: 11px; background: var(--green); color: white; font-size: 15px; font-weight: 900; }
.reset-calculator { width: 100%; padding: 10px; border: 0; color: #858c86; background: transparent; font-size: 11px; }
.calculator-history { margin-top: 13px; padding: 16px; }
.calculator-history h2 { margin: 0 0 8px; font-size: 16px; }
.calculator-history > div { padding: 9px 0; display: grid; grid-template-columns: 78px 1fr auto; gap: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.calculator-history strong { color: var(--cream); }

@media (max-width: 980px) {
  .topbar { min-height: 52px; padding: 8px 10px; position: static; align-items: center; gap: 8px; }
  .brand { min-width: 0; gap: 8px; } .brand-mark { width: 32px; height: 32px; flex: 0 0 auto; font-size: 23px; } .brand p { display: none; } .brand h1 { overflow: hidden; font-size: clamp(13px, 2vw, 16px); white-space: nowrap; text-overflow: ellipsis; }
  .topbar-controls { margin-left: auto; gap: 5px; }
  .view-tabs { width: auto; } .view-tabs button { min-width: 0; padding: 7px 10px; flex: 0 1 auto; font-size: 11px; }
  .language-switcher { min-width: 76px; }
  .language-switcher > span { display: none; }
  .language-switcher select { min-height: 35px; padding: 6px 22px 6px 7px; font-size: 10px; }
  .practice-layout { width: min(720px, 100%); padding: 10px; grid-template-columns: 1fr; row-gap: 10px; } .board-panel { position: static; } .editor-grid { grid-template-columns: 1fr; }
  .score-panel, .score-card { display: contents; }
  .current-score-block, .settings-block { padding: 12px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(32,36,33,.98), rgba(24,27,25,.98)); border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
  .current-score-block { grid-column: 1; grid-row: 1; }
  .throws-card { grid-column: 1; grid-row: 2; }
  .board-panel { grid-column: 1; grid-row: 3; }
  .settings-block { grid-column: 1; grid-row: 4; }
  .arrange-card { grid-column: 1; grid-row: 5; }
  .history-card { grid-column: 1; grid-row: 6; }
  .score-value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .mobile-round-start { min-width: 86px; margin-bottom: 7px; padding: 8px 10px; display: grid; gap: 2px; border: 1px solid #4b534d; border-radius: 11px; background: #151816; text-align: right; }
  .mobile-round-start span { color: var(--muted); font-size: 9px; font-weight: 800; }
  .mobile-round-start strong { color: var(--cream); font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1; }
  .board-shell { width: min(calc(100% + 8px), 47dvh); margin: 3px auto 2px; } .board-number { font-size: 23px; }
  .score-number { margin-bottom: 0; font-size: 78px; }
  .throws-card { padding: 9px; border-radius: 14px; } .throws-card .card-title-row { display: none; }
  .throw-slots { gap: 6px; margin: 0; } .throw-slot { min-height: 58px; padding: 6px 8px; border-radius: 9px; } .throw-slot span, .throw-slot small { font-size: 9px; } .throw-slot strong { font-size: 18px; line-height: 1; }
  .arrange-card, .history-card { padding: 16px; }
  .board-actions { gap: 5px; }
  .board-actions button { min-height: 38px; padding: 7px 2px; font-size: clamp(10px, 1.7vw, 12px); }
}
@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; }
  .brand { max-width: calc(100% - 84px); }
  .topbar-controls { width: 100%; margin-left: 0; justify-content: space-between; }
  .view-tabs { flex: 1; }
  .view-tabs button { flex: 1; padding-inline: 5px; }
  .calculator-page { padding: 8px; }
  .calculator-card { border-radius: 15px; }
  .calculator-head { padding: 9px 13px; }
  .calculator-head strong { font-size: 23px; } .calculator-head .calculator-total strong { font-size: 31px; }
  .calculator-round-score { padding: 7px 14px 2px; } .calculator-round-score strong { font-size: 47px; }
  .calculator-throws { padding: 6px 8px 8px; gap: 5px; } .calculator-throws > div { min-height: 59px; padding: 6px; } .calculator-throws strong { font-size: 17px; }
  .manual-row { padding: 7px 8px; } .manual-row input { min-height: 42px; }
  .multiplier-row { padding: 7px 8px 5px; } .multiplier-row button { min-height: 43px; }
  .number-grid { padding: 0 8px 6px; gap: 5px; } .number-grid button { min-height: 46px; font-size: 20px; }
  .bull-row, .calculator-actions { padding: 0 8px 6px; gap: 5px; }
  .bull-row button { min-height: 40px; } .calculator-actions button { min-height: 37px; }
  .confirm-round { width: calc(100% - 16px); min-height: 46px; margin: 1px 8px 5px; }
  .score-setup { grid-template-columns: 1fr 82px; } .score-setup .primary-button { grid-column: 1 / -1; }
  .random-setup { grid-template-columns: 1fr auto 1fr; } .random-label, .random-button { grid-column: 1 / -1; } .random-button { width: 100%; }
  .rule-settings { grid-template-columns: 1fr; } .rule-settings > small { grid-column: auto; }
  .editor-page { padding: 24px 16px; } .editor-intro { align-items: stretch; flex-direction: column; } .editor-tools { justify-content: flex-start; }
  .editor-filter { grid-template-columns: 1fr 1fr; } .editor-filter .text-button { grid-column: 1 / -1; justify-self: start; }
  .editor-footer { align-items: flex-start; flex-direction: column; }
  .arrangement-table-wrap { overflow: visible; border: 0; background: transparent; }
  .arrangement-table, .arrangement-table tbody { display: block; }
  .arrangement-table thead { display: none; }
  .arrangement-table tr { margin-bottom: 14px; padding: 12px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  .arrangement-table td { padding: 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; border: 0; }
  .arrangement-table td::before { content: attr(data-label); color: var(--gold); font-size: 10px; font-weight: 900; }
}
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.flex{display:flex}.hidden{display:none}.table{display:table}.resize{resize:both}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--background:#111312;--foreground:#f4efe5}*{box-sizing:border-box}html{background:var(--background)}body{background:var(--background);color:var(--foreground);margin:0;font-family:Yu Gothic UI,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
