    /* ── Stats Grid (standalone) ── */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 20px;
    }

    .stat-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .stat-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .stat-value {
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }

    .stat-value.overtime  { color: var(--warn); }
    .stat-value.ok        { color: var(--green); }
    .stat-value.remaining { color: var(--sub); }
    .stat-value.night     { color: var(--accent); }
    .stat-value.holiday   { color: var(--holiday); }

    /* ── Form section ── */
    .form-section {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)), var(--card);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      padding: var(--c-pad);
      margin-bottom: 16px;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
      overflow: visible;
    }

    .form-section.is-adding {
      border-color: rgba(56, 189, 248, 0.2);
    }

    .form-section.is-editing {
      border-color: rgba(247, 185, 85, 0.3);
      box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(247, 185, 85, 0.06);
    }

    @keyframes addPulse {
      0%   { border-color: rgba(56, 189, 248, 0.4); }
      50%  { border-color: rgba(56, 189, 248, 0.8); }
      100% { border-color: rgba(56, 189, 248, 0.4); }
    }

    .form-section.add-pulse {
      animation: addPulse 0.7s ease;
    }

    .form-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 4px;
      letter-spacing: -0.02em;
      line-height: 1.2;
      color: var(--text);
    }

    .form-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .form-title-leading {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }


    .edit-badge {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: var(--r-pill);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--warn);
      background: rgba(247, 185, 85, 0.12);
      border: 1px solid rgba(247, 185, 85, 0.24);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
      white-space: nowrap;
    }

    .edit-badge.visible { display: inline-flex; }

    .form-edit-banner {
      display: none;
      gap: 4px;
      margin-bottom: 14px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(247, 185, 85, 0.22);
      background: rgba(247, 185, 85, 0.08);
      color: #f9dfb0;
    }

    .form-section.is-editing .form-edit-banner {
      display: grid;
    }

    .form-edit-banner-title {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.25;
      color: #ffd88a;
    }

    .form-edit-banner-text {
      font-size: 12px;
      line-height: 1.45;
      color: rgba(255, 233, 195, 0.9);
    }

    .form-intro-card {
      margin-bottom: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(56, 189, 248, 0.14);
      background: rgba(56, 189, 248, 0.05);
    }

    .form-intro-copy {
      display: grid;
      gap: 4px;
    }

    .form-intro-title {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
      color: #d9f4ff;
    }

    .form-hint {
      font-size: 12px;
      color: rgba(238, 242, 248, 0.68);
      margin-bottom: 0;
      line-height: 1.55;
    }

    /* ── Form stage (inner card) ── */
    .form-stage {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)), var(--card-hi);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 12px;
      display: grid;
      gap: 14px;
    }

    .form-stage.form-stage-core {
      gap: 12px;
    }

    .form-stage-head {
      display: grid;
      gap: 2px;
      margin-bottom: 4px;
    }

    .form-stage-kicker {
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.3;
    }

    .form-stage-title {
      font-size: 12px;
      color: var(--sub);
      line-height: 1.35;
    }

    .form-stage-summary {
      margin-bottom: 12px;
      padding-top: 14px;
      padding-bottom: 12px;
    }

    .form-actions {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .form-actions .btn-cancel-edit {
      width: 100%;
      height: 48px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--sub);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .form-actions .btn-cancel-edit:active {
      background: rgba(255, 255, 255, 0.10);
      border-color: var(--border-hi);
      color: var(--text);
    }

    .form-actions .btn-delete-edit {
      margin-top: 14px;
      border-radius: 16px;
    }

    .form-success {
      text-align: center;
      color: var(--green);
      font-size: 13px;
      margin-top: 8px;
      min-height: 0;
    }

    .form-success:empty { display: none; }

    /* ── Field ── */
    .field {
      margin-bottom: 0;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: none;
      box-shadow: none;
      display: grid;
      gap: 6px;
    }

    .field label {
      display: block;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0;
    }

    .datetime-row {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 10px;
    }

    .field input[type="date"],
    .field input[type="time"] {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      color: var(--text);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 16px;
      padding: 8px 2px;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
      transition: border-color 0.15s;
      min-height: 40px;
    }

    .field input:focus {
      border-bottom-color: var(--accent);
      box-shadow: none;
      transform: none;
    }

    input,
    textarea,
    select {
      scroll-margin-top: 16px;
      scroll-margin-bottom: var(--keyboard-focus-scroll-bottom);
    }

    .field input::-webkit-calendar-picker-indicator {
      filter: invert(0.5);
      cursor: pointer;
    }

    .field-error {
      font-size: 12px;
      color: var(--danger);
      margin-top: 2px;
      min-height: 0;
    }

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

    .input-error { border-bottom-color: var(--danger) !important; }

    /* ── Draft stats ── */
    .draft-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      margin: 0;
      padding: 4px 0 0;
    }

    .draft-stat {
      position: relative;
      padding: 4px 8px 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-height: 54px;
    }

    .draft-stat + .draft-stat {
      border-left: 1px solid var(--border);
      padding-left: 14px;
    }

    .draft-stat-value {
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: clamp(16px, 4.6vw, 20px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.03em;
      color: var(--text);
      min-width: 0;
      max-width: 100%;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
      font-variant-numeric: tabular-nums;
    }

    .draft-stat-value.night   { color: var(--accent); }
    .draft-stat-value.holiday { color: var(--holiday); }

    .draft-stats-grid .stat-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
    }

    /* ── Optional expandable cards ── */
    .details-disclosure-wrap {
      margin-top: 2px;
      margin-bottom: 12px;
    }

    .details-disclosure-btn {
      width: 100%;
      min-height: 60px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-radius: 16px;
      border: 1px solid rgba(56, 189, 248, 0.18);
      background: rgba(56, 189, 248, 0.06);
      color: #cfeeff;
      font: inherit;
      text-align: left;
    }

    .details-disclosure-copy {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .details-disclosure-title {
      font-size: 14px;
      font-weight: 800;
      line-height: 1.3;
      color: var(--text);
    }

    .details-disclosure-note {
      margin: 0;
      font-size: 12px;
      line-height: 1.45;
      color: rgba(238, 242, 248, 0.62);
    }

    .details-disclosure-icon {
      flex-shrink: 0;
      font-size: 18px;
      line-height: 1;
      color: var(--accent);
      transition: transform 0.18s ease;
    }

    .details-disclosure-btn.is-expanded .details-disclosure-icon {
      transform: rotate(180deg);
    }

    .add-details-section.hidden {
      display: none;
    }

    .optional-section-title {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 8px 0 10px;
    }

    .optional-card {
      background: var(--card-hi);
      border: 1px solid var(--border);
      border-radius: var(--r-inner);
      margin-bottom: 10px;
      overflow: visible;
    }

    .optional-details {
      display: block;
    }

    .optional-summary {
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      transition: background 0.16s ease, color 0.16s ease;
    }

    .optional-summary:hover {
      background: rgba(255, 255, 255, 0.025);
    }

    .optional-summary:active {
      background: rgba(255, 255, 255, 0.038);
    }

    .optional-summary::-webkit-details-marker { display: none; }

    .optional-summary-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .optional-summary-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }

    .optional-summary-subtitle {
      font-size: 12px;
      color: rgba(238, 242, 248, 0.58);
      line-height: 1.4;
    }

    .optional-summary-chevron {
      flex-shrink: 0;
      color: var(--sub);
      transition: transform 0.18s ease;
      font-size: 18px;
      line-height: 1;
    }

    .optional-card[open] .optional-summary-chevron { transform: rotate(180deg); }

    @keyframes optionalExpand {
      from { opacity: 0; transform: translateY(-4px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes optionalCollapse {
      from { opacity: 1; transform: translateY(0); }
      to   { opacity: 0; transform: translateY(-4px); }
    }

    .optional-card[open] .optional-card-body {
      animation: optionalExpand 0.18s ease forwards;
    }

    .optional-card.is-closing .optional-card-body {
      animation: optionalCollapse 0.15s ease forwards;
      pointer-events: none;
    }

    .optional-card-body {
      padding: 0 16px 16px;
      position: relative;
      z-index: 1;
    }

    #optionalRouteCard .optional-card-body {
      padding: 10px 16px 16px;
    }

    #optionalNotesCard .optional-card-body {
      padding: 14px 16px 16px;
    }

    .optional-grid {
      display: grid;
      gap: 10px;
      padding-top: 8px;
    }

    .optional-card[open] .optional-summary {
      border-bottom: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
    }

    .optional-summary:focus-visible {
      outline: 2px solid rgba(91, 210, 255, 0.85);
      outline-offset: -2px;
      border-radius: calc(var(--r-inner) + 2px);
    }

    .optional-grid-two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-segmented {
      margin: 10px 0;
    }

    /* ── Glass select (custom dropdown) ── */
    .glass-select {
      position: relative;
      min-width: 0;
      overflow: visible;
      z-index: var(--layer-surface);
    }

    .glass-select-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      color: var(--text);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 15px;
      min-height: 40px;
      padding: 8px 2px;
      cursor: pointer;
      text-align: left;
      transition: border-color 0.15s;
    }

    .glass-select-trigger:active { opacity: 0.7; }

    .glass-select-trigger.is-open {
      border-bottom-color: var(--accent);
    }

    .glass-select-value {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 600;
      color: var(--text);
    }

    .glass-select-value.is-placeholder {
      color: var(--sub);
      font-weight: 500;
    }

    .glass-select-chevron {
      flex-shrink: 0;
      color: var(--sub);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.18s ease, color 0.18s ease;
    }
    .glass-select-chevron svg {
      width: 16px;
      height: 16px;
      display: block;
    }

    .glass-select-trigger.is-open .glass-select-chevron {
      transform: rotate(180deg);
      color: var(--accent);
    }

    .optional-card.has-open-select {
      position: relative;
      z-index: var(--layer-overlay);
      overflow: visible;
    }

    .optional-card.has-open-select .optional-card-body,
    .optional-card.has-open-select .optional-grid,
    .optional-card.has-open-select .field {
      overflow: visible;
    }

    .glass-select.is-open {
      z-index: var(--layer-overlay);
    }

    .glass-select-menu {
      position: absolute;
      left: 0;
      top: calc(100% + 8px);
      width: 100%;
      min-width: 180px;
      z-index: var(--layer-overlay);
      display: grid;
      gap: 2px;
      padding: 6px;
      border-radius: var(--r-card);
      background: var(--card);
      border: 1px solid var(--border-hi);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
      max-height: min(256px, 52vh);
      overflow: auto;
      overscroll-behavior: contain;
      transform: translateZ(0);
      pointer-events: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      scrollbar-gutter: stable;
    }

    .glass-select-menu::-webkit-scrollbar { width: 4px; }
    .glass-select-menu::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: color-mix(in oklch, var(--accent) 34%, transparent);
    }

    .glass-select-option {
      border: none;
      background: transparent;
      color: var(--text);
      text-align: left;
      padding: 10px 12px;
      border-radius: var(--r-inner);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.12s;
    }

    .glass-select-option:hover,
    .glass-select-option.is-active {
      background: var(--accent-dim);
      color: var(--accent);
    }

    .glass-select-option:active { opacity: 0.7; }

    .glass-select-option[data-empty="true"] {
      color: var(--sub);
      font-weight: 500;
      cursor: default;
      pointer-events: none;
      background: transparent;
    }

    /* ── Optional control (input/select) ── */
    .optional-control {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      color: var(--text);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 15px;
      padding: 8px 2px;
      outline: none;
      min-height: 40px;
      -webkit-appearance: none;
      appearance: none;
      transition: border-color 0.15s;
    }

    .optional-control:focus {
      border-bottom-color: var(--accent);
    }

    .optional-textarea {
      min-height: 112px;
      resize: vertical;
      line-height: 1.5;
      padding: 14px 14px 16px;
      font-family: 'Golos Text', system-ui, sans-serif;
      background: var(--card-hi);
      border: 1px solid var(--border);
      border-radius: 14px;
    }

    .optional-textarea:focus {
      border-color: rgba(123, 180, 255, 0.42);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
    }

    #optionalNotesCard .field {
      gap: 10px;
    }

    select.optional-control,
    .optional-select {
      padding-right: 28px;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--sub) 50%),
        linear-gradient(135deg, var(--sub) 50%, transparent 50%);
      background-position:
        calc(100% - 10px) 55%,
        calc(100% - 4px) 55%;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    select.optional-control.is-placeholder,
    .optional-select.is-placeholder {
      color: var(--sub);
    }

    .optional-note {
      margin-top: 8px;
      font-size: 12px;
      color: rgba(238, 242, 248, 0.54);
      line-height: 1.5;
    }

    .fuel-columns {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      padding-top: 8px;
    }

    .fuel-column {
      display: grid;
      gap: 10px;
      border: 1px solid var(--border);
      border-radius: var(--r-inner);
      padding: 12px;
    }

    .fuel-column-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }

    .fuel-column .optional-control {
      font-family: 'Golos Text', system-ui, sans-serif;
    }

    .fuel-sections {
      display: grid;
      gap: 8px;
    }

    .fuel-section-row {
      border: 1px solid var(--border);
      border-radius: var(--r-inner);
      padding: 10px;
      background: rgba(255, 255, 255, 0.02);
    }

    .fuel-section-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .fuel-section-label {
      font-size: 16px;
      line-height: 1;
      font-weight: 700;
      color: var(--text);
    }

    .fuel-section-bottom {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .fuel-inline-wrap {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .fuel-inline-prefix {
      font-size: 14px;
      font-weight: 700;
      color: var(--sub);
      letter-spacing: 0.01em;
    }

    .fuel-inline-unit {
      font-size: 13px;
      font-weight: 700;
      color: var(--sub);
    }

    .fuel-inline-input {
      border: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.03);
      min-height: 34px;
      padding: 6px 10px;
      text-align: right;
      width: 90px;
    }

    .fuel-inline-input:focus {
      border-color: var(--accent);
      border-bottom-color: var(--accent);
    }

    .fuel-liters-inline {
      width: 96px;
    }

    .fuel-coeff-inline {
      width: 78px;
    }

    .fuel-kg-inline {
      width: 90px;
    }

    @media (max-width: 860px) {
      .fuel-columns {
        grid-template-columns: 1fr;
      }
    }

    .fuel-coeff-input {
      letter-spacing: 0.01em;
    }

    .fuel-kg-output[readonly],
    .fuel-kg-output[disabled] {
      color: var(--accent);
      border-bottom-style: dashed;
      cursor: default;
      pointer-events: none;
      opacity: 1;
      -webkit-text-fill-color: var(--accent);
    }

    .fuel-kg-inline[readonly],
    .fuel-kg-inline[disabled] {
      border-style: dashed;
      border-bottom-style: dashed;
    }

    .fuel-consumption-note {
      margin-top: 10px;
      font-size: 11px;
      color: var(--muted);
      line-height: 1.35;
      display: grid;
      gap: 6px;
      align-items: start;
    }

    .fuel-consumption-sections {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 12px;
    }

    .fuel-consumption-chip {
      white-space: nowrap;
    }

    .fuel-consumption-total {
      color: var(--sub);
    }

    .fuel-consumption-total strong {
      color: var(--text);
    }

    .fuel-consumption-note strong {
      color: var(--sub);
      font-family: 'Golos Text', system-ui, sans-serif;
      font-weight: 600;
      margin-left: 2px;
    }

    /* ── Primary button ── */
    .btn-primary {
      width: 100%;
      height: 52px;
      border-radius: 16px;
      background: linear-gradient(180deg, #5bd2ff, var(--accent));
      color: #000e1a;
      font-family: 'Golos Text', system-ui, sans-serif;
      font-size: 16px;
      font-weight: 800;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 22px var(--accent-glow);
      letter-spacing: 0.01em;
      transition: box-shadow 0.18s, transform 0.14s, filter 0.14s, opacity 0.14s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .btn-primary:hover {
      filter: brightness(1.03);
      box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24);
    }

    .btn-primary:active {
      transform: translateY(1px) scale(0.99);
      box-shadow: 0 2px 10px var(--accent-glow);
      filter: brightness(0.98);
    }

    .btn-primary:focus-visible {
      outline: 2px solid rgba(91, 210, 255, 0.92);
      outline-offset: 3px;
      filter: brightness(1.02);
      box-shadow: 0 0 0 1px rgba(91, 210, 255, 0.16), 0 10px 26px rgba(56, 189, 248, 0.24);
    }

    .btn-primary[aria-busy="true"] {
      cursor: wait;
      filter: saturate(0.96);
    }

    .btn-primary:disabled,
    .btn-primary[aria-disabled="true"] {
      opacity: 0.45;
      pointer-events: none;
      filter: saturate(0.88);
      box-shadow: 0 4px 12px rgba(56, 189, 248, 0.08);
    }
