/* ThatcherDelivery — app-specific styles. Everything shared lives in kit/kit.css.
   Tint: a calm blue (the family's earlier pastel-blue choice, deepened enough for white text on buttons). */
:root { --tk-tint-light: #3B7FC4; --tk-tint-dark: #6FA3D8; }

.dl-signin-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 32px 28px; }
.dl-signin-head img { border-radius: 18px; margin-bottom: 10px; }
.dl-signin-head h1, .dl-signin-head p { margin: 0; }
.dl-signin-error { color: var(--tk-red); min-height: 1.2rem; }
.dl-offline, .dl-hud {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(var(--tk-safe-t) + 6px);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-size: 0.765rem; font-weight: 600; color: var(--tk-label-2);
  display: flex; align-items: center; gap: 6px;
}
.dl-offline .tk-icon { width: 14px; height: 14px; }
.dl-offline[hidden] { display: none; }
.dl-hud { top: auto; bottom: calc(var(--tk-safe-b) + 96px); font-size: 0.882rem; color: var(--tk-label); padding: 10px 18px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--tk-ease); transform: translate(-50%, 8px); }
.dl-hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.dl-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.dl-seg { margin: 0 var(--tk-margin) 16px; }
.dl-seg .tk-segmented { width: 100%; }

/* Wallet › Orders cards */
.dl-cards { display: grid; gap: 12px; margin: 0 var(--tk-margin); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.dl-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-radius: var(--tk-r-card); background: var(--tk-bg-cell); text-align: left; color: var(--tk-label); transition: transform .2s var(--tk-ease); }
@media (prefers-reduced-motion: no-preference) { .dl-card:active { transform: scale(.98); } }
.dl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.dl-card-from { display: inline-flex; align-items: center; gap: 6px; font-size: 0.882rem; font-weight: 600; color: var(--tk-label-2); }
.dl-card-from .tk-icon { width: 15px; height: 15px; color: var(--tk-green); }
.dl-card-title { font-size: 1.41rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.dl-card-sub { font-size: 0.941rem; color: var(--tk-label-2); }
.dl-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.dl-progress span { height: 6px; border-radius: 3px; background: var(--tk-fill-3); }
.dl-progress span.is-on { background: var(--c); }

/* Detail */
.dl-hero { margin: 4px var(--tk-margin) 24px; padding: 0 4px; }
.dl-hero h1, .dl-hero p { margin: 0; }
.dl-hero-from { margin-bottom: 2px !important; }
.dl-hero-status { margin-top: 6px !important; font-weight: 600; }
.dl-hero .dl-progress { margin-top: 14px; }
.dl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; font-size: 0.706rem; color: var(--tk-label-3); }
.dl-steps span.is-on { color: var(--tk-label); font-weight: 600; }
.dl-timeline .tk-row { gap: 12px; align-items: flex-start; }
.dl-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--tk-fill-2, var(--tk-label-3)); }
.dl-timeline .is-latest .dl-dot { background: var(--tk-tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tk-tint) 22%, transparent); }
.dl-timeline .is-latest .tk-row-title { font-weight: 600; }
