:root {
  --blue: #0368b8;
  --blue-dark: #024b86;
  --ink: #172033;
  --muted: #64748b;
  --line: #d6dde8;
  --surface: #ffffff;
  --tile: #f1e7d8;
  --tile-border: #ba9e7c;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 14px calc(18px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  max-width: 540px;
  margin: 0 auto;
  padding-top: 18px;
}

.screen.active {
  display: block;
}

.login-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.login-identity {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 0 18px;
  text-align: center;
}

.login-identity .brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--blue);
  color: white;
  font-size: 42px;
}

.login-identity h1 {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.login-identity p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.login-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.login-user-tile {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 17px;
  text-align: center;
  line-height: 1.15;
}

.login-user-tile span {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.login-empty {
  grid-column: 1 / -1;
  margin-top: 0;
  text-align: center;
  font-weight: 800;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 0 28px;
}

.app-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0 16px;
}

.compact-heading {
  padding-bottom: 8px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 32px;
}

h1,
h2,
p {
  margin: 0;
}

.brand h1 {
  font-size: 32px;
  line-height: 1;
}

.app-heading h1 {
  color: var(--blue);
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
}

.app-heading p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  vertical-align: middle;
}

.brand p,
.topbar span,
.panel p {
  color: var(--muted);
}

.field {
  display: block;
  margin: 14px 0;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
}

.primary,
.ghost,
.tile,
.searchbar button,
.qty button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  width: 100%;
  min-height: 56px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  margin-top: 14px;
}

.close-app {
  margin-top: 22px;
  background: #374151;
}

.closed-screen {
  min-height: calc(100vh - 70px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.closed-screen .brand-mark {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  font-size: 46px;
}

.closed-screen h1 {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.closed-screen p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.ghost {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  background: #e7eef7;
  color: var(--blue-dark);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 18px;
}

.topbar div {
  display: grid;
  gap: 2px;
}

.user-pill {
  margin-left: auto;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 8px 13px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.screen-title {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile {
  min-height: 92px;
  border: 2px solid var(--tile-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--tile);
  color: #3a2a1e;
  text-align: left;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-tile {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  border-color: var(--blue-dark);
  background: var(--blue);
  color: white;
  font-size: 18px;
  letter-spacing: 0;
}

.menu-tile-badged {
  padding-right: 58px;
}

.menu-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 36px;
  height: 36px;
  border: 3px solid white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.menu-badge[hidden] {
  display: none;
}

.empty-tile {
  opacity: 0.46;
  color: white;
}

.disabled-tile {
  opacity: 0.42;
  filter: grayscale(1);
  cursor: not-allowed;
}

.list-tile-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.course-tile {
  position: relative;
  width: 100%;
  min-height: 184px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  background: #eaf4ff;
  color: var(--blue-dark);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.type-badge {
  position: static;
  justify-self: start;
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: white;
  color: var(--blue-dark);
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.course-tile[data-type-liste="LIBRAIRIE"] .type-badge {
  border-color: white;
  color: var(--blue-dark);
}

.course-tile[data-type-liste="TABAC"] .type-badge {
  border-color: var(--danger);
  color: var(--danger);
}

.course-title {
  font-weight: 900;
  font-size: 23px;
}

.course-main {
  grid-column: 1 / -1;
  min-height: 50px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 0;
  color: var(--blue-dark);
  text-align: left;
}

.course-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.supplier-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.course-count {
  justify-self: end;
  border-radius: 999px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  padding: 8px 11px;
  white-space: nowrap;
}

.delete-list,
.send-list {
  height: 38px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-list {
  background: white;
  color: var(--danger);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
}

.course-tile .pill {
  background: white;
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

.course-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.send-list {
  background: white;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.coverage-panel {
  margin: 4px 0 12px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fffaf2;
  color: #3a2a1e;
  padding: 10px;
}

.coverage-panel.compact {
  margin: 0 0 26px;
}

.coverage-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 900;
}

.coverage-control {
  display: grid;
  grid-template-columns: 38px 58px 38px;
  gap: 6px;
  align-items: center;
}

.coverage-control button,
.coverage-control input {
  min-height: 38px;
  border-radius: 9px;
  text-align: center;
  font-weight: 900;
}

.coverage-control button {
  border: 0;
  background: var(--blue);
  color: white;
}

.coverage-control input {
  padding: 0 6px;
}

.panel,
.article,
.supplier-group {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px;
}

.searchbar,
.scanbar {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  margin-bottom: 10px;
}

.scanbar {
  grid-template-columns: 1fr 132px;
}

.non-ref-open {
  width: 100%;
  margin: 0 0 26px;
  border: 2px solid #f59e0b;
  background: #f59e0b;
  color: white;
  font-size: 13px;
}

.searchbar button,
.scanbar button {
  border-radius: 10px;
  background: var(--blue);
  color: white;
}

.filter-block {
  margin: 12px 0;
}

.filter-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-picker-button {
  min-height: 62px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: white;
  color: #3a2a1e;
  text-align: left;
}

.filter-picker-button span,
.filter-picker-button strong {
  display: block;
}

.filter-picker-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-picker-button strong {
  margin-top: 3px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-picker-button.active {
  border-width: 2px;
  background: var(--tile);
}

.filter-summary {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.added-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 26px 0 10px;
}

.added-filter button {
  min-height: 38px;
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  background: white;
  color: #3a2a1e;
  font-size: 12px;
  font-weight: 900;
}

.added-filter button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.suggestion-badge {
  border-radius: 10px;
  display: grid;
  gap: 2px;
  align-items: center;
  background: #dbeafe;
  border: 2px solid var(--blue);
  color: var(--blue-dark);
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(3, 104, 184, 0.12);
}

.suggestion-badge span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-badge em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.last-deliveries {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 5px;
}

.last-deliveries span {
  width: 100%;
  min-height: 28px;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--blue-dark);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
}

.last-deliveries b {
  color: var(--muted);
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.38);
}

.modal-backdrop.visible {
  display: flex;
}

.filter-modal {
  width: min(540px, 100%);
  max-height: min(78vh, 620px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  border-radius: 14px;
  background: white;
  padding: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.scan-modal {
  width: min(540px, 100%);
  display: grid;
  gap: 12px;
  border-radius: 14px;
  background: white;
  padding: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.non-ref-modal {
  width: min(540px, 100%);
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: white;
  padding: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.non-ref-qty {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
}

.non-ref-qty button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #e7eef7;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 900;
}

.non-ref-qty input {
  min-height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions .ghost {
  display: inline-flex;
  align-items: center;
}

.filter-modal-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.filter-choice {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.filter-choice.active {
  border: 2px solid var(--tile-border);
  background: var(--tile);
  color: #24180f;
}

.scan-video-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 12px;
  background: #111827;
}

#scanVideo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.scan-target {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 36%;
  height: 28%;
  border: 3px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22);
}

.scan-status {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.article {
  display: grid;
  gap: 8px;
}

.article-section-header {
  margin-top: 34px;
  border-radius: 12px;
  border: 3px solid var(--blue-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--blue-dark);
  color: white;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(3, 104, 184, 0.18);
}

.article-section-header strong {
  min-width: 38px;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  padding: 5px 10px;
  text-align: center;
  font-size: 15px;
}

.article-section-header.basket {
  background: var(--blue-dark);
  color: white;
}

.article-section-header.suggested {
  background: var(--blue-dark);
  color: white;
}

.article-section-header.available {
  background: var(--blue-dark);
  color: white;
}

.article-added {
  background: #eaf4ff;
  border: 5px solid var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 0 0 2px rgba(3, 104, 184, 0.08);
}

.article-added .article-meta,
.article-added .article-title,
.article-added .suggestion-badge em {
  color: var(--blue-dark);
}

.article-added .pill,
.article-added .article-add-button strong {
  background: white;
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
}

.article-added .last-deliveries span {
  background: white;
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
}

.article-added .last-deliveries b {
  color: var(--blue);
}

.article-added .suggestion-badge {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: var(--blue-dark);
}

.article-added .added-label {
  background: white;
  color: var(--blue-dark);
}

.article-added .article-suggestion-chip,
.article-added .primary,
.article-added .qty-label {
  background: white;
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
}

.article-added .article-added-chip {
  min-width: 104px;
}

.article-added .article-added-chip strong {
  font-size: 16px;
  line-height: 1.1;
}

.article-added .qty button {
  background: white;
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
}

.article-added .qty input {
  background: white;
  border-color: #bfdbfe;
  color: var(--blue-dark);
}

.article-available {
  border: 2px dashed #94a3b8;
  box-shadow: none;
}

.article-available .article-add-button {
  background: #5b8fbd;
  color: white;
}

.article-non-reference {
  border-style: solid;
  border-color: #f59e0b;
}

.article-non-reference .article-suggestion-chip {
  background: #f59e0b;
  color: white;
}

.article-non-reference .article-add-button:disabled {
  opacity: 0.75;
  background: white;
  color: var(--blue-dark);
}

.article-title-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.article-title {
  font-weight: 800;
}

.article-suggestion-chip {
  min-width: 64px;
  border-radius: 10px;
  display: grid;
  justify-items: center;
  background: var(--blue);
  color: white;
  padding: 6px 8px;
  box-shadow: 0 4px 12px rgba(3, 104, 184, 0.16);
}

.article-suggestion-chip span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.article-suggestion-chip strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.stock-condition-stack {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  width: max-content;
}

.conditioning {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #f1e7d8;
  border: 1px solid #ba9e7c;
  padding: 3px 7px;
  color: #3a2a1e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.history-conditioning {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #f1e7d8;
  border: 1px solid #ba9e7c;
  color: #3a2a1e;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.unit-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.unit-choice {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.unit-choice span,
.unit-choice strong {
  display: block;
}

.unit-choice span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.unit-choice strong {
  margin-top: 2px;
  color: #3a2a1e;
  font-size: 18px;
}

.unit-choice.active {
  border: 2px solid var(--tile-border);
  background: var(--tile);
}

.pill {
  border-radius: 999px;
  background: #eef2f7;
  padding: 4px 8px;
}

.article-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: end;
}

.article-added .article-actions {
  grid-template-columns: minmax(0, 1fr) 86px 86px;
}

.article-added.article-non-reference .article-actions {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.article-add-button {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  margin-top: 0;
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
  align-self: end;
}

.article-add-button span {
  font-size: 14px;
  font-weight: 900;
}

.article-remove-button {
  min-height: 38px;
  height: 38px;
  align-self: end;
  background: white;
  color: var(--danger);
  border: 1px solid #fecaca;
  font-size: 12px;
}

.article-add-button strong {
  width: calc(100% - 12px);
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 900;
}

.qty {
  display: grid;
  grid-template-columns: 34px minmax(58px, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.qty-suggested {
  grid-template-columns: 34px minmax(58px, 1fr) 34px;
}

.qty-label {
  grid-column: 1 / -1;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 5px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.added-label {
  grid-column: 1 / -1;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 5px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.qty-suggested input {
  border: 3px solid var(--blue);
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 900;
}

.qty button {
  height: 38px;
  border-radius: 8px;
  background: #e7eef7;
  color: var(--blue-dark);
}

.qty input {
  box-sizing: border-box;
  min-width: 58px;
  min-height: 38px;
  padding: 0 4px;
  text-align: center;
}

.supplier-title {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.basket-title {
  margin: 2px 0 12px;
  border-radius: 10px;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  color: #3a2a1e;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 900;
}

.line-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.basket-actions {
  display: grid;
  grid-template-columns: 1fr 58px 112px;
  gap: 8px;
  align-items: center;
}

.basket-actions input {
  min-height: 42px;
}

.danger-text {
  color: var(--danger);
}

.danger-confirm {
  background: var(--danger);
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: none;
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111827;
  color: white;
  text-align: center;
}

.toast.visible {
  display: block;
}
