    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    :root {
      --green: #2e7d32;
      --green-dark: #1b5e20;
      --green-light: #e8f5e9;
      --blue: #1976d2;
      --red: #d32f2f;
      --orange: #ff9800;
      --border: #d8d8d8;
      --text: #2c3e50;
      --muted: #777;
      --surface: rgba(255, 255, 255, 0.72);
      --surface-solid: #ffffff;
      --radius: 16px;
    }

    @keyframes splashSpin {
      to { transform: rotate(360deg); }
    }
    .splash-screen {
      position: fixed; inset: 0; z-index: 999999;
      display: flex; align-items: center; justify-content: center;
      background: #e8f5e9 url('/villa-bg.jpg') center / cover no-repeat;
    }
    .splash-card {
      text-align: center;
      padding: 36px 40px;
      border-radius: 20px;
      background: rgba(255,255,255,0.82);
      border: 1px solid rgba(46,125,50,0.2);
      box-shadow: 0 12px 40px rgba(27,94,32,0.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .splash-mark { font-size: 42px; line-height: 1; }
    .splash-title {
      margin-top: 10px;
      font-size: 22px; font-weight: 700;
      color: #1b5e20; letter-spacing: 0.02em;
    }
    .splash-spin {
      width: 44px; height: 44px; margin: 18px auto 0;
      border: 5px solid #c8e6c9;
      border-top-color: #2e7d32;
      border-radius: 50%;
      animation: splashSpin 0.8s linear infinite;
    }
    .splash-text {
      margin-top: 14px;
      font-size: 14px; line-height: 1.45;
      color: #2e7d32; font-weight: 600;
    }
    .prv-list { display: flex; flex-direction: column; gap: 10px; }
    .prv-card {
      background: rgba(255,255,255,0.92);
      border: 1px solid #e4ece4;
      border-radius: 16px;
      padding: 12px 14px;
    }
    .prv-card-title {
      font-size: 14px; font-weight: 700; color: #1b5e20;
      word-break: break-word; line-height: 1.3;
    }
    .prv-card-meta {
      margin-top: 3px;
      font-size: 11px; color: #888; line-height: 1.35;
      word-break: break-word;
    }
    .prv-card-row {
      display: flex; align-items: center; gap: 8px;
      margin-top: 10px;
    }
    .prv-price-wrap {
      display: flex; align-items: center; gap: 8px;
      flex: 1; min-width: 0;
      padding: 4px 10px 4px 4px;
      border: 1px solid #d8d8d8;
      border-radius: 999px;
      background: #fff;
    }
    .prv-price-wrap input {
      flex: 1; min-width: 0; width: auto;
      border: none; background: transparent;
      box-shadow: none; min-height: 36px;
      padding: 4px 8px; font-size: 16px; font-weight: 700;
    }
    .prv-price-wrap input:focus { box-shadow: none; }
    .prv-cur {
      flex: 0 0 auto;
      font-size: 12px; font-weight: 700; color: #2e7d32;
      letter-spacing: 0.04em; white-space: nowrap;
    }
    .prv-save {
      flex: 0 0 auto;
      padding: 8px 14px !important;
      font-size: 13px !important;
    }
    .prv-save {
      background: var(--green) !important;
      border-color: var(--green) !important;
      color: #fff !important;
    }
    .prv-save:disabled {
      opacity: 0.7 !important;
      cursor: not-allowed;
    }

    .delivery-item {
      background: #f7faf7;
      border: 1px solid #e4ece4;
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 10px;
    }
    .delivery-catalog-price:not([hidden]) {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      font-size: 13px;
      cursor: pointer;
    }
    .delivery-catalog-price input {
      width: 18px;
      height: 18px;
      min-height: 18px;
      padding: 0;
      margin: 0;
      flex-shrink: 0;
      accent-color: var(--green-dark);
    }
    .delivery-item-name {
      font-size: 14px;
      font-weight: 700;
      color: #1b5e20;
      word-break: break-word;
    }
    .delivery-item-qty {
      margin-left: 4px;
      font-size: 13px;
      font-weight: 500;
      color: #888;
    }
    .delivery-item-controls {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .delivery-select {
      width: auto;
      flex: 0 0 auto;
      min-width: 130px;
      min-height: 38px;
      padding: 7px 32px 7px 12px;
      font-size: 13px;
      font-weight: 600;
    }
    .delivery-qty-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      padding: 4px 12px 4px 4px;
      border: 1px solid #d8d8d8;
      border-radius: 999px;
      background: #fff;
    }
    .delivery-qty-wrap[hidden] {
      display: none;
    }
    .delivery-qty-wrap span {
      margin-left: 6px;
      font-size: 11px;
      color: #888;
      white-space: nowrap;
    }
    .delivery-qty-wrap input {
      width: 64px;
      min-height: auto;
      border: none;
      background: transparent;
      box-shadow: none;
      padding: 6px 4px;
      text-align: center;
      font-size: 14px;
      font-weight: 700;
    }
    .delivery-qty-wrap input:focus {
      box-shadow: none;
    }
    .delivery-reason {
      flex: 1 1 160px;
      min-height: 38px;
      padding: 7px 12px;
      font-size: 13px;
    }
    .delivery-confirm-btn {
      width: 100%;
      margin-top: 4px;
      padding: 12px 20px;
      border: none;
      border-radius: 999px;
      background: #43a047;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: filter 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    }
    .delivery-confirm-btn:hover {
      filter: brightness(0.95);
    }
    .delivery-confirm-btn:active {
      transform: translateY(1px);
    }
    .delivery-confirm-btn:disabled {
      background: #999;
      cursor: not-allowed;
      opacity: 0.7;
    }
    .delivery-resend-btn {
      margin-top: 8px;
      margin-left: 8px;
      padding: 9px 16px;
      border: 1.5px solid #ef6c00;
      border-radius: 999px;
      background: #fff;
      color: #ef6c00;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, opacity 0.2s ease;
    }
    .delivery-resend-btn:hover {
      background: #fff3e0;
    }
    .delivery-resend-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    /* Одна позиция — одна строка на десктопе; на узком экране переносится. */
    .delivery-item {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
    }
    .delivery-item-name {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: normal;
    }
    .delivery-item-controls {
      flex: 0 0 auto;
      flex-wrap: nowrap;
      margin-top: 0;
    }
    .delivery-item .delivery-catalog-price:not([hidden]) {
      flex: 0 0 auto;
      margin-top: 0;
      white-space: nowrap;
    }
    .delivery-item .delivery-reason { flex: 0 1 180px; min-width: 100px; }
    .delivery-item .delivery-lock-note { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
    .delivery-item .delivery-item-name { flex: 1 1 120px; }
    .delivery-item .delivery-select { min-width: 0; padding-right: 26px; }
    .delivery-item .delivery-qty-wrap { padding-right: 8px; }
    .delivery-item .delivery-qty-wrap input { width: 52px; }
    .delivery-item .delivery-qty-wrap span { margin-left: 2px; font-size: 10px; }
    .delivery-item .delivery-item-controls { gap: 6px; }
    .delivery-item .delivery-lock-note { font-size: 14px; }
    @media (max-width: 640px) {
      .delivery-item { flex-wrap: wrap; }
      .delivery-item-name { flex: 1 1 100%; white-space: normal; }
      .delivery-item-controls { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; }
      .delivery-item .delivery-qty-wrap span { display: none; }
      .delivery-item .delivery-qty-wrap input { width: 64px; }
    }
    /* Провайдер: плотная таблица позиций. Одинаковые колонки у всех строк. */
    .prv-dl-row {
      display: grid;
      grid-template-columns: minmax(80px, 1fr) 38px 56px 4px 50px 128px 4px 58px 58px 4px 152px;
      column-gap: 4px;
      align-items: center;
      min-height: 36px;
      padding: 3px 6px;
      border-bottom: 1px solid #edf1ed;
      font-size: 13px;
    }
    .prv-dl-card .prv-dl-row:last-of-type { border-bottom: none; }
    .prv-dl-listhead {
      position: sticky;
      top: 0;
      z-index: 5;
      background: #eef4ec;
      padding: 2px 10px 0;
      border-bottom: 1px solid #d9e4d6;
      margin-bottom: 6px;
    }
    .prv-dl-caption { font-size: 10px; color: #777; text-align: right; line-height: 1.4; }
    .prv-dl-head {
      min-height: 0;
      padding: 0 6px 3px;
      border-bottom: none;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .02em;
      color: #666;
      white-space: nowrap;
    }
    .prv-dl-cell { min-width: 0; }
    .prv-dl-product {
      font-weight: 600;
      color: #1b5e20;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .prv-dl-head .prv-dl-product { color: #666; }
    .prv-dl-num { text-align: right; font-variant-numeric: tabular-nums; }
    .prv-dl-head .prv-dl-price { text-align: left; }
    .prv-dl-row input[type="number"] {
      width: 100%;
      min-height: 28px;
      height: 28px;
      padding: 2px 6px;
      font-size: 13px;
      text-align: right;
      box-sizing: border-box;
      border-radius: 6px;
    }
    .prv-dl-row input[type="number"].prv-dl-diff {
      background: #fff4d6;
      border-color: #f0b429;
    }
    .prv-dl-price { display: flex; align-items: center; gap: 4px; }
    .prv-dl-price input[type="number"] { flex: 0 0 56px; width: 56px; }
    .prv-dl-text { font-variant-numeric: tabular-nums; }
    .prv-dl-text[hidden], .prv-dl-row input[hidden] { display: none; }
    .prv-dl-keep {
      flex: 1 1 auto;
      display: inline-flex; align-items: center; gap: 3px;
      height: 22px; padding: 0 6px;
      border: 1px solid #cfd8cf; border-radius: 999px;
      background: #fff; color: #555;
      font-size: 11px; line-height: 1; white-space: nowrap;
      cursor: pointer; user-select: none;
    }
    .prv-dl-keep input { width: 12px; height: 12px; min-height: 12px; margin: 0; padding: 0; accent-color: var(--green-dark); }
    .prv-dl-keep-on { background: #e3f2e4; border-color: #43a047; color: #1b5e20; font-weight: 700; }
    .prv-dl-total-old s { color: #aaa; }
    .prv-dl-total-new { font-weight: 700; }
    .prv-dl-total-new.prv-dl-diff-total { color: #b26a00; }
    .prv-dl-confirm { display: flex; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
    .prv-dl-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 4px;
      height: 26px; min-height: 26px; padding: 0 6px;
      border: 1px solid #43a047; border-radius: 999px;
      background: transparent; color: #2e7d32;
      font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
    }
    .prv-dl-btn:hover { background: #e8f5e9; }
    .prv-dl-btn:disabled { border-color: #bbb; color: #999; cursor: not-allowed; background: transparent; }
    .prv-dl-un {
      display: inline-flex; align-items: center; justify-content: center;
      height: 26px; min-height: 26px; padding: 0 6px;
      border: 1px solid #d9534f; border-radius: 999px;
      background: transparent; color: #c62828;
      font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
    }
    .prv-dl-un:hover { background: #fdecea; }
    .prv-dl-un:disabled { border-color: #bbb; color: #999; cursor: not-allowed; background: transparent; }
    .prv-dl-un[hidden] { display: none; }
    .prv-dl-un-badge {
      display: inline-block; padding: 1px 7px; border-radius: 999px;
      background: #fdecea; color: #c62828; font-size: 10px; font-weight: 700; white-space: nowrap;
    }
    .prv-dl-un-badge[hidden] { display: none; }
    .prv-dl-unavail .prv-dl-newqty { grid-column: span 2; text-align: left; }
    .prv-dl-unavail .prv-dl-gap1 { display: none; }
    .prv-dl-unavail .prv-dl-product { color: #999; }
    .prv-dl-ask { grid-column: 3 / -1; display: flex; align-items: center; gap: 6px; }
    .prv-dl-ask[hidden] { display: none; }
    .prv-dl-asking > .prv-dl-newqty, .prv-dl-asking > .prv-dl-gap, .prv-dl-asking > .prv-dl-curprice,
    .prv-dl-asking > .prv-dl-price, .prv-dl-asking > .prv-dl-total-old, .prv-dl-asking > .prv-dl-total-new,
    .prv-dl-asking > .prv-dl-confirm { display: none; }
    .prv-dl-asking { background: #fff8f6; }
    .prv-dl-reason { flex: 1 1 120px; min-width: 80px; height: 28px; min-height: 28px; padding: 2px 8px; font-size: 12px; box-sizing: border-box; }
    .prv-dl-ask-text { font-size: 12px; font-weight: 600; color: #c62828; white-space: nowrap; }
    .prv-dl-yes, .prv-dl-no {
      height: 26px; min-height: 26px; padding: 0 12px; border-radius: 999px;
      font-size: 12px; font-weight: 700; cursor: pointer; width: auto;
    }
    .prv-dl-yes { border: 1px solid #c62828; background: #c62828; color: #fff; }
    .prv-dl-no { border: 1px solid #bbb; background: #fff; color: #555; }
    .prv-dl-yes:disabled, .prv-dl-no:disabled { opacity: .6; cursor: not-allowed; }
    .prv-dl-pin { font-size: 13px; cursor: help; margin-left: 2px; }
    .prv-dl-pin[hidden] { display: none; }
    .prv-dl-choice {
      display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
      padding: 5px 8px; margin: 2px 0 4px;
      background: #f3f8f3; border: 1px solid #cfe3cf; border-radius: 8px;
      font-size: 12px;
    }
    .prv-dl-choice[hidden] { display: none; }
    .prv-dl-choice-text { font-weight: 600; color: #1b5e20; }
    .prv-dl-choice-btn {
      height: 26px; min-height: 26px; padding: 0 10px; width: auto;
      border: 1px solid #43a047; border-radius: 999px; background: #fff; color: #2e7d32;
      font-size: 12px; font-weight: 700; cursor: pointer;
    }
    .prv-dl-choice-btn:hover { background: #e8f5e9; }
    .prv-dl-choice-future { background: #2e7d32; color: #fff; }
    .prv-dl-choice-future:hover { background: #256628; }
    .prv-dl-btn[hidden], .prv-dl-lock[hidden], .prv-dl-spin[hidden] { display: none; }
    .prv-dl-lock { font-size: 15px; cursor: help; }
    .prv-dl-spin {
      width: 11px; height: 11px; border-radius: 50%;
      border: 2px solid #bbb; border-top-color: #2e7d32;
      animation: prv-dl-rot .7s linear infinite;
    }
    @keyframes prv-dl-rot { to { transform: rotate(360deg); } }
    .prv-dl-locked { color: #777; }
    .prv-dl-locked .prv-dl-product, .prv-dl-locked .prv-dl-total-new { color: #777; }
    .prv-dl-invalid input { border-color: #c62828; }
    .prv-dl-err { grid-column: 1 / -1; font-size: 12px; color: #c62828; }
    .prv-dl-err[hidden] { display: none; }

    /* Карточка заказа провайдера — плоская: тонкая рамка, минимум отступов. */
    .prv-card.prv-dl-card { padding: 4px 10px 6px; margin-bottom: 8px; border-radius: 10px; }
    .prv-dl-card .delivery-status-msg:empty { display: none; }
    .prv-dl-card .delivery-resend-btn { margin-top: 4px; }
    .prv-dl-oh {
      display: flex; align-items: center; gap: 8px;
      min-height: 30px; padding: 2px 0 4px;
      border-bottom: 1px solid #e4ece4; margin-bottom: 2px;
      font-size: 12px;
    }
    .prv-dl-oid {
      border: none; background: none; padding: 0; cursor: copy;
      font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: #444; min-height: 0; width: auto;
    }
    .prv-dl-oid:hover { text-decoration: underline; }
    .prv-dl-copied { color: #2e7d32; }
    .prv-dl-badge { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e3eefc; color: #1a5fb4; }
    .prv-dl-badge-delivered { background: #e3f2e4; color: #1b5e20; }
    .prv-dl-date { color: #777; }
    .prv-dl-ototal { margin-left: auto; font-variant-numeric: tabular-nums; }
    .prv-dl-ototal s { color: #aaa; }
    .prv-dl-ototal b { font-weight: 700; }
    .prv-dl-oactions { display: inline-flex; }
    .prv-dl-all-btn {
      height: 26px; padding: 0 10px; border: 1px solid #2e7d32; border-radius: 999px;
      background: #2e7d32; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
      width: auto; min-height: 0; margin: 0;
    }
    .prv-dl-all-btn:disabled { background: #999; border-color: #999; cursor: not-allowed; }
    .prv-dl-all-btn[hidden] { display: none; }

    @media (max-width: 640px) {
      .prv-dl-row.prv-dl-head { display: none; }
      .prv-dl-caption { text-align: left; }
      .prv-dl-row { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: flex-end; padding: 4px 2px 6px; }
      .prv-dl-gap { display: none; }
      /* принудительный перенос после ряда 1 (order 2 + последний в DOM среди order 2) */
      .prv-dl-row::after { content: ''; order: 2; flex: 0 0 100%; height: 0; }
      .prv-dl-err { order: 9; flex: 1 1 100%; }
      /* ряд 1: Product + New total */
      .prv-dl-product { order: 1; flex: 1 1 0; min-width: 0; align-self: center; }
      .prv-dl-total-new { order: 2; flex: 0 0 auto; align-self: center; }
      .prv-dl-total-old { order: 2; flex: 0 0 auto; align-self: center; margin-left: auto; }
      /* ряд 2: остальное */
      .prv-dl-qty { order: 3; } .prv-dl-newqty { order: 4; } .prv-dl-curprice { order: 5; }
      .prv-dl-price { order: 6; } .prv-dl-confirm { order: 7; margin-left: auto; }
      .prv-dl-product::before { display: none; }
      .prv-dl-num, .prv-dl-price { flex: 0 0 auto; text-align: left; }
      .prv-dl-total-old, .prv-dl-total-new { text-align: right; }
      .prv-dl-row input[type="number"] { width: 54px; }
      .prv-dl-price input[type="number"] { flex: 0 0 54px; width: 54px; }
      .prv-dl-btn { padding: 0 6px; }
      .prv-dl-un-label { display: none; }
      .prv-dl-un { padding: 0 8px; }
      .prv-dl-ask { flex: 1 1 100%; order: 5; flex-wrap: wrap; }
      .prv-dl-unavail .prv-dl-newqty { flex: 0 0 auto; }
      .prv-dl-unavail .prv-dl-price { display: none; }
      .prv-dl-cell[data-label]:not(.prv-dl-product):not(.prv-dl-total-old):not(.prv-dl-total-new)::before {
        content: attr(data-label); display: block;
        font-size: 9px; text-transform: uppercase; color: #777; line-height: 1.1;
      }
      .prv-dl-price { flex-wrap: wrap; }
      .prv-dl-price::before { flex: 1 1 100%; }
      /* пока цена не менялась, чип не занимает место; при изменении может уйти на 3-й ряд */
      .prv-dl-keep[style*="hidden"] { display: none; }
      .prv-dl-total-old::before, .prv-dl-total-new::before { display: none; }
      .prv-dl-oh { flex-wrap: wrap; row-gap: 4px; }
    }
    .delivery-status-msg {
      margin-top: 8px;
      font-size: 13px;
      color: #555;
    }
    .delivery-lock-note {
      margin-top: 6px;
      font-size: 11px;
      color: #999;
    }

    html {
      width: 100%;
      min-height: 100%;
      margin: 0;
      padding: 0;
      background: #eef4ec;
    }

    body {
      width: 100%;
      min-width: 320px;
      min-height: 100vh;
      min-height: 100dvh;
      margin: 0;
      padding: 30px;

      overflow-x: hidden;
      overflow-y: auto;

      font-family: Arial, sans-serif;
      color: var(--text);
      background-image: url('/villa-bg.jpg');
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
      background-attachment: fixed;
    }

    .container {
      position: relative;
      z-index: 1;

      width: min(100%, 1300px);
      min-height: calc(100vh - 60px);
      min-height: calc(100dvh - 60px);
      margin: 0 auto;
      padding: 30px;

      background: var(--surface);
      border: 1px solid rgba(255, 255, 255, 0.45);
      border-radius: 16px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    h1 {
      margin: 0;
      color: var(--green-dark);
      font-size: 24px;
      line-height: 1.25;
    }

    h2,
    h3 {
      color: var(--green-dark);
    }

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

    button {
      -webkit-tap-highlight-color: transparent;
      border-radius: 999px;
    }

    input,
    select,
    textarea {
      max-width: 100%;
    }

    .lang-switcher {
      position: absolute;
      top: 15px;
      right: 20px;
      z-index: 2;
      margin: 0;
      text-align: right;
    }

    .lang-switcher select {
      width: auto;
      min-width: 58px;
      padding: 5px 8px;
      border: 1px solid var(--green);
      border-radius: 14px;
      background: #fff;
      color: var(--green);
      cursor: pointer;
      font-size: 13px;
    }

    .villa-select-wrap {
      width: 100%;
      margin: 24px 0 20px;
    }

    .villa-select-wrap label {
      display: block;
      margin-bottom: 6px;
      color: #555;
      font-weight: 700;
    }

    .villa-select-wrap select {
      display: block;
      width: min(100%, 500px);
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 40px;
      padding: 9px 10px;

      border: 1px solid #ccc;
      border-radius: 14px;
      outline: none;

      background: rgba(255, 255, 255, 0.9);
      color: var(--text);
      font-size: 14px;

      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.14);
    }

    select {
      padding-right: 36px;
      cursor: pointer;

      -webkit-appearance: none;
      appearance: none;

      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
    }

    input[readonly],
    input:disabled,
    select:disabled {
      background: #f0f0f0;
      color: #888;
      cursor: not-allowed;
    }

    .field {
      min-width: 0;
      flex: 1 1 auto;
    }

    .inline-label-row {
      display: flex;
      align-items: center;
      gap: 20px;
      width: 100%;
      margin-bottom: 12px;
    }

    .inline-label-row > span {
      min-width: 130px;
      color: #555;
      font-weight: 700;
    }

    .inline-label-row .field {
      min-width: 0;
      flex: 1 1 auto;
    }

    .dt-picker-wrap {
      display: flex;
      gap: 8px;
      width: 100%;
    }

    .dt-picker-wrap input[type="date"] {
      flex: 2 1 0;
    }

    .dt-time-select {
      flex: 1 1 0;
    }

    .tabs-nav {
      display: flex !important;
      width: 100%;
      gap: 8px;
      margin: 20px 0 10px;
      border-bottom: none;
      visibility: visible !important;
      opacity: 1 !important;
    }

    .search-wrap {
      position: relative;
      margin: 4px 0 16px;
    }

    .search-results {
      position: absolute;
      left: 0; right: 0; top: 100%;
      z-index: 20;
      margin-top: 6px;
      background: var(--surface-solid);
      border: 1px solid rgba(0,0,0,0.08);
      border-radius: 14px;
      max-height: 340px;
      overflow-y: auto;
      box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }

    .search-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
    }

    .search-item:last-child { border-bottom: none; }
    .search-item:hover, .search-item:active { background: #f5f5f5; }

    .search-thumb, .search-thumb-empty {
      width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
      background: #eceff1; flex-shrink: 0;
    }

    .search-thumb-empty {
      display: flex; align-items: center; justify-content: center; color: #b0bec5; font-size: 16px;
    }

    .search-info { flex: 1; min-width: 0; }

    .search-name {
      font-weight: 700; font-size: 14px; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .search-price { font-size: 12px; color: #888; margin-top: 2px; }

    .search-add-btn {
      flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; border: none;
      background: var(--green); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer;
    }

    .search-no-results {
      padding: 16px; color: #999; text-align: center; font-size: 14px;
    }

    .tab-btn {
      min-width: 0;
      flex: 1 1 0;
      padding: 10px 8px;

      border: 2px solid var(--green);
      border-radius: 999px;

      background: #f5f5f5;
      color: var(--green);

      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      white-space: normal;

      transition: background 0.2s ease, color 0.2s ease;
    }

    .tab-btn.active {
      background: var(--green);
      color: #fff;
    }

    .tab-btn:hover:not(.active) {
      background: var(--green-light);
    }

    .tab-panel {
      display: none;
      width: 100%;
    }

    .tab-panel.active {
      display: block;
      animation: tabFadeIn 0.25s ease;
    }

    @keyframes tabFadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .tab-panel table {
      display: block;
      width: 100%;
      overflow-x: auto;
      border-collapse: collapse;
      margin-top: 10px;
    }

    .tab-panel table thead,
    .tab-panel table tbody {
      width: 100%;
    }

    th {
      padding: 10px;
      background: rgba(46, 125, 50, 0.9);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      white-space: nowrap;
    }

    /* Ячейка "Product" (.nom-cell) — flex-строка из <select> + превью-иконка
       44px справа (см. .nom-preview). Из-за неё сам select визуально уже
       всей колонки, и заголовок, центрированный по всей ширине th, не
       совпадает с центром select'а. Компенсируем правым паддингом —
       заголовок центрируется в той же зоне, что и select. */
    .tab-panel table thead th:nth-child(2) {
      padding-right: 54px;
    }

    td {
      padding: 6px;
      border: 1px solid var(--border);
      vertical-align: middle;
    }

    .nom-cell {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 180px;
      min-height: 44px;
    }

    .nom-cell select {
      min-width: 0;
      flex: 1 1 auto;
    }

    .nom-preview {
      flex: 0 0 auto;
    }

    .nom-thumb,
    .nom-thumb-empty {
      width: 44px;
      height: 44px;
      border-radius: 10px;
    }

    .nom-thumb {
      display: block;
      flex-shrink: 0;
      border: 1px solid #e0e0e0;
      object-fit: cover;
      background: #f5f5f5;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nom-thumb-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      border: 1px dashed #ccc;
      background: #f0f0f0;
      color: #bbb;
      font-size: 18px;
    }

    @media (hover: hover) and (pointer: fine) {
      .nom-thumb:hover {
        position: relative;
        z-index: 10;
        transform: scale(1.5);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
      }
    }

    .qty-btn {
      width: 28px;
      height: 28px;
      padding: 0;

      border: 1px solid #ccc;
      border-radius: 12px;
      background: #fff;
      color: #333;

      cursor: pointer;
      font-size: 16px;
      line-height: 1;
    }

    .qty-btn:hover {
      background: #f1f1f1;
    }

    .btn-add,
    .btn-save,
    .btn-download,
    .btn-delete,
    .pay-btn {
      border: none;
      cursor: pointer;
      transition: filter 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    }

    .btn-add:hover,
    .btn-save:hover,
    .btn-download:hover,
    .btn-delete:hover,
    .pay-btn:hover {
      filter: brightness(0.95);
    }

    .btn-add:active,
    .btn-save:active,
    .btn-download:active,
    .btn-delete:active,
    .pay-btn:active {
      transform: translateY(1px);
    }

    .btn-add {
      padding: 8px 14px;
      border-radius: 999px;
      background: #43a047;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
    }

    .btn-save {
      width: 100%;
      margin-top: 25px;
      padding: 14px 20px;
      border-radius: 999px;
      background: var(--blue);
      color: #fff;
      font-size: 18px;
      font-weight: 700;
    }

    .btn-save:disabled,
    .btn-download:disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }

    .btn-save:disabled {
      background: #999;
    }

    .btn-download {
      display: inline-block;
      margin-right: 12px;
      padding: 12px 20px;
      border-radius: 999px;
      background: var(--orange);
      color: #fff;
      font-size: 15px;
    }

    .btn-delete {
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
    }

    .pay-btn {
      display: inline-block;
      margin: 12px 12px 12px 0;
      padding: 14px 28px;
      border-radius: 999px;
      background: #6772e5;
      color: #fff !important;
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
    }

    .summary {
      margin-top: 20px;
      color: var(--green-dark);
      font-size: 24px;
      font-weight: 700;
      text-align: right;
    }

    #orderSummaryBlock {
      width: 100%;
      overflow-y: auto;
    }

    #summaryOrderId {
      color: #555;
      font-size: 14px;
      font-weight: 700;
      text-align: right;
    }

    .no-villa-msg {
      margin-top: 20px;
      padding: 40px;
      border: 2px dashed #ddd;
      border-radius: 8px;
      color: #999;
      font-size: 16px;
      text-align: center;
    }

    .order-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      margin-bottom: 10px;
      padding: 14px 16px;

      border: 1px solid #e0e0e0;
      border-radius: 16px;
      background: #fff;

      flex-wrap: wrap;
    }


    .order-card.order-compact { display:block; padding:8px 12px; border-radius:12px; }
    .order-summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
    .order-summary-id { color:#1b5e20; font-weight:700; font-size:13px; overflow-wrap:anywhere; }
    .order-summary-date { color:#777; font-size:12px; }
    .order-summary-total { font-size:13px; font-weight:700; white-space:nowrap; margin-left:auto; }
    .order-summary-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
    .order-summary-actions button { margin:0; padding:6px 10px; font-size:12px; min-height:36px; }
    .order-history-toggle { border:1px solid #c8e6c9; background:#f1f8f1; color:#1b5e20; border-radius:8px; min-width:36px; min-height:36px; font-size:20px; cursor:pointer; }
    .order-history-toggle:focus-visible { outline:2px solid #2e7d32; outline-offset:2px; }
    .order-history { margin-top:8px; padding-top:8px; border-top:1px solid #e8eee8; overflow-wrap:anywhere; }
    .order-history[hidden] { display:none; }
    @media(max-width:600px) {
      .order-summary { gap:6px; }
      .order-summary-id { flex:1 1 65%; }
      .order-summary-actions { flex:1 1 100%; justify-content:flex-end; }
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .progress {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 8px;
      width: 100%;
      margin: 15px 0;
      overflow-x: auto;
    }

    .step {
      width: 80px;
      flex: 0 0 80px;
      text-align: center;
    }

    .circle {
      display: flex;
      align-items: center;
      justify-content: center;

      width: 38px;
      height: 38px;
      margin: 0 auto;

      border-radius: 50%;
      background: #d7d7d7;
      color: #666;

      font-size: 15px;
      font-weight: 700;
    }

    .label {
      min-height: 30px;
      margin-top: 6px;
      color: #888;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.2;
    }

    .line {
      width: 32px;
      height: 3px;
      flex: 0 0 32px;
      margin-top: 18px;
      background: #ddd;
    }

    .step.active .circle {
      background: var(--blue);
      color: #fff;
    }

    .step.active .label {
      color: var(--blue);
    }

    .step.done .circle {
      background: var(--green);
      color: #fff;
    }

    .step.done .label {
      color: var(--green);
    }

    #stepHint {
      width: 100%;
      margin: 16px 0 20px;
      padding: 12px 16px;

      border-left: 4px solid var(--blue);
      border-radius: 8px;
      background: #eef5ff;

      color: #333;
      font-size: 14px;
      line-height: 1.45;
      white-space: normal;
    }

    .guide-box {
      display: none !important;
    }

    .guide-target {
      border: 2px solid var(--blue) !important;
      border-radius: 8px;
      animation: guideGlow 1.4s infinite;
    }

    @keyframes guideGlow {
      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.35);
      }

      50% {
        box-shadow: 0 0 12px 3px rgba(25, 118, 210, 0.35);
      }
    }


    .top-tab-btn,
    .account-sub-tab-btn {
      appearance: none;
      border: 1px solid #cfd8dc;
      background: #fff;
      color: #546e7a;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      padding: 9px 14px;
      border-radius: 999px;
      white-space: nowrap;
    }

    .top-tab-btn.active,
    .account-sub-tab-btn.active {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .account-sub-tab-btn.active {
      background: var(--blue);
      border-color: var(--blue);
    }

    #userChip {
      display: none;
      max-width: 100%;
      padding: 6px 12px;
      border-radius: 20px;
      background: #e3f2fd;
      color: #1565c0;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .toast {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 9999;

      max-width: min(360px, calc(100vw - 40px));
      padding: 14px 20px;

      border-radius: 10px;
      background: var(--green);
      color: #fff;

      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .toast.error {
      background: var(--red);
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    #cartPanel {
      position: fixed !important;
      left: 20px !important;
      bottom: 88px !important;
      z-index: 99990 !important;
      max-width: calc(100vw - 40px);
    }

    .cart-line {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }

    .cart-line:last-child {
      border-bottom: none;
    }

    .cart-line-info {
      flex: 1;
      min-width: 0;
    }

    .cart-line-name {
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cart-line-sub {
      font-size: 11px;
      color: #888;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cart-line-qty {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .cart-line-price {
      font-size: 12px;
      font-weight: 700;
      color: var(--green-dark);
      flex-shrink: 0;
      min-width: 56px;
      text-align: right;
    }

    #chatToggleBtn {
      position: fixed !important;
      right: 20px !important;
      bottom: 20px !important;
      z-index: 99990 !important;
    }

    #chatPanel {
      position: fixed !important;
      right: 20px !important;
      bottom: 88px !important;
      z-index: 99990 !important;
      max-width: calc(100vw - 40px);
    }

    @media (max-width: 768px) {
      body {
        padding: 8px;
        background-attachment: scroll;
      }
      .tab-panel table {
        display: block;
        overflow: visible;
      }
      .tab-panel table thead {
        display: none;
      }
      .tab-panel table tbody,
      .tab-panel table tr {
        display: block;
        width: 100%;
      }
      .tab-panel table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #eee;
      }
      .tab-panel table td:last-child {
        border-bottom: none;
        text-align: left;
        padding-top: 12px;
      }
      .tab-panel table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #555;
        font-size: 13px;
        font-weight: 700;
      }
      .nom-cell {
        width: 100%;
      }


      .container {
        width: 100%;
        min-height: calc(100vh - 16px);
        min-height: calc(100dvh - 16px);
        padding: 15px;
        border-radius: 10px;
      }

      h1 {
        max-width: calc(100% - 70px);
        font-size: 18px;
      }

      .lang-switcher {
        top: 12px;
        right: 12px;
      }

      .tabs-nav {
        gap: 2px;
        margin-top: 12px;
      }

      .tab-btn {
        padding: 8px 3px;
        font-size: 10px;
      }

      .inline-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .inline-label-row > span {
        min-width: 0;
        font-size: 13px;
      }

      .inline-label-row .field {
        width: 100%;
      }

      .dt-picker-wrap {
        flex-direction: column;
        gap: 6px;
      }

      .summary {
        font-size: 18px;
      }

      .btn-save {
        padding: 14px;
        font-size: 16px;
      }

      .nom-thumb,
      .nom-thumb-empty {
        width: 36px;
        height: 36px;
      }

      .order-card {
        align-items: flex-start;
        flex-direction: column;
      }

      .order-card > div:last-child {
        width: 100%;
      }

      #orderSummaryBlock {
        padding: 10px;
      }

      th {
        padding: 6px 4px;
        font-size: 11px;
      }

      td {
        padding: 4px 3px;
        font-size: 11px;
      }

      .progress {
        justify-content: flex-start;
        padding-bottom: 4px;
      }

      #cartToggleBtn {
        display: none !important;
      }

      body.provider-mode #cartToggleBtn,
      body.provider-mode #cartToggleBtnMobile,
      body.provider-mode #cartPanel,
      body.provider-mode #chatToggleBtn,
      body.provider-mode #chatPanel,
      body.provider-mode #newOrderView,
      body.provider-mode #noVillaMsg,
      body.provider-mode #lbl-newOrderTab,
      body.provider-mode #accountBalanceView,
      body.provider-mode #accountDocsView,
      body.provider-mode #accountGuestsView,
      body.provider-mode #accountSubTabs [data-subview="balance"],
      body.provider-mode #accountSubTabs [data-subview="docs"],
      body.provider-mode #accountSubTabs [data-subview="guests"] {
        display: none !important;
      }
      body.provider-mode #lbl-providerTab { order: 1; }
      body.provider-mode #lbl-deliveryTab { order: 2; }
      body.provider-mode #lbl-accountTab { order: 3; }
      body.provider-mode #lbl-myOrdersTab { order: 4; }
      body.provider-mode #lbl-newOrderTab { order: 5; }
      #cartToggleBtnMobile {
        display: flex !important;
        left: 14px !important;
        bottom: 14px !important;
      }

      #cartPanel {
        left: 10px !important;
        bottom: 80px !important;
        width: calc(100vw - 20px) !important;
      }

      #chatToggleBtn {
        right: 14px !important;
        bottom: 14px !important;
      }

      #chatPanel {
        right: 10px !important;
        bottom: 80px !important;
        width: calc(100vw - 20px) !important;
      }
    }

    @media (max-width: 480px) {
      body {
        padding: 0;
      }

      .container {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 10px;
        border-radius: 0;
      }

      h1 {
        font-size: 17px;
      }

      .villa-select-wrap {
        margin-top: 22px;
      }

      .top-tab-btn {
        padding: 8px 8px;
        font-size: 12px;
      }

      .account-sub-tab-btn {
        padding: 8px 10px;
        font-size: 12px;
      }

      .toast {
        top: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }
