/* Alinhado ao Material 3 / app (roxo primary ~ #6650a4) */
:root {
  --md-sys-color-primary: #6650a4;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-surface: #fffbfe;
  --md-sys-color-surface-container: #f3edf7;
  --md-sys-color-surface-container-high: #ece6f0;
  --md-sys-color-on-surface: #1c1b1f;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-outline: #79747e;
  --danger: #b3261e;
  --ok: #1b5e20;
  --font: "Roboto", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: linear-gradient(165deg, #f6f0ff 0%, #fffbfe 40%, #ede7f6 100%);
  color: var(--md-sys-color-on-surface);
}

.top-bar {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 500;
}

.shop-badge {
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.card {
  background: var(--md-sys-color-surface);
  border-radius: 16px;
  padding: 20px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 80, 164, 0.12);
}

.title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.lead {
  margin: 0 0 20px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Página inicial — lista de barbearias */
.landing-hero {
  padding-top: 28px;
  padding-bottom: 28px;
}

.landing-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-sys-color-primary);
}

.landing-title {
  margin-bottom: 12px;
}

.landing-lead {
  margin-bottom: 24px;
}

.landing-extra {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(102, 80, 164, 0.12);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.landing-block {
  margin: 0;
}

.landing-block-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.landing-block p {
  margin: 0 0 12px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.55;
  font-size: 0.94rem;
}

.landing-block p:last-child {
  margin-bottom: 0;
}

.landing-contact-actions {
  margin: 16px 0 12px;
}

.landing-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-contact-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.landing-contact-email-line {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.landing-search-wrap input[type="search"] {
  font-size: 1.05rem;
}

.landing-loading {
  margin: 12px 0 8px;
  min-height: 1.25em;
}

.landing-loading.err {
  color: var(--danger);
}

.landing-empty {
  margin: 12px 0 0;
}

.shop-directory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.shop-pick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(102, 80, 164, 0.2);
  background: var(--md-sys-color-surface-container);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.shop-pick-card:hover {
  background: var(--md-sys-color-surface-container-high);
  border-color: rgba(102, 80, 164, 0.45);
  box-shadow: 0 2px 8px rgba(102, 80, 164, 0.12);
}

.shop-pick-card:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.shop-pick-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.shop-pick-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
}

.shop-pick-url {
  font-size: 0.78rem;
  color: var(--md-sys-color-on-surface-variant);
  word-break: break-all;
}

.shop-pick-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

.landing-advanced {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 80, 164, 0.15);
}

.landing-advanced-summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.landing-advanced-summary:hover {
  color: var(--md-sys-color-primary);
}

.landing-advanced-hint {
  margin-top: 12px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
}

.subsection-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.agenda-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
}

.day-agenda-host {
  min-height: 2rem;
}

.day-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-agenda-row {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid rgba(102, 80, 164, 0.1);
}

.day-agenda-row.is-free {
  opacity: 0.85;
}

.day-agenda-row.is-past {
  opacity: 0.9;
  border-style: dashed;
}

.agenda-badge-past {
  background: rgba(73, 69, 79, 0.18);
  color: var(--md-sys-color-on-surface-variant);
}

.day-agenda-past-hint {
  flex: 1 1 100%;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
}

.day-agenda-row.is-scheduled {
  border-color: rgba(102, 80, 164, 0.35);
}

.day-agenda-row.is-progress {
  border-color: rgba(25, 118, 210, 0.45);
  background: rgba(25, 118, 210, 0.06);
}

.day-agenda-row.is-done {
  border-color: rgba(27, 94, 32, 0.35);
  background: rgba(27, 94, 32, 0.06);
}

.day-agenda-row.is-lunch {
  border-color: rgba(121, 116, 126, 0.45);
  background: rgba(121, 116, 126, 0.1);
}

.agenda-badge-lunch {
  background: rgba(121, 116, 126, 0.25);
  color: var(--md-sys-color-on-surface-variant);
}

.day-agenda-lunch-sub {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.35;
}

.day-agenda-service {
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}

.day-agenda-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--md-sys-color-primary);
}

.day-agenda-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agenda-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
}

.agenda-badge-free {
  background: rgba(121, 116, 126, 0.2);
  color: var(--md-sys-color-on-surface-variant);
}

.agenda-badge-scheduled {
  background: rgba(102, 80, 164, 0.2);
  color: var(--md-sys-color-primary);
}

.agenda-badge-progress {
  background: rgba(25, 118, 210, 0.2);
  color: #1565c0;
}

.agenda-badge-done {
  background: rgba(27, 94, 32, 0.2);
  color: var(--ok);
}

.day-agenda-name {
  font-weight: 500;
  flex: 1;
  min-width: 120px;
}

.muted {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

input:focus,
select:focus {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 1px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 2px 4px rgba(102, 80, 164, 0.35);
}

.btn-filled:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-filled:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 2px solid var(--md-sys-color-primary);
}

.btn-outline:hover {
  background: rgba(102, 80, 164, 0.08);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.landing-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.landing-primary-btn {
  flex: 1 1 200px;
}

.landing-secondary-btn {
  flex: 1 1 200px;
}

.login-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 80, 164, 0.15);
}

.landing-login-actions {
  margin-top: 8px;
}

.find-stub {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(102, 80, 164, 0.15);
}

.find-stub .btn {
  margin-top: 12px;
}

.find-shop-intro {
  margin: 0 0 16px;
  line-height: 1.5;
}

.find-shop-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.find-shop-field {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 0;
}

.find-shop-submit {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.find-shop-status {
  margin: 8px 0 12px;
  min-height: 1.25em;
}

.find-shop-status.err {
  color: var(--danger);
}

.find-shop-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.find-shop-result-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(102, 80, 164, 0.2);
  background: var(--md-sys-color-surface-container);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.find-shop-result-btn:hover {
  background: var(--md-sys-color-surface-container-high);
  border-color: rgba(102, 80, 164, 0.45);
  box-shadow: 0 2px 8px rgba(102, 80, 164, 0.1);
}

.find-shop-result-btn strong {
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
}

.find-shop-result-url {
  font-size: 0.78rem;
  color: var(--md-sys-color-on-surface-variant);
  word-break: break-all;
}

.find-shop-back {
  margin-top: 4px;
}

.find-shop-nearby {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 16px 0 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(102, 80, 164, 0.12);
}

.find-shop-radius-field {
  flex: 0 1 140px;
  margin-bottom: 0;
}

.find-shop-radius {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  font-family: inherit;
  font-size: 1rem;
}

.find-nearby-btn {
  flex: 1 1 200px;
}

.find-shop-result-dist {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
}

.find-shop-result-addr {
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.35;
}

.owner-location-hint {
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 0.88rem;
}

.owner-location-hint code {
  font-size: 0.8rem;
}

.owner-address-textarea {
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.owner-location-map {
  width: 100%;
  height: 240px;
  margin: 12px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  overflow: hidden;
  background: var(--md-sys-color-surface-container-high);
}

.owner-location-note {
  margin-top: 12px;
  font-size: 0.88rem;
}

.owner-portal-head .owner-portal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.owner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}

.owner-tab {
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
}

.owner-tab:hover {
  background: var(--md-sys-color-surface-container-high);
}

.owner-tab.is-active {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
}

.owner-panel {
  margin-bottom: 16px;
}

.owner-list {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-list-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid rgba(102, 80, 164, 0.1);
  font-weight: 500;
}

.owner-form-title {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.owner-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.owner-input-grow {
  flex: 1 1 200px;
  min-width: 160px;
}

.owner-service-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.owner-service-form-add .owner-svc-field {
  flex: 1 1 140px;
  min-width: 120px;
  margin-bottom: 0;
}

.owner-svc-field-narrow {
  flex: 0 1 140px;
  max-width: 180px;
}

.owner-svc-field input {
  width: 100%;
  box-sizing: border-box;
}

.owner-service-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid rgba(102, 80, 164, 0.1);
}

.owner-service-edit-row .owner-svc-field {
  flex: 1 1 140px;
  min-width: 120px;
  margin-bottom: 0;
}

.owner-service-edit-row .owner-svc-save {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.owner-service-form input {
  flex: 1 1 120px;
  min-width: 100px;
}

.owner-agenda-barber-field {
  margin-bottom: 14px;
}

.owner-agenda-barber-select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  font-family: inherit;
  font-size: 1rem;
  background: var(--md-sys-color-surface);
  cursor: pointer;
}

.owner-date-field {
  max-width: 220px;
  margin-bottom: 16px;
}

.owner-agenda-board {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.owner-agenda-board--single {
  flex-direction: column;
}

.owner-agenda-board--single .owner-agenda-col {
  max-width: 100%;
  flex: 1 1 auto;
}

.owner-agenda-col {
  flex: 1 1 280px;
  max-width: 340px;
  border: 1px solid rgba(102, 80, 164, 0.15);
  border-radius: 14px;
  padding: 12px;
  background: var(--md-sys-color-surface-container);
}

.owner-agenda-col h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.owner-agenda-delay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.owner-agenda-delay button {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  cursor: pointer;
}

.owner-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.owner-slot-actions button {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  cursor: pointer;
}

.owner-slot-actions button.danger {
  color: var(--danger);
  border-color: rgba(179, 38, 30, 0.4);
}

.owner-finance-total {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  margin: 12px 0 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-wide {
  max-width: 560px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.owner-barbers-hint,
.owner-agenda-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.owner-barbers-list {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owner-barber-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid rgba(102, 80, 164, 0.12);
}

.owner-barber-card-main {
  flex: 1;
  min-width: 0;
}

.owner-barber-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--md-sys-color-on-surface);
}

.owner-barber-card-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
}

.owner-agenda-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.owner-agenda-col-head h4 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
  min-width: 120px;
}

.owner-barber-edit-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.owner-barber-edit-dialog > .field {
  margin-bottom: 12px;
}

.owner-barber-edit-days {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.owner-day-edit-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid rgba(102, 80, 164, 0.1);
}

.owner-day-edit-card .field {
  margin-bottom: 0;
  gap: 6px;
}

.owner-day-edit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.owner-day-edit-top strong {
  font-size: 0.95rem;
}

.owner-day-work-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.owner-day-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.owner-day-edit-fields[hidden] {
  display: none !important;
}

.owner-day-fullrow {
  grid-column: 1 / -1;
}

.owner-day-copy {
  margin-top: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  background: none;
  border: none;
  color: var(--md-sys-color-primary);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.owner-day-copy:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid transparent;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(102, 80, 164, 0.08);
  border-color: rgba(102, 80, 164, 0.2);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
}

.phone-privacy-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot {
  min-width: 76px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface-container);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
}

.slot:hover {
  background: var(--md-sys-color-surface-container-high);
}

.slot.selected {
  border-color: var(--md-sys-color-primary);
  background: rgba(102, 80, 164, 0.12);
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

.slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fee-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--md-sys-color-on-surface-variant);
}

.hint {
  font-size: 0.8rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.45;
  margin-top: 8px;
}

.hint code {
  font-size: 0.85em;
  background: var(--md-sys-color-surface-container);
  padding: 2px 6px;
  border-radius: 6px;
}

.msg {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.25em;
  color: var(--ok);
  line-height: 1.45;
  word-break: break-word;
  max-width: 100%;
}

.msg.err {
  color: var(--danger);
  white-space: pre-wrap;
}

.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 720px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
