    :root {
      color-scheme: light;
      --bg-start: #dff6e8;
      --bg-mid: #f3fbf6;
      --bg-end: #ffffff;
      --green: #006b3a;
      --green-2: #069a54;
      --green-soft: #e4f5ea;
      --green-glow: rgba(0, 107, 58, .18);
      --blue: #1f73e0;
      --violet: #7467f0;
      --orange: #e36b24;
      --pink: #d4477f;
      --ink: #0b1320;
      --muted: #4b5565;
      --line: rgba(16, 24, 40, .16);
      --surface: rgba(255, 255, 255, .94);
      --surface-solid: #fff;
      --surface-elevated: rgba(255, 255, 255, .96);
      --danger: #d92d20;
      --warning: #b54708;
      --shadow-sm: 0 2px 8px rgba(16, 24, 40, .04);
      --shadow: 0 8px 24px rgba(16, 24, 40, .08);
      --shadow-lg: 0 16px 48px rgba(16, 24, 40, .12);
      --radius-sm: 6px;
      --radius: 10px;
      --radius-lg: 14px;
      --radius-xl: 18px;
      --nav-height: 88px;
      --focus: rgba(31, 115, 224, .35);
      --focus-ring: 0 0 0 3px var(--focus);
      --glass: rgba(255, 255, 255, .72);
      --glass-border: rgba(255, 255, 255, .48);
      --liquid-surface: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(249, 253, 251, .88));
      --liquid-border: rgba(255, 255, 255, .82);
      --liquid-highlight: rgba(255, 255, 255, .62);
      --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
      --transition-base: .25s cubic-bezier(.4, 0, .2, 1);
      --transition-slow: .4s cubic-bezier(.4, 0, .2, 1);
      --contain-layout: layout style paint;
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      :root {
        --bg-start: #0d1f14;
        --bg-mid: #131e1a;
        --bg-end: #0f1720;
        --green: #22c55e;
        --green-2: #34d373;
        --green-soft: rgba(34, 197, 94, .15);
        --green-glow: rgba(34, 197, 94, .12);
        --blue: #60a5fa;
        --violet: #a78bfa;
        --orange: #fb923c;
        --pink: #f472b6;
        --ink: #f1f5f9;
        --muted: #94a3b8;
        --line: rgba(148, 163, 184, .15);
        --surface: rgba(15, 23, 42, .78);
        --surface-solid: #0f172a;
        --surface-elevated: rgba(30, 41, 59, .92);
        --danger: #f87171;
        --warning: #fbbf24;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
        --shadow: 0 8px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, .4);
        --glass: rgba(30, 41, 59, .64);
        --glass-border: rgba(148, 163, 184, .12);
        --liquid-surface: linear-gradient(145deg, rgba(30, 41, 59, .74), rgba(15, 23, 42, .58));
        --liquid-border: rgba(148, 163, 184, .18);
        --liquid-highlight: rgba(255, 255, 255, .10);
        --focus: rgba(96, 165, 250, .4);
      }
    }
    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    html {
      background: #f5fbf7;
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      html { background: #0b1215; }
    }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.62) 0 18%, transparent 36%),
        radial-gradient(circle at 84% 4%, rgba(20,168,91,.16) 0 18%, transparent 34%),
        radial-gradient(circle at 70% 82%, rgba(31,115,224,.10) 0 22%, transparent 42%),
        linear-gradient(156deg, var(--bg-start) 0%, var(--bg-mid) 38%, var(--bg-end) 100%);
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 14px;
      letter-spacing: 0;
      line-height: 1.5;
      overscroll-behavior-y: contain;
    }
    body.service-mode {
      background:
        linear-gradient(156deg, #d4f5e1 0%, #eefdf6 42%, #f7fbff 100%);
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      body.service-mode {
        background: linear-gradient(156deg, #0d1f14 0%, #131e1a 42%, #0f1720 100%);
      }
    }
    button, input, textarea, select {
      font: inherit;
      letter-spacing: 0;
      min-height: 44px;
      touch-action: manipulation;
    }
    button { cursor: pointer; -webkit-appearance: none; }
    button:disabled { cursor: not-allowed; opacity: .5; }
    button:focus, input:focus, textarea:focus, select:focus { outline: none; }
    :focus-visible {
      outline: none;
      box-shadow: var(--focus-ring);
      border-radius: var(--radius);
    }
    @media (prefers-reduced-motion: reduce) {
      * { scroll-behavior: auto !important; }
      *, *::before, *::after { transition: none !important; animation: none !important; }
    }
    h1, h2, h3, p { margin: 0; }
    h1 { font-size: 27px; line-height: 1.08; font-weight: 800; letter-spacing: 0; }
    h2 { font-size: 18px; line-height: 1.18; font-weight: 800; letter-spacing: 0; }
    h3 { font-size: 14px; line-height: 1.22; font-weight: 800; }
    .muted { color: var(--muted); font-size: 12px; line-height: 1.4; }
    .app {
      width: min(100%, 440px);
      min-height: 100vh;
      margin: 0 auto;
      padding: 14px 14px calc(var(--nav-height) + 54px + env(safe-area-inset-bottom));
      position: relative;
      overflow-x: hidden;
      contain: var(--contain-layout);
    }
    .topbar {
      display: grid;
      grid-template-columns: 52px 1fr auto;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    body:not(.service-mode) .topbar {
      grid-template-columns: 1fr auto;
      min-height: 44px;
      margin-bottom: 10px;
    }
    body:not(.service-mode) .topbar .avatar {
      display: none;
    }
    .avatar, .icon-button {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .72);
      background: rgba(255, 255, 255, .9);
      color: var(--green);
      box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
      display: grid;
      place-items: center;
      font-weight: 900;
    }
    .avatar {
      background:
        linear-gradient(135deg, rgba(5, 136, 63, .94), rgba(31, 115, 224, .78)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Ccircle cx='44' cy='32' r='16' fill='%23fff' opacity='.95'/%3E%3Cpath d='M19 75c6-22 44-22 50 0' fill='%23fff' opacity='.95'/%3E%3C/svg%3E");
      background-size: cover;
      overflow: hidden;
      color: #fff;
      font-size: 15px;
    }
    .avatar img { width: 100%; height: 100%; object-fit: cover; }
    .top-profile {
      min-height: 52px;
      border: 0;
      border-radius: 26px;
      padding: 8px 14px;
      background: rgba(255, 255, 255, .9);
      color: var(--ink);
      box-shadow: 0 10px 26px rgba(16, 24, 40, .07);
      display: grid;
      justify-items: start;
      align-content: center;
      gap: 2px;
      text-align: left;
      min-width: 0;
    }
    body:not(.service-mode) .top-profile {
      min-height: 38px;
      width: fit-content;
      border-radius: 0;
      padding: 0 0 0 22px;
      background: transparent;
      box-shadow: none;
      position: relative;
    }
    body:not(.service-mode) .top-profile::before {
      content: "";
      position: absolute;
      left: 1px;
      top: 50%;
      width: 14px;
      height: 14px;
      border: 2px solid #3b4858;
      border-radius: 50% 50% 50% 0;
      transform: translateY(-58%) rotate(-45deg);
      opacity: .78;
    }
    body:not(.service-mode) .top-profile b {
      font-size: 13px;
      font-weight: 900;
      color: #2a3443;
    }
    body:not(.service-mode) .top-profile span {
      display: none;
    }
    .top-profile b {
      font-size: 14px;
      line-height: 1.1;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .top-profile span { color: var(--muted); font-size: 12px; font-weight: 800; }
    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }
    .top-actions .icon-button {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(255,255,255,.72);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.88),
        0 10px 28px rgba(16,24,40,.09);
      position: relative;
    }
    .notify-dot {
      position: absolute;
      right: 4px;
      top: 2px;
      min-width: 17px;
      height: 17px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      padding: 0 4px;
      background: var(--green);
      color: #fff;
      font-size: 10px;
      font-weight: 1000;
      border: 2px solid rgba(255,255,255,.9);
    }
    body.service-mode .app {
      padding-top: 0;
    }
    body.service-mode .topbar {
      grid-template-columns: 1fr auto;
      margin: 0 -14px 12px;
      padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
      border-radius: 0 0 16px 16px;
      background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(180deg, #006c48, #004b34);
      box-shadow: 0 18px 36px rgba(0,73,47,.22);
    }
    body.service-mode .topbar .avatar {
      display: none;
    }
    body.service-mode .top-profile {
      min-height: 48px;
      padding: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: #fff;
    }
    body.service-mode .top-profile b {
      color: #fff;
      font-size: 17px;
      white-space: normal;
    }
    body.service-mode .top-profile span {
      color: rgba(255,255,255,.84);
      font-size: 13px;
    }
    body.service-mode .top-actions .icon-button {
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.22);
      color: #fff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    }
    .identity {
      height: 44px;
      border: 0;
      border-radius: 22px;
      padding: 0 14px;
      background: rgba(255, 255, 255, .9);
      color: var(--ink);
      box-shadow: 0 10px 26px rgba(16, 24, 40, .07);
      min-width: 0;
      outline: none;
    }
    .hidden { display: none !important; }
    .view { display: none; }
    .view.active { display: grid; gap: 14px; }
    .stack { display: grid; gap: 10px; }
    .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .view > .row { min-width: 0; }
    .view > .row h1 { min-width: 0; overflow-wrap: anywhere; }
    .card, .service-tile, .stat, .request-card, .field, .doc, .admin-block, .provider-card {
      position: relative;
      overflow: hidden;
      background: var(--liquid-surface);
      border: 1px solid var(--liquid-border);
      border-radius: var(--radius);
      box-shadow:
        inset 0 1px 0 var(--liquid-highlight),
        inset 0 -1px 0 rgba(5, 136, 63, .05),
        0 16px 42px rgba(16, 24, 40, .10);
      backdrop-filter: blur(22px) saturate(1.35) contrast(1.03);
      -webkit-backdrop-filter: blur(22px) saturate(1.35) contrast(1.03);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
      contain: var(--contain-layout);
    }
    .card > *, .service-tile > *, .stat > *, .request-card > *, .field > *, .doc > *, .admin-block > *, .provider-card > * {
      position: relative;
      z-index: 1;
    }
    .card::after, .service-tile::after, .stat::after, .request-card::after, .field::after, .doc::after, .admin-block::after, .provider-card::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      background:
        linear-gradient(135deg, rgba(255,255,255,.42), transparent 28%, rgba(255,255,255,.12) 56%, transparent 82%),
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.52), transparent 28%);
      opacity: .54;
      pointer-events: none;
      z-index: 0;
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .card, .service-tile, .stat, .request-card, .field, .doc, .admin-block, .provider-card {
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.08),
          inset 0 -1px 0 rgba(34,197,94,.08),
          0 16px 42px rgba(0,0,0,.34);
        backdrop-filter: blur(22px) saturate(1.18);
        -webkit-backdrop-filter: blur(22px) saturate(1.18);
      }
    }
    .card, .request-card, .admin-block, .provider-card { padding: 14px; }
    .hero {
      min-height: 220px;
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 14px;
      align-content: space-between;
      background:
        radial-gradient(circle at 82% 12%, rgba(255,255,255,.72), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .56)),
        linear-gradient(135deg, rgba(20, 168, 91, .28), rgba(31, 115, 224, .16));
      backdrop-filter: blur(28px) saturate(1.42);
      -webkit-backdrop-filter: blur(28px) saturate(1.42);
      border: 1px solid rgba(255, 255, 255, .72);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        inset 0 -1px 0 rgba(5,136,63,.08),
        0 18px 50px rgba(5, 136, 63, .10),
        var(--shadow-lg);
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .hero {
        background:
          linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(15, 23, 42, .64)),
          linear-gradient(135deg, rgba(20, 168, 91, .2), rgba(31, 115, 224, .12));
      border: 1px solid rgba(148, 163, 184, .1);
      }
    }
    .hero-head {
      display: grid;
      grid-template-columns: 1fr 118px;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    .hero-copy { display: grid; gap: 9px; min-width: 0; }
    .brand-line {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 26px;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(5, 136, 63, .10);
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
    }
    .crest {
      width: 118px;
      height: 148px;
      border-radius: var(--radius);
      display: grid;
      place-items: center;
      margin-left: auto;
      color: #0b5f92;
      background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,.98), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58)),
        linear-gradient(145deg, rgba(223, 245, 255, .42), rgba(255, 234, 165, .34));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.88),
        0 18px 38px rgba(5, 136, 63, .20);
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .82);
      padding: 4px;
    }
    .crest img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: transparent;
      padding: 0;
    }
    .crest .shield {
      width: 72px;
      height: 86px;
      border-radius: 24px 24px 34px 34px;
      background:
        linear-gradient(180deg, #f7c948 0 18%, transparent 18%),
        linear-gradient(180deg, #0876bf 0%, #075ca2 100%);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      place-items: center;
      font-weight: 1000;
      box-shadow: inset 0 -10px 0 rgba(255,255,255,.14), 0 8px 18px rgba(16,24,40,.12);
    }
    .crest .shield small {
      font-size: 10px;
      line-height: 1;
      opacity: .9;
    }
    .hero-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .stats.home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat {
      min-height: 82px;
      padding: 11px 9px;
      display: grid;
      align-content: center;
      gap: 4px;
      border: 0;
      color: inherit;
      text-align: left;
    }
    .stat b { font-size: 18px; line-height: 1.1; }
    .stat span { color: var(--muted); font-size: 12px; line-height: 1.2; }
    .service-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }
    .home-service-grid { grid-template-columns: 1fr; }
    .home-service-grid .service-tile { min-height: 116px; }
    .service-tile {
      min-height: 132px;
      padding: 12px;
      border: 0;
      color: var(--ink);
      text-align: left;
      display: grid;
      align-content: space-between;
      gap: 10px;
      position: relative;
      overflow: hidden;
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .service-tile:active { transform: scale(.97); }
    .service-tile.coming-soon {
      background:
        linear-gradient(145deg, rgba(255,255,255,.95), rgba(245,248,252,.9));
      opacity: .94;
    }
    .service-tile.coming-soon .tile-icon {
      background: color-mix(in srgb, var(--tile-accent) 58%, #6b7280);
      box-shadow: none;
    }
    .launch-ribbon {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 1000;
      color: #fff;
      background: var(--green);
    }
    .launch-ribbon.soon { color: var(--muted); background: rgba(102,112,133,.12); }
    .launch-ribbon.pilot { color: #1d4ed8; background: #dbeafe; }
    .service-tile:before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, color-mix(in srgb, var(--tile-accent) 16%, transparent), transparent 58%);
      pointer-events: none;
    }
    .tile-top, .tile-bottom { position: relative; z-index: 1; }
    .tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .tile-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: #fff;
      background: var(--tile-accent);
      box-shadow: 0 10px 24px color-mix(in srgb, var(--tile-accent) 25%, transparent);
    }
    .tile-icon svg, .icon-button svg, .primary svg, .secondary svg, .ghost svg, nav svg { width: 20px; height: 20px; stroke-width: 2.25; }
    .tile-bottom { display: grid; gap: 5px; }
    .tile-bottom b { font-size: 15px; line-height: 1.1; }
    .primary, .secondary, .ghost, .danger {
      min-width: 0;
      min-height: 44px;
      border-radius: var(--radius);
      border: 0;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 800;
      font-size: 14px;
      line-height: 1.18;
      text-decoration: none;
      text-align: center;
      overflow-wrap: anywhere;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), filter var(--transition-fast);
      position: relative;
      overflow: hidden;
      will-change: transform;
    }
    #clientSignIn [hidden] { display: none; }
    #courierSignIn [hidden], #courierApply [hidden], #clientAccountLinks[hidden], #clientAccountLinks [hidden] { display: none; }
    .primary:active, .secondary:active, .ghost:active { transform: scale(.96); }
    .primary:hover, .secondary:hover, .ghost:hover { filter: brightness(1.02); }
    .primary {
      color: #fff;
      background: linear-gradient(135deg, var(--green-2), var(--green));
      box-shadow: 0 4px 16px var(--green-glow), 0 1px 3px rgba(0,0,0,.1);
    }
    .primary::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 50%);
      pointer-events: none;
    }
    .secondary {
      color: var(--ink);
      background: var(--surface-elevated);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }
    .ghost {
      min-height: 38px;
      color: var(--green);
      background: var(--green-soft);
      border: 1px solid rgba(5,136,63,.08);
    }
    .danger { color: #fff; background: var(--danger); box-shadow: 0 4px 16px rgba(217,45,32,.2); }
    /* F3: ripple-эффект на кнопках (.primary/.secondary/.ghost/.danger уже имеют overflow:hidden) */
    .ripple {
      position: absolute;
      border-radius: 50%;
      transform: scale(0);
      animation: ripple-anim .6s linear;
      background: rgba(255, 255, 255, .45);
      pointer-events: none;
    }
    .secondary .ripple, .ghost .ripple { background: rgba(5, 136, 63, .22); }
    @keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .ripple { animation: none; display: none; } }

    /* Микро-анимации: staggered-появление карточек, hover-tilt на tile, magnetic CTA. */
    @keyframes card-rise {
      from { opacity: 0; transform: translateY(12px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .stagger > * {
      opacity: 0;
      animation: card-rise .42s cubic-bezier(.22, 1, .36, 1) forwards;
    }
    .stagger > *:nth-child(1) { animation-delay: .02s; }
    .stagger > *:nth-child(2) { animation-delay: .07s; }
    .stagger > *:nth-child(3) { animation-delay: .12s; }
    .stagger > *:nth-child(4) { animation-delay: .17s; }
    .stagger > *:nth-child(5) { animation-delay: .22s; }
    .stagger > *:nth-child(6) { animation-delay: .27s; }
    .stagger > *:nth-child(7) { animation-delay: .32s; }
    .stagger > *:nth-child(8) { animation-delay: .37s; }
    .stagger > *:nth-child(n+9) { animation-delay: .42s; }
    /* Tilt на tile (desktop/hover-устройства) — лёгкий 3D-наклон к курсору. */
    @media (hover: hover) and (pointer: fine) {
      .tile, .service-tile {
        transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
        transform-style: preserve-3d;
        will-change: transform;
      }
      .tile.tilt, .service-tile.tilt {
        box-shadow: 0 22px 50px rgba(16, 24, 40, .16);
      }
    }
    /* Magnetic-эффект на primary CTA (pointer:fine). На touch — :active scale уже есть. */
    @media (hover: hover) and (pointer: fine) {
      .primary.magnetic {
        transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease;
        will-change: transform;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .stagger > * { animation: none; opacity: 1; }
      .tile, .service-tile, .primary.magnetic { transition: none; transform: none; }
    }
    .field {
      padding: 10px;
      display: grid;
      gap: 7px;
    }
    .field .required {
      color: var(--danger);
      font-weight: 1000;
      margin-left: 6px;
    }
    .field.error input, .field.error textarea, .field.error select {
      border-color: rgba(217, 45, 32, .52);
      box-shadow: 0 0 0 3px rgba(217, 45, 32, .10);
    }
    .field-error {
      color: var(--danger);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.25;
    }
    .field label, .field span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }
    input, textarea, select {
      width: 100%;
      min-height: 42px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      padding: 10px 11px;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    textarea { min-height: 84px; resize: vertical; }
    input:focus, textarea:focus, select:focus {
      border-color: rgba(5, 136, 63, .5);
      box-shadow: 0 0 0 3px rgba(5, 136, 63, .12);
    }
    input::placeholder, textarea::placeholder {
      color: rgba(102, 112, 133, .56);
    }
    .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .pill {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 24px;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
      gap: 5px;
    }
    .pill.warn { background: #fff6e8; color: var(--warning); }
    .pill.danger { background: #fee4e2; color: #b42318; }
    .pill.blue { background: #e8f1ff; color: #1a5fb4; }
    /* F4: консистентные pill-варианты success/neutral */
    .pill.success { background: var(--green-soft); color: var(--green); }
    .pill.neutral { background: rgba(102, 112, 133, .12); color: var(--muted); }

    /* Статусы заявки: цветовое кодирование жизненного цикла + иконки.
       Контраст текста на тонированной подложке ≥ 4.5:1 (WCAG AA). */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 24px;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      transition: background var(--transition-fast, .15s ease), color var(--transition-fast, .15s ease);
    }
    .status-badge .status-icon { font-size: 12px; line-height: 1; }
    .status-badge[data-stage="draft"] { background: #eef2f6; color: #475467; }
    .status-badge[data-stage="quote"] { background: #fff6e8; color: #b54708; }
    .status-badge[data-stage="payment"] { background: #fff1e6; color: #b93815; }
    .status-badge[data-stage="review"] { background: #e8f1ff; color: #1a5fb4; }
    .status-badge[data-stage="active"] { background: #e0f2f1; color: #0f766e; }
    .status-badge[data-stage="waiting"] { background: #f4ecff; color: #6d28d9; }
    .status-badge[data-stage="done"] { background: var(--green-soft); color: var(--green); }
    .status-badge[data-stage="cancelled"] { background: #fee4e2; color: #b42318; }
    .status-badge[data-stage="dispute"] { background: #fee4e2; color: #b42318; }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .status-badge[data-stage="draft"] { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
      .status-badge[data-stage="quote"] { background: rgba(251, 191, 36, .16); color: #fcd34d; }
      .status-badge[data-stage="payment"] { background: rgba(251, 146, 60, .16); color: #fdba74; }
      .status-badge[data-stage="review"] { background: rgba(96, 165, 250, .16); color: #93c5fd; }
      .status-badge[data-stage="active"] { background: rgba(45, 212, 191, .16); color: #5eead4; }
      .status-badge[data-stage="waiting"] { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
      .status-badge[data-stage="done"] { background: rgba(34, 197, 94, .16); color: #86efac; }
      .status-badge[data-stage="cancelled"],
      .status-badge[data-stage="dispute"] { background: rgba(248, 113, 113, .16); color: #fca5a5; }
    }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .pill.warn { background: rgba(251, 191, 36, .14); }
      .pill.danger { background: rgba(248, 113, 113, .14); }
      .pill.blue { background: rgba(96, 165, 250, .14); }
      .pill.neutral { background: rgba(148, 163, 184, .14); }
    }
    .cookie-banner {
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: calc(12px + env(safe-area-inset-bottom));
      z-index: 40;
      display: none;
      gap: 10px;
      width: min(100% - 24px, 440px);
      margin: 0 auto;
      padding: 14px;
      border-radius: 14px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 16px 40px rgba(16,24,40,.16);
    }
    .cookie-banner.active { display: grid; }
    .cookie-banner p { margin: 0; font-size: 13px; color: var(--muted); }
    .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .cookie-actions button, .cookie-actions a {
      min-height: 40px;
      border-radius: 999px;
      padding: 8px 12px;
      font-weight: 800;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      text-decoration: none;
      display: inline-grid;
      place-items: center;
    }
    .request-legal { display: grid; gap: 10px; padding: 12px; }
    .request-legal .legal-check { margin: 0; }
    .request-legal[hidden] { display: none; }
    .consent-overlay {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      place-items: end center;
      padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
      background: rgba(16, 24, 40, .46);
      backdrop-filter: blur(14px);
    }
    .consent-overlay.active { display: grid; }
    body.consent-open { overflow: hidden; }
    .consent-sheet {
      width: min(100%, 520px);
      max-height: min(92dvh, calc(100vh - 24px));
      overflow: auto;
      overscroll-behavior: contain;
      display: grid;
      gap: 12px;
      padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
      border-radius: 16px 16px 8px 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
        linear-gradient(140deg, rgba(5,136,63,.14), rgba(31,115,224,.08));
      border: 1px solid rgba(255,255,255,.78);
      box-shadow: 0 22px 60px rgba(16,24,40,.22);
    }
    html.layout-desktop .consent-overlay { place-items: center; }
    html.layout-desktop .consent-sheet { border-radius: 16px; }
    .consent-title {
      display: grid;
      grid-template-columns: 1fr 72px;
      gap: 12px;
      align-items: center;
    }
    .consent-emblem {
      width: 72px;
      height: 92px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: rgba(255,255,255,.74);
      overflow: hidden;
    }
    .consent-emblem img { width: 100%; height: 100%; object-fit: contain; }
    .legal-list { display: grid; gap: 8px; }
    .legal-card {
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: 8px;
      background: rgba(255,255,255,.82);
      border: 1px solid var(--line);
    }
    .legal-card.accepted {
      background: rgba(232,249,238,.78);
      border-color: rgba(5,136,63,.22);
    }
    .legal-body {
      color: #344054;
      font-size: 12px;
      line-height: 1.48;
    }
    .legal-points {
      margin: 0;
      padding-left: 17px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .legal-check {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 8px;
      align-items: start;
      padding: 12px;
      border-radius: 8px;
      background: var(--green-soft);
      color: var(--ink);
      font-weight: 800;
      line-height: 1.35;
    }
    .legal-check input {
      width: 18px;
      height: 18px;
      accent-color: var(--green);
    }
    .legal-actions {
      flex-wrap: wrap;
      justify-content: flex-start;
    }
    .legal-open {
      min-height: 34px;
      padding: 0 12px;
      font-size: 12px;
    }
    #acceptRequiredDocsButton {
      position: sticky;
      bottom: 0;
      z-index: 2;
      box-shadow: 0 -8px 24px rgba(255,255,255,.9), 0 12px 28px rgba(0,80,54,.18);
    }
    .profile-note {
      padding: 10px 12px;
      border-radius: 8px;
      background: rgba(232,249,238,.74);
      color: var(--green);
      font-size: 12px;
      font-weight: 800;
    }
    .payment-trust {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 8px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(5,136,63,.12);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.56);
    }
    .payment-trust img {
      width: 70px;
      height: auto;
      display: block;
      flex: 0 0 auto;
    }
    .payment-trust strong { color: var(--ink); }
    .home-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0 16px;
    }
    .home-links a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      color: var(--ink);
      font-size: 13px;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .legal-footer {
      display: grid;
      justify-items: center;
      gap: 9px;
      padding: 13px 12px;
      border-radius: 10px;
      background: rgba(246,248,247,.86);
      border: 1px solid rgba(16,24,40,.07);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
      text-align: center;
    }
    .legal-footer-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 2px 6px;
      border-radius: 6px;
      text-decoration: none;
    }
    .legal-footer-logo img {
      width: 58px;
      height: auto;
      display: block;
    }
    .legal-footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 7px 14px;
      max-width: 320px;
    }
    .legal-footer-links a {
      color: #667085;
      font-size: 11px;
      font-weight: 750;
      line-height: 1.25;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .legal-footer-copy {
      color: #98a2b3;
      font-size: 10px;
      font-weight: 750;
      line-height: 1.25;
    }
    .merchant-requisites {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 10px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(5,136,63,.14);
      box-shadow: 0 10px 24px rgba(16,24,40,.06), inset 0 0 0 1px rgba(255,255,255,.62);
    }
    .merchant-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .merchant-head span,
    .merchant-grid span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .merchant-head h2 { margin-top: 2px; }
    .merchant-head img {
      width: 76px;
      height: auto;
      display: block;
      flex: 0 0 auto;
    }
    .merchant-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .merchant-grid div {
      min-width: 0;
      padding: 9px;
      border-radius: 8px;
      background: rgba(248,251,249,.86);
      border: 1px solid rgba(16,24,40,.08);
    }
    .merchant-grid b {
      display: block;
      margin-top: 3px;
      color: var(--ink);
      font-size: 11px;
      line-height: 1.28;
      overflow-wrap: anywhere;
    }
    .merchant-link {
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
    }
    .notice-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(232,249,238,.92), rgba(232,241,255,.72));
      border: 1px solid rgba(5,136,63,.12);
    }
    .notice-card strong { font-size: 16px; line-height: 1.2; }
    .hero-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .hero-strip button {
      min-height: 72px;
      border: 0;
      border-radius: 8px;
      padding: 10px;
      background: rgba(255,255,255,.86);
      display: grid;
      justify-items: start;
      align-content: start;
      gap: 6px;
      text-align: left;
      color: var(--ink);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.68);
    }
    .hero-strip button b { font-size: 13px; line-height: 1.08; }
    .hero-strip button span { color: var(--muted); font-size: 11px; line-height: 1.2; }
    .hero-strip .tile-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
    }
    .profile-summary {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    .profile-avatar {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      overflow: hidden;
      color: #fff;
      font-weight: 1000;
      background: linear-gradient(135deg, var(--green), var(--blue));
      box-shadow: 0 12px 28px rgba(5,136,63,.18);
    }
    .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .profile-summary .stack,
    .profile-summary .row { min-width: 0; }
    .profile-summary .row {
      flex-wrap: wrap;
      justify-content: flex-start;
      row-gap: 6px;
    }
    #profileName,
    #drawerUserName {
      font-size: 18px;
      overflow-wrap: anywhere;
    }
    .profile-identity {
      display: grid;
      gap: 12px;
    }
    .identity-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .identity-note {
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(31,115,224,.08);
      border: 1px solid rgba(31,115,224,.16);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .info-item {
      min-height: 64px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(255,255,255,.78);
      border: 1px solid var(--line);
      display: grid;
      gap: 4px;
      align-content: center;
    }
    .info-item span { color: var(--muted); font-size: 11px; font-weight: 900; }
    .info-item b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
    .permission-list {
      display: grid;
      gap: 6px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .permission-list li {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 7px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.38;
    }
    .permission-list li:before {
      content: "✓";
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--green);
      background: var(--green-soft);
      font-size: 11px;
      font-weight: 1000;
    }
    .request-guide {
      background:
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,255,255,.84)),
        linear-gradient(135deg, rgba(5,136,63,.13), rgba(31,115,224,.09));
    }
    .preset-section,
    .insight-grid {
      display: grid;
      gap: 10px;
    }
    .preset-rail {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
      overflow: visible;
    }
    .preset-card {
      border: 0;
      border-radius: 8px;
      padding: 12px;
      color: var(--ink);
      text-align: left;
      display: grid;
      gap: 8px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,251,245,.92));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 8px 24px rgba(16,24,40,.06);
    }
    .preset-card.active {
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.22), 0 12px 28px rgba(5,136,63,.14);
      background:
        linear-gradient(145deg, rgba(234,251,240,.98), rgba(255,255,255,.96));
    }
    .preset-card strong { font-size: 14px; line-height: 1.15; }
    .preset-card p { color: var(--muted); font-size: 12px; line-height: 1.35; }
    .preset-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .mini-pill {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 9px;
      border-radius: 999px;
      background: rgba(5,136,63,.08);
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
    }
    .insight-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .insight-card {
      padding: 12px;
      border-radius: 8px;
      background: rgba(255,255,255,.88);
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.05);
      display: grid;
      gap: 6px;
    }
    .insight-card b { font-size: 13px; line-height: 1.1; }
    .insight-card span { color: var(--muted); font-size: 11px; line-height: 1.3; }
    .service-passport {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 8px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,251,245,.92));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 8px 24px rgba(16,24,40,.05);
    }
    .passport-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .passport-item {
      display: grid;
      gap: 4px;
      min-height: 72px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(255,255,255,.84);
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.05);
    }
    .passport-item span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .passport-item b {
      font-size: 12px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }
    .service-flow {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .service-flow li {
      min-height: 48px;
      padding: 9px;
      border-radius: 8px;
      background: rgba(255,255,255,.76);
      border: 1px solid rgba(16,24,40,.08);
      display: grid;
      align-content: center;
      gap: 2px;
    }
    .service-flow b { font-size: 12px; line-height: 1.16; }
    .service-flow span { color: var(--muted); font-size: 11px; line-height: 1.24; }
    .spotlight {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 8px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,251,245,.92));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 8px 24px rgba(16,24,40,.05);
    }
    .spotlight-track {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .spotlight-stop {
      min-height: 74px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(255,255,255,.88);
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.05);
      display: grid;
      align-content: space-between;
      gap: 6px;
    }
    .spotlight-stop span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .spotlight-stop b {
      font-size: 12px;
      line-height: 1.22;
      overflow-wrap: anywhere;
    }
    .spotlight-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.46;
    }
    .service-hub {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 8px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,252,248,.94));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 10px 28px rgba(16,24,40,.05);
    }
    .hub-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      padding: 4px;
      border-radius: 10px;
      background: rgba(239,248,242,.98);
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.06);
    }
    .hub-tab {
      min-height: 38px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-weight: 900;
      font-size: 12px;
    }
    .hub-tab.active {
      background: #fff;
      color: var(--ink);
      box-shadow: 0 8px 18px rgba(16,24,40,.08);
    }
    .hub-body {
      display: grid;
      gap: 10px;
    }
    .hub-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .hub-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .hub-fact {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(5,136,63,.08);
      color: var(--green);
      font-size: 11px;
      font-weight: 900;
    }
    .stepper {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      padding: 6px;
      border-radius: 10px;
      background: rgba(255,255,255,.62);
      border: 1px solid rgba(16,24,40,.08);
      overflow: hidden;
    }
    .step {
      min-width: 0;
      min-height: 42px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font-weight: 1000;
      display: grid;
      align-content: center;
      justify-items: start;
      padding: 6px 10px;
      gap: 2px;
      text-align: left;
    }
    .step span,
    .step small {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .step small { font-size: 11px; font-weight: 900; color: rgba(102,112,133,.82); }
    .step.active {
      background: #fff;
      color: var(--ink);
      box-shadow: 0 10px 24px rgba(16,24,40,.08);
    }
    .step.done { color: var(--green); }
    .step.done small { color: rgba(5,136,63,.72); }
    .form-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .form-nav.single { grid-template-columns: 1fr; }
    .form-summary {
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: 10px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(16,24,40,.08);
    }
    .form-summary .row { align-items: start; }
    .quote-summary {
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: 8px;
      background: rgba(5,136,63,.06);
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08);
    }
    .kv {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .kv b { color: var(--ink); font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
    .field-help {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.32;
    }
    .geo-action {
      min-height: 34px;
      padding: 0 10px;
      font-size: 12px;
      white-space: normal;
      text-align: center;
    }
    .geo-indicator {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 999px;
      background: #e8f9ee;
      color: var(--green);
      font-size: 11px;
      font-weight: 800;
    }
    .geo-indicator.pending { background: #fff6e8; color: var(--warning); }
    .request-shell {
      gap: 12px;
      padding: 12px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,252,248,.94));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 10px 28px rgba(16,24,40,.05);
    }
    .request-shell .grid2 {
      gap: 10px;
    }
    .request-shell .field {
      padding: 12px;
      background: rgba(255,255,255,.84);
    }
    .request-shell .field label {
      color: var(--muted);
      font-size: 12px;
    }
    .geo-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(255,255,255,.8);
      border: 1px solid rgba(16,24,40,.06);
    }
    .geo-toolbar .geo-indicator {
      justify-self: start;
      min-height: 30px;
      padding: 0 10px;
    }
    .geo-toolbar .geo-action {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 10px;
      white-space: normal;
      text-align: center;
    }
    .phone-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 32px;
      padding: 0 10px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      border: 0;
    }
    .phone-chip:hover { background: #d4f2de; }
    .phone-chip svg { width: 14px; height: 14px; }
    .smart-field { display: grid; gap: 6px; }
    .smart-field .chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .field-with-geo { position: relative; }
    .field-with-geo .geo-badge {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 7px;
      border-radius: 999px;
      background: #e8f9ee;
      color: var(--green);
      font-size: 10px;
      font-weight: 800;
      max-width: 92px;
      text-align: center;
    }
    .field-with-geo .geo-badge.pending {
      color: var(--warning);
      background: #fff6e8;
    }
    .field-with-geo .geo-badge.manual {
      color: var(--muted);
      background: rgba(102,112,133,.12);
    }
    .field-with-geo input { padding-right: 92px; }
    .map-card {
      display: grid;
      gap: 8px;
      padding: 0;
      overflow: hidden;
      background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(245,252,248,.72)),
        radial-gradient(circle at 18% 0%, rgba(20,168,91,.14), transparent 34%);
      backdrop-filter: blur(18px);
    }
    .map-card .map-copy { padding: 12px 12px 0; }
    #routeMapDetails > summary {
      padding: 10px 12px;
      min-height: 44px;
      cursor: pointer;
      color: var(--green);
      font-weight: 750;
    }
    .address-dialog {
      width: min(460px, calc(100vw - 24px));
      max-height: calc(100dvh - 24px);
      padding: clamp(14px, 4vw, 22px);
      border: 1px solid var(--line);
      border-radius: 20px;
      color: var(--ink);
      background: var(--surface-solid);
      box-shadow: var(--shadow-lg);
      overflow: auto;
    }
    .address-dialog::backdrop { background: rgba(15, 23, 42, .55); }
    .address-dialog [hidden], #clientSavedAddresses[hidden], #clientSavedAddresses [hidden] { display: none; }
    .address-dialog .checkout-feedback:empty, .address-dialog #savedAddressSuggestions:empty { display: none; }
    .address-dialog input { font-size: 16px; }
    .address-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .address-choice { display: grid; gap: 5px; }
    .address-more > summary { cursor: pointer; min-height: 36px; }
    .address-chip {
      display: grid;
      gap: 2px;
      flex: 1 1 145px;
      max-width: 100%;
      min-width: 0;
      text-align: left;
      overflow-wrap: anywhere;
    }
    .address-chip span { color: var(--muted); font-size: 12px; font-weight: 500; }
    .saved-address-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding-block: 6px;
      border-bottom: 1px solid var(--line);
      overflow-wrap: anywhere;
    }
    .request-card {
      display: grid;
      gap: 10px;
      border-left: 4px solid var(--accent, rgba(5,136,63,.48));
      background:
        linear-gradient(145deg, rgba(255,255,255,.97), rgba(247,252,249,.94));
    }
    .request-head {
      display: grid;
      gap: 6px;
    }
    .request-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .request-route {
      color: #344054;
      font-size: 12px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }
    .map-summary {
      display: grid;
      gap: 7px;
      padding: 0 12px 4px;
    }
    .map-summary .kv {
      grid-template-columns: 92px 1fr;
      align-items: start;
      padding: 10px;
      border-radius: 10px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(16,24,40,.06);
    }
    .route-state {
      display: grid;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(232,249,238,.8);
      border: 1px solid rgba(5,136,63,.12);
    }
    .route-state b {
      font-size: 13px;
      line-height: 1.25;
    }
    .route-state span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }
    .request-progress {
      display: grid;
      gap: 8px;
    }
    .progress-bar {
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: rgba(16,24,40,.08);
      overflow: hidden;
    }
    .progress-bar > span {
      position: absolute;
      inset: 0 auto 0 0;
      width: var(--progress, 0%);
      border-radius: inherit;
      background: linear-gradient(90deg, var(--green-2), var(--green));
    }
    .progress-steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
    }
    .progress-step {
      display: grid;
      gap: 4px;
      justify-items: start;
    }
    .progress-step b {
      font-size: 11px;
      line-height: 1.2;
      color: rgba(102,112,133,.94);
    }
    .progress-step.active b,
    .progress-step.done b { color: var(--ink); }
    .progress-step::before {
      content: "";
      width: 100%;
      height: 4px;
      border-radius: 999px;
      background: rgba(16,24,40,.10);
    }
    .progress-step.active::before,
    .progress-step.done::before {
      background: linear-gradient(90deg, var(--green-2), var(--green));
    }
    .status-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.42;
    }
    .dispatch-panel {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(232,249,238,.72);
      border: 1px solid rgba(5,136,63,.12);
    }
    .dispatch-candidates {
      display: grid;
      gap: 7px;
    }
    .dispatch-candidate {
      min-height: 48px;
      border: 0;
      border-radius: 8px;
      padding: 9px 10px;
      display: grid;
      gap: 3px;
      text-align: left;
      background: rgba(255,255,255,.9);
      color: var(--ink);
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.06);
    }
    .dispatch-candidate b { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
    .dispatch-candidate span { color: var(--muted); font-size: 11px; line-height: 1.25; }
    .service-workspace {
      background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.72), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,.78), rgba(241,251,246,.62));
      border: 1px solid rgba(255,255,255,.68);
    }
    .role-cards {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .role-card {
      min-height: 72px;
      border: 0;
      border-radius: 8px;
      padding: 9px 8px;
      text-align: left;
      display: grid;
      gap: 5px;
      align-content: center;
      color: var(--ink);
      background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        inset 0 0 0 1px rgba(16,24,40,.05);
      backdrop-filter: blur(16px) saturate(1.25);
      -webkit-backdrop-filter: blur(16px) saturate(1.25);
    }
    .role-card.active {
      color: var(--green);
      background: var(--green-soft);
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.16), 0 10px 24px rgba(5,136,63,.10);
    }
    .role-card b { font-size: 13px; line-height: 1.15; }
    .role-card span { color: var(--muted); font-size: 11px; line-height: 1.25; }
    .service-tabs {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 7px;
      margin: 2px 0 4px;
    }
    .service-tabs .role-card {
      min-height: 38px;
      border-radius: 999px;
      padding: 0 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-align: center;
      background: rgba(255,255,255,.82);
      color: #344054;
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.06);
    }
    .service-tabs .role-card b {
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
    }
    .service-tabs .role-card span {
      display: none;
    }
    .service-tabs .role-card.active {
      color: #fff;
      background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.20), transparent 34%),
        linear-gradient(180deg, #006c49, #004c34);
      box-shadow: 0 8px 18px rgba(0,80,54,.20);
    }
    .service-queue-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 2px;
    }
    .service-queue-head h2 {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 17px;
    }
    .service-queue-head h2 span {
      min-width: 24px;
      height: 24px;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      background: #dff5e7;
      color: #087a49;
      font-size: 12px;
      font-weight: 1000;
    }
    .service-ticket-list {
      display: grid;
      gap: 8px;
    }
    .service-ticket {
      min-height: 86px;
      border-radius: 8px;
      padding: 10px;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr) 84px;
      gap: 8px;
      align-items: center;
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(16,24,40,.08);
      box-shadow: 0 8px 22px rgba(16,24,40,.06);
    }
    .service-ticket.hot {
      background: linear-gradient(145deg, rgba(255,248,232,.98), rgba(255,255,255,.96));
      border-color: rgba(181,71,8,.16);
    }
    .service-ticket-time {
      display: grid;
      gap: 2px;
      color: #344054;
      font-size: 12px;
      font-weight: 900;
    }
    .service-ticket-time span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .service-ticket-main {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .service-ticket-route {
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.22;
      overflow-wrap: anywhere;
    }
    .service-ticket-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .service-ticket-side {
      display: grid;
      justify-items: end;
      gap: 5px;
    }
    .service-ticket-side b {
      font-size: 17px;
      line-height: 1;
    }
    .service-ticket-side button {
      width: 78px;
      min-height: 34px;
      border-radius: 6px;
      padding: 0 8px;
      font-size: 11px;
    }
    .service-org-card,
    .service-workspace-flat {
      border-radius: 8px;
      padding: 12px;
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(16,24,40,.08);
      box-shadow: 0 10px 26px rgba(16,24,40,.07);
    }
    .service-org-card {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }
    .org-shield {
      width: 42px;
      height: 42px;
      border-radius: 12px 12px 16px 16px;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(180deg, #00885a, #00583c);
      font-size: 22px;
      font-weight: 1000;
    }
    .service-org-card strong,
    .service-org-card b {
      display: block;
      font-size: 13px;
      line-height: 1.2;
    }
    .org-rating {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 4px 10px;
      color: #344054;
      padding-top: 8px;
      border-top: 1px solid rgba(16,24,40,.08);
    }
    .org-rating span,
    .org-rating small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .org-rating b {
      color: #101828;
      font-size: 15px;
      line-height: 1.12;
    }
    .org-rating small { grid-column: 1 / -1; }
    .provider-account {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(16,24,40,.06);
    }
    .provider-application {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 8px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,249,238,.72));
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.10);
    }
    .tracking-card {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(232,241,255,.68));
      border: 1px solid rgba(31,115,224,.12);
    }
    .timeline {
      display: grid;
      gap: 7px;
      padding-left: 12px;
      border-left: 2px solid rgba(5, 136, 63, .16);
    }
    .timeline div { display: grid; gap: 2px; }
    .map {
      height: 150px;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
      background:
        linear-gradient(31deg, transparent 0 46%, rgba(255,255,255,.88) 47% 53%, transparent 54%),
        linear-gradient(116deg, transparent 0 42%, rgba(255,255,255,.82) 43% 49%, transparent 50%),
        linear-gradient(9deg, transparent 0 62%, rgba(255,255,255,.65) 63% 68%, transparent 69%),
        #e9f1eb;
    }
    .map.yandex-ready { background: #eef4f8; }
    .map.yandex-ready .map-placeholder { display: none; }
    .yandex-canvas {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: none;
    }
    .map.yandex-ready .yandex-canvas { display: block; }
    .map-provider {
      position: absolute;
      right: 8px;
      top: 8px;
      z-index: 3;
      min-height: 24px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.90);
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      max-width: calc(100% - 16px);
      overflow-wrap: anywhere;
      box-shadow: 0 6px 16px rgba(16,24,40,.08);
      backdrop-filter: blur(12px);
    }
    .map-route-line {
      position: absolute;
      left: 24%;
      top: 52%;
      width: 52%;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(31,115,224,.72), rgba(5,136,63,.82));
      box-shadow: 0 8px 18px rgba(16,24,40,.10);
      transform-origin: left center;
    }
    .map-pin {
      position: absolute;
      left: 52%;
      top: 36%;
      width: 28px;
      height: 28px;
      border-radius: 50% 50% 50% 0;
      background: var(--green);
      transform: rotate(-45deg);
      box-shadow: 0 12px 24px rgba(5, 136, 63, .24);
    }
    .map-pin.origin { background: var(--blue); }
    .map-pin.destination { background: var(--green); }
    .map-pin.hidden,
    .map-route-line.hidden { display: none; }
    .map-pin:after {
      content: "";
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      background: #fff;
    }
    .map .leaflet-container {
      width: 100%;
      height: 100%;
      background: #eef4f8;
      font: inherit;
    }
    .map .leaflet-container .leaflet-control-attribution {
      font-size: 9px;
      background: rgba(255,255,255,.7);
      padding: 0 4px;
      border-radius: 4px 0 0 0;
    }
    .map .leaflet-container .leaflet-bar {
      border: none;
      box-shadow: 0 6px 16px rgba(16,24,40,.14);
      border-radius: 8px;
      overflow: hidden;
    }
    .map .leaflet-container .leaflet-bar a {
      width: 28px;
      height: 28px;
      line-height: 28px;
      font-size: 16px;
      color: var(--ink);
      background: #fff;
      border-bottom: 1px solid rgba(16,24,40,.06);
    }
    .leaflet-pin {
      background: transparent;
      border: none;
    }
    .map .leaflet-container .leaflet-popup-content-wrapper {
      border-radius: 10px;
      box-shadow: 0 12px 28px rgba(16,24,40,.18);
    }
    .map .leaflet-container .leaflet-popup-content {
      margin: 8px 10px;
      font-size: 12px;
      line-height: 1.35;
    }
    .complaint-link {
      width: 100%;
      min-height: 44px;
      border: 1px solid rgba(217,45,32,.18);
      background: rgba(255,244,242,.92);
      color: var(--danger);
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 9px 12px;
      font-weight: 900;
      text-decoration: none;
      text-align: center;
    }
    .attachment-preview {
      min-height: 100px;
      border: 1px dashed rgba(5, 136, 63, .44);
      border-radius: 8px;
      background: #f7fff9;
      display: grid;
      place-items: center;
      overflow: hidden;
    }
    .attachment-preview img {
      display: block;
      max-width: 100%;
      max-height: 190px;
      object-fit: contain;
    }
    .upload-shell {
      display: grid;
      gap: 8px;
    }
    .upload-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .upload-name {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }
    .upload-input {
      display: none;
    }
    .upload-chip {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      border: 0;
      background: linear-gradient(180deg, var(--green-2), var(--green));
      color: #fff;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 12px 28px rgba(5,136,63,.18);
      cursor: pointer;
    }
    .upload-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .upload-actions button { min-height: 36px; }
    .tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      padding: 4px;
      border-radius: 8px;
      background: rgba(255,255,255,.62);
    }
    .tab {
      min-height: 36px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-weight: 900;
    }
    .tab.active {
      background: #fff;
      color: var(--ink);
      box-shadow: 0 8px 22px rgba(16,24,40,.07);
    }
    .empty {
      padding: 16px;
      text-align: center;
      color: var(--muted);
      background: rgba(255,255,255,.68);
      border-radius: 8px;
      border: 1px dashed var(--line);
    }
    /* F1: skeleton-загрузка с shimmer */
    .skeleton {
      position: relative;
      overflow: hidden;
      background: rgba(16, 24, 40, .06);
      border-radius: var(--radius-sm);
    }
    .skeleton::after {
      content: '';
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
      animation: skeleton-shimmer 1.4s infinite;
    }
    .skeleton-line { height: 14px; width: 100%; }
    .skeleton-line.short { width: 60%; }
    .skeleton-card {
      min-height: 96px;
      padding: 14px;
      display: grid;
      gap: 8px;
      align-content: start;
    }
    .skeleton-card .skeleton-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
    .skeleton-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
    @keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .skeleton { background: rgba(148, 163, 184, .12); }
      .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); }
    }
    @media (prefers-reduced-motion: reduce) {
      .skeleton::after { animation: none; }
    }
    /* F5: empty-state с иконкой и подсказкой */
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      padding: 32px 18px;
      color: var(--muted);
    }
    .empty-state .empty-icon { font-size: 40px; opacity: .7; line-height: 1; }
    .empty-state .empty-title { font-weight: 800; color: var(--ink); font-size: 15px; }
    .empty-state .empty-hint { font-size: 13px; line-height: 1.45; max-width: 280px; }
    /* F5b: error-state для сбоев загрузки списков */
    .error-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      padding: 28px 18px;
      color: var(--muted);
    }
    .error-state .error-icon { font-size: 36px; line-height: 1; }
    .error-state .error-title { font-weight: 800; color: var(--ink); font-size: 15px; }
    .error-state .error-hint { font-size: 13px; line-height: 1.45; max-width: 280px; }
    .drawer {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      place-items: end center;
      background: rgba(16, 24, 40, .26);
      backdrop-filter: blur(8px);
      padding: 16px;
    }
    .drawer.active { display: grid; }
    .drawer-panel {
      width: min(100%, 440px);
      max-height: 88vh;
      overflow: auto;
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 12px 12px 8px 8px;
      background: #fff;
      box-shadow: var(--shadow);
    }
    .toast-stack {
      position: fixed;
      left: 50%;
      bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));
      transform: translateX(-50%);
      width: min(calc(100% - 28px), 412px);
      z-index: 40;
      display: grid;
      gap: 8px;
      justify-items: center;
      pointer-events: none;
    }
    .toast {
      position: relative;
      width: 100%;
      padding: 11px 12px 11px 38px;
      border-radius: 8px;
      background: #101828;
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      line-height: 1.35;
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(14px) scale(.98);
      pointer-events: auto;
      transition: opacity .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1);
      touch-action: pan-y;
      will-change: transform, opacity;
    }
    .toast.show { opacity: 1; transform: translateY(0) scale(1); }
    .toast.dismissing { opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .18s ease, transform .18s ease; }
    /* Иконка-вариант слева */
    .toast::before {
      content: "";
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .22);
    }
    .toast.info::before { background: rgba(255, 255, 255, .22); }
    .toast.success { background: #054d28; }
    .toast.success::before { background: var(--green-2); box-shadow: 0 0 0 3px rgba(20, 168, 91, .22); }
    .toast.error { background: #7a1a14; }
    .toast.error::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .22); }
    .toast.warning { background: #5b370a; }
    .toast.warning::before { background: var(--warning); box-shadow: 0 0 0 3px rgba(181, 71, 8, .22); }
    @media not all /* тёмная тема отключена: полупрозрачные светлые карточки были нечитаемы */ {
      .toast { background: #1f2937; }
      .toast.success { background: #0f3d22; }
      .toast.error { background: #4a1410; }
      .toast.warning { background: #3d2607; }
    }
    /* F6: прогресс-бар внизу toast (анимируется CSS при .show) */
    .toast { overflow: hidden; }
    .toast-progress {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 3px;
      width: 100%;
      transform-origin: left center;
      background: linear-gradient(90deg, var(--green-2), var(--blue));
      opacity: 0;
      pointer-events: none;
    }
    .toast.success .toast-progress { background: linear-gradient(90deg, var(--green-2), var(--green)); }
    .toast.error .toast-progress { background: linear-gradient(90deg, var(--danger), #f472b6); }
    .toast.warning .toast-progress { background: linear-gradient(90deg, var(--warning), var(--orange)); }
    .toast.show .toast-progress { opacity: 1; animation: toast-progress 2.6s linear forwards; }
    .toast.paused .toast-progress { animation-play-state: paused; }
    @keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
    @media (prefers-reduced-motion: reduce) {
      .toast-progress { animation: none; }
      .toast { transition: opacity .15s ease; transform: none; }
      .toast.show { transform: none; }
    }

    .loading-overlay {
      position: fixed;
      inset: 0;
      z-index: 55;
      display: none;
      place-items: center;
      padding: 14px;
      background: rgba(16, 24, 40, .18);
      backdrop-filter: blur(6px);
    }
    .loading-overlay.active { display: grid; }
    .loading-card {
      width: min(calc(100% - 28px), 420px);
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 12px;
      align-items: center;
      padding: 12px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,.96);
      border: 1px solid rgba(255,255,255,.72);
      box-shadow: 0 22px 60px rgba(16,24,40,.22);
    }
    .spinner {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 4px solid rgba(31,115,224,.20);
      border-top-color: var(--blue);
      animation: spin 0.9s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .sticky-cta {
      position: sticky;
      bottom: calc(var(--nav-height) + 10px);
      z-index: 10;
      margin-top: 6px;
      padding: 10px;
      border-radius: 12px;
      background: rgba(255,255,255,.82);
      border: 1px solid rgba(255,255,255,.68);
      box-shadow: 0 10px 26px rgba(16,24,40,.08);
      backdrop-filter: blur(14px);
    }
    .checkout-card[hidden], #requestBadge[hidden] { display: none; }
    .show-checkout > :is(#serviceHub, .request-shell, #dynamicFields, #formAssist, #formReview, #attachmentBox, .map-card, .sticky-cta, #requestGuide, #serviceSpotlight) { display: none !important; }
    .checkout-card { scroll-margin-block-start: 16px; }
    .checkout-route { color: var(--muted); overflow-wrap: anywhere; }
    .checkout-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .checkout-actions button { min-height: 44px; }
    .checkout-feedback:empty { display: none; }
    .checkout-feedback:not(:empty) {
      padding: 10px 12px;
      border-radius: var(--radius);
      background: var(--surface-solid);
      overflow-wrap: anywhere;
    }
    .sticky-cta .checkout-feedback:not(:empty) { margin-top: 8px; }
    .checkout-feedback[data-state="success"] { color: var(--green); }
    .checkout-feedback[data-state="error"] { color: var(--danger); }
    .checkout-feedback[data-state="pending"] { color: var(--muted); }
    .request-quickbar {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
      gap: 8px;
    }
    .request-quickbar .ghost {
      width: 100%;
      min-height: 36px;
      padding: 0 12px;
      background: rgba(255,255,255,.86);
    }
    .product-helper {
      background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,253,248,.96)),
        radial-gradient(circle at top right, rgba(20,168,91,.14), transparent 38%);
      border-color: rgba(5,136,63,.12);
    }
    .scenario-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .scenario-grid button {
      min-height: 76px;
      border: 1px solid rgba(16,24,40,.08);
      border-radius: 8px;
      background: rgba(255,255,255,.92);
      color: var(--ink);
      text-align: left;
      padding: 10px;
      display: grid;
      align-content: start;
      gap: 4px;
      box-shadow: 0 6px 18px rgba(16,24,40,.045);
    }
    .scenario-grid button.active {
      border-color: rgba(5,136,63,.24);
      background: linear-gradient(145deg, rgba(232,249,238,.98), rgba(255,255,255,.96));
      color: var(--green);
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.08), 0 10px 22px rgba(5,136,63,.10);
    }
    .scenario-grid b {
      font-size: 13px;
      line-height: 1.18;
      overflow-wrap: anywhere;
    }
    .scenario-grid span {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.28;
    }
    .helper-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .helper-grid .field {
      padding: 10px;
      gap: 6px;
    }
    .helper-grid .field input {
      min-height: 40px;
      padding: 0 10px;
    }
    .segmented {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .segmented button {
      min-height: 34px;
      padding: 0 12px;
      border: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.92);
      color: var(--ink);
      font-weight: 900;
      box-shadow: inset 0 0 0 1px rgba(16,24,40,.08);
    }
    .segmented button.active {
      background: var(--green-soft);
      color: var(--green);
      box-shadow: inset 0 0 0 1px rgba(5,136,63,.16);
    }
    .helper-note {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }
    .checklist {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .checklist li {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.38;
    }
    .checklist li::before {
      content: "•";
      color: var(--green);
      font-weight: 1000;
      font-size: 18px;
      line-height: 1;
    }
    nav {
      position: fixed;
      left: 50%;
      bottom: calc(10px + env(safe-area-inset-bottom));
      transform: translateX(-50%);
      width: min(calc(100% - 20px), 420px);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 5px;
      padding: 6px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.48));
      border: 1px solid rgba(255,255,255,.74);
      border-radius: 18px;
      backdrop-filter: blur(28px) saturate(1.35);
      -webkit-backdrop-filter: blur(28px) saturate(1.35);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.88),
        0 18px 44px rgba(16,24,40,.16);
      z-index: 20;
    }
    nav button {
      min-height: 54px;
      border: 0;
      border-radius: 14px;
      background: transparent;
      color: var(--muted);
      display: grid;
      place-items: center;
      gap: 2px;
      font-size: 11px;
      font-weight: 900;
    }
    nav button.active {
      color: #fff;
      background:
        radial-gradient(circle at 24% 14%, rgba(255,255,255,.32), transparent 32%),
        linear-gradient(180deg, var(--green-2), var(--green));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 10px 22px rgba(5,136,63,.22);
    }
    body:not(.service-mode) nav button.active {
      color: var(--green);
      background: rgba(232,249,238,.94);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        0 8px 20px rgba(5,136,63,.08);
    }
    body.service-mode nav {
      bottom: env(safe-area-inset-bottom);
      width: min(100%, 440px);
      border-radius: 0;
      border: 0;
      padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
      background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 32%),
        linear-gradient(180deg, #006c49, #00452f);
      box-shadow: 0 -12px 34px rgba(0,73,47,.22);
    }
    body.service-mode nav button {
      color: rgba(255,255,255,.82);
      min-height: 58px;
    }
    body.service-mode nav button.active {
      color: #fff;
      background: rgba(255,255,255,.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }
    html.layout-phone .app { width: min(100%, 440px); }
    html.layout-tablet .app { width: min(100%, 720px); padding-left: 18px; padding-right: 18px; }
    html.layout-desktop .app { width: min(100%, 980px); padding-left: 24px; padding-right: 24px; }
    html.layout-tablet nav, html.layout-desktop nav { width: min(calc(100% - 24px), 640px); }
    html.input-touch input, html.input-touch textarea, html.input-touch select { font-size: 16px; }
    @media (min-width: 720px) {
      nav { width: min(calc(100% - 24px), 640px); }
    }
    @media (min-width: 980px) {
      .app { width: min(100%, 980px); }
      .consent-overlay { place-items: center; }
    }
    @media (orientation: landscape) and (max-height: 500px) {
      .consent-sheet { max-height: calc(100dvh - 16px); }
      nav { bottom: calc(6px + env(safe-area-inset-bottom)); }
    }
    @media (max-width: 374px) {
      .hero-head { grid-template-columns: 1fr; }
      .crest { margin: 0; width: 104px; height: 132px; }
      .hero-actions, .service-grid, .grid2, .grid3, .stats, .request-quickbar { grid-template-columns: 1fr; }
      .hero-strip, .insight-grid, .passport-grid, .helper-grid, .spotlight-track { grid-template-columns: 1fr; }
      .role-cards { grid-template-columns: 1fr; }
      .service-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
      .service-tabs .role-card { min-height: 34px; padding: 0 5px; }
      .service-tabs .role-card b { font-size: 10px; }
      .info-grid { grid-template-columns: 1fr; }
      .profile-summary { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
      .profile-avatar { width: 52px; height: 52px; }
      .view > .row { flex-wrap: wrap; }
      .service-flow { grid-template-columns: 1fr; }
      .helper-grid, .form-nav { grid-template-columns: 1fr; }
      .preset-rail { grid-template-columns: 1fr; }
      .scenario-grid { grid-template-columns: 1fr; }
      .geo-toolbar { grid-template-columns: 1fr; }
      .geo-toolbar .geo-action { width: 100%; }
      .merchant-grid { grid-template-columns: 1fr; }
      .sticky-cta {
        position: static;
        bottom: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
      }
      .map-summary .kv { grid-template-columns: 1fr; }
      h1 { font-size: 24px; }
    }

  .support-entry[hidden], .support-older[hidden], #supportDeskChat[hidden] { display: none }
  .support-dialog { width: min(100% - 24px, 520px); max-height: calc(100dvh - 24px); padding: 18px; margin: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid, #fff); color: var(--ink, #172230); }
  .support-dialog::backdrop { background: rgba(11, 19, 32, .52) }
  .support-dialog h2 { margin: 0 }
  .support-message-list { display: grid; gap: 8px; align-content: start; min-height: 96px; max-height: min(38dvh, 400px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px; overscroll-behavior: contain }
  .support-message { width: fit-content; max-width: 92%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere }
  .support-message[data-own="true"] { justify-self: end; background: var(--green-soft, #eef5ff) }
  .support-message p { margin: 4px 0; white-space: pre-wrap }
  .support-message button { min-height: 34px; text-align: left }
  .support-composer input[type="file"] { max-width: 100%; font: inherit }
  .support-composer textarea { width: 100%; min-height: 68px }
  .support-thread-button { width: 100%; min-height: 44px; text-align: left; white-space: normal }
  .support-notice { min-height: 1.25em; margin: 0; overflow-wrap: anywhere }

    .qr-block { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line, #cfd8d3); border-radius: 12px; }
    .qr-image { width: 100%; max-width: 280px; justify-self: center; background: #fff; border-radius: 8px; cursor: zoom-in; }
    #consentDocs .legal-body, #consentDocs .legal-points { display: none; }
    body.role-courier-link #serviceRoleTop, body.role-courier-link .service-org-card { display: none; }
    .route-link { display: block; text-align: center; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid var(--line, #cfd8d3); }

    /* ===== Дизайн v2: спокойная светлая тема, плоские поверхности, один акцент ===== */
    :root {
      --v2-bg: #f5f7f5;
      --v2-surface: #ffffff;
      --v2-ink: #17211b;
      --v2-muted: #5d6a62;
      --v2-line: #e2e8e3;
      --v2-accent: #0b6e3f;
      --v2-accent-dark: #095a34;
      --v2-accent-soft: #e6f2ea;
      --v2-warn-soft: #fff4e0;
      --v2-warn: #8a4b00;
      --v2-danger: #b3261e;
      --ink: var(--v2-ink);
      --muted: var(--v2-muted);
      --line: var(--v2-line);
      --green: var(--v2-accent);
      --radius: 12px;
      --radius-lg: 14px;
      --radius-xl: 16px;
    }
    body, body.service-mode {
      background: var(--v2-bg);
      color: var(--v2-ink);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      font-size: 15px;
      line-height: 1.45;
      letter-spacing: 0;
    }
    h1 { font-size: 24px; font-weight: 700; line-height: 1.2; }
    h2 { font-size: 18px; font-weight: 650; line-height: 1.25; }
    h3 { font-size: 16px; font-weight: 650; }
    b, strong { font-weight: 650; }
    .card, .request-card, .legal-card, .quote-summary, .notice-card,
    .request-shell, .request-legal, .profile-card, .map-card {
      background: var(--v2-surface);
      border: 1px solid var(--v2-line);
      border-radius: var(--radius-lg);
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    button, .primary, .secondary, .ghost { border-radius: 10px; box-shadow: none; text-shadow: none; }
    button.primary, .primary {
      background: var(--v2-accent);
      color: #fff;
      border: 1px solid var(--v2-accent);
      font-weight: 650;
      background-image: none;
    }
    button.primary:active, .primary:active { background: var(--v2-accent-dark); }
    button.secondary, .secondary {
      background: var(--v2-surface);
      color: var(--v2-accent);
      border: 1px solid var(--v2-line);
      background-image: none;
      font-weight: 600;
    }
    button.ghost, .ghost { background: transparent; color: var(--v2-accent); border: 0; font-weight: 600; }
    input, textarea, select {
      background: #fff;
      border: 1px solid #cfd8d1;
      border-radius: 10px;
      color: var(--v2-ink);
      box-shadow: none;
    }
    input:focus, textarea:focus, select:focus { outline: 2px solid var(--v2-accent); outline-offset: 0; border-color: var(--v2-accent); box-shadow: none; }
    label, .field label { color: var(--v2-muted); font-size: 13px; font-weight: 600; }
    .pill { background: var(--v2-accent-soft); color: var(--v2-accent); border-radius: 999px; font-weight: 600; box-shadow: none; }
    .pill.warn { background: var(--v2-warn-soft); color: var(--v2-warn); }
    .muted { color: var(--v2-muted); }
    /* Верхняя панель */
    .topbar, body.service-mode .topbar { background: transparent; box-shadow: none; border: 0; backdrop-filter: none; color: var(--v2-ink); }
    body.service-mode .topbar { background: var(--v2-accent); color: #fff; border-radius: 0 0 16px 16px; }
    .icon-button, .topbar .icon-button { background: var(--v2-surface); border: 1px solid var(--v2-line); box-shadow: none; backdrop-filter: none; color: var(--v2-accent); }
    /* Главная */
    .home-hero, .home-main, .home-workflow { display: grid; gap: 14px; min-width: 0; align-content: start; }
    .home-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .home-brand .crest {
      flex: 0 0 46px; width: 46px; height: 50px; margin: 0; padding: 0; border: 0;
      background: none; box-shadow: none;
    }
    .home-brand .crest .shield {
      width: 44px; height: 49px; border-radius: 8px 8px 14px 14px;
      font-size: 11px; line-height: 1.15; box-shadow: none;
    }
    .home-brand .crest .shield small { font-size: 8px; }
    .home-brand h1 { margin: 0; font-size: clamp(20px, 5vw, 26px); overflow-wrap: anywhere; }
    .home-delivery {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start;
      min-width: 0; padding: clamp(16px, 4vw, 24px); border-radius: var(--radius-xl);
      background: #0c5836; color: #fff;
    }
    .home-delivery-copy { grid-area: 1 / 1; min-width: 0; }
    .home-delivery-copy h2 { font-size: clamp(21px, 4vw, 30px); color: inherit; margin: 0 0 5px; letter-spacing: 0; }
    .home-delivery-copy p { margin: 0; max-width: 38ch; color: #e3f2e8; font-size: 14px; }
    .home-delivery-icon {
      grid-area: 1 / 2; display: grid; place-items: center; width: 46px; height: 46px;
      border-radius: 12px; color: #effcf2; background: rgba(255,255,255,.13);
    }
    .home-delivery-icon svg { width: 27px; height: 27px; stroke-width: 1.65; }
    .home-delivery button.home-delivery-cta {
      grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
      width: 100%; min-height: 48px; padding: 0 14px; background: #fff; color: #0c5836;
      border-color: #fff; font-size: 15px; text-align: left;
    }
    .home-delivery button.home-delivery-cta:active { background: #e3f2e8; }
    #homeDeliveryAvailability { grid-column: 1 / -1; margin: 0; color: #e3f2e8; font-size: 13px; }
    .home-shortcuts, .other-services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .other-service {
      display: flex; gap: 8px; align-items: center; text-align: left; min-width: 0; min-height: 53px;
      padding: 8px 10px; border: 1px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-ink);
    }
    .other-service span {
      flex: 0 0 28px; height: 28px; display: grid; place-items: center;
      background: var(--v2-accent-soft); color: var(--v2-accent); border-radius: 8px;
    }
    .other-service svg { width: 17px; height: 17px; stroke-width: 1.8; }
    .other-service b { min-width: 0; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
    .home-active-delivery {
      display: grid; gap: 12px; min-width: 0; padding: 12px 14px;
      border: 1px solid var(--v2-line); border-radius: var(--radius-lg); background: var(--v2-surface);
    }
    .home-section-heading, .home-delivery-detail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; }
    .home-section-heading h2 { margin: 0; }
    .home-section-heading .ghost, .home-delivery-detail .ghost { min-height: 44px; padding-inline: 8px; }
    .home-delivery-route { display: grid; gap: 6px; margin: 0; }
    .home-delivery-route > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 5px; font-size: 13px; }
    .home-delivery-route dt, .home-delivery-detail p { color: var(--v2-muted); }
    .home-delivery-route dd { margin: 0; overflow-wrap: anywhere; }
    .home-active-delivery .progress-bar { display: none; }
    .home-delivery-detail { margin-top: -3px; }
    .home-delivery-detail p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
    .home-delivery .home-delivery-cta[hidden], #homeDeliveryAvailability[hidden],
    .home-active-delivery[hidden], #homeCatalogShortcuts[hidden] { display: none; }
    .home-other { display: grid; gap: 4px; padding-top: 2px; }
    #clientSavedAddresses { scroll-margin-block-start: 16px; }
    @media (min-width: 700px) {
      .home-main { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
      .home-shortcuts { align-self: stretch; grid-template-columns: 1fr; align-content: start; }
      .home-shortcuts .other-service { min-height: 51px; padding-inline: 13px; }
      .other-services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .other-service b { font-size: 14px; }
    }
    .home-links { display: none; }
    .legal-footer { margin-top: 8px; padding: 12px 4px 4px; border: 0; background: none; box-shadow: none; text-align: left; }
    .legal-footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; }
    .legal-footer-links a { font-size: 12px; color: var(--v2-muted); text-decoration: none; border-bottom: 1px solid var(--v2-line); font-weight: 400; }
    .legal-footer-copy { font-size: 12px; color: var(--v2-muted); margin-top: 8px; text-align: left; font-weight: 400; }
    #home > .legal-footer { justify-items: start; border-top: 1px solid var(--v2-line); padding-inline: 0; }
    #home > .legal-footer .legal-footer-links { max-width: none; }
    /* Нижняя навигация */
    nav, body:not(.service-mode) nav, body.service-mode nav {
      background: var(--v2-surface);
      border: 0;
      border-top: 1px solid var(--v2-line);
      border-radius: 0;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      left: 0; right: 0; bottom: 0; width: 100%; margin: 0; transform: none; gap: 0; padding: 0 0 env(safe-area-inset-bottom, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    nav button, body.service-mode nav button { background: none; color: var(--v2-muted); border-radius: 0; box-shadow: none; font-weight: 600; font-size: 12px; }
    nav button.active, body:not(.service-mode) nav button.active, body.service-mode nav button.active {
      background: none; color: var(--v2-accent); box-shadow: inset 0 2px 0 var(--v2-accent);
    }
    nav button svg { stroke-width: 1.8; }
    /* Тосты и диалоги */
    .toast-stack .toast, .toast { background: #17211b; color: #fff; border-radius: 10px; box-shadow: none; }
    .consent-sheet, dialog { border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.18); background: var(--v2-surface); }
    /* Статусы */
    .request-card { padding: 14px; }
    .request-card::before { display: none; }
    .empty { background: var(--v2-surface); }
    /* Форма заявки: адреса первыми, контакты ниже, шаги — тонкая полоса */
    #request:not(.active) { display: none; }
    #request.active { display: flex; flex-direction: column; gap: 14px; }
    #request > .row:first-child { align-items: center; }
    #request > .row:first-child h1 { font-size: 22px; }
    #request[data-step="details"] .request-shell, #request[data-step="review"] .request-shell { display: none; }
    .stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; background: none; border: 0; box-shadow: none; }
    .stepper .step { display: grid; gap: 1px; min-height: 0; padding: 8px 0 0; background: none; border: 0; border-top: 3px solid var(--v2-line); border-radius: 0; text-align: left; box-shadow: none; }
    .stepper .step span { font-size: 14px; font-weight: 650; color: var(--v2-ink); }
    .stepper .step small { font-size: 12px; color: var(--v2-muted); font-weight: 400; }
    .stepper .step.active { border-top-color: var(--v2-accent); background: none; box-shadow: none; }
    .stepper .step.active span { color: var(--v2-accent); }
    .stepper .step.done { border-top-color: var(--v2-accent); }
    .request-shell { padding: 14px; gap: 12px; }
    .geo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; }
    .geo-indicator { background: none; color: var(--v2-muted); font-weight: 500; font-size: 13px; padding: 0; border: 0; }
    .geo-action { min-height: 0; padding: 4px 0; font-size: 13px; }
    .request-quickbar { display: flex; gap: 16px; }
    .request-quickbar .ghost { min-height: 0; padding: 4px 0; font-size: 13px; }
    .phone-chip { box-shadow: none; }
    .field-help, .field .help { color: var(--v2-muted); font-size: 13px; }
    .request-intro[hidden] { display: none; }
    #request *, #history *, #profile * { box-shadow: none; text-shadow: none; }
    #request .sticky-cta, #request .sticky-cta * { box-shadow: none; }
    #request .field-card, #request #dynamicFields > div { background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--radius-lg); padding: 14px; }
    .upload-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--v2-surface); color: var(--v2-accent); border: 1px solid var(--v2-accent); border-radius: 10px; font-weight: 600; background-image: none; }
    .upload-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .upload-name { color: var(--v2-muted); font-size: 13px; }
    .upload-actions { display: flex; gap: 8px; }
    .attachment-preview { border-color: var(--v2-line); background: var(--v2-bg); }
    .form-summary .kv, .kv { border-color: var(--v2-line); }
    .checkout-actions { display: grid; gap: 8px; }
    .checkout-actions button { width: 100%; min-height: 48px; }
    .profile-note { background: var(--v2-accent-soft); color: var(--v2-accent-dark); font-weight: 500; border: 0; border-radius: 10px; padding: 10px 12px; }
    .status-icon:empty { display: none; }
    .profile-link { color: var(--v2-accent); font-weight: 600; text-decoration: none; padding: 4px 0; }
    .requisites summary { cursor: pointer; color: var(--v2-accent); font-weight: 600; padding: 8px 0; }
    #identityCard[hidden] { display: none; }
    .info-grid { grid-template-columns: 1fr; gap: 8px; }
    .info-item, .info-grid > div { background: var(--v2-bg); border: 0; }
    .pill[hidden] { display: none; }
    .field.error { border-radius: 12px; }
    .field.error > label, .field.error .row > label { color: var(--v2-danger); }
    .field.error input, .field.error textarea, .field.error select { border-color: var(--v2-danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); background: #fffafa; }
    .field-error { color: var(--v2-danger); font-size: 13px; font-weight: 600; line-height: 1.3; }
    .field-error:empty { display: none; }
    .field-error::before { content: "↑ "; }
    .checkout-feedback[data-state="error"] { background: #fdecea; color: var(--v2-danger); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
    .checkout-feedback[data-state="pending"] { color: var(--v2-muted); }
    .leaflet-control-attribution { font-size: 11px; }
    .leaflet-attribution-flag, .leaflet-control-attribution svg { display: none !important; }
    /* Отклик на касание: кнопки чуть «проседают», без резких эффектов. */
    button, .tab, .chip, a.secondary, a.route-link, #bottomNav button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    button:not(:disabled):active, .tab:active, .chip:active, a.secondary:active, a.route-link:active { transform: scale(.97); }
    button, .tab, .chip, a.secondary { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
    @media (prefers-reduced-motion: reduce) { button:not(:disabled):active, .tab:active, .chip:active { transform: none; } }
    /* Первый запуск: документы без дублей, cookie не перекрывает окно согласий. */
    #consentDocs { display: none; }
    .cookie-banner { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 12px; gap: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.14); }
    .cookie-banner p { font-size: 12.5px; line-height: 1.35; }
    .cookie-actions { flex-wrap: nowrap; }
    .cookie-actions button { flex: 1; }
    body.consent-open #cookieBanner { display: none !important; }
    .segmented.seg-large { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; background: #eef3ef; border-radius: 12px; }
    .segmented.seg-large button { min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--ink, #1c2b22); font-weight: 700; }
    .segmented.seg-large button.active { background: #fff; color: #0b6e3f; box-shadow: 0 1px 4px rgba(16,24,40,.14); }
    /* ===== Анимации ===== */
    @keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .view.active { animation: view-in .3s cubic-bezier(.22, 1, .36, 1) both; }
    /* Индикатор вкладки плавно переезжает, шаги формы заполняются. */
    nav button { position: relative; }
    nav button { transition: color .2s ease, border-color .25s ease, box-shadow .25s ease; }
    nav button svg { transition: transform .2s ease; }
    nav button.active svg { transform: translateY(-1px) scale(1.08); }
    .step { transition: color .2s ease, border-color .25s ease, background-color .25s ease; }
    .step.active, .step.done { animation: step-pop .35s ease; }
    @keyframes step-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
    /* Поля формы: ошибка «встряхивает» поле, фокус подсвечивается. */
    @keyframes field-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
    .field.error { animation: field-shake .4s ease; }
    input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(11, 110, 63, .16); transition: box-shadow .15s ease; }
    /* Статусы в работе мягко пульсируют: видно, что заявка живая. */
    @keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 110, 63, .35); } 70% { box-shadow: 0 0 0 7px rgba(11, 110, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 110, 63, 0); } }
    .request-card.live .progress-step.active b { animation: live-pulse 2s ease-out infinite; border-radius: 8px; }
    .progress-bar span { transition: width .6s cubic-bezier(.22, 1, .36, 1); }
    /* Экран успеха отправки. */
    .success-burst { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; background: rgba(255,255,255,.82); backdrop-filter: blur(2px); animation: sb-fade .2s ease both; }
    .success-burst.leaving { animation: sb-out .26s ease both; }
    .success-burst-card { display: grid; justify-items: center; gap: 8px; padding: 26px 30px; text-align: center; max-width: 80%; }
    .success-burst-card svg { width: 92px; height: 92px; }
    .success-burst-card b { font-size: 19px; }
    .success-burst-card span { color: var(--v2-muted, #5b6b7a); }
    .sb-circle { stroke: #0b6e3f; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: sb-draw .55s ease .05s forwards; }
    .sb-check { stroke: #0b6e3f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sb-draw .35s ease .5s forwards; }
    .success-burst-card b, .success-burst-card span { opacity: 0; animation: card-rise .4s ease .7s forwards; }
    @keyframes sb-draw { to { stroke-dashoffset: 0; } }
    @keyframes sb-fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes sb-out { to { opacity: 0; transform: scale(1.03); } }
    /* Скелетоны вместо пустоты при загрузке. */
    .skeleton-card { height: 86px; border-radius: 14px; background: linear-gradient(90deg, #eef2ef 25%, #f7faf8 37%, #eef2ef 63%); background-size: 400% 100%; animation: skeleton-wave 1.3s ease infinite; }
    @keyframes skeleton-wave { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
    @media (prefers-reduced-motion: reduce) {
      .view.active, .step.active, .step.done, .field.error, .request-card.live .progress-step.active b, .success-burst, .skeleton-card { animation: none !important; }
      .sb-circle, .sb-check { animation: none !important; stroke-dashoffset: 0; }
      .success-burst-card b, .success-burst-card span { animation: none !important; opacity: 1; }
      nav button, nav button svg { transition: none; }
    }
    /* ===== Премиальные штрихи ===== */
    /* Нижние окна выезжают пружиной, а не появляются рывком. */
    @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .consent-overlay.active .consent-sheet { animation: sheet-up .42s cubic-bezier(.16, 1, .3, 1) both; }
    .consent-overlay.active { animation: sb-fade .25s ease both; }
    /* Тосты влетают с лёгкой пружиной. */
    .toast { transition: opacity .28s ease, transform .42s cubic-bezier(.34, 1.56, .64, 1); }
    /* Главная кнопка: блик пробегает при нажатии и один раз при появлении экрана. */
    button.primary, .primary { position: relative; overflow: hidden; isolation: isolate; }
    button.primary::after, .primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); pointer-events: none; z-index: -1; opacity: 0; }
    button.primary:not(:disabled):active::after, .primary:not(:disabled):active::after { opacity: 1; left: 130%; transition: left .5s ease; }
    .view.active > button.primary:first-of-type::after, .view.active .primary.magnetic::after { opacity: 1; animation: sheen 1.1s ease .5s 1 both; }
    @keyframes sheen { from { left: -60%; } to { left: 130%; } }
    /* Карточки приподнимаются на касание, тени мягко меняются. */
    .card, .request-card { transition: transform .18s ease, box-shadow .25s ease; }
    @media (hover: hover) { .card:hover, .request-card:hover { box-shadow: 0 6px 22px rgba(16, 40, 28, .09); } }
    .request-card:active { transform: scale(.992); }
    /* Сумма расчёта выделяется и «набегает». */
    .quote-amount { font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: -.01em; }
    .checkout-card { animation: card-rise .45s cubic-bezier(.22, 1, .36, 1) both; }
    /* Метки статусов появляются мягко. */
    @media (prefers-reduced-motion: reduce) {
      .consent-overlay.active, .consent-overlay.active .consent-sheet, .checkout-card { animation: none !important; }
      button.primary::after, .primary::after { display: none; }
      .card, .request-card, .toast { transition: none; }
    }
    /* Анкета курьера и профиль: поля без вложенных карточек, на телефоне в одну колонку. */
    #courierApplicationForm .field, #profile .card .field { background: none; box-shadow: none; border: 0; padding: 0; }
    @media (max-width: 520px) { #courierApplicationForm .grid2 { grid-template-columns: 1fr; } }
    .topup-box { border: 1px dashed #b9d8c6; border-radius: 12px; padding: 12px; background: #f6fbf8; }
    .topup-box p { margin: 0; }
    .purchase-block { border: 1px solid #cfe5d8; background: #f3faf6; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
    .purchase-list { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; }
