/* ── Tokens ──────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #fff6ea;
  --surface: #ffffff;
  --surface-2: #fdebd3;
  --ink: #2a1a12;
  --muted: #7a6558;
  --border: #2a1a12;
  --shadow-color: #2a1a12;
  --accent: #e8553d;
  --accent-hover: #d6452e;
  --accent-ink: #ffffff;
  --mustard: #f2b134;
  --basil: #3f9b5b;
  --danger: #c8372d;
  --focus: #5b8def;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--shadow-color);
  --shadow-sm: 2px 2px 0 var(--shadow-color);
  --font: 'Bricolage Grotesque Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17110e;
    --surface: #231a15;
    --surface-2: #2f231c;
    --ink: #f7ebdd;
    --muted: #b7a393;
    --border: #5a463a;
    --shadow-color: #000000;
    --accent: #ef6a52;
    --accent-hover: #f47f69;
    --accent-ink: #1b100b;
    --danger: #ff6b5e;
  }
}

/* ── Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-top: 0.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Buttons & inputs ───────────────────────────────────── */
.btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: 2px 2px 0 var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
}

.icon-btn,
.link-btn {
  appearance: none;
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
}

.icon-btn:hover {
  background: var(--surface-2);
}

.link-btn {
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.875rem;
}

.input {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

.input-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.form-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-emoji {
  font-size: 1.6rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.brand:hover .brand-emoji {
  transform: rotate(-20deg);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 auto;
}

.tabs a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.tabs a:hover {
  background: var(--surface-2);
}

.tabs a[aria-current='page'] {
  background: var(--mustard);
  color: #2a1a12;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.account-name {
  font-weight: 700;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(16px, 4vw, 40px) 4rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
}

.card-title {
  font-size: 1.2rem;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-row.wrap {
  flex-wrap: wrap;
}

/* ── Roue ───────────────────────────────────────────────── */
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 540px);
  scroll-margin-top: 90px;
  aspect-ratio: 1;
  padding-top: 18px;
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(6px 6px 0 var(--shadow-color));
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 54px;
  margin-left: -22px;
  transform-origin: 50% 12px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  inset: 5px 8px 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-pointer.tick {
  animation: pointer-tick 0.12s ease-out;
}

@keyframes pointer-tick {
  40% {
    transform: rotate(-16deg);
  }
}

.spin-btn {
  position: absolute;
  top: calc(50% + 9px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.2vw, 1.35rem);
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.spin-btn:hover:not(:disabled) {
  background: var(--mustard);
  color: #2a1a12;
  transform: translate(-50%, -50%) scale(1.05);
}

.spin-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96);
  box-shadow: none;
}

.spin-btn:disabled {
  cursor: default;
}

.wheel-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wheel-count {
  font-weight: 700;
}

.wheel-side .card > .muted {
  margin-top: 0.35rem;
}

.result {
  scroll-margin: 90px 0 16px;
  background: var(--mustard);
  color: #2a1a12;
  text-align: center;
  padding: 1.5rem 1.25rem;
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.result .btn-ghost {
  background: #fff6ea;
  color: #2a1a12;
  border-color: #2a1a12;
  box-shadow: 2px 2px 0 #2a1a12;
}

.result-kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.result-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0 0.25rem;
}

.result-emoji {
  font-size: 3.5rem;
  line-height: 1.1;
}

.result-name {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.result-tier {
  font-size: 0.9rem;
  opacity: 0.8;
}

.tier-badge {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 2px solid #2a1a12;
  border-radius: 6px;
  font-weight: 800;
  color: #2a1a12;
  background: var(--tier-color, #ddd);
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.wheel-caption {
  min-height: 1.5em;
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.result .result-actions .btn-ghost {
  margin-top: 0;
}

.btn-validate {
  background: #2f7d47;
  color: #fff;
  border-color: #2a1a12;
  box-shadow: 2px 2px 0 #2a1a12;
}

.btn-validate:hover {
  background: #276b3c;
}

.btn-validate:disabled {
  opacity: 1;
  background: #fff6ea;
  color: #2f7d47;
}

.result-by {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.result-by:empty {
  display: none;
}

.today {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: -0.5rem 0 1.75rem;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #2f7d47;
  color: #fff;
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.today-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.today-text {
  flex: 1;
  min-width: 0;
}

.today-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.today-name {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.today-meta {
  font-size: 0.85rem;
  opacity: 0.85;
}

.today .btn-ghost {
  background: #fff6ea;
  color: #2a1a12;
  border-color: #2a1a12;
  box-shadow: 2px 2px 0 #2a1a12;
}

.presence {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.presence.online .presence-dot {
  background: #37b24d;
  box-shadow: 0 0 0 0 rgb(55 178 77 / 0.6);
  animation: pulse 2s infinite;
}

.presence.offline .presence-dot {
  background: var(--danger);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgb(55 178 77 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(55 178 77 / 0);
  }
}

.nickname {
  margin-top: 0.75rem;
  font-weight: 600;
}

.history {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.history li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.history li.is-today {
  outline: 2px solid #2f7d47;
}

.history-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.history-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-by {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.history .icon-btn {
  padding: 0.1rem 0.35rem;
  font-size: 0.85rem;
}

#meals-empty {
  margin-top: 0.5rem;
}

/* ── Tier list ──────────────────────────────────────────── */
.tierlist {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.tier {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 84px;
}

.tier + .tier {
  border-top: 2px solid var(--border);
}

.tier-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--tier-color);
  color: #2a1a12;
  border-right: 2px solid var(--border);
  text-align: center;
}

.tier-name {
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tier-name.long {
  font-size: 1rem;
}

.tier-edit {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #2a1a12;
  background: #fff6ea;
  color: #2a1a12;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tier:hover .tier-edit,
.tier-edit:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .tier-edit {
    opacity: 1;
  }
}

.tier-zone {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem;
  padding: 0.6rem;
  min-height: 84px;
  background: var(--bg);
}

.tier-zone:empty::after {
  content: '—';
  color: var(--muted);
  opacity: 0.5;
  align-self: center;
  padding-left: 0.5rem;
}

.is-editable .tier-zone:empty::after {
  content: 'Glisse une adresse ici';
  font-size: 0.9rem;
}

.pool {
  margin-top: 1.75rem;
}

.pool-zone {
  margin-top: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}

.spot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  max-width: 100%;
  user-select: none;
}

.is-editable .spot {
  cursor: grab;
}

.spot-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.spot-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot.is-out {
  opacity: 0.55;
  border-style: dashed;
}

.spot.is-out .spot-name {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.spot-ghost {
  opacity: 0.35;
}

.spot-chosen {
  box-shadow: var(--shadow);
}

.spot-drag {
  transform: rotate(3deg);
}

.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Gestion ────────────────────────────────────────────── */
.manage-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.manage-grid .card-title,
.manage-layout > .card > .card-title {
  margin-bottom: 0.75rem;
}

.add-spot {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.emoji-input {
  text-align: center;
  font-size: 1.3rem;
  padding: 0.35rem;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar .input {
  width: 12rem;
}

.spot-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spot-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.spot-row.is-out .input:not(.emoji-input) {
  color: var(--muted);
}

.spot-row .emoji-input {
  padding: 0.25rem;
  font-size: 1.2rem;
}

.spot-row .input {
  padding-block: 0.4rem;
}

.badge-slot {
  display: inline-flex;
  min-width: 0;
}

.spot-row .tier-badge {
  font-size: 0.8rem;
  text-align: center;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-badge.none {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  border-color: var(--border);
  font-weight: 600;
}

/* Interrupteur */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.switch input {
  appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.15s ease;
}

.switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: transform 0.15s ease;
}

.switch input:checked {
  background: var(--basil);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.user-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.user-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 700;
}

/* ── Dialogs ────────────────────────────────────────────── */
.dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-color);
}

.dialog::backdrop {
  background: rgb(20 10 5 / 0.45);
  backdrop-filter: blur(2px);
}

.dialog h2 {
  font-size: 1.5rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink);
}

.color-input {
  width: 40px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.tier-dialog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px dashed var(--surface-2);
}

.tier-dialog-tools .btn-danger {
  margin-left: auto;
}

/* ── Toasts ─────────────────────────────────────────────── */
.toasts {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  animation: toast-in 0.25s ease-out;
}

.toast.error {
  background: var(--danger);
  color: #fff;
}

.toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .wheel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .tabs {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .account {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .tabs a {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
  }

  .tier {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .tier-name {
    font-size: 1.15rem;
  }

  .add-spot {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .add-spot .check {
    justify-self: start;
  }

  .add-spot .btn {
    justify-self: end;
  }

  .toolbar,
  .toolbar .input {
    width: 100%;
  }

  .spot-row {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
  }

  .spot-row .del {
    grid-row: 1;
    grid-column: 3;
  }

  .spot-row .badge-slot {
    grid-row: 2;
    grid-column: 1 / 3;
    justify-self: start;
    padding-left: 0.25rem;
  }

  .spot-row .switch {
    grid-row: 2;
    grid-column: 3;
  }

  .account .btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .account-name {
    display: none;
  }
}
