/* Appily-OneHundred account ONLY — Dispatch Stub
   Scoped to body.page-a100-dispatch · shared Typebar via shell-head
   Never a36-account.css / peer account sheets / nameplate blotter rail */

body.page-a100-dispatch {
  --ds-ink: var(--a100-ink, #182030);
  --ds-field: var(--a100-field, #FFF0E4);
  --ds-field-2: var(--a100-field-2, #FFE4D0);
  --ds-accent: var(--a100-accent, #E8330C);
  --ds-accent-deep: var(--a100-accent-deep, #A8240A);
  --ds-secondary: var(--a100-secondary, #008F82);
  --ds-secondary-deep: var(--a100-secondary-deep, #005F58);
  --ds-bloom: var(--a100-bloom, #FFC933);
  --ds-bloom-ink: var(--a100-bloom-ink, #2E2400);
  --ds-surface: var(--a100-surface, #FFFFFF);
  --ds-mute: var(--a100-mute, #3E4A5C);
  --ds-text: var(--a100-text, #141820);
  --ds-shadow: var(--a100-shadow-hard, 5px 5px 0 #182030);
  --ds-font-display: var(--a100-font-display, "Grandstander", system-ui, sans-serif);
  --ds-font-body: var(--a100-font-body, "Commissioner", system-ui, sans-serif);
  background:
    radial-gradient(ellipse 55% 40% at 90% 8%, rgba(255, 201, 51, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 35% at 8% 70%, rgba(0, 143, 130, 0.1), transparent 55%),
    linear-gradient(165deg, var(--ds-field) 0%, var(--ds-field-2) 100%);
}

body.page-a100-dispatch .ds-main {
  padding-block: var(--a100-space-4, 32px) var(--a100-space-6, 64px);
}
body.page-a100-dispatch .ds-stage {
  min-height: 280px;
}
body.page-a100-dispatch #accountLoggedOut,
body.page-a100-dispatch #accountLoggedIn {
  animation: ds-fade 0.35s ease;
}
@keyframes ds-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

body.page-a100-dispatch .ds-mast { margin-bottom: 28px; max-width: 40rem; }
body.page-a100-dispatch .ds-kicker {
  margin: 0 0 8px;
  font-family: var(--ds-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-secondary-deep);
}
body.page-a100-dispatch .ds-mast h1 {
  margin: 0 0 10px;
  font-family: var(--ds-font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ds-ink);
  letter-spacing: -0.02em;
}
body.page-a100-dispatch .ds-mast h1 em {
  font-style: normal;
  color: var(--ds-accent);
}
body.page-a100-dispatch .ds-lede {
  margin: 0;
  color: var(--ds-mute);
  max-width: 40ch;
}

body.page-a100-dispatch .ds-loading {
  padding: 14px 18px;
  border: 2px solid var(--ds-ink);
  background: var(--ds-bloom);
  color: var(--ds-bloom-ink);
  font-family: var(--ds-font-display);
  font-weight: 700;
  box-shadow: var(--ds-shadow);
  margin-bottom: 20px;
}

/* ——— Signed-out: ticket + right stubs + stamp CTA ——— */
body.page-a100-dispatch .ds-gate {
  display: grid;
  gap: 0;
  max-width: 560px;
  margin-inline: auto;
}

body.page-a100-dispatch .ds-ticket-body {
  padding: 28px 24px 24px;
  min-width: 0;
}
body.page-a100-dispatch .ds-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  background: var(--ds-surface);
  border: 3px solid var(--ds-ink);
  box-shadow: var(--ds-shadow);
  position: relative;
  overflow: hidden;
}
body.page-a100-dispatch .ds-ticket-brand {
  margin: 0 0 14px;
  font-family: var(--ds-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-secondary-deep);
}
body.page-a100-dispatch .auth-split-panel h2 {
  margin: 0 0 6px;
  font-family: var(--ds-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ds-ink);
}
body.page-a100-dispatch .auth-split-panel .lead {
  margin: 0 0 18px;
  color: var(--ds-mute);
  font-size: 0.95rem;
}
body.page-a100-dispatch .auth-split-panel[hidden] { display: none !important; }

/* Right-edge perforated stubs (mode switch — not top tabs / left pedals) */
body.page-a100-dispatch .ds-stubs {
  display: flex;
  flex-direction: column;
  background: var(--ds-field-2);
  padding: 10px 8px;
  gap: 8px;
  border-left: 2px dashed rgba(24, 32, 48, 0.28);
}
body.page-a100-dispatch .ds-stub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 2px solid var(--ds-ink);
  background: var(--ds-surface);
  color: var(--ds-ink);
  cursor: pointer;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 4px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
body.page-a100-dispatch .ds-stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.page-a100-dispatch .ds-stub:hover,
body.page-a100-dispatch .ds-stub:focus-visible {
  background: var(--ds-bloom);
  outline: none;
  transform: translateX(-3px);
}
body.page-a100-dispatch .ds-stub.is-active {
  background: var(--ds-accent);
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 3px 0 0 var(--ds-ink);
}

/* Form + circular stamp right-aligned under fields (not left under-field primary) */
body.page-a100-dispatch .ds-form--stamp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
body.page-a100-dispatch .ds-form-fields {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
body.page-a100-dispatch .ds-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ds-ink);
}
body.page-a100-dispatch .ds-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ds-ink);
  background: #FFFBF5;
  font: inherit;
  font-weight: 500;
  color: var(--ds-text);
  border-radius: 0;
}
body.page-a100-dispatch .ds-field input:focus {
  outline: 3px solid var(--ds-bloom);
  outline-offset: 1px;
  background: #fff;
}

body.page-a100-dispatch .ds-stamp {
  position: relative;
  width: 100px;
  height: 100px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: 2px;
}
body.page-a100-dispatch .ds-stamp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, var(--ds-accent) 0 10deg, var(--ds-accent-deep) 10deg 20deg);
  box-shadow: 0 0 0 3px var(--ds-ink), 4px 5px 0 rgba(24, 32, 48, 0.2);
  transition: transform 0.15s ease;
  pointer-events: none;
}
body.page-a100-dispatch .ds-stamp-label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70%;
  height: 70%;
  margin: 15% auto;
  border-radius: 50%;
  background: var(--ds-accent);
  border: 2px solid #5C0E06;
  color: #fff;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: center;
  padding: 4px;
  letter-spacing: 0.02em;
}
body.page-a100-dispatch .ds-stamp:hover .ds-stamp-ring,
body.page-a100-dispatch .ds-stamp:focus-visible .ds-stamp-ring {
  transform: scale(0.94) rotate(-8deg);
}
body.page-a100-dispatch .ds-stamp:focus-visible {
  outline: 3px solid var(--ds-bloom);
  outline-offset: 4px;
  border-radius: 50%;
}
body.page-a100-dispatch .ds-stamp:disabled {
  cursor: wait;
  opacity: 0.75;
}
body.page-a100-dispatch .ds-stamp:disabled .ds-stamp-ring {
  transform: none;
}

body.page-a100-dispatch .ds-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid var(--ds-ink);
  background: transparent;
  color: var(--ds-ink);
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
body.page-a100-dispatch .ds-ghost:hover,
body.page-a100-dispatch .ds-ghost:focus-visible {
  background: var(--ds-bloom);
  outline: none;
}
body.page-a100-dispatch .ds-ghost--solid {
  background: var(--ds-secondary);
  color: #fff;
  border-color: var(--ds-ink);
}

body.page-a100-dispatch .ds-forgot { margin-top: 18px; }
body.page-a100-dispatch .ds-fold {
  border-top: 2px dashed rgba(24, 32, 48, 0.25);
  padding-top: 12px;
}
body.page-a100-dispatch .ds-fold summary {
  cursor: pointer;
  font-family: var(--ds-font-display);
  font-weight: 700;
  color: var(--ds-secondary-deep);
  list-style: none;
}
body.page-a100-dispatch .ds-fold summary::-webkit-details-marker { display: none; }
body.page-a100-dispatch .ds-fold[open] summary { margin-bottom: 10px; }
body.page-a100-dispatch .ds-fold .ds-form { display: grid; gap: 10px; }
body.page-a100-dispatch .ds-reset { margin-top: 16px; display: grid; gap: 10px; }
body.page-a100-dispatch .form-subhead {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1rem;
  font-weight: 800;
}

/* Benefits as tear-off BELOW ticket (not side aside) */
body.page-a100-dispatch .ds-perk-stub {
  margin-top: 0;
  padding: 22px 22px 20px;
  background: var(--ds-ink);
  color: #F4F0EA;
  border: 3px solid var(--ds-ink);
  border-top: 0;
  box-shadow: var(--ds-shadow);
  position: relative;
}
body.page-a100-dispatch .ds-perk-perf {
  display: block;
  height: 14px;
  margin: -22px -22px 16px;
  background:
    radial-gradient(circle at 12px 0, transparent 6px, #FFF0E4 6.5px) left top / 24px 14px repeat-x;
  border-bottom: 2px dashed rgba(255, 201, 51, 0.35);
}
body.page-a100-dispatch .ds-perk-stub h3 {
  margin: 0 0 12px;
  font-family: var(--ds-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ds-bloom);
}
body.page-a100-dispatch .ds-perk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
body.page-a100-dispatch .ds-perk-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
}
body.page-a100-dispatch .ds-perk-mark {
  font-family: var(--ds-font-display);
  font-weight: 800;
  color: var(--ds-bloom);
}

/* ——— Signed-in: dropdown sections + bottom tear strip ——— */
body.page-a100-dispatch .ds-desk {
  max-width: 720px;
  margin-inline: auto;
  background: var(--ds-surface);
  border: 3px solid var(--ds-ink);
  box-shadow: var(--ds-shadow);
}

body.page-a100-dispatch .ds-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, var(--ds-field) 0%, var(--ds-surface) 100%);
  border-bottom: 2px solid var(--ds-ink);
}
body.page-a100-dispatch .ds-identity-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-secondary-deep);
}
body.page-a100-dispatch .ds-identity h2 {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--ds-ink);
}

/* Section picker = dropdown (not horizontal blotter rail) */
body.page-a100-dispatch .ds-drawer-pick {
  display: grid;
  gap: 6px;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ds-ink);
}
body.page-a100-dispatch .ds-drawer-pick select {
  min-width: 180px;
  padding: 10px 12px;
  border: 3px solid var(--ds-ink);
  background: var(--ds-bloom);
  color: var(--ds-bloom-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ds-ink);
}
body.page-a100-dispatch .ds-drawer-pick select:focus {
  outline: 3px solid var(--ds-accent);
  outline-offset: 2px;
}

body.page-a100-dispatch .ds-desk-stage { padding: 22px; }
body.page-a100-dispatch .dash-panel { display: none; }
body.page-a100-dispatch .dash-panel.is-active { display: block; }

body.page-a100-dispatch .ds-panel-head { margin-bottom: 16px; }
body.page-a100-dispatch .ds-panel-head h3 {
  margin: 0 0 4px;
  font-family: var(--ds-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ds-ink);
}
body.page-a100-dispatch .ds-panel-head p {
  margin: 0;
  color: var(--ds-mute);
  font-size: 0.9rem;
}
body.page-a100-dispatch .ds-panel-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
body.page-a100-dispatch .ds-chip-link {
  display: inline-flex;
  padding: 8px 12px;
  border: 2px solid var(--ds-ink);
  background: var(--ds-secondary);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.8rem;
}
body.page-a100-dispatch .ds-chip-link:hover,
body.page-a100-dispatch .ds-chip-link:focus-visible {
  background: var(--ds-secondary-deep);
  outline: none;
}

body.page-a100-dispatch .ds-profile.profile-grid,
body.page-a100-dispatch #profileDetails.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
body.page-a100-dispatch .profile-item {
  padding: 12px 14px;
  border: 2px solid var(--ds-ink);
  background: var(--ds-field);
}
body.page-a100-dispatch .profile-item .k {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-secondary-deep);
  margin-bottom: 4px;
}
body.page-a100-dispatch .profile-item .v {
  font-family: var(--ds-font-display);
  font-weight: 700;
  color: var(--ds-ink);
  word-break: break-word;
}
body.page-a100-dispatch .profile-item .v.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

body.page-a100-dispatch .order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 2px dashed rgba(24, 32, 48, 0.2);
}
body.page-a100-dispatch .order-row .mini-copy {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--ds-mute);
}
body.page-a100-dispatch .order-row .btn,
body.page-a100-dispatch .order-row .btn-soft {
  display: inline-flex;
  padding: 8px 12px;
  border: 2px solid var(--ds-ink);
  background: var(--ds-bloom);
  color: var(--ds-bloom-ink) !important;
  text-decoration: none !important;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.8rem;
}

body.page-a100-dispatch #profileVerifyNotice .notice,
body.page-a100-dispatch #profileVerifyNotice.notice {
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 2px solid var(--ds-ink);
  font-weight: 600;
}
body.page-a100-dispatch #profileVerifyNotice.success,
body.page-a100-dispatch .notice.success {
  background: #D8F0E4;
  color: var(--ds-secondary-deep);
}
body.page-a100-dispatch #profileVerifyNotice.warning,
body.page-a100-dispatch .notice.warning {
  background: #FFE8D4;
  color: var(--ds-accent-deep);
}

/* Bottom tear strip — Sign out / resend (not identity top-right) */
body.page-a100-dispatch .ds-tear {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 22px 22px 18px;
  background: var(--ds-ink);
  color: #F4F0EA;
  position: relative;
}
body.page-a100-dispatch .ds-tear-perf {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  background:
    radial-gradient(circle at 12px 0, transparent 6px, var(--ds-surface) 6.5px) left top / 24px 12px repeat-x;
}
body.page-a100-dispatch .ds-tear-btn {
  border: 2px solid rgba(255, 246, 238, 0.45);
  background: transparent;
  color: #FFF6EE;
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 12px;
  cursor: pointer;
}
body.page-a100-dispatch .ds-tear-btn:hover,
body.page-a100-dispatch .ds-tear-btn:focus-visible {
  background: var(--ds-bloom);
  color: var(--ds-bloom-ink);
  border-color: var(--ds-bloom);
  outline: none;
}
body.page-a100-dispatch .ds-tear-btn--exit {
  border-color: var(--ds-accent);
  color: #FFB4A4;
}
body.page-a100-dispatch .ds-tear-btn--exit:hover,
body.page-a100-dispatch .ds-tear-btn--exit:focus-visible {
  background: var(--ds-accent);
  color: #fff;
  border-color: var(--ds-accent);
}
body.page-a100-dispatch .ds-tear-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}
body.page-a100-dispatch .ds-tear-link {
  color: var(--ds-bloom) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
}
body.page-a100-dispatch .ds-tear-link:hover,
body.page-a100-dispatch .ds-tear-link:focus-visible {
  border-bottom-color: var(--ds-bloom);
  color: #FFE08A !important;
  outline: none;
}

/* Toast from store-auth */
body.page-a100-dispatch .toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 3px solid var(--ds-ink);
  background: var(--ds-bloom);
  color: var(--ds-bloom-ink);
  font-weight: 700;
  box-shadow: var(--ds-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.page-a100-dispatch .toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
body.page-a100-dispatch .toast.error {
  background: #FFB4A4;
  color: var(--ds-accent-deep);
}
body.page-a100-dispatch .toast.success {
  background: #9FE0D8;
  color: var(--ds-secondary-deep);
}
body.page-a100-dispatch .toast.warning {
  background: #FFE08A;
  color: var(--ds-bloom-ink);
}

@media (max-width: 640px) {
  body.page-a100-dispatch .ds-ticket {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  body.page-a100-dispatch .ds-stubs {
    flex-direction: row;
    border-left: 0;
    border-top: 2px dashed rgba(24, 32, 48, 0.28);
    min-height: 0;
  }
  body.page-a100-dispatch .ds-stub {
    min-height: 52px;
  }
  body.page-a100-dispatch .ds-stub span {
    writing-mode: horizontal-tb;
    transform: none;
  }
  body.page-a100-dispatch .ds-stub.is-active,
  body.page-a100-dispatch .ds-stub:hover {
    transform: translateY(-3px);
  }
  body.page-a100-dispatch .ds-stamp {
    align-self: center;
  }
  body.page-a100-dispatch .ds-tear-links {
    margin-left: 0;
    width: 100%;
  }
  body.page-a100-dispatch .ds-identity {
    flex-direction: column;
    align-items: stretch;
  }
  body.page-a100-dispatch .ds-drawer-pick select {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-a100-dispatch .ds-stamp-ring,
  body.page-a100-dispatch .ds-stub,
  body.page-a100-dispatch .toast {
    transition: none;
  }
}
