.rule-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.rule-settings { margin-top: 26px; border-top: 1px solid #2b2e3d; padding-top: 17px; }
.rule-settings summary { cursor: pointer; color: #d5dce9; font-size: 12px; }
.rule-settings summary span { display: block; margin: 8px 0 0 15px; color: #9ba7bd; font-size: 10px; line-height: 1.7; }
.rule-settings[open] > .section-title { margin-top: 23px; }
.connection-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.connection-options label { font-size: 10px; color: #9ba7bd; }
.connection-options select { width: auto; max-width: 100%; padding: 7px 10px; font-size: 10px; }
.login-help { grid-column: 2/-1; font-size: 11px; color: #b4c0d6; line-height: 1.8; }
.login-help p { margin: 4px 0; }
.login-help a { color: #c8adef; }
@media(max-width:730px) { .login-help { grid-column: 1/-1; font-size: 10px; } }
.rule-fields:disabled { opacity: .45; }
.settings .rule-choice { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.65; color: #d5dce9; margin: 17px 0 13px; }
.rule-choice input { flex: 0 0 auto; margin-top: 3px; }
.exact-rule { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 26px; align-items: end; gap: 5px; margin-bottom: 10px; }
.exact-rule label { font-size: 9px; margin: 0 0 5px; }
.exact-rule input { padding: 9px 6px; width: 100%; min-width: 0; font-size: 11px; }
.exact-rule button { padding: 0; width: 26px; height: 36px; font-size: 17px; }
.people-list { padding-right: 8px; scrollbar-width: thin; scrollbar-gutter: stable; }
.person { grid-template-columns: minmax(0,1fr) auto 26px; column-gap: 7px; }
.person-details { min-width: 0; }
.person-name { white-space: normal; overflow-wrap: anywhere; }
.person-remove { align-self: start; display: grid; place-items: center; padding: 0; width: 26px; height: 28px; border: 1px solid #43414d; border-radius: 6px; background: #252631; color: #d9bbc1; font-size: 20px; line-height: 1; }
.person-remove:hover:not(:disabled) { background: #4b2b37; color: #fff; }
body.readonly .person { grid-template-columns: minmax(0,1fr) auto; }
.person-slot-form { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-top: 2px; }
.person-slot-form .input-unit { min-width: 0; }
.person-slot-form input { width: 100%; min-width: 0; padding: 7px 30px 7px 8px; font-size: 11px; }
.person-slot-form .input-unit span { font-size: 9px; right: 9px; }
.person-slot-form button { font-size: 10px; padding: 7px 10px; }
.name-edit { display: block; margin-top: 5px; padding: 0; background: none; border: 0; color: #c4b1ed; font-size: 9px; cursor: pointer; }
.person-name-form { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 5px; }
.person-name-form input { width: 100%; min-width: 0; padding: 7px 8px; font-size: 11px; }
.person-name-form button { font-size: 10px; padding: 7px 8px; }
#nickname:read-only { color: #9ba7bd; background: #202430; }
.wheel-panel { background: #fff; color: #242938; border-color: #dfe5ed; color-scheme: light; }
.wheel-panel .eyebrow { color: #69748a; }
.wheel-panel .tag { background: #edf1f6; color: #59667b; border-color: #dce2ec; }
.wheel-panel .wheel-stats span, .wheel-panel .wheel-stats small { color: #68758a; }
.wheel-panel .wheel-stats > div + div { border-color: #e0e5ed; }
.wheel-panel .winner { background: #f6f7fb; border-color: #dde2eb; }
.wheel-panel .winner span { color: #746382; }
.wheel-panel .winner strong { color: #3d4355; }
.wheel-panel .winner.has-winner { border-color: #a4c480; background: #f0f8e8; }
.wheel-panel .winner.has-winner strong { color: #365725; }
.wheel-panel .wheel-note, .wheel-panel > .tiny { color: #67748a; }
.wheel-panel canvas { box-shadow: 0 12px 30px #27324526; }
.wheel-panel, .page-shell .wheel-panel { padding: 24px 14px 18px; }
.wheel-panel .wheel-stage { max-width: 620px; margin: 18px auto 20px; }
body.readonly .wheel-panel .wheel-stage { max-width: 700px; }
.reset-button { display: block; width: 100%; margin-top: 9px; padding: 11px 15px; border: 1px solid #d9dfe8; border-radius: 9px; background: #f2f4f8; color: #596579; font-size: 12px; }
@media(max-width:730px) {
  .people-list { grid-template-columns: 1fr; }
  .settings { display: block; order: 1; }
  .wheel-panel { order: 2; }
  .settings .rule-choice { font-size: 10px; }
  .person-slot-form { grid-column: 1/-1; }
  .person-name-form { grid-template-columns: 1fr 1fr; }
  .person-name-form input { grid-column: 1/-1; }
  .exact-rule { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 22px; gap: 3px; }
  .exact-rule button { width: 22px; }
}
body.wheel-only { overflow: hidden; background: #fff; }
body.wheel-only .topbar,
body.wheel-only .ad-rail,
body.wheel-only main > :not(.workspace),
body.wheel-only .workspace > :not(.wheel-panel),
body.wheel-only .wheel-panel > :not(.wheel-stage,#spin,#reset-wheel) { display: none !important; }
body.wheel-only .page-shell,
body.wheel-only main,
body.wheel-only .workspace { display: block; width: auto; min-width: 0; max-width: none; padding: 0; margin: 0; }
body.wheel-only .wheel-panel { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: auto 44px 36px; gap: 8px; place-items: center; align-content: center; width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 14px; border: 0; border-radius: 0; background: #fff; }
body.wheel-only .wheel-panel .wheel-stage { width: min(calc(100vw - 28px), calc(100vh - 124px)); width: min(calc(100vw - 28px), calc(100dvh - 124px)); height: auto; max-width: none; margin: 0; }
body.wheel-only #spin, body.wheel-only #reset-wheel { width: min(100%, 520px); height: 100%; margin: 0; padding: 0 12px; }
body.readonly.wheel-only .wheel-panel { grid-template-rows: auto; gap: 0; }
body.readonly.wheel-only .wheel-panel .wheel-stage { width: min(calc(100vw - 28px), calc(100vh - 28px)); width: min(calc(100vw - 28px), calc(100dvh - 28px)); }
body.wheel-only .wheel-hub { width: 21%; height: 21%; border-width: clamp(1px, 1vmin, 5px); }
body.wheel-only .wheel-hub span { font-size: clamp(4px, 2vmin, 9px); letter-spacing: clamp(0px, .6vmin, 3px); }
body.wheel-only .wheel-hub strong { font-size: clamp(5px, 3vmin, 14px); }
body.wheel-only .wheel-hub i { font-size: clamp(5px, 2.7vmin, 13px); }
