:root {
  color-scheme: dark;
  font: 100%/1.5 system-ui, sans-serif;
  color: #fff4ef;
  background: #1b1217;
  --sidebar: #21151c;
  --surface: #2a1c24;
  --field: #20151c;
  --muted: #d0b8c1;
  --border: #4f333d;
  --field-border: #8c6470;
  --red: #ba2441;
  --gold: #ffc07b;
  --green: #a4e0bd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: var(--gold); }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
.hint, .page-heading p { color: var(--muted); }
.hint { font-size: .9rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 5; inset: 1rem auto auto 1rem; padding: .6rem; background: var(--surface); }
.dashboard-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 1.35rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; font-weight: 800; width: fit-content; text-decoration: none; }
.brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .65rem;
}
.brand-mark { background: linear-gradient(145deg, #d93849, #a1143a); box-shadow: inset 0 0 0 1px #ff8777; }
.account span { overflow-wrap: anywhere; min-width: 0; }
.guild-icon { object-fit: cover; box-shadow: none; }
.section-nav { display: grid; align-content: start; gap: .3rem; }
.nav-heading { padding: .25rem .65rem; font-size: .88rem; color: var(--muted); }
.section-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .66rem .65rem;
  border-radius: .55rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.section-nav a:hover { background: #34212b; color: #fff4ef; }
.section-nav a[aria-current] { color: #ffe2df; background: #512433; box-shadow: inset 3px 0 #f4686c; }
.module-icon {
  position: relative;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: #e4a3ae;
}
.section-nav a[aria-current] .module-icon { color: #ffb6bf; }
.module-icon::before, .module-icon::after { content: ""; position: absolute; }
.module-icon--ticket::before {
  inset: .19rem 0;
  border: 1.5px solid currentColor;
  border-radius: .25rem;
}
.module-icon--ticket::after {
  inset: .32rem .35rem .32rem auto;
  border-right: 1.5px dashed currentColor;
}
.module-icon--store::before {
  inset: .41rem .12rem .06rem;
  border: 1.5px solid currentColor;
  border-radius: 0 0 .14rem .14rem;
  background: linear-gradient(currentColor, currentColor) center bottom / .24rem .29rem no-repeat;
}
.module-icon--store::after {
  inset: .09rem .04rem auto;
  height: .4rem;
  border: 1.5px solid currentColor;
  border-radius: .22rem .22rem .12rem .12rem;
}
.workspace { min-width: 0; --gutter: clamp(1rem, 4vw, 3rem); }
.workspace-header {
  min-height: 4rem;
  padding: .65rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  background: #20161b;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs, .account { display: flex; align-items: center; gap: .65rem; }
.breadcrumbs { flex-wrap: wrap; font-size: .9rem; }
.breadcrumbs a, .breadcrumbs span[aria-hidden] { color: var(--muted); }
.account span { max-width: 14rem; }
.module-tabs {
  display: flex;
  gap: clamp(.7rem, 2vw, 1.6rem);
  margin-inline: var(--gutter);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.module-tabs a {
  flex: none;
  padding: .8rem .15rem .65rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.module-tabs a:hover, .module-tabs a[aria-current] { color: #fff4ef; }
.module-tabs a[aria-current] { border-color: #ee6a78; }
.module-tabs a:focus-visible { outline-offset: -3px; }
.dashboard { width: min(100%, 76rem); margin-inline: auto; padding: 1.8rem var(--gutter) 4rem; }
.page-heading { margin: 0 0 1.75rem; }
.page-heading p { margin-top: .55rem; }
.page-content, [data-settings] form { display: grid; gap: 1.1rem; }
.panel { min-width: 0; padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); }
.panel-heading { margin-bottom: 1.15rem; }
.panel-heading p { margin-top: .4rem; }
.setup-panel { width: min(100%, 48rem); }
.setup-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.setup-panel progress {
  display: block;
  width: 100%;
  height: .48rem;
  margin: .85rem 0 1.15rem;
  accent-color: #ee6a78;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--field);
}
.setup-panel progress::-webkit-progress-bar { background: var(--field); }
.setup-panel progress::-webkit-progress-value { background: #ee6a78; }
.setup-panel progress::-moz-progress-bar { background: #ee6a78; }
.setup-steps { list-style: none; padding: 0; margin: 0; }
.setup-steps li + li { border-top: 1px solid var(--border); }
.setup-steps a {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: .8rem .2rem;
  text-decoration: none;
  color: inherit;
}
.setup-steps a:hover strong { color: var(--gold); }
.setup-steps a > span:first-child { display: grid; gap: .2rem; }
.setup-actions { margin-top: .85rem; }
.status { display: inline-flex; font-size: .875rem; font-weight: 650; border-radius: .4rem; padding: .15rem .45rem; }
.status.success { background: #20392e; color: var(--green); }
.status.pending { background: #503321; color: #ffd19c; }
.checklist, .option-list, .preview-options { margin: 0; padding: 0; list-style: none; }
.checklist li, .option-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.checklist li:last-child, .option-row:last-child { padding-bottom: 0; }
.checklist a { color: inherit; text-underline-offset: .2em; text-decoration-color: #a16b79; }
.checklist li > :last-child { flex: none; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
label { display: grid; align-content: start; gap: .45rem; font-weight: 650; }
label .hint { font-weight: 400; }
input:not([type=checkbox]), select, button, .button { font: inherit; min-height: 2.75rem; border-radius: .55rem; border: 1px solid var(--field-border); padding: .55rem .75rem; }
input:not([type=checkbox]), select { width: 100%; min-width: 0; background: var(--field); color: inherit; }
select {
  appearance: none;
  padding-right: 2rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 1.1rem center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right .8rem center / 5px 5px no-repeat,
    var(--field);
}
button, .button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; background: #3a2630; text-decoration: none; font-weight: 650; }
.primary { background: var(--red); border-color: #ef6675; }
.compact { min-height: 2.35rem; font-size: .9rem; padding: .35rem .65rem; }
.danger { color: #ffc4c9; border-color: #ba6877; }
button:hover:not(:disabled), .button:hover { filter: brightness(1.16); }
button:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.actions, .heading-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.heading-actions { justify-content: space-between; }
.actions form { display: flex; gap: .3rem; }
.editor-actions { margin-top: 1rem; }
.editor-actions + p, form + p { margin-top: .9rem; }
.option-copy, .preview-options li { min-width: 0; overflow-wrap: anywhere; }
.option-row .actions { flex: none; }
.option-copy p { margin-top: .22rem; }
.editor { scroll-margin-block: 1rem; border-color: #a14c60; }
.save-bar { position: sticky; bottom: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .7rem .9rem; border-radius: .75rem; border: 1px solid var(--border); background: #2c1c25; box-shadow: 0 5px 18px #0f0609b0; }
.save-bar .actions { margin-left: auto; }
fieldset { margin: 1.25rem 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 650; }
.choice-field { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.choice-menu { position: relative; min-width: 0; }
.picker-trigger {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--field-border);
  border-radius: .65rem;
  background: var(--field);
  cursor: pointer;
  list-style: none;
}
.picker-trigger > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-trigger::-webkit-details-marker { display: none; }
.picker-trigger::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
  margin-inline: .15rem;
  flex: none;
}
details[open] > .picker-trigger { border-color: #df7586; }
details[open] > .picker-trigger::after { transform: translateY(.1rem) rotate(225deg); }
.picker-trigger:focus-visible, .picker-panel input:focus-visible { outline: 2px solid #f28e9a; outline-offset: 1px; }
.picker-panel { padding: .5rem; border: 1px solid #854957; border-radius: .7rem; background: #2b1b24; }
.choice-menu .picker-panel {
  position: absolute;
  inset: calc(100% + .35rem) 0 auto;
  z-index: 4;
  box-shadow: 0 10px 22px #10080bbb;
}
.role-menu { margin-top: .65rem; }
.role-menu .picker-panel { margin-top: .35rem; }
.picker-list { display: grid; gap: .16rem; max-height: 14rem; overflow: auto; margin-top: .35rem; }
.picker-option, .role-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  min-width: 0;
  min-height: 2.65rem;
  padding: .5rem .6rem;
  border-radius: .45rem;
  text-align: left;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.picker-option { border: 1px solid transparent; background: transparent; }
.picker-option:hover, .role-choice:hover { background: #3d2631; }
.picker-option[aria-pressed=true], .role-choice:has(:checked) { background: #502934; color: #ffe5e6; }
.picker-option[aria-pressed=true]::after { content: "✓"; color: #ffafbb; margin-inline-start: auto; flex: none; }
.role-choice { position: relative; cursor: pointer; }
.role-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.role-check {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--field-border);
  border-radius: .32rem;
  background: var(--field);
}
.role-choice input:checked + .role-check { background: #b62743; border-color: #f18493; }
.role-choice input:checked + .role-check::after { content: "✓"; color: #fff; line-height: 1; }
.role-choice:has(input:focus-visible) { outline: 2px solid #f28e9a; outline-offset: -2px; }
.role-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.role-tags span {
  padding: .25rem .6rem;
  border: 1px solid #854957;
  border-radius: 1rem;
  background: #432530;
  color: #ffd4d8;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.publish-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.1rem; }
.preview-options { padding-inline-start: 1.4rem; list-style: decimal; color: var(--muted); overflow: auto; max-height: 14rem; }
.preview-options li { padding: .25rem; }
.empty { color: var(--muted); padding: .7rem 0; }
.notice { padding: .75rem 1rem; border-radius: .55rem; background: #273b32; border: 1px solid #597a66; color: #c1f1d4; }
.notice.error { background: #48232d; border-color: #c76573; color: #ffd2d6; }
.login { display: grid; place-items: center; min-height: 100svh; padding: 2rem 1rem; background: radial-gradient(ellipse at 50% 25%, #621c2c, transparent 68%); }
.login-card { width: min(100%, 29rem); padding: clamp(1.5rem, 6vw, 2.5rem); border-top: 3px solid #f45855; }
.login-card > * + * { margin-top: 1rem; }
.login-card h1 { margin-top: 1.5rem; font-size: 2.2rem; }
.login-card p { color: var(--muted); }
.login-card .button { display: flex; margin-top: 1.5rem; }
.login-help { font-size: .9rem; }
.config-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.config-toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.switch-track {
  position: relative;
  flex: none;
  width: 2.65rem;
  height: 1.5rem;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: #49343e;
}
.switch-track::before {
  content: "";
  position: absolute;
  inset: .16rem auto .16rem .16rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff4ef;
  transition: transform .16s ease;
}
.config-toggle input:checked + .switch-track { background: var(--red); border-color: #ef6675; }
.config-toggle input:checked + .switch-track::before { transform: translateX(1.15rem); }
.config-toggle input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
.switch-status { color: var(--muted); font-size: .875rem; font-weight: 500; }
.switch-on, .config-toggle input:checked ~ .switch-copy .switch-off { display: none; }
.config-toggle input:checked ~ .switch-copy .switch-on { display: inline; color: #ffbdc7; }
@media (prefers-reduced-motion: reduce) { .switch-track::before { transition: none; } }
.config-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 2.85rem), 1fr));
  gap: .35rem;
  margin-top: .6rem;
}
.day-option { position: relative; cursor: pointer; }
.day-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.day-pill {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .2rem;
  border: 1px solid var(--field-border);
  border-radius: .6rem;
  background: var(--field);
  color: var(--muted);
  font-size: .875rem;
}
.day-option:hover .day-pill { color: #fff4ef; border-color: #de8293; }
.day-option input:checked ~ .day-pill {
  background: var(--red);
  border-color: #ef6675;
  color: #fff4ef;
  box-shadow: inset 0 -3px #ff9dab;
}
.day-option input:focus-visible ~ .day-pill { outline: 2px solid var(--gold); outline-offset: 2px; }
.policy-fields { margin: 0; display: grid; gap: .6rem; }
.policy-fields legend { margin-bottom: .7rem; }
.option-row form { flex: none; }
@media (max-width: 58rem) {
  .publish-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  .dashboard-layout { display: block; }
  .sidebar { position: static; height: auto; gap: .65rem; padding: .85rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .section-nav { display: flex; flex-wrap: wrap; align-items: center; }
  .account span { display: none; }
  .dashboard { padding-top: 1.45rem; }
  .option-row { align-items: flex-start; flex-wrap: wrap; gap: .55rem; }
}

.store-status, .store-layout { display: grid; gap: 1rem; align-items: start; }
.store-status {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(110deg, #42242f, var(--surface) 75%);
  border-color: #75424f;
}
.store-status-main h2 { display: flex; align-items: center; gap: .65rem; margin-top: .25rem; font-size: 1.7rem; }
.store-status-dot { width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
.store-status-dot.success { background: var(--green); }
.store-status-dot.pending { background: var(--gold); }
.store-reason { margin-top: .5rem; color: var(--muted); overflow-wrap: anywhere; }
.discord-emoji {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -.28em;
}
.discord-message > * { margin: 0; }
.discord-message > * + * { margin-top: .65rem; }
.discord-message strong { color: #fff4ef; }
.discord-message h3, .discord-message h4, .discord-message h5 { color: #fff4ef; line-height: 1.3; }
.discord-message h3 { font-size: 1.2rem; }
.discord-message h4 { font-size: 1.05rem; }
.discord-message h5 { font-size: .95rem; }
.discord-message ul, .discord-message ol { padding-left: 1.35rem; }
.discord-message blockquote { padding-left: .75rem; border-left: 3px solid var(--field-border); }
.discord-message code { background: var(--field); padding: .1rem .25rem; border-radius: .25rem; }
.discord-message pre { overflow: auto; padding: .6rem; background: var(--field); border-radius: .4rem; }
.discord-message pre code { padding: 0; }
.store-hours { display: grid; gap: .2rem; border-left: 1px solid var(--border); padding-left: 1rem; }
.store-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.store-side, .store-schedule-fields { display: grid; gap: 1rem; min-width: 0; }
.store-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.store-schedule-fields { padding-top: .85rem; margin-top: .65rem; border-top: 1px solid var(--border); }
.store-schedule-fields fieldset { margin-top: 0; }
.store-empty { padding: .8rem; border: 1px dashed var(--border); border-radius: .55rem; }
.store-add { margin-top: 1.1rem; }
.store-add summary { list-style: none; }
.store-add summary::-webkit-details-marker { display: none; }
.store-add[open] summary { background: #432830; }
.store-add form { margin-top: 1rem; }
.closure-modes { grid-column: 1 / -1; margin: 0; }
.closure-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .5rem;
  margin-top: .5rem;
}
.closure-mode-option {
  display: flex;
  align-items: start;
  gap: .5rem;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--field);
  cursor: pointer;
}
.closure-mode-option:has(:checked) { border-color: #ec8292; background: #482731; }
.closure-mode-option input { flex: none; margin: .25rem 0 0; accent-color: #ef7486; }
.closure-mode-option > span { display: grid; min-width: 0; }
.closure-mode-option .hint { font-weight: 400; }
[data-closure-for="weekday"] { grid-column: 1 / -1; }
[data-closure-for="weekday"] fieldset { margin-top: 0; }
@media (max-width: 67rem) {
  .store-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .store-status { grid-template-columns: minmax(0, 1fr); }
  .store-hours { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: .75rem; }
}

.edit-dialog, .emoji-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: inherit;
  background: var(--surface);
  border: 1px solid #a15769;
  border-radius: 1rem;
  box-shadow: 0 20px 70px #0008;
  overflow: auto;
}
.edit-dialog::backdrop, .emoji-dialog::backdrop {
  background: rgb(26 14 19 / 26%);
  backdrop-filter: blur(6px);
}
.edit-dialog [data-edit-panel] { border: 0; }
.edit-dialog-message { margin: .75rem 1rem; }
body:has(.edit-dialog[open], .emoji-dialog[open]) { overflow: hidden; }

.emoji-field { display: grid; align-content: start; gap: .42rem; min-width: 0; }
.emoji-picker-open { justify-self: start; }
.emoji-dialog { width: min(50rem, calc(100% - 2rem)); }
.emoji-menu { display: grid; gap: .85rem; padding: clamp(.85rem, 3vw, 1.25rem); }
.emoji-picker-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.emoji-picker-body { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: .85rem; }
.emoji-groups {
  display: grid;
  align-content: start;
  gap: .15rem;
  max-height: min(48dvh, 23rem);
  overflow: auto;
  padding-right: .55rem;
  border-right: 1px solid var(--border);
}
.emoji-nav-heading { color: var(--muted); font-size: .875rem; padding: .55rem .35rem .2rem; }
.emoji-groups button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border-color: transparent;
  font-size: .9rem;
  min-height: 2.2rem;
  padding: .3rem .4rem;
}
.emoji-groups button:hover, .emoji-groups button[aria-pressed=true] {
  color: #fff4ef;
  background: #512433;
  border-color: #8b4f60;
}
.emoji-browser { min-width: 0; }
.emoji-grid { max-height: min(44dvh, 21rem); overflow: auto; overscroll-behavior: contain; }
.emoji-grid h3 { margin: .45rem .18rem .35rem; color: var(--muted); font-size: .875rem; }
.emoji-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.25rem, 1fr)); gap: .2rem; padding: .2rem; }
.emoji-button {
  width: 100%;
  min-height: 2.25rem;
  padding: 0;
  font-size: 1.22rem;
  background: transparent;
  border-color: transparent;
}
.emoji-button:hover, .emoji-button[aria-pressed=true] { background: #502934; border-color: #bd6b7c; }
.emoji-button:focus-visible { outline-offset: -2px; }
.emoji-button img { width: 1.4rem; height: 1.4rem; object-fit: contain; }
@media (max-width: 36rem) {
  .emoji-picker-body { grid-template-columns: minmax(0, 1fr); }
  .emoji-groups { display: flex; align-items: center; padding: 0 0 .4rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .emoji-groups > * { flex: none; white-space: nowrap; }
}

.coupon-validity { margin: 0; }
.coupon-validity-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) auto;
  gap: .5rem;
  margin-top: .35rem;
}
.coupon-validity-fields label { font-size: .9rem; }
.coupon-validity-fields button { align-self: end; min-height: 2.75rem; }
[data-validity-add] { margin-top: .6rem; }
.coupon-validity .hint { margin-top: .4rem; }

.module-icon--form::before {
  inset: .05rem .17rem;
  border: 1.5px solid currentColor;
  border-radius: .15rem;
}
.module-icon--form::after {
  inset: .36rem .36rem;
  border-block: 1.5px solid currentColor;
}
.form-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.form-question-text { white-space: pre-line; min-width: 0; overflow-wrap: anywhere; }
.form-question-input, .store-schedule-fields textarea {
  width: 100%;
  min-width: 0;
  padding: .55rem .75rem;
  font: inherit;
  color: inherit;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: .55rem;
  resize: vertical;
}
.form-publish-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin: .8rem 0 1rem;
  padding: .7rem .85rem;
  border-left: 3px solid var(--red);
  border-radius: .35rem;
  background: var(--field);
}
.form-publish-button {
  display: inline-block;
  padding: .25rem .6rem;
  color: #fff4ef;
  border-radius: .35rem;
  background: #512433;
}
@media (max-width: 67rem) {
  .form-config-grid { grid-template-columns: minmax(0, 1fr); }
}

.module-icon--gamepad::before {
  inset: .22rem 0 .14rem;
  border: 1.5px solid currentColor;
  border-radius: .32rem;
}
.module-icon--gamepad::after {
  inset: .42rem .24rem auto;
  height: .32rem;
  background: radial-gradient(circle, currentColor 48%, transparent 50%) 100% 50% / .2rem .2rem no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / .31rem 1px no-repeat,
    linear-gradient(currentColor, currentColor) .125rem 50% / 1px .31rem no-repeat;
}
.catalog-search, .catalog-verification {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: .85rem;
}
.catalog-search label { flex: 1 1 12rem; }
.catalog-search .client-vip-select { flex: 0 1 12rem; }
.catalog-verification { margin-block: .95rem .45rem; }
.catalog-verification label { flex: 0 1 17rem; min-width: min(100%, 17rem); }
.catalog-search button { min-height: 2.75rem; }
.catalog-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); gap: .65rem; margin: 1rem 0 0; }
.catalog-counts div { padding: .65rem .75rem; background: var(--field); border: 1px solid var(--border); border-radius: .55rem; }
.catalog-counts dt { color: var(--muted); font-size: .9rem; }
.catalog-counts dd { font-size: 1.35rem; font-weight: 750; }
.gamepass-table-wrap { max-width: 100%; overflow-x: auto; }
.gamepass-table { width: 100%; border-collapse: collapse; }
.gamepass-table th, .gamepass-table td { text-align: left; padding: .55rem .45rem; border-bottom: 1px solid var(--border); }
.gamepass-table thead th { color: var(--muted); font-size: .9rem; }
.gamepass-table tbody th { min-width: 9rem; overflow-wrap: anywhere; }
.gamepass-table td:nth-child(3), .gamepass-table td:nth-child(4) { white-space: nowrap; }
.gamepass-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  cursor: pointer;
}
.gamepass-check:hover { background: #442731; }
.gamepass-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gamepass-check span {
  display: grid;
  place-items: center;
  width: 1.22rem;
  height: 1.22rem;
  border: 1px solid var(--field-border);
  border-radius: .33rem;
  background: var(--field);
}
.gamepass-check input:is(:checked, :indeterminate) + span { background: var(--red); border-color: #ef7589; }
.gamepass-check input:checked + span::before { content: "✓"; font-size: .9rem; line-height: 1; color: #fff4ef; }
.gamepass-check input:indeterminate + span::before { content: ""; width: .55rem; height: 2px; background: #fff4ef; }
.gamepass-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.catalog-selection { flex-basis: 100%; }
.gamepass-table tbody a { color: inherit; }
.catalog-pagination { margin-top: 1rem; }
.status.blocked { color: #ffc1cb; background: #542731; }

.confirmation-panel > p { white-space: pre-line; overflow-wrap: anywhere; }
.confirmation-panel button.danger { background: var(--red); border-color: #ef6675; color: #fff4ef; }

.module-icon--vip::before {
  inset: .19rem;
  border: 1.5px solid currentColor;
  border-radius: .12rem;
  transform: rotate(45deg);
}
.vip-period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
  gap: .55rem;
  margin-top: .65rem;
}
.vip-period-grid label { font-size: .9rem; }
.vip-eligibility {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--field);
}
.vip-plan-row { border-top: 1px solid var(--border); }
.vip-plan-row > .option-row { border-top: 0; }
.vip-plan-prices { margin-bottom: .85rem; }
.vip-plan-prices summary { width: fit-content; color: var(--gold); cursor: pointer; }
.vip-price-table { margin-block: .55rem; }

.module-icon--client::before {
  inset: .04rem .33rem auto;
  height: .48rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.module-icon--client::after {
  inset: .62rem .12rem .04rem;
  border: 1.5px solid currentColor;
  border-radius: .45rem .45rem .18rem .18rem;
}
.directory-count { margin-block: .75rem .55rem; }
.member-identity + .button { flex-shrink: 0; }
.member-identity { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; overflow-wrap: anywhere; }
.member-avatar { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; background: var(--field); }
.member-avatar-frame { position: relative; display: inline-flex; flex: none; }
.member-avatar-decoration { position: absolute; inset: -4px; width: 48px; height: 48px; pointer-events: none; }
.member-avatar-placeholder { display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); }
.client-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
  margin-top: 1.15rem;
}
.client-stats div { padding: .7rem .85rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--field); }
.client-stats dt { color: var(--muted); font-size: .9rem; }
.client-stats dd { font-size: 1.35rem; font-weight: 700; }
.client-fields { display: grid; gap: 1rem; }
.transfer-picker { display: grid; gap: .45rem; }
.transfer-results {
  margin: 0;
  padding: .3rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--field);
}
.transfer-result { display: grid; gap: .12rem; justify-content: stretch; }
.transfer-result:focus-visible { outline-offset: -2px; }

.module-icon--team::before {
  inset: .1rem .02rem auto;
  height: .48rem;
  background:
    radial-gradient(circle, currentColor 50%, transparent 55%) left center / .50rem .50rem no-repeat,
    radial-gradient(circle, currentColor 50%, transparent 55%) right center / .50rem .50rem no-repeat;
}
.module-icon--team::after {
  inset: .57rem .05rem .1rem;
  border: 1.5px solid currentColor;
  border-radius: .45rem .45rem .18rem .18rem;
}

.deletion-categories { margin: 0; }
.deletion-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .55rem;
  margin-top: .55rem;
}
.deletion-category {
  align-items: start;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--field);
  line-height: 1.35;
}
.deletion-category .role-check { margin-top: .12rem; }
.deletion-category:has(:checked) { border-color: #ba6877; }
.deletion-category-full { grid-column: 1 / -1; }
.deletion-category-copy { display: grid; gap: .2rem; }
.deletion-category-included { display: none; }
.deletion-category:has(:disabled) {
  border-color: var(--border);
  color: var(--muted);
  background: var(--field);
  cursor: default;
}
.deletion-category input:disabled + .role-check { background: var(--surface); border-color: var(--border); }
.deletion-category input:disabled + .role-check::after { content: "✓"; color: var(--muted); }
.deletion-category:has(:disabled) .deletion-category-included { display: block; }
.deletion-notification {
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--field);
}
