/* Royal Table — warm paper, ink, and restrained brass accents. */
.nickname-dialog::backdrop { background: #171c16b3; backdrop-filter: blur(3px); }
.nickname-dialog { color: #252824; }
.nickname-dialog form > label { display: block; margin-top: 22px; }
.nickname-dialog form > p { line-height: 1.7; }
:root {
  color-scheme: light;
  --paper: #f3f1ec;
  --surface: #fffefa;
  --ink: #252824;
  --muted: #696c63;
  --gold: #805e36;
  --line: #deded5;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-feature-settings: "ss01";
}
body { min-width: 320px; background: var(--paper); line-height: 1.5; }
::selection { background: #ddd2bd; color: #252824; }
button, a, input, select { touch-action: manipulation; }
button { transition: background .15s, border-color .15s, color .15s; }
button:active:not(:disabled) { transform: none; }
button:hover:not(:disabled) { background: #e9e7df; }
button:disabled { opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #9b7547; outline-offset: 3px;
}
.portal-header {
  background: #232722; color: #f5f2e9; border-bottom: 0;
  padding: 22px max(28px, calc((100vw - 1320px) / 2)); gap: 24px;
}
.portal-brand { color: #f5f2e9; font-size: 23px; letter-spacing: 1.5px; font-weight: 400; }
.portal-brand small { color: #b7baaf; font-size: 9px; letter-spacing: 2.6px; margin: 6px 0 0 25px; }
.portal-header nav { gap: 4px; }
.portal-header nav button { color: #b7baaf; padding: 10px 15px; font-size: 14px; border-radius: 4px; }
.portal-header nav button:hover:not(:disabled) { background: #333831; color: #fff; }
.portal-header button.selected { background: #3b4138; color: #fffaf0; }
.identity { font-size: 13px; gap: 14px; color: #e0e1d9; }
.identity .outline { color: #e0e1d9; border-color: #565c52; background: transparent; font-size: 12px; min-height: 36px; padding: 7px 12px; }
.identity .outline:hover:not(:disabled) { background: #3b4138; }
.portal-content { max-width: 1280px; margin: 42px auto 56px; padding: 0 28px; }
.app-shell { max-width: 1380px; padding: 0 36px; }
h1 { color: var(--ink); font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.3; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 1.8px; font-weight: 650; margin-bottom: 10px; }
.subtitle { font-size: 15px; margin-top: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: none; }
.panel h2 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; margin-bottom: 20px; }
.portal-content > .panel { margin-top: 22px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.outline, .primary, .file-button { border-radius: 5px; font-size: 14px; min-height: 42px; padding: 10px 17px; line-height: 1.4; }
.outline { border: 1px solid #c9ccc1; color: #383d33; background: transparent; }
.outline:hover:not(:disabled) { border-color: #969d8e; background: #f0f1eb; }
.primary { background: #303b2c; color: #fffef8; font-weight: 600; box-shadow: none; border: 1px solid transparent; }
.primary:hover:not(:disabled), a.primary:hover { background: #45543e; }
.small { font-size: 13px; padding: 8px 13px; min-height: 36px; }
label { color: #555c50; font-size: 13px; font-weight: 500; }
input, select {
  color: #252824; background: #fffefa; border: 1px solid #c9ccc1;
  font-size: 15px; border-radius: 5px; padding: 11px 12px; min-height: 44px;
  font-variant-numeric: tabular-nums;
}
input::placeholder { color: #7b7f74; }
input:disabled, select:disabled { background: #efefe8; opacity: .65; }
input[type="checkbox"] { accent-color: #45543e; min-height: 18px; }
.toolbar { align-items: flex-end; gap: 14px; margin: 20px 0; }
.toolbar > label { flex: 1 1 160px; min-width: 0; }
.toolbar label input, .toolbar label select { display: block; width: 100%; margin-top: 8px; }
.toolbar > p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.login-panel { max-width: 680px; margin: clamp(48px, 10vh, 120px) auto; padding: 54px; border-top: 3px solid #7f6846; }
.login-panel h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.45; max-width: 480px; letter-spacing: -1.2px; }
.login-panel > p { font-size: 15px; line-height: 1.9; max-width: 470px; }
.login-panel > .eyebrow { color: var(--gold); font-size: 11px; margin-bottom: 24px; }
.login-link { margin-top: 24px; min-width: 210px; text-align: center; padding: 14px 24px; }
.wallet-hero { background: #292f28; color: #faf8f0; border-color: #292f28; padding: 32px 36px; gap: 10px; }
.wallet-hero h2 { color: #faf8f0; }
.wallet-hero > strong { color: #faf8f0; font-size: clamp(44px, 6vw, 66px); font-weight: 500; letter-spacing: -2px; line-height: 1.2; margin: 5px 0; }
.wallet-hero small { font-size: 20px; color: #c7cbbb; font-weight: 400; margin-left: 6px; }
.wallet-hero > span, .wallet-hero .hint, .wallet-hero > p { color: #c7cbbb; font-size: 13px; }
.meeting-list article, .admin-list article { gap: 20px; padding: 22px 0; }
.meeting-list article:last-child, .admin-list article:last-child { padding-bottom: 4px; }
.meeting-list article > div:first-child, .admin-list article > div:first-child { flex: 1; min-width: 0; }
.meeting-list h3, .admin-list h3 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; margin-bottom: 6px; overflow-wrap: anywhere; }
.meeting-list p, .admin-list p { font-size: 14px; }
.meeting-list article > button, .meeting-admin-actions > button { white-space: nowrap; flex-shrink: 0; }
.admin-tabs { border-bottom: 1px solid var(--line); gap: 16px; margin: 26px 0; }
.admin-tabs button { padding: 12px 3px; border-bottom: 2px solid transparent; border-radius: 0; font-size: 14px; }
.admin-tabs button.selected { color: #2e3c28; background: transparent; border-bottom-color: #45543e; font-weight: 650; }
.admin-settings { gap: 22px; align-items: start; }
.admin-settings p { font-size: 14px; color: var(--muted); }
.admin-settings > .panel { min-width: 0; }
.action-group button { font-size: 13px; }
.balance-grid { gap: 16px; }
.balance-grid strong, .member-balance { color: #35472d; font-size: 32px; font-weight: 550; letter-spacing: -.8px; }
.balance-grid small { font-size: 16px; }
.table-scroll { border: 1px solid var(--line); border-radius: 5px; }
th { background: #f1f2eb; color: #606859; font-size: 12px; font-weight: 600; padding: 13px 14px; border-bottom-color: var(--line); }
td { padding: 15px 14px; border-bottom: 1px solid #e9eae3; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7f7f1; }
.points-table th { font-size: 12px; }
.points-table td { font-size: 14px; }
.positive { color: #32623c; }
.negative { color: #935c38; }
.pagination { font-size: 13px; }
.empty { font-size: 14px; padding: 28px 12px; }
.notice { color: #3e5037; background: #edf2e8; border-color: #cbd6c3; font-size: 14px; border-radius: 5px; }
.notice.warning { color: #795026; background: #faf0df; border-color: #e5d0ac; }
.field-error { color: #a33d2d; font-size: 13px; }
.modal-backdrop { background: #171c16b3; backdrop-filter: blur(3px); }
.dialog { background: var(--surface); box-shadow: 0 20px 80px #10150f33; }
.dialog h2 { font-size: 22px; }
.dialog p { font-size: 14px; }
.timer-host .header { padding: 16px 0; }
.header nav { gap: 24px; }
.header nav button { font-size: 15px; }
.header nav .nav-active { color: #35472d; border-bottom-color: #45543e; }
.timer-backup { flex-wrap: wrap; }
.setup, .tournament { margin-top: 32px; }
.setup-grid { gap: 22px; }
.section-heading { gap: 16px; align-items: flex-start; }
.section-heading h2 { margin-bottom: 18px; }
.level-settings { padding: 18px; background: #f4f4ee; border: 1px solid var(--line); border-radius: 5px; }
.row-level { font-size: 12px; letter-spacing: .4px; font-weight: 600; color: #565f4d; }
.break-badge { background: #eeeadf; color: #766344; font-size: 12px; white-space: nowrap; }
.break-description { color: var(--muted); font-size: 13px; }
.row-actions { gap: 6px; }
.row-actions button { width: 32px; height: 34px; color: #5b6453; background: #f5f5ef; }
.count { color: #59674d; background: #e9eddf; font-size: 13px; }
.add-row { gap: 14px; }
.add-row button { font-size: 14px; }
.quick-blind-toggle { font-size: 13px; margin-top: 16px; }
.quick-blind-fields { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #f4f4ee; }
.quick-blind-fields > label { min-width: 0; }
.setup-footnote { font-size: 12px; }
.status { background: #eaece3; color: #55614c; border-color: #d7ddcd; font-size: 12px; padding: 7px 12px; border-radius: 4px; }
.status i { background: #7c8870; }
.status.live i { background: #527b42; box-shadow: none; }
.clock-card {
  --gold: #d1b985; --muted: #b7bfad; --line: #4a5144;
  background: #22291f; border: 1px solid #343e2c; border-radius: 10px;
  padding: 34px 48px; color: #f7f5e9; box-shadow: none;
}
.card-corner { display: none; }
.level-tag { color: #d1b985; border: 0; border-bottom: 1px solid #626d56; border-radius: 0; padding: 6px 12px 10px; font-size: 12px; letter-spacing: 2px; }
.clock-caption { color: #b7bfad; font-size: 13px; margin-top: 22px; }
.timer-digits { color: #faf8ed; font-weight: 500; letter-spacing: -6px; text-shadow: none; }
.timer-note { color: #b7bfad; font-size: 13px; }
.time-track { background: #414a37; height: 2px; border-radius: 0; }
.time-track > div { background: #d1b985; }
.blinds { background: transparent; border: 0; border-top: 1px solid #4a5144; border-radius: 0; padding: 24px 8px 4px; gap: 40px; row-gap: 18px; }
.current-blind-label { font-size: 14px; color: #d1b985; font-weight: 500; }
.blinds div > span { color: #b7bfad; font-size: 12px; letter-spacing: 1.4px; }
.blinds strong { color: #faf8ed; font-weight: 550; font-size: clamp(48px, 6vw, 80px); margin-top: 6px; }
.blind-divider { color: #657259; }
.blinds .ante { border-color: #4a5144; }
.blinds .ante strong { color: #d1b985; }
.urgent .timer-digits { color: #f0b582; }
.break-label { color: #d1b985; }
.controls { gap: 12px; margin: 22px 0; }
.controls .play { min-width: 220px; padding: 15px 24px; font-size: 16px; }
.controls .outline { min-width: 110px; padding: 15px 18px; font-size: 14px; }
.next-blind-banner { background: #eeeee6; border: 1px solid #d9ddcf; border-radius: 6px; padding: 20px 24px; gap: 12px; }
.next-blind-title > span { color: #646e5a; font-size: 11px; letter-spacing: 1.7px; }
.next-blind-title h2 { color: #505b46; font-size: 15px; }
.next-blind-values { border: 0; padding: 0; gap: 12px 32px; }
.next-blind-values div > span { color: #646e5a; font-size: 11px; }
.next-blind-values strong { color: #36442c; font-size: clamp(28px, 3vw, 38px); font-weight: 550; }
.next-blind-values .ante strong { color: #70562e; }
.next-blind-values .ante { border-color: #cdd3c2; }
.next-blind-detail { color: #646e5a; font-size: 12px; }
.schedule-button, .next-level { border-radius: 5px; background: var(--surface); font-size: 14px; padding: 18px 22px; }
.schedule-button > span { font-size: 13px; }
.utility { gap: 20px; margin: 22px 0 30px; }
.utility button { font-size: 13px; }
.schedule > div { font-size: 14px; }
.current-row { background: #edf0e5; color: #445737; }
footer { color: #767d6d; font-size: 12px; padding: 24px 0; }
footer span:first-child { color: #666346; font-size: 13px; letter-spacing: 1px; }
footer span:last-child { font-size: 10px; letter-spacing: 1px; }
@media (max-width: 1000px) {
  .portal-header { gap: 18px; }
  .portal-header nav { order: 3; width: 100%; }
  .app-shell { padding: 0 24px; }
  .clock-card { padding: 30px; }
  .blinds { gap: 24px; }
  .admin-settings { grid-template-columns: 1fr; }
  .meeting-list article, .admin-list article { flex-wrap: wrap; }
  .meeting-list article > div:first-child, .admin-list article > div:first-child { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .portal-header { padding: 18px 16px 0; gap: 16px; }
  .portal-brand { font-size: 20px; }
  .identity { gap: 8px; font-size: 12px; }
  .identity .outline { padding: 7px 9px; }
  .portal-header nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; gap: 4px; }
  .portal-header nav button { flex-shrink: 0; font-size: 13px; padding: 10px 12px; }
  .portal-content { margin: 28px auto 40px; padding: 0 16px; }
  .app-shell { padding: 0 16px; }
  .panel { padding: 20px; }
  .panel h2 { font-size: 18px; }
  .login-panel { margin: 36px 16px; padding: 32px 24px; }
  .login-panel h1 { font-size: 28px; }
  .login-link { display: block; margin-right: 0; }
  .wallet-hero { padding: 26px; }
  .wallet-hero > strong { font-size: 48px; }
  .admin-tabs { gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
  .admin-tabs button { white-space: nowrap; padding: 12px 8px; font-size: 13px; }
  .meeting-admin-actions { width: 100%; }
  .meeting-admin-actions > button { flex: 1; }
  .action-group { justify-content: flex-start; }
  .toolbar > label { flex-basis: 100%; }
  .toolbar input, .toolbar select { font-size: 16px; }
  .toolbar > input, .toolbar > select { min-width: 0; flex-basis: 130px; }
  .level-settings { grid-template-columns: minmax(0, 1fr) !important; padding: 14px; }
  .quick-blind-settings { flex-basis: 100%; }
  .quick-blind-fields { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  input, select { font-size: 16px; }
  .timer-host .header { gap: 12px; }
  .timer-backup { gap: 6px; }
  .timer-backup .outline { font-size: 12px; padding: 8px 10px; }
  .event-heading { gap: 12px; margin-bottom: 20px; }
  .section-heading { gap: 4px; padding-bottom: 12px; }
  .section-heading h2 { margin-bottom: 6px; }
  .section-heading .hint { font-size: 12px; }
  .clock-card { padding: 24px 16px; }
  .timer-digits { font-size: clamp(90px, 25vw, 150px); letter-spacing: -4px; }
  .blinds { gap: 18px 12px; }
  .blinds strong { font-size: clamp(32px, 10vw, 52px); overflow-wrap: anywhere; }
  .blinds .ante { padding: 16px 0 0; }
  .blinds div > span { font-size: 11px; letter-spacing: .6px; }
  .controls { gap: 8px; }
  .controls .play { min-width: 120px; padding: 14px; font-size: 15px; }
  .controls .outline { min-width: 0; padding: 14px 10px; font-size: 13px; }
  .next-blind-banner { padding: 18px 14px; }
  .next-blind-values { gap: 14px 12px; }
  .next-blind-values strong { font-size: 30px; }
  .next-blind-values .ante { padding: 12px 0 0; }
  .utility { gap: 10px; }
  .utility button { font-size: 12px; }
  .dialog { padding: 24px; }
  .modal-backdrop { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .time-track > div { transition: none; }
}
