:root {
  --lightningcss-light: initial;
  --lightningcss-dark:  ;
  color-scheme: light;
  --safe-top: env(safe-area-inset-top,0px);
  --safe-bottom: env(safe-area-inset-bottom,0px);
  --safe-left: env(safe-area-inset-left,0px);
  --safe-right: env(safe-area-inset-right,0px);
  --bg: #eef1f0;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #9e781a0d, transparent 60%);
  --surface: #fff;
  --surface-2: #f5f8f7;
  --surface-3: #eef2f0;
  --border: #dde3e1;
  --border-strong: #c6d0cc;
  --text: #16211e;
  --text-muted: #57645f;
  --text-subtle: #626f69;
  --accent: #8b6715;
  --accent-hover: #75570f;
  --accent-contrast: #fff;
  --accent-weak: #9e781a1a;
  --accent-weak-border: #9e781a52;
  --danger: #bd3d2c;
  --access-banner-title: #a5341f;
  --danger-solid: #c2402f;
  --danger-hover: #a5341f;
  --danger-weak: #c2402f1a;
  --danger-border: #c2402f57;
  --warn: #8a5a12;
  --warn-weak: #a9711a21;
  --success: #127357;
  --success-solid: #147d5f;
  --success-weak: #147d5f21;
  --info: #2563a8;
  --info-weak: #2563a81f;
  --ring: #9e781a52;
  --shadow-sm: 0 1px 2px #10211c0f;
  --shadow-md: 0 8px 24px -10px #10211c29;
  --shadow-lg: 0 30px 70px -20px #10211c47;
  --overlay: #121a1770;
  --sidebar-bg: #121110;
  --sidebar-elevated: #1b1a18;
  --sidebar-text: #f0ede6;
  --sidebar-muted: #9a948a;
  --sidebar-hover: #ffffff0f;
  --sidebar-active-bg: #d9a13c29;
  --sidebar-active-text: #fff;
  --sidebar-active-bar: #d9a13c;
  --sidebar-border: #ffffff14;
  --dk-bg: #000;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #d9a13c12, transparent 55%);
  --dk-surface: #151412;
  --dk-surface-2: #1b1a17;
  --dk-surface-3: #23211d;
  --dk-border: #2e2c27;
  --dk-border-strong: #403d35;
  --dk-text: #f0ede6;
  --dk-text-muted: #a8a294;
  --dk-text-subtle: #8e897a;
  --dk-accent: #d9a13c;
  --dk-accent-hover: #e5b45b;
  --dk-accent-contrast: #1a1206;
  --dk-accent-weak: #d9a13c24;
  --dk-accent-weak-border: #d9a13c66;
  --dk-ring: #d9a13c6b;
  --dk-sidebar-bg: #0d0c0b;
  --dk-sidebar-elevated: #161513;
  --dk-sidebar-text: #f0ede6;
  --dk-sidebar-muted: #8f8a7e;
  --dk-sidebar-active-bg: #d9a13c29;
  --dk-sidebar-active-bar: #d9a13c;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --pill: 999px;
  --space: 4px;
  --sidebar-w: 244px;
  font-family: Inter,Noto Sans TC,ui-sans-serif,system-ui,-apple-system,PingFang TC,Segoe UI,sans-serif
}
:root[data-store-theme=gilded] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #f2c14e12, transparent 60%);
  --accent: #8e6509;
  --accent-hover: #7f5a08;
  --accent-weak: #9c6f0a1c;
  --accent-weak-border: #9c6f0a57;
  --ring: #9c6f0a52;
  --sidebar-bg: #191307;
  --sidebar-elevated: #241c0c;
  --sidebar-text: #f7f1e1;
  --sidebar-muted: #a3956f;
  --sidebar-active-bg: #f2c14e2e;
  --sidebar-active-bar: #f2c14e;
  --dk-bg: #0a0703;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #f2c14e17, transparent 55%);
  --dk-surface: #1e1509;
  --dk-surface-2: #261b0d;
  --dk-surface-3: #302312;
  --dk-border: #453317;
  --dk-border-strong: #5c451f;
  --dk-text: #f7f1e1;
  --dk-text-muted: #b3a480;
  --dk-text-subtle: #988c6b;
  --dk-accent: #f2c14e;
  --dk-accent-hover: #f7cf6b;
  --dk-accent-contrast: #241503;
  --dk-accent-weak: #f2c14e29;
  --dk-accent-weak-border: #f2c14e73;
  --dk-ring: #f2c14e73;
  --dk-sidebar-bg: #120d05;
  --dk-sidebar-elevated: #1c150a;
  --dk-sidebar-text: #f7f1e1;
  --dk-sidebar-muted: #9a8d6c;
  --dk-sidebar-active-bg: #f2c14e2e;
  --dk-sidebar-active-bar: #f2c14e
}
:root[data-store-theme=felt] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #12704e0f, transparent 60%);
  --accent: #12704e;
  --accent-hover: #0d5c40;
  --accent-weak: #12704e1a;
  --accent-weak-border: #12704e4d;
  --ring: #12704e52;
  --sidebar-bg: #0f2b1e;
  --sidebar-elevated: #173c2c;
  --sidebar-text: #eef5ef;
  --sidebar-muted: #8fae9e;
  --sidebar-active-bg: #d9a13c29;
  --sidebar-active-bar: #d9a13c;
  --dk-bg: #04120b;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #d9a13c12, transparent 55%);
  --dk-surface: #123626;
  --dk-surface-2: #16412e;
  --dk-surface-3: #1c4f38;
  --dk-border: #2a5c44;
  --dk-border-strong: #3a7256;
  --dk-text: #eef5ef;
  --dk-text-muted: #a3c2b1;
  --dk-text-subtle: #9bbcaa;
  --dk-accent: #d9a13c;
  --dk-accent-hover: #e5b45b;
  --dk-accent-contrast: #071c12;
  --dk-accent-weak: #d9a13c29;
  --dk-accent-weak-border: #d9a13c6b;
  --dk-ring: #d9a13c6b;
  --dk-sidebar-bg: #071710;
  --dk-sidebar-elevated: #0d241a;
  --dk-sidebar-text: #eef5ef;
  --dk-sidebar-muted: #7fa08f;
  --dk-sidebar-active-bg: #d9a13c29;
  --dk-sidebar-active-bar: #d9a13c
}
:root[data-store-theme=neon] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #22d3ee0f, transparent 60%);
  --accent: #0e7490;
  --accent-hover: #0b5e75;
  --accent-weak: #0e74901a;
  --accent-weak-border: #0e749052;
  --ring: #0e749052;
  --sidebar-bg: #0b1526;
  --sidebar-elevated: #12203a;
  --sidebar-text: #e6f1ff;
  --sidebar-muted: #7e95b5;
  --sidebar-active-bg: #22d3ee29;
  --sidebar-active-bar: #22d3ee;
  --dk-bg: #020610;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #22d3ee14, transparent 55%);
  --dk-surface: #0a1322;
  --dk-surface-2: #0e1a2e;
  --dk-surface-3: #14233c;
  --dk-border: #1e3350;
  --dk-border-strong: #2c4a70;
  --dk-text: #e6f1ff;
  --dk-text-muted: #8aa3c2;
  --dk-text-subtle: #738cad;
  --dk-accent: #22d3ee;
  --dk-accent-hover: #4ae0f8;
  --dk-accent-contrast: #032029;
  --dk-accent-weak: #22d3ee26;
  --dk-accent-weak-border: #22d3ee73;
  --dk-ring: #22d3ee80;
  --dk-sidebar-bg: #040b18;
  --dk-sidebar-elevated: #0a1729;
  --dk-sidebar-text: #e6f1ff;
  --dk-sidebar-muted: #647ea1;
  --dk-sidebar-active-bg: #22d3ee29;
  --dk-sidebar-active-bar: #22d3ee
}
:root[data-store-theme=emerald] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #0f8a6e0f, transparent 60%);
  --accent: #0e7c63;
  --accent-hover: #0b6f58;
  --accent-weak: #0f8a6e1a;
  --accent-weak-border: #0f8a6e4d;
  --ring: #0f8a6e52;
  --sidebar-bg: #16211e;
  --sidebar-elevated: #1f2d29;
  --sidebar-text: #eaf1ee;
  --sidebar-muted: #93a49e;
  --sidebar-active-bg: #1fc49829;
  --sidebar-active-bar: #2fd1a4;
  --dk-bg: #0c1311;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #1fc49814, transparent 55%);
  --dk-surface: #141d1a;
  --dk-surface-2: #19231f;
  --dk-surface-3: #202b27;
  --dk-border: #27332e;
  --dk-border-strong: #37453f;
  --dk-text: #e9f0ed;
  --dk-text-muted: #9db0a9;
  --dk-text-subtle: #81948d;
  --dk-accent: #1cba90;
  --dk-accent-hover: #29d2a4;
  --dk-accent-contrast: #04130e;
  --dk-accent-weak: #1fc49826;
  --dk-accent-weak-border: #1fc49861;
  --dk-ring: #1fc4986b;
  --dk-sidebar-bg: #0f1614;
  --dk-sidebar-elevated: #17211d;
  --dk-sidebar-text: #e9f0ed;
  --dk-sidebar-muted: #869691;
  --dk-sidebar-active-bg: #1fc49826;
  --dk-sidebar-active-bar: #2fd1a4
}
:root[data-store-theme=platinum] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #5a5e680f, transparent 60%);
  --accent: #4a5160;
  --accent-hover: #3a404c;
  --accent-weak: #5a5e681a;
  --accent-weak-border: #5a5e6852;
  --ring: #5a5e6852;
  --sidebar-bg: #131316;
  --sidebar-elevated: #1c1c20;
  --sidebar-muted: #94949c;
  --sidebar-active-bg: #c9ccd424;
  --sidebar-active-bar: #c9ccd4;
  --dk-bg: #000;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #c9ccd40f, transparent 55%);
  --dk-surface: #141416;
  --dk-surface-2: #1a1a1d;
  --dk-surface-3: #222226;
  --dk-border: #2d2d33;
  --dk-border-strong: #3f3f47;
  --dk-text: #f2f2f4;
  --dk-text-muted: #a6a6ad;
  --dk-text-subtle: #898990;
  --dk-accent: #c9ccd4;
  --dk-accent-hover: #dcdfe6;
  --dk-accent-contrast: #101013;
  --dk-accent-weak: #c9ccd421;
  --dk-accent-weak-border: #c9ccd45c;
  --dk-ring: #c9ccd466;
  --dk-sidebar-bg: #0e0e10;
  --dk-sidebar-elevated: #151518;
  --dk-sidebar-text: #f2f2f4;
  --dk-sidebar-muted: #8b8b92;
  --dk-sidebar-active-bg: #c9ccd424;
  --dk-sidebar-active-bar: #c9ccd4
}
:root[data-store-theme=sapphire] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #2563a80f, transparent 60%);
  --accent: #2563a8;
  --accent-hover: #1d5390;
  --accent-weak: #2563a81a;
  --accent-weak-border: #2563a84d;
  --ring: #2563a852;
  --sidebar-bg: #10141c;
  --sidebar-elevated: #182031;
  --sidebar-muted: #8f9aab;
  --sidebar-active-bg: #4f8fe029;
  --sidebar-active-bar: #4f8fe0;
  --dk-bg: #020308;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #4f8fe014, transparent 55%);
  --dk-surface: #12151c;
  --dk-surface-2: #171b23;
  --dk-surface-3: #1f242e;
  --dk-border: #2a303c;
  --dk-border-strong: #3a4150;
  --dk-text: #e9edf3;
  --dk-text-muted: #9aa5b5;
  --dk-text-subtle: #818c9d;
  --dk-accent: #4f8fe0;
  --dk-accent-hover: #6aa4ec;
  --dk-accent-contrast: #061020;
  --dk-accent-weak: #4f8fe026;
  --dk-accent-weak-border: #4f8fe066;
  --dk-ring: #4f8fe06b;
  --dk-sidebar-bg: #0b0e14;
  --dk-sidebar-elevated: #131824;
  --dk-sidebar-text: #e9edf3;
  --dk-sidebar-muted: #8391a4;
  --dk-sidebar-active-bg: #4f8fe029;
  --dk-sidebar-active-bar: #4f8fe0
}
:root[data-store-theme=ruby] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #a832480f, transparent 60%);
  --accent: #a83248;
  --accent-hover: #8f2a3e;
  --accent-weak: #a832481a;
  --accent-weak-border: #a832484d;
  --ring: #a8324852;
  --sidebar-bg: #1a1114;
  --sidebar-elevated: #241a1e;
  --sidebar-muted: #a5949a;
  --sidebar-active-bg: #d34e6a29;
  --sidebar-active-bar: #d34e6a;
  --dk-bg: #060203;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #d34e6a14, transparent 55%);
  --dk-surface: #191114;
  --dk-surface-2: #20161a;
  --dk-surface-3: #291d21;
  --dk-border: #362a2e;
  --dk-border-strong: #48383d;
  --dk-text: #f2eaec;
  --dk-text-muted: #ab9aa0;
  --dk-text-subtle: #94848a;
  --dk-accent: #d34e6a;
  --dk-accent-hover: #e0637d;
  --dk-accent-contrast: #1c060c;
  --dk-accent-weak: #d34e6a26;
  --dk-accent-weak-border: #d34e6a66;
  --dk-ring: #d34e6a6b;
  --dk-sidebar-bg: #120b0e;
  --dk-sidebar-elevated: #1a1216;
  --dk-sidebar-text: #f2eaec;
  --dk-sidebar-muted: #9c8990;
  --dk-sidebar-active-bg: #d34e6a29;
  --dk-sidebar-active-bar: #d34e6a
}
:root[data-store-theme=amethyst] {
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #6d46b30f, transparent 60%);
  --accent: #6d46b3;
  --accent-hover: #5d3b9b;
  --accent-weak: #6d46b31a;
  --accent-weak-border: #6d46b34d;
  --ring: #6d46b352;
  --sidebar-bg: #151020;
  --sidebar-elevated: #1e1830;
  --sidebar-muted: #9c93ab;
  --sidebar-active-bg: #9b6fe029;
  --sidebar-active-bar: #9b6fe0;
  --dk-bg: #040207;
  --dk-bg-grad: radial-gradient(1200px 600px at 100% -10%, #9b6fe014, transparent 55%);
  --dk-surface: #16121c;
  --dk-surface-2: #1c1723;
  --dk-surface-3: #251e2e;
  --dk-border: #322a3c;
  --dk-border-strong: #443a50;
  --dk-text: #eee9f3;
  --dk-text-muted: #a49bb2;
  --dk-text-subtle: #8e859e;
  --dk-accent: #9b6fe0;
  --dk-accent-hover: #ad85ea;
  --dk-accent-contrast: #150a24;
  --dk-accent-weak: #9b6fe029;
  --dk-accent-weak-border: #9b6fe066;
  --dk-ring: #9b6fe06b;
  --dk-sidebar-bg: #100b16;
  --dk-sidebar-elevated: #181221;
  --dk-sidebar-text: #eee9f3;
  --dk-sidebar-muted: #948aa4;
  --dk-sidebar-active-bg: #9b6fe029;
  --dk-sidebar-active-bar: #9b6fe0
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    --lightningcss-light:  ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --bg: var(--dk-bg);
    --bg-grad: var(--dk-bg-grad);
    --surface: var(--dk-surface);
    --surface-2: var(--dk-surface-2);
    --surface-3: var(--dk-surface-3);
    --border: var(--dk-border);
    --border-strong: var(--dk-border-strong);
    --text: var(--dk-text);
    --text-muted: var(--dk-text-muted);
    --text-subtle: var(--dk-text-subtle);
    --accent: var(--dk-accent);
    --accent-hover: var(--dk-accent-hover);
    --accent-contrast: var(--dk-accent-contrast);
    --accent-weak: var(--dk-accent-weak);
    --accent-weak-border: var(--dk-accent-weak-border);
    --danger: #e97a6b;
    --access-banner-title: #e97a6b;
    --danger-solid: #af5c50;
    --danger-hover: #f0907f;
    --danger-weak: #e97a6b29;
    --danger-border: #e97a6b66;
    --warn: #dda54a;
    --warn-weak: #dda54a29;
    --success: #35c99c;
    --success-solid: #158063;
    --success-weak: #35c99c29;
    --info: #6aa4dd;
    --info-weak: #6aa4dd29;
    --ring: var(--dk-ring);
    --shadow-sm: 0 1px 2px #00000073;
    --shadow-md: 0 10px 30px -12px #000000a6;
    --shadow-lg: 0 34px 80px -20px #000000c7;
    --overlay: #0000009e;
    --sidebar-bg: var(--dk-sidebar-bg);
    --sidebar-elevated: var(--dk-sidebar-elevated);
    --sidebar-text: var(--dk-sidebar-text);
    --sidebar-muted: var(--dk-sidebar-muted);
    --sidebar-hover: #ffffff0d;
    --sidebar-active-bg: var(--dk-sidebar-active-bg);
    --sidebar-active-text: #fff;
    --sidebar-active-bar: var(--dk-sidebar-active-bar);
    --sidebar-border: #ffffff0f
  }
}
:root[data-theme=dark] {
  --lightningcss-light:  ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: var(--dk-bg);
  --bg-grad: var(--dk-bg-grad);
  --surface: var(--dk-surface);
  --surface-2: var(--dk-surface-2);
  --surface-3: var(--dk-surface-3);
  --border: var(--dk-border);
  --border-strong: var(--dk-border-strong);
  --text: var(--dk-text);
  --text-muted: var(--dk-text-muted);
  --text-subtle: var(--dk-text-subtle);
  --accent: var(--dk-accent);
  --accent-hover: var(--dk-accent-hover);
  --accent-contrast: var(--dk-accent-contrast);
  --accent-weak: var(--dk-accent-weak);
  --accent-weak-border: var(--dk-accent-weak-border);
  --danger: #e97a6b;
  --access-banner-title: #e97a6b;
  --danger-hover: #f0907f;
  --danger-weak: #e97a6b29;
  --danger-border: #e97a6b66;
  --warn: #dda54a;
  --warn-weak: #dda54a29;
  --success: #35c99c;
  --success-solid: #158063;
  --success-weak: #35c99c29;
  --info: #6aa4dd;
  --info-weak: #6aa4dd29;
  --ring: var(--dk-ring);
  --shadow-sm: 0 1px 2px #00000073;
  --shadow-md: 0 10px 30px -12px #000000a6;
  --shadow-lg: 0 34px 80px -20px #000000c7;
  --overlay: #0000009e;
  --sidebar-bg: var(--dk-sidebar-bg);
  --sidebar-elevated: var(--dk-sidebar-elevated);
  --sidebar-text: var(--dk-sidebar-text);
  --sidebar-muted: var(--dk-sidebar-muted);
  --sidebar-hover: #ffffff0d;
  --sidebar-active-bg: var(--dk-sidebar-active-bg);
  --sidebar-active-text: #fff;
  --sidebar-active-bar: var(--dk-sidebar-active-bar);
  --sidebar-border: #ffffff0f
}
* {
  box-sizing: border-box
}
html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  background-color: var(--bg)
}
body {
  background: var(--bg-grad),var(--bg);
  min-height: 100vh;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  transition: background-color .25s,color .25s
}
body.modal-open {
  overflow: hidden
}
:root.theme-switching *,
:root.theme-switching :after,
:root.theme-switching :before {
  transition: none!important
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}
h1,
h2,
p {
  margin: 0
}
h1 {
  letter-spacing: -.01em;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25
}
h2 {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3
}
.meta {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 13.5px
}
.meta.danger {
  color: var(--danger)
}
.meta.error {
  color: var(--danger);
  font-weight: 600
}
.hidden {
  display: none!important
}
::selection {
  background: var(--accent-weak)
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--pill);
  background-clip: padding-box;
  border: 2px solid #0000
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
  background-clip: padding-box
}
.button,
.icon-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-weight: 550;
  transition: background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform 60ms;
  display: inline-flex
}
.button {
  padding: 0 15px
}
.button:active,
.icon-button:active {
  transform: translateY(1px)
}
.button:focus-visible,
.icon-button:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
  font-weight: 650
}
.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover)
}
.button.secondary:hover,
.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2)
}
.button.danger {
  background: var(--surface);
  border-color: var(--danger-border);
  color: var(--danger)
}
.button.danger:hover {
  background: var(--danger-weak);
  border-color: var(--danger)
}
.button:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none
}
.icon-button {
  width: 38px;
  color: var(--text-muted);
  padding: 0;
  font-size: 22px;
  line-height: 1
}
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--text);
  transition: border-color .15s,box-shadow .15s,background-color .15s
}
input {
  height: 38px;
  padding: 0 11px
}
input[type=checkbox],
input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
  padding: 0
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a74' d='M2.5 4.5 6 8l3.5-3.5z'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  height: 38px;
  padding: 0 32px 0 11px
}
textarea {
  resize: vertical;
  min-height: 92px;
  padding: 10px 11px;
  line-height: 1.5
}
input::placeholder,
textarea::placeholder {
  color: var(--text-subtle)
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger)
}
input.invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-weak)
}
.field-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
  display: none
}
.field-error.visible {
  display: block
}
.field-hint {
  color: var(--text-subtle);
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  display: block
}
.hint-tip {
  vertical-align: middle;
  margin-left: 6px;
  display: inline-flex;
  position: relative
}
.hint-tip-button {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  cursor: help;
  background: 0 0;
  border: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex
}
.hint-tip-button:hover,
.hint-tip-button[aria-expanded=true] {
  color: var(--accent)
}
.hint-tip-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px
}
.hint-tip-button svg {
  width: 15px;
  height: 15px
}
.hint-tip-bubble {
  z-index: 40;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  width: max-content;
  max-width: min(340px,70vw);
  box-shadow: var(--shadow-md);
  color: var(--text-muted);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  transition: opacity .12s;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%)
}
.hint-tip-button:focus-visible + .hint-tip-bubble,
.hint-tip-button[aria-expanded=true] + .hint-tip-bubble,
.hint-tip:hover .hint-tip-bubble {
  opacity: 1;
  visibility: visible
}
html[data-auth=pending] .shell {
  visibility: hidden
}
.shell {
  grid-template-columns: var(--sidebar-w) minmax(0,1fr);
  min-height: 100vh;
  display: grid
}
.sidebar {
  z-index: 40;
  background: var(--sidebar-bg);
  height: 100vh;
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  flex-direction: column;
  align-self: start;
  gap: 8px;
  padding: 22px 16px;
  display: flex;
  position: sticky;
  top: 0
}
.sidebar-head {
  align-items: center;
  gap: 10px;
  display: flex
}
.sidebar-head .brand {
  flex: 1;
  min-width: 0
}
.nav-toggle {
  display: none
}
.brand {
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 6px 6px;
  display: flex
}
.brand-mark {
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid
}
.brand-mark img {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: block
}
.brand-name {
  letter-spacing: -.01em;
  font-weight: 800;
  line-height: 1.1
}
.brand-subtitle {
  color: var(--sidebar-muted);
  margin-top: 3px;
  font-size: 12.5px
}
.store-clock {
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  font-variant-numeric: tabular-nums;
  border-radius: 10px;
  flex: none;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 10px;
  padding: 7px 10px;
  display: flex
}
.store-clock-date {
  color: var(--sidebar-muted);
  white-space: nowrap;
  font-size: 12.5px
}
.store-clock-time {
  letter-spacing: .01em;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700
}
.nav {
  scrollbar-width: thin;
  flex: 1;
  align-content: start;
  gap: 3px;
  min-height: 0;
  margin-top: 20px;
  display: grid;
  overflow-y: auto
}
.nav-item {
  border-radius: var(--radius-sm);
  text-align: left;
  height: 42px;
  color: var(--sidebar-muted);
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 550;
  transition: background-color .15s,color .15s;
  display: flex;
  position: relative
}
.nav-icon {
  opacity: .9;
  flex-shrink: 0;
  width: 18px;
  height: 18px
}
.nav-item.active .nav-icon {
  opacity: 1
}
.btn-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text)
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 650
}
.nav-item.active:before {
  content: "";
  background: var(--sidebar-active-bar);
  border-radius: 0 3px 3px 0;
  width: 3px;
  height: 22px;
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%)
}
.nav-item:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.theme-toggle {
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  background: var(--sidebar-elevated);
  height: 40px;
  color: var(--sidebar-text);
  cursor: pointer;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 0 12px;
  font-size: 13.5px;
  transition: background-color .15s,border-color .15s;
  display: flex
}
.theme-toggle:hover {
  background: var(--sidebar-hover);
  border-color: #ffffff29
}
.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.theme-toggle-icon {
  font-size: 15px;
  line-height: 1
}
.link-button {
  color: var(--accent);
  font: inherit;
  text-underline-offset: 2px;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  text-decoration: underline
}
.link-button:hover {
  color: var(--accent-hover)
}
.link-button:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 3px;
  outline: 0
}
.app-version {
  color: var(--sidebar-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: none;
  padding: 8px 12px 0;
  font-size: 11.5px;
  overflow: hidden
}
.auth-user {
  border-radius: var(--radius-sm);
  background: var(--sidebar-elevated);
  color: var(--sidebar-muted);
  flex: none;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 9px 10px;
  font-size: 12.5px;
  display: flex;
  overflow: hidden
}
.auth-user-avatar {
  background: var(--sidebar-active-bg);
  width: 28px;
  height: 28px;
  color: var(--sidebar-active-bar);
  background-position: 50%;
  background-size: cover;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: grid
}
.auth-user-avatar.has-photo {
  color: #0000
}
.auth-user-text {
  min-width: 0;
  display: grid
}
.auth-user-text > strong {
  color: var(--sidebar-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden
}
.auth-user-role {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  overflow: hidden
}
.auth-user-logout {
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  color: var(--sidebar-muted);
  cursor: pointer;
  background: 0 0;
  border: 0;
  flex: none;
  place-items: center;
  margin-left: auto;
  transition: background-color .15s,color .15s;
  display: grid
}
.auth-user-logout svg {
  width: 16px;
  height: 16px
}
.auth-user-logout:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text)
}
.auth-user-logout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px
}
.main {
  min-width: 0;
  padding: 28px clamp(24px,2.4vw,64px) 40px
}
.workspace {
  max-width: var(--ws-max,2000px);
  gap: 18px;
  display: grid
}
#tournamentForm > *,
.tournament-form-column > *,
.tournament-form-columns > *,
.tournament-structure-row > *,
.workspace > * {
  min-width: 0
}
.workspace.ws-read {
  --ws-max: 1080px
}
#storeProfileTab,
#tableDetailTab {
  --ws-max: 1360px
}
.toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex
}
@media (width>=701px) {
  .toolbar {
    z-index: 20;
    border-radius: 0 0 var(--radius) var(--radius);
    background: color-mix(in srgb,var(--bg) 82%,transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    margin: -10px -14px;
    padding: 10px 14px;
    position: sticky;
    top: 0
  }
}
.toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex
}
.toolbar-actions select {
  width: auto;
  min-width: 180px;
  max-width: 260px
}
.subtabs {
  box-shadow: inset 0 -1px 0 var(--border);
  gap: 2px;
  margin-bottom: 22px;
  display: flex;
  overflow: auto hidden
}
.subtab {
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 550;
  transition: color .15s,border-color .15s
}
.subtab:hover {
  color: var(--text)
}
.subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700
}
.subtab:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 6px 6px 0 0;
  outline: 0
}
.range-toggle {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  display: flex
}
.range-btn {
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 550
}
.range-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 700
}
.range-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.filterbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 14px;
  padding: 16px;
  display: flex
}
.filterbar > label:not(.check):not(.search) {
  flex: 200px;
  gap: 6px;
  min-width: 180px;
  max-width: 340px;
  display: grid
}
#couponForm,
#tournamentForm {
  grid-template-columns: repeat(auto-fill,minmax(208px,1fr));
  align-items: end;
  gap: 16px 14px;
  display: grid
}
#tournamentForm {
  grid-template-columns: 1fr;
  align-items: start
}
#couponForm {
  grid-template-columns: minmax(0,1fr);
  align-items: stretch;
  gap: 20px
}
.coupon-form-group {
  gap: 10px;
  min-width: 0;
  display: grid
}
.coupon-form-footer,
.coupon-form-group + .coupon-form-group {
  border-top: 1px solid var(--border);
  padding-top: 16px
}
.coupon-form-group-head {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  display: flex
}
.coupon-form-group-head h3 {
  color: var(--text);
  margin: 0;
  font-size: 13.5px;
  font-weight: 650
}
.coupon-form-group-head p {
  color: var(--text-subtle);
  margin: 0;
  font-size: 12px;
  line-height: 1.4
}
.coupon-form-fields {
  grid-template-columns: repeat(auto-fill,minmax(208px,1fr));
  align-items: end;
  gap: 12px 14px;
  display: grid
}
.coupon-form-fields > label {
  gap: 6px;
  min-width: 0;
  max-width: none;
  display: grid
}
.coupon-form-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  display: flex
}
.coupon-form-footer .meta {
  margin: 0
}
.tournament-create-view,
.tournament-list-view {
  grid-template-columns: minmax(0,1fr);
  gap: 16px;
  display: grid
}
.tournament-structure-row {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  display: grid
}
@media (width>=1500px) {
  .tournament-structure-row {
    grid-template-columns: minmax(0,1.45fr) minmax(0,1fr)
  }
}
.tournament-structure-row > * {
  min-width: 0
}
#tournamentForm.template-mode .tournament-structure-row {
  grid-template-columns: minmax(0,1fr)
}
.tournament-form-columns {
  grid-template-columns: repeat(auto-fit,minmax(min(300px,100%),1fr));
  align-items: start;
  gap: 14px;
  display: grid
}
.tournament-form-column {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  display: grid
}
.tournament-form-column h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  font-size: 15px
}
.card-hint {
  color: var(--text-subtle);
  margin: -4px 0 2px;
  font-size: 12px;
  line-height: 1.65
}
.tournament-form-column > label {
  gap: 6px;
  min-width: 0;
  display: grid
}
.tournament-form-column > .check {
  margin-top: 4px;
  display: flex
}
.tournament-late-reg-input {
  color: var(--text-muted);
  white-space: nowrap;
  grid-template-columns: auto minmax(72px,1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid
}
.tournament-late-reg-input input {
  min-width: 0
}
#tournamentForm > label {
  gap: 6px;
  min-width: 0;
  max-width: none;
  display: grid
}
#tournamentForm > .prize-structure-picker,
#tournamentForm > .tournament-create-actions,
#tournamentForm > .tournament-form-columns,
#tournamentForm > .tournament-structure-row,
#tournamentForm > .tournament-template-bar,
#tournamentForm > .tournament-template-panel {
  grid-column: 1/-1
}
.tournament-create-actions {
  z-index: 5;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb,var(--surface) 92%,transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 14px;
  margin: 0 -16px -16px;
  padding: 12px 16px;
  display: flex;
  position: sticky;
  bottom: 0
}
.tournament-create-actions .meta {
  margin: 0
}
@media (width<=767px) {
  .tournament-create-actions .meta {
    display: none
  }
  .tournament-create-actions .tournament-create-submit {
    flex: 1
  }
}
.tournament-format-panel {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  flex: 0 0 100%;
  padding: 16px
}
.tournament-format-heading {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
  display: flex
}
.tournament-format-heading h2 {
  margin: 0;
  font-size: 15px
}
.tournament-format-choices {
  flex-wrap: wrap;
  gap: 10px;
  display: flex
}
.tournament-format-choice {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  flex: 220px;
  gap: 2px;
  padding: 10px 14px;
  display: flex
}
.tournament-format-choice.active {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak)
}
.tournament-format-choice input {
  opacity: 0;
  pointer-events: none;
  position: absolute
}
.tournament-format-choice:focus-within {
  outline: 2px solid var(--accent-weak-border);
  outline-offset: 2px
}
.tournament-format-name {
  font-size: 14px;
  font-weight: 700
}
.tournament-format-hint {
  color: var(--text-muted);
  font-size: 12px
}
.format-tag {
  border-radius: var(--pill);
  background: var(--surface-3);
  height: 20px;
  color: var(--text-muted);
  white-space: nowrap;
  vertical-align: middle;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex
}
.format-tag.is-Championship {
  background: var(--accent-weak);
  color: var(--accent)
}
.format-filter {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  display: flex
}
.format-filter-btn {
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 550
}
.format-radio {
  opacity: 0;
  pointer-events: none;
  position: absolute
}
.format-filter-btn:has(.format-radio) {
  cursor: pointer
}
.format-filter:focus-within .format-filter-btn:has(.format-radio:focus-visible) {
  outline: 2px solid var(--accent-weak-border);
  outline-offset: 1px
}
.format-filter-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 700
}
.format-group-row th {
  background: var(--surface-2);
  color: var(--text-muted);
  text-align: left;
  padding: 10px 12px 6px;
  font-size: 12.5px;
  font-weight: 700
}
.tournament-template-panel {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  border-radius: 12px;
  flex: 0 0 100%;
  padding: 16px
}
.tournament-template-actions,
.tournament-template-heading {
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  display: flex
}
.tournament-template-actions {
  flex: 0 auto;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%
}
.tournament-template-heading > div:first-child {
  min-width: 0
}
.tournament-template-heading {
  justify-content: space-between;
  align-items: center
}
.tournament-template-heading h2 {
  font-size: 17px
}
.tournament-template-bar {
  justify-content: flex-start
}
.tournament-template-bar-name {
  flex: 0 400px;
  align-items: center;
  gap: 8px;
  min-width: min(220px,100%);
  max-width: 100%;
  display: flex
}
.tournament-template-bar-name > span {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12.5px
}
.tournament-template-bar-hint,
.tournament-template-bar-name input {
  flex: auto;
  min-width: 0
}
.tournament-template-bar-hint.is-dirty {
  color: var(--warn);
  font-weight: 650
}
.tournament-template-bar-buttons {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex
}
@media (width<=767px) {
  .tournament-template-bar-buttons,
  .tournament-template-bar-name {
    flex: 100%;
    margin-left: 0
  }
  .tournament-template-bar-buttons .button {
    flex: auto
  }
  .tournament-template-bar .tournament-template-bar-hint.is-dirty {
    flex: 100%;
    display: block
  }
}
.tournament-template-actions select {
  flex: 0 auto;
  width: 260px;
  min-width: 160px;
  max-width: 100%
}
.modal-panel.prize-rule-panel {
  flex-direction: column;
  width: min(1880px,100%);
  height: calc(100vh - 48px);
  max-height: none;
  padding: 0;
  display: flex;
  overflow: hidden
}
.modal-panel .detail-heading.prize-head {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 14px 20px
}
.prize-head h2 {
  margin: 0;
  font-size: 20px
}
.payout-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex
}
.payout-valid-badge {
  border: 1px solid var(--success);
  background: var(--success-weak);
  color: var(--success);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 650;
  display: inline-flex
}
.payout-valid-badge:before {
  content: "✓";
  border: 1px solid;
  border-radius: 50%;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 1;
  display: inline-grid
}
.payout-valid-badge.is-bad {
  border-color: var(--danger);
  background: var(--danger-weak);
  color: var(--danger)
}
.payout-valid-badge.is-bad:before {
  content: "!"
}
.icon-group {
  display: inline-flex
}
.icon-group .icon-button {
  border-radius: 0
}
.icon-group .icon-button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm)
}
.icon-group .icon-button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: -1px
}
.icon-group .icon-button:focus-visible,
.icon-group .icon-button:hover {
  z-index: 1;
  position: relative
}
.prize-head .icon-button svg {
  width: 17px;
  height: 17px
}
.prize-rule-footer .button svg {
  width: 16px;
  height: 16px
}
.payout-layout {
  flex: auto;
  grid-template-columns: 292px minmax(0,1fr);
  min-height: 0;
  display: grid
}
.payout-layout > * {
  min-width: 0
}
.payout-side {
  border-right: 1px solid var(--border);
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 18px 16px 20px;
  display: grid;
  overflow: auto
}
.payout-main {
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px 20px 18px;
  display: flex;
  overflow: hidden
}
.payout-main > * {
  flex: none
}
.payout-main > .payout-matrix-wrap {
  flex: auto;
  min-height: 160px
}
.pf-block {
  gap: 6px;
  min-width: 0;
  display: grid
}
.pf-block > .pf-label {
  color: var(--text-muted);
  font-size: 12.5px
}
.pf-block textarea {
  min-height: 78px
}
.req-mark {
  color: var(--danger)
}
.pf-heading {
  color: var(--text-subtle);
  margin: 8px 0 -4px;
  font-size: 12.5px;
  font-weight: 600
}
.pf-pair {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  display: grid
}
.pf-field {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 38px;
  padding-right: 9px;
  transition: border-color .15s,box-shadow .15s;
  display: flex
}
.pf-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring)
}
.pf-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: 0 0;
  border: 0;
  flex: auto;
  padding: 0 4px 0 10px;
  font-weight: 650
}
.pf-field input:focus {
  box-shadow: none
}
.prize-rule-panel input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.prize-rule-panel input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.prize-rule-panel input[type=number] {
  appearance: textfield
}
.pf-field i {
  color: var(--text-subtle);
  font-size: 12px;
  font-style: normal
}
.pf-clear {
  color: var(--text-subtle);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  flex: none;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1
}
.pf-clear:hover {
  color: var(--text)
}
.pf-count {
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  background: var(--success-weak);
  color: var(--success);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 650;
  display: flex
}
.pf-count strong {
  font-variant-numeric: tabular-nums
}
.pf-count.is-warn {
  border-color: var(--warn);
  background: var(--warn-weak);
  color: var(--warn)
}
.pf-warn {
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-weak);
  color: var(--warn);
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6
}
.pf-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  transition: border-color .15s,box-shadow .15s;
  display: flex
}
.pf-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent)
}
.pf-card-bonus {
  border-left-color: var(--info)
}
.pf-card.is-off {
  cursor: default
}
.pf-card.is-off .pf-card-name {
  color: var(--text-muted)
}
.pf-card-name {
  min-width: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: inherit;
  background: 0 0;
  border: 0;
  flex: auto;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700
}
.pf-card-name:disabled {
  cursor: default
}
.pf-field-pct {
  flex: none;
  width: 98px;
  height: 34px
}
.pf-card-sub {
  width: 100%;
  color: var(--text-subtle);
  cursor: default;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex
}
.pf-card-sub input {
  text-align: center;
  width: 56px;
  height: 30px;
  padding-inline: 4px
}
.pf-hint {
  margin: 0
}
.pf-tournament {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 4px;
  padding: 10px 12px
}
.pf-tournament strong {
  font-size: 15px
}
.pf-tournament small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5
}
.payout-batchbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.payout-batchbar-label {
  color: var(--text-subtle);
  font-size: 12px
}
.payout-batchbar .button.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px
}
.payout-batchbar .button.is-open {
  border-color: var(--accent);
  color: var(--accent)
}
.payout-batchbar-spacer {
  flex: 12px
}
.payout-custom-fill {
  flex: 260px;
  align-items: center;
  gap: 6px;
  min-width: 200px;
  max-width: 440px;
  display: inline-flex
}
.payout-custom-fill input {
  flex: auto;
  min-width: 0;
  height: 30px
}
.payout-split-at {
  color: var(--text-subtle);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: inline-flex
}
.payout-split-at input {
  text-align: right;
  width: 76px;
  height: 30px
}
.payout-matrix-busy {
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding: 24px 0;
  font-size: 13px
}
.payout-matrix-pager {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex
}
.payout-pager-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: inline-flex
}
.payout-pager-label {
  color: var(--text-subtle);
  font-size: 12px
}
.payout-pager-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12.5px
}
.payout-matrix-wrap {
  z-index: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 160px;
  position: relative;
  overflow: auto
}
.payout-matrix {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-variant-numeric: tabular-nums;
  width: max-content;
  min-width: 100%
}
.payout-idle-note {
  max-width: 34em;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto;
  padding: 32px 16px;
  font-size: 13px;
  line-height: 1.7
}
.payout-matrix tbody tr {
  cursor: default
}
.payout-matrix td,
.payout-matrix th {
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
  height: auto;
  padding: 6px 10px;
  line-height: 20px
}
.payout-matrix-rank {
  z-index: 2;
  background: var(--surface-2);
  min-width: 118px;
  color: var(--text-muted);
  text-align: left;
  font-size: 12.5px;
  font-weight: 650;
  position: sticky;
  left: 0
}
.payout-matrix thead th {
  z-index: 3;
  background: var(--surface-2);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  position: sticky;
  top: 0
}
.payout-matrix thead tr:nth-child(2) th {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  top: 33px
}
.payout-matrix thead .payout-matrix-rank {
  z-index: 4
}
.payout-matrix-col {
  min-width: 96px
}
.payout-matrix .is-active {
  background: var(--accent-weak)
}
.payout-matrix thead .is-active {
  background: linear-gradient(var(--accent-weak),var(--accent-weak)),var(--surface-2)
}
.payout-matrix-merge {
  height: 20px;
  color: var(--text-subtle);
  vertical-align: top;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 4px;
  margin-left: 4px;
  padding: 0 3px;
  font-size: 13px;
  line-height: 20px
}
.payout-matrix-merge:hover {
  color: var(--danger)
}
.payout-matrix-places {
  text-align: center;
  background: 0 0;
  border-color: #0000;
  width: 52px;
  height: 28px;
  padding: 0 4px;
  font-weight: 700
}
.payout-matrix-places:hover {
  border-color: var(--border-strong);
  background: var(--surface)
}
.payout-matrix-places:focus {
  border-color: var(--accent);
  background: var(--surface)
}
.payout-matrix-cell {
  padding: 5px 8px
}
.payout-matrix-cell.is-empty {
  color: var(--text-subtle)
}
.pf-cell {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
  transition: border-color .15s;
  display: inline-flex
}
.pf-cell:focus-within {
  border-color: var(--accent)
}
.pf-cell input {
  width: 58px;
  height: 30px;
  box-shadow: none;
  text-align: right;
  background: 0 0;
  border: 0;
  padding: 0 2px 0 6px;
  font-weight: 700
}
.pf-cell input:focus {
  box-shadow: none
}
.pf-cell i {
  color: var(--text-subtle);
  font-size: 11px;
  font-style: normal
}
.payout-matrix tfoot td,
.payout-matrix tfoot th {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 0;
  position: sticky;
  bottom: 0
}
.payout-matrix tfoot .payout-matrix-rank {
  z-index: 3
}
.pf-total {
  background: var(--success-weak);
  min-width: 54px;
  color: var(--success);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block
}
.pf-total.error {
  background: var(--danger-weak);
  color: var(--danger)
}
.payout-list .payout-list-money,
.payout-list .payout-list-pct {
  text-align: left
}
.payout-list tbody .payout-list-money {
  color: var(--text-muted);
  font-size: 12.5px
}
.payout-list-row.is-out {
  opacity: .38
}
.payout-footnote {
  margin: 0
}
.prize-rule-footer {
  border-top: 1px solid var(--border);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  display: flex
}
.prize-rule-note {
  min-width: 0;
  color: var(--text-muted);
  flex: auto;
  margin: 0;
  font-size: 12.5px
}
.prize-rule-footer .clock-actions {
  flex: none;
  padding-top: 0
}
@media (width<=1100px) {
  .modal-panel.prize-rule-panel {
    height: auto;
    max-height: calc(100vh - 48px);
    overflow: auto
  }
  .payout-layout {
    flex: none;
    grid-template-columns: minmax(0,1fr)
  }
  .payout-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow: visible
  }
  .payout-main {
    overflow: visible
  }
  .payout-main > .payout-matrix-wrap {
    flex: none;
    max-height: min(60vh,520px)
  }
  .prize-rule-footer {
    flex-wrap: wrap
  }
}
@media (width<=640px) {
  .modal-panel.prize-rule-panel {
    max-height: calc(100vh - 20px)
  }
  .modal-panel .detail-heading.prize-head {
    flex-wrap: wrap;
    padding: 12px 14px
  }
  .payout-head-actions {
    justify-content: flex-start;
    width: 100%
  }
  .payout-main,
  .payout-side {
    padding: 14px
  }
  .pf-pair {
    grid-template-columns: minmax(0,1fr)
  }
  .payout-batchbar-spacer {
    flex-basis: 100%
  }
  .prize-rule-footer {
    padding: 12px 14px
  }
  .prize-rule-footer .clock-actions {
    justify-content: flex-end;
    width: 100%
  }
}
.tournament-tv-panel {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  gap: 12px;
  padding: 12px 16px;
  display: grid
}
.tournament-tv-panel h2 {
  font-size: 15px;
  font-weight: 700
}
.tournament-tv-interval {
  align-items: center;
  gap: 8px;
  display: flex
}
.tournament-tv-interval input {
  width: 96px
}
.prize-structure-picker {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  display: flex
}
.prize-structure-picker h2 {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700
}
.prize-structure-picker select {
  flex: 0 auto;
  width: 280px;
  min-width: 160px;
  max-width: 100%
}
.prize-structure-summary {
  color: var(--text-muted);
  flex: 260px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6
}
.prize-structure-summary.is-loaded {
  color: var(--text);
  font-weight: 600
}
.fee-total-hint {
  background: var(--accent-weak);
  border: 1px solid var(--accent-weak-border);
  border-radius: 10px;
  margin: -2px 0 2px;
  padding: 8px 10px;
  font-size: 13px
}
.fee-total-hint .meta {
  margin-left: 6px;
  display: inline
}
.char-count {
  font-variant-numeric: tabular-nums;
  justify-self: end
}
.char-count.near-limit {
  color: var(--warn)
}
.detail-description {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.7
}
.search {
  gap: 6px;
  min-width: min(420px,100%);
  display: grid
}
.filterbar label > span,
.member-form span,
.search span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.check {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-height: 38px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  transition: border-color .15s,background-color .15s;
  display: inline-flex
}
.check:hover {
  border-color: var(--border-strong)
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent)
}
.content-grid {
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 18px;
  display: grid
}
.members-grid {
  grid-template-columns: minmax(0,1fr)
}
.imports-grid {
  grid-template-columns: minmax(0,1fr) 500px;
  min-height: 620px
}
.detail-panel,
.table-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  box-shadow: var(--shadow-sm)
}
.table-panel {
  overflow: auto hidden
}
.invoice-table {
  table-layout: auto;
  min-width: 1240px
}
.payout-rounding {
  margin-top: 14px
}
.invoice-feature-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 12px;
  transition: border-color .15s,background-color .15s;
  display: flex
}
.invoice-feature-toggle:hover {
  border-color: var(--border-strong)
}
.invoice-feature-toggle:has(input:checked) {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak)
}
.invoice-feature-toggle:has(input:checked) small {
  color: var(--text-muted)
}
.invoice-feature-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent)
}
.invoice-feature-toggle span {
  gap: 2px;
  display: grid
}
.invoice-feature-toggle strong {
  font-size: 13px
}
.invoice-feature-toggle small {
  color: var(--text-subtle);
  font-size: 11px
}
.invoice-issue-panel {
  width: min(640px,100%)
}
.invoice-issue-summary {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  display: grid
}
.invoice-issue-summary > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 4px;
  padding: 12px 14px;
  display: grid
}
.invoice-issue-summary span {
  color: var(--text-muted);
  font-size: 12px
}
.invoice-issue-summary strong {
  font-size: 15px
}
.invoice-provider-summary {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: -4px 0 12px;
  display: flex
}
.invoice-provider-panel {
  margin-bottom: 16px;
  padding: 18px 20px
}
.invoice-deferred-bar {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 10px 14px;
  display: flex
}
.invoice-deferred-bar .meta {
  flex: 320px;
  margin: 0
}
.invoice-fee-label {
  gap: 6px;
  max-width: 240px;
  display: grid
}
.invoice-ledger-items {
  gap: 8px;
  display: grid
}
.invoice-ledger-items ul {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex
}
.invoice-ledger-items li {
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 10px;
  display: inline-flex
}
.invoice-ledger-item-add {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.invoice-ledger-item-add input {
  flex: 160px;
  min-width: 0;
  max-width: 240px
}
.invoice-provider-panel > .field-error,
.invoice-provider-panel > .field-hint {
  margin: 0 0 12px
}
.member-form.invoice-provider-form {
  grid-template-columns: repeat(3,minmax(0,1fr))
}
.invoice-provider-form .check {
  align-items: center;
  gap: 8px;
  display: flex
}
.invoice-provider-form .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent)
}
.invoice-table td.invoice-status {
  white-space: normal
}
.invoice-table .invoice-error {
  max-width: 260px;
  color: var(--danger);
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden
}
@media (width<=760px) {
  .member-form.invoice-provider-form {
    grid-template-columns: minmax(0,1fr)
  }
}
table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 100%
}
#membersTab table {
  min-width: 960px
}
td,
th {
  border-bottom: 1px solid var(--border);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  overflow: hidden
}
th {
  z-index: 1;
  background: var(--surface-2);
  height: 42px;
  color: var(--text-muted);
  letter-spacing: .01em;
  font-size: 12.5px;
  font-weight: 700;
  position: sticky;
  top: 0
}
tbody tr:last-child td {
  border-bottom: 0
}
#membersTab td:first-child,
#membersTab th:first-child {
  width: 11%
}
#membersTab td:nth-child(2),
#membersTab th:nth-child(2) {
  width: 7.5%
}
#membersTab td:nth-child(3),
#membersTab th:nth-child(3) {
  width: 10%
}
#membersTab td:nth-child(4),
#membersTab th:nth-child(4) {
  width: 8.5%
}
#membersTab td:nth-child(5),
#membersTab th:nth-child(5) {
  width: 10.5%
}
#membersTab td:nth-child(6),
#membersTab th:nth-child(6) {
  width: 6.5%
}
#membersTab td:nth-child(7),
#membersTab th:nth-child(7) {
  width: 8%
}
#membersTab td:nth-child(8),
#membersTab th:nth-child(8) {
  width: 9%
}
#membersTab td:nth-child(9),
#membersTab th:nth-child(9) {
  width: 8.5%
}
#membersTab td:nth-child(10),
#membersTab th:nth-child(10) {
  width: 12.5%
}
#membersTab td:nth-child(11),
#membersTab th:nth-child(11) {
  width: 8%
}
.ops-table.tournaments-table td:first-child,
.ops-table.tournaments-table th:first-child {
  width: 28%
}
.ops-table.tournaments-table td:nth-child(2),
.ops-table.tournaments-table th:nth-child(2) {
  width: 18%
}
.ops-table.tournaments-table td:nth-child(3),
.ops-table.tournaments-table th:nth-child(3) {
  width: 11%
}
.ops-table.tournaments-table td:nth-child(4),
.ops-table.tournaments-table th:nth-child(4) {
  width: 10%
}
.ops-table.tournaments-table td:nth-child(5),
.ops-table.tournaments-table th:nth-child(5) {
  width: 14%
}
.ops-table.tournaments-table td:nth-child(6),
.ops-table.tournaments-table th:nth-child(6) {
  width: 19%
}
.tournament-name-cell {
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  display: flex
}
.tournament-name-cell > .cell-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden
}
.tournament-name-cell > .format-tag {
  flex: none;
  margin-left: 0
}
.tournament-reserved {
  color: var(--text-muted);
  font-size: 12.5px
}
.tournament-when {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 12.5px;
  display: none
}
@media (width<=900px) {
  .tournament-reserved {
    display: none
  }
  .ops-table.tournaments-table td,
  .ops-table.tournaments-table th {
    padding-inline: 10px
  }
  .ops-table.tournaments-table td:first-child,
  .ops-table.tournaments-table th:first-child {
    width: 26%
  }
  .ops-table.tournaments-table td:nth-child(2),
  .ops-table.tournaments-table th:nth-child(2) {
    width: 21%
  }
  .ops-table.tournaments-table td:nth-child(3),
  .ops-table.tournaments-table th:nth-child(3) {
    width: 12%
  }
  .ops-table.tournaments-table td:nth-child(4),
  .ops-table.tournaments-table td:nth-child(5),
  .ops-table.tournaments-table th:nth-child(4),
  .ops-table.tournaments-table th:nth-child(5) {
    width: 11%
  }
  .ops-table.tournaments-table td:nth-child(6),
  .ops-table.tournaments-table th:nth-child(6) {
    width: 19%
  }
  .tournament-name-cell {
    flex-wrap: wrap;
    row-gap: 3px
  }
  .ops-table.tournaments-table td:first-child {
    padding-block: 8px
  }
}
@media (width<=700px) {
  .ops-table.tournaments-table {
    min-width: 0
  }
  .ops-table.tournaments-table td:nth-child(2),
  .ops-table.tournaments-table td:nth-child(3),
  .ops-table.tournaments-table td:nth-child(4),
  .ops-table.tournaments-table td:nth-child(5),
  .ops-table.tournaments-table th:nth-child(2),
  .ops-table.tournaments-table th:nth-child(3),
  .ops-table.tournaments-table th:nth-child(4),
  .ops-table.tournaments-table th:nth-child(5) {
    display: none
  }
  .ops-table.tournaments-table td:first-child,
  .ops-table.tournaments-table th:first-child {
    width: 60%
  }
  .ops-table.tournaments-table td:nth-child(6),
  .ops-table.tournaments-table th:nth-child(6) {
    width: 40%
  }
  .tournament-when {
    display: block
  }
}
.tournament-list-filter {
  justify-self: start
}
.tournament-list-controls .tournament-list-search {
  min-width: min(280px,100%)
}
.tournament-list-controls > .meta {
  flex-basis: 100%;
  margin: 0
}
td > .cell-title,
td > .meta {
  overflow: inherit;
  text-overflow: inherit
}
td > span.cell-title {
  vertical-align: bottom;
  max-width: 100%;
  display: inline-block
}
.tournaments-table .clickable-row {
  cursor: pointer
}
.tournaments-table .clickable-row:focus-visible,
.tournaments-table .clickable-row:hover {
  background: var(--accent-weak);
  outline: 2px solid var(--accent);
  outline-offset: -2px
}
tbody tr {
  cursor: pointer;
  transition: background-color .12s
}
tbody tr:hover {
  background: var(--surface-2)
}
tbody tr.active {
  background: var(--accent-weak);
  box-shadow: inset 3px 0 0 var(--accent)
}
.badges {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  display: flex;
  overflow: visible
}
#membersTab td:last-child .badges {
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden
}
#membersTab td:last-child .badge {
  padding: 0 8px
}
details:not([open]) > :not(summary) {
  display: none
}
.badge {
  border-radius: var(--pill);
  background: var(--warn-weak);
  height: 23px;
  color: var(--warn);
  white-space: nowrap;
  align-items: center;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex
}
.badge.danger {
  background: var(--danger-weak);
  color: var(--danger)
}
.badge.success {
  background: var(--success-weak);
  color: var(--success)
}
.badge.muted {
  background: var(--surface-3);
  color: var(--text-muted)
}
.badge.info {
  background: var(--info-weak);
  color: var(--info)
}
.tie-mark {
  border-radius: var(--pill);
  background: var(--info-weak);
  color: var(--info);
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block
}
.empty,
.placeholder {
  min-height: 180px;
  color: var(--text-subtle);
  place-items: center;
  font-size: 14px;
  display: grid
}
.empty-cta {
  color: var(--text-subtle);
  justify-items: center;
  gap: 12px;
  padding: 34px 16px;
  font-size: 14px;
  display: grid
}
.empty-cta p {
  margin: 0
}
.empty .empty-cta,
.table-empty .empty-cta {
  padding: 0
}
tbody tr.empty-row {
  cursor: default
}
tbody tr.empty-row:hover {
  background: 0 0
}
.tables-grid .empty {
  grid-column: 1/-1
}
.pager {
  height: 56px;
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  display: flex
}
.detail-panel {
  padding: 18px
}
.detail-heading {
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
  display: flex
}
.detail-heading > div:first-child {
  flex: 1;
  min-width: 0
}
.approval-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  display: flex
}
.approval-panel.pending {
  border-color: var(--warn);
  background: var(--warn-weak)
}
.approval-panel .approval-text {
  gap: 4px;
  min-width: 0;
  display: grid
}
.detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex
}
.detail-no {
  color: var(--text-subtle);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600
}
.modal {
  z-index: 50;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0
}
.modal-backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(3px);
  animation: .16s fade-in;
  position: absolute;
  inset: 0
}
.modal-panel {
  width: min(1040px,100%);
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  animation: .18s cubic-bezier(.2,.9,.3,1) pop-in;
  position: relative;
  overflow: auto
}
@keyframes fade-in {
  0% {
    opacity: 0
  }
  to {
    opacity: 1
  }
}
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(.99)
  }
  to {
    opacity: 1;
    transform: none
  }
}
:is(.modal-panel:has(>.detail-heading:first-child),.modal-panel:has(>form>.detail-heading:first-child)) {
  padding-top: 0
}
.modal-panel .detail-heading {
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 0 -18px 18px;
  padding: 18px;
  position: sticky;
  top: 0
}
.member-form {
  grid-template-columns: minmax(0,1fr);
  gap: 14px;
  display: grid
}
.member-pane[data-member-pane=profile] {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-content: start;
  gap: 14px;
  display: grid
}
.member-pane[data-member-pane=profile] > .wide {
  grid-column: 1/-1
}
.member-tabs {
  border-bottom: 1px solid var(--border);
  gap: 4px;
  padding-bottom: 2px;
  display: flex
}
.member-tab {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-bottom: 2px solid #0000;
  padding: 8px 14px;
  font-weight: 600
}
.member-tab:hover {
  color: var(--text)
}
.member-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent)
}
.member-form .detail-heading,
.member-form .wide {
  grid-column: 1/-1
}
.member-form label {
  gap: 6px;
  display: grid
}
.identity-field {
  gap: 8px;
  display: flex
}
.identity-field select {
  flex: none;
  width: auto
}
.identity-field input {
  flex: 1;
  min-width: 0
}
.detail-name,
.detail-no + h2 {
  letter-spacing: -.01em
}
.start-tv-panel {
  width: min(560px,100%)
}
.cancel-tournament-panel {
  width: min(600px,100%)
}
.cancel-tournament-panel label {
  gap: 6px;
  padding: 4px 0;
  display: grid
}
.cancel-tournament-panel label span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.cancel-impact ul {
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  display: grid
}
.cancel-impact li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6
}
.cancel-impact li strong {
  color: var(--text)
}
.detail-cancelled {
  border-left: 3px solid var(--danger);
  background: var(--danger-weak);
  border-radius: 6px;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 14px;
  display: grid
}
.detail-cancelled h3 {
  color: var(--danger);
  margin: 0;
  font-size: 14px
}
.detail-cancelled p {
  margin: 0
}
.detail-reopened {
  border-left: 3px solid var(--warn);
  background: var(--warn-weak);
  border-radius: 6px;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 14px;
  display: grid
}
.detail-reopened h3 {
  color: var(--warn);
  margin: 0;
  font-size: 14px
}
.detail-reopened p {
  margin: 0
}
.reopen-form {
  gap: 10px;
  display: grid
}
.reopen-form input,
.reopen-form textarea {
  width: 100%
}
.reopen-error {
  margin: 0;
  font-size: 13px
}
.reopen-password-field {
  gap: 6px;
  display: grid
}
.reopen-password-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex
}
.cancel-refunds h3 {
  margin: 14px 0 4px;
  font-size: 14px
}
.cancel-refunds .results-content {
  max-height: 320px;
  overflow: auto
}
.cancel-refunds .icm-breakdown-table {
  width: 100%;
  min-width: 0
}
.start-tv-form {
  gap: 10px;
  padding: 8px 0;
  display: grid
}
.start-tv-form label {
  gap: 6px;
  display: grid
}
.start-tv-form label span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.start-tv-announce {
  gap: 6px;
  display: grid
}
.start-tv-announce > span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.start-tv-announce textarea {
  resize: vertical;
  width: 100%
}
.tv-display-settings {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  gap: 12px;
  padding: 18px;
  display: grid
}
.tv-display-settings h3 {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex
}
.tv-display-settings h3 .meta {
  margin-top: 0;
  font-weight: 400
}
.tv-logo-row {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  display: flex
}
.tv-logo-preview {
  object-fit: contain;
  background: #0b0f14;
  border-radius: 6px;
  max-width: 160px;
  height: 44px;
  padding: 4px 8px
}
.tv-bind-form {
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding-top: 4px;
  display: flex
}
#tvBindForm {
  background: var(--surface);
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px
}
.tv-bind-form label {
  flex: 200px;
  gap: 6px;
  display: grid
}
.tv-bind-form label span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.tv-bind-hint {
  flex: 1 0 100%;
  margin: 0
}
#tvTab table {
  table-layout: auto
}
#tvTab td:last-child,
#tvTab th:last-child {
  white-space: nowrap;
  width: 1%
}
#tvTab .row-actions {
  flex-wrap: nowrap
}
.tv-sound-controls {
  white-space: nowrap;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 260px;
  display: flex
}
.tv-sound-controls .button,
.tv-sound-controls select {
  flex: none;
  width: auto
}
.tv-marquee-input {
  width: 100%;
  min-width: 180px
}
.finance-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  gap: 14px;
  margin-top: 6px;
  padding: 18px;
  display: grid
}
.finance-actions,
.finance-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  display: flex
}
.finance-heading h2 {
  font-size: 15px
}
.finance-actions label {
  flex: 210px;
  gap: 6px;
  display: grid
}
.finance-actions label span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.finance-list {
  grid-auto-rows: max-content;
  gap: 6px;
  display: grid
}
.finance-list > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex
}
#couponsTab .table-panel table {
  min-width: 1008px
}
#couponsTab .table-panel th:last-child {
  width: 292px
}
#couponRows tr:not(.empty-row) td:last-child .button + .button {
  margin-left: 8px
}
.coupon-issue-panel {
  width: min(680px,100%)
}
.init-error {
  z-index: 9999;
  background: var(--danger-solid,var(--danger));
  color: #fff;
  box-shadow: var(--shadow-md);
  gap: 4px;
  padding: 14px 20px;
  display: grid;
  position: fixed;
  inset: 0 0 auto
}
.init-error small {
  opacity: .85
}
.coupon-issue-all {
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-weak);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px;
  display: flex
}
.coupon-issue-all-copy {
  flex: 260px;
  gap: 4px;
  min-width: 0;
  display: grid
}
.coupon-issue-all-copy small {
  color: var(--text-muted)
}
.coupon-issue-all label {
  gap: 4px;
  display: grid
}
.coupon-issue-all input {
  width: 92px
}
.coupon-member-results {
  gap: 8px;
  margin-top: 14px;
  display: grid
}
.coupon-member-results > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  display: flex
}
.qr-check-in-panel {
  width: min(720px,100%)
}
.scan-button {
  flex: none;
  width: 100%;
  margin-top: auto
}
.scan-button + .theme-toggle {
  margin-top: 8px
}
.scan-panel {
  width: min(560px,100%)
}
#feeModal {
  z-index: 60
}
#payoutModal {
  z-index: 55
}
.fee-panel {
  width: min(620px,100%)
}
.fee-form {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: start;
  gap: 12px 14px;
  display: grid
}
.fee-form > .fee-col-2 {
  grid-column: span 2
}
.fee-form > .fee-col-1 {
  grid-column: span 1
}
.fee-form > :not([class*=fee-col-]) {
  grid-column: 1/-1
}
.fee-form label.is-off {
  opacity: .5
}
.fee-form label.is-off input,
.fee-form label.is-off select {
  cursor: not-allowed
}
@media (width<=640px) {
  .fee-form {
    grid-template-columns: minmax(0,1fr)
  }
  .fee-form > .fee-col-1,
  .fee-form > .fee-col-2 {
    grid-column: 1/-1
  }
}
.fee-breakdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 6px;
  margin-top: 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  display: grid
}
.fee-breakdown > div {
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
  display: flex
}
.fee-breakdown .fee-total {
  border-top: 1px solid var(--border);
  color: var(--text);
  padding-top: 8px;
  font-size: 16px;
  font-weight: 700
}
.scan-video {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
  width: 100%;
  max-height: 60vh
}
.qr-check-in-content {
  gap: 10px;
  display: grid
}
.qr-registration {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  display: flex
}
.issues {
  min-width: 0
}
.issue-list {
  gap: 10px;
  display: grid
}
.issue-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 14px
}
.issue-line {
  color: var(--text-muted);
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  display: flex
}
.issue-message {
  margin-top: 6px;
  line-height: 1.45
}
.issue-raw {
  color: var(--text-subtle);
  overflow-wrap: anywhere;
  margin-top: 8px;
  font-size: 13px
}
.blind-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  flex-basis: 100%;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  display: grid
}
.blind-bulk-controls,
.blind-copy-controls,
.blind-editor-actions,
.blind-editor-header,
.blind-row-actions {
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  display: flex
}
.blind-editor-header {
  justify-content: space-between;
  align-items: center
}
.blind-editor-header h2 {
  font-size: 15px
}
.blind-copy-controls select {
  min-width: min(240px,100%)
}
.blind-bulk-controls label {
  gap: 6px;
  display: grid
}
.blind-bulk-controls label span {
  color: var(--text-muted);
  font-size: 12.5px
}
.blind-bulk-controls input {
  width: 130px
}
.blind-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  max-height: 360px;
  overflow: auto
}
.blind-table {
  table-layout: auto;
  width: 100%;
  min-width: 820px
}
.blind-table td,
.blind-table th {
  height: 50px;
  padding: 6px 10px
}
.blind-table th {
  z-index: 1;
  background: var(--surface-2);
  text-transform: none;
  letter-spacing: normal;
  font-size: 12.5px;
  position: sticky;
  top: 0
}
.blind-table td:first-child,
.blind-table th:first-child {
  width: 58px
}
.blind-table td:last-child,
.blind-table th:last-child {
  width: 150px
}
.blind-table input {
  min-width: 86px;
  height: 34px
}
.blind-table input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.blind-table input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.blind-table input[type=number] {
  appearance: textfield
}
.blind-table tr.invalid input {
  border-color: var(--danger)
}
.blind-level-no {
  color: var(--accent);
  font-weight: 800
}
.blind-row-actions {
  flex-wrap: nowrap
}
.blind-row-actions .button {
  min-height: 32px;
  padding: 0 10px
}
.blind-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  text-align: center;
  padding: 18px
}
.blind-editor-actions {
  justify-content: space-between;
  align-items: center
}
.blind-validation {
  color: var(--danger);
  font-size: 13px
}
.blind-paste {
  border-top: 1px solid var(--border);
  padding-top: 14px
}
.blind-paste summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 650
}
.blind-paste textarea {
  margin: 10px 0;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 13px
}
.tournament-clock-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  gap: 14px;
  min-width: 0;
  padding: 18px;
  display: grid
}
.tournament-clock-preview-controls,
.tournament-clock-preview-details,
.tournament-clock-preview-header {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex
}
.tournament-clock-preview-header {
  justify-content: space-between
}
.tournament-clock-preview-header h2 {
  font-size: 15px
}
.tournament-clock-preview-position {
  min-width: 54px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 13px
}
.tournament-clock-preview-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  text-align: center;
  padding: 32px 18px
}
.tournament-clock-preview-face {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg,var(--surface),var(--accent-weak));
  text-align: center;
  gap: 8px;
  padding: 26px 18px 22px;
  display: grid;
  overflow: hidden
}
.tournament-clock-preview-phase {
  color: var(--text-muted);
  letter-spacing: .16em;
  font-size: 14px;
  font-weight: 700
}
.tournament-clock-preview-countdown {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  font-size: clamp(46px,6vw,72px);
  font-weight: 800;
  line-height: 1.05
}
.tournament-clock-preview-blinds {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px,2.2vw,24px);
  font-weight: 700
}
.tournament-clock-preview-details {
  color: var(--text-muted);
  justify-content: center;
  margin-top: 4px;
  font-size: 13px
}
.auth-gate {
  z-index: 60;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
  overscroll-behavior: contain;
  background: var(--bg-grad),var(--bg);
  justify-content: center;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: auto
}
.auth-gate-card {
  text-align: center;
  width: min(500px,100%);
  color: var(--text-muted);
  justify-items: center;
  gap: 16px;
  margin: auto;
  padding: 40px min(40px,6vw);
  display: grid
}
#authGateMessage {
  white-space: pre-line;
  cursor: pointer;
  max-width: 100%;
  line-height: 1.6
}
.store-picker {
  gap: 10px;
  width: min(420px,100%);
  display: grid
}
.store-picker-list {
  overscroll-behavior: contain;
  gap: 8px;
  max-height: clamp(160px,100dvh - 420px,440px);
  display: grid;
  overflow-y: auto
}
.store-picker-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 10px;
  gap: 2px;
  padding: 12px 14px;
  display: grid
}
.store-picker-item:hover:not(:disabled) {
  border-color: var(--accent)
}
.store-picker-item strong {
  overflow-wrap: anywhere;
  font-size: 15px
}
.store-picker-item .meta {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  font-size: 12px
}
.store-picker-item:focus-visible {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
  outline: 0
}
.store-picker-item:disabled {
  cursor: not-allowed;
  background: var(--surface-3)
}
.store-picker-item:disabled strong {
  color: var(--text-muted)
}
.store-picker-item:disabled .meta {
  color: var(--warn)
}
.store-picker-note {
  color: var(--warn);
  text-align: left;
  font-size: 12px
}
.auth-gate-card .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 22px
}
.auth-gate-card .empty-cta {
  gap: 10px;
  width: min(420px,100%);
  padding: 0
}
.auth-gate-card .button {
  min-width: 220px
}
.auth-gate-card .text-link {
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  text-decoration: underline
}
.invite-result {
  gap: 8px;
  margin-bottom: 8px;
  display: flex
}
.invite-result input {
  height: 40px;
  color: var(--text-muted);
  background: var(--surface-2);
  flex: 1;
  padding: 0 12px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 12px
}
.invite-qr {
  margin-bottom: 8px
}
.join-qr-panel {
  padding: 16px
}
.join-qr-body {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  display: flex
}
.join-qr-side {
  flex: 260px;
  min-width: 0
}
.merge-search {
  gap: 8px;
  margin-top: 8px;
  display: flex
}
.merge-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px
}
.merge-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden
}
.merge-results li + li {
  border-top: 1px solid var(--line)
}
.merge-results button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex
}
.merge-results button:hover {
  background: var(--surface-2)
}
.merge-confirm {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px
}
.duplicate-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden
}
.duplicate-list li {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex
}
.duplicate-list li + li {
  border-top: 1px solid var(--line)
}
.duplicate-who {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex
}
.invite-qr-code svg {
  background: #fff;
  border-radius: 8px;
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: 8px
}
.staff-panel {
  padding: 0;
  overflow: hidden
}
.staff-list {
  display: grid
}
.staff-row {
  border-bottom: 1px solid var(--border);
  background: 0 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  display: flex
}
.staff-row:last-child {
  border-bottom: 0
}
.staff-info strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden
}
.staff-meta {
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  display: flex
}
.staff-row {
  flex-wrap: wrap
}
.staff-actions {
  margin-left: auto
}
.staff-promoter-note {
  color: var(--text-muted);
  flex: 1 0 100%;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6
}
.staff-permissions {
  border-top: 1px solid var(--border);
  flex: 1 0 100%;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  display: grid
}
.staff-permissions > strong {
  letter-spacing: .02em;
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 700
}
.staff-permission-options {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.staff-permission-options .check {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13.5px
}
.staff-permissions > .button {
  justify-self: start
}
.staff-permissions > .meta {
  margin: 0
}
.staff-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.staff-role-picker {
  min-width: 190px
}
.loyalty-summary {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  border-radius: 12px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  padding: 14px;
  display: grid
}
.member-activity {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  display: grid
}
.member-activity div {
  gap: 4px;
  display: grid
}
.member-activity span {
  color: var(--text-muted);
  font-size: 12px
}
.member-activity strong {
  font-size: 15px
}
@media (width<=640px) {
  .member-activity {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
}
.loyalty-summary div {
  gap: 4px;
  display: grid
}
.loyalty-summary p,
.loyalty-summary span {
  color: var(--text-muted);
  font-size: 12px
}
.loyalty-summary strong {
  font-size: 17px
}
.loyalty-summary p {
  grid-column: 1/-1;
  margin: 0
}
.support-contact-panel {
  width: min(820px,100%)
}
.announcement-panel {
  width: min(620px,100%)
}
.announcement-form {
  gap: 14px;
  display: grid
}
.announcement-form textarea {
  resize: vertical;
  width: 100%
}
.pages-field {
  gap: 6px;
  display: grid
}
.pages-field > span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.pages-editor,
.pages-editor-list {
  gap: 8px;
  display: grid
}
.page-row {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  grid-template-columns: auto 1fr auto auto auto;
  grid-template-areas: "handle num secs qr remove""handle text text text text""handle count count count count";
  align-items: center;
  gap: 4px 8px;
  padding: 8px 10px;
  display: grid
}
.page-row.dragging {
  border-color: var(--accent-weak-border);
  box-shadow: var(--shadow-md);
  background: var(--surface)
}
.page-row-handle {
  color: var(--text-subtle);
  cursor: grab;
  touch-action: none;
  background: 0 0;
  border: 0;
  grid-area: handle;
  align-self: stretch;
  padding: 0 2px;
  font-size: 14px
}
.page-row-handle:disabled {
  opacity: .35;
  cursor: default
}
.page-row.dragging .page-row-handle {
  cursor: grabbing
}
.page-row-num {
  color: var(--text-muted);
  grid-area: num;
  font-size: 12px;
  font-weight: 550
}
.page-row-remove {
  color: var(--text-subtle);
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 6px;
  grid-area: remove;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1
}
.page-row-remove:hover {
  color: var(--danger);
  background: var(--danger-weak)
}
.page-row-qr {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-subtle);
  font: inherit;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 6px;
  grid-area: qr;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1
}
.page-row-qr:hover {
  border-color: var(--border-strong);
  color: var(--text)
}
.page-row-qr.on {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent)
}
.page-row-qr:disabled {
  cursor: default;
  opacity: .6
}
.page-row textarea {
  resize: vertical;
  grid-area: text;
  width: 100%;
  min-height: 58px
}
.page-row-count {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  grid-area: count;
  justify-self: end;
  font-size: 11px
}
.page-row-count.near-limit {
  color: var(--warn,#d9a13c)
}
.page-row-count.at-limit {
  color: var(--danger);
  font-weight: 600
}
.pages-editor-footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  display: flex
}
.pages-editor-add {
  justify-self: start
}
.page-row-secs {
  color: var(--text-muted);
  grid-area: secs;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  display: inline-flex
}
.page-row-secs.hidden {
  display: none
}
.page-row-secs input {
  width: 64px
}
.announcement-interval > span {
  display: block
}
.announcement-interval input {
  width: 120px
}
.announcement-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex
}
.announcement-preview {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden
}
.support-contact-grid {
  grid-template-columns: minmax(0,1.45fr) minmax(220px,.75fr);
  gap: 24px;
  display: grid
}
.support-contact-grid form {
  gap: 14px;
  display: grid
}
.support-contact-grid textarea {
  width: 100%
}
.support-line-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  display: grid
}
.support-line-qr {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 10px;
  width: min(210px,100%);
  padding: 10px
}
.support-line-qr svg {
  width: 100%;
  height: 100%;
  display: block
}
.tv-layout-modal {
  z-index: 55
}
.tv-layout-panel {
  flex-direction: column;
  gap: 12px;
  width: min(1150px,100%);
  display: flex
}
.tv-layout-canvas {
  aspect-ratio: 16/9;
  border: 1px solid var(--border-strong);
  touch-action: none;
  background: #0b0f14;
  border-radius: 10px;
  width: 100%;
  position: relative;
  overflow: hidden
}
.tv-layout-preview {
  transform-origin: 0 0;
  pointer-events: none;
  border: 0;
  width: 1280px;
  height: 720px;
  position: absolute;
  top: 0;
  left: 0
}
.tv-layout-overlay {
  position: absolute;
  inset: 0
}
.tv-layout-box {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  background: #ffb30012;
  border: 1.5px dashed #ffb300bf;
  border-radius: 4px;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  position: absolute
}
.tv-layout-box:hover {
  background: #ffb30029
}
.tv-layout-box:active {
  cursor: grabbing
}
.tv-layout-box-label {
  color: #ffd54f;
  white-space: nowrap;
  pointer-events: none;
  background: #0009;
  border-radius: 3px;
  margin: 3px;
  padding: 2px 7px;
  font-size: 12px
}
.tv-layout-box-remove {
  color: #ef9a9a;
  cursor: pointer;
  background: #0009;
  border: 0;
  border-radius: 3px;
  margin: 3px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.4
}
.tv-layout-box-remove:hover {
  color: #ff5252
}
.tv-layout-box-resize {
  cursor: nwse-resize;
  background: linear-gradient(135deg,#0000 50%,#ffd54fe6 50%);
  border-radius: 0 0 4px;
  width: 16px;
  height: 16px;
  position: absolute;
  bottom: 0;
  right: 0
}
.tv-layout-palette {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.tv-layout-palette-hint {
  color: var(--text-subtle);
  font-size: 13px
}
.tv-layout-chip {
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  background: 0 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px
}
.tv-layout-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak)
}
.tv-layout-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
@media (width<=720px) {
  .loyalty-summary,
  .support-contact-grid {
    grid-template-columns: 1fr
  }
}
.clock-panel {
  max-width: 520px
}
.clock-display {
  text-align: center;
  padding: 22px 0 6px
}
.clock-phase {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700
}
.clock-phase.break {
  color: var(--info)
}
.clock-countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  font-size: 68px;
  font-weight: 800;
  line-height: 1.1
}
.clock-countdown.paused {
  opacity: .42
}
.clock-blinds {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700
}
.clock-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  display: flex
}
.clock-set-time {
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  padding-top: 14px;
  display: flex
}
.clock-set-time-label {
  color: var(--text-muted);
  padding-bottom: 12px;
  font-size: 13px
}
.clock-time-parts {
  align-items: flex-end;
  gap: 6px;
  display: flex
}
.clock-time-part {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  display: flex
}
.clock-time-part input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 66px;
  min-height: 44px;
  font-size: 18px
}
.clock-time-part small {
  color: var(--text-muted);
  font-size: 11px
}
.clock-time-sep {
  color: var(--text-muted);
  padding-bottom: 22px;
  font-size: 18px;
  font-weight: 700
}
.clock-set-time-apply {
  min-height: 44px;
  padding-bottom: 0
}
.clock-set-time .meta {
  text-align: center;
  flex-basis: 100%
}
.clock-reopen-hint {
  background: var(--warn-weak);
  color: var(--warn);
  border-radius: 10px;
  margin: 4px 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6
}
.clock-announce {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  border-radius: 12px;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  display: grid
}
.clock-announce-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex
}
.clock-announce-head h3 {
  font-size: 15px
}
.clock-announce-templates {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.clock-announce-templates input,
.clock-announce-templates select {
  flex: 1;
  min-width: min(200px,100%)
}
.clock-announce-interval {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex
}
.clock-announce-interval input {
  flex: none;
  width: 72px;
  min-width: 0
}
.clock-announce textarea {
  resize: vertical;
  width: 100%
}
.clock-announce-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex
}
.results-panel {
  max-width: 560px
}
.clock-tv-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex
}
.clock-tv-row select {
  width: auto;
  max-width: 320px
}
.disburse-panel {
  max-width: 1040px
}
.payout-departure-panel {
  max-width: 620px
}
.payout-departure-fields {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 16px 0 10px;
  display: grid
}
.payout-departure-reason {
  grid-column: 1/-1
}
.icm-wide-panel {
  width: min(1240px,100%);
  max-width: 1240px
}
.disburse-stats,
.icm-result-stats {
  margin-top: 14px
}
.results-tpi-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid
}
.results-tpi-state:empty {
  display: none
}
.results-tpi-state > div {
  align-items: center;
  gap: 8px;
  display: flex
}
.results-tpi-state p {
  color: var(--text-muted);
  font-size: 13px
}
.results-content {
  z-index: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 55vh;
  margin-top: 12px;
  position: relative;
  overflow: auto
}
.icm-breakdown-table {
  table-layout: auto;
  min-width: 1120px
}
.icm-breakdown-table th {
  z-index: 1;
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  top: 0
}
.icm-breakdown-table td {
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible
}
.icm-breakdown-table tr[data-survivor=false] {
  opacity: .62
}
.results-content input {
  width: 96px;
  height: 34px;
  padding: 0 8px
}
.results-content input[data-amount] {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 112px
}
.results-content input.invalid {
  border-color: var(--danger-border);
  background: var(--danger-weak)
}
.results-content td {
  vertical-align: middle
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.cell-link {
  cursor: pointer;
  border-radius: 4px
}
.cell-link:focus-visible,
.cell-link:hover {
  color: var(--accent);
  outline: 0;
  text-decoration: underline
}
.tournament-workbench {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  display: grid
}
@media (width>=1400px) {
  .tournament-workbench {
    grid-template-columns: minmax(220px,264px) minmax(0,1fr)
  }
  .tournament-rail {
    max-height: calc(100vh - 88px);
    position: sticky;
    top: 64px
  }
  .tournament-rail > .rail-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px
  }
  .tournament-rail > .rail-head > .button {
    width: 100%
  }
}
.tournament-workbench > * {
  min-width: 0
}
.tournament-rail {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 0;
  box-shadow: var(--shadow-sm);
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex
}
.rail-head {
  flex: none;
  align-items: center;
  gap: 10px;
  display: flex
}
.rail-head:empty {
  display: none
}
.rail-head > .meta {
  white-space: nowrap
}
.rail-search input {
  width: 100%
}
.tournament-rail > .rail-search {
  flex: 0 200px;
  min-width: 120px
}
.tournament-rail > .rail-list {
  flex: auto;
  min-width: 0
}
@media (width>=1400px) {
  .tournament-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }
  .tournament-rail > .rail-search {
    flex: none;
    min-width: 0
  }
  .tournament-rail > .rail-list {
    flex: auto
  }
}
.rail-list {
  scrollbar-width: thin;
  flex-direction: row;
  gap: 6px;
  margin-top: 10px;
  display: flex;
  overflow: auto hidden
}
@media (width>=1400px) {
  .rail-list {
    flex-direction: column;
    gap: 2px;
    max-height: none;
    overflow: hidden auto
  }
}
.rail-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  max-width: 220px;
  color: var(--text);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  flex: none;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  display: grid
}
.rail-item .rail-chevron {
  display: none
}
@media (width>=1400px) {
  .rail-item {
    background: 0 0;
    border: 0;
    border-radius: 9px;
    max-width: none;
    padding: 9px 10px
  }
  .rail-item .rail-chevron {
    display: inline
  }
}
.rail-item:hover {
  background: var(--surface-2)
}
.rail-item.active {
  background: var(--accent-weak);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650
}
.rail-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}
.rail-chevron {
  color: var(--text-subtle)
}
.rail-dot {
  background: var(--text-subtle);
  border-radius: 50%;
  width: 8px;
  height: 8px
}
.rail-dot.live {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-weak)
}
.rail-dot.open {
  background: var(--success)
}
.rail-dot.done {
  background: var(--text-subtle);
  opacity: .5
}
.rail-dot.idle {
  background: var(--border)
}
.rail-empty {
  padding: 12px 10px
}
.roster-seating-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 10px;
  padding: 10px 12px;
  display: flex
}
.seating-group {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex
}
.seating-group-end {
  margin-left: auto
}
.seating-label {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 12px
}
.seating-chips {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  display: flex
}
.seating-chip {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  white-space: nowrap;
  border-radius: 999px;
  align-items: baseline;
  gap: 5px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex
}
.seating-chip i {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 400
}
.seating-chip.none {
  border-color: var(--border);
  color: var(--text-subtle);
  background: 0 0;
  font-weight: 400
}
.seating-hint {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12px
}
.seating-hint.warn {
  color: var(--warn)
}
.seat-switch {
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: inline-flex
}
.seat-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute
}
.seat-switch-track {
  background: var(--border-strong);
  border-radius: 999px;
  flex: none;
  width: 34px;
  height: 20px;
  transition: background .15s;
  position: relative
}
.seat-switch-track:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .15s;
  position: absolute;
  top: 2px;
  left: 2px
}
.seat-switch input:checked + .seat-switch-track {
  background: var(--accent)
}
.seat-switch input:checked + .seat-switch-track:after {
  transform: translate(14px)
}
.seat-switch input:focus-visible + .seat-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.seat-switch.disabled {
  cursor: not-allowed;
  color: var(--text-subtle)
}
.seat-switch.disabled .seat-switch-track {
  opacity: .5
}
.seat-cell {
  overflow: hidden
}
.seat-button {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.25;
  display: flex;
  position: relative
}
.seat-button:hover {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak)
}
.seat-button.static {
  cursor: default
}
.seat-button.static:hover {
  border-color: var(--border);
  background: var(--surface)
}
.seat-button .seat-table {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-weight: 600;
  overflow: hidden
}
.seat-button .seat-no {
  color: var(--text-muted)
}
.seat-button .seat-pending {
  color: var(--text-subtle)
}
.seat-button.vacant {
  border-style: dashed
}
.seat-button .seat-caret {
  color: var(--text-subtle);
  font-size: 11px;
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-60%)
}
.seat-idle {
  white-space: normal;
  max-width: 100%;
  color: var(--text-subtle);
  font-size: 11px;
  line-height: 1.3;
  display: inline-block
}
.seating-popover {
  z-index: 60;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  width: min(420px,100vw - 24px);
  padding: 12px;
  position: fixed;
  box-shadow: 0 12px 32px #0000002e
}
.seating-pop-head {
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex
}
.seating-pop-head .meta {
  font-weight: 400
}
.seating-pop-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  display: flex
}
.table-pick-list {
  flex-direction: column;
  gap: 2px;
  max-height: 40vh;
  display: flex;
  overflow-y: auto
}
.table-pick-row {
  cursor: pointer;
  border-radius: 8px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  display: grid
}
.table-pick-row:hover {
  background: var(--surface-2)
}
.table-pick-name {
  text-overflow: ellipsis;
  min-width: 0;
  font-weight: 600;
  overflow: hidden
}
.table-pick-note {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 12px
}
.table-pick-row.busy .table-pick-note {
  color: var(--warn)
}
.table-pick-hint {
  margin: 8px 0 0;
  font-size: 12px
}
.seat-pop-body {
  grid-template-columns: minmax(96px,34%) 1fr;
  gap: 12px;
  display: grid
}
.seat-pop-tables {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-height: 44vh;
  display: flex;
  overflow-y: auto
}
.seat-pop-tables button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  overflow: hidden
}
.seat-pop-tables button:hover {
  background: var(--surface-2)
}
.seat-pop-table.active {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak);
  font-weight: 600
}
.seat-pop-auto {
  color: var(--accent);
  font-weight: 600
}
.seat-pop-leave {
  color: var(--danger)
}
.seat-pop-seats {
  min-width: 0
}
.seat-pop-seats-head {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  display: flex
}
.seat-pop-grid {
  grid-template-columns: repeat(auto-fill,minmax(46px,1fr));
  gap: 5px;
  display: grid
}
.seat-pop-seat {
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  display: flex
}
.seat-pop-seat i {
  color: var(--text-subtle);
  font-size: 10px;
  font-style: normal;
  font-weight: 400
}
.seat-pop-seat:hover {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak)
}
.seat-pop-seat.current {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent)
}
.seat-pop-seat.taken {
  color: var(--text-subtle);
  border-style: dashed
}
.roster-chip-summary {
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb,var(--surface) 92%,transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: -1px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  position: sticky;
  bottom: 0
}
.chip-sum-item {
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  display: inline-flex
}
.chip-sum-item i {
  color: var(--text-subtle);
  font-size: 11.5px;
  font-style: normal
}
.chip-sum-item b {
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex
}
.chip-sum-difference {
  margin-left: 3px;
  font-size: .82em
}
.chip-sum-difference.negative {
  color: var(--danger)
}
.chip-sum-difference.positive {
  color: var(--success)
}
.chip-sum-difference.neutral {
  color: var(--text-muted)
}
.chip-sum-verdict {
  margin-left: auto;
  font-weight: 650
}
.chip-sum-note {
  border-top: 1px solid var(--border);
  color: var(--danger);
  flex: 1 0 100%;
  padding-top: 8px;
  font-weight: 600
}
.roster-chip-summary.pending .chip-sum-verdict {
  color: var(--text-muted)
}
.roster-chip-summary.ok .chip-sum-verdict {
  color: var(--success)
}
.roster-chip-summary.warn .chip-sum-verdict {
  color: var(--danger)
}
.roster-chip-summary.ok {
  border-color: var(--success)
}
.roster-chip-summary.warn {
  border-color: var(--danger)
}
@media (width<=700px) {
  .roster-chip-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 12px;
    padding: 10px 14px;
    font-size: 12px;
    display: grid
  }
  .chip-sum-item b {
    font-size: 13.5px
  }
  .chip-sum-verdict {
    border-top: 1px solid var(--border);
    grid-column: 1/-1;
    margin-left: 0;
    padding-top: 4px
  }
  .chip-sum-note {
    grid-column: 1/-1;
    padding-top: 4px
  }
}
.tournament-roster-panel:has(+.roster-chip-summary:not(.hidden)) {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0
}
.roster-result-state {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  display: flex
}
.result-state-text {
  flex: 260px;
  min-width: 0;
  font-weight: 600
}
.result-state-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex
}
.result-state-actions .button {
  padding: 6px 12px;
  font-size: 12.5px
}
.result-state-tpi {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  flex-basis: 100%;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  display: flex
}
.result-state-tpi .meta {
  flex: 200px;
  min-width: 0
}
.result-state-tpi .button {
  padding: 6px 12px;
  font-size: 12.5px
}
.roster-result-state.pending {
  border-color: var(--border)
}
.roster-result-state.pending .result-state-text {
  color: var(--text-muted);
  font-weight: 500
}
.roster-result-state.ok {
  border-color: var(--success)
}
.roster-result-state.ok .result-state-text {
  color: var(--success)
}
.roster-result-state.warn {
  border-color: var(--danger)
}
.roster-result-state.warn .result-state-text {
  color: var(--danger)
}
@media (width<=700px) {
  .roster-result-state {
    padding: 10px 14px;
    font-size: 12px
  }
  .result-state-actions {
    flex-basis: 100%;
    margin-left: 0
  }
}
.stack-input {
  background: var(--surface-2);
  width: 100%;
  min-width: calc(7ch + 14px);
  max-width: 110px;
  height: 32px;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  border: 1px solid #0000;
  border-radius: 8px;
  padding: 4px 5px
}
.stack-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0
}
.stack-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0
}
.stack-input {
  appearance: textfield
}
.stack-input:hover {
  border-color: var(--border)
}
.stack-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: 0
}
.stack-input.saving {
  opacity: .55
}
.stack-input.saved {
  border-color: var(--success);
  background: var(--success-weak)
}
.tournament-detail-pane > .toolbar {
  margin-top: 0
}
.tournament-detail {
  gap: 20px;
  margin-top: 18px;
  display: grid
}
.tournament-detail > section {
  min-width: 0
}
.tournament-detail-summary {
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  display: flex
}
.summary-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
  border-radius: 999px;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 550;
  display: inline-flex
}
.summary-chip > span {
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden
}
.summary-chip i {
  color: var(--text-subtle);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500
}
.tournament-detail-settings {
  margin-top: 14px
}
.tournament-detail-settings > summary {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  display: flex
}
.tournament-detail-settings > summary::-webkit-details-marker {
  display: none
}
.settings-toggle {
  color: var(--text-subtle);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 550
}
.settings-toggle:after {
  content: " ▾"
}
.tournament-detail-settings[open] .settings-toggle:after {
  content: " ▴"
}
.tournament-detail-settings > summary:hover .settings-toggle {
  color: var(--accent)
}
.tournament-detail-settings .tournament-detail {
  margin-top: 10px
}
.tournament-detail-page {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px
}
.tournament-detail-toolbar {
  align-items: flex-end
}
.back-link {
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px
}
.back-link:focus-visible,
.back-link:hover {
  text-decoration: underline
}
.tournament-detail h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700
}
.detail-rules {
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  display: grid
}
.detail-rule {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 30px;
  padding: 4px 12px;
  font-size: 13px;
  display: flex
}
.detail-rule span {
  color: var(--text-muted);
  flex-shrink: 0
}
.detail-rule strong {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.detail-rule.is-block {
  grid-column: 1/-1;
  justify-items: start;
  gap: 6px;
  display: grid
}
.detail-rule.is-block strong {
  text-align: left;
  font-weight: 550;
  line-height: 1.7
}
.detail-rule-button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12.5px
}
.detail-rule-select {
  max-width: 100%;
  min-height: 30px;
  font-size: 12.5px
}
.payout-tier-panel {
  width: min(760px,100%)
}
.payout-tier-list {
  width: 100%;
  min-width: 0
}
tr.is-stale td:not([data-status-cell]) {
  opacity: .65
}
.payout-tier-list td:last-child {
  white-space: normal;
  line-height: 1.8
}
.payout-tier-list tr.is-current td {
  background: var(--accent-weak)
}
.detail-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 320px;
  overflow: auto
}
.detail-table-wrap + .meta,
.tournament-detail section > .meta {
  margin-top: 6px
}
.loyalty-tiers {
  border-top: 1px solid var(--border);
  flex-basis: 100%;
  min-width: 0;
  margin-top: 14px;
  padding-top: 14px
}
.loyalty-tiers h3 {
  margin-bottom: 4px;
  font-size: 15px
}
.loyalty-tiers > .meta {
  margin-bottom: 10px
}
.loyalty-tiers .detail-table-wrap {
  max-height: 340px
}
.tier-card-cell {
  align-items: center;
  gap: 10px;
  display: flex
}
.tier-card-thumb {
  border: 1px solid var(--border);
  background: var(--surface-2) center/cover no-repeat;
  border-radius: 8px;
  flex: none;
  width: 72px;
  height: 45px
}
.tier-card-thumb[data-face=bronze] {
  background-image: linear-gradient(135deg,#3b2416 0,#9a6038 48%,#2e1b10 100%)
}
.tier-card-thumb[data-face=silver] {
  background-image: linear-gradient(135deg,#2a2e34 0,#7d858f 48%,#22262b 100%)
}
.tier-card-thumb[data-face=gold] {
  background-image: linear-gradient(135deg,#3d2c0c 0,#c99632 48%,#33240a 100%)
}
.tier-card-thumb[data-face=platinum] {
  background-image: linear-gradient(135deg,#3a3f47 0,#b9c0c9 48%,#30353c 100%)
}
.tier-card-thumb[data-face=black] {
  background-image: linear-gradient(135deg,#050506 0,#2a2a30 48%,#050506 100%);
  border-color: #d9a13c
}
.tier-card-actions {
  gap: 6px;
  display: flex
}
.tier-card-actions .button {
  white-space: nowrap;
  min-height: 34px;
  padding: 0 12px
}
.loyalty-tier-table input {
  width: 100%;
  min-width: 90px
}
.loyalty-tier-table input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.loyalty-tier-table input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}
.loyalty-tier-table input[type=number] {
  appearance: textfield
}
.loyalty-tier-table input:disabled {
  opacity: .55
}
.loyalty-tier-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex
}
.loyalty-distribution {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px
}
.loyalty-tier-cards {
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 10px;
  margin-top: 12px;
  display: grid
}
.loyalty-tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  gap: 4px;
  padding: 12px 14px;
  display: grid
}
.loyalty-tier-card:focus-visible,
.loyalty-tier-card:hover {
  border-color: var(--border-strong)
}
.loyalty-tier-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent)
}
.tier-card-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 650;
  overflow: hidden
}
.tier-card-count {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1
}
.tier-card-count i {
  color: var(--text-muted);
  margin-left: 3px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500
}
.tier-card-meta {
  color: var(--text-muted);
  font-size: 11.5px
}
.loyalty-tier-members {
  margin-top: 14px
}
.loyalty-tier-members .toolbar-actions input[type=search] {
  width: auto;
  min-width: 200px
}
.loyalty-tier-members tbody tr.clickable-row {
  cursor: pointer
}
.loyalty-tier-members tbody tr.clickable-row:hover {
  background: var(--surface-2)
}
.tier-grant {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px
}
.tier-grant h3 {
  font-size: 15px
}
@media (width<=720px) {
  .detail-rules {
    grid-template-columns: 1fr
  }
}
.sim-panel {
  border: 1px dashed var(--warn);
  border-radius: var(--radius);
  background: var(--warn-weak);
  margin: 4px 0;
  padding: 16px 18px
}
.sim-panel-head {
  color: var(--warn);
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex
}
.sim-badge {
  border-radius: var(--pill);
  background: var(--warn);
  color: var(--accent-contrast);
  letter-spacing: .04em;
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700
}
.sim-panel-controls {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  display: flex
}
.sim-panel-controls label {
  color: var(--text-muted);
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  display: flex
}
.sim-panel-controls select {
  min-width: min(260px,100%)
}
.sim-panel-controls input {
  width: 110px
}
.sim-panel-controls .button {
  background: var(--warn);
  border-color: var(--warn);
  color: var(--accent-contrast);
  padding: 0 20px;
  font-weight: 700
}
.ops-table td:last-child,
.ops-table th:last-child {
  white-space: normal;
  text-overflow: clip;
  width: 26%;
  overflow: visible
}
.row-actions {
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  display: flex
}
.row-actions .button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px
}
.row-actions .button.over-limit {
  border-style: dashed;
  border-color: var(--warn);
  color: var(--warn)
}
.panel-head {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  display: flex
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 700
}
.reg-stats {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.reg-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 74px;
  padding: 6px 12px;
  display: flex
}
.reg-stat-value {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2
}
.reg-stat-label {
  color: var(--text-subtle);
  letter-spacing: .04em;
  margin-top: 1px;
  font-size: 11px
}
.reg-stat-hint {
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
  font-size: 10.5px
}
.entries-count {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700
}
.entries-none {
  color: var(--text-subtle)
}
.reg-table tbody tr {
  cursor: default
}
.reg-table td {
  padding-top: 10px;
  padding-bottom: 10px
}
.reg-table .cell-title {
  font-weight: 600
}
.reg-table .meta {
  margin-top: 2px;
  font-size: 12.5px
}
.reg-table tr.eliminated .cell-title {
  color: var(--text-muted)
}
.reg-table tr.empty-row {
  cursor: default
}
.reg-table tr.empty-row:hover {
  background: 0 0
}
.table-empty {
  text-align: center;
  height: 140px;
  color: var(--text-subtle)
}
.pay-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600
}
.disburse-table .pay-amount {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding-right: 9px;
  font-size: 17px;
  font-weight: 700;
  display: inline-block
}
.pay-amount-field {
  background: var(--surface-2);
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 1px;
  width: 100%;
  max-width: 112px;
  height: 34px;
  padding: 0 8px;
  transition: border-color .15s,background-color .15s;
  display: inline-flex
}
.pay-amount-field > i {
  color: var(--text-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600
}
.pay-amount-field input {
  width: 100%;
  min-width: 0;
  height: auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: 0 0;
  border: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 700
}
.pay-amount-field input:focus {
  box-shadow: none;
  outline: 0
}
.pay-amount-field:hover {
  border-color: var(--border-strong)
}
.pay-amount-field:focus-within {
  border-color: var(--accent);
  background: var(--surface)
}
.pay-amount-field input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0
}
.pay-amount-field input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0
}
.pay-amount-field input {
  appearance: textfield
}
.pay-method {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 12.5px
}
.report-range {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  display: flex
}
.report-range label {
  color: var(--text-muted);
  gap: 5px;
  font-size: 12.5px;
  font-weight: 550;
  display: grid
}
.report-range input[type=date] {
  min-width: 160px
}
.report-range input[type=time] {
  min-width: 120px
}
.list-range {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  display: flex
}
.list-range-fields {
  flex-wrap: wrap;
  gap: 10px;
  display: flex
}
.list-range-fields label {
  color: var(--text-muted);
  gap: 5px;
  font-size: 12.5px;
  font-weight: 550;
  display: grid
}
.list-range-fields input[type=date] {
  min-width: 150px
}
.list-range.is-searching .list-range-fields,
.list-range.is-searching .range-toggle {
  opacity: .55
}
.list-range .range-btn:disabled {
  cursor: not-allowed
}
.list-range-note {
  color: var(--text-muted);
  flex-basis: 100%;
  margin: 0;
  font-size: 13px
}
.list-range-note.is-error {
  color: var(--danger)
}
.report-range label.check {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: flex
}
.report-range label.check input {
  margin: 0
}
.contribution-table {
  table-layout: auto;
  min-width: 1540px
}
.contribution-table td,
.contribution-table th {
  white-space: nowrap
}
.contribution-table td:last-child,
.contribution-table th:last-child {
  width: auto
}
.contribution-primary {
  color: var(--accent);
  font-weight: 750
}
#reportTournamentRows .drill-row {
  cursor: pointer
}
.report-drill-panel {
  width: min(1080px,100%)
}
.contribution-table.drill-table {
  min-width: 880px
}
.report-cards {
  grid-template-columns: repeat(auto-fill,minmax(168px,1fr));
  gap: 12px;
  display: grid
}
.report-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  position: relative;
  overflow: hidden
}
.report-card.accent {
  background: linear-gradient(150deg,var(--accent-weak),transparent 70%),var(--surface);
  border-color: var(--accent-weak-border)
}
.report-card .label {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 550
}
.report-card .value {
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 750
}
.report-card .sub {
  color: var(--text-subtle);
  margin-top: 6px;
  font-size: 12px
}
.audit-data {
  max-width: 420px;
  color: var(--text-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  display: block
}
.dashboard-body {
  gap: 18px;
  display: grid
}
.dash-canvas {
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  gap: 14px;
  display: grid
}
.dash-w {
  grid-column: span 1;
  min-width: 0
}
.dash-w[data-size=md] {
  grid-column: span 2
}
.dash-w[data-size=lg] {
  grid-column: span 4
}
.dash-w > .dash-fcard,
.dash-w > .dash-panel,
.dash-w > .dash-w-body > .dash-fcard,
.dash-w > .dash-w-body > .dash-panel,
.dash-w > .dash-w-body > .kpi,
.dash-w > .kpi {
  height: 100%
}
.kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  overflow: hidden
}
.kpi.hero {
  background: linear-gradient(150deg,var(--accent-weak),transparent 70%),var(--surface);
  border-color: var(--accent-weak-border)
}
.kpi-lab {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 550
}
.kpi-val {
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.1
}
.kpi-val small {
  color: var(--text-muted);
  margin-left: 3px;
  font-size: 15px;
  font-weight: 600
}
.kpi-sub {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  margin-top: 9px;
  font-size: 12px
}
.dash-delta {
  border-radius: var(--pill);
  vertical-align: middle;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex
}
.dash-delta.up {
  background: var(--success-weak);
  color: var(--success)
}
.dash-delta.down {
  background: var(--danger-weak);
  color: var(--danger)
}
.dash-delta.flat {
  background: var(--surface-3);
  color: var(--text-muted)
}
.dash-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm)
}
.dash-panel-h {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  display: flex
}
.dash-panel-h h2 {
  font-size: 15px;
  font-weight: 700
}
.dash-more {
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600
}
.dash-more:hover {
  text-decoration: underline
}
.dash-panel-b {
  gap: 8px;
  padding: 14px 18px 18px;
  display: grid
}
.dash-sec-lab {
  color: var(--text-subtle);
  letter-spacing: .04em;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700
}
.dash-live-row,
.dash-todo-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex
}
.dash-fcard[data-goto-tab],
.dash-todo-row[data-goto-tab] {
  cursor: pointer;
  transition: border-color .12s
}
.dash-fcard[data-goto-tab]:hover,
.dash-todo-row[data-goto-tab]:hover {
  border-color: var(--border-strong)
}
.dash-fcard[data-goto-tab]:focus-visible,
.dash-todo-row[data-goto-tab]:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px
}
.dash-todo-clear {
  text-align: center;
  color: var(--text-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px 14px
}
.dash-live-main {
  flex: 1;
  min-width: 0
}
.dash-live-main b {
  font-weight: 650
}
.dash-live-main .meta {
  margin-top: 3px
}
.dash-live-row .button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px
}
.dash-dot {
  background: var(--success);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px var(--success-weak);
  border-radius: 50%;
  flex-shrink: 0
}
.dash-dot.soon {
  background: var(--info);
  box-shadow: 0 0 0 3px var(--info-weak)
}
.dash-empty {
  text-align: center;
  color: var(--text-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 22px
}
.dash-todo-ic {
  border-radius: 9px;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 16px;
  display: grid
}
.dash-todo-ic.warn {
  background: var(--warn-weak)
}
.dash-todo-ic.info {
  background: var(--info-weak)
}
.dash-todo-tx {
  flex: 1;
  min-width: 0
}
.dash-todo-tx b {
  font-size: 14px;
  font-weight: 600
}
.dash-todo-n {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 750
}
.dash-todo-n.warn {
  color: var(--warn)
}
.dash-chart {
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  padding: 10px 2px 0;
  display: flex
}
.dash-bar-col {
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
  display: flex
}
.dash-bar-val {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px
}
.dash-bar {
  background: linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 35%,transparent));
  border-radius: 6px 6px 0 0;
  width: 100%;
  max-width: 34px;
  min-height: 2px
}
.dash-bar.today {
  background: linear-gradient(180deg,var(--accent-hover),var(--accent))
}
.dash-bar-day {
  color: var(--text-subtle);
  font-size: 11.5px
}
.dash-bar-day.today {
  color: var(--accent);
  font-weight: 700
}
.dash-chart-foot {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 12.5px;
  display: flex
}
.dash-chart-foot b {
  color: var(--text);
  font-variant-numeric: tabular-nums
}
.dash-mix-bar {
  border-radius: var(--pill);
  height: 14px;
  margin: 2px 0 16px;
  display: flex;
  overflow: hidden
}
.dash-mix-bar i {
  height: 100%;
  display: block
}
.dash-mix-legend {
  gap: 10px;
  display: grid
}
.dash-mix-lr {
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  display: flex
}
.dash-mix-sw {
  border-radius: 3px;
  flex-shrink: 0;
  width: 10px;
  height: 10px
}
.dash-mix-nm {
  color: var(--text-muted)
}
.dash-mix-amt {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-weight: 650
}
.dash-mix-pct {
  text-align: right;
  width: 40px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums
}
.dash-fcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px
}
.dash-fval {
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 750
}
.profit-wallet {
  letter-spacing: 0;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600
}
.dash-fcard.liability {
  border-color: var(--warn-weak)
}
.dash-fcard.liability .dash-fval {
  color: var(--warn)
}
.dash-stats {
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 10px;
  display: grid
}
.dash-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-width: 0;
  padding: 12px 14px
}
.dash-stat .kpi-lab {
  margin-bottom: 6px
}
.dash-stat b {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.15;
  display: block
}
.dash-stat small {
  color: var(--text-subtle);
  margin-top: 5px;
  font-size: 11.5px;
  display: block
}
.dash-pool-top {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  display: flex
}
.dash-pool-top .kpi-lab {
  margin-bottom: 4px
}
.dash-pool-owed {
  text-align: right
}
.dash-pool-owed .dash-fval {
  color: var(--warn)
}
.dash-pool-owed small {
  color: var(--text-subtle);
  margin-top: 3px;
  font-size: 11.5px;
  display: block
}
.dash-peak {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 12.5px
}
.dash-peak b {
  color: var(--text);
  font-variant-numeric: tabular-nums
}
.dash-tl-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  display: flex
}
.dash-tl-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: var(--pill);
  font: inherit;
  cursor: pointer;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600
}
.dash-tl-chip.on {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent)
}
.dash-tl-chip:disabled {
  cursor: default;
  opacity: .6
}
.dash-tl {
  height: calc(var(--tl-lanes,1) * 30px);
  margin-top: 4px;
  position: relative
}
.dash-tl-grid {
  position: absolute;
  inset: 0
}
.dash-tl-grid i {
  background: var(--border);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0
}
.dash-tl-now {
  background: var(--accent);
  z-index: 2;
  width: 2px;
  position: absolute;
  top: -4px;
  bottom: -4px
}
.dash-tl-now span {
  white-space: nowrap;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translate(-50%)
}
.dash-tl-bar {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  min-width: 6px;
  height: 26px;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  position: absolute;
  overflow: hidden
}
.dash-tl-bar:disabled {
  cursor: default
}
.dash-tl-bar.inprogress {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success)
}
.dash-tl-bar.published {
  border-color: var(--info);
  background: var(--info-weak);
  color: var(--info)
}
.dash-tl-bar.est {
  border-right-style: dashed;
  border-right-width: 2px
}
.dash-tl-axis {
  height: 16px;
  margin-top: 22px;
  position: relative
}
.dash-tl-axis span {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 11px;
  position: absolute;
  top: 0
}
.dash-act-metric {
  align-self: start;
  margin-bottom: 4px
}
.dash-act-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  display: flex
}
.dash-act-head .kpi-lab {
  margin-bottom: 4px
}
.dash-act-rate {
  text-align: right
}
.dash-panel-h > .range-toggle {
  padding: 3px
}
.dash-panel-h > .range-toggle .range-btn {
  padding: 4px 10px;
  font-size: 12px
}
@media (width<=1100px) {
  .dash-canvas {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .dash-w[data-size=lg],
  .dash-w[data-size=md] {
    grid-column: span 2
  }
}
@media (width<=700px) {
  .dash-canvas {
    grid-template-columns: minmax(0,1fr)
  }
  .dash-w,
  .dash-w[data-size=lg],
  .dash-w[data-size=md] {
    grid-column: span 1
  }
}
.dash-editbar {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius);
  background: linear-gradient(150deg,var(--accent-weak),transparent 70%),var(--surface);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  display: flex
}
.dash-editbar-tx {
  gap: 3px;
  min-width: 0;
  display: grid
}
.dash-editbar-tx b {
  font-weight: 700
}
.dash-editbar-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.dash-canvas.editing .dash-w {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 6px
}
.dash-canvas.editing .dash-w.dragging {
  opacity: .55;
  border-color: var(--accent)
}
.dash-canvas.editing .dash-w-body {
  pointer-events: none
}
.dash-w-bar {
  align-items: center;
  gap: 8px;
  padding: 2px 2px 8px;
  display: flex
}
.dash-w-name {
  min-width: 0;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden
}
.dash-w-handle {
  color: var(--text-subtle);
  cursor: grab;
  touch-action: none;
  background: 0 0;
  border: 0;
  padding: 2px 4px;
  font-size: 15px;
  line-height: 1
}
.dash-w-handle:active {
  cursor: grabbing
}
.dash-w-sizes {
  gap: 2px;
  display: inline-flex
}
.dash-w-size {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 22px;
  height: 22px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650
}
.dash-w-size.on {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent)
}
.dash-w-hide {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1
}
.dash-w-hide:hover {
  border-color: var(--danger);
  color: var(--danger)
}
.dash-tray {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px
}
.dash-tray-h {
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 650;
  display: flex
}
.dash-tray-items {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.dash-tray-chip {
  border: 1px dashed var(--border-strong);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  font-size: 13px
}
.dash-tray-chip:hover {
  border-color: var(--accent);
  color: var(--accent)
}
@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(.99)
  }
  to {
    opacity: 1;
    transform: none
  }
}
@keyframes toast-countdown {
  0% {
    transform: scaleX(1)
  }
  to {
    transform: scaleX(0)
  }
}
.toast {
  left: 0;
  right: 0;
  top: calc(var(--toast-top,24px) + var(--safe-top));
  z-index: 80;
  pointer-events: none;
  border-radius: var(--radius-sm);
  background: var(--success-solid,var(--success));
  color: #fff;
  width: max-content;
  max-width: min(460px,100vw - 32px);
  box-shadow: var(--shadow-lg);
  border: 1px solid #0000;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 13px 8px 15px 16px;
  font-size: 14px;
  animation: .2s toast-in;
  display: flex;
  position: fixed;
  overflow: hidden
}
.toast-message {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0
}
.toast-action,
.toast-close {
  pointer-events: auto;
  color: #fff;
  cursor: pointer;
  background: #ffffff29;
  border: 0;
  flex: none;
  padding: 0;
  line-height: 1
}
.toast-close {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px
}
.toast-action {
  border-radius: var(--pill);
  height: 26px;
  padding: 0 10px;
  font-size: 13px
}
.toast-action:hover,
.toast-close:hover {
  background: #ffffff4d
}
.toast-countdown {
  transform-origin: 0;
  background: #fff9;
  height: 3px;
  animation: linear forwards toast-countdown;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0
}
.toast-countdown.paused {
  animation-play-state: paused
}
.toast.error {
  background: var(--danger-solid,var(--danger));
  color: #fff
}
.toast.error:not(:has(.toast-countdown)) {
  pointer-events: auto;
  cursor: pointer
}
@media (width<=1100px) {
  .shell {
    grid-template-columns: 1fr
  }
  .sidebar {
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
    z-index: 40;
    flex-flow: wrap;
    align-items: center;
    gap: 12px;
    height: auto;
    max-height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow-y: auto
  }
  .main {
    padding-top: calc(var(--topbar-h,86px) + 12px)
  }
  .toolbar {
    top: var(--topbar-h,86px)
  }
  .toast {
    top: calc(var(--toast-top,calc(var(--topbar-h,86px) + 16px)) + var(--safe-top));
    max-width: calc(100vw - 20px)
  }
  .sidebar-head {
    flex: 1;
    min-width: 0
  }
  .nav-toggle {
    border: 1px solid var(--sidebar-border);
    width: 40px;
    height: 40px;
    color: inherit;
    cursor: pointer;
    background: 0 0;
    border-radius: 10px;
    flex: none;
    place-items: center;
    display: inline-grid
  }
  .nav-toggle svg {
    width: 20px;
    height: 20px
  }
  .sidebar.collapsed .nav-toggle-close,
  .sidebar:not(.collapsed) .nav-toggle-open {
    display: none
  }
  .sidebar.collapsed {
    flex-wrap: nowrap;
    gap: 10px
  }
  .sidebar.collapsed .app-version,
  .sidebar.collapsed .auth-user,
  .sidebar.collapsed .nav,
  .sidebar.collapsed .store-clock,
  .sidebar.collapsed .theme-toggle {
    display: none
  }
  .sidebar.collapsed .scan-button {
    flex: none;
    width: 44px;
    min-height: 40px;
    margin-top: 0;
    padding: 0
  }
  .sidebar.collapsed .brand {
    min-height: 40px
  }
  .sidebar.collapsed .scan-button span {
    display: none
  }
  .brand {
    padding: 0
  }
  .nav {
    flex-wrap: wrap;
    flex: 1;
    margin-top: 0;
    display: flex
  }
  .nav-item.active:before {
    display: none
  }
  .theme-toggle {
    margin-left: auto
  }
  .app-version,
  .auth-user {
    width: 100%
  }
  .app-version {
    padding: 0 12px
  }
  .content-grid,
  .imports-grid {
    grid-template-columns: 1fr
  }
  .imports-grid {
    min-height: 0
  }
}
@media (width>=1101px) and (width<=1399px) {
  .content-grid,
  .imports-grid {
    grid-template-columns: minmax(0,1fr)
  }
  .imports-grid {
    min-height: 0
  }
}
@media (width<=700px) {
  .main {
    padding-right: calc(18px + var(--safe-right));
    padding-bottom: calc(18px + var(--safe-bottom));
    padding-left: calc(18px + var(--safe-left))
  }
  .sidebar {
    flex-direction: column;
    align-items: stretch
  }
  .sidebar.collapsed {
    flex-direction: row;
    align-items: center
  }
  .nav {
    grid-template-columns: repeat(2,1fr);
    display: grid
  }
  .theme-toggle {
    margin-left: 0
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch
  }
  .search {
    min-width: 100%
  }
  table {
    min-width: 760px
  }
  #membersTab table {
    min-width: 0
  }
  #membersTab thead {
    display: none
  }
  #membersTab tbody {
    gap: 10px;
    padding: 10px;
    display: grid
  }
  #membersTab tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px;
    display: grid
  }
  #membersTab tbody tr.active,
  #membersTab tbody tr:hover {
    background: var(--surface-2);
    box-shadow: none
  }
  #membersTab td {
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 0;
    gap: 3px;
    min-width: 0;
    height: auto;
    padding: 0;
    display: grid;
    width: auto!important
  }
  #membersTab td:before {
    content: attr(data-label);
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 11px;
    font-weight: 700
  }
  #membersTab td:nth-child(8) {
    grid-column: 1/-1
  }
  .member-pane[data-member-pane=profile] {
    grid-template-columns: 1fr
  }
  .member-tabs {
    overflow-x: auto
  }
  .modal {
    padding: 12px;
    padding-bottom: calc(12px + var(--safe-bottom))
  }
  .modal-panel {
    max-height: calc(100vh - 24px)
  }
  .invite-result {
    flex-direction: column
  }
}
.tables-grid {
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  align-items: start;
  gap: 16px;
  display: grid
}
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  display: flex
}
.table-card.is-busy {
  border-color: var(--accent-weak-border);
  box-shadow: 0 0 0 1px var(--accent-weak) inset
}
.table-card.is-inactive {
  opacity: .6
}
.table-card-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  display: flex
}
.table-card-head h3 {
  margin: 2px 0 0;
  font-size: 1.15rem
}
.table-status {
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700
}
.table-card.is-busy .table-status {
  color: var(--accent)
}
.table-card-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex
}
.table-card.is-collapsed .table-card-assign,
.table-card.is-collapsed .table-seats {
  display: none
}
.table-card-assign select {
  width: 100%
}
.table-seats {
  grid-template-columns: repeat(5,1fr);
  gap: 6px;
  display: grid
}
.seat {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  height: 84px;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  padding: 6px;
  display: flex;
  overflow: hidden
}
.seat:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text)
}
.seat:disabled {
  cursor: not-allowed;
  opacity: .5
}
.seat.is-taken {
  border-style: solid;
  border-color: var(--accent-weak-border);
  background: var(--accent-weak);
  color: var(--text);
  touch-action: none;
  cursor: grab
}
.seat.seat-dragging {
  opacity: .45;
  cursor: grabbing
}
.tables-grid.seat-drag-active .seat {
  transition: border-color .12s,background .12s
}
.seat.seat-droppable {
  border-style: dashed;
  border-color: var(--accent)
}
.seat.seat-drop-target {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-weak);
  box-shadow: inset 0 0 0 1px var(--accent)
}
.felt-seat.is-taken.seat-drag-ghost,
.seat-drag-ghost,
.seat.is-taken.seat-drag-ghost {
  z-index: 1200;
  pointer-events: none;
  opacity: .92;
  border-color: var(--accent);
  box-shadow: var(--shadow-md,0 6px 18px #00000047);
  will-change: transform;
  cursor: grabbing
}
.seat-no {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700
}
.seat.is-taken .seat-no {
  color: var(--accent)
}
.seat-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden
}
.seat-entries,
.seat-sub {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: .68rem;
  overflow: hidden
}
.seat-entries strong {
  color: var(--accent)
}
.seat-empty {
  align-self: center;
  margin-top: 4px;
  font-size: 1.1rem;
  line-height: 1
}
.table-card-foot {
  border-top: 1px solid var(--border);
  padding-top: 8px
}
.seat-occupant {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  display: flex
}
.seat-candidates {
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  margin-top: 12px;
  display: flex;
  overflow-y: auto
}
.seat-candidate {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 12px;
  display: grid
}
.seat-candidate:hover {
  border-color: var(--accent);
  background: var(--accent-weak)
}
.seat-candidate-name {
  font-weight: 600
}
.seat-candidate-where {
  grid-area: 1/2/span 2;
  align-self: center
}
@media (width<=640px) {
  .tables-grid {
    grid-template-columns: minmax(0,1fr)
  }
  .table-seats {
    grid-template-columns: repeat(4,1fr)
  }
}
.table-tabs {
  scrollbar-width: thin;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  display: flex;
  overflow-x: auto
}
.table-tab {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: .88rem;
  display: inline-flex
}
.table-tab:hover {
  border-color: var(--border-strong);
  color: var(--text)
}
.table-tab.active {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak);
  color: var(--text);
  font-weight: 600
}
.table-tab-dot {
  background: var(--border-strong);
  border-radius: 50%;
  width: 7px;
  height: 7px
}
.table-tab.is-busy .table-tab-dot {
  background: var(--accent)
}
.table-tab-add {
  color: var(--text-muted);
  padding: 8px 12px
}
.table-detail-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  display: flex
}
.table-detail-title {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  display: flex
}
.table-detail-title h1 {
  margin: 0
}
.table-detail-tournament {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  display: inline-flex
}
.table-detail-tournament.is-busy {
  color: var(--accent);
  font-weight: 600
}
.table-detail-tournament.is-busy:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px
}
.table-detail-empty {
  text-align: center;
  padding: 40px 0
}
.table-moving-bar {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius);
  background: var(--accent-weak);
  color: var(--text);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: .9rem;
  display: flex
}
.table-felt {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  min-height: 460px;
  position: relative;
  overflow: hidden
}
.table-felt-oval {
  border: 10px solid var(--surface-3);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 50%;
  position: absolute;
  inset: 12% 14%
}
.table-dealer {
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
  padding: 5px 16px;
  font-size: .8rem;
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translate(-50%)
}
.table-felt-seats {
  position: absolute;
  inset: 0
}
.felt-seat {
  left: var(--seat-x);
  top: var(--seat-y);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  width: 168px;
  color: var(--text-subtle);
  font: inherit;
  text-align: center;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 10px;
  font-size: .84rem;
  line-height: 1.35;
  display: flex;
  position: absolute;
  transform: translate(-50%,-50%)
}
.felt-seat:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text)
}
.felt-seat:disabled {
  cursor: not-allowed;
  opacity: .55
}
.felt-seat.is-taken {
  border-style: solid;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm)
}
.felt-seat-no {
  background: var(--surface-3);
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  border-radius: 50%;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  position: absolute;
  top: -10px;
  left: -10px
}
.felt-seat.is-taken .felt-seat-no {
  background: var(--accent);
  color: var(--accent-contrast)
}
.felt-seat-name {
  font-weight: 600
}
.felt-seat-entries,
.felt-seat-no-text {
  color: var(--text-muted);
  font-size: .78rem
}
.felt-seat-entries strong {
  color: var(--accent)
}
.felt-seat-empty {
  color: var(--text-subtle)
}
.table-felt-seats.is-moving .felt-seat:not(:disabled) {
  border-color: var(--accent);
  border-style: dashed
}
.table-felt-seats.is-moving .felt-seat.is-moving-self {
  box-shadow: 0 0 0 3px var(--ring);
  border-style: solid
}
.felt-seat.is-taken {
  touch-action: none;
  cursor: grab
}
.felt-seat.seat-dragging {
  opacity: .45;
  cursor: grabbing
}
.table-felt-seats.seat-drag-active .felt-seat {
  transition: border-color .12s,background .12s
}
.felt-seat.seat-droppable {
  border-style: dashed;
  border-color: var(--accent)
}
.felt-seat.seat-drop-target {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-weak);
  box-shadow: inset 0 0 0 1px var(--accent)
}
.felt-clock {
  text-align: center;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(330px,34%);
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%)
}
.felt-clock > * {
  pointer-events: auto
}
.felt-clock-name {
  letter-spacing: .02em;
  font-size: .92rem;
  font-weight: 600
}
.felt-clock-phase {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 2px 12px;
  font-size: .8rem
}
.felt-clock-phase.break {
  border-color: var(--warn);
  background: var(--warn-weak);
  color: var(--warn)
}
.felt-clock-blinds {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700
}
.felt-clock-countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1
}
.felt-clock-countdown.paused {
  color: var(--text-subtle)
}
.felt-clock-schedule {
  margin: 0;
  font-size: .78rem
}
.felt-clock-controls {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface);
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px;
  display: flex
}
.felt-clock-button {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  font-size: .95rem;
  display: grid
}
.felt-clock-button:hover {
  background: var(--surface-3);
  color: var(--text)
}
.felt-clock.is-idle .felt-clock-blinds,
.felt-clock.is-idle .felt-clock-controls,
.felt-clock.is-idle .felt-clock-countdown,
.felt-clock.is-idle .felt-clock-phase {
  display: none
}
.felt-clock.is-idle .felt-clock-name {
  color: var(--text-muted);
  font-weight: 500
}
.seat-action-menu {
  z-index: 60;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 190px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 6px;
  display: flex;
  position: fixed
}
.seat-action-who {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 6px 10px 8px;
  font-size: .8rem
}
.seat-action {
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 9px 12px
}
.seat-action:hover {
  background: var(--surface-2)
}
.seat-action.move:hover {
  background: var(--accent-weak);
  color: var(--accent)
}
.seat-action.danger {
  color: var(--danger)
}
.seat-action.danger:hover {
  background: var(--danger-weak)
}
@media (width<=900px) {
  .table-felt {
    aspect-ratio: auto;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    display: flex
  }
  .table-dealer,
  .table-felt-oval {
    display: none
  }
  .table-felt-seats {
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap: 18px 10px;
    margin-top: 8px;
    display: grid;
    position: static
  }
  .felt-seat {
    width: auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none
  }
  .felt-clock {
    order: -1;
    width: auto;
    margin-bottom: 12px;
    position: static;
    transform: none
  }
}
.staff-register {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  grid-template-columns: minmax(200px,320px) auto;
  align-items: end;
  gap: 8px 12px;
  padding: 12px 16px;
  display: grid
}
.staff-register .search {
  margin: 0
}
.staff-register .meta {
  grid-column: 1/-1;
  margin: 0
}
@media (width<=640px) {
  .staff-register {
    grid-template-columns: 1fr
  }
}
.rules-editor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  display: flex
}
.rules-editor textarea {
  resize: vertical;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  line-height: 1.7
}
.vendor-mail-form textarea {
  font-family: inherit
}
.vendor-mail-actions {
  justify-content: flex-end;
  display: flex
}
.vendor-mail-history {
  margin-top: 24px
}
.vendor-mail-history h2 {
  margin: 0 0 10px;
  font-size: 15px
}
.vendor-mail-history .filterbar {
  max-width: 96ch;
  margin-bottom: 12px
}
.vendor-mail-list {
  flex-direction: column;
  gap: 10px;
  max-width: 96ch;
  display: flex
}
.vendor-mail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px
}
.vendor-mail-item header {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex
}
.vendor-mail-item h3 {
  margin: 0;
  font-size: 14.5px
}
.vendor-mail-item header time {
  color: var(--text-subtle);
  flex: none;
  font-size: 12.5px
}
.vendor-mail-item .mail-body {
  color: var(--text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 8px;
  font-size: 13.5px
}
.vendor-mail-item footer {
  color: var(--text-subtle);
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  display: flex
}
.vendor-mail-item .mail-read {
  color: var(--success)
}
.store-profile-row {
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  display: flex
}
.store-profile-row label {
  flex: 180px;
  min-width: 0
}
.store-profile-row .button {
  flex: none
}
.member-theme-field {
  gap: 8px;
  display: grid
}
.member-theme-field .member-theme-label {
  gap: 2px;
  display: grid
}
.theme-picker {
  grid-template-columns: repeat(auto-fill,minmax(132px,1fr));
  gap: 10px;
  display: grid
}
.theme-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  justify-items: start;
  gap: 6px;
  padding: 10px;
  transition: border-color .15s,box-shadow .15s;
  display: grid
}
.theme-option:hover:not(:disabled) {
  border-color: var(--border-strong)
}
.theme-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-weak-border)
}
.theme-option:disabled {
  cursor: default;
  opacity: .6
}
.theme-swatch {
  border-radius: var(--radius-sm);
  border: 1px solid #ffffff14;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 8px;
  display: flex
}
.theme-swatch-card {
  border-radius: 6px;
  flex: 1;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700
}
.theme-swatch-pill {
  border-radius: 999px;
  flex: none;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700
}
.theme-option-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700
}
.theme-option-note {
  color: var(--text-subtle);
  font-size: 12px
}
.store-profile-toggles {
  border-top: 1px solid var(--border);
  justify-items: start;
  gap: 6px;
  padding-top: 4px;
  display: grid
}
.store-profile-toggles .meta {
  margin-bottom: 8px
}
#storeHoursOpen {
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 400;
  line-height: 1.5
}
#storeHoursOpen.is-unset {
  color: var(--text-subtle)
}
.store-hours-panel {
  flex-direction: column;
  width: min(1040px,100%);
  max-height: 92vh;
  display: flex
}
.store-hours-body {
  padding: 0 4px 4px;
  overflow-y: auto
}
.store-hours-body .bh-section {
  background: 0 0;
  border: none;
  border-radius: 0;
  max-width: none;
  margin-top: 20px;
  padding: 0
}
.store-hours-body .bh-section + .bh-section {
  border-top: 1px solid var(--border);
  padding-top: 20px
}
.store-hours-body .bh-section:first-child {
  margin-top: 0
}
.store-hours-footer {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  display: flex
}
.store-hours-footer .meta {
  margin: 0
}
.bh-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 96ch;
  margin-top: 24px;
  padding: 16px
}
.bh-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  display: flex
}
.bh-head h2 {
  margin: 0 0 2px;
  font-size: 16px
}
.bh-head .meta {
  max-inline-size: 68ch;
  margin: 0
}
.bh-head-actions {
  flex: none;
  gap: 8px;
  display: flex
}
.bh-rules {
  flex-direction: column;
  display: flex
}
.bh-rule {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  display: flex
}
.bh-rule:first-child {
  padding-top: 0
}
.bh-days {
  flex-wrap: wrap;
  gap: 5px;
  display: flex
}
.bh-day {
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  min-width: 34px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 5px 0;
  font-size: 13px
}
.bh-day:hover:not(:disabled) {
  border-color: var(--border-strong)
}
.bh-day.on {
  background: var(--accent-weak);
  border-color: var(--accent-weak-border);
  color: var(--accent);
  font-weight: 600
}
.bh-day:disabled {
  cursor: default;
  opacity: .7
}
.bh-times {
  align-items: center;
  gap: 8px;
  display: flex
}
.bh-times input[type=time] {
  width: 150px
}
.bh-arrow {
  color: var(--text-subtle)
}
.bh-flag {
  border-radius: var(--radius-sm);
  background: var(--warn-weak);
  color: var(--warn);
  flex: none;
  padding: 2px 8px;
  font-size: 12px
}
.bh-remove {
  color: var(--text-subtle);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: 0 0;
  border: none;
  padding: 4px 6px;
  font-size: 15px;
  line-height: 1
}
.bh-remove:hover:not(:disabled) {
  background: var(--danger-weak);
  color: var(--danger)
}
.bh-week {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px
}
.bh-week-title {
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 13px
}
.bh-week-title small {
  color: var(--text-subtle);
  margin-left: 8px
}
.bh-week-grid {
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 5px 10px;
  display: grid
}
.bh-week-day {
  color: var(--text-muted);
  text-align: center;
  font-size: 12.5px
}
.bh-axis {
  height: 14px;
  position: relative
}
.bh-axis span {
  color: var(--text-subtle);
  font-size: 11px;
  position: absolute
}
.bh-axis-end {
  right: 0
}
.bh-track {
  border-radius: var(--pill);
  background: var(--surface-3);
  height: 11px;
  position: relative;
  overflow: hidden
}
.bh-bar {
  border-radius: var(--pill);
  background: var(--accent);
  position: absolute;
  inset-block: 0
}
.bh-midnight {
  inset-block: 0;
  background: var(--border-strong);
  width: 1px;
  position: absolute;
  left: 80%
}
.bh-cal-nav {
  flex: none;
  align-items: center;
  gap: 8px;
  display: flex
}
.bh-cal-nav span {
  text-align: center;
  min-width: 106px;
  font-size: 14px
}
.bh-cal-nav .button {
  padding: 4px 12px
}
.bh-cal {
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
  display: grid
}
.bh-cal-head {
  text-align: center;
  color: var(--text-subtle);
  padding-bottom: 4px;
  font-size: 12px
}
.bh-cal-day {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  font: inherit;
  color: var(--text);
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  display: flex
}
.bh-cal-day:hover {
  border-color: var(--border-strong)
}
.bh-cal-day.outside {
  opacity: .45
}
.bh-cal-day.today {
  border-color: var(--accent-weak-border)
}
.bh-cal-num {
  font-size: 13px;
  font-weight: 600
}
.bh-cal-day.today .bh-cal-num {
  color: var(--accent)
}
.bh-cal-label {
  color: var(--text-subtle);
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.35
}
.bh-cal-day.exception {
  background: var(--info-weak);
  border-color: var(--info)
}
.bh-cal-day.exception .bh-cal-label {
  color: var(--info)
}
.bh-cal-day.closed .bh-cal-label {
  color: var(--text-subtle)
}
.bh-cal-day.exception.closed {
  background: var(--danger-weak);
  border-color: var(--danger-border)
}
.bh-cal-day.exception.closed .bh-cal-label {
  color: var(--danger)
}
.bh-cal-note {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  font-size: 11px
}
.bh-cal-day.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px
}
.bh-cal-bar {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  display: flex
}
.bh-cal-selection {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px
}
.bh-cal-bar-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.bh-cal-bar-row input[type=time] {
  width: 150px
}
.bh-cal-bar-row #storeHoursCalNote {
  flex: 220px;
  min-width: 0
}
@media (width<=720px) {
  .bh-cal-day {
    min-height: 56px;
    padding: 4px
  }
  .bh-cal-label,
  .bh-cal-note {
    font-size: 10px
  }
  .bh-rule {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }
}
.rules-preview-panel {
  width: 100%;
  max-width: 640px
}
.rules-scroll {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  white-space: pre-wrap;
  max-height: 46vh;
  padding: 14px 16px;
  font-size: .92rem;
  line-height: 1.8;
  overflow-y: auto
}
.rules-agree {
  margin-top: 14px
}
.rules-agree input:disabled + span {
  color: var(--text-muted)
}
.push-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(0,1fr) 320px;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  display: grid
}
.push-compose {
  gap: 14px;
  min-width: 0;
  display: grid
}
.push-targets {
  grid-template-columns: 240px minmax(0,1fr);
  align-items: end;
  gap: 14px;
  display: grid
}
.push-members {
  grid-column: 1/-1;
  gap: 8px;
  display: grid
}
.push-member-search-row {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  display: flex
}
.push-member-search-row > label:first-child {
  flex: 1;
  min-width: min(260px,100%)
}
.push-member-search-row .check {
  padding-bottom: 8px
}
.push-member-results {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  gap: 4px;
  max-height: 240px;
  padding: 6px;
  display: grid;
  overflow-y: auto
}
.staff-register-pending {
  border-top: 1px solid var(--border);
  margin: 2px 0 0;
  padding-top: 6px;
  line-height: 1.6
}
.staff-register-pending .link-button {
  margin-left: 4px;
  font-weight: 650
}
.push-member-result {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex
}
.push-member-result:hover {
  background: var(--surface-2)
}
.push-member-result.picked {
  background: var(--accent-weak)
}
.push-member-result small {
  display: block
}
.push-member-selected-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex
}
.push-member-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex
}
.push-member-chip {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  font-size: 12.5px;
  display: inline-flex
}
.push-member-chip button {
  color: var(--text-muted);
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 999px;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1
}
.push-member-chip button:hover {
  color: var(--danger);
  background: var(--danger-weak)
}
.push-side {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  align-content: start;
  gap: 12px;
  padding: 14px;
  display: grid
}
.push-form textarea {
  resize: vertical;
  line-height: 1.7
}
.push-line-toggle {
  white-space: normal;
  align-items: start;
  padding: 10px 12px;
  line-height: 1.5
}
.push-actions {
  gap: 8px;
  display: grid
}
.push-actions .button {
  white-space: normal;
  width: 100%;
  padding: 8px 15px;
  line-height: 1.35
}
.push-warning {
  border-radius: var(--radius-sm);
  background: var(--warn-weak);
  color: var(--warn);
  margin: 0;
  padding: 10px 12px
}
.push-table td:first-child,
.push-table th:first-child {
  width: 12%
}
.push-table td:nth-child(2),
.push-table th:nth-child(2) {
  width: 16%
}
.push-table td:nth-child(3),
.push-table th:nth-child(3) {
  width: 6%
}
.push-table td:nth-child(4),
.push-table th:nth-child(4) {
  width: 9%
}
.push-table td:nth-child(5),
.push-table th:nth-child(5) {
  width: 6%
}
.push-table td:nth-child(6),
.push-table th:nth-child(6) {
  width: 12%
}
.push-table td:nth-child(7),
.push-table th:nth-child(7) {
  width: 39%
}
.push-read-count {
  color: var(--text-muted)
}
.push-read-count b {
  color: var(--text);
  font-weight: 650
}
.push-history-content {
  color: var(--text-muted)
}
.push-history-controls {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  display: flex
}
.push-history-controls .push-history-search {
  min-width: min(240px,100%)
}
@media (width<=1000px) {
  .push-form,
  .push-targets {
    grid-template-columns: minmax(0,1fr)
  }
}
.member-line-section {
  border-top: 1px solid var(--border-soft,#80808040);
  gap: 10px;
  padding-top: 14px;
  display: grid
}
.member-line-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  display: flex
}
.bind-result-panel {
  width: min(560px,100%)
}
.bind-result-body {
  justify-items: start;
  gap: 10px;
  padding: 0 14px 14px;
  display: grid
}
.bind-qr svg {
  background: #fff;
  border-radius: 8px;
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: 8px
}
.bind-link-row {
  gap: 8px;
  width: 100%;
  max-width: 560px;
  display: flex
}
.bind-link-row input {
  flex: 1;
  min-width: 0;
  font-size: 12.5px
}
.id-card-section {
  flex-direction: column;
  gap: 8px;
  display: flex
}
.id-card-images {
  flex-wrap: wrap;
  gap: 12px;
  display: flex
}
.id-card-figure {
  color: var(--text-subtle);
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  display: flex
}
.id-card-figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 220px;
  max-width: 100%;
  display: block
}
.push-schedule-days {
  gap: 6px;
  display: grid
}
.push-schedule-days > span {
  display: block
}
.push-schedule-day-list {
  flex-wrap: wrap;
  gap: 6px 14px;
  display: flex
}
.push-schedule-table td:nth-child(2),
.push-schedule-table th:nth-child(2) {
  width: 11%
}
.push-schedule-table td:nth-child(3),
.push-schedule-table th:nth-child(3) {
  width: 16%
}
.push-schedule-table td:nth-child(4),
.push-schedule-table th:nth-child(4) {
  width: 12%
}
.push-schedule-table td:nth-child(6),
.push-schedule-table th:nth-child(6) {
  width: 15%
}
.tournament-schedule-table {
  min-width: 1080px
}
.tournament-schedule-table td:nth-child(3),
.tournament-schedule-table th:nth-child(3) {
  width: 176px
}
.tournament-schedule-table td:nth-child(4),
.tournament-schedule-table td:nth-child(5),
.tournament-schedule-table td:nth-child(6),
.tournament-schedule-table th:nth-child(4),
.tournament-schedule-table th:nth-child(5),
.tournament-schedule-table th:nth-child(6) {
  width: 152px
}
.tournament-schedule-table td:nth-child(7),
.tournament-schedule-table th:nth-child(7) {
  width: 200px
}
.tournament-schedule-table td:nth-child(5),
.tournament-schedule-table td:nth-child(6) {
  white-space: normal
}
.tournament-schedule-table td:nth-child(5) small,
.tournament-schedule-table td:nth-child(6) small {
  display: block
}
.tournament-schedule-tournament-table {
  min-width: 940px
}
.tournament-schedule-tournament-table td:nth-child(2),
.tournament-schedule-tournament-table th:nth-child(2) {
  width: 20%
}
.tournament-schedule-tournament-table td:nth-child(3),
.tournament-schedule-tournament-table th:nth-child(3) {
  width: 152px
}
.tournament-schedule-tournament-table td:nth-child(4),
.tournament-schedule-tournament-table th:nth-child(4) {
  width: 108px
}
.tournament-schedule-tournament-table td:nth-child(5),
.tournament-schedule-tournament-table th:nth-child(5) {
  width: 88px
}
.tournament-schedule-tournament-table td:nth-child(6),
.tournament-schedule-tournament-table th:nth-child(6) {
  width: 116px
}
.tournament-schedule-tournament-table td:nth-child(7),
.tournament-schedule-tournament-table th:nth-child(7) {
  width: 96px
}
.tournament-schedule-table .row-actions,
.tournament-schedule-tournament-table .row-actions {
  min-width: 0
}
.tournament-schedule-table .row-actions .button,
.tournament-schedule-tournament-table .row-actions .button {
  margin: 0
}
.table-panel > .pager {
  position: sticky;
  left: 0
}
.schedule-generated-heading {
  margin: 30px 0 12px
}
.schedule-generated-heading h2 {
  margin: 0 0 4px;
  font-size: 20px
}
.push-schedule-result {
  max-width: 100%
}
.push-schedule-result .badge {
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 100%;
  display: inline-block;
  overflow: hidden
}
.tournament-roster-panel {
  margin-top: 16px;
  padding: 16px
}
.roster-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  display: flex
}
.roster-head h2 {
  font-size: 16px;
  font-weight: 700
}
.roster-head .staff-register {
  background: 0 0;
  border: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  display: flex
}
.roster-head .staff-register input[type=search] {
  width: min(300px,60vw)
}
.roster-hint {
  margin: 8px 0 0
}
.tournament-roster-panel {
  overflow: visible
}
.roster-table-wrap {
  margin-top: 12px;
  overflow-x: auto
}
@media (width>=701px) and (width<=1100px) {
  .roster-head {
    top: var(--sticky-stack-h,0);
    z-index: 15;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    margin: -16px -16px 4px;
    padding: 12px 16px 8px;
    position: sticky
  }
}
.announcement-preview-field {
  gap: 6px;
  display: grid
}
.announcement-preview-stage {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #000;
  width: 100%;
  position: relative;
  overflow: hidden
}
.announcement-preview-frame {
  transform-origin: 0 0;
  pointer-events: none;
  border: 0;
  width: 1280px;
  height: 720px;
  position: absolute;
  top: 0;
  left: 0
}
.pair-gate-card {
  text-align: left;
  justify-items: stretch;
  width: min(420px,100%)
}
.pair-gate-card .brand-mark,
.pair-gate-card > div:nth-child(2) {
  text-align: center;
  justify-self: center
}
.pair-gate-field {
  gap: 6px;
  display: grid
}
.pair-gate-field.hidden {
  display: none
}
.rules-editor .field-hint,
.rules-editor .meta,
.workspace > .meta {
  max-inline-size: 68ch
}
.rules-editor textarea {
  max-width: 96ch
}
.report-cards {
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr))
}
@media (width>=721px) {
  .detail-rules {
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr))
  }
}
@media (width>=1900px) {
  .dash-canvas {
    grid-template-columns: repeat(6,minmax(0,1fr))
  }
}
#tvAnnouncementModal .announcement-panel {
  width: min(1600px,100%)
}
@media (width>=1100px) {
  #tvAnnouncementForm {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: start
  }
  #tvAnnouncementForm > .announcement-preview-field {
    grid-area: 1/2/span 5
  }
  #tvAnnouncementForm > #tvAnnouncementPreviewHint,
  #tvAnnouncementForm > .announcement-actions {
    grid-column: 1/-1
  }
}
.push-form {
  max-width: 1280px
}
@media (width>=1001px) {
  .push-form {
    grid-template-columns: minmax(0,1fr) 360px
  }
  .push-targets {
    grid-template-columns: repeat(auto-fit,minmax(220px,300px));
    justify-content: start
  }
}
.push-content textarea {
  max-width: none
}
#storeProfileForm {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 14px 18px;
  display: grid
}
#storeProfileForm > .member-theme-field,
#storeProfileForm > .meta,
#storeProfileForm > .store-profile-toggles,
#storeProfileForm > div:last-child {
  grid-column: 1/-1
}
#storeProfileForm > label:has(#storeProfileAddress) {
  grid-column: 1/-1
}
#storeProfileForm > label:has(#storeProfileMapUrl) {
  grid-column: 1/-1
}
#storeProfileForm > .meta {
  max-inline-size: 68ch
}
@media (width<=900px) {
  #storeProfileForm {
    grid-template-columns: minmax(0,1fr)
  }
}
.store-profile-toggles .check {
  white-space: normal;
  align-items: start;
  padding: 10px 12px;
  line-height: 1.5
}
.referral-layout {
  grid-template-columns: 300px minmax(0,1fr);
  align-items: start;
  gap: 16px;
  display: grid
}
.referral-side {
  max-height: 640px;
  overflow-y: auto
}
.referral-leaders {
  gap: 6px;
  padding: 10px;
  display: grid
}
.referral-leader {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: inherit;
  cursor: pointer;
  gap: 2px;
  padding: 10px 12px;
  display: grid
}
.referral-leader:hover {
  border-color: var(--accent)
}
.referral-leader-name {
  font-weight: 700
}
.referral-leader-stats {
  color: var(--text-muted);
  font-size: 12px
}
.referral-leader-stats b {
  color: var(--accent)
}
.referral-canvas-panel {
  flex-direction: column;
  display: flex
}
.referral-canvas-actions {
  gap: 6px;
  display: flex
}
.referral-ancestors {
  padding: 0 14px 8px
}
.referral-canvas {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 1px 1px,var(--border) 1px,transparent 0) 0 0/24px 24px;
  cursor: grab;
  touch-action: none;
  height: 560px;
  position: relative;
  overflow: hidden
}
.referral-canvas.dragging {
  cursor: grabbing
}
.referral-canvas svg {
  width: 100%;
  height: 100%
}
.referral-edge {
  fill: none;
  stroke: var(--border-strong,#37453f);
  stroke-width: 2px
}
.referral-edge.manual {
  stroke-dasharray: 5 4;
  stroke: var(--text-subtle)
}
.referral-node {
  cursor: pointer
}
.referral-node:focus {
  outline: 0
}
.referral-node:focus .referral-box,
.referral-node:hover .referral-box {
  stroke: var(--accent);
  stroke-width: 2px
}
.referral-box {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1px
}
.referral-box.depth-0 {
  fill: var(--accent-weak);
  stroke: var(--accent)
}
.referral-box.depth-1 {
  fill: var(--surface-3,#202b27)
}
.referral-box.depth-2,
.referral-box.depth-3,
.referral-box.depth-4 {
  fill: var(--surface-2)
}
.referral-name {
  fill: var(--text);
  font-size: 14px;
  font-weight: 700
}
.referral-no {
  fill: var(--text-subtle);
  font-size: 11px
}
.referral-stat {
  fill: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px
}
.referral-toggle circle {
  fill: var(--surface);
  stroke: var(--border)
}
.referral-toggle text {
  fill: var(--text-muted);
  font-size: 13px;
  font-weight: 700
}
.referral-toggle:hover circle {
  stroke: var(--accent)
}
.referral-legend {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 10px 14px;
  display: flex
}
.referral-legend-item {
  align-items: center;
  gap: 6px;
  display: inline-flex
}
.referral-swatch {
  border-top: 2px solid var(--border-strong,#37453f);
  width: 22px;
  height: 0;
  display: inline-block
}
.referral-swatch.dashed {
  border-top-style: dashed;
  border-color: var(--text-subtle)
}
.referral-picker {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px;
  display: grid
}
.referral-results {
  gap: 4px;
  max-height: 240px;
  display: grid;
  overflow-y: auto
}
.referral-result {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: inherit;
  cursor: pointer;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  display: flex
}
.member-referrer-results {
  max-height: 168px
}
.member-referrer-results:empty {
  display: none
}
.member-referrer-results .meta {
  overflow-wrap: anywhere
}
.member-referrer-picked {
  border: 1px solid var(--accent-weak-border,var(--border));
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 6px 0 13px;
  display: flex
}
.member-referrer-picked span {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 15px
}
@media (width<=1100px) {
  .referral-layout {
    grid-template-columns: 1fr
  }
  .referral-side {
    max-height: 260px
  }
  .referral-picker {
    grid-template-columns: 1fr
  }
}
.pager {
  flex-wrap: wrap;
  gap: 6px 10px;
  height: auto;
  min-height: 56px;
  padding: 10px 14px
}
.pager-pages {
  align-items: center;
  gap: 4px;
  display: flex
}
.pager-page {
  border-radius: var(--radius-sm);
  min-width: 34px;
  height: 34px;
  color: var(--text-muted);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  padding: 0 8px
}
.pager-page:hover {
  border-color: var(--border);
  color: var(--text)
}
.pager-page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast,#04130e);
  font-weight: 700
}
.pager-gap {
  color: var(--text-subtle);
  padding: 0 2px
}
.pager-jump {
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  display: inline-flex
}
.pager-jump input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 68px;
  height: 34px;
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 0 8px
}
.pager-total {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  margin-left: auto
}
@media (width<=900px) {
  .pager-pages {
    display: none
  }
  .pager-total {
    margin-left: 0
  }
}
.finance-columns {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  display: grid
}
.finance-column {
  align-content: start;
  gap: 10px;
  min-width: 0;
  display: grid
}
.finance-column .finance-list {
  max-height: 220px;
  overflow-y: auto
}
@media (width<=900px) {
  .finance-columns {
    grid-template-columns: 1fr
  }
}
.member-tag-assign {
  gap: 8px;
  margin-top: 6px;
  display: grid
}
.member-tag-panel {
  border: 1px solid var(--line);
  background: var(--surface-2,#7f7f7f0d);
  border-radius: 10px;
  gap: 8px;
  max-width: 560px;
  padding: 10px 12px;
  display: grid
}
.member-tag-toggle {
  border: 1px dashed var(--line);
  color: inherit;
  cursor: pointer;
  opacity: .72;
  white-space: nowrap;
  background: 0 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .8rem
}
.member-tag-toggle:hover {
  opacity: 1
}
.member-tag-chips {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.member-tag-chip {
  border: 1px solid var(--line);
  background: var(--surface-2,#7f7f7f14);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  font-size: .86rem;
  display: inline-flex
}
.member-tag-chip i {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px
}
.member-tag-chip em {
  opacity: .62;
  padding-left: 2px;
  font-size: .74rem;
  font-style: normal
}
.member-tag-chip.auto {
  border-style: dashed
}
.member-tag-chip.excluded {
  opacity: .7;
  border-style: dashed;
  text-decoration: line-through
}
.member-tag-chip.excluded em {
  text-decoration: none
}
.member-tag-chip .chip-action {
  cursor: pointer;
  color: inherit;
  opacity: .7;
  background: 0 0;
  border: 0;
  padding: 0 4px;
  font-size: .78rem;
  line-height: 1;
  text-decoration: none
}
.member-tag-chip .chip-action:hover {
  opacity: 1
}
.member-tag-chip .chip-action.remove {
  font-size: 1.05rem
}
.member-tag-chip.excluded .chip-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  text-decoration: none
}
.member-tag-add {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.member-tag-add select {
  min-width: 200px;
  max-width: 280px
}
.id-card-empty {
  border: 1px dashed var(--line);
  width: 220px;
  max-width: 100%;
  min-height: 140px;
  color: var(--muted,#888);
  background: var(--surface-2,#7f7f7f0d);
  border-radius: 10px;
  place-items: center;
  font-size: .88rem;
  display: grid
}
.id-card-figure figcaption {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex
}
.id-card-figure .id-card-actions {
  align-items: center;
  gap: 6px;
  display: flex
}
.id-card-figure .id-card-upload {
  padding: 2px 10px;
  font-size: .8rem
}
.button.primary {
  background: var(--accent);
  background: linear-gradient(180deg,var(--accent-hover),var(--accent));
  box-shadow: inset 0 1px 0 #ffffff38,0 8px 18px -10px var(--ring)
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  background: linear-gradient(180deg,var(--accent-hover),var(--accent-hover))
}
.kpi {
  background: linear-gradient(180deg,#ffffff0a,#fff0 46%),var(--surface);
  box-shadow: inset 0 1px 0 #ffffff0d,var(--shadow-sm)
}
.kpi.hero {
  box-shadow: inset 0 1px 0 #ffffff0f,0 0 30px -14px var(--ring),var(--shadow-sm)
}
.dash-panel {
  box-shadow: inset 0 1px 0 #ffffff0a,var(--shadow-sm)
}
.payout-custom-fill {
  align-items: center;
  gap: 6px;
  display: inline-flex
}
.payout-custom-fill input {
  width: clamp(140px,22vw,220px);
  min-width: 0
}
.subtab-count {
  background: var(--danger);
  color: #fff;
  vertical-align: 1px;
  border-radius: 999px;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid
}
.approval-review {
  align-self: start;
  gap: 16px;
  padding: 18px;
  display: grid
}
@media (width>=1101px) and (width<=1399px) {
  .approval-review {
    align-self: stretch
  }
}
.approval-review-empty {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7
}
.approval-review-body {
  gap: 16px;
  min-width: 0;
  display: grid
}
.approval-section-title {
  color: var(--text-muted);
  letter-spacing: .02em;
  margin: 0;
  font-size: 13px;
  font-weight: 700
}
.approval-facts {
  grid-template-columns: auto minmax(0,1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 13.5px;
  display: grid
}
.approval-facts dt {
  color: var(--text-muted);
  white-space: nowrap
}
.approval-facts dd {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0
}
.approval-facts dd.is-missing {
  color: var(--danger)
}
#approvalRows tr {
  cursor: pointer
}
#approvalRows tr.active {
  background: var(--surface-2)
}
.notify-dock {
  flex: none;
  margin-top: auto;
  position: relative
}
.notify-dock ~ .theme-toggle {
  margin-top: 0
}
.notify-button {
  width: 100%;
  margin-top: 0
}
.nav-count {
  background: var(--danger-solid,var(--danger));
  color: #fff;
  border-radius: 999px;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid
}
.notify-panel {
  z-index: 60;
  background: var(--surface);
  width: min(340px,100vw - 32px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg,0 18px 40px -18px #00000080);
  gap: 0;
  display: grid;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  overflow: hidden
}
.notify-panel-foot,
.notify-panel-head {
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex
}
.notify-panel-head {
  border-bottom: 1px solid var(--border)
}
.notify-panel-foot {
  border-top: 1px solid var(--border)
}
.notify-panel-foot:has(>.hidden) {
  display: none
}
.notify-list {
  max-height: min(420px,60vh);
  overflow-y: auto
}
@media (width<=1100px) {
  .notify-panel {
    grid-template-rows: auto minmax(0,1fr) auto;
    width: auto;
    max-height: min(70dvh,520px);
    position: fixed;
    inset: auto 12px 12px
  }
  .notify-list {
    max-height: none
  }
}
.notify-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  gap: 2px;
  padding: 10px 12px;
  display: grid
}
.notify-item:last-child {
  border-bottom: 0
}
.notify-item:hover {
  background: var(--surface-2)
}
.notify-item.unread {
  box-shadow: inset 3px 0 0 var(--accent)
}
.notify-item-title {
  font-size: 13px;
  font-weight: 700
}
.notify-item-body {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  font-size: 13px
}
.notify-item-time {
  color: var(--text-subtle,var(--text-muted));
  font-size: 11.5px
}
.notify-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 22px 12px;
  font-size: 13px
}
@media (width<=700px) {
  .notify-panel {
    width: auto;
    left: 0;
    right: 0
  }
}
.store-switch {
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  background: var(--sidebar-elevated);
  width: 32px;
  height: 32px;
  color: var(--sidebar-text);
  cursor: pointer;
  flex: none;
  place-items: center;
  padding: 0;
  transition: background-color .15s,border-color .15s;
  display: inline-grid
}
.store-switch svg {
  width: 16px;
  height: 16px
}
.store-switch:hover {
  background: var(--sidebar-hover);
  border-color: #ffffff29
}
.store-switch:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.store-switch-panel {
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  background: var(--sidebar-elevated);
  gap: 0;
  margin: 4px 0 8px;
  display: grid;
  overflow: hidden
}
.store-switch-head {
  border-bottom: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  opacity: .75;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700
}
.store-switch-list {
  max-height: 40vh;
  display: grid;
  overflow-y: auto
}
.store-switch-item {
  border: 0;
  border-bottom: 1px solid var(--sidebar-border);
  width: 100%;
  color: var(--sidebar-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  gap: 2px;
  padding: 9px 12px;
  display: grid
}
.store-switch-item:last-child {
  border-bottom: 0
}
.store-switch-item:hover:not(:disabled) {
  background: var(--sidebar-hover)
}
.store-switch-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
  cursor: default
}
.store-switch-item strong {
  overflow-wrap: anywhere;
  font-size: 13.5px
}
.store-switch-item .meta {
  color: var(--text-subtle);
  font-size: 11.5px
}
.store-switch-note {
  border-top: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  opacity: .7;
  margin: 0;
  padding: 8px 12px;
  font-size: 11.5px
}
@media (width<=1100px) {
  .sidebar.collapsed .notify-dock,
  .sidebar.collapsed .store-switch,
  .sidebar.collapsed .store-switch-panel {
    display: none
  }
}
.store-picker-note.is-info {
  color: var(--text-muted)
}
@media (width<=1100px) {
  .sidebar:not(.collapsed) .sidebar-head {
    flex-basis: 100%
  }
  .brand > div {
    min-width: 0
  }
}
.tournament-roster-panel .reg-table th:nth-child(5) {
  white-space: normal;
  line-height: 1.25
}
.tournament-roster-panel .reg-table td:nth-child(3),
.tournament-roster-panel .reg-table td:nth-child(4),
.tournament-roster-panel .reg-table td:nth-child(5),
.tournament-roster-panel .reg-table td:nth-child(6),
.tournament-roster-panel .reg-table th:nth-child(3),
.tournament-roster-panel .reg-table th:nth-child(4),
.tournament-roster-panel .reg-table th:nth-child(5),
.tournament-roster-panel .reg-table th:nth-child(6) {
  padding-left: 8px;
  padding-right: 8px
}
.tournament-roster-panel .reg-table td:nth-child(5) .meta {
  white-space: normal;
  line-height: 1.3
}
.disburse-table {
  table-layout: auto;
  min-width: 900px
}
.disburse-table th {
  z-index: 1;
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  top: 0
}
.disburse-table td {
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible
}
.disburse-table .cell-title {
  font-weight: 600
}
.disburse-table td[title] {
  cursor: help
}
@media (width<=1100px) {
  .stack-input {
    font-size: 13px
  }
}
.access-banner {
  border: 1px solid var(--danger);
  border-radius: var(--radius,10px);
  background: var(--danger-weak);
  gap: 4px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 12px 16px;
  display: grid
}
.access-banner .button {
  justify-self: start;
  margin-top: 4px
}
.access-banner.trial {
  border-color: var(--info);
  background: var(--info-weak)
}
.access-banner.trial strong {
  color: var(--info)
}
.access-banner strong {
  color: var(--access-banner-title);
  font-size: 14px
}
.access-banner span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6
}
.id-check-box {
  border: 1px dashed var(--border-strong,#0003);
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  display: flex
}
.id-check-box .meta {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0
}
.store-banner-section {
  margin-top: 24px
}
.banner-create-form {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px 16px;
  margin-bottom: 16px;
  display: grid
}
.banner-create-form label {
  gap: 6px;
  display: grid
}
.banner-create-form button {
  justify-self: start
}
.banner-list {
  gap: 10px;
  display: grid
}
.banner-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: flex
}
.banner-thumb {
  aspect-ratio: 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  flex-shrink: 0;
  width: 132px
}
.banner-row.off .banner-thumb {
  opacity: .45
}
.banner-info {
  flex: 1;
  gap: 6px;
  min-width: 0;
  display: grid
}
.banner-title {
  font-weight: 650
}
.banner-meta {
  min-width: 0;
  color: var(--text-muted);
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex
}
.banner-meta a {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}
.banner-actions {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 6px;
  display: flex
}
.banner-delete {
  color: var(--danger)
}
.banner-row.editing {
  border-color: var(--accent);
  background: var(--surface-3);
  align-items: flex-start
}
.banner-edit-fields {
  gap: 8px
}
.banner-edit-fields label {
  gap: 4px;
  display: grid
}
.banner-edit-fields label > span {
  color: var(--text-muted);
  font-size: 12px
}
.banner-edit-hint {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px
}
.banner-row.editing .banner-actions {
  flex-direction: column;
  align-items: stretch
}
@media (width<=720px) {
  .banner-create-form {
    grid-template-columns: 1fr
  }
  .banner-row {
    flex-direction: column;
    align-items: stretch
  }
  .banner-thumb {
    width: 100%
  }
  .banner-actions {
    justify-content: flex-start
  }
}
.seating-advice {
  gap: 8px;
  margin-bottom: 14px;
  display: grid
}
.advice-row {
  border: 1px solid var(--accent-weak-border);
  background: var(--accent-weak);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: flex
}
.advice-text {
  gap: 2px;
  min-width: 0;
  display: grid
}
.advice-text strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 13px
}
.advice-text span {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6
}
.advice-row > .button {
  flex: none
}
:root {
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --panel-3: var(--surface-3);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --muted: var(--text-muted);
  --subtle: var(--text-subtle);
  --gold: var(--accent);
  --gold-hover: var(--accent-hover);
  --gold-contrast: var(--accent-contrast);
  --gold-soft: var(--accent-weak)
}
#app,
body,
html {
  min-height: 100%;
  margin: 0
}
body {
  background: var(--bg-grad),var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
  font-size: 15px;
  line-height: 1.5
}
.button.ghost {
  color: var(--text-muted);
  background: 0 0;
  border-color: #0000
}
.button.ghost:hover {
  color: var(--text);
  background: var(--surface-2)
}
.button.small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px
}
.text-button {
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  background: 0 0;
  border: 0;
  padding: 0
}
.text-button:hover {
  text-decoration: underline
}
.button.danger-button,
.danger-button,
.danger-text {
  color: var(--danger)
}
.button.danger-button {
  border-color: var(--danger-border)
}
.button.danger-button:hover {
  background: var(--danger-weak);
  border-color: var(--danger)
}
html:has(>body>#app>.shell) {
  height: 100%;
  overflow: hidden
}
html:has(>body>#app>.shell) body {
  height: 100%;
  overflow: hidden
}
html:has(>body>#app>.shell) #app {
  height: 100%
}
.shell {
  grid-template-rows: minmax(0,1fr);
  height: 100dvh;
  min-height: 0
}
.shell > .sidebar {
  align-self: stretch;
  height: auto
}
.shell > .main {
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  height: 100%;
  padding-top: 0;
  overflow-y: auto
}
.shell > .main:before {
  content: "";
  height: 28px;
  display: block
}
body.modal-open .shell > .main {
  overflow-y: hidden
}
@media (width<=1100px) {
  .shell > .main:before {
    height: calc(var(--topbar-h,86px) + 12px)
  }
}
@media print {
  .shell,
  .shell > .main {
    height: auto;
    overflow: visible
  }
  html:has(>body>#app>.shell) {
    height: auto;
    overflow: visible
  }
  html:has(>body>#app>.shell) body {
    height: auto;
    overflow: visible
  }
  html:has(>body>#app>.shell) #app {
    height: auto;
    overflow: visible
  }
  .shell > .main:before {
    display: none
  }
}
.subtabs {
  margin-bottom: 0
}
.workspace-error {
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  background: var(--surface)
}
.inline-error {
  color: var(--danger);
  align-items: center;
  gap: 12px;
  padding: 16px;
  display: flex
}
.inline-error span {
  color: var(--text-muted);
  flex: 1;
  font-size: 13.5px
}
.test-data-bar {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius,10px);
  background: var(--surface-2);
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex
}
.test-data-bar.included {
  border-style: solid;
  border-color: var(--info);
  background: var(--info-weak);
  color: var(--text)
}
.test-data-switch {
  min-height: 32px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  display: inline-flex
}
.test-data-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin: 0
}
.audit-table-wrap,
.ops-vue-table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto
}
.ops-vue-table td small,
.ops-vue-table td strong,
.table-wrap td small,
.table-wrap td strong {
  display: block
}
.ops-vue-table td small,
.table-wrap td small {
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 12.5px;
  overflow: hidden
}
.audit-table,
.ops-vue-table,
.table-wrap table {
  table-layout: auto
}
.audit-table tbody tr,
.ops-vue-table tbody tr,
.table-wrap tbody tr {
  cursor: default
}
.audit-data,
td .header-actions,
td.row-actions {
  white-space: normal;
  text-overflow: clip;
  overflow: visible
}
.audit-table td {
  white-space: normal
}
.audit-data {
  overflow-wrap: anywhere;
  min-width: 260px;
  max-width: 540px;
  color: var(--text-muted);
  line-height: 1.65;
  display: block
}
.row-actions {
  min-width: 205px
}
.row-actions .button {
  margin: 0 5px 5px 0
}
.badge.warn {
  background: var(--warn-weak);
  color: var(--warn)
}
.form-grid {
  grid-template-columns: repeat(auto-fit,minmax(208px,1fr));
  gap: 12px;
  display: grid
}
.form-grid.compact {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr))
}
.form-grid label {
  align-content: start;
  gap: 6px;
  min-width: 0;
  display: grid
}
.filterbar label > span,
.filterbar legend,
.form-grid label > span,
.stack-form label > span,
.table-search > span {
  color: var(--text-muted);
  font-size: 12.5px
}
.form-grid textarea {
  resize: vertical;
  min-height: 112px;
  padding: 9px 11px
}
select {
  height: 38px;
  padding: 0 32px 0 11px
}
textarea {
  padding: 9px 11px
}
.check-grid,
.form-actions,
.full-field {
  grid-column: 1/-1
}
.field-action,
.form-actions,
.inline-controls,
.input-action {
  align-items: center;
  gap: 10px;
  display: flex
}
.field-action > input,
.field-action > textarea,
.input-action > input,
.input-action > select,
.input-action > textarea {
  flex: 1;
  min-width: 0
}
.inline-controls {
  flex-wrap: wrap;
  justify-content: flex-end
}
.inline-controls input:not([type=checkbox]):not([type=radio]) {
  width: 160px
}
.form-actions {
  justify-content: flex-end
}
.toggle-row {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  display: flex!important
}
.check-grid {
  border: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  display: flex
}
.check-grid legend {
  width: 100%;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 12.5px
}
.check,
.check-grid label {
  align-items: center;
  gap: 6px;
  display: flex
}
.filterbar fieldset {
  border: 0;
  flex-wrap: wrap;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex
}
.filterbar legend {
  width: 100%;
  margin-bottom: 7px;
  display: block
}
.filterbar fieldset label {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex
}
.filterbar label.search {
  flex: 260px;
  gap: 6px;
  min-width: 220px;
  max-width: 420px;
  display: grid
}
.panel-form {
  padding: 16px
}
.panel-form + .panel-head {
  border-top: 1px solid var(--border)
}
.embedded-form {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 16px
}
.embedded-form .form-grid {
  padding: 0
}
.table-panel > .form-grid,
.table-panel > .inline-form,
.table-panel > .input-action,
.table-panel > .stack-form {
  padding: 16px
}
.table-panel > .inline-form,
.table-panel > .input-action {
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  display: flex
}
.table-panel > .inline-form label {
  gap: 6px;
  display: grid
}
.finance-actions > .finance-preview,
.finance-actions > .pick-field {
  flex: 100%
}
.finance-actions .pick-list .check {
  flex: none;
  display: inline-flex
}
.finance-preview {
  color: var(--text)
}
.sort-head {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  display: inline-flex
}
.sort-head:hover {
  color: var(--text)
}
.sort-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px
}
.sort-head > .sort-arrow {
  min-inline-size: 9px;
  font-size: 11px;
  display: inline-block
}
th {
  white-space: normal;
  line-height: 1.25
}
th > .sort-head {
  text-align: start;
  flex-wrap: wrap
}
.card-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  display: flex
}
.mini-metrics {
  border-bottom: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 10px;
  padding: 16px;
  display: grid
}
.mini-metrics article {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 5px;
  min-width: 0;
  padding: 11px 13px;
  display: grid
}
.mini-metrics small,
.mini-metrics span {
  color: var(--text-muted);
  font-size: 12px
}
.mini-metrics strong {
  overflow-wrap: anywhere;
  font-size: 18px
}
.table-search {
  gap: 6px;
  width: min(320px,100% - 32px);
  margin: 14px 16px;
  display: grid
}
.table-state {
  min-height: 190px;
  color: var(--text-subtle);
  text-align: center;
  padding: 64px 16px
}
.empty-state {
  min-height: 200px;
  color: var(--text-subtle);
  text-align: center;
  align-content: center;
  place-items: center;
  gap: 7px;
  padding: 24px;
  display: grid
}
.empty-state > span {
  background: var(--accent-weak);
  width: 42px;
  height: 42px;
  color: var(--accent);
  border-radius: 50%;
  place-items: center;
  font-size: 20px;
  display: grid
}
.empty-state strong {
  color: var(--text)
}
.empty-state small {
  max-width: 360px;
  line-height: 1.6
}
.referral-result {
  border: 1px solid var(--border);
  background: var(--surface-2);
  width: 100%;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  display: flex
}
.referral-result:hover {
  border-color: var(--accent)
}
.preview-box {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
  padding: 11px 13px
}
.preline {
  white-space: pre-line
}
.logo-setting {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex
}
.logo-setting img {
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  width: 72px;
  height: 50px
}
.schedule-card + .schedule-card,
.workspace > section + section {
  margin-top: 0
}
.confirm-dialog {
  z-index: 90
}
.confirm-dialog-panel {
  width: min(420px,100%)
}
.vue-modal {
  z-index: 50;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0
}
.vue-modal-backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(3px);
  border: 0;
  position: absolute;
  inset: 0
}
.vue-modal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  width: min(680px,100%);
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  position: relative;
  overflow: auto
}
.vue-modal-card > header {
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
  display: flex
}
.vue-modal-card h2 {
  margin: 2px 0 0
}
.vue-modal-card > footer {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  display: flex
}
.wide-modal {
  width: min(960px,100%)
}
.schedule-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid
}
.schedule-form-grid label {
  gap: 6px;
  min-width: 0;
  display: grid
}
.schedule-form-grid label > span {
  color: var(--text-muted);
  font-size: 12.5px
}
.schedule-form-grid label small {
  color: var(--text-muted);
  margin-top: 6px;
  display: block
}
.schedule-days {
  border: 0;
  flex-wrap: wrap;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex
}
.schedule-days legend {
  width: 100%;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-size: 12.5px;
  display: block
}
.schedule-days label {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex
}
.schedule-form-grid .full-field,
.schedule-form-grid .schedule-days {
  grid-column: 1/-1
}
.pager .button {
  min-height: 32px;
  padding: 0 11px
}
.pager strong {
  color: var(--text)
}
.nav-count {
  border-radius: var(--pill);
  background: var(--accent);
  min-width: 21px;
  color: var(--accent-contrast);
  text-align: center;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700
}
.auth-gate img {
  border-radius: 50%;
  margin-bottom: 8px
}
.brand-chip {
  perspective: 600px;
  width: 42px;
  height: 42px;
  position: relative
}
.brand-chip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  position: relative
}
.auth-gate .brand-chip img {
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  inset: 0
}
.brand-chip-back {
  transform: rotateY(180deg)
}
.brand-chip.is-busy .brand-chip-inner {
  animation: 2.2s cubic-bezier(.55,0,.2,1) infinite brandChipFlip
}
@keyframes brandChipFlip {
  0%,
  18% {
    transform: rotateY(0)
  }
  50%,
  68% {
    transform: rotateY(180deg)
  }
  to {
    transform: rotateY(360deg)
  }
}
@media (prefers-reduced-motion:reduce) {
  .brand-chip.is-busy .brand-chip-inner {
    animation: none
  }
}
.auth-gate h1 {
  margin: 0;
  font-size: 30px
}
.auth-message {
  max-width: 100%;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.7
}
.store-picker-search {
  height: 36px
}
.store-picker-empty {
  color: var(--text-muted);
  text-align: left;
  margin: 0;
  font-size: 12px
}
.text-link {
  color: var(--text-muted);
  font-size: 13px
}
.text-link:hover {
  color: var(--accent)
}
@media (width<=560px) {
  .form-grid,
  .form-grid.compact {
    grid-template-columns: 1fr
  }
  .check-grid,
  .form-actions,
  .full-field {
    grid-column: auto
  }
  .schedule-form-grid {
    grid-template-columns: 1fr
  }
  .schedule-form-grid .full-field,
  .schedule-form-grid .schedule-days {
    grid-column: auto
  }
  .mini-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .vue-modal {
    padding: 10px
  }
  .vue-modal-card {
    max-height: calc(100vh - 20px)
  }
  .pager {
    justify-content: center;
    height: auto;
    padding: 12px 0
  }
  .ops-vue-table-wrap {
    padding: 0 12px 12px;
    overflow: visible
  }
  .ops-vue-table,
  .ops-vue-table tbody,
  .ops-vue-table td,
  .ops-vue-table tr {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block
  }
  .ops-vue-table thead {
    display: none
  }
  .ops-vue-table tr {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
    margin-top: 12px;
    padding: 8px 12px
  }
  .ops-vue-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    border: 0;
    grid-template-columns: 88px minmax(0,1fr);
    gap: 10px;
    padding: 8px 0;
    display: grid;
    overflow: visible
  }
  .ops-vue-table td:before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 11.5px
  }
  .ops-vue-table td small {
    white-space: normal
  }
  .ops-vue-table .row-actions {
    min-width: 0
  }
  .audit-table-wrap {
    padding: 0 12px 12px;
    overflow: visible
  }
  .audit-table,
  .audit-table tbody,
  .audit-table td,
  .audit-table tr {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block
  }
  .audit-table thead {
    display: none
  }
  .audit-table tr {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
    margin-top: 12px;
    padding: 8px 12px
  }
  .audit-table td {
    border: 0;
    grid-template-columns: 78px minmax(0,1fr);
    gap: 10px;
    padding: 8px 0;
    display: grid
  }
  .audit-table td:before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 11.5px
  }
  .audit-data {
    min-width: 0;
    max-width: none
  }
}
.dash-canvas.layout-drag-active .dash-w {
  transition: border-color .12s,background .12s,box-shadow .12s
}
.dash-canvas.editing .dash-w.layout-dragging {
  opacity: .45;
  border-color: var(--accent);
  cursor: grabbing
}
.dash-canvas.editing .dash-w.layout-droppable {
  border-color: var(--border-strong)
}
.dash-canvas.editing .dash-w.layout-drop-target {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-weak)
}
.dash-canvas.layout-drag-active .dash-w.layout-drop-before {
  box-shadow: inset 0 3px 0 0 var(--accent)
}
.dash-canvas.layout-drag-active .dash-w.layout-drop-after {
  box-shadow: inset 0 -3px 0 0 var(--accent)
}
.dash-canvas.layout-drag-active.layout-drag-x .dash-w.layout-drop-before {
  box-shadow: inset 3px 0 0 0 var(--accent)
}
.dash-canvas.layout-drag-active.layout-drag-x .dash-w.layout-drop-after {
  box-shadow: inset -3px 0 0 0 var(--accent)
}
.dash-w.layout-drag-ghost {
  z-index: 1200;
  pointer-events: none;
  opacity: .92;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-md,0 6px 18px #00000047);
  will-change: transform;
  cursor: grabbing;
  padding: 6px;
  overflow: hidden
}
.pages-editor-list.page-drag-active .page-row {
  transition: border-color .12s,background .12s,box-shadow .12s
}
.page-row.page-dragging {
  opacity: .45
}
.page-row.page-dragging .page-row-handle {
  cursor: grabbing
}
.page-row.page-droppable {
  border-color: var(--border-strong)
}
.page-row.page-drop-target {
  border-color: var(--accent);
  background: var(--accent-weak)
}
.pages-editor-list.page-drag-active .page-row.page-drop-before {
  box-shadow: inset 0 3px 0 0 var(--accent)
}
.pages-editor-list.page-drag-active .page-row.page-drop-after {
  box-shadow: inset 0 -3px 0 0 var(--accent)
}
.pages-editor-list.page-drag-active.page-drag-x .page-row.page-drop-before {
  box-shadow: inset 3px 0 0 0 var(--accent)
}
.pages-editor-list.page-drag-active.page-drag-x .page-row.page-drop-after {
  box-shadow: inset -3px 0 0 0 var(--accent)
}
.page-row.page-drag-ghost {
  z-index: 1200;
  pointer-events: none;
  opacity: .92;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow-md,0 6px 18px #00000047);
  will-change: transform;
  cursor: grabbing;
  overflow: hidden
}
.coupon-trigger-field {
  grid-column: 1/-1;
  gap: 6px;
  min-width: 0;
  display: grid
}
.coupon-trigger-list {
  flex-wrap: wrap;
  gap: 8px 10px;
  display: flex
}
.coupon-expiry-field {
  grid-column: 1/-1
}
.coupon-form-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
#couponsTab .table-panel th.coupon-count-col {
  width: 76px
}
#couponsTab .table-panel th.coupon-status-col {
  width: 84px
}
#couponRows td:not(:last-child) {
  white-space: normal;
  overflow-wrap: break-word;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.45
}
#couponRows td .meta {
  margin-top: 2px
}
#couponRows td .text-button {
  font-size: 13px
}
#couponsTab .table-panel th.coupon-hold-col {
  width: 132px
}
#couponRows .coupon-hold {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 650
}
#couponRows .coupon-counts {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 8px;
  display: flex
}
#couponRows .coupon-counts span {
  white-space: nowrap
}
.coupon-scope-field {
  grid-column: 1/-1
}
.detail-panel.modal-panel.coupon-form-panel {
  padding-bottom: 0
}
.coupon-form-panel #couponForm.filterbar {
  box-shadow: none;
  background: 0 0;
  border: 0;
  border-radius: 0;
  padding: 0
}
.coupon-form-panel .coupon-form-footer {
  z-index: 1;
  background: var(--surface);
  margin: 0 -18px;
  padding: 14px 18px 18px;
  position: sticky;
  bottom: 0
}
.coupon-issue-log {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  display: grid
}
.coupon-issue-log ul {
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
  display: flex
}
.coupon-issue-log b {
  font-variant-numeric: tabular-nums
}
.coupon-member-issued {
  color: var(--success);
  font-size: 12.5px
}
.coupon-issue-panel .coupon-issue-all {
  margin: 18px 0 0
}
.coupon-issue-segment {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  display: grid
}
.coupon-issue-segment-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex
}
.coupon-segment-picks {
  flex-wrap: wrap;
  gap: 8px 16px;
  display: flex
}
.coupon-segment-picks b {
  font-variant-numeric: tabular-nums
}
.coupon-segment-list.ops-vue-table-wrap.sticky-head {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: min(46vh,360px)
}
.coupon-segment-check {
  width: 40px
}
.coupon-segment-list tr.is-unchecked td:not(.coupon-segment-check) {
  color: var(--text-muted);
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--danger);
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1.5px
}
.coupon-segment-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  display: flex
}
.coupon-segment-actions > .meta {
  align-self: center;
  margin-right: auto
}
.coupon-segment-actions b {
  font-variant-numeric: tabular-nums
}
.coupon-segment-actions label {
  gap: 4px;
  display: grid
}
.coupon-segment-actions input {
  width: 92px
}
.coupon-issue-done {
  justify-content: flex-end;
  margin-top: 16px;
  display: flex
}
.filterbar.is-editing {
  box-shadow: inset 3px 0 0 0 var(--accent)
}
.filterbar.is-viewing {
  box-shadow: inset 3px 0 0 0 var(--text-muted)
}
.coupon-expiry-custom {
  gap: 6px;
  min-width: 0;
  display: grid
}
.coupon-expiry-custom > input {
  max-inline-size: 220px
}
@supports (grid-template-rows:subgrid) {
  .coupon-form-fields {
    align-items: stretch
  }
  .coupon-form-fields > * {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 6px
  }
  .coupon-form-fields > * > span:first-child {
    align-self: end
  }
  .coupon-form-fields > * > .field-hint:last-child {
    align-self: start
  }
}
.pick-field {
  gap: 6px;
  min-width: 0;
  display: grid
}
.filterbar > .pick-field {
  min-width: min(100%,max-content);
  flex: 0 auto
}
.form-grid > .pick-field,
.stack-form > .pick-field {
  min-width: 0
}
.pick-field > span {
  color: var(--text-muted);
  font-size: 12.5px
}
.pick-list {
  flex-wrap: wrap;
  gap: 8px 10px;
  display: flex
}
.pick-list .check {
  flex: none
}
.donation-picker {
  gap: 6px;
  min-width: 0;
  display: grid
}
.carrier-entry {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  display: flex
}
.carrier-entry input {
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  width: min(100%,12em)
}
.carrier-entry .field-hint {
  flex-basis: 100%;
  margin-top: 0
}
.carrier-entry .field-hint.is-ok {
  color: var(--success)
}
.carrier-saved {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  display: flex
}
.carrier-saved b {
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em
}
.invoice-settings-panel {
  width: min(640px,100%)
}
.invoice-settings-section {
  border-top: 1px solid var(--border);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  display: grid
}
.invoice-settings-section:first-of-type {
  border-top: 0;
  margin-top: 4px;
  padding-top: 0
}
.invoice-settings-section h3 {
  margin: 0;
  font-size: 15px
}
.invoice-settings-section .field-hint,
.invoice-settings-section .meta {
  margin: 0
}
.invoice-settings-section .invoice-feature-toggle {
  justify-self: start
}
.invoice-settings-section.is-inactive > .check,
.invoice-settings-section.is-inactive > .meta,
.invoice-settings-section.is-inactive > h3 {
  opacity: .6
}
.invoice-account-facts {
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 8px 16px;
  margin: 0;
  display: grid
}
.invoice-account-facts div {
  gap: 2px;
  min-width: 0;
  display: grid
}
.invoice-account-facts dt {
  color: var(--text-muted);
  font-size: 12.5px
}
.invoice-account-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 650
}
.invoice-provider-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -4px 0 12px;
  display: flex
}
.invoice-provider-line .field-error,
.invoice-provider-line .meta {
  margin: 0
}
.invoice-provider-line .field-error {
  flex-basis: 100%
}
.invoice-alert .text-button {
  white-space: nowrap;
  margin-left: 8px
}
.invoice-status-tabs {
  margin: 14px 0 12px
}
.subtab-count.is-muted {
  background: var(--surface-3);
  color: var(--text-muted)
}
.invoice-deferred-note,
.invoice-detail-filter {
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 12px;
  font-size: 13.5px;
  display: flex
}
.invoice-deferred-note strong {
  color: var(--text)
}
.invoice-table td.invoice-check,
.invoice-table th.invoice-check {
  text-align: center;
  width: 36px;
  padding-right: 0
}
.invoice-check input,
.tournaments-table .export-check input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0
}
.invoice-check input:disabled,
.tournaments-table .export-check input:disabled {
  cursor: not-allowed
}
.invoice-table tr.is-selected td,
.tournaments-table tr.is-selected td {
  background: var(--accent-weak)
}
.tournament-first.has-export-check {
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  display: flex
}
th > .tournament-first.has-export-check {
  align-items: center
}
.tournament-first-main {
  flex: 1;
  min-width: 0
}
.tournaments-table .export-check {
  cursor: default;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 18px;
  min-height: 22px;
  display: inline-flex
}
.table-panel.is-refreshing {
  opacity: .7;
  transition: opacity .15s
}
.invoice-batch-bar {
  bottom: calc(12px + var(--safe-bottom,0px));
  z-index: 6;
  border: 1px solid var(--accent-weak-border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0;
  padding: 10px 14px;
  display: flex;
  position: sticky
}
.invoice-batch-count {
  margin-right: auto
}
.counter-print-local {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 8px;
  padding: 12px;
  display: grid
}
.counter-print-local h4 {
  margin: 0;
  font-size: 14px
}
.counter-print-fields {
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 16px;
  display: flex
}
.counter-print-fields > label:not(.check) {
  gap: 4px;
  min-width: 180px;
  display: grid
}
.counter-printer {
  left: calc(var(--sidebar-w,0px) + 16px);
  z-index: 80;
  justify-items: start;
  gap: 8px;
  max-width: min(460px,100vw - 32px);
  display: grid;
  position: fixed;
  bottom: 16px
}
.counter-printer-pill {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow-md,0 6px 18px #00000047);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s,background-color .15s;
  display: inline-flex
}
.counter-printer-pill.is-ok svg {
  color: var(--success)
}
.counter-printer-pill.is-warn {
  border-color: var(--danger-border);
  color: var(--danger)
}
.counter-printer-pill.is-busy {
  border-color: var(--accent);
  color: var(--accent)
}
.counter-printer-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.counter-printer-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  width: min(460px,100vw - 32px);
  max-height: min(70vh,640px);
  box-shadow: var(--shadow-lg);
  order: -1;
  gap: 10px;
  padding: 14px;
  display: grid;
  overflow-y: auto
}
.counter-printer-panel p {
  margin: 0
}
.counter-printer-device,
.counter-printer-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex
}
.counter-printer-device .is-ok {
  color: var(--success)
}
.counter-printer-device .is-warn {
  color: var(--danger)
}
.counter-printer-jobs {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.counter-printer-jobs li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 8px;
  padding: 10px;
  display: grid
}
.counter-printer-jobs li.is-uncertain {
  border-color: var(--danger-border)
}
.counter-printer-job {
  gap: 2px;
  min-width: 0;
  display: grid
}
.counter-printer-job .meta {
  overflow-wrap: anywhere
}
.counter-printer-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex
}
.counter-printer-recent summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px
}
.counter-printer-recent[open] summary {
  margin-bottom: 8px
}
.counter-printer-foot {
  border-top: 1px solid var(--border);
  justify-items: start;
  gap: 6px;
  padding-top: 8px;
  display: grid
}
@media (width<=860px) {
  .counter-printer {
    left: 16px
  }
}
@media (prefers-reduced-motion:reduce) {
  .counter-printer-pill {
    transition: none
  }
}
.donation-picked {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  display: flex
}
.donation-search {
  width: 100%
}
.donation-results {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 2px;
  max-height: 220px;
  margin: 0;
  padding: 4px;
  list-style: none;
  display: grid;
  overflow-y: auto
}
.donation-option {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  display: flex
}
.donation-option:focus-visible,
.donation-option:hover {
  background: var(--accent-weak)
}
.donation-option small {
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: none
}
.identity-field {
  flex-wrap: wrap
}
.identity-field > input {
  flex: 150px;
  min-width: 0
}
.pick-list .check > span {
  color: inherit;
  font-size: 13px
}
.coupon-picker {
  gap: 6px;
  min-width: 0;
  display: grid
}
.coupon-picker.is-off {
  opacity: .5
}
.coupon-picker-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex
}
.coupon-picker-head > span {
  color: var(--text-muted);
  font-size: 12.5px
}
.coupon-picker-cap {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  font-size: 12px
}
.coupon-picker-cap.is-over {
  color: var(--danger);
  font-weight: 650
}
.coupon-picker-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.coupon-picker-list > li {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  display: grid
}
.coupon-picker-list > li + li {
  border-top: 1px solid var(--border)
}
.coupon-picker-list > li.is-picked {
  background: var(--accent-weak)
}
.coupon-picker-list > li.is-blocked .coupon-picker-name > span {
  color: var(--text-muted)
}
.coupon-picker-name {
  gap: 2px;
  min-width: 0;
  display: grid
}
.coupon-picker-name > span {
  overflow-wrap: anywhere;
  font-weight: 600
}
.coupon-picker-tag {
  background: var(--success-weak);
  color: var(--success);
  white-space: nowrap;
  border-radius: 999px;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 600
}
.coupon-stepper {
  align-items: center;
  gap: 4px;
  display: flex
}
.coupon-stepper .coupon-step {
  width: 34px;
  min-height: 34px;
  font-size: 20px
}
.coupon-stepper .coupon-step:disabled {
  opacity: .35;
  cursor: not-allowed
}
.coupon-step-count {
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 26px;
  font-weight: 700
}
.pick-list .check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 650
}
.pick-list .check:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.id-card-drop {
  border: 1px dashed var(--border-strong,var(--border));
  background: var(--surface-2);
  width: 220px;
  max-width: 100%;
  min-height: 140px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  align-content: center;
  place-items: center;
  gap: 6px;
  padding: 12px;
  transition: border-color .15s,background .15s;
  display: grid
}
.id-card-drop:hover {
  border-color: var(--accent);
  color: var(--accent)
}
.id-card-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
  border-style: solid
}
.id-card-drop.is-locked {
  cursor: not-allowed;
  opacity: .6
}
.id-card-drop.is-locked:hover {
  border-color: var(--border-strong,var(--border));
  color: var(--text-muted)
}
.id-card-drop-plus {
  font-size: 30px;
  line-height: 1
}
.id-card-drop-text {
  overflow-wrap: anywhere;
  font-size: 12px
}
.rail-day + .rail-day {
  margin-top: 4px
}
.rail-day-head {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  display: flex
}
.rail-day-head:hover {
  background: var(--surface-2);
  color: var(--text)
}
.rail-day-head[aria-expanded=true] {
  color: var(--text)
}
.rail-day-caret {
  width: 10px;
  color: var(--text-subtle);
  flex: none;
  font-size: 10px
}
.rail-day-label {
  font-weight: 700
}
.rail-day-meta {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  margin-left: auto
}
.rail-day .rail-item {
  grid-template-columns: auto auto minmax(0,1fr);
  width: 100%
}
.rail-time {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  flex: none;
  font-size: 12px
}
.rail-item.active .rail-time {
  color: inherit
}
@media (width>=1400px) {
  .rail-day-head {
    z-index: 1;
    background: var(--surface);
    position: sticky;
    top: 0
  }
  .rail-list {
    scroll-padding-top: 38px
  }
  .rail-item {
    border-radius: 8px;
    padding: 8px 10px 8px 20px
  }
  .rail-item.active {
    box-shadow: inset 2px 0 0 var(--accent)
  }
}
@media (width<=1399.98px) {
  .tournament-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }
  .tournament-rail > .rail-search {
    flex: none;
    min-width: 0
  }
  .tournament-rail > .rail-list {
    flex: none
  }
  .rail-list {
    flex-direction: column;
    gap: 2px;
    max-height: min(44vh,320px);
    margin-top: 0;
    overflow: hidden auto
  }
  .rail-item {
    white-space: normal;
    background: 0 0;
    border: 0;
    border-radius: 8px;
    max-width: none;
    padding: 9px 10px
  }
  .rail-item.active {
    background: var(--accent-weak)
  }
}
.rail-more {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-muted);
  cursor: pointer;
  background: 0 0;
  margin-top: 6px;
  padding: 8px;
  font-size: 12.5px
}
.rail-more:hover {
  border-color: var(--accent);
  color: var(--accent)
}
.ops-vue-table-wrap.sticky-head {
  max-height: min(68vh,760px);
  overflow: auto
}
.ops-vue-table-wrap.sticky-head thead th {
  z-index: 3;
  box-shadow: 0 1px 0 var(--border)
}
.report-drill-panel .ops-vue-table-wrap.sticky-head {
  max-height: min(52vh,520px)
}
#couponUsageRows .drill-row:focus-visible,
#reportTournamentRows .drill-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px
}
#couponUsageRows .drill-row td:first-child,
#reportTournamentRows .drill-row td:first-child {
  transition: box-shadow .12s;
  box-shadow: inset 3px 0 #0000
}
#couponUsageRows .drill-row:focus-visible td:first-child,
#couponUsageRows .drill-row:hover td:first-child,
#reportTournamentRows .drill-row:focus-visible td:first-child,
#reportTournamentRows .drill-row:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent)
}
#couponUsageRows .drill-row {
  cursor: pointer
}
.prize-group-row td {
  background: var(--surface-2);
  padding-top: 14px
}
.prize-group-row strong {
  margin-right: 10px
}
.prize-group-row .meta {
  display: inline
}
@media (width<=760px) {
  .subtabs {
    flex-wrap: wrap;
    row-gap: 0;
    overflow-x: visible
  }
  .subtabs .subtab {
    flex: 0 auto;
    padding: 10px 12px
  }
}
@media (width<=560px) {
  .report-cards {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .report-card {
    padding: 12px 13px
  }
  .report-card .value {
    font-size: 20px
  }
}
.report-cards .report-card .button {
  margin-top: 10px
}
@media print {
  .access-banner,
  .filterbar,
  .modal,
  .panel-head .button,
  .report-range,
  .sidebar,
  .subtabs,
  .toolbar-actions {
    display: none!important
  }
  .shell {
    display: block
  }
  .main {
    padding: 0
  }
  .toolbar {
    position: static
  }
  .ops-vue-table-wrap,
  .ops-vue-table-wrap.sticky-head {
    max-height: none;
    overflow: visible
  }
  .ops-vue-table thead {
    display: table-header-group
  }
  .ops-vue-table tbody tr,
  .prize-group-row {
    break-inside: avoid
  }
  .table-panel {
    break-inside: auto;
    border: 0
  }
  .report-card {
    break-inside: avoid
  }
  body {
    color: #000;
    background: #fff
  }
}
tbody tr.clickable-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-weak)
}
tbody tr.clickable-row.is-opening {
  background: var(--accent-weak)
}
.row-opening-spinner {
  color: var(--accent);
  vertical-align: -2px;
  margin-left: 8px
}
.prize-structure-table .row-actions {
  min-width: 0
}
.prize-structure-table .row-actions .button {
  margin: 0
}
.prize-structure-table td:last-child {
  white-space: nowrap
}
.prize-structure-table td:first-child,
.prize-structure-table td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
  padding-block: 10px;
  line-height: 1.45
}
.prize-structure-table .digest-part {
  white-space: nowrap;
  margin-right: .9em;
  display: inline-block
}
.loyalty-tier-table {
  min-width: 960px
}
.loyalty-tier-table th.tier-card-col {
  width: 260px
}
.loyalty-tier-table th.tier-remove-col {
  width: 92px
}
.announcement-table .row-actions {
  min-width: 0
}
.announcement-table td.announcement-preview {
  white-space: normal;
  max-width: none;
  padding-block: 8px
}
.announcement-preview-text {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden
}
.ledger-table td:nth-child(3),
.ledger-table td:nth-child(5) {
  white-space: normal;
  overflow-wrap: anywhere;
  padding-block: 10px;
  line-height: 1.45
}
.push-schedule-table td:first-child,
.push-schedule-table th:first-child {
  width: 18%
}
.push-schedule-table td:nth-child(5),
.push-schedule-table th:nth-child(5) {
  width: 13%
}
.push-schedule-table td:nth-child(5) {
  white-space: normal;
  line-height: 1.35
}
.import-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4
}
.tournament-schedule-table td:first-child,
.tournament-schedule-table td:nth-child(2),
.tournament-schedule-table td:nth-child(3) {
  white-space: normal;
  padding-block: 8px;
  line-height: 1.4
}
.theme-toggle-icon svg {
  width: 16px;
  height: 16px;
  display: block
}
@keyframes np-spin {
  to {
    transform: rotate(360deg)
  }
}
@keyframes np-shimmer {
  0% {
    background-position: 100%
  }
  to {
    background-position: 0
  }
}
@keyframes np-track {
  0% {
    transform: translate(-100%) scaleX(.35)
  }
  55% {
    transform: translate(58%) scaleX(.62)
  }
  to {
    transform: translate(220%) scaleX(.35)
  }
}
.spinner {
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 50%;
  flex: none;
  width: 15px;
  height: 15px;
  animation: .7s linear infinite np-spin;
  display: inline-block
}
.spinner.lg {
  border-width: 2.5px;
  width: 24px;
  height: 24px
}
.spinner.accent {
  color: var(--accent)
}
.button.is-busy {
  cursor: progress
}
.button.is-busy:disabled {
  opacity: .78
}
.icon-button.is-busy {
  cursor: progress
}
.load-inline {
  color: var(--text-muted);
  align-items: center;
  gap: 9px;
  display: inline-flex
}
.load-block {
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  font-size: 13.5px;
  display: flex
}
.load-block .spinner,
.load-inline .spinner {
  color: var(--accent)
}
td.load-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 22px 12px
}
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,var(--surface-2) 25%,var(--surface-3) 40%,var(--surface-2) 60%);
  background-size: 400% 100%;
  animation: 1.25s infinite np-shimmer
}
.skeleton-line {
  height: 11px
}
.skeleton-line + .skeleton-line {
  margin-top: 8px
}
.skeleton-line.short {
  width: 56%
}
.top-progress {
  z-index: 70;
  background: var(--accent-weak);
  pointer-events: none;
  height: 2px;
  position: fixed;
  inset: 0 0 auto;
  overflow: hidden
}
.top-progress:after {
  content: "";
  transform-origin: 0;
  background: var(--accent);
  animation: 1.15s ease-in-out infinite np-track;
  position: absolute;
  inset: 0
}
@media (prefers-reduced-motion:reduce) {
  .spinner {
    animation-duration: 1.7s
  }
  .skeleton {
    background: var(--surface-2);
    animation: none
  }
  .top-progress:after {
    opacity: .55;
    animation: none;
    transform: none
  }
}
.tv-bg-cell {
  white-space: nowrap;
  width: 1%
}
.tv-name-input {
  width: 100%;
  min-width: 140px;
  font-weight: 600
}
.tv-bg-cell .meta {
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block
}
.tv-bg-dot {
  vertical-align: middle;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-block
}
.tv-bg-dot:hover:not(:disabled) {
  border-color: var(--accent)
}
.tv-bg-dot:disabled {
  cursor: default;
  opacity: .6
}
.tv-bg-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.tv-bg-dot.readonly {
  cursor: default
}
.tv-device-state {
  margin: 0;
  padding: 20px 18px
}
.tv-device-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.tv-device-card {
  border-top: 1px solid var(--border);
  gap: 14px;
  padding: 16px 18px;
  display: grid
}
.tv-device-card:first-child {
  border-top: 0
}
.tv-device-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  display: flex
}
.tv-device-icon {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex
}
.tv-device-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px
}
.tv-device-head .tv-name-input {
  flex: 0 280px;
  width: auto;
  min-width: 160px;
  font-size: 15px
}
.tv-device-status {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  display: inline-flex
}
.tv-device-status i {
  background: var(--border-strong);
  border-radius: 50%;
  width: 8px;
  height: 8px
}
.tv-device-status.is-online {
  color: var(--success)
}
.tv-device-status.is-online i {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-weak)
}
.tv-device-actions {
  min-width: 0;
  margin-left: auto
}
.pair-gate-card label.tv-open-table-check,
.tv-bind-form label.tv-open-table-check {
  white-space: normal;
  flex: 100%;
  min-height: 38px;
  display: inline-flex
}
.tv-bind-form label.tv-open-table-check span {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500
}
.tv-bind-form label.tv-seat-count {
  flex: 0 0 150px
}
.tv-device-fields {
  grid-template-columns: minmax(180px,1fr) auto minmax(220px,1.6fr) auto;
  align-items: start;
  gap: 12px 20px;
  display: grid
}
.tv-device-field {
  gap: 6px;
  min-width: 0;
  display: grid
}
.tv-field-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600
}
.tv-device-field > .tv-marquee-input,
.tv-device-field > select {
  width: 100%;
  min-width: 0
}
.tv-device-card .tv-bg-cell {
  width: auto
}
.tv-bg-row {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  display: flex
}
.tv-bg-row .meta {
  margin: 0
}
.tv-device-foot {
  margin: 0;
  font-size: 12px
}
.tv-split-select {
  color: var(--text-muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex
}
.tv-split-select select {
  width: auto;
  min-width: 104px
}
.tv-device-panel-body.is-screen {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 10px;
  padding: 12px 14px;
  display: grid
}
.tv-screen-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  display: flex
}
.tv-screen-label {
  color: var(--text);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex
}
.tv-screen-label svg {
  fill: none;
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 1.6px;
  stroke-linejoin: round
}
.tv-screen-label .tv-screen-fill {
  fill: var(--accent);
  stroke: none
}
.member-profile-lock {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-weak);
  color: var(--text);
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6
}
.member-self-corrected {
  margin-top: 12px
}
.member-form input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: default
}
.tv-device-panel {
  container: tvdevices/inline-size
}
@container tvdevices (width<=980px) {
  .tv-device-fields {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .tv-device-card .tv-sound-controls {
    min-width: 0
  }
}
@container tvdevices (width<=560px) {
  .tv-device-fields {
    grid-template-columns: minmax(0,1fr)
  }
  .tv-device-head .tv-name-input {
    flex: 100%
  }
  .tv-device-actions {
    width: 100%;
    margin-left: 0
  }
}
.tv-bg-summary {
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  display: flex
}
.tv-bg-summary .meta {
  margin: 0
}
.tv-bg-row {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex
}
.tv-bg-title {
  color: var(--text-muted);
  gap: 2px;
  font-size: 12.5px;
  font-weight: 550;
  display: grid
}
.tv-bg-title .meta {
  margin: 0
}
.tournament-late-reg-championship {
  gap: 6px;
  min-width: 0;
  display: grid
}
.tournament-late-reg-championship > span:first-child {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550
}
.tournament-late-reg-championship strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5
}
.blind-late-reg-summary.is-missing,
.tournament-late-reg-championship strong.is-missing {
  color: var(--danger)
}
.blind-table td.blind-late-reg-cell,
.blind-table th.blind-late-reg-head {
  text-align: center;
  width: 56px
}
.blind-table td.blind-late-reg-cell input[type=radio] {
  width: 18px;
  min-width: 0;
  height: 18px;
  accent-color: var(--accent);
  margin: 0
}
.blind-table tr.late-reg-cut td {
  box-shadow: inset 0 -2px 0 var(--accent)
}
.blind-late-reg-summary {
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 8px;
  font-size: 13px;
  display: flex
}
.blind-late-reg-summary .check {
  min-height: 0
}
.clock-levels {
  border-top: 1px solid var(--border);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  display: grid
}
.clock-levels-head h3 {
  margin: 0;
  font-size: 15px
}
.clock-levels-head .meta {
  margin: 2px 0 0
}
.clock-levels-holding {
  background: var(--warning-weak,var(--surface-2));
  color: var(--text);
  border-radius: 8px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13.5px
}
.clock-levels-table {
  table-layout: auto;
  width: 100%;
  min-width: 640px
}
.clock-levels-table td,
.clock-levels-table th {
  white-space: nowrap;
  padding: 6px 8px
}
.clock-levels-table input {
  width: 88px;
  min-width: 0;
  height: 32px
}
.clock-levels-table tr.is-current td {
  background: var(--accent-weak)
}
.clock-levels-table tr.late-reg-cut td {
  box-shadow: inset 0 -2px 0 var(--accent)
}
.clock-level-no small,
.level-cut-tag {
  color: var(--accent);
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 600
}
.clock-level-actions {
  align-items: center;
  gap: 6px;
  display: flex
}
.clock-levels-actions {
  justify-content: flex-end;
  display: flex
}
.detail-panel.modal-panel.clock-split-panel {
  width: min(1240px,100%);
  max-width: 720px
}
.clock-console {
  width: 100%;
  max-width: 440px;
  margin: 0 auto
}
.clock-console .clock-countdown {
  font-size: clamp(60px,18vw,80px)
}
.clock-console .clock-actions {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  display: grid
}
.clock-console .clock-actions > .button {
  min-height: 44px
}
.clock-console .clock-actions > .clock-main-action {
  grid-column: 1/-1;
  min-height: 52px;
  font-size: 17px
}
.clock-console .clock-set-time {
  align-items: flex-start
}
.clock-console .clock-set-time-label {
  text-align: center;
  flex-basis: 100%;
  padding-bottom: 0
}
.clock-side {
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: 16px;
  min-width: 0;
  margin-top: 18px;
  display: grid
}
.clock-side > .clock-levels,
.clock-side > .clock-tv {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  margin: 0;
  padding: 14px
}
.clock-side > .clock-announce {
  margin-top: 0
}
.clock-tv {
  grid-template-columns: minmax(0,1fr);
  gap: 10px;
  display: grid
}
.clock-tv h3 {
  margin: 0;
  font-size: 15px
}
.clock-tv .clock-tv-row select {
  flex: 240px;
  max-width: 100%
}
.clock-tv-links {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
@media (width>=960px) {
  .detail-panel.modal-panel.clock-split-panel {
    flex-direction: column;
    max-width: 1240px;
    display: flex;
    overflow: hidden
  }
  .clock-split-panel > .detail-heading {
    flex: none
  }
  .clock-split {
    flex: auto;
    grid-template-columns: 400px minmax(0,1fr);
    min-height: 0;
    margin: 0 -4px;
    display: grid
  }
  .clock-console,
  .clock-side {
    min-height: 0;
    overflow-y: auto
  }
  .clock-console {
    border-right: 1px solid var(--border);
    max-width: none;
    margin: 0;
    padding: 0 22px 4px 4px
  }
  .clock-side {
    margin-top: 0;
    padding: 0 4px 4px 22px
  }
  .clock-side .clock-levels .detail-table-wrap {
    max-height: none
  }
}
.tv-layout-formats {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  display: flex
}
.tv-layout-formats .range-toggle {
  flex: none
}
.tv-layout-formats .meta {
  margin: 0
}
.detail-panel.modal-panel.tv-editor-panel {
  --tv-editor-padding: 18px;
  width: min(1360px,100%);
  max-width: 1360px;
  padding: 0 var(--tv-editor-padding) var(--tv-editor-padding);
  gap: 16px
}
.detail-panel.modal-panel.tv-editor-panel > .detail-heading {
  z-index: 10;
  margin: 0 calc(-1 * var(--tv-editor-padding));
  padding: 18px var(--tv-editor-padding)
}
.tv-editor-workspace {
  grid-template-columns: minmax(0,1fr) 280px;
  align-items: start;
  gap: 20px;
  display: grid
}
.tv-editor-stage {
  min-width: 0;
  top: calc(var(--tv-editor-head,96px) + 12px);
  position: sticky
}
.tv-editor-history,
.tv-editor-inspector-heading,
.tv-editor-size-heading,
.tv-editor-toolbar,
.tv-editor-view {
  align-items: center;
  gap: 8px;
  display: flex
}
.tv-editor-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 12px
}
.tv-editor-view {
  margin-left: auto
}
.tv-editor-grid-toggle {
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex
}
.tv-editor-grid-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin: 0
}
.tv-editor-canvas {
  box-shadow: 0 0 0 1px var(--border-strong);
  border: 0;
  border-radius: 8px
}
.tv-layout-canvas.is-pane {
  aspect-ratio: 8/9;
  width: min(100%,480px);
  margin-inline: auto
}
.tv-layout-canvas.is-pane .tv-layout-preview {
  width: 640px
}
.tv-editor-canvases.is-pair {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  display: grid
}
.tv-editor-canvases.is-pair .tv-layout-canvas.is-pane {
  width: 100%
}
.tv-editor-side {
  gap: 6px;
  min-width: 0;
  display: grid
}
.tv-editor-side-label {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 28px;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  justify-self: start;
  padding: 2px 12px;
  font-size: 12.5px;
  font-weight: 600
}
.tv-editor-side.active .tv-editor-side-label {
  border-color: var(--accent);
  color: var(--accent)
}
.tv-editor-side.active .tv-editor-canvas {
  box-shadow: 0 0 0 2px var(--accent)
}
.tv-editor-side-switch {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: flex
}
.tv-editor-overlay .tv-layout-box {
  outline-offset: 2px;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 2px
}
.tv-editor-overlay .tv-layout-box:hover {
  border-color: var(--accent);
  background: var(--accent-weak)
}
.tv-editor-overlay .tv-layout-box.selected {
  border: 2px solid var(--accent);
  z-index: 5;
  background: 0 0
}
.tv-editor-overlay .tv-layout-box-label {
  text-overflow: ellipsis;
  background: var(--accent);
  max-width: calc(100% - 8px);
  color: var(--accent-contrast);
  margin: 2px;
  padding: 2px 5px;
  font-size: 11px;
  line-height: 1.4;
  display: none;
  overflow: hidden
}
.tv-editor-overlay .tv-layout-box.selected .tv-layout-box-label,
.tv-editor-overlay .tv-layout-box:hover .tv-layout-box-label {
  display: block
}
.tv-editor-overlay .tv-layout-box-resize {
  background: var(--accent);
  border: 2px solid var(--accent-contrast);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  bottom: -2px;
  right: -2px
}
.tv-editor-overlay .tv-layout-box-resize:after {
  content: "";
  border-right: 2px solid var(--accent-contrast);
  border-bottom: 2px solid var(--accent-contrast);
  position: absolute;
  inset: 5px 3px 3px 5px
}
.tv-editor-canvas.show-grid:after {
  content: "";
  pointer-events: none;
  background-image: linear-gradient(to right,var(--border-strong) 1px,transparent 1px),linear-gradient(to bottom,var(--border-strong) 1px,transparent 1px);
  background-size: calc(100% / var(--tv-cols)) calc(100% / var(--tv-rows));
  position: absolute;
  inset: 0
}
.tv-editor-guide {
  pointer-events: none;
  z-index: 6;
  opacity: .75;
  position: absolute
}
.tv-editor-guide.vertical {
  border-left: 1px dashed var(--accent);
  top: 0;
  bottom: 0;
  left: 50%
}
.tv-editor-guide.horizontal {
  border-top: 1px dashed var(--accent);
  top: 50%;
  left: 0;
  right: 0
}
.tv-editor-hint {
  color: var(--text-muted);
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.65
}
.tv-editor-help {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 13px
}
.tv-editor-help summary {
  cursor: pointer;
  width: fit-content;
  color: var(--text);
  padding: 4px 0
}
.tv-editor-help p {
  margin: 8px 0 0
}
.tv-editor-inspector {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  padding: 16px
}
.tv-editor-inspector-heading,
.tv-editor-size-heading {
  justify-content: space-between
}
.tv-editor-inspector h3 {
  margin: 0;
  font-size: 15px
}
.tv-editor-inspector h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600
}
.tv-editor-inspector .meta {
  margin: 0;
  font-size: 11.5px
}
.tv-editor-select {
  color: var(--text-muted);
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  display: grid
}
.tv-editor-select select {
  width: 100%;
  min-width: 0
}
.tv-editor-section {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px
}
.tv-editor-appearance {
  grid-column: 1/-1
}
.tv-editor-border-toggle {
  min-height: 32px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex
}
.tv-editor-border-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0
}
.tv-editor-border-controls {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0
}
.tv-editor-border-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  display: flex
}
.tv-editor-border-color {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  display: flex
}
.tv-editor-border-color span {
  min-width: 64px
}
.tv-editor-border-controls input[type=color] {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-radius: 6px;
  width: 38px;
  min-width: 38px;
  height: 30px;
  padding: 3px
}
.tv-editor-border-controls input[type=color]:disabled {
  opacity: .35;
  cursor: not-allowed
}
.tv-editor-border-actions {
  gap: 8px;
  margin-top: 8px;
  display: flex
}
.tv-editor-border-actions .button {
  flex: 1
}
.tv-editor-border-common {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  display: flex
}
.tv-editor-border-common label {
  color: var(--text-muted);
  gap: 6px;
  font-size: 11.5px;
  display: grid
}
.tv-editor-border-common .button {
  min-height: 30px
}
.tv-editor-color-name {
  color: var(--text);
  flex: auto;
  font-size: 13px
}
.tv-editor-colors .button {
  min-height: 30px
}
.tv-editor-color-block {
  border-bottom: 1px dashed var(--border);
  gap: 2px;
  padding-bottom: 8px;
  display: grid
}
.tv-editor-color-block:last-child {
  border-bottom: 0
}
.tv-editor-alpha {
  color: var(--text-muted);
  grid-template-columns: auto minmax(0,1fr) 3.2em;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  display: grid
}
.tv-editor-alpha input[type=range] {
  width: 100%;
  accent-color: var(--accent)
}
.tv-editor-alpha output {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.tv-editor-alignments {
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  display: grid
}
.tv-editor-alignments button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  justify-items: center;
  gap: 5px;
  padding: 9px 3px;
  font-size: 11.5px;
  display: grid
}
.tv-editor-alignments svg {
  width: 20px;
  height: 20px
}
.tv-editor-alignments button.active,
.tv-editor-alignments button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak)
}
.tv-editor-notice {
  color: var(--accent);
  margin: 6px 0 0;
  font-size: 12px
}
.tv-editor-notice:empty {
  display: none
}
.tv-editor-size-heading {
  margin-bottom: 10px
}
.tv-editor-size-heading h4 {
  margin: 0
}
.tv-editor-fields {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid
}
.tv-editor-fields label {
  color: var(--text-muted);
  gap: 5px;
  font-size: 12px;
  display: grid
}
.tv-editor-fields input {
  font-variant-numeric: tabular-nums;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px
}
.tv-editor-size-actions {
  gap: 8px;
  margin-top: 10px;
  display: flex
}
.tv-editor-size-actions .button {
  flex: 1
}
.tv-editor-remove {
  width: 100%;
  margin-top: 16px
}
.tv-editor-inspector .tv-layout-palette {
  gap: 6px
}
.tv-editor-inspector .tv-layout-palette h4 {
  flex: 0 0 100%;
  margin-bottom: 4px
}
.tv-editor-inspector .tv-layout-chip {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px
}
.tv-editor-inspector .tv-layout-palette .tv-editor-hint {
  margin: 0
}
.tv-editor-footer {
  bottom: calc(-1 * var(--tv-editor-padding));
  z-index: 8;
  margin: 0 calc(-1 * var(--tv-editor-padding)) calc(-1 * var(--tv-editor-padding));
  padding: 14px var(--tv-editor-padding);
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky
}
.tv-editor-footer .button:last-child {
  margin-left: auto
}
.tv-editor-panel :is(button,summary,select,input,[role=button]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}
.tv-editor-panel button:disabled {
  opacity: .45;
  cursor: not-allowed
}
@media (width<=1100px) {
  .tv-editor-workspace {
    grid-template-columns: minmax(0,1fr) 248px;
    gap: 14px
  }
  .tv-editor-inspector {
    padding: 12px
  }
}
@media (width<=1000px) {
  .tv-editor-workspace {
    grid-template-columns: minmax(0,1fr)
  }
  .tv-editor-stage {
    position: static
  }
  .tv-editor-inspector {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 20px;
    display: grid
  }
  .tv-editor-inspector .tv-layout-palette,
  .tv-editor-inspector-heading,
  .tv-editor-select {
    grid-column: 1/-1
  }
  .tv-editor-remove {
    grid-column: 1/-1;
    width: fit-content
  }
  .detail-panel.modal-panel.tv-editor-panel {
    --tv-editor-padding: 16px
  }
  .tv-editor-footer {
    padding: 12px var(--tv-editor-padding)
  }
  .tv-editor-hint {
    font-size: 12px
  }
}
@media (width<=480px) {
  .tv-editor-inspector {
    padding: 14px;
    display: block
  }
  .tv-editor-alignments button {
    min-height: 56px;
    font-size: 12px
  }
  .tv-editor-fields input {
    height: 40px
  }
  .tv-editor-size-actions .button {
    min-height: 38px
  }
  .tv-editor-footer .button {
    flex: calc(50% - 8px);
    min-height: 40px;
    padding: 8px;
    font-size: 12px
  }
  .tv-editor-footer .button:last-child {
    margin-left: 0
  }
  .tv-editor-overlay .tv-layout-box-label {
    padding: 1px 3px;
    font-size: 9px
  }
}
.tv-theme-cards {
  flex: 1 0 100%;
  grid-template-columns: repeat(auto-fill,minmax(148px,1fr));
  gap: 8px;
  display: grid
}
.tv-theme-card {
  text-align: left;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  gap: 4px;
  padding: 8px;
  display: grid
}
.tv-theme-card:hover {
  border-color: var(--accent)
}
.tv-theme-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-weak)
}
.tv-theme-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.tv-theme-swatch {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  height: 34px;
  display: block
}
.tv-theme-name {
  font-size: 13px;
  font-weight: 600
}
.tv-theme-hint {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.45
}
.tv-bg-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  display: flex
}
.tv-bg-warning {
  color: var(--warn);
  flex: 1 0 100%;
  margin: 0;
  font-size: 12.5px
}
.tv-watermark-control {
  flex: 1 0 100%;
  gap: 6px;
  display: grid
}
.tv-watermark-control label {
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  display: flex
}
.tv-watermark-control label b {
  font-variant-numeric: tabular-nums;
  color: var(--accent)
}
.tv-watermark-range {
  align-items: center;
  gap: 10px;
  display: flex
}
.tv-watermark-range input[type=range] {
  min-width: 0;
  accent-color: var(--accent);
  flex: auto
}
.tv-watermark-range .meta {
  flex: none;
  margin: 0
}
.tv-backdrop-thumb {
  object-fit: cover;
  border: 1px solid var(--border);
  background: #000;
  border-radius: 6px;
  width: 78px;
  height: 44px
}
.tv-backdrop-status {
  flex: 1 0 100%;
  margin: 0
}
.tv-backdrop-chip {
  border: 1px solid var(--border);
  width: 52px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: #000;
  border-radius: 6px;
  flex: none;
  place-items: center;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  overflow: hidden
}
.tv-backdrop-chip img {
  object-fit: cover;
  width: 100%;
  height: 100%
}
.tv-backdrop-chip:hover:not(:disabled) {
  border-color: var(--accent)
}
.tv-backdrop-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.tv-backdrop-modes {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.tv-backdrop-mode {
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-weight: 600;
  display: inline-flex
}
.tv-backdrop-mode input {
  accent-color: var(--accent);
  margin: 0
}
.tv-backdrop-mode.on {
  border-color: var(--accent);
  color: var(--accent)
}
.tv-backdrop-mode:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.brand > div {
  min-width: 0
}
.brand-name,
.brand-subtitle {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}
.head-tools {
  align-items: center;
  gap: 6px;
  margin-right: auto;
  display: flex
}
.head-tools .notify-dock {
  margin-top: 0
}
.head-tools .theme-toggle {
  flex: none;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  position: relative
}
.head-tools .nav-count {
  min-width: 18px;
  height: 18px;
  box-shadow: 0 0 0 2px var(--sidebar-bg);
  margin: 0;
  padding: 0 5px;
  font-size: 10.5px;
  position: absolute;
  top: -6px;
  right: -6px
}
@media (width<=1100px) {
  .sidebar.collapsed .head-tools {
    display: none
  }
  .sidebar:not(.collapsed) .sidebar-head {
    flex-wrap: wrap;
    row-gap: 10px
  }
  .sidebar:not(.collapsed) .head-tools {
    flex-basis: 100%;
    order: 1
  }
}
@media (width>=1101px) {
  .nav-toggle {
    border: 1px solid var(--sidebar-border);
    width: 36px;
    height: 36px;
    color: inherit;
    cursor: pointer;
    background: 0 0;
    border-radius: 10px;
    flex: none;
    place-items: center;
    display: inline-grid
  }
  .nav-toggle:hover {
    background: var(--sidebar-hover)
  }
  .nav-toggle svg {
    width: 18px;
    height: 18px
  }
  .sidebar.collapsed .nav-toggle-close,
  .sidebar:not(.collapsed) .nav-toggle-open {
    display: none
  }
  :root[data-nav=expanded] .sidebar-head {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 8px
  }
  :root[data-nav=expanded] .sidebar-head .brand {
    flex: 100%;
    padding-bottom: 0
  }
  :root[data-nav=expanded] .head-tools .notify-panel {
    top: calc(100% + 8px);
    bottom: auto
  }
  :root[data-nav=collapsed] {
    --sidebar-w: 76px
  }
  :root[data-nav=collapsed] .sidebar {
    align-items: center;
    padding-left: 12px;
    padding-right: 12px
  }
  :root[data-nav=collapsed] .app-version,
  :root[data-nav=collapsed] .auth-user-text,
  :root[data-nav=collapsed] .brand > div:not(.brand-mark),
  :root[data-nav=collapsed] .nav-item > span,
  :root[data-nav=collapsed] .scan-button > span,
  :root[data-nav=collapsed] .store-clock,
  :root[data-nav=collapsed] .theme-toggle-label {
    display: none
  }
  :root[data-nav=collapsed] .sidebar-head {
    flex-direction: column;
    gap: 8px
  }
  :root[data-nav=collapsed] .head-tools {
    flex-direction: column;
    order: 1;
    margin-right: 0
  }
  :root[data-nav=collapsed] .auth-user,
  :root[data-nav=collapsed] .nav-item,
  :root[data-nav=collapsed] .scan-button,
  :root[data-nav=collapsed] .theme-toggle {
    justify-content: center;
    padding-left: 0;
    padding-right: 0
  }
  :root[data-nav=collapsed] .nav-item {
    gap: 0
  }
  :root[data-nav=collapsed] .auth-user {
    gap: 6px
  }
  :root[data-nav=collapsed] .nav {
    scrollbar-width: none;
    align-self: stretch
  }
  :root[data-nav=collapsed] .nav::-webkit-scrollbar {
    display: none
  }
  :root[data-nav=collapsed] .notify-dock,
  :root[data-nav=collapsed] .store-switch {
    flex: none
  }
  :root[data-nav=collapsed] .notify-panel,
  :root[data-nav=collapsed] .store-switch-panel {
    width: min(320px,100vw - 100px);
    max-height: calc(100dvh - 24px);
    position: fixed;
    top: 12px;
    bottom: auto;
    left: 84px;
    overflow-y: auto
  }
  .sidebar {
    gap: clamp(5px,.8vh,8px);
    padding-top: clamp(14px,2.2vh,22px);
    padding-bottom: clamp(14px,2.2vh,22px)
  }
  .brand {
    min-height: clamp(40px,4.8vh,48px)
  }
  .brand-mark {
    width: clamp(36px,4.2vh,42px);
    height: clamp(36px,4.2vh,42px)
  }
  .brand-mark img {
    width: clamp(29px,3.4vh,34px);
    height: clamp(29px,3.4vh,34px)
  }
  .head-tools .theme-toggle,
  .nav-toggle {
    width: clamp(32px,3.6vh,36px);
    height: clamp(32px,3.6vh,36px)
  }
  .store-clock {
    margin-bottom: clamp(5px,1vh,10px);
    padding-top: clamp(4px,.7vh,7px);
    padding-bottom: clamp(4px,.7vh,7px)
  }
  .store-clock-time {
    font-size: clamp(14px,1.6vh,16px)
  }
  .scan-button {
    min-height: clamp(34px,3.8vh,38px)
  }
  .theme-toggle {
    height: clamp(34px,4vh,40px)
  }
  .auth-user {
    padding-top: clamp(6px,.9vh,9px);
    padding-bottom: clamp(6px,.9vh,9px)
  }
  .app-version {
    padding-top: clamp(3px,.8vh,8px)
  }
  .nav {
    flex-direction: column;
    gap: clamp(2px,.3vh,3px);
    margin-top: clamp(8px,2vh,20px);
    display: flex
  }
  .nav-item {
    flex: 0 42px;
    height: auto;
    min-height: 30px;
    font-size: clamp(13.5px,1.45vh,14.5px)
  }
  .nav-icon {
    width: clamp(16px,1.8vh,18px);
    height: clamp(16px,1.8vh,18px)
  }
}
@media (width>=701px) and (width<=1400px) {
  .data-table .col-optional {
    display: none
  }
}
.detail-heading {
  flex-wrap: wrap
}
.detail-heading > div:first-child {
  min-width: min(100%,240px)
}
@media (width<=720px) {
  .detail-heading > div:first-child {
    flex: 100%
  }
  .detail-actions {
    flex: 100%;
    justify-content: flex-start
  }
  .detail-actions > .button {
    flex: auto;
    min-height: 40px
  }
  .modal-panel .detail-heading .icon-button[aria-label=關閉] {
    margin: 0;
    position: absolute;
    top: 12px;
    right: 12px
  }
  .modal-panel .detail-heading {
    padding-right: 56px
  }
  .member-tabs .member-tab {
    white-space: nowrap;
    flex: none;
    padding: 8px 9px;
    font-size: 13.5px
  }
  .member-tabs {
    flex-wrap: wrap;
    row-gap: 2px
  }
  .advice-row {
    flex-wrap: wrap
  }
  .advice-text {
    flex: 100%
  }
  .advice-row > .button {
    flex: auto
  }
  .ops-table .row-actions {
    min-width: 0
  }
  .push-table td:nth-child(3),
  .push-table th:nth-child(3) {
    width: 9%
  }
  .push-table td:nth-child(4),
  .push-table th:nth-child(4) {
    width: 13%
  }
  .push-table td:nth-child(5),
  .push-table th:nth-child(5) {
    width: 9%
  }
  .push-table td:nth-child(7),
  .push-table th:nth-child(7) {
    width: 29%
  }
  .bh-times {
    flex-wrap: wrap;
    row-gap: 8px
  }
  .bh-cal-bar-row input[type=time],
  .bh-times input[type=time] {
    flex: 120px;
    width: auto;
    min-width: 0
  }
  .bh-remove {
    margin-left: auto
  }
}
.approval-modal-panel {
  width: min(720px,100%)
}
.identity-link-panel {
  width: min(520px,100%)
}
.identity-link-panel:focus {
  outline: 0
}
.identity-link-body {
  gap: 14px;
  display: grid
}
.identity-link-explain {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.65
}
.identity-link-explain p + p {
  color: var(--text-muted);
  margin-top: 6px
}
.identity-link-numbers {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  display: grid
}
.identity-link-no {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  gap: 2px;
  padding: 10px 12px;
  display: grid
}
.identity-link-no span {
  color: var(--text-muted);
  font-size: 12px
}
.identity-link-no b {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  font-size: 22px
}
.identity-link-no.is-existing {
  border-color: var(--accent)
}
.identity-link-no.is-existing b {
  color: var(--accent)
}
.identity-link-facts {
  margin: 8px 0
}
.identity-link-same {
  background: var(--success-weak);
  color: var(--success);
  white-space: nowrap;
  border-radius: 999px;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600
}
.identity-link-choices {
  gap: 8px;
  display: grid
}
.identity-link-choice {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  gap: 3px;
  padding: 12px 14px;
  transition: border-color .12s,background-color .12s;
  display: grid
}
.identity-link-choice:hover {
  border-color: var(--accent);
  background: var(--accent-weak)
}
.identity-link-choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.identity-link-choice b {
  font-size: 15px
}
.identity-link-choice span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6
}
.identity-link-confirm {
  gap: 10px;
  display: grid
}
.identity-link-confirm label {
  gap: 6px;
  display: grid
}
.identity-link-confirm label > span {
  font-size: 13px;
  font-weight: 600
}
.identity-link-confirm input {
  letter-spacing: .04em;
  font-size: 18px
}
@media (width<=480px) {
  .identity-link-numbers {
    grid-template-columns: minmax(0,1fr)
  }
}
.identity-match-section {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
  padding: 11px 13px
}
.identity-match-section .approval-section-title {
  color: var(--accent)
}
.rank-prize-status {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 0 0 12px;
  padding: 8px 12px;
  line-height: 1.6
}
.rank-prize-status.is-final {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success)
}
.rank-prize-status.is-estimate {
  border-color: var(--warn);
  background: var(--warn-weak);
  color: var(--warn)
}
.icm-breakdown-table.rank-prize-table {
  width: 100%;
  min-width: 0
}
.icm-breakdown-table.rank-prize-table td {
  white-space: normal
}
.icm-breakdown-table.rank-prize-table td:first-child {
  white-space: nowrap
}
.rank-prize-table tr.is-current td {
  background: var(--accent-weak)
}
.rank-prize-table td.num,
.rank-prize-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.rank-prize-table th.sortable-th {
  padding: 0
}
.rank-prize-table th.sortable-th .sort-button {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  display: flex
}
.rank-prize-table th.sortable-th.num .sort-button {
  justify-content: flex-end
}
.rank-prize-table th.sortable-th .sort-button:hover {
  color: var(--text)
}
.rank-prize-table th.sortable-th .sort-button.active {
  color: var(--accent)
}
.rank-prize-table .sort-caret {
  opacity: .9;
  flex: none;
  font-size: 10px
}
.bust-notice-panel {
  width: min(440px,100%)
}
.bust-notice-amount {
  font-variant-numeric: tabular-nums;
  margin: 4px 0 8px;
  font-size: 28px;
  font-weight: 700
}
.bust-notice-amount.is-success {
  color: var(--success)
}
.bust-notice-amount.is-muted {
  color: var(--text-muted)
}
.same-hand-panel {
  width: min(640px,100%)
}
.same-hand-table {
  width: 100%
}
.same-hand-table td,
.same-hand-table th {
  vertical-align: middle;
  padding: 8px
}
.same-hand-table tr.selected td {
  background: var(--accent-weak)
}
.same-hand-table input[type=number] {
  width: 130px
}
.same-hand-hint {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 13px
}
.same-hand-hint.is-error {
  color: var(--danger)
}
.bust-notice-group {
  gap: 6px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid
}
.bust-notice-group li {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  display: flex
}
.bust-notice-group-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700
}
.bust-notice-group-amount.is-success {
  color: var(--success)
}
.bust-notice-group-amount.is-muted {
  color: var(--text-muted)
}
.bust-notice-champion {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  gap: 2px;
  margin: 4px 0 8px;
  padding: 10px 14px;
  display: grid
}
.bust-notice-champion strong {
  font-size: 16px
}
.bust-notice-champion .bust-notice-amount {
  margin: 0;
  font-size: 24px
}
.import-upload {
  border-bottom: 1px solid var(--border);
  gap: 10px;
  padding: 16px 18px;
  display: grid
}
.import-upload-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex
}
.import-upload-row input[type=file] {
  flex: 220px;
  min-width: 0
}
.import-result {
  border-top: 1px dashed var(--border);
  gap: 10px;
  padding-top: 4px;
  display: grid
}
.import-result-line {
  margin: 0;
  line-height: 1.5
}
.tournament-edit-notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7
}
.tournament-edit-notice b {
  color: var(--text)
}
.tournament-roster-panel .reg-table {
  min-width: 800px
}
.tournament-roster-panel .reg-table td:first-child,
.tournament-roster-panel .reg-table th:first-child {
  width: 14%
}
.tournament-roster-panel .reg-table td:nth-child(2),
.tournament-roster-panel .reg-table th:nth-child(2) {
  width: 11.5%
}
.tournament-roster-panel .reg-table td:nth-child(3),
.tournament-roster-panel .reg-table th:nth-child(3) {
  width: 8.5%
}
.tournament-roster-panel .reg-table td:nth-child(4),
.tournament-roster-panel .reg-table th:nth-child(4) {
  width: 10%
}
.tournament-roster-panel .reg-table td:nth-child(5),
.tournament-roster-panel .reg-table th:nth-child(5) {
  width: 10.5%
}
.tournament-roster-panel .reg-table td:nth-child(6),
.tournament-roster-panel .reg-table th:nth-child(6) {
  width: 7.5%
}
.tournament-roster-panel .reg-table td:nth-child(7),
.tournament-roster-panel .reg-table th:nth-child(7) {
  width: 9.5%
}
.tournament-roster-panel .reg-table td:nth-child(8),
.tournament-roster-panel .reg-table th:nth-child(8) {
  width: 13%
}
.tournament-roster-panel .reg-table td:nth-child(9),
.tournament-roster-panel .reg-table th:nth-child(9) {
  width: 15.5%
}
.tournament-roster-panel .reg-table .row-actions {
  width: 100%;
  min-width: 0
}
.tournament-roster-panel .reg-table .roster-phone-inline {
  display: none
}
.tournament-roster-panel .reg-table .roster-member-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  display: flex
}
.tournament-roster-panel .reg-table .roster-member-name {
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--border-strong);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  font-weight: 700
}
.tournament-roster-panel .reg-table .roster-nickname {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0
}
.tournament-roster-panel .reg-table .roster-member-name:hover {
  color: var(--accent);
  text-decoration-color: currentColor
}
.tournament-roster-panel .reg-table .roster-line-tag {
  border: 1px solid var(--border);
  background: var(--surface-2);
  min-height: 20px;
  color: var(--text-muted);
  font: inherit;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: 0 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex
}
.tournament-roster-panel .reg-table .roster-line-tag.is-bound {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success)
}
.tournament-roster-panel .reg-table button.roster-line-tag {
  cursor: pointer
}
.tournament-roster-panel .reg-table button.roster-line-tag:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent)
}
.tournament-roster-panel .reg-table .roster-member-nos {
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  column-gap: 8px;
  display: flex
}
.tournament-roster-panel .reg-table .roster-phone {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  display: inline-flex
}
.tournament-roster-panel .reg-table .roster-phone-text {
  text-overflow: ellipsis;
  overflow: hidden
}
.tournament-roster-panel .reg-table .roster-phone-eye {
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex
}
.tournament-roster-panel .reg-table .roster-phone-eye:hover {
  border-color: var(--border);
  color: var(--text)
}
.tournament-roster-panel .reg-table .roster-phone-eye svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px
}
.tournament-roster-panel .reg-table td .meta:not(.reg-when-date),
.tournament-roster-panel .reg-table td .text-button {
  white-space: normal;
  overflow-wrap: anywhere
}
.bind-option {
  justify-self: stretch;
  justify-items: start;
  gap: 8px;
  display: grid
}
.bind-option + .bind-option {
  border-top: 1px solid var(--border);
  padding-top: 12px
}
.bind-option h3 {
  margin: 0;
  font-size: 14px
}
.bind-option .bind-link-row {
  max-width: none
}
.bind-copy svg {
  width: 18px;
  height: 18px
}
.bind-copy.is-copied {
  border-color: var(--success);
  color: var(--success)
}
.tournament-roster-panel .roster-table-wrap {
  container: roster/inline-size
}
@media (width>=701px) {
  @container roster (width<=1120px) {
    .tournament-roster-panel .reg-table td:nth-child(2),
    .tournament-roster-panel .reg-table th:nth-child(2) {
      display: none
    }
    .tournament-roster-panel .reg-table .roster-phone-inline {
      display: block
    }
    .tournament-roster-panel .reg-table td:first-child,
    .tournament-roster-panel .reg-table th:first-child {
      width: 16%
    }
    .tournament-roster-panel .reg-table td:nth-child(3),
    .tournament-roster-panel .reg-table th:nth-child(3) {
      width: 10%
    }
    .tournament-roster-panel .reg-table td:nth-child(4),
    .tournament-roster-panel .reg-table th:nth-child(4) {
      width: 11%
    }
    .tournament-roster-panel .reg-table td:nth-child(5),
    .tournament-roster-panel .reg-table th:nth-child(5) {
      width: 10%
    }
    .tournament-roster-panel .reg-table td:nth-child(6),
    .tournament-roster-panel .reg-table th:nth-child(6) {
      width: 8%
    }
    .tournament-roster-panel .reg-table td:nth-child(7),
    .tournament-roster-panel .reg-table th:nth-child(7) {
      width: 14%
    }
    .tournament-roster-panel .reg-table td:nth-child(8),
    .tournament-roster-panel .reg-table th:nth-child(8) {
      width: 15%
    }
    .tournament-roster-panel .reg-table td:nth-child(9),
    .tournament-roster-panel .reg-table th:nth-child(9) {
      width: 16%
    }
    .tournament-roster-panel .reg-table td:nth-child(7),
    .tournament-roster-panel .reg-table th:nth-child(7) {
      padding-left: 6px;
      padding-right: 6px
    }
    .tournament-roster-panel .reg-table .stack-input {
      min-width: 0;
      max-width: none;
      height: 44px;
      font-size: 16px
    }
  }
}
.reg-table th.sortable-th {
  padding: 0
}
.reg-table th.sortable-th .sort-button {
  white-space: normal;
  text-wrap: balance;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 10px 8px;
  display: flex
}
.reg-table th.sortable-th .sort-caret {
  flex: none
}
.reg-table th.sortable-th .sort-button:hover {
  color: var(--text)
}
.reg-table th.sortable-th .sort-button.active {
  color: var(--accent)
}
.reg-table .sort-caret {
  opacity: .9;
  font-size: 10px
}
.reg-table th.sortable-th .sort-button.active .sort-caret {
  opacity: 1
}
.reg-table .reg-when,
.reg-table .reg-when-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}
.reg-table tbody tr.removed .cell-title {
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--danger);
  text-decoration-color: var(--danger);
  color: var(--text-muted);
  text-decoration-thickness: 1.5px
}
.member-tag-chip.excluded {
  -webkit-text-decoration-color: var(--danger);
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1.5px
}
.roster-removed-toggle {
  margin-left: auto
}
.felt-layout {
  gap: 16px;
  display: grid
}
@media (width>=1500px) {
  .felt-layout.has-rail {
    grid-template-columns: minmax(0,1fr) 300px
  }
}
#tableDetailTab:has(.felt-layout.has-rail) {
  --ws-max: 1700px
}
.felt-rail {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  display: flex
}
.felt-rail-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex
}
.felt-rail-head h3 {
  margin: 0;
  font-size: 15px
}
.felt-rail .meta {
  margin: 0
}
.felt-rail-list {
  flex: 1;
  align-content: start;
  gap: 2px;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow-y: auto
}
.felt-rail-list li {
  border-radius: 6px;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 8px;
  font-size: 14px;
  display: flex
}
.felt-rail-list li:nth-child(odd) {
  background: var(--surface)
}
.felt-rail-list strong {
  font-variant-numeric: tabular-nums
}
.staff-register-closed-note {
  color: var(--text-muted);
  font-size: 13px
}
.roster-sort-narrow {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: none
}
.roster-sort-narrow .sort-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-height: 38px;
  color: var(--text-muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  font-size: 13px;
  display: inline-flex
}
.roster-sort-narrow .sort-button.active {
  border-color: var(--accent);
  color: var(--accent)
}
.roster-sort-narrow .sort-caret {
  font-size: 10px
}
.tournament-rail .rail-collapse {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-height: 34px;
  color: var(--text-muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  display: flex
}
.tournament-rail .rail-collapse:hover {
  border-color: var(--border-strong);
  color: var(--text)
}
.tournament-rail .rail-collapse-caret {
  font-size: 14px;
  line-height: 1
}
.tournament-rail.is-collapsed {
  justify-content: center;
  padding: 8px
}
@media (width>=1400px) {
  .tournament-workbench:has(>.tournament-rail.is-collapsed) {
    grid-template-columns: 44px minmax(0,1fr)
  }
  .tournament-rail.is-collapsed {
    align-items: center;
    max-height: calc(100vh - 88px)
  }
  .tournament-rail.is-collapsed .rail-collapse {
    flex-direction: column;
    width: 100%;
    min-height: 0;
    padding: 10px 0
  }
  .tournament-rail.is-collapsed .rail-collapse-text {
    writing-mode: vertical-rl;
    letter-spacing: .08em
  }
}
@media (width<=1399px) {
  .tournament-rail:not(.is-collapsed) .rail-collapse {
    margin-right: auto
  }
}
.clock-tv-row select {
  max-width: min(320px,100%)
}
.seat-occupant-actions {
  flex-wrap: wrap;
  flex: none;
  gap: 8px;
  display: flex
}
.seat-occupant-actions .button {
  flex: none
}
.seat-occupant-hint {
  margin: -6px 0 12px
}
.seat-button {
  line-height: 1.3;
  container-type: inline-size
}
.seat-button .seat-table {
  font-size: 15px
}
.seat-button .seat-no,
.seat-button .seat-pending {
  font-size: 14px
}
.seat-button .seat-caret {
  font-size: 13px
}
@container (width<=96px) {
  .seat-button .seat-table {
    font-size: 13px
  }
  .seat-button .seat-no,
  .seat-button .seat-pending {
    font-size: 12.5px
  }
}
.staff-removed {
  border-top: 1px solid var(--border);
  padding: 12px 18px 16px
}
.staff-removed-toggle {
  color: var(--text-muted);
  padding-left: 0
}
.staff-removed-list > .meta {
  margin: 4px 0 8px
}
.staff-row-removed {
  opacity: .72;
  padding-left: 0;
  padding-right: 0
}
.perm-groups {
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 12px;
  display: grid
}
.perm-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm,8px);
  background: var(--surface-2);
  align-content: start;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  display: grid
}
.perm-group > legend {
  color: var(--text-subtle);
  letter-spacing: .02em;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700
}
.perm-item {
  cursor: pointer;
  border-radius: 6px;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  display: flex
}
.perm-item:hover {
  background: var(--surface-3,var(--surface))
}
.perm-item:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px
}
.perm-item:has(input:disabled) {
  cursor: default
}
.perm-item input {
  flex: none;
  margin-top: 3px
}
.perm-text {
  gap: 2px;
  min-width: 0;
  display: grid
}
.perm-name {
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex
}
.perm-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5
}
.perm-sensitive {
  background: var(--warn-weak);
  color: var(--warn);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px
}
.perm-child {
  border-left: 2px solid var(--border);
  border-radius: 0 6px 6px 0;
  margin-left: 22px;
  padding-left: 12px
}
.perm-child.off .perm-name {
  color: var(--text-muted)
}
.detail-panel.modal-panel.staff-invite-panel {
  width: min(920px,100%);
  max-width: 920px
}
.staff-invite-panel {
  gap: 14px;
  display: grid
}
.staff-invite-panel > .meta {
  margin: 0
}
.staff-invite-mode {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}
.staff-invite-role select {
  min-width: 220px
}
.staff-invite-actions {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  display: flex
}
.payout-head-actions {
  position: relative
}
.payout-io {
  display: inline-flex
}
.payout-export-menu {
  z-index: 60;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 232px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 6px;
  display: flex;
  position: absolute;
  top: calc(100% + 6px);
  right: 0
}
.payout-export-item {
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  display: flex
}
.payout-export-item small {
  color: var(--text-muted);
  font-size: .75rem
}
.payout-export-item:focus-visible,
.payout-export-item:hover {
  background: var(--surface-2)
}
.table-card-clock {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
  display: flex
}
.table-card-clock-phase {
  color: var(--text-muted);
  font-size: 12px
}
.table-card-clock-time {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 5.5ch;
  font-size: 15px;
  font-weight: 600
}
.table-card-clock-time.paused {
  color: var(--warn)
}
.table-card-clock > .button {
  flex: none;
  margin-left: auto
}
.disburse-table .ranking-stack-note[title] {
  cursor: help
}
.disburse-table .pay-amount-toggle {
  cursor: pointer;
  -webkit-text-decoration: underline dotted var(--text-muted);
  text-decoration: underline dotted var(--text-muted);
  text-underline-offset: 5px;
  background: 0 0;
  border: 0;
  font-family: inherit
}
.disburse-table .pay-amount-toggle:after {
  content: "▾";
  color: var(--text-muted);
  margin-left: 4px;
  font-size: 12px
}
.disburse-table .pay-amount-toggle[aria-expanded=true]:after {
  content: "▴"
}
.disburse-table .pay-amount-toggle:hover {
  color: var(--accent)
}
.disburse-table .pay-amount-toggle:focus-visible {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0
}
.disburse-table tr.has-prize-breakdown > td {
  border-bottom-color: #0000
}
.disburse-table .prize-breakdown-row > td {
  white-space: normal;
  padding-top: 0
}
.prize-breakdown {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  padding: 8px 12px;
  display: flex
}
.prize-breakdown-total {
  color: var(--text-muted)
}
.prize-breakdown-part {
  color: var(--text);
  font-weight: 700
}
.prize-breakdown-label {
  color: var(--text-muted);
  margin-right: 4px;
  font-weight: 400
}
.prize-breakdown-sign {
  color: var(--text-muted)
}
.disburse-stats .reg-stat-hint {
  white-space: pre;
  text-align: center
}
.disburse-stats .reg-stat.is-emphasis {
  border-color: var(--accent);
  background: var(--accent-weak);
  box-shadow: inset 0 0 0 1px var(--accent)
}
.disburse-stats .reg-stat.is-emphasis .reg-stat-label,
.disburse-stats .reg-stat.is-emphasis .reg-stat-value {
  color: var(--accent-hover,var(--accent))
}
.disburse-stats .reg-stat.is-emphasis .reg-stat-label {
  font-weight: 700
}
.history-card {
  align-content: start;
  gap: 10px;
  display: grid
}
.history-filter .range-btn b {
  font-variant-numeric: tabular-nums;
  margin-left: 6px
}
.history-summary {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  display: flex
}
.history-grid {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden
}
.history-row {
  border-top: 1px solid var(--border);
  grid-template-columns: 136px minmax(0,1.5fr) minmax(0,1.4fr) 116px 96px 104px 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  display: grid
}
.history-row.is-head {
  background: var(--surface-2);
  border-top: 0;
  padding-block: 8px
}
.history-row.is-empty {
  grid-template-columns: 1fr
}
.history-row >[role=cell],
.history-row >[role=columnheader] {
  overflow-wrap: anywhere;
  min-width: 0
}
.history-row .h-name,
.history-row .h-outcome {
  justify-items: start;
  gap: 3px;
  display: grid
}
.history-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.history-row.is-head .h-prize,
.history-row.is-head .h-rank,
.history-row.is-head .h-rebuy,
.history-row.is-head .h-stack {
  justify-self: end
}
.history-row .h-date {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted)
}
.history-row .history-open {
  text-align: left;
  text-underline-offset: 3px
}
.history-row.dining-history-row {
  grid-template-columns: 136px minmax(0,1.5fr) minmax(0,1.6fr) 104px
}
.history-row.dining-history-row .h-date {
  gap: 3px;
  display: grid
}
.history-row.dining-history-row.is-head .h-prize {
  justify-self: end
}
.finance-ledger {
  align-content: start;
  gap: 8px;
  min-width: 0;
  display: grid
}
.finance-ledger .pager {
  justify-content: flex-start;
  min-height: 0;
  padding: 2px 0
}
@media (width<=860px) {
  .history-row.is-head {
    flex-wrap: wrap;
    gap: 6px 14px;
    display: flex
  }
  .history-row:not(.is-head):not(.is-empty) {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "name name""outcome outcome""date prize""rank stack""rebuy rebuy";
    align-items: start;
    gap: 6px 12px
  }
  .history-row .h-name {
    grid-area: name
  }
  .history-row .h-outcome {
    grid-area: outcome
  }
  .history-row .h-date {
    grid-area: date
  }
  .history-row .h-prize {
    grid-area: prize
  }
  .history-row .h-rank {
    text-align: left;
    grid-area: rank
  }
  .history-row .h-stack {
    grid-area: stack
  }
  .history-row .h-rebuy {
    text-align: left;
    grid-area: rebuy
  }
  .history-row.dining-history-row:not(.is-head):not(.is-empty) {
    grid-template-areas: "name name""outcome outcome""date prize"
  }
  .history-row [data-label]:before {
    content: attr(data-label) " ";
    color: var(--text-muted);
    font-size: 12px
  }
}
html:has(>body>.signature-sheet) {
  overscroll-behavior: none;
  overflow: hidden
}
html:has(>body>.signature-sheet) .counter-printer {
  display: none
}
.signature-sheet {
  z-index: 78;
  height: 100dvh;
  padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  outline: 0;
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: fixed;
  inset: 0
}
.signature-sheet-head {
  flex: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex
}
.signature-sheet-title {
  gap: 2px;
  min-width: 0;
  display: grid
}
.signature-sheet-head h2 {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  margin: 0;
  font-size: clamp(19px,2.4vw,26px);
  line-height: 1.25;
  display: flex
}
.signature-sheet-who {
  overflow-wrap: anywhere;
  min-width: 0
}
.signature-sheet-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}
.signature-sheet-stage {
  border-radius: var(--radius);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background: #fff;
  border: 2px dashed #9ca3af;
  flex: auto;
  min-height: 140px;
  position: relative;
  overflow: hidden
}
.signature-sheet-stage:before {
  content: "";
  pointer-events: none;
  border-bottom: 1px solid #d1d5db;
  position: absolute;
  bottom: 24%;
  left: 6%;
  right: 6%
}
.signature-sheet-hint {
  color: #9ca3af;
  pointer-events: none;
  font-size: 15px;
  position: absolute;
  bottom: calc(24% + 8px);
  left: 6%
}
.signature-sheet-canvas {
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0
}
.signature-sheet-actions {
  flex: none;
  justify-content: flex-end;
  gap: 10px;
  display: flex
}
.signature-sheet-actions .button {
  min-width: 104px;
  min-height: 48px;
  font-size: 16px
}
.signature-sheet-clear {
  margin-right: auto
}
@media (width<=560px) {
  .signature-sheet {
    gap: 8px
  }
  .signature-sheet-actions .button {
    flex: 1;
    min-width: 0
  }
  .signature-sheet-clear {
    margin-right: 0
  }
}
@media (height<=520px) {
  .signature-sheet {
    padding-top: max(8px,env(safe-area-inset-top));
    padding-bottom: max(8px,env(safe-area-inset-bottom));
    gap: 6px
  }
  .signature-sheet-title .detail-no {
    display: none
  }
  .signature-sheet-head h2 {
    font-size: 18px
  }
  .signature-sheet .signature-reuse {
    padding: 6px 10px
  }
  .signature-sheet .signature-reuse img {
    width: 84px;
    height: 36px
  }
  .signature-sheet-actions .button {
    min-height: 42px
  }
}
.signature-reuse {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex
}
.signature-reuse img {
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  flex: none;
  width: 120px;
  height: 52px
}
.signature-reuse-text {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex
}
.signature-reuse .button {
  flex: none
}
@media (width<=560px) {
  .signature-reuse {
    flex-wrap: wrap
  }
  .signature-reuse-text {
    flex-basis: 100%;
    order: -1
  }
  .signature-reuse img {
    width: 96px;
    height: 42px
  }
}
.lucky-draw-stats {
  margin: 4px 0 14px
}
.lucky-draw-stats .reg-stat {
  align-items: flex-start;
  min-width: 150px;
  padding: 10px 14px
}
.lucky-draw-stats .reg-stat-value {
  font-size: 20px
}
.lucky-draw-stats .reg-stat-hint {
  white-space: normal;
  max-width: 280px
}
.lucky-draw-block {
  display: block
}
.lucky-draw-table .row-actions,
.lucky-draw-winner-table .row-actions {
  min-width: 0
}
.lucky-draw-winner-table .row-actions .button {
  margin: 0
}
.lucky-draw-table td,
.lucky-draw-winner-table td {
  white-space: normal;
  text-overflow: clip;
  overflow: visible
}
.lucky-draw-table {
  min-width: 980px
}
.lucky-draw-table td:first-child,
.lucky-draw-table th:first-child {
  width: 18%
}
.lucky-draw-table td:nth-child(2),
.lucky-draw-table th:nth-child(2) {
  width: 17%
}
.lucky-draw-table td:nth-child(3),
.lucky-draw-table th:nth-child(3) {
  width: 13%
}
.lucky-draw-table td:nth-child(4),
.lucky-draw-table th:nth-child(4) {
  width: 12%
}
.lucky-draw-table td:nth-child(5),
.lucky-draw-table th:nth-child(5) {
  width: 11%
}
.lucky-draw-table td:nth-child(6),
.lucky-draw-table th:nth-child(6) {
  width: 10%
}
.lucky-draw-table td:nth-child(7),
.lucky-draw-table th:nth-child(7) {
  width: 11%
}
.lucky-draw-table td:nth-child(8),
.lucky-draw-table th:nth-child(8),
.lucky-draw-winner-table td:first-child,
.lucky-draw-winner-table th:first-child {
  width: 8%
}
.lucky-draw-winner-table td:nth-child(2),
.lucky-draw-winner-table th:nth-child(2) {
  width: 11%
}
.lucky-draw-winner-table td:nth-child(3),
.lucky-draw-winner-table th:nth-child(3) {
  width: 10%
}
.lucky-draw-winner-table td:nth-child(4),
.lucky-draw-winner-table th:nth-child(4) {
  width: 18%
}
.lucky-draw-winner-table td:nth-child(5),
.lucky-draw-winner-table th:nth-child(5) {
  width: 7%
}
.lucky-draw-winner-table td:nth-child(6),
.lucky-draw-winner-table th:nth-child(6) {
  width: 9%
}
.lucky-draw-winner-table td:nth-child(7),
.lucky-draw-winner-table th:nth-child(7) {
  width: 14%
}
.lucky-draw-winner-table td:nth-child(8),
.lucky-draw-winner-table th:nth-child(8) {
  width: 23%
}
.lucky-draw-entrant-table td:nth-child(2),
.lucky-draw-entrant-table th:nth-child(2),
.lucky-draw-preview-table td:nth-child(2),
.lucky-draw-preview-table th:nth-child(2) {
  width: 44%
}
.lucky-draw-entrant-table td:last-child,
.lucky-draw-entrant-table th:last-child,
.lucky-draw-preview-table td:last-child,
.lucky-draw-preview-table th:last-child {
  width: 14%
}
.lucky-draw-winner-table tr.is-voided td {
  color: var(--text-muted)
}
.lucky-draw-winner-table tr.is-voided td:not(:last-child) {
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--danger);
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1.5px
}
.lucky-draw-winner-table tr.is-voided .lucky-draw-void-reason {
  text-decoration: none;
  display: inline-block
}
.lucky-draw-form-panel {
  width: min(760px,100%)
}
.lucky-draw-period {
  grid-template-columns: repeat(2,minmax(0,1fr)) auto;
  align-items: end;
  gap: 10px;
  display: grid
}
.lucky-draw-period-quick {
  gap: 6px;
  padding-bottom: 2px;
  display: flex
}
.lucky-draw-rules {
  gap: 8px;
  display: grid
}
.lucky-draw-rule {
  align-items: flex-start
}
.lucky-draw-rule > span {
  gap: 2px;
  display: grid
}
.lucky-draw-prizes {
  gap: 8px;
  display: grid
}
.lucky-draw-prize-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex
}
.lucky-draw-prize-row {
  grid-template-columns: minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  display: grid
}
.lucky-draw-inline {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: flex
}
.lucky-draw-inline input {
  width: 110px
}
.lucky-draw-prize-row .lucky-draw-inline:nth-of-type(2) input {
  width: 72px
}
.lucky-draw-preview {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex
}
.lucky-draw-preview-table {
  max-height: 260px;
  overflow: auto
}
.lucky-draw-ledger-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  display: flex
}
.lucky-draw-ledger-filter select {
  min-width: 140px
}
.lucky-draw-ledger-table td {
  white-space: normal;
  text-overflow: clip;
  overflow: visible
}
.lucky-draw-ledger-table td:first-child,
.lucky-draw-ledger-table th:first-child {
  width: 11%
}
.lucky-draw-ledger-table td:nth-child(2),
.lucky-draw-ledger-table th:nth-child(2) {
  width: 13%
}
.lucky-draw-ledger-table td:nth-child(3),
.lucky-draw-ledger-table th:nth-child(3) {
  width: 31%
}
.lucky-draw-ledger-table td:nth-child(4),
.lucky-draw-ledger-table td:nth-child(5),
.lucky-draw-ledger-table td:nth-child(6),
.lucky-draw-ledger-table th:nth-child(4),
.lucky-draw-ledger-table th:nth-child(5),
.lucky-draw-ledger-table th:nth-child(6) {
  width: 10%
}
.lucky-draw-ledger-table td:nth-child(7),
.lucky-draw-ledger-table th:nth-child(7) {
  width: 15%
}
.lucky-draw-ledger-table .row-actions {
  flex-wrap: wrap;
  min-width: 0
}
.lucky-draw-ledger-table tr.is-voided td {
  color: var(--text-muted)
}
.lucky-draw-ledger-table tr.is-voided td:nth-child(4),
.lucky-draw-ledger-table tr.is-voided td:nth-child(5) {
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--danger);
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1.5px
}
.lucky-draw-entry-panel {
  width: min(620px,100%)
}
.lucky-draw-entry-quick {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -4px;
  display: flex
}
.lucky-draw-entry-quick .button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak)
}
.lucky-draw-entry-row {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  display: grid
}
.lucky-draw-entry-warn {
  color: var(--warn)
}
.lucky-draw-member-pick {
  gap: 6px;
  display: grid
}
.lucky-draw-member-picked {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex
}
.lucky-draw-member-hits {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto
}
.lucky-draw-member-hits li + li {
  border-top: 1px solid var(--border)
}
.lucky-draw-member-hits button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 8px 12px
}
.lucky-draw-member-hits button:focus-visible,
.lucky-draw-member-hits button:hover {
  background: var(--surface-2)
}
@media (width<=640px) {
  .lucky-draw-period {
    grid-template-columns: 1fr
  }
  .lucky-draw-prize-row {
    grid-template-columns: minmax(0,1fr) auto
  }
  .lucky-draw-stats .reg-stat {
    flex: 140px;
    min-width: 0
  }
  .lucky-draw-entry-row {
    grid-template-columns: 1fr
  }
}
.cancelled-recap,
.reverted-payouts {
  grid-template-columns: minmax(0,1fr)
}
.cancelled-recap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px 14px 14px;
  display: grid
}
.cancelled-recap .cancel-refunds h3 {
  margin-top: 18px
}
.cancelled-recap .meta {
  line-height: 1.6
}
.reverted-payouts {
  gap: 4px;
  display: grid
}
.reverted-payouts h3 {
  margin: 14px 0 0;
  font-size: 14px
}
.reverted-payouts .meta {
  line-height: 1.6
}
.reverted-payouts-scroll {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto
}
.reverted-payouts-scroll .icm-breakdown-table {
  width: 100%;
  min-width: 620px
}
.reverted-payout-no {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-right: 4px
}
.disburse-panel .reverted-payouts {
  padding: 0 12px 12px
}
.app-version {
  align-items: center;
  gap: 10px;
  display: flex
}
.app-version-notes {
  color: var(--sidebar-muted);
  font: inherit;
  text-underline-offset: 2px;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  text-decoration: underline;
  position: relative
}
.app-version-notes:hover {
  color: var(--sidebar-text)
}
.app-version-notes:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 3px;
  outline: 0
}
.app-version-dot {
  background: var(--sidebar-active-bar);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  top: -1px;
  right: -9px
}
.release-notes-panel {
  width: min(640px,100%)
}
.release-notes-panel .detail-no {
  text-transform: none
}
.release-notes {
  gap: 22px;
  padding: 4px 22px 22px;
  display: grid
}
.release-note + .release-note {
  border-top: 1px solid var(--border);
  padding-top: 18px
}
.release-note-head {
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  display: flex
}
.release-note-group h4 {
  color: var(--text-muted);
  margin: 12px 0 4px;
  font-size: 13.5px
}
.release-note-group ul {
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  display: grid
}
.release-note-group li {
  line-height: 1.65
}
.release-note-setup {
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-top: 12px;
  padding: 2px 14px 12px
}
.start-time {
  font-variant-numeric: tabular-nums
}
.start-time .start-original {
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 2px;
  font-size: .86em;
  font-weight: 400
}
.start-time .start-original.stacked {
  margin: 2px 0 0;
  display: block
}
.dining-pause {
  align-items: center;
  gap: 8px;
  display: inline-flex
}
.dining-pause.is-live {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success);
  font-weight: 700
}
.dining-dot {
  background: var(--success);
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
  display: inline-block
}
.dining-dot.off {
  background: var(--text-muted)
}
.dining-dot.warn {
  background: var(--warn)
}
.dining-dot.info {
  background: var(--info)
}
.dining-paused-note {
  background: var(--surface-3);
  border-radius: 10px;
  margin: 0;
  padding: 10px 14px
}
.dining-columns {
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  align-items: start;
  gap: 20px;
  display: grid
}
.dining-column {
  gap: 12px;
  min-width: 0;
  display: grid
}
.dining-column-title {
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  display: flex
}
.dining-empty {
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
  border-radius: 12px;
  margin: 0;
  padding: 28px 16px
}
.dining-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  gap: 10px;
  padding: 16px;
  display: grid
}
.dining-card-head {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  display: flex
}
.dining-no {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 800
}
.dining-where {
  font-size: 16px;
  font-weight: 700
}
.dining-wait {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 13px
}
.dining-wait.late {
  color: var(--danger);
  font-weight: 700
}
.dining-lines {
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  list-style: none;
  display: grid
}
.dining-lines li {
  gap: 10px;
  display: flex
}
.dining-lines strong {
  font-variant-numeric: tabular-nums;
  min-width: 36px
}
.dining-note {
  background: var(--accent-weak);
  border-radius: 8px;
  margin: 0;
  padding: 6px 10px
}
.dining-money {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-top: 10px;
  display: flex
}
.dining-money strong {
  font-variant-numeric: tabular-nums;
  font-size: 18px
}
.dining-actions {
  gap: 10px;
  display: flex
}
.dining-actions .button.primary {
  flex: 1
}
.dining-day {
  align-items: end
}
.dining-table {
  table-layout: auto;
  min-width: 1160px
}
.dining-table td {
  white-space: normal;
  text-overflow: clip;
  overflow: visible
}
.dining-table td.num,
.dining-table th {
  white-space: nowrap
}
.dining-items-cell {
  min-width: 200px
}
.dining-menu-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex
}
.dining-menu-head .meta {
  margin: 0
}
.dining-order-cell {
  white-space: nowrap
}
.dining-order-cell .icon-button {
  width: 36px;
  height: 36px
}
.dining-availability.is-on {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success);
  font-weight: 700
}
.dining-menu-table {
  table-layout: auto;
  min-width: 760px
}
.dining-menu-table td {
  white-space: normal;
  text-overflow: clip;
  overflow: visible
}
.dining-menu-table .dining-order-cell,
.dining-menu-table td.num,
.dining-menu-table th {
  white-space: nowrap
}
.dining-menu-table .row-actions {
  flex-wrap: nowrap
}
.dining-combos-panel {
  gap: 12px;
  margin-top: 28px;
  display: grid
}
.dining-section-title {
  margin: 0 0 4px;
  font-size: 18px
}
.dining-combo-warn {
  color: var(--warn)
}
.dining-combo-note {
  margin: 0
}
.dining-combo-parts {
  gap: 8px;
  display: grid
}
.dining-combo-part {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex
}
.dining-combo-part select {
  flex: 1;
  min-width: 0
}
.dining-combo-part input {
  flex: none;
  width: 5.5em
}
.dining-combo-parts .link-button {
  justify-self: start
}
.dining-combo-math {
  font-variant-numeric: tabular-nums;
  margin: 0
}
.dining-sold-cell {
  min-width: 120px
}
.dining-sold {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: flex
}
.dining-sold-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600
}
.dining-sold-bar {
  background: var(--surface-2);
  border-radius: 99px;
  height: 4px;
  margin-top: 6px;
  display: block;
  overflow: hidden
}
.dining-sold-bar > span {
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  display: block
}
.dining-sort-note {
  color: var(--warn)
}
.access-banner.practice {
  border-color: var(--warn);
  background: var(--warn-weak)
}
.access-banner.practice strong {
  color: var(--warn)
}
.access-banner.expiring {
  border-color: var(--warn);
  background: var(--warn-weak)
}
.access-banner.expiring strong {
  color: var(--warn)
}
.invoice-practice-tag {
  background: var(--warn-weak);
  color: var(--warn);
  vertical-align: middle;
  white-space: nowrap;
  border-radius: 999px;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  display: inline-block
}
.dining-modal {
  max-width: 520px
}
.dining-modal .announcement-actions {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px
}
.dining-staff-tag {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  vertical-align: middle;
  white-space: nowrap;
  border-radius: 999px;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 20px;
  display: inline-block
}
.detail-panel.modal-panel.staff-order-panel {
  width: min(1180px,100%);
  max-width: 1180px
}
.staff-order-split {
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  display: grid
}
.staff-order-catalog {
  align-content: start;
  gap: 10px;
  min-width: 0;
  display: grid
}
.staff-order-find {
  width: 100%
}
.staff-order-categories {
  flex-wrap: wrap;
  margin: 0
}
.staff-order-grid {
  grid-template-columns: repeat(auto-fill,minmax(132px,1fr));
  align-content: start;
  gap: 8px;
  max-height: min(46vh,420px);
  padding: 2px 4px 2px 2px;
  display: grid;
  overflow-y: auto
}
.staff-order-tile {
  min-width: 0;
  position: relative
}
.staff-order-tile-add {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  height: 100%;
  min-height: 74px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  align-content: start;
  gap: 4px;
  padding: 10px 12px;
  transition: border-color .12s,background-color .12s;
  display: grid
}
.staff-order-tile-add:focus-visible,
.staff-order-tile-add:hover:not(:disabled) {
  border-color: var(--accent)
}
.staff-order-tile.picked .staff-order-tile-add {
  border-color: var(--accent);
  background: var(--accent-weak)
}
.staff-order-tile-add:disabled {
  cursor: not-allowed;
  opacity: .55
}
.staff-order-tile.picked .staff-order-tile-add:disabled {
  opacity: 1;
  cursor: default
}
.staff-order-tile-minus {
  border: 1px solid var(--border-strong,var(--border));
  background: var(--surface);
  width: 30px;
  height: 30px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  place-items: center;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  position: absolute;
  bottom: 6px;
  right: 6px
}
.staff-order-tile-minus:focus-visible,
.staff-order-tile-minus:hover {
  border-color: var(--accent);
  color: var(--accent)
}
.staff-order-tile-name {
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-right: 30px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden
}
.staff-order-tile-price {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  justify-self: start;
  font-size: 13px
}
.staff-order-tile-flag,
.staff-order-tile-qty {
  text-align: center;
  pointer-events: none;
  border-radius: 999px;
  min-width: 24px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  position: absolute;
  top: 8px;
  right: 8px
}
.staff-order-tile-qty {
  background: var(--accent);
  color: var(--accent-contrast);
  font-variant-numeric: tabular-nums
}
.staff-order-tile-flag {
  background: var(--surface-2);
  color: var(--text-muted)
}
.staff-order-ticket {
  align-content: start;
  gap: 14px;
  min-width: 0;
  display: grid
}
.staff-order-cart {
  gap: 8px;
  display: grid
}
.staff-order-cart h3 {
  margin: 0;
  font-size: 15px
}
.staff-order-cart ul {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.staff-order-cart li {
  grid-template-columns: minmax(0,1fr) auto 5em;
  align-items: center;
  gap: 10px;
  display: grid
}
.staff-order-cart-name {
  overflow-wrap: anywhere;
  min-width: 0
}
.staff-order-cart-sum {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.staff-order-field {
  gap: 6px;
  display: grid
}
.staff-order-ticket .dining-breakdown,
.staff-order-ticket .dining-method {
  margin: 0
}
.staff-order-actions {
  gap: 8px;
  display: grid
}
.staff-order-actions .announcement-actions {
  border-top: 1px solid var(--border);
  margin: 0;
  padding-top: 14px
}
@media (width>=960px) {
  .detail-panel.modal-panel.staff-order-panel {
    flex-direction: column;
    height: calc(100vh - 48px);
    display: flex;
    overflow: hidden
  }
  .staff-order-panel > .detail-heading {
    flex: none
  }
  .staff-order-split {
    flex: auto;
    grid-template-rows: minmax(0,1fr) auto;
    grid-template-columns: minmax(0,1fr) 380px;
    gap: 0 22px;
    min-height: 0
  }
  .staff-order-catalog {
    flex-direction: column;
    min-height: 0;
    display: flex;
    overflow: hidden
  }
  .staff-order-grid {
    flex: auto;
    min-height: 0;
    max-height: none;
    padding: 2px 4px 12px 2px
  }
  .staff-order-ticket {
    border-left: 1px solid var(--border);
    min-height: 0;
    padding: 0 4px 12px 22px;
    overflow-y: auto
  }
  .staff-order-actions {
    grid-column: 1/-1
  }
}
.staff-order-who {
  border: 0;
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid
}
.staff-order-who legend {
  margin-bottom: 8px;
  font-weight: 700
}
.staff-order-picked {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  display: flex
}
.staff-order-results {
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.staff-order-result {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  display: flex
}
.staff-order-result:focus-visible,
.staff-order-result:hover {
  border-color: var(--accent)
}
.staff-order-guest {
  gap: 6px;
  display: grid
}
.staff-order-stepper {
  align-items: center;
  gap: 6px;
  display: inline-flex
}
.staff-order-stepper output {
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  font-weight: 700
}
.staff-order-exchange {
  border-left: 2px solid var(--border);
  flex-wrap: wrap;
  grid-column: 1/-1;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  padding: 0 0 4px 12px;
  display: flex
}
.staff-order-balances {
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 10px;
  padding: 12px 14px;
  display: grid
}
.staff-order-balances h3 {
  margin: 0;
  font-size: 15px
}
.staff-order-amount {
  align-items: center;
  gap: 8px;
  display: flex
}
.staff-order-amount input {
  font-variant-numeric: tabular-nums;
  flex: auto;
  min-width: 0
}
.dining-breakdown {
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  gap: 6px;
  margin: 0 0 16px;
  padding: 14px 16px;
  display: grid
}
.dining-breakdown > div {
  justify-content: space-between;
  gap: 12px;
  display: flex
}
.dining-breakdown dd,
.dining-breakdown dt {
  margin: 0
}
.dining-breakdown dt {
  color: var(--text-muted)
}
.dining-breakdown .total {
  border-top: 1px solid var(--border);
  padding-top: 6px
}
.dining-breakdown .due dt,
.dining-breakdown .total dt {
  color: var(--text);
  font-weight: 700
}
.dining-breakdown .due dd {
  font-size: 26px;
  font-weight: 800
}
.dining-method {
  border: 0;
  margin: 0 0 16px;
  padding: 0
}
.dining-method legend {
  margin-bottom: 8px;
  font-weight: 700
}
.featured-row .banner-thumb {
  aspect-ratio: 4/5;
  width: 88px
}
.featured-reason {
  color: var(--danger);
  margin: 0;
  font-size: 13px
}
.popup-row .banner-meta {
  flex-wrap: wrap
}
.popup-stats {
  grid-template-columns: repeat(4,minmax(0,auto));
  justify-content: start;
  gap: 4px 18px;
  margin: 2px 0 0;
  display: grid
}
.popup-stats div {
  gap: 2px;
  display: grid
}
.popup-stats dt {
  color: var(--text-muted);
  font-size: 12px
}
.popup-stats dd {
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: 16px;
  font-weight: 700
}
.popup-stats small {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600
}
.popup-dates {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  display: grid
}
.popup-picked {
  align-items: flex-end;
  gap: 12px;
  display: flex
}
.popup-picked img {
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 120px
}
.popup-picked-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex
}
.popup-limit {
  border: 1px solid var(--warning,#e0a43a);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #e0a43a1f;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 13px;
  display: grid
}
.popup-limit strong {
  color: var(--warning,#e0a43a);
  font-size: 14px
}
.crop-overlay {
  z-index: 1000;
  background: #000000b8;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
  overflow-y: auto
}
.crop-dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  width: min(640px,100%);
  color: var(--text);
  border-radius: 16px;
  gap: 14px;
  padding: 20px;
  display: grid;
  box-shadow: 0 24px 60px -20px #000c
}
.crop-dialog:focus {
  outline: 0
}
.crop-head h2 {
  margin: 0;
  font-size: 18px
}
.crop-head p,
.crop-side-note {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px
}
.crop-body {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 16px;
  display: grid
}
.crop-body.single {
  grid-template-columns: minmax(0,1fr)
}
.crop-body.single .crop-viewport {
  width: 100%
}
.crop-viewport {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: repeating-conic-gradient(#ffffff0d 0 25%,#0000 0 50%) 50%/20px 20px,#0b0b0c;
  border-radius: 12px;
  width: min(100%,400px);
  position: relative;
  overflow: hidden
}
.crop-viewport:active {
  cursor: grabbing
}
.crop-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.crop-image {
  pointer-events: none;
  max-width: none;
  position: absolute
}
.crop-image.hidden {
  visibility: hidden
}
.crop-frame {
  pointer-events: none;
  border: 2px solid #ffffffe6;
  border-radius: 10px;
  position: absolute;
  box-shadow: 0 0 0 9999px #0000009e
}
.crop-loading {
  color: var(--muted);
  place-items: center;
  font-size: 13px;
  display: grid;
  position: absolute;
  inset: 0
}
.crop-side {
  justify-items: center;
  gap: 6px;
  display: grid
}
.crop-phone {
  border: 2px solid var(--line);
  background: #000000d1;
  border-radius: 22px;
  justify-items: center;
  gap: 8px;
  width: 132px;
  padding: 18px 0 14px;
  display: grid
}
.crop-phone-card {
  border: 1px solid #ffffff29;
  border-radius: 8px;
  position: relative;
  overflow: hidden
}
.crop-phone-actions {
  color: #fff9;
  justify-content: space-between;
  align-items: center;
  width: 104px;
  font-size: 8px;
  display: flex
}
.crop-phone-close {
  color: #151412;
  background: #f0ede6;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700
}
.crop-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex
}
.crop-slider {
  min-width: 120px;
  accent-color: var(--accent);
  flex: 140px
}
.crop-warn {
  color: var(--warning,#e0a43a);
  margin: 0;
  font-size: 13px
}
.crop-error {
  color: var(--danger,#ed756b);
  background: #ed756b1f;
  border-radius: 10px;
  margin: 0;
  padding: 12px 14px
}
.crop-foot {
  justify-content: flex-end;
  gap: 8px;
  display: flex
}
@media (width<=560px) {
  .crop-dialog {
    padding: 16px
  }
  .crop-body {
    grid-template-columns: 1fr
  }
  .crop-viewport {
    width: 100%
  }
  .crop-side {
    display: none
  }
}
@media (width<=720px) {
  .popup-stats {
    grid-template-columns: repeat(2,minmax(0,auto))
  }
  .featured-row .banner-thumb {
    width: 160px
  }
}
.traffic-rules {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  gap: 8px;
  margin-top: 16px;
  padding: 16px 18px;
  display: grid
}
.traffic-rules h2 {
  margin: 0;
  font-size: 15px
}
.traffic-rules ul {
  color: var(--text-muted);
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  display: grid
}
.traffic-rules ul b {
  color: var(--text);
  font-weight: 650
}
.traffic-asof {
  white-space: nowrap
}
.traffic-room {
  gap: 14px;
  display: grid
}
.traffic-room .traffic-rules {
  margin-top: 0
}
.traffic-top {
  grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(0,1fr));
  gap: 14px;
  display: grid
}
.traffic-hero {
  flex-direction: column;
  grid-row: span 2;
  display: flex
}
.traffic-hero .kpi-val {
  font-size: 46px
}
.traffic-hero .kpi-val small {
  font-size: 18px
}
.traffic-split {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
  display: grid
}
.traffic-split > div {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  gap: 2px;
  padding: 10px 12px;
  display: grid
}
.traffic-split-val {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15
}
.traffic-split-lab {
  color: var(--text-muted);
  font-size: 12.5px
}
.traffic-note {
  color: var(--text-subtle);
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6
}
.traffic-note b {
  color: var(--text);
  font-variant-numeric: tabular-nums
}
.traffic-hero .traffic-note {
  margin-top: auto;
  padding-top: 14px
}
.traffic-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 14px;
  display: grid
}
.traffic-grid .dash-panel-h .meta {
  font-variant-numeric: tabular-nums
}
.traffic-bar-row {
  grid-template-columns: 9.5em minmax(0,1fr) 5.5em;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: grid
}
.traffic-bar-label {
  color: var(--text-muted)
}
.traffic-bar-track {
  border-radius: var(--pill);
  background: var(--surface-3);
  height: 10px;
  display: block;
  overflow: hidden
}
.traffic-bar {
  border-radius: inherit;
  background: var(--border-strong);
  height: 100%;
  display: block
}
.traffic-bar.ours {
  background: var(--accent)
}
.traffic-bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650
}
.traffic-trend {
  grid-template-columns: repeat(6,minmax(0,1fr));
  align-items: start;
  gap: 10px;
  display: grid
}
.traffic-col {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex
}
.traffic-col-value {
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
  font-size: 12.5px;
  font-weight: 650
}
.traffic-col-stack {
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  width: min(38px,100%);
  height: 150px;
  display: flex
}
.traffic-col-seg {
  border-radius: 4px 4px 0 0;
  flex-shrink: 0;
  width: 100%;
  display: block
}
.traffic-col-seg.platform,
.traffic-swatch.platform {
  background: var(--accent)
}
.traffic-col-seg.elsewhere,
.traffic-swatch.elsewhere {
  background: var(--accent-weak-border)
}
.traffic-col-label {
  color: var(--text-muted);
  justify-items: center;
  font-size: 12px;
  line-height: 1.3;
  display: grid
}
.traffic-col-label small {
  color: var(--text-subtle);
  font-size: 11px
}
.traffic-col.current .traffic-col-label {
  color: var(--text);
  font-weight: 700
}
.traffic-legend {
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  display: flex
}
.traffic-legend span {
  align-items: center;
  gap: 6px;
  display: inline-flex
}
.traffic-swatch {
  border-radius: 2px;
  width: 10px;
  height: 10px
}
.traffic-money {
  margin-top: 4px;
  font-size: 23px
}
@media (width<=1100px) {
  .traffic-top {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .traffic-hero {
    grid-area: auto/1/auto/-1
  }
}
@media (width<=760px) {
  .traffic-grid {
    grid-template-columns: minmax(0,1fr)
  }
}
@media (width<=560px) {
  .traffic-hero .kpi-val {
    font-size: 38px
  }
  .traffic-bar-row {
    grid-template-columns: 7.5em minmax(0,1fr) 4.8em;
    gap: 8px
  }
  .traffic-trend {
    gap: 6px
  }
}
.push-auto-row {
  grid-template-columns: minmax(200px,260px) 1fr;
  align-items: start;
  gap: 16px;
  padding: 4px 16px 16px;
  display: grid
}
.push-auto-field {
  gap: 6px;
  display: grid
}
.push-auto-row .meta {
  margin: 0;
  line-height: 1.7
}
@media (width<=760px) {
  .push-auto-row {
    grid-template-columns: 1fr
  }
}
.chart-tone-strong {
  background: var(--accent)
}
.chart-tone-soft {
  background: color-mix(in srgb,var(--accent) 50%,var(--surface))
}
.chart-tone-dim {
  background: color-mix(in srgb,var(--text) 32%,var(--surface))
}
.chart-tone-mute {
  background: color-mix(in srgb,var(--text) 62%,var(--surface))
}
.chart-tone-faint {
  background: color-mix(in srgb,var(--text) 14%,var(--surface))
}
.chart-tone-people {
  background: color-mix(in srgb,var(--text) 45%,var(--surface))
}
.chart-panel {
  gap: 14px;
  padding: 16px;
  display: grid
}
.chart-panel-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  display: flex
}
.chart-panel-head h2 {
  font-size: 16px;
  font-weight: 700
}
.chart-panel-head .meta {
  margin: 0
}
.chart-headline {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  display: flex
}
.chart-headline b {
  letter-spacing: -.02em;
  font-size: 24px;
  font-weight: 750
}
.chart-headline span {
  color: var(--text-muted);
  font-size: 13px
}
.chart-note {
  color: var(--text-subtle);
  margin: 0;
  font-size: 12.5px
}
.chart-stack-wrap {
  gap: 12px;
  display: grid
}
.chart-stack {
  border-radius: 4px;
  gap: 2px;
  height: 16px;
  display: flex;
  overflow: hidden
}
.chart-stack i {
  flex-basis: 0;
  min-width: 3px;
  display: block
}
.chart-stack-wrap.thin {
  margin-top: 6px
}
.chart-stack-wrap.thin .chart-stack {
  border-radius: 3px;
  gap: 1px;
  height: 6px
}
.chart-stack-wrap.thin .chart-stack i {
  min-width: 2px
}
.chart-stack-empty {
  background: var(--surface-3);
  flex: auto
}
.chart-legend {
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}
.chart-legend li {
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  display: flex
}
.chart-legend li.zero {
  opacity: .55
}
.chart-swatch {
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
  width: 10px;
  height: 10px
}
.chart-legend-name {
  color: var(--text-muted);
  min-width: 0;
  display: grid
}
.chart-legend-name small {
  color: var(--text-subtle);
  font-size: 11.5px
}
.chart-legend b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
  font-weight: 650
}
.chart-legend-pct {
  text-align: right;
  width: 44px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums
}
.chart-legend.inline {
  flex-wrap: wrap;
  gap: 6px 18px;
  display: flex
}
.chart-legend.inline li {
  font-size: 12.5px
}
.chart-legend.inline b {
  margin-left: 2px
}
.chart-col {
  gap: 10px;
  min-width: 0;
  margin: 0;
  display: grid
}
.chart-col-plot {
  grid-template-columns: 40px minmax(0,1fr);
  min-width: 0;
  display: grid
}
.chart-col-y {
  height: 150px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  margin-top: 20px;
  font-size: 11px;
  position: relative
}
.chart-col-y span {
  position: absolute;
  right: 8px;
  transform: translateY(50%)
}
.chart-col-area {
  grid-template-columns: repeat(var(--bars),minmax(0,1fr));
  border-bottom: 1px solid var(--border-strong);
  height: 150px;
  margin-top: 20px;
  display: grid;
  position: relative
}
.chart-col-grid {
  border-top: 1px solid var(--border);
  pointer-events: none;
  height: 0;
  position: absolute;
  left: 0;
  right: 0
}
.chart-col-bar {
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  position: relative
}
.chart-col-bar.active,
.chart-col-bar:hover {
  background: color-mix(in srgb,var(--text) 7%,transparent)
}
.chart-col-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px
}
.chart-col-stack {
  flex-direction: column-reverse;
  gap: 2px;
  width: min(24px,72%);
  display: flex;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%)
}
.chart-col-stack i {
  flex-basis: 0;
  min-height: 2px;
  display: block
}
.chart-col-stack i:last-child {
  border-radius: 4px 4px 0 0
}
.chart-col-total {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translate(-50%)
}
.chart-col-x {
  grid-column: 2;
  grid-template-columns: repeat(var(--bars),minmax(0,1fr));
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin-top: 6px;
  font-size: 11px;
  display: grid
}
.chart-col-x span {
  white-space: nowrap;
  justify-items: center;
  display: grid
}
.chart-col-x small {
  font-size: 10px
}
.chart-readout {
  min-height: 22px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 13px;
  display: flex
}
.chart-readout-head {
  color: var(--text)
}
.chart-readout-head b {
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
  font-size: 15px
}
.chart-readout-item b {
  color: var(--text);
  font-variant-numeric: tabular-nums
}
.chart-readout-item.zero {
  opacity: .5
}
.chart-key {
  vertical-align: middle;
  border-radius: 2px;
  width: 12px;
  height: 3px;
  margin-right: 5px;
  display: inline-block
}
.chart-table summary {
  width: max-content;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px
}
.chart-table summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px
}
.chart-table-scroll {
  margin-top: 8px;
  overflow-x: auto
}
.chart-data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px
}
.chart-data-table td,
.chart-data-table th {
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
  padding: 6px 10px
}
.chart-data-table th {
  color: var(--text-muted);
  font-weight: 600
}
.chart-data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums
}
.chart-data-table tr.zero td {
  color: var(--text-subtle)
}
.chart-paired {
  gap: 4px;
  display: grid
}
.chart-paired > .chart-legend {
  margin: 0 0 6px
}
.chart-paired-row {
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 10px;
  grid-template-columns: minmax(88px,132px) minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  display: grid
}
.chart-paired-row:hover {
  background: var(--surface-2)
}
.chart-paired-row.active {
  border-color: var(--accent-weak-border);
  background: var(--accent-weak)
}
.chart-paired-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px
}
.chart-paired-row.zero {
  color: var(--text-subtle)
}
.chart-paired-name {
  font-size: 14px;
  font-weight: 650;
  display: grid
}
.chart-paired-name small {
  color: var(--text-subtle);
  font-size: 11.5px;
  font-weight: 400
}
.chart-paired-bars {
  gap: 4px;
  display: grid
}
.chart-paired-line {
  grid-template-columns: minmax(0,1fr) 10.5em;
  align-items: center;
  gap: 10px;
  display: grid
}
.chart-paired-track {
  height: 10px
}
.chart-paired-track i {
  border-radius: 0 4px 4px 0;
  min-width: 2px;
  height: 100%;
  display: block
}
.chart-paired-text {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12.5px
}
.chart-heat {
  overflow-x: auto
}
.chart-heat-grid {
  grid-template-columns: minmax(72px,auto) repeat(var(--cols),minmax(46px,1fr));
  gap: 3px;
  min-width: 360px;
  display: grid
}
.chart-heat-corner {
  color: var(--text-subtle);
  text-align: right;
  align-content: end;
  padding: 0 8px 4px 0;
  font-size: 10.5px;
  display: grid
}
.chart-heat-colhead {
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  align-self: end;
  padding-bottom: 4px;
  font-size: 11.5px
}
.chart-heat-short {
  display: none
}
.chart-heat-rowhead {
  color: var(--text-muted);
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  padding-right: 8px;
  font-size: 12px;
  display: flex
}
.chart-heat-cell {
  background: var(--surface-2);
  min-width: 0;
  height: 40px;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 700
}
.chart-heat-cell[aria-disabled=true] {
  color: var(--text-subtle);
  cursor: default;
  font-weight: 400
}
.chart-heat-cell.heat-1 {
  background: color-mix(in srgb,var(--accent) 12%,var(--surface))
}
.chart-heat-cell.heat-2 {
  background: color-mix(in srgb,var(--accent) 22%,var(--surface))
}
.chart-heat-cell.heat-3 {
  background: color-mix(in srgb,var(--accent) 34%,var(--surface))
}
.chart-heat-cell.heat-4 {
  background: color-mix(in srgb,var(--accent) 48%,var(--surface))
}
.chart-heat-cell.heat-5 {
  background: var(--accent);
  color: var(--accent-contrast)
}
.chart-heat-cell:not([aria-disabled=true]):hover {
  box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--text) 40%,transparent)
}
.chart-heat-cell.picked {
  box-shadow: inset 0 0 0 2px var(--text)
}
.chart-heat-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}
.chart-filter-chip {
  border: 1px solid var(--accent-weak-border);
  border-radius: var(--pill);
  background: var(--accent-weak);
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 4px 6px 4px 12px;
  font-size: 13px;
  display: inline-flex
}
.chart-filter-chip button {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1
}
.chart-filter-chip button:hover {
  background: var(--surface);
  color: var(--text)
}
.chart-filter-chip button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px
}
.chart-link {
  color: var(--accent);
  font: inherit;
  text-underline-offset: 3px;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  text-decoration: underline
}
.chart-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px
}
.rfm-chart-grid {
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: 12px;
  display: grid
}
@media (width<=1100px) {
  .rfm-chart-grid {
    grid-template-columns: minmax(0,1fr)
  }
}
@media (width<=560px) {
  .chart-panel {
    padding: 14px 12px
  }
  .chart-legend {
    grid-template-columns: minmax(0,1fr)
  }
  .chart-col-plot {
    grid-template-columns: 30px minmax(0,1fr)
  }
  .chart-col-y span {
    right: 5px
  }
  .chart-col-total {
    display: none
  }
  .chart-paired-row {
    grid-template-columns: minmax(0,1fr);
    gap: 6px
  }
  .chart-paired-line {
    grid-template-columns: minmax(0,1fr) 9.5em
  }
  .chart-heat-grid {
    grid-template-columns: 52px repeat(var(--cols),minmax(34px,1fr));
    gap: 2px;
    min-width: 0
  }
  .chart-heat-corner {
    padding-right: 4px;
    font-size: 10px
  }
  .chart-heat-rowhead {
    padding-right: 6px;
    font-size: 11.5px
  }
  .chart-heat-long {
    display: none
  }
  .chart-heat-short {
    display: inline
  }
  .chart-heat-cell {
    height: 36px;
    font-size: 14px
  }
}
@media (prefers-reduced-motion:no-preference) {
  .chart-col-bar,
  .chart-heat-cell,
  .chart-paired-row {
    transition: background-color .12s cubic-bezier(.2,.7,.2,1),box-shadow .12s cubic-bezier(.2,.7,.2,1)
  }
}
@media (width<=700px) {
  .tournament-roster-panel .roster-sort-narrow {
    display: flex
  }
  .tournament-roster-panel .roster-table-wrap {
    overflow-x: visible
  }
  .tournament-roster-panel .reg-table,
  .tournament-roster-panel .reg-table tbody,
  .tournament-roster-panel .reg-table tr {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block
  }
  .tournament-roster-panel .reg-table thead {
    display: none
  }
  .tournament-roster-panel .reg-table tbody tr {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
    flex-direction: column;
    margin-top: 12px;
    padding: 10px 12px;
    display: flex
  }
  .tournament-roster-panel .reg-table tbody td[data-label] {
    order: 2
  }
  .tournament-roster-panel .reg-table tbody td[data-label=會員] {
    order: 0
  }
  .tournament-roster-panel .reg-table tbody td[data-label=碼量] {
    order: 1
  }
  .tournament-roster-panel .reg-table tbody td[data-label=操作] {
    order: 3
  }
  .tournament-roster-panel .reg-table tbody td:has(.row-actions:empty) {
    display: none
  }
  .tournament-roster-panel .reg-table tbody td:nth-child(n) {
    text-align: left;
    white-space: normal;
    text-overflow: clip;
    border: 0;
    grid-template-columns: 68px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 7px 0;
    display: grid;
    overflow: visible
  }
  .tournament-roster-panel .reg-table tbody td:before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 11.5px
  }
  .tournament-roster-panel .reg-table tbody td:first-child {
    padding-top: 0;
    display: block
  }
  .tournament-roster-panel .reg-table tbody td:first-child:before {
    content: none
  }
  .tournament-roster-panel .reg-table tbody td:first-child .cell-title {
    font-size: 16px
  }
  .tournament-roster-panel .reg-table tbody tr.empty-row td:nth-child(n) {
    text-align: center;
    display: block
  }
  .tournament-roster-panel .reg-table tbody tr.empty-row td:before {
    content: none
  }
  .tournament-roster-panel .reg-table td .stack-input {
    text-align: right;
    border-color: var(--border);
    background: var(--surface);
    width: 100%;
    max-width: none;
    height: 46px;
    min-height: 46px;
    padding: 4px 12px;
    font-size: 16px
  }
  .tournament-roster-panel .reg-table td[data-label=碼量] {
    align-items: center
  }
  .tournament-roster-panel .reg-table .row-actions {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    display: flex
  }
  .tournament-roster-panel .reg-table .row-actions .button {
    flex: auto;
    min-height: 44px;
    margin: 0
  }
  .tournament-detail-pane {
    --detail-actions-h: calc(68px + var(--safe-bottom))
  }
  .tournament-detail-pane .tournament-detail-toolbar > .toolbar-actions {
    z-index: 30;
    padding: 12px calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb,var(--surface) 94%,transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-wrap: nowrap;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0
  }
  .tournament-detail-pane .tournament-detail-toolbar > .toolbar-actions .button {
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    font-size: 12.5px;
    overflow: hidden
  }
  .tournament-detail-pane .tournament-detail-toolbar > .toolbar-actions:empty {
    display: none
  }
  .tournament-detail-pane:has(.tournament-detail-toolbar>.toolbar-actions:not(:empty)) {
    padding-bottom: calc(16px + var(--detail-actions-h))
  }
  .tournament-detail-pane .roster-chip-summary {
    bottom: var(--detail-actions-h)
  }
}