/* OtoXper - customer app
   Mobile only. This layer is rendered inside a React Native WebView, so there is no
   desktop breakpoint on purpose; the widest thing it ever has to handle is a tablet,
   which the max-width on .shell covers.

   Palette ported from constants/colors.ts of the Expo app. */

:root {
    --brand: #E8390E;
    --brand-dark: #C22D08;
    --brand-soft: #FEF4F1;
    --brand-light: #FFF0EC;
    --navy: #0B1220;
    --navy-2: #111A2E;
    --navy-3: #1B2540;
    --ink: #0F172A;
    --ink-soft: #475569;
    --ink-faint: #94A3B8;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --tint: #F4F6FB;
    --tint-2: #EEF1F7;
    --paper: #ffffff;
    --success: #059669;
    --success-soft: #ECFDF5;
    --warning: #D97706;
    --warning-soft: #FFFBEB;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --info: #2563EB;
    --info-soft: #EFF6FF;
    --radius: 16px;
    --radius-sm: 12px;
    --tabbar: 64px;
    --shadow: 0 1px 6px rgba(15, 23, 42, .05);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html.is-native {
    --safe-top: 0px;
    --safe-bottom: 0px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--tint);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--brand);
}

svg {
    display: block;
}

/* ---------- shell ---------- */

.shell {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--tint);
    display: flex;
    flex-direction: column;
}

.shell--plain {
    background: var(--paper);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: calc(var(--safe-top) + 54px);
    padding: var(--safe-top) 16px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.topbar__titles {
    flex: 1;
    min-width: 0;
}

.topbar__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.2px;
}

.topbar__subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .brandmark {
    font-size: 17px;
}

.topbar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -7px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    flex: none;
    background: var(--tint-2);
    border: 1px solid var(--line);
}

.topbar__back:active {
    background: var(--line);
}

.topbar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: var(--ink-faint);
    border-radius: 10px;
}

.topbar__action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.content {
    flex: 1;
    padding: 16px 16px calc(var(--tabbar) + var(--safe-bottom) + 20px);
}

.content--flush {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.content--notab {
    padding-bottom: calc(var(--safe-bottom) + 24px);
}

.content--flush.content--notab {
    padding-bottom: calc(var(--safe-bottom) + 24px);
}

.pad {
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- tab bar ---------- */

.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    background: var(--paper);
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}

.tabbar__inner {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    display: flex;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: var(--tabbar);
    text-decoration: none;
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
}

.tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
}

.tab svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab.is-active {
    color: var(--brand);
}

/* ---------- hero (the analysis home header) ---------- */

.hero {
    background: var(--navy);
    color: #fff;
    padding: calc(var(--safe-top) + 20px) 24px 34px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 18px rgba(11, 18, 32, .18);
}

.hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.hero__logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(232, 57, 14, .35);
}

.hero__logo svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.hero__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.6px;
    margin: 0 0 12px;
}

.hero__sub {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.5;
}

/* ---------- cards ---------- */

.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.card--flush {
    padding: 0;
    overflow: hidden;
}

.card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.card--dark {
    background: var(--navy);
    color: #fff;
    border-color: transparent;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 4px;
}

/* ---------- premium banner ---------- */

.premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--navy-2);
    border: 1px solid rgba(232, 57, 14, .4);
    color: #F8FAFC;
    text-decoration: none;
}

.premium--active {
    border-color: rgba(5, 150, 105, .35);
}

.premium__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.premium--active .premium__icon {
    background: rgba(5, 150, 105, .15);
}

.premium__icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.premium--active .premium__icon svg {
    stroke: #10B981;
}

.premium__body {
    flex: 1;
    min-width: 0;
}

.premium__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.premium__sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94A3B8;
}

.premium__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--brand);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* ---------- step cards (the picker) ---------- */

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.step.is-active {
    border: 1.5px solid var(--brand);
    box-shadow: 0 0 0 4px rgba(232, 57, 14, .08);
}

.step.is-complete {
    border-color: #A7F3D0;
    background: var(--success-soft);
}

.step.is-locked {
    opacity: .45;
    pointer-events: none;
}

.step__index {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--tint-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    flex: none;
}

.step.is-active .step__index {
    background: var(--brand);
    color: #fff;
}

.step.is-complete .step__index {
    background: var(--success);
    color: #fff;
}

.step__index svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step__body {
    flex: 1;
    min-width: 0;
}

.step__label {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-faint);
}

.step__value {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.step__placeholder {
    margin: 0;
    font-size: 13px;
    color: var(--ink-faint);
}

.step__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: none;
}

.step__side svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step.is-complete .step__side svg,
.step.is-active .step__side svg {
    stroke: var(--brand);
}

.step__edit {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    background: var(--line);
    padding: 3px 8px;
    border-radius: 6px;
}

.step__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(232, 57, 14, .28);
}

.btn:active {
    background: var(--brand-dark);
}

.btn[disabled],
.btn.is-disabled {
    background: var(--line);
    color: var(--ink-faint);
    box-shadow: none;
    cursor: default;
}

/* A visually disabled button still takes the tap, so the page can say why. */
.btn[disabled] {
    pointer-events: none;
}

.btn--ghost {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn--ghost:active {
    background: var(--tint);
}

.btn--quiet {
    background: transparent;
    color: var(--ink-soft);
    box-shadow: none;
}

.btn--quiet:active {
    background: var(--tint-2);
}

.btn--danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid #FECACA;
    box-shadow: none;
}

.btn--danger:active {
    background: #FEE2E2;
}

.btn--sm {
    width: auto;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn .spinner {
    width: 20px;
    height: 20px;
    border-width: 2.5px;
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

.hint {
    margin: 0;
    font-size: 13px;
    color: var(--ink-faint);
    text-align: center;
}

/* The report date under the hero: breathing room from the card above and the tabs below. */
.hint--report {
    margin: 4px 0 2px;
    line-height: 1.5;
}

/* ---------- forms ---------- */

.field {
    margin-bottom: 16px;
}

.field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.field__input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 16px;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
}

.field__input:focus {
    outline: none;
    border-color: var(--brand);
}

.field__input:disabled,
.field__input[readonly] {
    background: var(--tint);
    color: var(--ink-soft);
}

.field__input.is-error {
    border-color: var(--danger);
}

.field__hint {
    display: block;
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 7px;
}

.field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--danger);
    margin-top: 7px;
}

.field__row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.field__row .field__input {
    flex: 1;
}

/* A button that looks like an input and opens a sheet. */
.picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 16px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.picker.is-empty {
    color: var(--ink-faint);
}

.picker:disabled {
    opacity: .5;
    cursor: default;
}

.picker svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.picker__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- segmented tabs (in-page) ---------- */

.segments {
    display: flex;
    gap: 8px;
}

.segment {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.segment.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.segment--blue.is-active {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

.segment svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.segment__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.segment__badge--warn {
    background: #F59E0B;
}

/* ---------- lists ---------- */

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

.row:last-child {
    border-bottom: 0;
}

.row__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.row__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row__body {
    flex: 1;
    min-width: 0;
}

.row__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row__meta {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row__extra {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-faint);
}

.row__action {
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    flex: none;
}

.row__action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row__chev {
    width: 18px;
    height: 18px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* ---------- pills ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--brand-light);
    color: var(--brand-dark);
    border: 1px solid transparent;
}

.pill--muted {
    background: var(--tint-2);
    color: var(--ink-soft);
}

.pill--high {
    background: rgba(220, 38, 38, .15);
    border-color: rgba(220, 38, 38, .3);
    color: #DC2626;
}

.pill--med {
    background: rgba(217, 119, 6, .15);
    border-color: rgba(217, 119, 6, .3);
    color: #D97706;
}

.pill--low {
    background: rgba(5, 150, 105, .15);
    border-color: rgba(5, 150, 105, .3);
    color: #059669;
}

.pill--buy {
    background: rgba(124, 58, 237, .18);
    border-color: rgba(124, 58, 237, .35);
    color: #7C3AED;
}

.pill--tips {
    background: rgba(180, 83, 9, .18);
    border-color: rgba(180, 83, 9, .35);
    color: #B45309;
}

.pill--ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

button.pill {
    cursor: pointer;
}

.pill svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- results page ---------- */

.vhero {
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(11, 18, 32, .22);
}

.vhero__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vhero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.vhero__model {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.vhero__paket {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.vhero__summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.risk {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.risk__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 700;
}

.risk__head--yuksek {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.risk__head--orta {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #D97706;
}

.risk__head--dusuk {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #059669;
}

.risk__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.risk__count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk__count span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.issue {
    background: var(--paper);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: rise .32s ease both;
}

.issue--yuksek {
    border-left-color: #DC2626;
}

.issue--orta {
    border-left-color: #D97706;
}

.issue--dusuk {
    border-left-color: #059669;
}

.issue__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.issue__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.issue__km {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
}

.issue__km svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.advice__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 14px;
}

.advice__emoji {
    font-size: 22px;
}

.advice__label {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.advice__answer {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    padding-left: 4px;
}

.advice__group {
    margin-top: 12px;
}

.advice__group-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.advice__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 6px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.advice__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 3px;
    margin-top: 7px;
    flex: none;
    background: var(--dot, var(--ink-faint));
}

.tips {
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: 18px;
    padding: 18px;
    color: #78350F;
}

.tips__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tips__emoji {
    font-size: 26px;
}

.tips__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #92400E;
}

.tips__sub {
    margin: 0;
    font-size: 12px;
    color: #B45309;
}

.tips__intro {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.tips__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 8px;
}

.spec {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.spec__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #F0F7FF;
    border-bottom: 1px solid #DBEAFE;
    font-size: 14px;
    font-weight: 700;
    color: #1E40AF;
}

.spec__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.4;
}

.spec__row:last-child {
    border-bottom: 0;
}

.spec__key {
    color: var(--ink-soft);
    flex: 1;
}

.spec__val {
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.spec__val--accent {
    color: #1D4ED8;
}

.spec-title {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 14px;
}

.spec-title__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1E3A8A;
}

.spec-title__sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #3B82F6;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--ink-faint);
}

.note svg {
    width: 16px;
    height: 16px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.note--brand {
    background: var(--brand-soft);
    border-color: #FCE3DC;
    color: var(--ink-soft);
    font-size: 13px;
}

.note--brand svg {
    stroke: var(--brand);
    width: 18px;
    height: 18px;
}

.loading-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 40px auto 0;
    max-width: 340px;
}

.loading-card__logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 4px;
}

.loading-card__logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.loading-card__brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.loading-card__model {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}

.loading-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.loading-card__sub {
    font-size: 14px;
    color: var(--ink-soft);
}

.loading-card .spinner {
    margin-top: 14px;
}

/* ---------- vehicle / maintenance ---------- */

.gauge {
    background: var(--navy-2);
    border: 1px solid var(--navy-3);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.gauge__svg {
    width: 200px;
    height: 140px;
    margin: 0 auto;
}

.gauge__score {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    margin-top: -60px;
}

.gauge__of {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 18px;
}

.gauge__label {
    font-size: 15px;
    font-weight: 700;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 3px solid;
    margin-bottom: 8px;
}

.notice--info {
    background: #0F2027;
    border-color: #3B82F6;
}

.notice--warning {
    background: #1A1200;
    border-color: #F59E0B;
}

.notice--critical {
    background: #1A0000;
    border-color: #EF4444;
}

.notice__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.notice--info .notice__title {
    color: #3B82F6;
}

.notice--warning .notice__title {
    color: #F59E0B;
}

.notice--critical .notice__title {
    color: #EF4444;
}

.notice__body {
    margin: 2px 0 0;
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.45;
}

.reminder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 8px;
}

.reminder--ok {
    background: #051A0F;
    border-color: #064E30;
}

.reminder--warning {
    background: #1A1200;
    border-color: #3D2800;
}

.reminder--critical,
.reminder--expired {
    background: #1A0000;
    border-color: #3D0000;
}

.reminder__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.reminder__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reminder__label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #F8FAFC;
}

.reminder__date {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94A3B8;
}

.reminder__badge {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
}

.reminder--ok .reminder__icon,
.reminder--ok .reminder__badge {
    color: #10B981;
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .25);
}

.reminder--warning .reminder__icon,
.reminder--warning .reminder__badge {
    color: #F59E0B;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .25);
}

.reminder--critical .reminder__icon,
.reminder--critical .reminder__badge,
.reminder--expired .reminder__icon,
.reminder--expired .reminder__badge {
    color: #EF4444;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .25);
}

.weather {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--navy-2);
    border: 1px solid var(--navy-3);
    font-size: 13px;
    color: #94A3B8;
}

.weather--warn {
    color: #60A5FA;
    border-color: rgba(96, 165, 250, .3);
}

.weather svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pred__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pred__title svg {
    width: 20px;
    height: 20px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pred__value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.pred__sub {
    font-size: 13px;
    color: #94A3B8;
}

.stat {
    display: flex;
    text-align: center;
}

.stat>div {
    flex: 1;
}

.stat>div+div {
    border-left: 1px solid var(--line);
}

.stat__value {
    font-size: 22px;
    font-weight: 800;
}

.stat__label {
    font-size: 12px;
    color: var(--ink-faint);
}

.tire {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    white-space: nowrap;
}

.tire__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ---------- profile ---------- */

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 3px solid var(--paper);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 10px;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar svg {
    width: 44px;
    height: 44px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar__edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar__edit svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 2.2;
}

.avatar-form {
    text-align: center;
    cursor: pointer;
}

.avatar-form input {
    display: none;
}

/* ---------- sign in ---------- */

.auth {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 54px - 40px);
    gap: 16px;
    padding-bottom: 8px;
}

.auth__brand {
    text-align: center;
    margin-bottom: 4px;
}

.auth__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--brand);
    box-shadow: 0 8px 24px rgba(232, 57, 14, .28);
    margin-bottom: 14px;
}

.auth__mark svg {
    width: 34px;
    height: 34px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth__name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.6px;
    margin: 0 0 6px;
}

.auth__tagline {
    margin: 0;
    color: var(--ink-faint);
    font-size: 14px;
}

.auth__legal {
    text-align: center;
    font-size: 12px;
    color: var(--ink-faint);
    margin: 0;
    line-height: 1.5;
}

.auth__legal a {
    color: var(--ink-soft);
}

.auth__switch {
    text-align: center;
    font-size: 14px;
    color: var(--ink-faint);
    margin: 4px 0 0;
}

.auth__switch a {
    font-weight: 600;
    text-decoration: none;
}

.auth__forgot {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 12px;
    text-decoration: none;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 15px;
    font-weight: 600;
    color: #1F1F1F;
    margin-bottom: 10px;
    opacity: .55;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-faint);
    font-size: 12px;
    margin: 6px 0 16px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- bottom sheet ---------- */

.sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity .2s;
}

.sheet.is-open {
    opacity: 1;
}

.sheet__card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    max-height: 88dvh;
    background: var(--tint);
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform .22s;
    padding-bottom: var(--safe-bottom);
}

.sheet.is-open .sheet__card {
    transform: none;
}

.sheet__head {
    padding: 12px 20px 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    position: relative;
}

.sheet__handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-strong);
    margin: 0 auto 12px;
}

.sheet__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.sheet__close {
    position: absolute;
    right: 14px;
    top: 22px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: var(--ink-soft);
}

.sheet__close svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.sheet__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 16px 6px;
    padding: 10px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.sheet__search svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex: none;
}

.sheet__search input {
    flex: 1;
    border: 0;
    background: none;
    font-size: 15px;
    padding: 0;
    outline: none;
    color: var(--ink);
    min-width: 0;
}

.sheet__toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 4px 20px 6px;
}

.sheet__sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.sheet__sort.is-on {
    color: var(--brand);
}

.sheet__sort svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.sheet__list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 20px;
    flex: 1;
}

.sheet__loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.sheet__section {
    padding: 16px 4px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sheet__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.sheet__item:active {
    background: var(--paper);
}

.sheet__label {
    flex: 1;
    min-width: 0;
}

.sheet__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: none;
}

.sheet__logo--empty {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--line);
    flex: none;
}

.sheet__chev {
    width: 18px;
    height: 18px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.sheet__star {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 8px;
}

.sheet__star svg {
    width: 22px;
    height: 22px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.sheet__star.is-on svg {
    stroke: #f59e0b;
    fill: #f59e0b;
}

/* ---------- dialog ---------- */

.dialog {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.dialog__card {
    width: 100%;
    max-width: 360px;
    background: var(--paper);
    border-radius: 20px;
    padding: 24px 22px 12px;
    text-align: center;
}

.dialog__title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.dialog__text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.dialog .btn+.btn {
    margin-top: 6px;
}

/* ---------- paywall ---------- */

.plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--navy-2);
    border: 1.5px solid var(--navy-3);
    border-radius: 16px;
    padding: 16px;
    color: #F8FAFC;
    position: relative;
    cursor: pointer;
}

.plan.is-selected {
    border-color: var(--brand);
    background: rgba(232, 57, 14, .08);
}

.plan__badge {
    position: absolute;
    top: -10px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--navy-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}

.plan__badge--hot {
    background: var(--brand);
}

.plan__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan__radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.plan.is-selected .plan__radio {
    background: var(--brand);
    border-color: var(--brand);
}

.plan__radio svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: none;
}

.plan.is-selected .plan__radio svg {
    display: block;
}

.plan__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.plan__note {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #94A3B8;
}

.plan__price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}

.plan__per {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #94A3B8;
    text-align: right;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: #E2E8F0;
}

.benefit__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(232, 57, 14, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.benefit svg {
    width: 18px;
    height: 18px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit__check {
    margin-left: auto;
}

.benefit__check svg {
    stroke: #10B981;
    width: 20px;
    height: 20px;
}

.crown {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 16px rgba(232, 57, 14, .4);
}

.crown svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sticky-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 20px calc(var(--safe-bottom) + 16px);
    background: rgba(11, 18, 32, .96);
    border-top: 1px solid var(--navy-3);
    z-index: 25;
}

.sticky-foot>* {
    max-width: 528px;
    margin: 0 auto;
}

/* ---------- keyboard ---------- */

/* With the keyboard up the fixed tab bar would sit on top of it and hide the
   field being typed into. keyboard.js flips this class. */
html.keyboard-open .tabbar {
    display: none;
}

html.keyboard-open .content {
    padding-bottom: 24px;
}

/* ---------- pagination ---------- */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.pager__page,
.pager__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pager__page.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pager__step svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pager__step.is-off {
    opacity: .35;
}

.pager__dots {
    color: var(--ink-faint);
    padding: 0 4px;
}

/* ---------- pull to refresh ---------- */

/* The content follows the finger; the indicator lives in the gap that opens above it.
   No will-change here: a transform on .content would turn its position:fixed
   children into absolute ones, so it exists only for the moment of the pull. */
.content {
    position: relative;
    transform-origin: 50% 0;
}

/* While the reload runs: the content breathes at its resting point. */
.content.is-refreshing {
    animation: pull-breathe 1.1s ease-in-out infinite;
}

@keyframes pull-breathe {
    0%, 100% { transform: translateY(var(--pull-hold, 96px)) scaleY(1.025); }
    50%      { transform: translateY(calc(var(--pull-hold, 96px) + 6px)) scaleY(1.035); }
}

.pull {
    position: absolute;
    top: -52px;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.pull__disc {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .14), 0 0 0 1px var(--line);
    transition: background .18s, box-shadow .18s;
}

.pull svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The ring draws itself clockwise as the pull progresses. */
.pull__ring {
    stroke-width: 2.5;
    stroke-dasharray: 107;
    stroke-dashoffset: 107;
    transform: rotate(-90deg);
    opacity: .9;
}

.pull__arrow {
    padding: 9px;
    stroke-width: 2.4;
    transition: transform .12s ease-out;
}

.pull__spinner {
    stroke-width: 3;
    stroke-dasharray: 80 27;
    opacity: 0;
}

/* Armed: the disc turns brand-coloured, the arrow white - a clear "let go now". */
.pull.is-armed .pull__disc {
    background: var(--brand);
    box-shadow: 0 6px 18px rgba(232, 57, 14, .35);
}

.pull.is-armed svg {
    stroke: #fff;
}

.pull.is-armed .pull__ring {
    opacity: 0;
}

/* Spinning: the arrow and ring give way to a turning arc. */
.pull.is-spinning .pull__arrow,
.pull.is-spinning .pull__ring {
    opacity: 0;
}

.pull.is-spinning .pull__spinner {
    opacity: 1;
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- toasts (libs/notify) ---------- */

.custom-notify {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: 528px;
    margin: 0 auto;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
}

.custom-notify .icon {
    display: none !important;
}

.custom-notify .text {
    flex: 1;
}

.custom-notify .close {
    opacity: .7;
}

.custom-notify.bg-success {
    background: var(--success) !important;
}

.custom-notify.bg-danger {
    background: var(--danger) !important;
}

.custom-notify.bg-warning {
    background: var(--warning) !important;
}

.custom-notify.bg-info {
    background: var(--navy-3) !important;
}

/* ---------- misc ---------- */

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 40px 16px;
}

.empty__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.empty p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.empty svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.brandmark__dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--brand);
}

.stack>*+* {
    margin-top: 14px;
}

.muted {
    color: var(--ink-faint);
    font-size: 13px;
}

.center {
    text-align: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 12px;
}

.legal-links a {
    color: var(--ink-faint);
    text-decoration: none;
}

.doc h2 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--brand);
    margin: 20px 0 8px;
}

.doc p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    white-space: pre-line;
}

/* =====================================================================
   Theme. theme.js stamps data-theme on <html> before the first paint; every
   colour above is a variable, so this block is the whole dark palette.
   ===================================================================== */

html[data-theme="dark"] {
    --paper: #111A2E;
    --tint: #0B1220;
    --tint-2: #1B2540;
    --ink: #F8FAFC;
    --ink-soft: #CBD5E1;
    --ink-faint: #7B8AA8;
    --line: #1B2540;
    --line-strong: #2A3650;
    --brand-soft: rgba(232, 57, 14, .12);
    --brand-light: rgba(232, 57, 14, .18);
    --success-soft: rgba(5, 150, 105, .14);
    --warning-soft: rgba(217, 119, 6, .14);
    --danger-soft: rgba(220, 38, 38, .14);
    --info-soft: rgba(37, 99, 235, .14);
    --shadow: 0 1px 6px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

html[data-theme="dark"] .tabbar {
    background: #111A2E;
    border-top: 1px solid var(--line-strong);
    box-shadow: none;
}

html[data-theme="dark"] .step.is-complete {
    border-color: rgba(5, 150, 105, .4);
}

html[data-theme="dark"] .step__edit {
    background: var(--tint-2);
}

html[data-theme="dark"] .sheet__card,
html[data-theme="dark"] .dialog__card {
    background: var(--tint);
}

html[data-theme="dark"] .sheet__item:active {
    background: var(--tint-2);
}

html[data-theme="dark"] .segment.is-active {
    background: var(--brand);
}

html[data-theme="dark"] .segment--blue.is-active {
    background: #1D4ED8;
}

html[data-theme="dark"] .spec__head,
html[data-theme="dark"] .spec-title {
    background: rgba(29, 78, 216, .15);
    border-color: rgba(96, 165, 250, .25);
    color: #93C5FD;
}

html[data-theme="dark"] .spec-title__name {
    color: #BFDBFE;
}

html[data-theme="dark"] .spec__val--accent {
    color: #93C5FD;
}

html[data-theme="dark"] .tips {
    background: rgba(217, 119, 6, .12);
    border-color: rgba(253, 230, 138, .3);
    color: #FDE68A;
}

html[data-theme="dark"] .tips__title,
html[data-theme="dark"] .tips__sub {
    color: #FCD34D;
}

html[data-theme="dark"] .social {
    color: var(--ink);
}

html[data-theme="dark"] .risk__head--yuksek {
    background: rgba(220, 38, 38, .14);
    border-color: rgba(220, 38, 38, .35);
}

html[data-theme="dark"] .risk__head--orta {
    background: rgba(217, 119, 6, .14);
    border-color: rgba(217, 119, 6, .35);
}

html[data-theme="dark"] .risk__head--dusuk {
    background: rgba(5, 150, 105, .14);
    border-color: rgba(5, 150, 105, .35);
}

/* ---------- theme-aware replacements for the old dark-only Aracım widgets ---------- */

.gauge {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
}

.gauge__track {
    stroke: var(--line);
}

html[data-theme="dark"] .gauge__track {
    stroke: #1E293B;
}

.gauge__of {
    color: var(--ink-faint);
}

.notice--info {
    background: var(--info-soft);
}

.notice--warning {
    background: var(--warning-soft);
}

.notice--critical {
    background: var(--danger-soft);
}

.notice__body {
    color: var(--ink-soft);
}

.reminder--ok {
    background: var(--success-soft);
    border-color: rgba(16, 185, 129, .3);
}

.reminder--warning {
    background: var(--warning-soft);
    border-color: rgba(245, 158, 11, .3);
}

.reminder--critical,
.reminder--expired {
    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, .3);
}

.reminder__label {
    color: var(--ink);
}

.reminder__date {
    color: var(--ink-faint);
}

.weather {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.weather--warn {
    color: #2563EB;
    border-color: rgba(37, 99, 235, .3);
}

html[data-theme="dark"] .weather--warn {
    color: #60A5FA;
}

.pred__sub {
    color: var(--ink-faint);
}

.tire {
    color: var(--ink-soft);
}

.segments--sm .segment {
    padding: 8px 10px;
    font-size: 12.5px;
}

.theme-switch {
    max-width: 320px;
    margin: 0 auto;
}

/* ---------- brand ---------- */

.brandmark__logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.hero__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(232, 57, 14, .35);
}

.hero {
    background: linear-gradient(160deg, #141F38 0%, #0B1220 60%, #0B1220 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 57, 14, .35), rgba(232, 57, 14, 0) 70%);
    pointer-events: none;
}

.hero>* {
    position: relative;
}

/* ---------- sign in, redesigned ---------- */

.auth {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 8px;
}

.auth__logo {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(232, 57, 14, .3);
    margin-bottom: 14px;
}

.auth__card {
    padding: 22px 18px 18px;
}

.auth__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.auth__sub {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--ink-faint);
}

.input {
    position: relative;
}

.input>svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input .field__input {
    padding-left: 44px;
}

.input--action .field__input {
    padding-right: 48px;
}

.input__action {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: 0;
    background: none;
    border-radius: 10px;
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input__action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field__input:focus~svg {
    stroke: var(--brand);
}

.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -6px 0 16px;
    font-size: 13px;
}

.auth__row a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    margin: 0;
}

.social {
    opacity: 1;
    gap: 12px;
    font-weight: 600;
}

.social--apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

html[data-theme="dark"] .social--apple {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.social__g {
    width: 20px;
    height: 20px;
}

.strength {
    height: 5px;
    border-radius: 3px;
    background: var(--line);
    margin-top: 8px;
    overflow: hidden;
}

.strength__bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--danger);
    transition: width .2s, background .2s;
}

.auth__meta {
    text-align: center;
    margin-top: 6px;
}

/* Auth screens draw no top bar: the card says what the screen is. */
.auth {
    padding: calc(var(--safe-top) + 28px) 16px 0;
}

.auth__logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 22px;
}

.auth__back {
    position: absolute;
    left: 12px;
    top: calc(var(--safe-top) + 12px);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
}

.auth__back svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth {
    position: relative;
}

/* ---------- signed-in chip on the hero, avatar in the tab bar ---------- */

.hero__user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    max-width: 60%;
}

.hero__user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    line-height: 1.15;
}

.hero__user-hi {
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}

.hero__user-name {
    font-size: 13.5px;
    font-weight: 700;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .25);
    flex: none;
}

.hero__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    font-size: 15px;
    font-weight: 800;
}

.tab__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.tab.is-active .tab__avatar {
    border-color: var(--brand);
}

/* ---------- one-time code ---------- */

.field__input--code {
    text-align: center;
    letter-spacing: 12px;
    font-size: 26px;
    font-weight: 700;
    padding-left: 24px;
}

/* ---------- onboarding ---------- */

.onboard {
    padding: calc(var(--safe-top) + 36px) 20px calc(var(--safe-bottom) + 24px);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.onboard__logo {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    margin: 0 auto 18px;
    box-shadow: 0 12px 30px rgba(232, 57, 14, .3);
}

.onboard__title {
    margin: 0;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.25;
}

.onboard__card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.onboard__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: none;
}

.onboard__card-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.onboard__card-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.onboard__foot {
    margin-top: auto;
    padding-top: 28px;
}

/* ---------- services map ---------- */

.svc__head {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
}

.svc__intro {
    font-size: 13px;
    font-weight: 500;
}

.svc__bar {
    display: flex;
    gap: 8px;
}

.svc__bar .segment {
    padding: 9px 8px;
    font-size: 12.5px;
    gap: 4px;
}

.svc__bar b {
    font-weight: 600;
    opacity: .7;
}

.svc__bar--where {
    margin-top: 8px;
    align-items: stretch;
}

.svc__me {
    flex: none;
    width: 42px;
    padding: 0 !important;
    justify-content: center;
}

.svc__me.is-busy svg {
    animation: spin .8s linear infinite;
}

.svc__city {
    flex: 1;
    min-width: 0;
}

.svc__radius {
    display: flex;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
}

.svc__radius .segment {
    border: 0;
    border-radius: 0;
    padding: 9px 6px;
    font-size: 11px;
    min-width: 0;
    white-space: nowrap;
}

.svc__radius .segment + .segment {
    border-left: 1px solid var(--line);
}

.svc__map {
    position: relative;
}

.svc__overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    color: var(--ink-soft);
    backdrop-filter: blur(2px);
}

html[data-theme="dark"] .svc__overlay {
    background: rgba(11, 18, 32, .72);
}

.svc__city span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.svc__map {
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    position: relative;
    z-index: 0;
}

.svc__loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.svc__loading p {
    margin: 0;
}

.svc-pin span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .leaflet-tile {
    filter: brightness(.7) contrast(1.1) saturate(.8);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    font-family: inherit;
}

.vhero__share {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.vhero__share svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- compare ---------- */

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

.cmp__head {
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.cmp__head--better {
    outline: 2px solid var(--success);
}

.cmp__brand {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.cmp__model {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 800;
}

.cmp__paket {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.cmp__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.cmp__row:last-child {
    border-bottom: 0;
}

.cmp__cell {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.cmp__cell--sm {
    font-size: 13px;
    font-weight: 600;
}

.cmp__label {
    font-size: 12px;
    color: var(--ink-faint);
    text-align: center;
    min-width: 90px;
}

.cmp--text>div {
    font-size: 13px;
}

.cmp__li {
    margin: 0 0 8px;
    line-height: 1.45;
}

body.is-comparing [data-id] {
    cursor: pointer;
    opacity: .75;
}

body.is-comparing [data-id].is-picked {
    opacity: 1;
    outline: 2px solid var(--brand);
}

/* ---------- switch ---------- */

.switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex: none;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--line-strong);
    transition: background .2s;
    cursor: pointer;
}

.switch span::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .2s;
}

.switch input:checked+span {
    background: var(--success);
}

.switch input:checked+span::after {
    transform: translateX(20px);
}

/* ---------- daily quota line under the premium banner ---------- */

.quota {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.quota__count {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.quota__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.quota__text b {
    color: var(--ink);
}

.quota__text a {
    font-weight: 600;
    text-decoration: none;
}

/* The quota card as a link (sign up / verify), and its warning colour. */
.quota--link {
    text-decoration: none;
    color: inherit;
}

.quota--link .row__chev {
    flex: none;
}

.quota--warn {
    border-color: rgba(217, 119, 6, 0.35);
    background: rgba(217, 119, 6, 0.08);
}

.quota--warn .quota__count {
    background: #D97706;
    color: #fff;
}

/* ---------- report: the richer issue card ---------- */

.issue__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill--ghost {
    background: var(--tint);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.issue__symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 2px;
}

.issue__symptom {
    font-size: 12px;
    line-height: 1.3;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink-soft);
    border: 1px dashed var(--line-strong, var(--line));
}

.issue__fix {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(5, 150, 105, 0.07);
    border-left: 3px solid #059669;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.issue__fix-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 2px;
}

.issue__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
}

.issue__meta .issue__km {
    margin-top: 0;
}

.issue__km--cost {
    color: var(--brand);
}

/* the score badge on "Alınır mı?" */
.advice__head {
    flex-wrap: wrap;
}

.advice__score {
    margin-left: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1;
}

.advice__score-num {
    font-size: 22px;
}

.advice__score-of {
    font-size: 12px;
    opacity: .7;
}

.advice__score-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-left: 6px;
    opacity: .8;
}

.advice__score--good { background: rgba(5, 150, 105, .12); color: #059669; }
.advice__score--mid  { background: rgba(217, 119, 6, .12);  color: #D97706; }
.advice__score--bad  { background: rgba(220, 38, 38, .12);  color: #DC2626; }

.advice__note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.advice__note b {
    color: var(--ink);
}

.tips__stop-title {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #DC2626;
}

.tips__item--stop {
    background: rgba(220, 38, 38, .06);
    border-radius: 10px;
    padding: 8px 10px;
}

/* ---------- analysis: the staged progress ---------- */

.progress {
    width: 100%;
    height: 8px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #F97316);
    transition: width .6s cubic-bezier(.2,.8,.2,1);
    position: relative;
}

/* a soft sheen that keeps moving, so a slow stretch never looks frozen */
.progress__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: progress-sheen 1.4s ease-in-out infinite;
}

@keyframes progress-sheen {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.progress__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
}

.progress__stage {
    color: var(--ink-soft);
    text-align: left;
}

.progress__pct {
    font-weight: 800;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steps__item {
    position: relative;
    padding-left: 26px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-faint);
    transition: color .3s;
}

.steps__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--line-strong, var(--line));
    box-sizing: border-box;
    transition: all .3s;
}

.steps__item.is-active {
    color: var(--ink);
    font-weight: 600;
}

.steps__item.is-active::before {
    border-color: var(--brand);
    border-top-color: transparent;
    animation: spin .8s linear infinite;
}

.steps__item.is-done {
    color: var(--ink-soft);
}

.steps__item.is-done::before {
    background: #059669;
    border-color: #059669;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- report: sources (grounded answers) ---------- */

.sources {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}

.sources__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.sources__sub {
    margin: 2px 0 10px;
    font-size: 12px;
    color: var(--ink-faint);
}

.sources__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

.sources__num {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--tint);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sources__text {
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink);
    min-width: 0;
    overflow-wrap: anywhere;
}

.sources__text small {
    display: block;
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 1px;
}

/* ---------- paywall: the legal line ---------- */

.paywall__legal {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: #64748B;
}

.paywall__legal a {
    color: #94A3B8;
    text-decoration: underline;
}
