/* ==========================================================================
   Leqtor design system
   --------------------------------------------------------------------------
   A field tool for pipeline fabrication, not a SaaS dashboard. Petrol carries
   the structure; hi-vis amber is reserved EXCLUSIVELY for "en desarrollo" so
   that a glance at the page says what stage the work is at.

   Layers:
     1. Tokens
     2. Bootstrap variable overrides
     3. App shell (rail / topbar / tabbar / content)
     4. Components (card, table, chip, field, track, actions)
     5. Login
     6. Motion, print, dark
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
    --ink: #0F1518;
    --ink-2: #3A454A;
    --ink-3: #6B767B;
    --chrome: #162126;
    --chrome-2: #1E2B32;
    --paper: #F4F5F3;
    --surface: #FFFFFF;
    --rule: #DDE1DE;
    --rule-2: #EDF0EE;

    --petrol: #0E5C6B;
    --petrol-hi: #127486;
    --petrol-lo: #0A4551;
    --petrol-wash: #E7F0F1;

    --hiviz: #E3A008;
    --hiviz-lo: #8A6306;
    --hiviz-wash: #FCF2DC;

    --done: #157F4A;
    --done-wash: #E5F3EB;
    --stop: #C4261E;
    --stop-wash: #FBE9E8;
    --blocked: #8A938E;

    --radius: 4px;
    --radius-lg: 8px;
    --rail-w: 240px;
    --topbar-h: 56px;
    --tabbar-h: 60px;

    --shadow: 0 1px 2px rgba(15, 21, 24, .06);
    --shadow-lift: 0 4px 16px rgba(15, 21, 24, .10);

    --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* 2. Bootstrap overrides --------------------------------------------------- */

body {
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--font);
    --bs-border-color: var(--rule);
    --bs-link-color-rgb: 14, 92, 107;
    --bs-link-hover-color-rgb: 10, 69, 81;
    --bs-secondary-color: var(--ink-3);
    --bs-focus-ring-color: rgba(14, 92, 107, .30);
    --bs-border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
}

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: var(--radius);
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
    letter-spacing: .01em;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-primary {
    --bs-btn-bg: var(--petrol);
    --bs-btn-border-color: var(--petrol);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--petrol-hi);
    --bs-btn-hover-border-color: var(--petrol-hi);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--petrol-lo);
    --bs-btn-active-border-color: var(--petrol-lo);
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: #9BB2B7;
    --bs-btn-disabled-border-color: #9BB2B7;
}

.btn-outline-primary {
    --bs-btn-color: var(--petrol);
    --bs-btn-border-color: #A8C2C7;
    --bs-btn-hover-bg: var(--petrol);
    --bs-btn-hover-border-color: var(--petrol);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--petrol-lo);
    --bs-btn-active-border-color: var(--petrol-lo);
    --bs-btn-active-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-color: var(--ink-2);
    --bs-btn-border-color: var(--rule);
    --bs-btn-hover-bg: var(--rule-2);
    --bs-btn-hover-border-color: var(--rule);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: var(--rule-2);
    --bs-btn-active-border-color: var(--rule);
    --bs-btn-active-color: var(--ink);
}

.btn-outline-danger {
    --bs-btn-color: var(--stop);
    --bs-btn-border-color: #E7B4B1;
    --bs-btn-hover-bg: var(--stop);
    --bs-btn-hover-border-color: var(--stop);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #A11C15;
    --bs-btn-active-border-color: #A11C15;
    --bs-btn-active-color: #fff;
}

.btn-danger {
    --bs-btn-bg: var(--stop);
    --bs-btn-border-color: var(--stop);
    --bs-btn-hover-bg: #D63A32;
    --bs-btn-hover-border-color: #D63A32;
    --bs-btn-active-bg: #A11C15;
    --bs-btn-active-border-color: #A11C15;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

/* Forms ------------------------------------------------------------------ */

.form-control, .form-select {
    border-color: var(--rule);
    border-radius: var(--radius);
    padding: .55rem .75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px rgba(14, 92, 107, .12);
}

.form-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: .3rem;
}

.form-text { color: var(--ink-3); font-size: .8125rem; }

/* A form field as a unit. The old forms laid these out as a two-column
   <table> — label in a <th>, control in a <td> — which put a data table's
   alignment on something that is not tabular data. */
.lq-field { margin-bottom: 1rem; }
.lq-field:last-child { margin-bottom: 0; }

.lq-error {
    display: block;
    margin-top: .3rem;
    font-size: .8125rem;
    color: var(--stop);
}

.lq-error:empty { display: none; }

/* An invalid control is outlined, not just coloured, so the state survives
   greyscale and is not carried by colour alone. */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--stop);
    box-shadow: 0 0 0 3px rgba(196, 38, 30, .1);
}

/* Alerts ----------------------------------------------------------------- */

.alert { border-radius: var(--radius); border-width: 1px; }
.alert-danger { --bs-alert-bg: var(--stop-wash); --bs-alert-color: #8A1C16; --bs-alert-border-color: #EFC7C4; }
.alert-success { --bs-alert-bg: var(--done-wash); --bs-alert-color: #0E5A35; --bs-alert-border-color: #BEDFCB; }
.alert-warning { --bs-alert-bg: var(--hiviz-wash); --bs-alert-color: var(--hiviz-lo); --bs-alert-border-color: #EFD9A8; }
.alert-info { --bs-alert-bg: var(--petrol-wash); --bs-alert-color: var(--petrol-lo); --bs-alert-border-color: #BFD8DC; }

/* 3. App shell ------------------------------------------------------------ */

.lq-body {
    /* 100vh on a phone is the height *with the browser chrome hidden*, so it is taller than
       what the user can actually see. The document then ends below the fold and the last thing
       on the page needs a scroll to reach. 100dvh tracks the visible area instead; the 100vh
       line stays as the fallback for anything that does not know dvh. */
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.lq-shell { display: block; min-height: 100vh; min-height: 100dvh; }

/* Desktop rail — the reason the app no longer looks like a phone. */
.lq-rail {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    flex-direction: column;
    background: var(--chrome);
    color: #C7D2D6;
    z-index: 1030;
}

.lq-rail__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--chrome-2);
}

.lq-rail__brand img { width: 30px; height: 30px; }

.lq-rail__name {
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
    line-height: 1;
}

.lq-rail__sub {
    font-size: .6875rem;
    color: #6E8087;
    letter-spacing: .06em;
    line-height: 1;
    margin-top: .2rem;
}

.lq-rail__nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem .75rem 1.5rem;
}

.lq-rail__label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #5E7078;
    padding: 0 .5rem;
    margin: 1.25rem 0 .4rem;
}

.lq-rail__label:first-child { margin-top: 0; }

.lq-rail__link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    margin-bottom: 1px;
    border-radius: var(--radius);
    color: #C7D2D6;
    text-decoration: none;
    font-size: .9375rem;
    transition: background-color .15s ease, color .15s ease;
}

.lq-rail__link:hover { background: var(--chrome-2); color: #fff; }

.lq-rail__link.is-active {
    background: var(--petrol);
    color: #fff;
    font-weight: 500;
}

.lq-rail__link .lq-ico { width: 18px; text-align: center; font-size: 1.0625rem; flex: none; }

.lq-rail__foot {
    padding: .75rem;
    border-top: 1px solid var(--chrome-2);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lq-rail__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: none;
}

.lq-rail__who { min-width: 0; }

.lq-rail__who strong {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lq-rail__who span { font-size: .6875rem; color: #6E8087; }

.lq-rail__out {
    margin-left: auto;
    background: none;
    border: 0;
    color: #6E8087;
    padding: .25rem;
    border-radius: var(--radius);
    line-height: 0;
    cursor: pointer;
}

.lq-rail__out:hover { color: #fff; background: var(--chrome-2); }

.lq-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Mobile top bar */
.lq-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: var(--topbar-h);
    padding: 0 .75rem;
    background: var(--chrome);
    color: #fff;
}

.lq-topbar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    font-size: 1.375rem;
}

.lq-topbar__back:hover { background: var(--chrome-2); color: #fff; }

.lq-topbar__title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .lq-topbar__menu was here — a second control for the Cuenta panel, alongside the tab bar's
   Cuenta tab. Removed with the button; see the comment in common/layout.html. */

.lq-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
}

/* Content column */
.lq-content {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    /* The safe-area term is the same one .lq-tabbar adds to its own height. Without it here the
       reserved space is shorter than the bar that covers the page, so on a phone with a home
       indicator the last row sits under the bar and has to be scrolled into view. */
    padding: 1.25rem 1rem calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 1.5rem);
}

/* Mobile tab bar — replaces the 50px blue bar that did nothing. */
.lq-tabbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1035;
    display: flex;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--rule);
}

.lq-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    color: var(--ink-3);
    text-decoration: none;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.lq-tab i { font-size: 1.375rem; line-height: 1; }

.lq-tab:hover { color: var(--ink-2); }

.lq-tab.is-active { color: var(--petrol); }
.lq-tab.is-active i { transform: translateY(-1px); }

.lq-tab--btn { background: none; border: 0; font: inherit; cursor: pointer; }

/* Off-canvas menu links reuse the rail's rhythm but sit on light chrome. */
.lq-menu__label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ink-3);
    margin-bottom: .4rem;
}

.lq-menu__link {
    display: block;
    padding: .5rem .6rem;
    margin-bottom: 1px;
    border-radius: var(--radius);
    color: var(--ink-2);
    text-decoration: none;
}

.lq-menu__link:hover { background: var(--rule-2); color: var(--ink); }

/* The logout form must not push the rail footer apart. */
.lq-rail__out-form { margin: 0; }

/* 4. Components ----------------------------------------------------------- */

/* Page heading */
.lq-head { margin-bottom: 1.25rem; }

.lq-head__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .15rem;
}

.lq-head__sub { color: var(--ink-3); font-size: .9375rem; margin: 0; }

/* Card */
.lq-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.lq-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--rule-2);
}

.lq-card__title {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    margin: 0;
    color: var(--ink-2);
}

.lq-card__body { padding: 1rem; }
.lq-card__body--flush { padding: 0; }

/* Key/value facts */
.lq-facts { display: grid; gap: 0; margin: 0; }

.lq-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .625rem 0;
    border-bottom: 1px solid var(--rule-2);
}

.lq-facts > div:last-child { border-bottom: 0; }

.lq-facts dt {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink-3);
    margin: 0;
    white-space: nowrap;
}

.lq-facts dd { margin: 0; font-size: .9375rem; text-align: right; word-break: break-word; }

/* Table */
.lq-table { width: 100%; margin: 0; border-collapse: collapse; }

.lq-table th {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ink-3);
    text-align: left;
    padding: .625rem 1rem;
    background: var(--rule-2);
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
}

.lq-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--rule-2);
    font-size: .9375rem;
    vertical-align: middle;
}

.lq-table tbody tr:last-child td { border-bottom: 0; }
.lq-table tbody tr:hover { background: #FAFBFA; }
.lq-table__actions { text-align: right; white-space: nowrap; }
.lq-table__actions .btn + .btn { margin-left: .25rem; }

/* Row list (mobile) — the same rows, stacked. */
.lq-rows { display: block; }

.lq-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--rule-2);
    color: inherit;
    text-decoration: none;
}

.lq-row:last-child { border-bottom: 0; }
.lq-row:hover { background: #FAFBFA; }

.lq-row__icon {
    width: 36px;
    height: 36px;
    flex: none;
    object-fit: contain;
}

.lq-row__text { flex: 1; min-width: 0; }

.lq-row__name {
    font-size: .9375rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lq-row__meta { font-size: .8125rem; color: var(--ink-3); }

.lq-row__go { color: var(--rule); font-size: 1.375rem; flex: none; }

/* Per-row actions on a stacked row. Fixed width so a three-button column
   doesn't reflow the row as you scroll. */
.lq-row__actions {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: none;
    align-items: stretch;
}

.lq-row__actions .btn { min-width: 5.5rem; }

/* Stacked user card (mobile). Each user's identity and actions travel
   together, so they are one block rather than two separate table rows. */
.lq-user-card { border-bottom: 1px solid var(--rule-2); }
.lq-user-card:last-child { border-bottom: 0; }
.lq-user-card .lq-row { border-bottom: 0; }

/* Top-align a row whose content is taller than its icon. */
.lq-row--top { align-items: flex-start; }

/* Code / tag — monospace is used only for identifiers, never decoration. */
.lq-code {
    font-family: var(--mono);
    font-size: .875em;
    font-weight: 500;
    letter-spacing: -.01em;
}

.lq-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--ink);
}

/* Status chip. State is carried by data-status so the colour always matches
   StatusEnum — the old per-cell th:style="color:#…" strings could not do this. */
.lq-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid transparent;
}

.lq-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.lq-chip[data-status="FINISHED"] { background: var(--done-wash); color: var(--done); border-color: #BEDFCB; }
.lq-chip[data-status="ON_GOING"] { background: var(--hiviz-wash); color: var(--hiviz-lo); border-color: #EFD9A8; }
.lq-chip[data-status="PENDING"] { background: var(--rule-2); color: var(--ink-2); border-color: var(--rule); }
.lq-chip[data-status="BLOCKED"] { background: #EFF1F0; color: #5F6864; border-color: var(--rule); }
.lq-chip[data-status="REJECTED"] { background: var(--stop-wash); color: var(--stop); border-color: #EFC7C4; }

/* Stage links inside a facts list */
.lq-stage-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.lq-stage-link:hover { color: var(--petrol); border-bottom-color: var(--petrol); }

/* The pipeline tracker ---------------------------------------------------
   Horizontal run of connected nodes, one per stadium. Pure CSS: no canvas,
   no image, no JS. A pipeline is genuinely ordered, so the numbered nodes
   are information rather than decoration. */

.lq-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lq-track__node {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: .75rem;
    align-items: start;
    position: relative;
    padding-bottom: 1.1rem;
}

.lq-track__node:last-child { padding-bottom: 0; }

/* The run itself: a vertical pipe down the left, drawn between nodes. */
.lq-track__node:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--rule);
}

.lq-track__node.is-done:not(:last-child)::before { background: var(--done); }

.lq-track__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 600;
    border: 2px solid var(--rule);
    background: var(--surface);
    color: var(--ink-3);
    z-index: 1;
}

.lq-track__node.is-done .lq-track__dot { background: var(--done); border-color: var(--done); color: #fff; }
.lq-track__node.is-active .lq-track__dot { background: var(--hiviz); border-color: var(--hiviz); color: #3A2A02; }
.lq-track__node.is-blocked .lq-track__dot { background: var(--surface); border-color: var(--blocked); color: var(--blocked); border-style: dashed; }
.lq-track__node.is-rejected .lq-track__dot { background: var(--stop); border-color: var(--stop); color: #fff; }

.lq-track__label { font-size: .9375rem; font-weight: 500; line-height: 1.9; }
.lq-track__node.is-pending .lq-track__label { color: var(--ink-3); font-weight: 400; }

/* Buttons block */
.lq-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lq-actions .btn { flex: 1 1 auto; min-width: 9rem; }
.lq-actions--stack { flex-direction: column; }
.lq-actions--stack .btn { width: 100%; min-width: 0; }

/* Empty state */
.lq-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-3);
}

.lq-empty__icon { font-size: 2rem; color: var(--rule); display: block; margin-bottom: .5rem; }
.lq-empty p { margin: 0; font-size: .9375rem; }

/* 5. Login ---------------------------------------------------------------- */

.lq-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background:
        radial-gradient(120% 90% at 50% -10%, #1E2B32 0%, #121A1E 55%, #0D1316 100%);
}

.lq-login__card {
    width: 100%;
    max-width: 22rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: var(--shadow-lift);
}

.lq-login__brand { text-align: center; margin-bottom: 1.5rem; }
.lq-login__brand img { width: 52px; height: 52px; }

.lq-login__name {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: .1em;
    margin: .75rem 0 .15rem;
}

.lq-login__tag { font-size: .8125rem; color: var(--ink-3); margin: 0; }

.lq-login .btn { padding: .625rem 1rem; font-size: 1rem; }

/* "Powered by" — same pattern as the payment-scheduler login. */
.lq-powered {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule-2);
}

.lq-powered span {
    display: block;
    font-size: .6875rem;
    letter-spacing: .06em;
    color: var(--ink-3);
    margin-bottom: .4rem;
}

.lq-powered img { max-width: 170px; height: auto; }

/* 6. Motion, breakpoints, print ------------------------------------------ */

@media (min-width: 768px) {
    /* The tab bar is hidden at 1200px, not 768px, so the bottom allowance has to survive this
       breakpoint — otherwise a tablet hides its last row under the bar. */
    .lq-content {
        padding: 1.75rem 1.5rem calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 1.5rem);
    }
    .lq-head__title { font-size: 1.75rem; }

    .lq-facts > div { padding: .75rem 0; }
    .lq-facts dd { font-size: 1rem; }
}

@media (min-width: 992px) {
    .lq-login__card { max-width: 24rem; padding: 2.5rem 2.25rem 1.75rem; }
}

/* Above this the rail takes over and the phone chrome retires. */
@media (min-width: 1200px) {
    .lq-rail { display: flex; }
    .lq-main { margin-left: var(--rail-w); }
    .lq-topbar, .lq-tabbar { display: none; }
    .lq-content { padding: 2rem 2.5rem 3rem; }

    /* Tracker turns on its side: plenty of room now. */
    .lq-track { flex-direction: row; align-items: flex-start; }

    .lq-track__node {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        flex: 1;
        padding-bottom: 0;
    }

    .lq-track__node:not(:last-child)::before {
        left: calc(50% + 14px);
        right: calc(-50% + 14px);
        top: 13px;
        bottom: auto;
        width: auto;
        height: 2px;
    }

    .lq-track__label { line-height: 1.35; margin-top: .5rem; }
    .lq-track__node.is-pending .lq-track__label { color: var(--ink-3); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media print {
    .lq-rail, .lq-topbar, .lq-tabbar, .lq-actions, .btn { display: none !important; }
    .lq-main { margin-left: 0; }
    .lq-content { max-width: none; padding: 0; }
    .lq-card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
    body { background: #fff; }
}
