/* ==========================================================================
   ATP Spedition - Client app (business customers), boards 01-16 + master shell.
   Mobile-first (390 / 430), fluid to any width (no px max-width caps), only --atp-* tokens.
   Prefix: .atp-cl  (shell)  .atp-cl-*  (blocks)
   ========================================================================== */

:root {
    --atp-cl-bar-h: 64px;
    --atp-cl-tabs-h: 64px;
    --atp-cl-gutter: clamp(var(--atp-space-4), 4vw, var(--atp-space-8));
    --atp-cl-touch: 44px;
    --atp-cl-btn-h: 52px;
    --atp-cl-title: clamp(24px, 6.4vw, 28px);
    /* The simple Retail home's round map buttons and its big "Unde livrăm?" field (board 1). */
    --atp-cl-fab: 46px;
    --atp-cl-where-h: 62px;
    /* The simple order's map screens (home, vehicle, searching): the map takes what the sheet leaves, never less. */
    --atp-cl-simple-map-min: clamp(180px, 28dvh, 420px);
    /* How far the white sheet of boards 1, 3 and 4 rides up over the bottom edge of the map above it. */
    --atp-cl-sheet-overlap: var(--atp-space-6);
    /* Board 4's two circles around the pickup while a driver is searched for. */
    --atp-cl-radar-in: 84px;
    --atp-cl-radar-out: 150px;
    /* The sign-in form's deliberate measure: the phone card's own column, kept at every width. */
    --atp-cl-auth-measure: 26rem;
}

.atp-cl-host { min-height: 100vh; min-height: 100dvh; background: var(--atp-bg); }

/* ---- shell ---------------------------------------------------------------- */
.atp-cl {
    display: flex; flex-direction: column;
    min-height: 100vh; min-height: 100dvh;
    width: 100%;
    background: var(--atp-bg); color: var(--atp-text);
    font-family: var(--atp-font-sans);
}
/* The app bar owns the status-bar band (it is painted in the bar's own surface, not in the page background behind
   it) and STAYS there while the page scrolls (sticky, above the content), so scrolled content never shows through the
   status bar; a bar-less screen pads the band itself. */
.atp-cl:not(:has(.atp-cl__bar)) { padding-top: var(--atp-safe-top); }
.atp-cl--tabs { padding-bottom: calc(var(--atp-cl-tabs-h) + var(--atp-safe-bottom)); }
.atp-cl--center { align-items: center; justify-content: center; gap: var(--atp-space-6); }

.atp-cl__bar {
    position: sticky; top: 0; z-index: 20;
    display: grid; grid-template-columns: minmax(var(--atp-cl-touch), auto) 1fr minmax(var(--atp-cl-touch), auto);
    align-items: center; gap: var(--atp-space-2);
    min-height: calc(var(--atp-cl-bar-h) + var(--atp-safe-top)); padding: calc(var(--atp-space-2) + var(--atp-safe-top)) var(--atp-cl-gutter) var(--atp-space-2);
    background: var(--atp-surface);
}
.atp-cl--navy .atp-cl__bar { background: var(--atp-navy); color: var(--atp-primary-contrast); }
.atp-cl--navy .atp-cl__iconbtn { color: var(--atp-primary-contrast); }
.atp-cl__bar-side { display: flex; align-items: center; justify-content: flex-start; }
.atp-cl__bar-side--end { justify-content: flex-end; }
.atp-cl__brand { display: flex; justify-content: center; align-items: center; --atp-logo-h: 46px; }
.atp-cl__brand .atp-brand__logo { height: var(--atp-logo-h); }
.atp-cl__iconbtn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: var(--atp-cl-touch); height: var(--atp-cl-touch); border-radius: var(--atp-radius-btn);
    background: transparent; border: 0; color: var(--atp-heading); cursor: pointer; text-decoration: none;
}
.atp-cl__iconbtn svg { width: 24px; height: 24px; }
.atp-cl__iconbtn:hover { background: var(--atp-surface-2); }
.atp-cl__iconbtn:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl__badge {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--atp-radius-pill); background: var(--atp-danger); color: var(--atp-danger-contrast);
    font-size: var(--atp-text-xs); font-weight: var(--atp-weight-semibold); display: grid; place-items: center;
}

.atp-cl__offline {
    display: flex; align-items: center; gap: var(--atp-space-2);
    margin: var(--atp-space-2) var(--atp-cl-gutter) 0; padding: var(--atp-space-2) var(--atp-space-3);
    border-radius: var(--atp-radius-md); background: var(--atp-warn-soft); color: var(--atp-warn);
    font-size: var(--atp-text-md); font-weight: var(--atp-weight-medium);
}
.atp-cl__offline-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.atp-cl__offline-retry { margin-left: auto; background: none; border: 0; color: inherit; font: inherit; font-weight: var(--atp-weight-semibold); text-decoration: underline; cursor: pointer; min-height: 32px; }

.atp-cl__main {
    flex: 1; width: 100%; display: flex; flex-direction: column; gap: var(--atp-space-4);
    padding: var(--atp-space-3) var(--atp-cl-gutter) var(--atp-space-8);
}
.atp-cl__main:focus { outline: none; }
/* The ONE documented exception to the fluid-full-width rule, and it applies to the sign-in screen alone (client,
   carrier and ops all render AtpAuthScreen, so all three get it): two fields and one button are a typing measure,
   not a layout, and uncapped they were 1267px wide at 1440 and 1728px at 1920, which nobody can aim at or read.
   The column is capped at --atp-cl-auth-measure and centred; the cap is on the border box, so the gutter is added
   back and the CONTENT is exactly the measure at every width. Below it (390 / 430) nothing changes: the column
   stays fully fluid, pixel-identical to the phone master. No other screen sets Measure, so nothing else is capped. */
.atp-cl__main--measure { max-width: calc(var(--atp-cl-auth-measure) + 2 * var(--atp-cl-gutter)); margin-inline: auto; }
.atp-cl__head { display: flex; flex-direction: column; gap: var(--atp-space-1); padding-top: var(--atp-space-2); }
.atp-cl__head--center { text-align: center; align-items: center; }
.atp-cl__title { margin: 0; font-size: var(--atp-cl-title); font-weight: 700; line-height: 1.2; color: var(--atp-heading); letter-spacing: -0.01em; }
.atp-cl__sub { margin: 0; font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: var(--atp-leading-normal); }
.atp-cl__boot-logo { --atp-logo-h: 72px; height: 72px; }
.atp-cl__spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--atp-surface-3); border-top-color: var(--atp-primary);
    animation: atp-cl-spin 0.9s linear infinite;
}
@keyframes atp-cl-spin { to { transform: rotate(360deg); } }

/* bottom tab bar (5 tabs, master shell) */
.atp-cl__tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(5, 1fr);
    min-height: var(--atp-cl-tabs-h); padding: var(--atp-space-1) var(--atp-space-2) calc(var(--atp-space-1) + var(--atp-safe-bottom));
    background: var(--atp-surface); border-top: 1px solid var(--atp-border);
}
.atp-cl__tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: var(--atp-cl-touch); text-decoration: none; color: var(--atp-text-muted);
    font-size: var(--atp-text-xs); font-weight: var(--atp-weight-medium); border-radius: var(--atp-radius-md);
}
.atp-cl__tab svg { width: 24px; height: 24px; }
.atp-cl__tab.is-active { color: var(--atp-primary); }
.atp-cl__tab:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: -2px; }
.atp-cl__tab-fab {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--atp-primary); color: var(--atp-primary-contrast); margin-top: -18px; box-shadow: var(--atp-shadow-md);
}
.atp-cl__tab-fab svg { width: 22px; height: 22px; }

/* ---- primitives ------------------------------------------------------------ */
.atp-cl-form { display: flex; flex-direction: column; gap: var(--atp-space-4); width: 100%; }
.atp-cl-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--atp-space-3); }
.atp-cl-stack { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-section { margin: var(--atp-space-2) 0 0; font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); display: flex; align-items: center; gap: var(--atp-space-2); }
.atp-cl-muted { margin: 0; font-size: var(--atp-text-md); color: var(--atp-text-muted); display: flex; gap: var(--atp-space-2); align-items: center; flex-wrap: wrap; }
.atp-cl-muted svg { width: 18px; height: 18px; }
.atp-cl-help { display: inline-grid; place-items: center; color: var(--atp-text-subtle); }
.atp-cl-help svg { width: 18px; height: 18px; }

/* The client's box is taller and roomier than the console's. It states the inset for a box with NOTHING drawn
   inside it and reads the wrap's own variables for the rest, so a field with the boards' leading glyph, or with the
   sign-in board's reveal, keeps the room that control needs instead of losing it to this shorthand (atp.css, "Form
   fields"). A `padding:` shorthand here silently deleted it. */
.atp-cl .atp-input, .atp-cl .atp-select {
    min-height: 48px; font-size: var(--atp-text-lg); border-radius: var(--atp-radius-btn);
    padding-block: 0;
    padding-inline: var(--atp-field-lead, var(--atp-space-4)) var(--atp-field-trail, var(--atp-space-4));
}
.atp-cl .atp-field__label { font-size: var(--atp-text-md); color: var(--atp-heading); }
.atp-cl .atp-field__error, .atp-cl .atp-field__hint { font-size: var(--atp-text-sm); }

/* Any ops-style button rendered inside the client shell (e.g. AtpEmptyState actions) keeps the 44px+ touch target. */
.atp-cl .atp-empty .atp-btn { min-height: var(--atp-cl-btn-h); height: auto; padding: var(--atp-space-3) var(--atp-space-5); }
.atp-cl .atp-btn.atp-cl-btn {
    min-height: var(--atp-cl-btn-h); height: auto; padding: var(--atp-space-3) var(--atp-space-5);
    font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); gap: var(--atp-space-2);
    white-space: normal; border-radius: var(--atp-radius-btn);
}
.atp-cl .atp-btn.atp-cl-btn svg { width: 20px; height: 20px; flex: none; }
.atp-cl .atp-btn.atp-cl-btn--ghost { --_fg: var(--atp-primary); --_bd: var(--atp-primary); --_bg: var(--atp-surface); box-shadow: none; }
.atp-cl .atp-btn.atp-cl-btn--ghost:hover:not(:disabled) { --_bg: var(--atp-primary-soft); }
.atp-cl .atp-btn.atp-cl-btn--danger { --_fg: var(--atp-danger); --_bd: var(--atp-danger); }
.atp-cl .atp-btn--danger.atp-cl-btn { background: var(--atp-danger); color: var(--atp-danger-contrast); }
.atp-cl .atp-btn.is-disabled { opacity: 0.5; pointer-events: none; }
.atp-cl-actions { display: flex; flex-direction: column; gap: var(--atp-space-3); margin-top: var(--atp-space-2); }

.atp-cl-card {
    display: block; width: 100%; background: var(--atp-surface); border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius-xl); padding: var(--atp-space-4); box-shadow: var(--atp-shadow-sm);
    text-decoration: none; color: inherit; text-align: left; font: inherit;
}
button.atp-cl-card { cursor: pointer; }
.atp-cl-card:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }

.atp-cl-trust { margin: var(--atp-space-2) 0 0; display: flex; gap: var(--atp-space-2); align-items: center; justify-content: center; color: var(--atp-text-muted); font-size: var(--atp-text-md); text-align: center; }
.atp-cl-trust svg { width: 20px; height: 20px; flex: none; }
.atp-cl-alt { margin: 0; text-align: center; font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-alt a { position: relative; color: var(--atp-link); font-weight: var(--atp-weight-semibold); }
/* The alternative links are real controls on a phone, but their text line is only 16px tall. The hit area is
   grown to the 44px touch size around the text instead of padding the line, so the type stays exactly where
   the master puts it; consecutive alt lines are pushed apart so the two areas never overlap. */
.atp-cl-alt a::after {
    content: ""; position: absolute; top: 50%; transform: translateY(-50%);
    left: calc(var(--atp-space-2) * -1); right: calc(var(--atp-space-2) * -1); height: var(--atp-cl-touch);
}
.atp-cl-alt + .atp-cl-alt { margin-top: var(--atp-space-3); }
.atp-cl-check { display: flex; gap: var(--atp-space-3); align-items: flex-start; font-size: var(--atp-text-md); color: var(--atp-text); min-height: var(--atp-cl-touch); }
.atp-cl-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--atp-primary); flex: none; }

/* notices */
.atp-cl-notice {
    display: flex; gap: var(--atp-space-3); align-items: flex-start;
    padding: var(--atp-space-3) var(--atp-space-4); border-radius: var(--atp-radius-lg); border: 1px solid transparent;
}
.atp-cl-notice__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--atp-surface); }
.atp-cl-notice__icon svg { width: 20px; height: 20px; }
.atp-cl-notice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atp-cl-notice__title { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); }
.atp-cl-notice__text { font-size: var(--atp-text-md); line-height: var(--atp-leading-normal); }
.atp-cl-notice--info { background: var(--atp-info-soft); color: var(--atp-heading); }
.atp-cl-notice--info .atp-cl-notice__icon { color: var(--atp-primary); }
.atp-cl-notice--success { background: var(--atp-success-soft); color: var(--atp-heading); }
.atp-cl-notice--success .atp-cl-notice__icon { color: var(--atp-success); }
.atp-cl-notice--success .atp-cl-notice__title { color: var(--atp-success); }
.atp-cl-notice--warn { background: var(--atp-warn-soft); color: var(--atp-heading); }
.atp-cl-notice--warn .atp-cl-notice__icon { color: var(--atp-warn); }
.atp-cl-notice--danger { background: var(--atp-danger-soft); color: var(--atp-danger); }
.atp-cl-notice--danger .atp-cl-notice__icon { color: var(--atp-danger); }

/* error state + skeleton */
.atp-cl-error { display: flex; flex-direction: column; gap: var(--atp-space-3); align-items: center; text-align: center; padding: var(--atp-space-4); border-radius: var(--atp-radius-lg); background: var(--atp-danger-soft); color: var(--atp-danger); }
.atp-cl-error__icon svg { width: 28px; height: 28px; }
.atp-cl-error__msg { font-size: var(--atp-text-md); font-weight: var(--atp-weight-medium); }
.atp-cl-skeleton { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-skeleton__card { border-radius: var(--atp-radius-xl); background: var(--atp-surface); border: 1px solid var(--atp-border); padding: var(--atp-space-4); display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-skeleton__line { height: 14px; border-radius: var(--atp-radius-pill); background: linear-gradient(90deg, var(--atp-surface-2), var(--atp-surface-3), var(--atp-surface-2)); background-size: 200% 100%; animation: atp-cl-shimmer 1.4s linear infinite; }
.atp-cl-skeleton__line--w60 { width: 60%; }
.atp-cl-skeleton__line--w40 { width: 40%; }
@keyframes atp-cl-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .atp-cl-skeleton__line, .atp-cl__spinner, .atp-cl-map__radar span { animation: none; } }
.atp-cl-refreshing { font-size: var(--atp-text-sm); color: var(--atp-text-subtle); text-align: center; }

/* choice tiles / chips / segmented */
.atp-cl-choice {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--atp-space-1);
    min-height: 56px; padding: var(--atp-space-3); width: 100%;
    background: var(--atp-surface); border: 1.5px solid var(--atp-border); border-radius: var(--atp-radius-lg);
    color: var(--atp-heading); font: inherit; cursor: pointer; text-align: center;
    transition: border-color var(--atp-dur-fast) var(--atp-ease), background var(--atp-dur-fast) var(--atp-ease);
}
.atp-cl-choice:disabled { opacity: 0.55; cursor: not-allowed; }
.atp-cl-choice:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-choice.is-selected { border-color: var(--atp-primary); background: var(--atp-primary-soft); }
.atp-cl-choice--fill.is-selected { background: var(--atp-primary); color: var(--atp-primary-contrast); border-color: var(--atp-primary); }
.atp-cl-choice--fill.is-selected .atp-cl-choice__sub { color: var(--atp-primary-contrast); opacity: 0.9; }
.atp-cl-choice__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--atp-info-soft); color: var(--atp-primary); }
.atp-cl-choice__icon svg { width: 26px; height: 26px; }
.atp-cl-choice.is-selected .atp-cl-choice__icon { background: var(--atp-primary); color: var(--atp-primary-contrast); }
.atp-cl-choice__img { width: 100%; max-width: 120px; height: 56px; object-fit: contain; }
.atp-cl-choice__label { font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); line-height: 1.2; }
.atp-cl-choice__sub { font-size: var(--atp-text-sm); color: var(--atp-text-muted); line-height: 1.25; }
.atp-cl-choice__check { position: absolute; top: 6px; right: 6px; color: var(--atp-primary); }
.atp-cl-choice__check svg { width: 20px; height: 20px; }
.atp-cl-choice--chip { min-height: var(--atp-cl-touch); width: auto; padding: var(--atp-space-2) var(--atp-space-4); border-radius: var(--atp-radius-pill); flex-direction: row; }
/* A pill carries a small inline glyph, not the tall tiles' 44px disc (board 03 screen 11). */
.atp-cl-choice--chip .atp-cl-choice__icon { width: auto; height: auto; border-radius: 0; background: none; color: inherit; }
.atp-cl-choice--chip .atp-cl-choice__icon svg { width: 18px; height: 18px; }
.atp-cl-choice--chip.is-selected .atp-cl-choice__icon { background: none; color: inherit; }
.atp-cl-choice--static { cursor: default; }
.atp-cl-choice--veh { border: 0; background: transparent; padding: var(--atp-space-2); }
.atp-cl-choice--veh.is-selected { background: var(--atp-info-soft); }
.atp-cl-chips { display: flex; flex-wrap: wrap; gap: var(--atp-space-2); }
/* The cargo declaration's dimensions/volume switch had no rule at all, so it drew as two 22px browser buttons.
   It is the same segmented control the create flow uses everywhere else, and a real 44px target. */
.atp-cl-seg__btn {
    min-height: var(--atp-cl-touch); padding: var(--atp-space-2) var(--atp-space-4);
    border: 1.5px solid var(--atp-border); border-radius: var(--atp-radius-btn);
    background: var(--atp-surface); color: var(--atp-heading);
    font: inherit; font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); cursor: pointer;
}
.atp-cl-seg__btn.is-on { background: var(--atp-primary); border-color: var(--atp-primary); color: var(--atp-primary-contrast); }
.atp-cl-seg__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.atp-cl-seg__btn:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
/* The registry lookup is a small button in the ops console; on a phone form it is a thumb target like any other. */
.atp-cl .atp-parity-fiscal .atp-btn { min-height: var(--atp-cl-touch); height: auto; }
.atp-cl-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--atp-space-3); }
.atp-cl-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr)); gap: var(--atp-space-3); }
/* Home "Tipuri de vehicule disponibile": an informational list, not a picker (owner decision 2026-10-01). */
.atp-cl-vehlist { list-style: none; margin: 0; padding: 0; }
/* The create chooser draws the shipment types as profile cards that are links. */
a.atp-cl-profile { text-decoration: none; }

/* profile cards (screen 01) */
.atp-cl-profile {
    display: grid; grid-template-columns: 52px 1fr 24px; gap: var(--atp-space-3); align-items: start;
    width: 100%; padding: var(--atp-space-4); background: var(--atp-surface); border: 1.5px solid var(--atp-border);
    border-radius: var(--atp-radius-xl); text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--atp-shadow-sm);
}
.atp-cl-profile.is-selected { border-color: var(--atp-primary); background: var(--atp-info-soft); }
.atp-cl-profile:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-profile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.atp-cl-profile__icon svg { width: 28px; height: 28px; }
.atp-cl-profile__icon--retail { background: var(--atp-info-soft); color: var(--atp-primary); }
/* The board draws the glyph in a disc that stays visible when the card itself turns pale blue on selection. */
.atp-cl-profile.is-selected .atp-cl-profile__icon { background: var(--atp-surface); }
.atp-cl-profile__icon--food { background: var(--atp-success-soft); color: var(--atp-success); }
.atp-cl-profile__body { display: flex; flex-direction: column; gap: var(--atp-space-1); min-width: 0; }
.atp-cl-profile__title { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-profile__desc { font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: 1.35; }
.atp-cl-profile__chev { color: var(--atp-heading); display: grid; place-items: center; height: 100%; }
.atp-cl-profile__chev svg { width: 22px; height: 22px; }
.atp-cl-selected { display: grid; grid-template-columns: 52px 1fr 28px; gap: var(--atp-space-3); align-items: center; padding: var(--atp-space-4); background: var(--atp-info-soft); border: 1.5px solid var(--atp-primary); border-radius: var(--atp-radius-xl); }
.atp-cl-selected__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atp-cl-selected__check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--atp-success); color: var(--atp-primary-contrast); }
.atp-cl-selected__check svg { width: 18px; height: 18px; }

/* account ready (screen 04) */
.atp-cl-ready { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--atp-space-2); padding: var(--atp-space-6) 0; }
.atp-cl-ready__art { position: relative; width: 180px; height: 180px; border-radius: 50%; background: var(--atp-info-soft); display: grid; place-items: center; margin-bottom: var(--atp-space-4); }
.atp-cl-ready__check { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%; background: var(--atp-primary); color: var(--atp-primary-contrast); display: grid; place-items: center; }
.atp-cl-ready__check svg { width: 40px; height: 40px; }
.atp-cl-ready__store { margin-top: 70px; color: var(--atp-primary); }
.atp-cl-ready__store svg { width: 72px; height: 72px; }

/* row cards */
.atp-cl-rowcard { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--atp-space-3); align-items: center; width: 100%; min-height: 64px; }
.atp-cl-rowcard--flat { border: 0; box-shadow: none; padding: var(--atp-space-3) 0; border-radius: 0; }
.atp-cl-card > .atp-cl-rowcard--flat + .atp-cl-rowcard--flat { border-top: 1px solid var(--atp-border); }
.atp-cl-rowcard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--atp-info-soft); color: var(--atp-primary); }
.atp-cl-rowcard__icon svg { width: 24px; height: 24px; }
.atp-cl-rowcard__icon--ok { background: var(--atp-success-soft); color: var(--atp-success); }
.atp-cl-rowcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atp-cl-rowcard__label { font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-rowcard__title { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-rowcard__sub { font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: 1.35; overflow-wrap: anywhere; }
.atp-cl-rowcard__chev { color: var(--atp-heading); display: grid; place-items: center; }
.atp-cl-rowcard__chev svg { width: 22px; height: 22px; }

/* saved location card */
.atp-cl-loc { display: grid; grid-template-columns: 52px 1fr 28px; gap: var(--atp-space-3); align-items: start; }
.atp-cl-loc.is-selected { border-color: var(--atp-primary); background: var(--atp-info-soft); }
.atp-cl-loc__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--atp-radius-lg); background: var(--atp-info-soft); color: var(--atp-primary); }
.atp-cl-loc--food .atp-cl-loc__icon { border-radius: 50%; }
.atp-cl-loc__icon svg { width: 28px; height: 28px; }
.atp-cl-loc__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atp-cl-loc__name { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-loc__addr { font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: 1.4; }
.atp-cl-loc__check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--atp-primary); color: var(--atp-primary-contrast); }
.atp-cl-loc__check svg { width: 18px; height: 18px; }
.atp-cl-loc__more { display: grid; place-items: center; width: var(--atp-cl-touch); height: var(--atp-cl-touch); margin: -8px -8px 0 0; background: none; border: 0; color: var(--atp-heading); cursor: pointer; border-radius: var(--atp-radius-btn); }
.atp-cl-loc__more svg { width: 22px; height: 22px; }
/* Compact saved-location row (pickers and the chosen pickup): name + one address line, so the address search stays
   on a phone's first screen. Rows sit closer together than the form's fields. */
.atp-cl-loc-list { display: flex; flex-direction: column; gap: var(--atp-space-2); width: 100%; }
.atp-cl-loc--compact { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: var(--atp-space-3) var(--atp-space-4); }
.atp-cl-loc--compact .atp-cl-loc__icon { width: 40px; height: 40px; border-radius: var(--atp-radius-md); }
.atp-cl-loc--compact .atp-cl-loc__icon svg { width: 22px; height: 22px; }
.atp-cl-loc--compact .atp-cl-loc__name { font-size: var(--atp-text-md); }
.atp-cl-loc--compact .atp-cl-loc__addr { font-size: var(--atp-text-sm); line-height: 1.3; }
.atp-cl-loc--compact .atp-cl-loc__name,
.atp-cl-loc--compact .atp-cl-loc__addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atp-cl-loc--compact .atp-cl-loc__check { width: 24px; height: 24px; }
.atp-cl-loc--compact.atp-cl-loc--food .atp-cl-loc__icon { border-radius: 50%; }
.atp-cl-loc--compact .atp-cl-loc__more { margin: -8px -8px -8px 0; }
/* A working point in Account is one link, the whole card. */
.atp-cl-loc--link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color var(--atp-dur-fast) var(--atp-ease), background var(--atp-dur-fast) var(--atp-ease); }
.atp-cl-loc--link:hover { border-color: var(--atp-primary); }
.atp-cl-loc--link:active { background: var(--atp-primary-soft); }
.atp-cl-loc--link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--atp-focus); }

/* offer (screen 08) */
.atp-cl-price { background: var(--atp-info-soft); border-color: transparent; display: flex; flex-direction: column; gap: var(--atp-space-1); }
.atp-cl-price.is-expired { opacity: 0.6; }
.atp-cl-price__label { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-price__value { font-size: clamp(28px, 8vw, 36px); font-weight: 700; color: var(--atp-heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.atp-cl-price__row { display: flex; justify-content: space-between; align-items: center; gap: var(--atp-space-2); font-size: var(--atp-text-md); color: var(--atp-primary); font-weight: var(--atp-weight-medium); flex-wrap: wrap; }
.atp-cl-price__badge { display: inline-flex; gap: var(--atp-space-1); align-items: center; padding: 4px var(--atp-space-3); border-radius: var(--atp-radius-pill); background: var(--atp-surface); color: var(--atp-heading); font-size: var(--atp-text-sm); }
.atp-cl-price__badge svg { width: 16px; height: 16px; }

/* food review (screen 11) */
.atp-cl-vehrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(90px, 100%), 1fr)); gap: var(--atp-space-2); padding: var(--atp-space-2); border-color: var(--atp-primary); }
.atp-cl-pricerow { display: flex; justify-content: space-between; align-items: center; gap: var(--atp-space-3); }
.atp-cl-pricerow.is-expired { opacity: 0.6; }
.atp-cl-pricerow__label { display: block; font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-pricerow__sub { display: block; font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-pricerow__value { font-size: var(--atp-text-xl); font-weight: 700; color: var(--atp-heading); font-variant-numeric: tabular-nums; }

/* map surface */
.atp-cl-map { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--atp-radius-lg); overflow: hidden; background: var(--atp-surface-2); border: 1px solid var(--atp-border); }
.atp-cl-map--tall { aspect-ratio: 3 / 3.4; }
.atp-cl-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atp-cl-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--atp-primary); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25)); }
.atp-cl-map__pin svg { width: 44px; height: 44px; }
.atp-cl-map__tag { position: absolute; display: inline-flex; gap: var(--atp-space-1); align-items: center; padding: 4px var(--atp-space-2); border-radius: var(--atp-radius-md); background: var(--atp-surface); color: var(--atp-heading); font-size: var(--atp-text-sm); font-weight: var(--atp-weight-semibold); box-shadow: var(--atp-shadow-sm); max-width: 45%; }
.atp-cl-map__tag svg { width: 16px; height: 16px; color: var(--atp-primary); flex: none; }
.atp-cl-map__tag--a { top: 12%; left: 6%; }
.atp-cl-map__tag--b { bottom: 12%; right: 6%; }
.atp-cl-map__stale { position: absolute; top: var(--atp-space-3); left: 50%; transform: translateX(-50%); display: inline-flex; gap: var(--atp-space-1); align-items: center; padding: 4px var(--atp-space-3); border-radius: var(--atp-radius-pill); background: var(--atp-warn-soft); color: var(--atp-warn); font-size: var(--atp-text-sm); font-weight: var(--atp-weight-semibold); white-space: nowrap; }
.atp-cl-map__stale svg { width: 16px; height: 16px; }
.atp-cl-map__locate { position: absolute; right: var(--atp-space-3); bottom: var(--atp-space-3); width: 40px; height: 40px; border-radius: 50%; background: var(--atp-surface); color: var(--atp-primary); display: grid; place-items: center; box-shadow: var(--atp-shadow-md); }
.atp-cl-map__locate svg { width: 20px; height: 20px; }
.atp-cl-map--searching > svg { opacity: 0.55; }
.atp-cl-map__radar { position: absolute; inset: 0; display: grid; place-items: center; }
.atp-cl-map__radar span { position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--atp-primary); opacity: 0; animation: atp-cl-pulse 2.4s ease-out infinite; }
.atp-cl-map__radar span:nth-child(2) { animation-delay: 0.8s; }
.atp-cl-map__radar span:nth-child(3) { animation-delay: 1.6s; }
.atp-cl-map__radar i { width: 18px; height: 18px; border-radius: 50%; background: var(--atp-primary); box-shadow: 0 0 0 6px var(--atp-primary-soft); }
@keyframes atp-cl-pulse { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }
.atp-cl-maplink { display: block; border-radius: var(--atp-radius-lg); }
.atp-cl-maplink:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }

/* published (screen 12) */
.atp-cl-published { display: grid; grid-template-columns: 40px 1fr; gap: var(--atp-space-3); align-items: start; }
.atp-cl-published__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--atp-success-soft); color: var(--atp-success); }
.atp-cl-published__icon svg { width: 24px; height: 24px; }
.atp-cl-published__title { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-published__sub { font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: 1.4; }
.atp-cl-published__num { margin-top: var(--atp-space-1); font-family: var(--atp-font-mono); font-size: var(--atp-text-sm); color: var(--atp-text-subtle); }

/* carrier (screen 13) */
.atp-cl-carrier { display: flex; flex-direction: column; gap: var(--atp-space-4); }
.atp-cl-carrier__row { display: grid; grid-template-columns: 96px 1fr; gap: var(--atp-space-4); align-items: center; }
.atp-cl-carrier__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--atp-info-soft); }
.atp-cl-carrier__info { display: flex; flex-direction: column; gap: var(--atp-space-1); min-width: 0; }
.atp-cl-carrier__name { font-size: var(--atp-text-xl); font-weight: 700; color: var(--atp-heading); }
.atp-cl-carrier__company { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
/* Board 04 screen 13: a gold star and the score on their own line under the name. */
.atp-cl-carrier__rating { display: flex; gap: var(--atp-space-2); align-items: center; font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); font-variant-numeric: tabular-nums; }
.atp-cl-carrier__rating svg { width: 20px; height: 20px; color: var(--atp-warn); fill: currentColor; }
.atp-cl-carrier__vehicle { display: flex; flex-wrap: wrap; gap: var(--atp-space-1) var(--atp-space-2); align-items: center; font-size: var(--atp-text-md); color: var(--atp-heading); font-weight: var(--atp-weight-medium); }
.atp-cl-carrier__vehicle svg { width: 20px; height: 20px; color: var(--atp-primary); }
.atp-cl-carrier__verified { width: 100%; font-size: var(--atp-text-sm); color: var(--atp-text-muted); font-weight: var(--atp-weight-normal); }
.atp-cl-carrier__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--atp-space-3); }

/* timeline (screens 14/15) */
.atp-cl-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.atp-cl-timeline__item { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: var(--atp-space-3); align-items: start; padding: var(--atp-space-3) 0; }
.atp-cl-timeline__item + .atp-cl-timeline__item { border-top: 1px solid var(--atp-border); }
.atp-cl-timeline__item + .atp-cl-timeline__item::before { content: ""; position: absolute; left: 15px; top: -14px; width: 2px; height: 28px; background: var(--atp-border-strong); }
.atp-cl-timeline__item.is-done + .atp-cl-timeline__item::before, .atp-cl-timeline__item.is-done + .is-done::before { background: var(--atp-success); }
.atp-cl-timeline__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--atp-border-strong); background: var(--atp-surface); color: var(--atp-primary-contrast); }
.atp-cl-timeline__dot svg { width: 18px; height: 18px; }
.is-done .atp-cl-timeline__dot { background: var(--atp-success); border-color: var(--atp-success); }
.is-current .atp-cl-timeline__dot { background: var(--atp-primary); border-color: var(--atp-primary); }
.atp-cl-timeline__body { display: flex; flex-direction: column; gap: 2px; }
.atp-cl-timeline__title { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.is-todo .atp-cl-timeline__title { color: var(--atp-text-muted); font-weight: var(--atp-weight-medium); }
.atp-cl-timeline__sub { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-timeline__time { font-size: var(--atp-text-md); color: var(--atp-text-muted); font-variant-numeric: tabular-nums; }

/* delivered (screen 16), summaries, kv */
.atp-cl-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--atp-space-2); padding: var(--atp-space-4) 0 var(--atp-space-2); }
.atp-cl-done__check { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--atp-success-soft); color: var(--atp-success); border: 3px solid var(--atp-success); margin-bottom: var(--atp-space-2); }
.atp-cl-done__check svg { width: 52px; height: 52px; }
.atp-cl-done__title { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-done__sub { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-summary { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-summary__title { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-kv { display: flex; justify-content: space-between; gap: var(--atp-space-4); align-items: baseline; font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-kv strong { color: var(--atp-heading); font-weight: var(--atp-weight-semibold); text-align: right; overflow-wrap: anywhere; }
.atp-cl-kv--strong { font-size: var(--atp-text-lg); }
.atp-cl-kv a { color: var(--atp-link); font-weight: var(--atp-weight-semibold); }
.atp-cl-rate { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-rate__title { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-rate__stars { display: flex; gap: var(--atp-space-2); justify-content: center; }
.atp-cl-rate__star { width: var(--atp-cl-touch); height: var(--atp-cl-touch); border: 0; background: none; color: var(--atp-border-strong); cursor: pointer; display: grid; place-items: center; }
.atp-cl-rate__star svg { width: 32px; height: 32px; }
.atp-cl-rate__star.is-on { color: var(--atp-warn); }
.atp-cl-rate__star.is-on svg { fill: currentColor; }
.atp-cl-rate__star:focus-visible { outline: 2px solid var(--atp-primary); border-radius: var(--atp-radius-btn); }

/* home (master shell) */
.atp-cl-route { display: grid; grid-template-columns: 20px 1fr 28px; gap: var(--atp-space-3); align-items: stretch; }
.atp-cl-route__rail { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.atp-cl-route__dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--atp-primary); background: var(--atp-surface); }
.atp-cl-route__line { flex: 1; width: 0; border-left: 2px dashed var(--atp-border-strong); margin: 4px 0; }
.atp-cl-route__pin { color: var(--atp-primary); }
.atp-cl-route__pin svg { width: 20px; height: 20px; }
.atp-cl-route__rows { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-route__row { display: flex; flex-direction: column; gap: 2px; }
.atp-cl-route__row + .atp-cl-route__row { border-top: 1px solid var(--atp-border); padding-top: var(--atp-space-3); }
.atp-cl-route__q { font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-route__a { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-route__chev { display: flex; flex-direction: column; justify-content: space-around; color: var(--atp-heading); }
.atp-cl-route__chev svg { width: 20px; height: 20px; }

/* master visual screen 2 "Confirmă transportul". Every block fills its row; the split and the trust row are
   auto-fit grids, so they sit side by side where there is width and stack where there is not. */
.atp-cl-confirm__route { display: grid; grid-template-columns: 20px 1fr; gap: var(--atp-space-3); align-items: stretch; }
.atp-cl-confirm__value { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); display: block; overflow-wrap: anywhere; }
/* The master draws these two cells side by side at every width, the vehicle's the wider of the two: it carries a
   photo, a name and a spec where the other carries one number. Fractions, never a px cap, so the pair fills
   whatever width the card has. */
.atp-cl-confirm__split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--atp-space-4); }
.atp-cl-confirm__cell { display: flex; flex-direction: column; gap: var(--atp-space-2); min-width: 0; }
.atp-cl-confirm__cell + .atp-cl-confirm__cell { border-left: 1px solid var(--atp-border); padding-left: var(--atp-space-4); }
.atp-cl-confirm__veh { display: flex; gap: var(--atp-space-3); align-items: center; min-width: 0; }
.atp-cl-confirm__veh svg { width: 22px; height: 22px; color: var(--atp-primary); flex: none; }
.atp-cl-confirm__img { width: 64px; height: 40px; object-fit: contain; flex: none; }
.atp-cl-confirm__vehtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* A vehicle's name is a name: it wraps between its words if it must, never inside one. `__value` breaks anywhere
   because an address has to, and lending that to the name is what printed "Dubă 3,5 / t" on the master's screen. */
.atp-cl-confirm__vehname { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); overflow-wrap: normal; }
.atp-cl-confirm__spec { font-size: var(--atp-text-md); color: var(--atp-text-muted); white-space: nowrap; }
.atp-cl-confirm__price { background: var(--atp-info-soft); border-color: transparent; display: flex; flex-direction: column; gap: var(--atp-space-1); align-items: center; text-align: center; }
.atp-cl-confirm__amount { font-size: clamp(34px, 11vw, 48px); font-weight: 700; color: var(--atp-heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.atp-cl-confirm__trust { list-style: none; margin: var(--atp-space-3) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); gap: var(--atp-space-3); }
.atp-cl-confirm__trust li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-confirm__trust strong { font-size: var(--atp-text-md); color: var(--atp-heading); }
.atp-cl-confirm__trust svg { width: 22px; height: 22px; color: var(--atp-primary); }
.atp-cl-paysheet--bare { display: flex; flex-direction: column; gap: var(--atp-space-3); }

/* orders list */
.atp-cl-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--atp-surface-2); border-radius: var(--atp-radius-btn); padding: 4px; gap: 4px; }
.atp-cl-tabs__tab { min-height: var(--atp-cl-touch); border: 0; border-radius: var(--atp-radius-md); background: transparent; font: inherit; font-weight: var(--atp-weight-semibold); color: var(--atp-text-muted); cursor: pointer; }
.atp-cl-tabs__tab.is-active { background: var(--atp-surface); color: var(--atp-primary); box-shadow: var(--atp-shadow-sm); }
.atp-cl-tabs__tab:focus-visible { outline: 2px solid var(--atp-primary); }
.atp-cl-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--atp-space-2); }
.atp-cl-order { display: flex; flex-direction: column; gap: var(--atp-space-2); }
.atp-cl-order__top { display: flex; justify-content: space-between; align-items: center; gap: var(--atp-space-2); }
.atp-cl-order__num { font-family: var(--atp-font-mono); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-order__route { display: flex; gap: var(--atp-space-2); align-items: center; font-size: var(--atp-text-md); color: var(--atp-text); }
.atp-cl-order__route svg { width: 18px; height: 18px; color: var(--atp-primary); flex: none; }
.atp-cl-order__meta { font-size: var(--atp-text-sm); color: var(--atp-text-muted); }

/* support / inbox */
.atp-cl-ticket { display: flex; flex-direction: column; gap: var(--atp-space-2); }
.atp-cl-ticket__top { display: flex; justify-content: space-between; gap: var(--atp-space-2); align-items: center; }
.atp-cl-ticket__subject { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); overflow-wrap: anywhere; }
.atp-cl-ticket__meta { font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-bubble { max-width: 88%; padding: var(--atp-space-3) var(--atp-space-4); border-radius: var(--atp-radius-xl); font-size: var(--atp-text-md); line-height: 1.45; display: flex; flex-direction: column; gap: var(--atp-space-1); }
.atp-cl-bubble--me { align-self: flex-end; background: var(--atp-primary); color: var(--atp-primary-contrast); border-bottom-right-radius: var(--atp-radius-sm); }
.atp-cl-bubble--ai { align-self: flex-start; background: var(--atp-surface); border: 1px solid var(--atp-border); color: var(--atp-text); border-bottom-left-radius: var(--atp-radius-sm); }
.atp-cl-bubble__who { font-size: var(--atp-text-xs); opacity: 0.75; }
.atp-cl-bubble__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.atp-cl-bubble__link { font-weight: var(--atp-weight-semibold); color: var(--atp-link); }
.atp-cl-notif { display: flex; flex-direction: column; gap: 2px; }
.atp-cl-notif.is-unread { border-left: 4px solid var(--atp-primary); }
.atp-cl-notif__title { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-notif__body { font-size: var(--atp-text-md); color: var(--atp-text); }
.atp-cl-notif__time { font-size: var(--atp-text-sm); color: var(--atp-text-subtle); }

/* wider screens: keep it fluid, spread the grids, larger type stays */
@media (min-width: 860px) {
    :root { --atp-cl-gutter: clamp(var(--atp-space-8), 6vw, 96px); }
    .atp-cl__main { gap: var(--atp-space-5); }
    .atp-cl__tabs { padding-left: var(--atp-cl-gutter); padding-right: var(--atp-cl-gutter); }
}

/* ---- card sheet (screens 08/11 publish, account payment methods) ---- */
.atp-cl-paysheet { display: grid; gap: 12px; }
.atp-cl-paysheet__head { display: flex; align-items: center; gap: 12px; }
.atp-cl-paysheet__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--atp-info-soft); color: var(--atp-primary); }
.atp-cl-paysheet__icon svg { width: 22px; height: 22px; }
.atp-cl-paysheet__title { font-weight: 600; color: var(--atp-heading); }
.atp-cl-paysheet__amount { font-size: 22px; font-weight: 700; color: var(--atp-heading); }
.atp-cl-paysheet__element { min-height: 48px; }
.atp-cl-paysheet__note { margin: 0; }
.atp-cl-paysheet__actions { display: grid; gap: 8px; }

/* client address (search + map + collapsed details), one component on 03 / 05 / 10 / onboarding */
.atp-cl-addr { gap: var(--atp-space-3); }
.atp-cl-addr__details { cursor: pointer; text-align: left; font: inherit; }
.atp-cl-addr__details:disabled { cursor: default; opacity: 0.7; }
.atp-cl-addr__fields { padding: var(--atp-space-3); border: 1px solid var(--atp-border); border-radius: var(--atp-radius-lg); background: var(--atp-surface); }
.atp-cl-map--real .maplibregl-canvas { border-radius: inherit; }

/* Carrier brief v1.7, board 00 screen 01: "Ține-mă minte" and "Ai uitat parola?" share one row. */
.atp-cl-authrow { display: flex; align-items: center; justify-content: space-between; gap: var(--atp-space-3); min-height: 44px; flex-wrap: wrap; }
.atp-cl-remember { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }

/* the order's conversation with its driver (screens 13-15 "Mesaj"): the support bubbles, a log that opens on the
   newest line, the live/periodic status and the privacy line */
.atp-cl-chat__status { display: flex; align-items: center; gap: var(--atp-space-2); font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--atp-text-muted); flex: none; }
.atp-cl-chat__dot.is-live { background: var(--atp-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--atp-success) 22%, transparent); }
.atp-cl-chat__log { display: flex; flex-direction: column-reverse; gap: var(--atp-space-2); width: 100%; max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--atp-space-1) 0; }
.atp-cl-chat__compose { display: flex; flex-direction: column; gap: var(--atp-space-2); }
.atp-cl-chat__input { width: 100%; resize: vertical; min-height: 3.5rem; font: inherit; }
.atp-cl-chat__privacy { display: flex; align-items: center; gap: var(--atp-space-2); margin: 0; font-size: var(--atp-text-xs); color: var(--atp-text-muted); }
.atp-cl-chat__privacy svg { width: 16px; height: 16px; flex: none; }
/* the newest driver line on the order screen, a tap away from the conversation */
.atp-cl-chatpeek { display: flex; gap: var(--atp-space-3); align-items: flex-start; text-decoration: none; color: inherit; }
.atp-cl-chatpeek.is-unread { border-left: 4px solid var(--atp-primary); }
.atp-cl-chatpeek__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--atp-primary-soft); color: var(--atp-primary); flex: none; }
.atp-cl-chatpeek__icon svg { width: 18px; height: 18px; }
.atp-cl-chatpeek__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.atp-cl-chatpeek__title { font-size: var(--atp-text-sm); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); display: flex; justify-content: space-between; gap: var(--atp-space-2); }
.atp-cl-chatpeek__text { font-size: var(--atp-text-md); color: var(--atp-text); overflow-wrap: anywhere; }
.atp-cl-chatpeek__badge { font-size: var(--atp-text-xs); font-weight: var(--atp-weight-semibold); color: var(--atp-primary-contrast); background: var(--atp-primary); border-radius: 999px; padding: 0 var(--atp-space-2); align-self: center; }

/* Task #141 follow-up: how the driver reaches the client (AtpClientMessageRoute), on the order and chat pages. */
.atp-cl-reach { display: flex; flex-direction: column; gap: var(--atp-space-2); box-sizing: border-box; min-width: 0; }
.atp-cl-reach__title { display: flex; align-items: center; gap: var(--atp-space-2); font-size: var(--atp-text-sm); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-reach__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--atp-space-2); }
.atp-cl-reach__row { display: grid; grid-template-columns: 18px 1fr auto; gap: var(--atp-space-2); align-items: start; font-size: var(--atp-text-sm); line-height: 1.45; color: var(--atp-text); }
.atp-cl-reach__row svg { width: 18px; height: 18px; margin-top: 1px; color: var(--atp-text-muted); }
.atp-cl-reach__row.is-now svg { color: var(--atp-primary); }
.atp-cl-reach__now { font-size: var(--atp-text-xs); font-weight: var(--atp-weight-semibold); color: var(--atp-primary-contrast); background: var(--atp-primary); border-radius: 999px; padding: 0 var(--atp-space-2); white-space: nowrap; }
.atp-cl-reach__note { margin: 0; font-size: var(--atp-text-xs); color: var(--atp-text-muted); }

/* ---- Trip custody after pickup (spec 2026-10-07): stop request form + card, the sender's return code card ---- */
.atp-cl-stopcard { display: flex; flex-direction: column; gap: var(--atp-space-2); }
.atp-cl-stopcard__pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px var(--atp-space-3); border-radius: var(--atp-radius-pill); font-size: var(--atp-text-sm); font-weight: var(--atp-weight-semibold); }
.atp-cl-stopcard__pill--open { background: var(--atp-warn-soft); color: var(--atp-heading); }
.atp-cl-stopcard__pill--done { background: var(--atp-success-soft); color: var(--atp-heading); }
.atp-cl-stopcard__link { display: inline-flex; align-items: center; gap: var(--atp-space-2); min-height: var(--atp-cl-touch); color: var(--atp-primary); font-weight: var(--atp-weight-semibold); text-decoration: none; }
.atp-cl-kv--wrap { flex-wrap: wrap; }
.atp-cl-kv--wrap strong { text-align: left; flex: 1 1 100%; }
.atp-cl-stopform { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-stopform__kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--atp-space-3); }
.atp-cl-stopform__kind { align-items: flex-start; justify-content: flex-start; text-align: left; padding: var(--atp-space-4); min-height: 120px; }
.atp-cl-stopform__kind .atp-cl-choice__label { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); padding-right: var(--atp-space-5); }
.atp-cl-stopform__kind .atp-cl-choice__sub { font-size: var(--atp-text-sm); color: var(--atp-text-muted); line-height: 1.45; }
.atp-cl-stopform__kind .atp-cl-choice__icon { color: var(--atp-primary); }
.atp-cl-stopform__note { width: 100%; min-height: 96px; resize: vertical; }
.atp-cl-stopform__count { text-align: right; font-size: var(--atp-text-xs); }
.atp-cl-returncode { display: flex; flex-direction: column; gap: var(--atp-space-3); border: 1.5px solid var(--atp-primary); }
.atp-cl-returncode__head { display: flex; gap: var(--atp-space-3); align-items: flex-start; }
.atp-cl-returncode__icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--atp-radius-pill); background: var(--atp-primary-soft); color: var(--atp-primary); }
.atp-cl-returncode__title { margin: 0; font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-returncode__code { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--atp-space-3); padding: var(--atp-space-4) var(--atp-space-3); border-radius: var(--atp-radius-lg); background: var(--atp-info-soft); color: var(--atp-heading); font-size: clamp(2.25rem, 11vw, 3.5rem); font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 1.1; user-select: all; }
.atp-cl-returncode__expiry { display: flex; align-items: center; justify-content: center; gap: var(--atp-space-2); color: var(--atp-text-muted); font-size: var(--atp-text-sm); }
.atp-cl-returncode__rule { display: flex; gap: var(--atp-space-3); align-items: flex-start; padding: var(--atp-space-3); border-radius: var(--atp-radius-md); background: var(--atp-warn-soft); color: var(--atp-heading); }
.atp-cl-returncode__rule > div { display: flex; flex-direction: column; gap: var(--atp-space-1); }
.atp-cl-returncode__rule span { color: var(--atp-text-muted); font-size: var(--atp-text-sm); }
.atp-cl-returncode__left { text-align: center; font-size: var(--atp-text-sm); }
.atp-cl-stopcard__link svg, .atp-cl-returncode__expiry svg { width: 18px; height: 18px; flex: none; }
.atp-cl-returncode__rule > svg { width: 22px; height: 22px; flex: none; color: var(--atp-warn); }
.atp-cl-returncode__icon svg { width: 22px; height: 22px; }
.atp-cl-returncode .atp-btn svg { width: 18px; height: 18px; }

/* ---- simple Retail order (owner 2026-11-12, docs/brand/simple-order-2026-11-12, boards 2-4) ----------------------
   Fluid at every width: the route card, the list and the bottom sheet span the content column; the map and the
   sheet of the vehicle and searching screens run edge to edge (they bleed out of the column's gutter). */
.atp-cl-simple { display: flex; flex-direction: column; gap: var(--atp-space-4); width: 100%; }
.atp-cl-simple__head { display: flex; align-items: center; gap: var(--atp-space-3); padding-top: var(--atp-space-2); }
.atp-cl-simple__back, .atp-cl-simple__fab {
    display: inline-grid; place-items: center; flex: none;
    width: var(--atp-cl-touch); height: var(--atp-cl-touch); border-radius: 50%; border: 0;
    background: var(--atp-surface-2); color: var(--atp-heading); text-decoration: none; cursor: pointer;
}
.atp-cl-simple__back svg, .atp-cl-simple__fab svg { width: 22px; height: 22px; }
.atp-cl-simple__back:focus-visible, .atp-cl-simple__fab:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-simple__title { margin: 0; font-size: var(--atp-text-xl); font-weight: 700; color: var(--atp-heading); letter-spacing: -0.01em; }

/* board 2: the route card (dot, dotted rail, square beside the two fields; swap on the right). Own name: .atp-cl-route is the Food home card. */
.atp-cl-trip {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--atp-space-3);
    padding: var(--atp-space-3); background: var(--atp-surface);
    border: 1px solid var(--atp-border); border-radius: calc(var(--atp-radius-xl) + 4px); box-shadow: var(--atp-shadow-md);
}
.atp-cl-trip__rail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; align-self: stretch; padding: var(--atp-space-4) 4px; }
.atp-cl-trip__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--atp-primary); box-shadow: 0 0 0 4px var(--atp-primary-soft); flex: none; }
.atp-cl-trip__line { flex: 1; min-height: 14px; border-left: 2px dotted var(--atp-border-strong); }
.atp-cl-trip__sq { width: 14px; height: 14px; border-radius: 3px; background: var(--atp-heading); flex: none; }
.atp-cl-trip__fields { display: flex; flex-direction: column; gap: var(--atp-space-2); min-width: 0; }
.atp-cl-trip__input {
    width: 100%; min-width: 0; height: 46px; padding: 0 var(--atp-space-3);
    border: 2px solid transparent; border-radius: var(--atp-radius-lg); background: var(--atp-surface-2);
    color: var(--atp-heading); font: inherit; font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold);
    text-overflow: ellipsis;
}
.atp-cl-trip__input::placeholder { color: var(--atp-text-muted); font-weight: var(--atp-weight-medium); }
.atp-cl-trip__input.is-focus, .atp-cl-trip__input:focus { background: var(--atp-surface); border-color: var(--atp-primary); outline: none; }
.atp-cl-trip__swap {
    display: grid; place-items: center; width: var(--atp-cl-touch); height: var(--atp-cl-touch); border-radius: 50%;
    border: 0; background: var(--atp-surface-2); color: var(--atp-heading); cursor: pointer;
}
.atp-cl-trip__swap svg { width: 22px; height: 22px; }
.atp-cl-trip__swap:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }

/* the one-tap rows: suggestions, saved places, past destinations, "Alege pe hartă" */
.atp-cl-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.atp-cl-places > li + li { border-top: 1px solid var(--atp-border); }
.atp-cl-places__note { padding: var(--atp-space-3) 2px; font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-place {
    display: flex; align-items: center; gap: var(--atp-space-3); width: 100%; min-height: 64px; padding: var(--atp-space-3) 2px;
    border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.atp-cl-place:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: -2px; border-radius: var(--atp-radius-md); }
.atp-cl-place__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--atp-surface-2); color: var(--atp-text-muted); }
.atp-cl-place__icon svg { width: 20px; height: 20px; }
.atp-cl-place__icon--brand { color: var(--atp-primary); }
.atp-cl-place__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.atp-cl-place__title, .atp-cl-place__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atp-cl-place__title { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-place__hl { color: var(--atp-primary); }
.atp-cl-place__sub { font-size: var(--atp-text-md); color: var(--atp-text-muted); }
.atp-cl-place__km { flex: none; font-size: var(--atp-text-md); color: var(--atp-text-muted); }
/* The simple order's confirm step (the Food flow's panel, so scoped to this wrapper): the confirm and back buttons
   stay on screen above the bottom tabs while the details scroll under them. The bare card sheet hands its children
   to the panel, so the buttons can stick for the whole height of the panel instead of only inside the sheet. */
.atp-cl-simple-confirm .atp-cl-paysheet--bare { display: contents; }
.atp-cl-simple-confirm .atp-cl-paysheet__actions {
    position: sticky; z-index: 3; bottom: calc(var(--atp-cl-tabs-h) + var(--atp-safe-bottom));
    margin-inline: calc(-1 * var(--atp-cl-gutter)); padding: var(--atp-space-3) var(--atp-cl-gutter);
    background: var(--atp-bg); border-top: 1px solid var(--atp-border);
}
/* At 390x844 the details must end above those pinned buttons, so this screen alone runs a little tighter than the Food
   panel: 12 px between and inside the cards instead of 16, and each address on one line, ending in an ellipsis when
   it is longer. The route card then has one height for every address, and the trust row under the price ends above
   the buttons at 390 and 430 without scrolling. */
.atp-cl-simple-confirm > .atp-cl-form { gap: var(--atp-space-3); }
.atp-cl-simple-confirm .atp-cl-card { padding-block: var(--atp-space-3); }
.atp-cl-simple-confirm .atp-cl-route__rows { gap: var(--atp-space-2); min-width: 0; }
.atp-cl-simple-confirm .atp-cl-route__row { min-width: 0; }
.atp-cl-simple-confirm .atp-cl-route__row + .atp-cl-route__row { padding-top: var(--atp-space-2); }
.atp-cl-simple-confirm .atp-cl-confirm__route .atp-cl-confirm__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atp-cl-simple-confirm .atp-cl-confirm__trust { margin-top: var(--atp-space-2); }
.atp-cl-simple__mappick { display: flex; flex-direction: column; gap: var(--atp-space-3); }
.atp-cl-simple__pinline { margin: 0; font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }

/* boards 1, 3 and 4: the map screens are exactly one screen tall. The frame stops at the top of the bottom tabs, the
   map takes what the sheet leaves (never under --atp-cl-simple-map-min), and the sheet scrolls its own content while
   its actions stay on screen. */
.atp-cl:has(.atp-cl-simple--sheet), .atp-cl:has(.atp-cl-home) { height: 100vh; height: 100dvh; }
.atp-cl:has(.atp-cl-simple--sheet) > .atp-cl__main, .atp-cl:has(.atp-cl-home) > .atp-cl__main { min-height: 0; }

/* boards 3 and 4: the map on top, edge to edge, and the white sheet over its lower edge */
.atp-cl-simple--sheet { flex: 1 1 auto; min-height: 0; gap: 0; width: auto; margin: calc(-1 * var(--atp-space-3)) calc(-1 * var(--atp-cl-gutter)) calc(-1 * var(--atp-space-8)); }
/* The sheet covers the map's bottom strip: the map keeps its cards and its licence "i" above it (atp-map.js, atp.css). */
.atp-cl-simple__map { position: relative; flex: 1 1 0; min-height: var(--atp-cl-simple-map-min); --atp-map-inset-bottom: var(--atp-cl-sheet-overlap); }
.atp-cl-simple__map .atp-cl-map { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.atp-cl-simple--sheet > .atp-cl-sheet { flex: 0 1 auto; min-height: 0; }
.atp-cl-simple__map .atp-cl-map__tag--a { top: 22%; left: 20%; }
.atp-cl-simple__map .atp-cl-map__tag--b { bottom: 26%; right: 6%; }
.atp-cl-simple__fab { position: absolute; z-index: 5; top: var(--atp-space-3); left: var(--atp-cl-gutter); background: var(--atp-surface); box-shadow: var(--atp-shadow-md); }
.atp-cl-map__tag--two { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px; border-radius: var(--atp-radius-lg); box-shadow: var(--atp-shadow-md); }
.atp-cl-map__tag--two strong { font-size: var(--atp-text-md); font-weight: 700; color: var(--atp-heading); }
.atp-cl-map__tag--two span { font-size: var(--atp-text-sm); font-weight: var(--atp-weight-medium); color: var(--atp-text-muted); }

.atp-cl-sheet {
    position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--atp-space-3);
    margin-top: calc(-1 * var(--atp-cl-sheet-overlap)); padding: var(--atp-space-2) var(--atp-cl-gutter) var(--atp-space-6);
    background: var(--atp-surface); border-radius: calc(2 * var(--atp-radius-lg)) calc(2 * var(--atp-radius-lg)) 0 0; box-shadow: var(--atp-shadow-lg);
}
.atp-cl-sheet__grab { align-self: center; width: 40px; height: 5px; border-radius: var(--atp-radius-pill); background: var(--atp-border-strong); }
.atp-cl-sheet__title { margin: 0; font-size: clamp(20px, 5.4vw, 26px); font-weight: 800; color: var(--atp-heading); letter-spacing: -0.01em; }
.atp-cl-sheet__sub { margin: calc(-1 * var(--atp-space-2)) 0 0; font-size: var(--atp-text-md); color: var(--atp-text-muted); line-height: 1.4; }
.atp-cl-sheet__link {
    align-self: center; display: inline-flex; align-items: center; min-height: var(--atp-cl-touch); padding-inline: var(--atp-space-3);
    font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-link);
}
/* The sheet's scrolling middle and its pinned actions (boards 3 and 4). */
.atp-cl-sheet__body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: var(--atp-space-3); padding-block: 2px;
}
.atp-cl-sheet__foot { flex: none; display: flex; flex-direction: column; gap: var(--atp-space-3); }
/* Board 4's ghost button is white with the brand border. "Anulează comanda" appears right where the finger tapped
   "Comandă", and a touch browser leaves :hover on the last tapped spot, so the hover tint is kept for a real pointer
   only. */
@media (hover: none) { .atp-cl .atp-cl-sheet__foot .atp-btn.atp-cl-btn--ghost:hover:not(:disabled) { --_bg: var(--atp-surface); } }
.atp-cl-sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--atp-overlay); }
.atp-cl-sheet--modal {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0; max-height: 85dvh; overflow-y: auto;
    padding-bottom: calc(var(--atp-space-6) + var(--atp-safe-bottom));
}

/* board 3: the vehicle rows, the payment line and the order button */
.atp-cl-vehs { display: flex; flex-direction: column; gap: 2px; margin-inline: calc(-1 * var(--atp-space-2)); }
.atp-cl-veh {
    display: flex; align-items: center; gap: var(--atp-space-3); width: 100%; padding: 7px var(--atp-space-2);
    border: 2px solid transparent; border-radius: var(--atp-radius-xl); background: none;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.atp-cl-veh.is-on { border-color: var(--atp-primary); background: var(--atp-info-soft); }
.atp-cl-veh:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-veh__img { width: 62px; height: 40px; object-fit: contain; flex: none; }
.atp-cl-veh__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.atp-cl-veh__name { font-size: var(--atp-text-lg); font-weight: 700; color: var(--atp-heading); }
.atp-cl-veh__sub { font-size: var(--atp-text-sm); color: var(--atp-text-muted); }
.atp-cl-veh__price { flex: none; font-size: var(--atp-text-lg); font-weight: 800; color: var(--atp-heading); white-space: nowrap; }
.atp-cl-pay {
    display: flex; align-items: center; gap: var(--atp-space-3); padding-top: var(--atp-space-2);
    border-top: 1px solid var(--atp-border); font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-heading);
}
.atp-cl-pay__card { display: inline-flex; align-items: center; gap: var(--atp-space-2); min-height: var(--atp-cl-touch); color: inherit; text-decoration: none; }
.atp-cl-pay__card svg { width: 22px; height: 22px; color: var(--atp-primary); }
.atp-cl-pay__when {
    margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: var(--atp-cl-touch);
    border: 0; background: none; font: inherit; font-weight: var(--atp-weight-medium); color: var(--atp-text-muted); cursor: pointer;
}
.atp-cl-pay__when svg { width: 18px; height: 18px; }
.atp-cl-simple__cta { box-shadow: 0 8px 18px color-mix(in srgb, var(--atp-primary) 32%, transparent); }

/* board 4: progress, the order card, the courier note */
.atp-cl-progress { position: relative; height: 5px; border-radius: var(--atp-radius-pill); background: var(--atp-surface-2); overflow: hidden; }
/* The segment never leaves the track: it starts at the left (the board's partly filled bar, which is also what a
   still frame and reduced motion show) and slides to the right edge and back. 138% of its own 42% width is the rest
   of the track. */
.atp-cl-progress i { position: absolute; inset-block: 0; left: 0; width: 42%; border-radius: inherit; background: var(--atp-primary); animation: atp-cl-progress 1.6s var(--atp-ease) infinite alternate; }
@keyframes atp-cl-progress { from { transform: translateX(0); } to { transform: translateX(138%); } }
@media (prefers-reduced-motion: reduce) { .atp-cl-progress i { animation: none; } }
.atp-cl-summary--search { display: flex; flex-direction: column; gap: var(--atp-space-3); padding: var(--atp-space-3) var(--atp-space-4); border: 1px solid var(--atp-border); border-radius: calc(var(--atp-radius-xl) + 2px); }
.atp-cl-summary__route { display: flex; align-items: stretch; gap: var(--atp-space-3); }
.atp-cl-summary__route .atp-cl-trip__rail { padding: 4px; }
.atp-cl-summary__stops { display: flex; flex-direction: column; gap: var(--atp-space-3); min-width: 0; }
.atp-cl-summary__stop { font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-heading); overflow-wrap: anywhere; }
.atp-cl-summary__foot { display: flex; align-items: center; gap: var(--atp-space-3); padding-top: var(--atp-space-3); border-top: 1px solid var(--atp-border); }
.atp-cl-summary__price { margin-left: auto; font-size: var(--atp-text-xl); font-weight: 800; color: var(--atp-heading); white-space: nowrap; }

/* ---- simple Retail home (board 1, owner 2026-11-12): the map fills the screen above the sheet, the app bar floats
   over it (round menu and bell, the logo in a white chip), the sheet holds the pickup, "Unde livrăm?" and the one-tap
   places. Fluid at every width: map and sheet run edge to edge, the sheet ends on top of the bottom tabs. */
.atp-cl:has(.atp-cl__bar--float) { position: relative; }
.atp-cl__bar--float { position: absolute; left: 0; right: 0; top: 0; background: transparent; pointer-events: none; }
.atp-cl__bar--float .atp-cl__bar-side, .atp-cl__bar--float .atp-cl__brand { pointer-events: auto; }
.atp-cl__bar--float .atp-cl__iconbtn { width: var(--atp-cl-fab); height: var(--atp-cl-fab); border-radius: 50%; background: var(--atp-surface); box-shadow: var(--atp-shadow-md); }
.atp-cl__bar--float .atp-cl__iconbtn:hover { background: var(--atp-surface); }
.atp-cl__bar--float .atp-cl__brand {
    justify-self: center; padding: var(--atp-space-2) var(--atp-space-4); --atp-logo-h: 30px;
    border-radius: var(--atp-radius-pill); background: var(--atp-surface); box-shadow: var(--atp-shadow-md);
}

.atp-cl-home {
    position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
    margin: calc(-1 * var(--atp-space-3)) calc(-1 * var(--atp-cl-gutter)) calc(-1 * var(--atp-space-8));
}
.atp-cl-home__map { position: relative; flex: 1 1 0; min-height: var(--atp-cl-simple-map-min); --atp-map-inset-bottom: var(--atp-cl-sheet-overlap); }
.atp-cl-home__map .atp-cl-map { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.atp-cl-home__locate {
    position: absolute; z-index: 3; right: var(--atp-cl-gutter); bottom: calc(var(--atp-space-6) + var(--atp-space-4));
    display: grid; place-items: center; width: var(--atp-cl-fab); height: var(--atp-cl-fab); border-radius: 50%; border: 0;
    background: var(--atp-surface); color: var(--atp-primary); box-shadow: var(--atp-shadow-md); cursor: pointer;
}
.atp-cl-home__locate svg { width: 24px; height: 24px; }
.atp-cl-home__locate:disabled { cursor: progress; }
.atp-cl-home__locate:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-home__sheet { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: var(--atp-space-3); }
.atp-cl-home__from {
    display: flex; align-items: center; gap: var(--atp-space-3); min-height: var(--atp-cl-touch); padding: var(--atp-space-1) 2px;
    color: inherit; text-decoration: none; border-radius: var(--atp-radius-md);
}
.atp-cl-home__from:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
.atp-cl-home__from-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.atp-cl-home__from-label { font-size: var(--atp-text-sm); font-weight: var(--atp-weight-medium); color: var(--atp-text-muted); }
/* The whole address, wrapped (board 1 prints it in full). */
.atp-cl-home__from-addr { font-size: var(--atp-text-lg); font-weight: var(--atp-weight-semibold); line-height: 1.3; color: var(--atp-heading); overflow-wrap: anywhere; }
.atp-cl-home__change { flex: none; font-size: var(--atp-text-md); font-weight: var(--atp-weight-semibold); color: var(--atp-link); }
.atp-cl-home__where {
    display: flex; align-items: center; gap: var(--atp-space-3); min-height: var(--atp-cl-where-h); padding: 0 var(--atp-space-4);
    border: 1.5px solid var(--atp-border); border-radius: var(--atp-radius-xl); background: var(--atp-surface-2);
    color: var(--atp-heading); font-size: var(--atp-text-xl); font-weight: 700; text-decoration: none;
}
.atp-cl-home__where svg { flex: none; width: 26px; height: 26px; }
.atp-cl-home__where:focus-visible { outline: 2px solid var(--atp-primary); outline-offset: 2px; }
a.atp-cl-place { text-decoration: none; }
/* The active order as one row (board 1): the number over the streets on one line, the status pill on the right. */
.atp-cl-order--row { flex-direction: row; align-items: center; gap: var(--atp-space-3); padding: var(--atp-space-3) var(--atp-space-4); }
.atp-cl-order--row .atp-cl-order__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.atp-cl-order--row .atp-cl-order__num { font-size: var(--atp-text-sm); }
.atp-cl-order--row .atp-cl-order__route { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: var(--atp-weight-semibold); color: var(--atp-heading); }
.atp-cl-order--row > .atp-pill { flex: none; }
/* Board 4: while a driver is searched for, the pickup pin carries the two circles and a pulse (not the map's centre). */
/* The two filled circles are spread shadows (13px is half the 26px dot); the outer circle's line is ::after, the
   pulse ::before. */
.atp-cl-map--searching .atp-map__marker--origin {
    box-shadow:
        0 0 0 2px var(--atp-surface),
        0 0 0 calc(var(--atp-cl-radar-in) / 2 - 13px) color-mix(in srgb, var(--atp-primary) 12%, transparent),
        0 0 0 calc(var(--atp-cl-radar-out) / 2 - 13px) color-mix(in srgb, var(--atp-primary) 8%, transparent);
}
.atp-cl-map--searching .atp-map__marker--origin::before,
.atp-cl-map--searching .atp-map__marker--origin::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: var(--atp-cl-radar-out); height: var(--atp-cl-radar-out);
    margin: calc(var(--atp-cl-radar-out) / -2) 0 0 calc(var(--atp-cl-radar-out) / -2); border-radius: 50%; pointer-events: none;
}
.atp-cl-map--searching .atp-map__marker--origin::before { border: 2px solid var(--atp-primary); opacity: 0; animation: atp-cl-pulse 2.4s ease-out infinite; }
.atp-cl-map--searching .atp-map__marker--origin::after { border: 1.5px solid color-mix(in srgb, var(--atp-primary) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { .atp-cl-map--searching .atp-map__marker--origin::before { animation: none; } }
/* The phone's own position: the brand dot with its soft halo (the carrier's green "me" stays the driver's). */
.atp-map__marker--here { width: 22px; height: 22px; background: var(--atp-primary); box-shadow: 0 0 0 36px color-mix(in srgb, var(--atp-primary) 14%, transparent); }
