


:root {
  color-scheme: light;

  --ground: #fffaf6;
  --card: #ffffff;
  --ink: #1c1633;
  --ink2: #5c5773;
  --ink3: #9a95ad;
  --line: #f0e7e1;
  --line-soft: #f7f1ec;

  --coral: #ff4d6d;
  --orange: #ff8c42;
  --sun: #ffc93c;
  --mint: #1fc8a0;
  --sky: #3fb6ff;
  --violet: #7c5cff;

  --hot: linear-gradient(100deg, var(--coral), var(--orange) 50%, var(--sun));
  --cool: linear-gradient(120deg, var(--violet), var(--sky) 55%, var(--mint));

  
  --accent: var(--coral);

  --display: "Unbounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 26px;
  --radius-sm: 14px;
  

  --btn-gap: 10px;
  --shadow: 0 1px 2px rgba(28,22,51,.04), 0 12px 40px -12px rgba(28,22,51,.14);
  --shadow-lift: 0 2px 4px rgba(28,22,51,.05), 0 24px 60px -20px rgba(28,22,51,.26);
}

* { box-sizing: border-box; }



[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p  { margin: 0 0 14px; color: var(--ink2); }



.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42;
  animation: drift 22s ease-in-out infinite alternate;
}
.aura i:nth-child(1) { width: 44vmax; height: 44vmax; background: #ffd0d9; top: -20vmax; left: -14vmax; }
.aura i:nth-child(2) { width: 36vmax; height: 36vmax; background: #ffe3b8; top: 4vmax;  right: -16vmax; animation-duration: 26s; animation-delay: -6s; }
.aura i:nth-child(3) { width: 32vmax; height: 32vmax; background: #d6f5ec; bottom: -18vmax; left: 16vmax; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vmax, 3vmax) scale(1.08); }
  100% { transform: translate(-3vmax, 5vmax) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .aura i { animation: none; }
}


.app-bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,250,246,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}




.app-bar .wrap {
  display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: nowrap;
  max-width: none;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 36px); }



.brand { display: flex; align-items: center; gap: 0; font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.brand .mark {
  margin-right: 10px;
  width: 32px; height: 32px; border-radius: 10px; background: var(--hot);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 18px -6px rgba(255,77,109,.6);
}
.brand .mark svg { width: 19px; height: 19px; display: block; }
.brand .dot { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }



.club-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink2); white-space: nowrap;
}
.club-chip .swatch { width: 16px; height: 16px; border-radius: 6px; background: var(--accent); flex: none; }

.club-chip.console { background: var(--ink); color: #fff; box-shadow: none; }
.club-chip.console .swatch { background: var(--cool); }



.club-switch { position: relative; flex: none; }
.club-switch > summary { cursor: pointer; list-style: none; user-select: none; }
.club-switch > summary::-webkit-details-marker { display: none; }
.club-switch > summary:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.club-switch .cs-caret { font-size: .7rem; color: var(--ink3, var(--ink2)); margin-left: 2px; }
.club-switch[open] .cs-caret { transform: rotate(180deg); }
.cs-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--card); border-radius: 14px; padding: 8px;
  box-shadow: 0 1px 0 var(--line) inset, 0 12px 32px rgba(17, 24, 39, .14);
  border: 1px solid var(--line);
}
.cs-head {
  margin: 4px 8px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink2);
}
.cs-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
}
.cs-menu a:hover { background: var(--bg2, rgba(17, 24, 39, .05)); }
.cs-menu a.on { background: var(--bg2, rgba(17, 24, 39, .05)); }
.cs-menu .swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); flex: none; }
.cs-menu .cs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-menu .cs-role { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.cs-menu .cs-aside {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--ink2); font-size: .82rem; border-radius: 0 0 10px 10px;
}





.app-nav {
  display: flex; gap: 2px; align-items: center;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.app-nav::-webkit-scrollbar { display: none; }



.app-side { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 4px; }
.app-side .btn { white-space: nowrap; }
.app-nav a {
  padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--ink2); transition: background .18s, color .18s;
  white-space: nowrap; flex: none;
}
.app-nav a:hover { background: #fff; color: var(--ink); }
.app-nav a.on { background: var(--ink); color: #fff; }



.app-nav a.who { padding: 4px 8px 4px 0; border-radius: 14px; }
.app-nav a.who:hover { background: #fff; }



.app-nav a.waiting, .app-nav a.waiting:hover { padding: 4px 6px; background: transparent; }



.who { display: flex; align-items: center; gap: 9px; padding-left: 6px; max-width: 13rem; min-width: 0; }


.who .whom { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.who .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--cool); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.who .name, .who .role {
  display: block; max-width: 8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.who .name { font-size: .88rem; font-weight: 600; line-height: 1.2; }
.who .role { font-size: .72rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; line-height: 1.2; }


main { padding-block: clamp(26px, 5vw, 46px) 80px; }

.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .lead { flex: 1 1 320px; }
.page-head p { margin: 6px 0 0; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }


.card {
  background: var(--card); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 4px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 20px clamp(20px, 3vw, 28px) 14px; }


.card-foot { padding: 14px clamp(20px, 3vw, 28px) 20px; border-top: 1px solid var(--line-soft); }
.card-foot p:last-child { margin-bottom: 0; }
.card-head h2 { flex: 1; }


.tile { background: var(--card); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.tile .k { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.tile .v { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.tile .v small { font-size: .9rem; font-weight: 600; color: var(--ink3); font-family: var(--body); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: var(--hot); color: #fff; box-shadow: 0 10px 28px -10px rgba(255,77,109,.7); }
.btn-hot:hover { box-shadow: 0 16px 36px -12px rgba(255,77,109,.8); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.btn-danger { background: var(--card); color: #d1002b; box-shadow: inset 0 0 0 1.5px #f3d7de; }
.btn-danger:hover { background: #fff1f3; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }



.btn-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--btn-gap);
}


.btn-row > form { display: contents; }

.btn-row .spacer { flex: 1 1 auto; }
.btn-row.end { justify-content: flex-end; }
.btn-row.middle { justify-content: center; }

.btn-row.stacked { flex-direction: column; align-items: stretch; }
.btn-row.stacked > .btn, .btn-row.stacked > form > .btn { width: 100%; }


.btn-row.beside { display: inline-flex; vertical-align: middle; }



:not(.btn-row):not([class*="-row"]):not(.actions):not(.auth-join) > .btn + .btn { margin-left: var(--btn-gap); }


:not(.btn-row):not(.join-plans) > form:not(.inline):has(> .btn) + form:not(.inline):has(> .btn),
:not(.btn-row):not(.join-plans) > form:not(.inline):has(> .btn) + .btn,
:not(.btn-row):not(.join-plans) > .btn + form:not(.inline):has(> .btn) { margin-top: var(--btn-gap); }
:not(.btn-row):not([class*="-row"]):not(.actions):not(.auth-join) > .btn + form.inline:has(> .btn) { margin-left: var(--btn-gap); }



.plain-steps { margin: 0 0 14px; padding-left: 1.3em; }
.plain-steps > li { margin-bottom: 8px; line-height: 1.55; }
.plain-steps > li:last-child { margin-bottom: 0; }



li:has(.btn) + li:has(.btn) { margin-top: var(--btn-gap); }


.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; }
.field .hint { font-size: .82rem; color: var(--ink3); margin-top: 6px; }


input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),
select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: inherit;
  background: #fffdfb; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}



input[type=color] {
  width: 100%; height: 48px; padding: 4px; background: #fffdfb; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 9px; }



input::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .5; transition: opacity .15s;
}
input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: transparent;
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--accent) 55%, transparent);
}


.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
  text-align: left; padding: 12px clamp(14px, 2vw, 20px);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink3); background: var(--line-soft); white-space: nowrap;
}
tbody td { padding: 14px clamp(14px, 2vw, 20px); border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover td { background: #fffdfb; }
td.right, th.right { text-align: right; white-space: nowrap; }
td .sub { display: block; font-size: .82rem; color: var(--ink3); }


.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.badge-live { background: #e8f9f0; color: #0f7a4f; }
.badge-live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #22b260;
  animation: breathe 1.5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }



.live-mark { display: block; height: 24px; width: auto; flex: none; }



.live-mark .breath { animation: live-breath 1.5s linear infinite; }
@keyframes live-breath {
  0%     { opacity: .450; }
  12.5%  { opacity: .462; }
  25%    { opacity: .588; }
  37.5%  { opacity: .851; }
  50%    { opacity: 1;    }
  62.5%  { opacity: .851; }
  75%    { opacity: .588; }
  87.5%  { opacity: .462; }
  100%   { opacity: .450; }
}
@media (prefers-reduced-motion: reduce) {
  .live-mark .breath { animation: none; opacity: 1; }
}



.live-mark.over-video {
  position: absolute; top: 14px; left: 14px; z-index: 3; pointer-events: none;
}



.stream-clock {
  position: absolute; top: 14px; right: 14px; z-index: 3; pointer-events: none;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  

  line-height: 1.45;
  color: #fff; background: rgba(12, 10, 24, .62);
  padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 460px) {
  .stream-clock { top: 10px; right: 10px; font-size: .74rem; padding: 3px 7px; }
}
.badge-soon   { background: #eef4ff; color: #2b5bd7; }
.badge-draft  { background: #fff6e6; color: #9a6100; }
.badge-done   { background: var(--line-soft); color: var(--ink3); }
.badge-off    { background: #fff1f3; color: #b4123a; }


.empty { text-align: center; padding: clamp(34px, 7vw, 64px) 20px; }
.empty .art { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px; background: var(--hot); opacity: .18; }
.empty h2 { margin-bottom: 6px; }
.empty p { max-width: 38ch; margin-inline: auto; }


.muted { color: var(--ink3); font-size: .88rem; }
.notice { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .93rem; }


.notice-error { background: #fff1f3; color: #b4123a; }
.notice-ok    { background: #e8f9f0; color: #0f7a4f; }
.notice-info  { background: #eef4ff; color: #2b5bd7; }



body.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; background: var(--hot); color: #fff;
  padding: clamp(30px, 5vw, 60px); display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::after {
  content: ""; position: absolute; inset: auto -20% -35% -20%; height: 70%;
  background: radial-gradient(closest-side, rgba(255,255,255,.3), transparent 70%);
}
.auth-art .brand { color: #fff; font-size: 1.25rem; position: relative; z-index: 1; }
.auth-art .brand .mark { background: rgba(255,255,255,.22); box-shadow: none; }
.auth-art .brand .dot { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.auth-art .pitch { position: relative; z-index: 1; max-width: 22ch; }
.auth-art .pitch h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; color: #fff; }
.auth-art .pitch p { color: rgba(255,255,255,.92); font-size: 1.02rem; margin-top: 14px; }
.auth-art .foot { position: relative; z-index: 1; font-size: .84rem; color: rgba(255,255,255,.8); }
.auth-form { display: grid; place-items: center; padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 40px); }
.auth-form .inner { width: 100%; max-width: 25rem; }


.auth-join {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.auth-join p { color: var(--ink2); font-size: .92rem; margin-bottom: 10px; }


.auth-join .btn + .btn { margin-top: var(--btn-gap); }
.auth-join p.or { margin-top: 18px; }
.auth-form h2 { font-size: 1.6rem; margin-bottom: 6px; }

@media (max-width: 860px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px clamp(18px, 5vw, 30px) 26px; }
  .auth-art .pitch h1 { font-size: 1.6rem; }
  .auth-art .pitch p, .auth-art .foot { display: none; }
}


@media (max-width: 1280px) {
  .who .name, .who .role { display: none; }
  .who { max-width: none; padding-left: 2px; }
}

@media (max-width: 1280px) {
  .app-bar .club-chip { display: none; }
  

  .app-bar .club-switch > summary { display: inline-flex; font-size: 0; padding: 6px 8px; gap: 4px; }
  .app-bar .club-switch .cs-caret { font-size: .7rem; }
}


.nav-menu { display: none; position: relative; flex: none; margin-left: auto; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }



.nav-menu .bars { display: block; width: 18px; height: 13px; position: relative; }
.nav-menu .bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .15s ease;
}
.nav-menu .bars i:nth-child(1) { top: 0; }
.nav-menu .bars i:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-menu .bars i:nth-child(3) { bottom: 0; }
.nav-menu[open] .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-menu[open] .bars i:nth-child(2) { opacity: 0; }
.nav-menu[open] .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-menu .bars i { transition: none; } }



.nm-panel {
  position: absolute; z-index: 60; top: calc(100% + 10px); right: 0;
  min-width: min(17rem, calc(100vw - 36px)); max-height: calc(100vh - 96px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-lift);
}
.nm-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nm-panel a:hover { background: var(--line-soft); }
.nm-panel a.on { background: var(--ink); color: #fff; }
.nm-head {
  margin: 12px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.nm-head:first-child { margin-top: 4px; }


.nm-who { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
.nm-who .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--cool); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem;
}
.nm-who .whom { display: flex; flex-direction: column; min-width: 0; }
.nm-who .name { font-size: .92rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-who .role { font-size: .7rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; line-height: 1.25; }

.nm-club .swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); flex: none; }
.nm-club .cs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-club .cs-role { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.nm-panel a .badge { margin-left: auto; }


.nm-aside { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink2); }
.nm-aside + .nm-aside { margin-top: 0; border-top: 0; }



@media (max-width: 960px) {
  .app-bar.foldable .app-nav,
  .app-bar.foldable .app-side,
  .app-bar.foldable .club-chip,
  .app-bar.foldable .club-switch { display: none; }
  .app-bar.foldable .nav-menu { display: block; }
  
  .app-bar .wrap { min-height: 60px; gap: 10px; }
}



@media (max-width: 560px) {
  .app-bar:not(.foldable) .app-side .btn { padding-inline: 12px; font-size: .82rem; }
}


@media (max-width: 430px) {
  .app-bar:not(.foldable) .app-side { gap: 6px; margin-left: 0; }
  .app-bar:not(.foldable) .app-side .btn { padding-inline: 10px; font-size: .78rem; }
  .app-bar:not(.foldable) .brand { font-size: .98rem; }
}
@media (max-width: 380px) {
  .app-bar:not(.foldable) .brand { font-size: 0; }
}









.watch-layout {
  display: grid;
  

  --gutter: max(0px, min(var(--watch-rail, 360px),
                         100% - var(--class-w, 100%) - var(--watch-rail, 360px) - 84px));
  grid-template-columns:
    var(--gutter)
    minmax(0, var(--class-col, 1fr))
    var(--watch-rail, 360px);
  gap: 30px; align-items: start; justify-content: center;
}


.watch-layout > .watch-main { grid-column: 2; }
.watch-layout > .watch-rail { grid-column: 3; }


.watch-layout > .sponsor-strip { grid-column: 2; grid-row: 1; }
.watch-layout > .watch-main { grid-row: 2; }
.watch-layout > .watch-rail { grid-row: 2; }
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  

  .watch-layout > .sponsor-strip,
  .watch-layout > .watch-main, .watch-layout > .watch-rail { grid-column: 1; }
}









.theatre { display: flex; justify-content: center; }
.theatre .frame {
  position: relative; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; line-height: 0;
  background: #14101f; box-shadow: var(--shadow-lift);
}


.theatre video { display: block; width: 100%; height: 100%; object-fit: contain; }

.theatre .frame:not([style*="aspect-ratio"]) { width: auto; }
.theatre .frame:not([style*="aspect-ratio"]) video {
  width: auto; height: auto; max-width: 100%; max-height: 78vh;
}



.ccbox { display: inline-flex; align-items: center; gap: 8px; }
.ccbox[hidden] { display: none; }
.cc-label { font-size: .88rem; color: var(--ink2); font-weight: 600; }
.cc { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 3px; }
.ccbox .cc button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
             color: var(--ink2); font-weight: 600; font-size: .88rem; line-height: 1.2; }
.ccbox .cc button[hidden] { display: none; }
.ccbox .cc button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,22,51,.12); }
.ccbox .cc button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.theatre + .ccbox, .sound-note + .ccbox { margin-top: 10px; }

.theatre video::cue { background: rgba(0,0,0,.78); color: #fff; font-weight: 600; }



.theatre + .sound-note { margin: 10px 0 0; }

.video-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem); line-height: 1.25;
  margin: 20px 0 12px;
}



.video-meta {
  display: flex; flex-wrap: wrap; gap: 14px 18px;
  align-items: center; justify-content: space-between;
}
.channel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel .ch-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
}
.channel .ch-who { display: flex; flex-direction: column; min-width: 0; }
.channel .ch-name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.channel .ch-sub { font-size: .8rem; color: var(--ink3); line-height: 1.3; }

.video-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }



.video-about {
  margin-top: 18px; background: var(--line-soft);
  border-radius: var(--radius-sm); padding: 15px 17px;
}
.video-about .facts { font-weight: 700; font-size: .9rem; color: var(--ink); }
.video-about p { margin: 9px 0 0; }
.video-about p:last-child { margin-bottom: 0; }



.video-actions .act { display: inline-flex; align-items: center; gap: 7px; }
.video-actions .act .heart { font-size: 1rem; line-height: 1; color: var(--ink3); transition: color .18s, transform .18s; }
.video-actions #like[aria-pressed="true"] { border-color: var(--coral); color: var(--coral); }
.video-actions #like[aria-pressed="true"] .heart { color: var(--coral); transform: scale(1.14); }
@media (prefers-reduced-motion: reduce) { .video-actions .act .heart { transition: none; } }

.save-menu { position: relative; }
.save-menu > summary { list-style: none; cursor: pointer; }
.save-menu > summary::-webkit-details-marker { display: none; }


.save-panel {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  min-width: min(17rem, calc(100vw - 40px)); max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow-lift);
}
.save-head {
  margin: 2px 2px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.save-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px;
  border-radius: 10px; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.save-row:hover { background: var(--line-soft); }
.save-row input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.save-new { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.save-new input { flex: 1 1 auto; min-width: 0; }
.save-foot { font-size: .74rem; margin: 9px 2px 0; }


.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; align-items: center; }
.tag-chip.add { cursor: pointer; border-style: dashed; color: var(--ink3); }
.tag-edit { display: inline-block; }
.tag-edit > summary { list-style: none; }
.tag-edit > summary::-webkit-details-marker { display: none; }
.tag-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; width: 100%; }
.tag-form input[type=text] { flex: 1 1 16rem; min-width: 0; }
.tag-form .muted { font-size: .76rem; flex-basis: 100%; }


.shelf-list { display: flex; flex-direction: column; }
.shelf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 10px; border-radius: 12px; border-bottom: 1px solid var(--line-soft);
}
.shelf-row:last-child { border-bottom: 0; }
.shelf-row:hover { background: var(--line-soft); }
.shelf-name { font-weight: 700; }

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }


.rail-item.shut { opacity: .55; cursor: default; }
.rail-item.shut:hover { background: none; }
.rail-note { display: block; font-size: .74rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.rail-item.shut .rail-note { color: var(--ink3); }

.tag-grid .rail-item { display: grid; }



.more-below { margin-top: 26px; }


.watch-layout > .more-below { grid-column: 1 / -1; }
.more-below .watch-rail { display: block; }
.more-below .watch-rail > h2 { margin-bottom: 14px; }


.more-below .watch-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 4px 18px;
}
.more-below .watch-rail > h2 { grid-column: 1 / -1; }



.replay-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.replay-card {
  background: var(--card); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); display: block;
  transition: transform .18s, box-shadow .18s;
}
.replay-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.rc-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); }




.replay-grid.upright { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.replay-grid.upright .rc-art { aspect-ratio: 9 / 16; }



.shape-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 30px 0 20px; color: var(--ink3);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.shape-sep::before, .shape-sep::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}
.shape-sep span { flex: none; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-noart {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.5); font-size: 13px;
}
.rc-tag { position: absolute; top: 10px; left: 10px; }
.rc-dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.rc-body { display: block; padding: 13px 15px 15px; }
.rc-body strong { display: block; font-size: .96rem; line-height: 1.3; margin-bottom: 3px; }
.rc-when, .rc-who { display: block; font-size: .78rem; color: var(--ink3); line-height: 1.45; }
.rc-who { color: var(--ink2); font-weight: 600; }



.rc-new, .rail-new {
  position: absolute; top: 8px; left: 8px;
  background: var(--hot); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(255,77,109,.8);
}


.rc-tag ~ .rc-new { top: auto; bottom: 8px; left: 8px; }



.replay-more {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 0 6px; color: var(--ink3); font-size: .88rem; font-weight: 600;
}
.replay-more.quiet .spinner { display: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }



.club-find { margin: 4px 0 22px; }
.find-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow);
}
.find-box:focus-within { border-color: var(--accent); }
.find-icon { width: 18px; height: 18px; flex: none; color: var(--ink3); }
.find-box input[type=search] {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  font: 600 .95rem var(--body); color: var(--ink); padding: 8px 0;
}


.find-box input[type=search]::-webkit-search-decoration,
.find-box input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-box .btn { flex: none; }



.find-pills {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.find-pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink2); white-space: nowrap;
}
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }



.thumb-box { position: relative; }
.thumb-box > summary { list-style: none; cursor: pointer; }
.thumb-box > summary::-webkit-details-marker { display: none; }
.thumb-form {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  width: min(30rem, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-lift);
}
.thumb-head {
  margin: 0 0 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.thumb-form .field + .btn { margin-top: 4px; }
.thumb-form .notice { margin-bottom: 12px; }

.still-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }


.still {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden; line-height: 0; display: block;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s;
}


.still input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.still:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.still:focus-within { box-shadow: 0 0 0 2px var(--accent); }


.still img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block;
  background: var(--ink);
}
.still:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent); }
.still.on { box-shadow: 0 0 0 2px var(--ink); }
.still-on {
  position: absolute; left: 6px; bottom: 6px;
  background: var(--ink); color: #fff; border-radius: 6px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; line-height: 1.6;
}


.video-actions #cast .label { font-weight: 700; }



#action-note.notice { margin-top: 14px; }


.tag-row.mini { display: flex; margin-top: 6px; gap: 5px; }
.tag-chip.mini { padding: 2px 8px; font-size: .72rem; }
.likes { color: var(--coral); font-weight: 700; white-space: nowrap; }
.tag-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-size: .8rem; font-weight: 600; color: var(--ink2);
}
a.tag-chip:hover { border-color: var(--accent); color: var(--accent); }


.watch-rail > h2 { font-size: .95rem; margin-bottom: 12px; }
.rail-item {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 11px;
  padding: 8px; border-radius: 14px; align-items: start;
}
.rail-item:hover { background: var(--line-soft); }
.rail-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; background: var(--ink);
}
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }


.rail-len {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 5px;
  line-height: 1.5;
}
.rail-t {
  font-weight: 700; font-size: .87rem; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}


.rail-m {
  font-size: .76rem; color: var(--ink3); margin-top: 4px; line-height: 1.4;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 460px) { .rail-item { grid-template-columns: 132px minmax(0, 1fr); } }



.tag {
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px;
  border-radius: 999px; vertical-align: middle;
}
.yes { color: #0f9d78; font-weight: 700; }
.no  { color: #c9c4d4; }


form.inline { display: inline-flex; vertical-align: middle; margin: 0; }
form.inline + form.inline { margin-left: var(--btn-gap); }



.row-actions { display: inline-flex; align-items: center; gap: 8px; }
.row-actions form.inline { margin: 0; }



button:not([class]) {
  margin-top: 18px; width: 100%; padding: 13px 22px; font: inherit; font-weight: 700;
  color: #fff; background: var(--hot); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(255,77,109,.7);
}
form.inline button:not([class]) { width: auto; margin: 0; padding: 8px 16px; font-size: .86rem; }


.error { background: #fff1f3; color: #b4123a; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.btn.danger { background: var(--card); color: #d1002b; box-shadow: inset 0 0 0 1.5px #f3d7de; }
.btn.danger:hover { background: #fff1f3; }



.grid-wrap {
  --slot: 30px;
  display: grid; grid-template-columns: 3.2rem repeat(7, minmax(7rem, 1fr));
  gap: 6px; overflow-x: auto; padding-bottom: 6px;
}
.grid-wrap .rail {
  display: grid; grid-auto-rows: var(--slot);
  padding-top: 44px;   
}
.grid-wrap .rail span {
  font-size: 11px; color: var(--ink3); text-align: right; padding-right: 8px;
  line-height: 1; transform: translateY(-4px);
}
.grid-wrap .day { min-width: 7rem; }
.grid-wrap .dayhead {
  height: 44px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; line-height: 1.15;
}
.grid-wrap .dayhead b { font-size: .84rem; }
.grid-wrap .dayhead span { font-size: .74rem; color: var(--ink3); }
.grid-wrap .day.today .dayhead b { color: var(--accent); }


.grid-wrap .col {
  display: grid; position: relative;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.grid-wrap .day.today .col { box-shadow: inset 0 0 0 1.5px var(--accent); }



.grid-wrap .slot {
  grid-column: 1 / -1; border-top: 1px solid #f6efe9; transition: background .12s;
}
.grid-wrap .slot:first-child { border-top: 0; }
.grid-wrap .slot:hover { background: #fffaf6; }



.grid-wrap .blk {
  margin: 1px 3px; padding: 5px 7px; border-radius: 9px;
  background: color-mix(in srgb, var(--blk) 14%, #fff);
  box-shadow: inset 3px 0 0 var(--blk);
  color: var(--ink); text-decoration: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  font-size: .76rem; line-height: 1.25; z-index: 1;
}
.grid-wrap .blk:hover { background: color-mix(in srgb, var(--blk) 26%, #fff); z-index: 2; }


.grid-wrap .blk.tight { margin: 1px 2px; padding: 4px 5px; font-size: .71rem; }
.grid-wrap .blk.tight span, .grid-wrap .blk.tight em { font-size: .68rem; }


.grid-wrap .blk.short {
  flex-direction: row; align-items: baseline; gap: 5px; padding: 3px 7px;
}
.grid-wrap .blk.short b, .grid-wrap .blk.short span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.grid-wrap .blk.short b { flex: 1 1 auto; min-width: 0; }
.grid-wrap .blk.short span { flex: 0 0 auto; }
.grid-wrap .blk.short em { display: none; }
.grid-wrap .blk.short.tight span { display: none; }
.grid-wrap .blk b { font-weight: 700; }
.grid-wrap .blk span { color: var(--ink2); font-size: .72rem; }
.grid-wrap .blk em { font-style: normal; color: var(--ink3); font-size: .72rem; }



.grid-wrap .blk.draft {
  background: repeating-linear-gradient(135deg, #fff, #fff 6px, #fdf4ec 6px, #fdf4ec 12px);
  box-shadow: inset 3px 0 0 #d9cfc6;
}
.grid-wrap .blk.draft em { color: #9a6100; font-weight: 600; }
.grid-wrap .blk.off { opacity: .5; }
.grid-wrap .blk.off b { text-decoration: line-through; }
.grid-wrap .blk.live { box-shadow: inset 3px 0 0 var(--blk), 0 0 0 2px var(--blk); }



.days { display: flex; gap: 6px; flex-wrap: wrap; }
.daybox {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.daybox:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }

@media (max-width: 720px) {
  

  .grid-wrap { grid-template-columns: 2.6rem repeat(7, 8rem); }
}



.club-hero { text-align: center; padding-block: clamp(18px, 4vw, 40px) clamp(24px, 4vw, 44px); }
.club-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; margin: 18px auto 0;
  max-width: 18ch;
}



.club-hero h1 { max-width: none; }
.club-hero h1 span { display: block; }



.club-hero .club-name-line {
  background: linear-gradient(100deg, var(--accent), var(--accent-2, var(--accent)) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  

  padding-bottom: .06em;
}
.club-hero .club-name-line.plain {
  background: none; color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.club-hero .lead { max-width: 38ch; margin: 16px auto 0; font-size: 1.05rem; }
.club-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }


.club-cta .btn { max-width: 100%; white-space: normal; text-align: center; }

.club-band { margin-bottom: clamp(28px, 5vw, 48px); }
.band-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.band-head h2 { flex: 1; }
.club-band > h2 { margin-bottom: 16px; }



.on-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.on-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: var(--shadow); border-left: 5px solid var(--blk, var(--accent));
  transition: transform .16s, box-shadow .2s;
}
.on-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.on-card .when { font-size: .8rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.on-card strong { font-size: 1.02rem; line-height: 1.25; }


.on-card .who {
  font-size: .88rem; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.on-card .len { font-size: .8rem; color: var(--ink3); margin-top: 2px; }


.replay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.replay { display: block; }
.replay .frame {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--ink); box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .2s;
}
.replay:hover .frame { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.replay .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.replay .noart {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600;
}
.replay .tag { position: absolute; top: 9px; left: 9px; }
.replay .dur {
  position: absolute; right: 9px; bottom: 9px; background: rgba(0,0,0,.62); color: #fff;
  font-size: .74rem; padding: 3px 8px; border-radius: 999px;
}
.replay strong { display: block; margin-top: 10px; font-size: .97rem; line-height: 1.3; }
.replay .who { display: block; font-size: .85rem; color: var(--ink3); }



.standing {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem);
  padding: 12px 20px; border-radius: 999px;
}
.standing.soon { background: #fff6e6; color: #9a6100; }
.standing.done { background: #eef4ff; color: #2b5bd7; }



.waiting {
  position: relative; width: 100%; max-width: 62rem; aspect-ratio: 16/9;
  max-height: 56vh; margin-inline: auto;
  
  align-self: start;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 10%, #2a2145 0%, #14101f 60%);
  box-shadow: var(--shadow-lift);
  display: grid; place-items: center; text-align: center;
}


.waiting::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 70deg, transparent 150deg);
  opacity: .16; animation: waitsweep 14s linear infinite;
}
@keyframes waitsweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .waiting::before { animation: none; } }



.ended {
  

  position: relative; width: 100%; max-width: 36rem;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #2a2145 0%, #14101f 70%);
  box-shadow: var(--shadow-lift);
  display: grid; place-items: center; text-align: center;
  

  min-height: 0;
  

  aspect-ratio: auto;
  margin-inline: auto;
  

  align-self: start;
}
.ended .inner {
  
  padding: clamp(20px, 5.5vw, 28px); max-width: 34rem;
}


.ended .do {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.ended .kicker {
  margin: 0 0 10px; color: rgba(255,255,255,.62);
  font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.ended h2 {
  margin: 0 0 12px; color: #fff;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.15;
}
.ended p { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.5; }
.ended .btn { margin: 0; }



@media (max-width: 560px) {
  .ended .do { flex-direction: column; align-items: stretch; }
  .ended .do .btn, .ended .do .working { width: 100%; justify-content: center; }
  .ended h2 { font-size: clamp(1.3rem, 6.5vw, 1.7rem); }
  .ended p { font-size: .92rem; margin-bottom: 16px; }
  .standing { font-size: 1rem; padding: 10px 16px; }
}


.ended .working {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.ended .working i {
  width: 8px; height: 8px; border-radius: 50%; background: #ffc93c;
  animation: breathe 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .ended .working i { animation: none; } }

.wait-inner { position: relative; padding: 24px; }
.waiting .kicker {
  margin: 0 0 10px; color: rgba(255,255,255,.62);
  font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.waiting .clock {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-family: var(--display); font-weight: 800; color: #fff;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}


.waiting .clock span {
  min-width: 1.15em; display: inline-block;
  background: rgba(255,255,255,.07); border-radius: 14px; padding: .06em .1em;
}
.waiting .clock i { font-style: normal; opacity: .45; padding: 0 .04em; animation: tickblink 1s steps(1) infinite; }
@keyframes tickblink { 50% { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .waiting .clock i { animation: none; } }

.waiting .waitsub {
  margin: 16px 0 0; color: rgba(255,255,255,.72);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
}
.waiting.due .clock { font-size: clamp(1.5rem, 4vw, 2.4rem); }



.stage { display: flex; justify-content: center; }



.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-day {
  background: var(--card); border-radius: var(--radius-sm); padding: 10px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  min-height: 7rem;
}
.cal-day.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.cal-head { text-align: center; line-height: 1.15; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cal-head b { display: block; font-size: .82rem; }
.cal-head span { font-size: .72rem; color: var(--ink3); }
.cal-day.today .cal-head b { color: var(--accent); }
.cal-none { margin: auto; color: var(--ink3); font-size: 1.1rem; }



.slot-card {
  display: block; padding: 9px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--blk, var(--accent)) 12%, #fff);
  box-shadow: inset 3px 0 0 var(--blk, var(--accent));
  transition: background .15s;
}
.slot-card:hover { background: color-mix(in srgb, var(--blk, var(--accent)) 26%, #fff); }
.slot-card .at {
  display: flex; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: .84rem; font-variant-numeric: tabular-nums;
}
.slot-card .at i { font-style: normal; font-weight: 600; font-size: .68rem; color: var(--ink3); }
.slot-card strong { display: block; font-size: .88rem; line-height: 1.25; margin-top: 2px; }
.slot-card .under {
  display: block; font-size: .76rem; color: var(--ink2); line-height: 1.3; margin-top: 1px;
}


.slot-card.gone { opacity: .42; }

.cal-nav { display: inline-flex; align-items: center; gap: 8px; }
.cal-label { font-weight: 700; font-size: .9rem; color: var(--ink2); white-space: nowrap; }

@media (max-width: 900px) {
  

  .calendar { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cal-day:has(.cal-none) { display: none; }
  .cal-head { display: flex; gap: 8px; align-items: baseline; text-align: left; }
}



.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pill { position: relative; display: inline-flex; }


a.pill { gap: 6px; align-items: baseline; }
.pill input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .88rem; font-weight: 600; line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s;
}

.pill span::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--ink3); transition: background .15s;
}
.pill input:checked + span {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.pill input:checked + span::before { background: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill .from { font-weight: 500; font-size: .76rem; color: var(--ink3); }



.dropzone {
  position: relative; display: grid; place-items: center; gap: 10px;
  padding: 22px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s, background .15s;
}
.dropzone-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone-say { margin: 0; color: var(--ink3); font-size: .9rem; pointer-events: none; }
.dropzone-say strong { color: var(--accent); }
.dropzone-shot {
  max-width: 300px; max-height: 100px; width: auto; height: auto;
  display: block; pointer-events: none;
}

.dropzone.over, .dropzone:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}
.dropzone.over .dropzone-say { color: var(--ink2); }





.bcast-stage {
  position: relative; background: #14101f; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: var(--cam-shape, 16 / 9);
  

  max-height: 72vh; width: fit-content; max-width: 100%; margin-inline: auto;
}


.bcast-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }


.bcast-over-head { display: none; }



.bcast-stage video.mirror { transform: scaleX(-1); }



.bcast-stage .warmover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover;
}



.muted-over {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: rgba(10, 8, 20, .42);
}
.muted-over[hidden] { display: none; }
.muted-over svg {
  
  width: clamp(72px, 26%, 190px); height: auto; fill: rgba(255, 255, 255, .92);
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .55));
}
.muted-over span {
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  font-size: clamp(.8rem, 2.2vw, 1.15rem); color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .muted-over { animation: mutedIn .14s ease-out; }
}
@keyframes mutedIn { from { opacity: 0; } to { opacity: 1; } }

.bcast-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }





@media (max-width: 900px) and (pointer: coarse) {
  .bcast-phone.bcast-phone .page-head { display: none; }

  

  

  body.bcast-fullscreen.bcast-fullscreen .topbar { display: none; }

  

  body.bcast-fullscreen.bcast-fullscreen .content { padding-top: 0; }

  .bcast-phone.bcast-phone .card {
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    margin-inline: calc(50% - 50vw); width: 100vw;
  }

  

  .bcast-phone.bcast-phone .bcast-stage {
    aspect-ratio: auto; height: 100dvh; border-radius: 0;
    

    max-height: none; width: 100%; max-width: none; margin-inline: 0;
  }
  

  .bcast-phone.bcast-phone .bcast-stage video { object-fit: cover; }

  .bcast-phone.bcast-phone .bcast-over-head {
    display: flex; align-items: center; gap: 10px;
    position: absolute; top: 0; left: 0; right: 0; z-index: 5;
    padding: calc(10px + env(safe-area-inset-top)) 14px 22px;
    background: linear-gradient(rgba(8, 6, 16, .72), rgba(8, 6, 16, 0));
    pointer-events: none;
  }
  .bcast-phone.bcast-phone .boh-title {
    color: #fff; font-weight: 700; font-size: .95rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .bcast-phone.bcast-phone .bcast-over-head .badge { margin-left: auto; flex: none; }

  

  .bcast-phone.bcast-phone .bcast-controls {
    position: fixed; left: 0; right: 0; z-index: 7;
    bottom: 0; padding: 14px 12px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(8, 6, 16, 0), rgba(8, 6, 16, .8) 38%);
  }
  .bcast-phone.bcast-phone .bcast-controls .bcast-row { margin-top: 8px; gap: 8px; }
  .bcast-phone.bcast-phone .bcast-controls .bcast-row:first-child { margin-top: 0; }
  .bcast-phone.bcast-phone .bcast-controls .btn { flex: 1 1 auto; }

  

  .bcast-phone.bcast-phone .bcast-controls .btn-ghost {
    color: #fff; border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .14);
  }
  .bcast-phone.bcast-phone .bcast-controls .btn-ghost:disabled {
    color: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
  }
  

  .bcast-phone.bcast-phone .bcast-controls .btn-danger {
    color: #fff; background: rgba(209, 0, 43, .92); border-color: transparent;
  }
  .bcast-phone.bcast-phone .bcast-controls .btn-danger:disabled {
    color: rgba(255, 255, 255, .5); background: rgba(209, 0, 43, .3);
  }
  .bcast-phone.bcast-phone .bcast-save { color: #fff; }
  .bcast-phone.bcast-phone .bcast-why { color: rgba(255, 255, 255, .85); }

  
  .bcast-phone.bcast-phone .field { padding-inline: 16px; }
  .bcast-phone.bcast-phone .field:first-of-type { padding-top: 18px; }
  .bcast-phone.bcast-phone #detail, .bcast-phone.bcast-phone #note { padding-inline: 16px; }
  
  .bcast-phone.bcast-phone #note { padding-bottom: 160px; }
}
.bcast-row[hidden] { display: none; }
.bcast-save { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; }
.bcast-why { flex: 1 1 14rem; min-width: 0; }



.meterbox {
  height: 10px; background: var(--line-soft); border-radius: 999px;
  overflow: hidden; margin-top: 10px;
}
.meterbox i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }



.veil {
  position: fixed; inset: 0; background: rgba(28,22,51,.45);
  display: grid; place-items: center; padding: 20px; z-index: 50;
}
.veil[hidden] { display: none; }
.veil .sheet {
  background: var(--card); border-radius: var(--radius); padding: clamp(20px, 4vw, 28px);
  width: 100%; max-width: 25rem; box-shadow: 0 20px 60px -20px rgba(28,22,51,.4);
}
.veil .sheet h2 { margin: 0 0 4px; }
.veil .sheet .err {
  background: #fff1f3; color: #b4123a; padding: 10px 12px;
  border-radius: var(--radius-sm); margin-top: 12px; font-size: .9rem;
}
.veil .sheet .err[hidden] { display: none; }
.veil .sheet .bcast-row { justify-content: flex-end; }



.rec-name { display: flex; align-items: flex-start; gap: 14px; }
.rec-name > span { min-width: 0; }
.rec-thumb {
  flex: 0 0 auto; width: 96px; height: 54px; border-radius: 10px;
  object-fit: cover; display: block; background: #14101f;
}



.rec-thumb.saving {
  background: linear-gradient(160deg, #2a2145 0%, #14101f 70%);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: rgba(255,255,255,.86);
  font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.rec-thumb.saving i {
  width: 6px; height: 6px; border-radius: 50%; background: #ffc93c;
  animation: breathe 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .rec-thumb.saving i { animation: none; } }



.rec-thumb.lost {
  background: #2a2630;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}



@media (max-width: 560px) {
  .rec-thumb.saving { font-size: 0; gap: 0; }
}



@media (max-width: 560px) {
  .rec-thumb { width: 64px; height: 36px; }
}



.help-search { display: flex; gap: 10px; }
.help-search input { flex: 1; font-size: 1.05rem; }
.help-list li, .help-hits li { padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.help-list li:last-child, .help-hits li:last-child { border-bottom: 0; }
.help-list a, .help-hits a { font-weight: 600; }

.help-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } }
.help-article { max-width: none; line-height: 1.65; }
.help-article h2 { margin: 28px 0 10px; font-size: 1.3rem; }
.help-article h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.help-article h2:first-child, .help-article h3:first-child { margin-top: 0; }
.help-article p { margin: 0 0 12px; }
.help-article ul, .help-article ol { margin: 0 0 14px 1.2rem; }
.help-article li { margin: 4px 0; }
.help-article code { background: #f4f4f5; border-radius: 5px; padding: 1px 5px; font-size: .92em; }
.help-article table { margin: 6px 0 16px; }
.help-note {
  border-left: 4px solid var(--accent, #ff4d6d);
  background: #fff7f8;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}
.help-shot { margin: 16px 0 20px; }
.help-shot img {
  width: 100%;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  display: block;
}
.help-shot a { display: block; }
.help-shot figcaption { margin-top: 8px; color: #6b7280; font-size: .92rem; }



.bk-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 14px 16px; border-top: 1px solid var(--line);
}
.bk-row:first-child, .bk-head + .bk-row { border-top: 0; }
.bk-row strong { display: block; color: var(--ink); }
.bk-row select, .bk-row input[type="text"], .bk-row input:not([type]) {
  width: auto; flex: 1 1 10rem; min-width: 0;
}


.bk-row > div:first-of-type { flex: 0 1 auto; min-width: 0; }
.bk-row button { flex: none; }


.bk-row.roll > div:first-of-type { flex: 0 0 13rem; }
.bk-row > div:first-of-type { display: flex; align-items: center; gap: 9px; }
.bk-row > div:first-of-type > strong { display: inline; }
.bk-note { display: block; font-size: .88rem; color: var(--ink2); margin-top: 2px; }
@media (max-width: 620px) {
  .bk-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .bk-row button { width: 100%; }
}


.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-row form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }



td.nowrap, th.nowrap { white-space: nowrap; }
td.actions-cell { white-space: nowrap; text-align: right; }


td.actions-cell form { display: inline-flex; vertical-align: middle; }
td.actions-cell > * + * { margin-left: var(--btn-gap); }



form.addbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }


form.addbar .lead-in { color: var(--ink2); font-size: .92rem; }


form.addbar input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),
form.addbar select {
  width: auto; flex: 0 1 auto; min-width: 0; padding: 9px 13px;
}
form.addbar input.wide:not([type=color]) { flex: 1 1 13rem; width: auto; }
form.addbar input[type=number]:not([type=color]) { flex: 0 0 7rem; width: auto; }
form.addbar input[type="datetime-local"]:not([type=color]) { width: auto; }
form.addbar input[type=color] { flex: none; width: 46px; height: 40px; }
form.addbar button { flex: none; }



tr.mine > td { background: color-mix(in srgb, var(--accent) 8%, #fff); font-weight: 600; }


li.family-member { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
li.family-member:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }


.mycode { width: 16rem; max-width: 100%; margin: 0 auto; aspect-ratio: 1; display: flex; }
.mycode > svg, .mycode > img { width: 100%; height: 100%; display: block; }



.setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.setting-row > select:not([size]) { width: auto; flex: 0 1 auto; min-width: 0; }
p.setting-row label { display: inline-flex; align-items: center; gap: 6px; }



body.kiosk .kiosk-stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.door-screen { text-align: center; }
.door-screen h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .3em; }
.door-screen p { font-size: clamp(1.05rem, 2.2vw, 1.6rem); color: var(--ink2); margin: 0 0 1.2em; }
.door-code { width: min(70vw, 62vh); }


li.rule-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
li.rule-row:last-child { border-bottom: 0; }
li.rule-row > div { min-width: 0; }
li.rule-row form { margin: 0; flex: none; }



.pay-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin: 16px 0; }
.pay-ways form.pay-way {
  margin: 0; padding: 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fffdfb;
}
.pay-ways form.pay-way.best { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.pay-ways form.pay-way .kicker { margin: 0; }
.pay-ways form.pay-way button { margin-top: 10px; }



.autosave-said { margin-left: 10px; font-size: .8rem; color: var(--ink3); font-weight: 600; }
.autosave-said.is-bad { color: var(--coral); }



body.start {
  background: var(--ground);
  min-height: 100vh;
}
.start-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px clamp(18px, 5vw, 44px);
  max-width: 1180px; margin: 0 auto;
}
.start-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 44px) 60px;
}


.start-note {
  text-align: center; color: var(--ink2); font-size: .92rem;
  background: var(--line-soft); border-radius: 999px;
  padding: 9px 18px; margin: 0 auto 26px; width: fit-content; max-width: 100%;
}
.start-hero { text-align: center; margin: clamp(10px, 4vw, 34px) 0 30px; }
.start-hero .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 16px;
}
.start-hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 3.9rem); line-height: 1.04;
  letter-spacing: -.02em; color: var(--ink);
}


.start-hero h1 .hot {
  background: var(--hot); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.start-hero .lead {
  max-width: 46ch; margin: 18px auto 0; color: var(--ink2);
  font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.55;
}
.start-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: clamp(22px, 4vw, 38px);
  max-width: 34rem; margin: 0 auto;
}
.start-form .field { margin-bottom: 16px; }


.start-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .start-form .two { grid-template-columns: 1fr; } }



.start-form .pick { border: 0; padding: 0; margin: 0 0 22px; }
.start-form .pick legend {
  font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0;
}
.pick-one { display: block; cursor: pointer; }
.pick-one + .pick-one { margin-top: var(--btn-gap); }


.pick-one input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.pick-face {
  display: block; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color .15s, background .15s, transform .15s;
}
.pick-one:hover .pick-face { border-color: var(--ink3); }
.pick-one input:checked + .pick-face {
  border-color: var(--coral); background: #fff6f7;
}
.pick-one input:focus-visible + .pick-face {
  outline: 3px solid var(--sky); outline-offset: 2px;
}
.pick-t { display: block; font-weight: 700; color: var(--ink); }
.pick-s { display: block; font-size: .86rem; color: var(--ink2); margin-top: 2px; }

.start-form .btn-go { margin-top: 8px; font-size: 1.02rem; padding: 15px 20px; }
.start-form .reassure { text-align: center; margin-top: 14px; font-size: .86rem; }


.start-proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin: 46px auto 0; max-width: 1000px;
}
.pf {
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 20px;
}
.pf-n {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.3rem; line-height: 1;
  background: var(--hot); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pf-t { display: block; font-weight: 700; color: var(--ink); margin-top: 9px; }
.pf-s { display: block; color: var(--ink2); font-size: .88rem; margin-top: 5px; line-height: 1.5; }

.start-foot { text-align: center; margin-top: 44px; color: var(--ink2); font-size: .9rem; }
.start-foot p + p { margin-top: 8px; }



.pt-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 18px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pt-tabs a:hover { background: var(--line-soft); color: var(--ink); }
.pt-tabs a.is-on { background: var(--ink); color: #fff; }
.pt-grid { align-items: start; }
.pt-card { margin-bottom: 16px; }
.pt-card > .card-head { padding: 0 0 12px; }
.pt-card hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list > li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pt-list > li:first-child { border-top: 0; }
ol.pt-list { list-style: decimal inside; }
.pt-next-first { font-size: 1.05rem; }
.pt-when { font-weight: 700; color: var(--ink); white-space: nowrap; margin-right: 4px; }
.pt-big { font-family: var(--display); font-size: 1.9rem; font-weight: 700; margin: 0 0 2px; color: var(--ink); line-height: 1.1; }
.pt-bad { color: #b3261e; }
.pt-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.pt-inline input:not([type=checkbox]), .pt-inline select { width: auto; flex: 1 1 10rem; min-width: 0; }
.pt-stack > * + * { margin-top: 12px; }
.pt-days { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; scrollbar-width: none; }
.pt-days::-webkit-scrollbar { display: none; }
.pt-days a { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 6px; border-radius: var(--radius-sm);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); text-decoration: none; }
.pt-days a span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.pt-days a strong { font-size: 1.15rem; color: var(--ink); }
.pt-days a.is-on { background: var(--accent); box-shadow: none; }
.pt-days a.is-on span, .pt-days a.is-on strong { color: #fff; }
.pt-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; scrollbar-width: none; }
.pt-chips::-webkit-scrollbar { display: none; }
.pt-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pt-chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.act-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pt-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-class details { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.pt-class summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.pt-class summary::-webkit-details-marker { display: none; }
.pt-class.is-booked details { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.pt-time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.2rem; }
.pt-what { display: flex; flex-direction: column; min-width: 0; }
.pt-what .muted, .pt-price .muted { font-size: .82rem; }
.pt-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-weight: 700; }
.pt-open { padding: 0 16px 14px; border-top: 1px solid var(--line-soft); }
.pt-guest { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pt-row-foot { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: var(--btn-gap); align-items: center; }
.pt-booking { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pt-booking > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 16rem; }
.pt-actions { display: flex; flex-wrap: wrap; gap: var(--btn-gap); }
.pt-actions form { margin: 0; }
.pt-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.pt-line .num, .pt-total strong { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.pt-credit { color: #0e7c5a; }
.pt-ask summary { cursor: pointer; font-size: .82rem; color: var(--ink3); margin-top: 4px; }
.pt-ask textarea { width: 100%; margin: 6px 0; }
.pt-total { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 6px; font-size: 1.1rem; }
.pt-plan { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pt-plan > div { display: flex; flex-direction: column; }
.pt-confirm { margin: 0 0 8px; }
.pt-year { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 12px; margin-bottom: 16px; }
.pt-stat { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.pt-stat strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--ink); }
.pt-stat span { color: var(--ink2); font-size: .88rem; }
.pt-member-card { max-width: 26rem; margin: 0 auto; padding: 24px; border-radius: var(--radius); text-align: center; background: var(--card);
  box-shadow: inset 0 6px 0 var(--club, var(--accent)), var(--shadow-lift); }
.pt-mc-club { font-weight: 700; color: var(--club, var(--accent)); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 6px 0 0; }
.pt-mc-name { font-family: var(--display); font-size: 1.6rem; margin: 6px 0 2px; color: var(--ink); }
.pt-mc-plan { color: var(--ink2); margin: 0 0 14px; }
.pt-wallet { text-align: center; max-width: 26rem; margin: 14px auto 0; }
@media (max-width: 640px) {
  .pt-class summary { grid-template-columns: auto auto 1fr; }
  .pt-price { grid-column: 3; align-items: flex-start; text-align: left; }
  .pt-line { grid-template-columns: 1fr auto; }
  .pt-line .pt-when { grid-column: 1 / -1; }
}
@media print {
  .pt-tabs, .app-bar, .page-head .actions, .pt-ask { display: none !important; }
}



.pt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-seg { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 3px; }
.pt-seg a { padding: 6px 14px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-weight: 600; font-size: .88rem; }
.pt-seg a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,22,51,.12); }
.pt-move { display: inline-flex; gap: 6px; }
.pt-grid-wrap .dayhead a { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; }
.pt-grid-wrap .dayhead a:hover b { color: var(--accent); }
.pt-grid-wrap .pt-slot:hover { background: transparent; }
.pt-blk { cursor: pointer; }
.pt-blk.mid em { display: none; }
.pt-row-foot form { margin: 0; }
.pt-blk .pt-tag { font-style: normal; font-weight: 700; font-size: .7rem; color: var(--ink); }
.pt-blk.is-mine { background: var(--blk); color: #fff; box-shadow: none; }
.pt-blk.is-mine span, .pt-blk.is-mine em, .pt-blk.is-mine .pt-tag { color: rgba(255,255,255,.92); }
.pt-blk.is-full:not(.is-mine) { background: repeating-linear-gradient(135deg, #fff, #fff 6px, color-mix(in srgb, var(--blk) 10%, #fff) 6px, color-mix(in srgb, var(--blk) 10%, #fff) 12px); }
.pt-blk.is-past { opacity: .45; }
.pt-blk.is-picked { outline: 2.5px solid var(--ink); outline-offset: 1px; z-index: 3; }
.grid-wrap .blk.short .pt-tag { flex: 0 0 auto; }
.grid-wrap .blk.short.tight .pt-tag { display: none; }
.pt-day .day { min-width: 9rem; }
.pt-pick { margin-bottom: 16px; scroll-margin-top: 90px; }
.pt-pick-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pt-pick-head h2 { margin: 0 0 4px; }
.pt-pick-head p { margin: 2px 0; }
.pt-empty { margin-bottom: 16px; }
.pt-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pt-mhead { text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0; }
.pt-mday { min-height: 7.5rem; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt-mday.is-out { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.pt-mday.is-out .pt-mnum { color: var(--ink3); }
.pt-mday.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pt-mday.is-today .pt-mnum { color: var(--accent); }
.pt-mnum { font-weight: 800; color: var(--ink); text-decoration: none; font-size: .9rem; align-self: flex-start; }
.pt-mitem { display: block; font-size: .74rem; line-height: 1.3; padding: 2px 6px; border-radius: 6px; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--blk) 14%, #fff); box-shadow: inset 3px 0 0 var(--blk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mitem span { font-weight: 700; }
.pt-mitem.is-mine { background: var(--blk); color: #fff; box-shadow: none; }
.pt-mitem.is-past { opacity: .45; }
.pt-mmore { font-size: .74rem; font-weight: 700; color: var(--ink2); text-decoration: none; padding-left: 6px; }
@media (max-width: 640px) {
  .pt-bar { width: 100%; justify-content: space-between; }
  .pt-mday { min-height: 4.6rem; padding: 4px; }
  .pt-mitem { font-size: .66rem; padding: 1px 3px; }
  .pt-mitem span { display: none; }
}

.pt-mtop { display: flex; justify-content: space-between; align-items: center; }
.pt-madd { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink3); text-decoration: none; font-weight: 700; line-height: 1; }
.pt-madd:hover { background: var(--line-soft); color: var(--accent); }
.pt-mitem.is-draft { background: repeating-linear-gradient(135deg, #fff, #fff 5px, #fdf4ec 5px, #fdf4ec 10px); box-shadow: inset 3px 0 0 #d9cfc6; }

.pt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pt-doc { max-height: 16rem; overflow: auto; padding: 10px 12px; margin: 6px 0; background: var(--line-soft); border-radius: 10px; font-size: .85rem; }



.join { max-width: 72rem; margin: 0 auto; }
.join-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px) clamp(32px, 5vw, 52px);
  border-radius: var(--radius); margin: 8px 0 34px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.join-hero.is-compact { padding: clamp(26px, 4vw, 40px) clamp(20px, 5vw, 48px); margin-bottom: 30px; }
.join-hero.is-compact h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.pay-choice { margin: 0; }
.pay-choice .plan-about { margin-bottom: 24px; }
.join-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; margin: 0 auto 14px; display: block; }
.join-kicker {
  margin: 0 0 10px; color: var(--accent); font-weight: 800; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.join-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em;
}
.join-lead { margin: 14px auto 0; max-width: 38rem; color: var(--ink2); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.55; }
.join-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.join-stats li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  color: var(--ink2); font-size: .92rem; box-shadow: 0 1px 2px rgba(28,22,51,.04);
}
.join-stats strong { color: var(--ink); font-weight: 800; }

.join-cats {
  position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 auto 26px; padding: 8px; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.join-cats a {
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink2); text-decoration: none;
}
.join-cats a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.join-group { margin: 0 0 40px; scroll-margin-top: 150px; }
.join-group-head { text-align: center; margin: 0 0 22px; }
.join-group-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--ink); }
.join-group-head p { margin: 6px auto 0; max-width: 36rem; color: var(--ink2); }
.join-plans {
  display: grid; gap: 22px; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.join-plans.is-single { grid-template-columns: minmax(0, 30rem); justify-content: center; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.plan.is-favorite { border: 2px solid var(--accent); box-shadow: var(--shadow-lift); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0;
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.plan-price span { color: var(--ink3); font-weight: 600; font-size: 1rem; }
.plan-year { margin: 10px 0 0; color: var(--ink2); font-size: .92rem; line-height: 1.5; }
.plan-year strong { color: var(--ink); }
.plan-save {
  display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  color: #0b7a5f; background: #e3f8f1;
}
.plan-about { margin: 16px 0 0; color: var(--ink2); line-height: 1.55; }
.plan-facts { list-style: none; margin: 20px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 11px; }
.plan-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .96rem; line-height: 1.4; }
.plan-facts svg {
  flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 2px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.plan .plan-go { margin-top: auto; width: 100%; justify-content: center; }

.join-payg {
  margin: 26px 0 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius); background: var(--line-soft); border: 1px dashed var(--line);
}
.join-payg h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.join-payg > div { flex: 1 1 320px; }
.join-payg p { margin: 0; color: var(--ink2); line-height: 1.55; }

.join-gets { margin: 46px 0 0; }
.join-gets > h2 { text-align: center; margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.join-gets-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.join-get { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.join-get-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.join-get-icon svg { width: 22px; height: 22px; }
.join-get h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.join-get p { margin: 0; color: var(--ink2); font-size: .92rem; line-height: 1.5; }
.join-empty { text-align: center; padding: 40px 24px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.join-empty h2 { margin: 0 0 8px; font-family: var(--display); font-size: 1.3rem; }
.join-empty p { margin: 0; color: var(--ink2); }
.join-small { margin: 34px auto 10px; max-width: 42rem; text-align: center; color: var(--ink3); font-size: .88rem; line-height: 1.6; }
.join-small a { color: var(--ink2); font-weight: 700; }
@media (max-width: 560px) {
  .join-payg { padding: 20px; }
  .join-payg .btn { width: 100%; justify-content: center; }
  .plan { padding: 26px 22px 22px; }
}


.cat-head { margin: 22px 0 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.cat-head:first-child { margin-top: 4px; }
.cat-list { margin: 14px 0 18px; }
.cat-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cat-edit { display: flex; gap: 8px; flex: 1 1 420px; flex-wrap: wrap; margin: 0; }
.cat-edit input[name="name"] { flex: 0 1 14rem; }
.cat-edit input[name="description"] { flex: 1 1 16rem; }
.cat-count { min-width: 7.5rem; }
.cat-tools { display: inline-flex; gap: 6px; align-items: center; }
.cat-slot { display: inline-block; width: 34px; }

.plans-table { table-layout: fixed; width: 100%; }
.plans-table th:nth-child(1) { width: 30%; }
.plans-table th:nth-child(2) { width: 18%; }
.plans-table th:nth-child(3) { width: 10%; }
.plans-table th:nth-child(4) { width: 12%; }
.plans-table th:nth-child(5) { width: 9%; }
.plans-table td:last-child { white-space: nowrap; text-align: right; }
.plans-table td { overflow-wrap: anywhere; }


.ent-card { overflow-x: auto; }
.ent-row {
  display: grid; grid-template-columns: minmax(12rem, 1.6fr) minmax(12rem, 1.3fr) 8.5rem 8.5rem 8.5rem;
  gap: 10px; align-items: center; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line-soft); min-width: 46rem;
}
.ent-row.ent-head { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--line); }
.ent-what { padding-left: calc(var(--depth, 0) * 18px); font-weight: 600; color: var(--ink); }
.ent-row .ent-price { display: flex; align-items: center; gap: 4px; color: var(--ink3); }
.ent-row input, .ent-row select { width: 100%; min-width: 0; }
.ent-row.is-override { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ent-row:has(select option[value="price"]:checked) .ent-price input { border-color: var(--accent); }
.ent-row:not(:has(select option[value="price"]:checked)) .ent-price { opacity: .35; }
.plans-table th:nth-child(1) { width: 27%; }
.ent-set { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); vertical-align: 1px; }
.perks-card { margin-top: 18px; }
.perks-grid { display: grid; gap: 14px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.perks-grid .field .muted { display: block; margin-top: 4px; font-size: .84rem; }
.perk-door { grid-column: 1 / -1; }
.perk-days { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.perk-day { font-weight: 600; color: var(--ink2); }

.role-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 4px 3px 11px; font-size: .82rem; font-weight: 600; color: var(--ink);
}
.role-chip form.inline { margin: 0; }
.role-chip .btn-sm { padding: 2px 9px; font-size: .74rem; }
form.give-role { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.role-matrix th.center, .role-matrix td.center { text-align: center; white-space: nowrap; }
.role-matrix tr.group th { background: var(--ground); color: var(--ink2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
.role-matrix .tick, .perm .tick { color: var(--mint); font-weight: 800; }
.perm-group { margin: 14px 0 6px; }
.perm-group h3 { font-size: .9rem; color: var(--ink2); margin-bottom: 6px; }
.perm { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.perm:last-child { border-bottom: 0; }
.perm .sub { display: block; color: var(--ink3); font-size: .8rem; margin-left: 24px; }
.perm input[disabled] + * { color: var(--ink3); }
.role-matrix th .sub { display: block; font-weight: 500; font-size: .74rem; color: var(--ink3); }
