/* Expanded runtime CSS entrypoint. Keep this file import-free for WebView route transitions. */

/* orders-desktop/01-orders-desktop.css */
/* Source: 2.1 Стройбан - Заказы (десктоп).html
   Extracted from v3 mock on 2026-07-13. */

.orders-page-shell { background: var(--page-backdrop); }

.orders-page-shell .wrap, .orders-page-shell .wrap { max-width: 1344px; margin: 0 auto; padding: 0 24px; }

.orders-page-shell a { color: inherit; }

.sb-public-page-shell .orders-page-main { flex: 1 0 auto; min-height: 0; }

.orders-page-shell .orders-feed-screen.active { min-height: calc(100vh - var(--sb-chrome-header-height, 4.5rem)); display: flex; flex-direction: column; }

/* ===== header ===== */

.sb-header { position: sticky; top: 0; z-index: 40; background: var(--background); border-bottom: 1px solid var(--border); }

.orders-page-shell .hdr-inner { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.orders-page-shell .sb-logo { cursor: pointer; }

.orders-page-shell .hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.orders-page-shell .region-pick { height: 2.25rem; min-width: auto; gap: 6px; font-size: 13px; }

/* ===== breadcrumb + pagehead ===== */

.orders-page-shell .crumb { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--foreground); padding: 18px 0 0; }

.orders-page-shell .crumb a { text-decoration: none; cursor: pointer; }

.orders-page-shell .crumb a:hover { color: var(--foreground); }

.orders-page-shell .crumb i, .orders-page-shell .crumb svg.lucide { width: 13px; height: 13px; }

.orders-page-shell .pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 12px 0 18px; flex-wrap: wrap; }

.orders-page-shell .pagehead h1 { margin: 0; }

/* ===== compact orders banner ===== */

.orders-page-shell .orders-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: #111; color: #fff; border-radius: 16px; padding: 18px 24px; margin: 12px 0 44px; }

.orders-page-shell .ob-main { display: flex; align-items: center; gap: 16px; min-width: 0; }

.orders-page-shell .ob-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #000; display: grid; place-items: center; flex: none; }

.orders-page-shell .ob-icon i, .orders-page-shell .ob-icon svg.lucide { width: 24px; height: 24px; }

.orders-page-shell .ob-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }

.orders-page-shell .ob-sub { font-size: 14px; color: var(--on-surface-inverse); margin: 3px 0 0; }

.orders-page-shell .ob-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.orders-page-shell .ob-stat { background: #1d1d1d; border-radius: 12px; padding: 10px 18px; text-align: center; min-width: 92px; }

.orders-page-shell .ob-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

.orders-page-shell .ob-stat span { font-size: 12px; color: var(--on-surface-inverse); margin-top: 4px; display: block; }

.orders-page-shell .ob-free b { color: var(--primary); }

.orders-page-shell .stat-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 2px; }

.orders-page-shell .stat { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--foreground); }

.orders-page-shell .stat b { color: var(--foreground); font-variant-numeric: tabular-nums; }

.orders-page-shell .stat i, .orders-page-shell .stat svg.lucide { width: 15px; height: 15px; color: var(--muted-foreground); }

.orders-page-shell .stat .ok { color: var(--success); }

/* ===== search row (идентично главной) ===== */

.orders-page-shell .searchrow { display: flex; gap: 12px; margin-bottom: 16px; }

.orders-page-shell .searchrow .sb-input-group { flex: 1; height: 3.25rem; background: var(--background); border: 1px solid var(--input); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

.orders-page-shell .searchrow .sb-input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.4); }

.orders-page-shell .searchrow .sb-icon { color: var(--foreground); }

.orders-page-shell .searchrow .sb-input { height: 100%; font-size: var(--text-base); border: none; border-radius: 0; background: transparent; box-shadow: none; }

.orders-page-shell .searchrow .sb-input::placeholder { color: var(--muted-foreground); }

.orders-page-shell .searchrow .search-go { flex: none; gap: 8px; height: 3.25rem; }

.orders-page-shell .searchrow .search-go i, .orders-page-shell .searchrow .search-go svg { width: 17px; height: 17px; }

/* ===== city picker (searchrow) ===== */

.city-dd { position: relative; flex: none; }

.city-dd .sb-select-trigger.city-trigger { gap: 9px; height: 3.25rem; min-width: 190px; max-width: 260px; padding: 0 14px; }

.city-dd .city-trigger .ct-lead { width: 17px; height: 17px; flex: none; color: var(--primary-hover); }

/* The city name is the only part that can outgrow the trigger, so it is the only part allowed to
   shrink: without min-width it would push the chevron out of the button instead of eliding. */
.city-dd .city-trigger .ct-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }

.city-dd .sb-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; max-height: 340px; overflow-y: auto; }

.city-dd .sb-menu[hidden] { display: none; }

/* Below the sheet breakpoint the trigger has no menu to anchor, and three controls abreast leave
   the search field too narrow to read what was typed. The city takes its own line. */
@media (max-width: 1280px){
  .orders-page-shell .searchrow { flex-wrap: wrap; }
  .city-dd { flex: 1 0 100%; }
  .city-dd .sb-select-trigger.city-trigger { width: 100%; max-width: none; }
}

/* ===== filter bar (cian-style) ===== */

.orders-page-shell .filterbar { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); margin-bottom: 20px; }

.orders-page-shell .fb-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }

.orders-page-shell .fb-spacer { flex: 1; }

.orders-page-shell .fb-field { display: flex; flex-direction: column; gap: 6px; }

.orders-page-shell .fb-field > label { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); }

.fb-field--btn > label { display: none; }

.fb-field--btn { justify-content: flex-end; }

.orders-page-shell .fb-row { align-items: stretch; }

.orders-page-shell .fb-row .fb-field { justify-content: flex-end; }

.budget-inputs { height: 2.75rem; }

.budget-inputs .sb-input { height: 100%; }

/* Opens the filter sheet on a phone. Hidden here because above 820px the bar it opens is
   already on the page, and a button that reveals what you can see reads as a broken control. */
.orders-page-shell .orders-filter-mobile-bar { display: none; }

.orders-filter-trigger { align-items: center; gap: 8px; }

/* The filters that are on, along the top of the board. Scrolls sideways rather than wrapping:
   four chips wrap to two rows on a narrow phone, and the second row pushes the orders down
   again -- which is the whole problem the sheet was opened to solve. */
.orders-page-shell .orders-filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }

.orders-page-shell .orders-filter-chips::-webkit-scrollbar { display: none; }

.orders-page-shell .orders-filter-chip { flex: none; height: 34px; padding: 0 13px; gap: 6px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Dark fill for a filter that is on, as in the mockup: colour alone would not survive a
   greyscale screen, so the chip also carries aria-pressed for anything that is not looking. */
.orders-page-shell .orders-filter-chip[data-active="true"] { background: var(--selected); border-color: var(--selected); color: var(--on-selected); }

.orders-page-shell .orders-filter-chip-chevron { width: 15px; height: 15px; opacity: .7; }

.orders-filter-trigger-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.orders-filter-sheet-actions { display: flex; align-items: center; gap: 10px; }

.orders-filter-sheet-actions > :last-child { flex: 1; min-width: 0; }

.more-filters { height: 2.75rem; gap: 7px; }

.more-filters i, .more-filters svg.lucide { width: 16px; height: 16px; }

.orders-page-shell .reset-link { height: 2.75rem; display: inline-flex; align-items: center; gap: 6px; }

/* more-filters modal */

.orders-page-shell .more-dialog { width: min(540px, 94vw); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }

.orders-page-shell .orders-more-overlay { z-index: 80; }

.orders-page-shell .orders-more-dialog-content { position: fixed; top: 50%; left: 50%; z-index: 81; transform: translate(-50%, -50%); }

.orders-page-shell .more-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }

.orders-page-shell .more-title { font-size: var(--text-h4); font-weight: 700; letter-spacing: -0.01em; }

.orders-page-shell .more-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

.more-toggle { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }

.more-toggle:hover { border-color: oklch(0.82 0 0); }

.more-toggle .mt-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--secondary); display: grid; place-items: center; flex: none; }

.more-toggle .mt-ic i, .more-toggle .mt-ic svg.lucide { width: 20px; height: 20px; }

.more-toggle .mt-text { flex: 1; display: flex; flex-direction: column; }

.more-toggle .mt-t { font-size: var(--text-base); font-weight: 600; }

.more-toggle .mt-d { font-size: var(--text-xs); color: var(--foreground); margin-top: 2px; }

.more-soon { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--foreground); }

.more-soon i, .more-soon svg.lucide { width: 15px; height: 15px; flex: none; }

.orders-page-shell .more-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--border); }

.more-filters.has-active { border-color: var(--selected); background: var(--selected); color: var(--on-selected); }

.more-filters.has-active::after { content: "1"; background: var(--primary); color: #000; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }

.fb-end { display: flex; align-items: center; gap: 12px; align-self: flex-end; }

/* orders-desktop/02-orders-desktop.css */
.more-filters { height: 2.75rem; gap: 7px; }

.more-filters i, .more-filters svg.lucide { width: 16px; height: 16px; }

.more-filters .mf-chev { transition: transform .18s ease; }

.more-filters[aria-expanded="true"] .mf-chev { transform: rotate(180deg); }

.orders-page-shell .fb-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 767px){ .orders-page-shell .fb-more { grid-template-columns: 1fr 1fr; } }

.orders-page-shell .fb-more[hidden] { display: none; }

.orders-page-shell .fb-more-field { display: flex; flex-direction: column; gap: 8px; }

.orders-page-shell .fb-more-field > label { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); }

.orders-page-shell .fb-hint { font-weight: 400; text-transform: none; color: var(--foreground); }

.orders-page-shell .fb-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.orders-page-shell .fb-chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-family: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--foreground); cursor: pointer; transition: all .15s ease; }

.orders-page-shell .fb-chip:hover { background: var(--muted); }

.orders-page-shell .fb-chip[data-active="true"] { background: var(--selected); color: var(--on-selected); border-color: var(--selected); }

.orders-page-shell .fb-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm); color: var(--foreground); cursor: pointer; height: 38px; }

.orders-page-shell .fb-field > label { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); }

.orders-page-shell .fb-select { height: 2.75rem; min-width: 170px; }

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

/* One-click budget ranges under the two fields. Pills rather than buttons: they are filters the
   reader flips through, not actions. The active one reads as pressed and clicking it clears. */
.budget-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ===== budget slider ===== */

/* The slider dresses itself (`app/styles/27-money-range-slider.css`); this screen only sets it
   apart from the fields above. Unscoped: on a phone the filter bar renders inside a portalled
   sheet, outside the page shell. */
.budget-slider { margin-top: 10px; }

.budget-preset { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: var(--text-xs); font-weight: 600; color: var(--foreground); white-space: nowrap; }

.budget-preset:hover { background: var(--muted); color: var(--foreground); }

.budget-preset[data-active="true"] { background: var(--primary); border-color: var(--primary); color: #000; }

.budget-inputs .sb-input { width: 92px; height: 2.75rem; padding: 0 12px; font-variant-numeric: tabular-nums; }

.budget-inputs span { color: var(--foreground); }

.orders-page-shell .reset-link { background: none; border: none; color: var(--foreground); font-size: var(--text-sm); cursor: pointer; padding: 0 4px; height: 2.75rem; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; white-space: nowrap; }

.orders-page-shell .reset-link:hover { color: var(--foreground); }

.orders-page-shell .fb-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.orders-page-shell .fb-chip { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-family: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--foreground); cursor: pointer; transition: all .15s ease; }

.orders-page-shell .fb-chip:hover { background: var(--muted); }

.orders-page-shell .fb-chip[data-active="true"] { background: var(--selected); color: var(--on-selected); border-color: var(--selected); }

/* ===== category trigger + picker modal ===== */

.fb-field--wide { flex: 0 1 300px; min-width: 240px; }

.orders-page-shell .obj-dd { position: relative; }

.orders-page-shell .obj-dd .sb-select-trigger { height: 2.75rem; min-width: 210px; }

.orders-page-shell .obj-dd .sb-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; }

.orders-page-shell .obj-dd .sb-menu[hidden] { display: none; }

.orders-page-shell .cat-trigger { display: flex; align-items: center; gap: 11px; width: 100%; height: 2.75rem; padding: 0 14px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--background); font-family: inherit; font-size: var(--text-base); color: var(--foreground); cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }

.orders-page-shell .cat-trigger:hover { border-color: oklch(0.82 0 0); }

.orders-page-shell .cat-trigger .ct-lead { width: 18px; height: 18px; color: var(--primary-hover); flex: none; }

.orders-page-shell .cat-trigger .ct-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

.orders-page-shell .cat-trigger .ct-chev { width: 17px; height: 17px; color: var(--muted-foreground); flex: none; }

.cat-dialog { width: min(1140px, 96vw); max-height: 88vh; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }

.orders-page-shell .orders-category-overlay { z-index: 80; }

.orders-category-dialog-content { position: fixed; top: 50%; left: 50%; z-index: 81; transform: translate(-50%, -50%); }

.cat-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }

.cd-title { font-size: var(--text-h4); font-weight: 700; letter-spacing: -0.01em; }

.cd-desc { font-size: var(--text-sm); color: var(--foreground); margin-top: 4px; }

.cd-close { width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--muted); display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.cd-close:hover { background: var(--surface-strong); }

.cd-close i, .cd-close svg { width: 18px; height: 18px; }

.cat-dialog-body { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 0; overflow: auto; }

@media (max-width: 640px){ .cat-dialog-body { grid-template-columns: 1fr; } }

.orders-page-shell .cat-side { padding: 18px 16px; border-right: 1px solid var(--border); background: var(--muted); }

@media (max-width: 640px){ .orders-page-shell .cat-side { border-right: none; border-bottom: 1px solid var(--border); } }

.cat-side-title { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--foreground); margin-bottom: 12px; }

.orders-category-dialog-content .cat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.orders-page-shell .cat-main-search { padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }

.orders-page-shell .cat-main-search .sb-input-group { width: 100%; height: 2.75rem; }

.cat-tree { overflow-y: auto; padding: 10px 12px 16px; max-height: 56vh; }

.orders-page-shell .tree-grp { border-bottom: 1px solid var(--border); }

.orders-page-shell .tree-grp:last-child { border-bottom: none; }

.tree-head { display: flex; align-items: center; gap: 4px; }

.tree-check { display: grid; place-items: center; padding: 0 6px 0 8px; cursor: pointer; }

.tree-headbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 9px 8px; text-align: left; }

.tree-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--secondary); display: grid; place-items: center; flex: none; }

.tree-ic i, .tree-ic svg { width: 18px; height: 18px; }

.tree-name { flex: 1; min-width: 0; font-size: var(--text-base); font-weight: 600; display: flex; align-items: center; gap: 8px; }

.tree-sel { background: var(--primary); color: #000; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px; }

.tree-n { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; }

.tree-chev { width: 17px; height: 17px; color: var(--muted-foreground); transition: transform .18s ease; }

.orders-page-shell .tree-grp.open .tree-chev { transform: rotate(180deg); }

.tree-kids { padding: 0 8px 8px 44px; display: flex; flex-direction: column; gap: 1px; }

.tree-kids[hidden] { display: none; }

.tree-kid { display: flex; align-items: center; gap: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer; }

.tree-kid:hover { background: var(--muted); }

.tree-kid .tk-text { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: baseline; gap: 8px; }

.tree-kid .tk-t { font-size: var(--text-sm); font-weight: 500; line-height: 1.3; flex: none; }

.tree-kid .tk-d { font-size: 11px; color: var(--foreground); margin-top: 0; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tree-kid .tk-n { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; }

.tree-empty { padding: 40px; text-align: center; color: var(--foreground); font-size: var(--text-sm); }

.orders-page-shell .house-opt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border-radius: 10px; border: none; background: transparent; font-family: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--foreground); cursor: pointer; text-align: left; margin-bottom: 3px; }

.orders-page-shell .house-opt:hover { background: var(--card); }

.orders-page-shell .house-opt[data-active="true"] { background: var(--selected); color: var(--on-selected); }

.orders-page-shell .house-opt i, .orders-page-shell .house-opt svg { width: 18px; height: 18px; flex: none; }

.orders-page-shell .house-opt .ho-check { margin-left: auto; width: 16px; height: 16px; opacity: 0; }

.orders-page-shell .house-opt[data-active="true"] .ho-check { opacity: 1; }

.orders-page-shell .cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 460px){ .orders-page-shell .cat-grid { grid-template-columns: 1fr; } }

.orders-page-shell .cat-opt { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); cursor: pointer; transition: border-color .12s ease, background-color .12s ease; text-align: left; font-family: inherit; }

.orders-page-shell .cat-opt:hover { border-color: oklch(0.8 0 0); background: var(--muted); }

.orders-page-shell .cat-opt[data-active="true"] { border-color: var(--selected); box-shadow: inset 0 0 0 1px var(--selected); }

.orders-page-shell .cat-opt .co-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--secondary); display: grid; place-items: center; color: var(--foreground); flex: none; }

.orders-page-shell .cat-opt[data-active="true"] .co-ic { background: var(--primary); color: #000; }

.orders-page-shell .cat-opt .co-ic i, .orders-page-shell .cat-opt .co-ic svg.lucide { width: 20px; height: 20px; }

.orders-page-shell .cat-opt .co-text { display: flex; flex-direction: column; min-width: 0; }

.orders-page-shell .cat-opt .co-label { display: block; font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }

/* orders-desktop/03-orders-desktop.css */
.orders-page-shell .cat-opt .co-count { display: block; font-size: var(--text-xs); color: var(--foreground); margin-top: 3px; }

.cat-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--border); }

.orders-page-shell .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }

.orders-page-shell .toolbar-right { display: flex; align-items: center; gap: 12px; }

.orders-page-shell .sort-dd { display: inline-flex; align-items: center; gap: 8px; }

.orders-page-shell .sort-dd label { font-size: var(--text-sm); color: var(--foreground); white-space: nowrap; }

.orders-page-shell .sort-dd select { min-width: 178px; height: 2.5rem; }

.orders-page-shell .sort-dd .sb-select-trigger { min-width: 178px; height: 2.5rem; }

.orders-page-shell .view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); overflow: hidden; height: 2.5rem; }

.orders-page-shell .view-toggle button { width: 40px; height: 100%; border: none; background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--foreground); }

.orders-page-shell .view-toggle button + button { border-left: 1px solid var(--border); }

.orders-page-shell .view-toggle button[data-active="true"] { background: var(--muted); color: var(--foreground); }

.orders-page-shell .view-toggle i, .orders-page-shell .view-toggle svg.lucide { width: 17px; height: 17px; }

/* ===== compact row (exchange-style) ===== */

.orders-page-shell .rowfeed { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }

.orders-page-shell .rowhead, .orders-page-shell .orow { display: grid; grid-template-columns: minmax(0,2fr) 1fr 1fr 1.1fr 0.8fr 1.2fr 1.4fr 0.7fr 0.9fr 52px 128px; align-items: center; gap: 14px; padding: 0 16px; }

.orders-page-shell .rowhead { height: 40px; background: #1d1d1d; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--on-surface-inverse); }

.orders-page-shell .rowhead .num, .orders-page-shell .orow .num { text-align: right; }

.orders-page-shell .orow { min-height: 50px; padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background-color .12s ease; }

.orders-page-shell .orow-open { display: grid; grid-column: 1 / -2; grid-template-columns: minmax(0,2fr) 1fr 1fr 1.1fr 0.8fr 1.2fr 1.4fr 0.7fr 0.9fr 52px; align-items: center; gap: 14px; height: auto; padding: 0; cursor: pointer; text-align: left; }

.orders-page-shell .orow-open:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }

.orders-page-shell .orow:last-child { border-bottom: none; }

.orders-page-shell .orow:hover { background: var(--muted); }

.orders-page-shell .orow .c-title { min-width: 0; display: flex; align-items: center; gap: 9px; }

.orders-page-shell .orow .c-title .urgent-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }

/* Row thumbnail: only rendered when the order has a photo, so no empty frames appear.
   Hidden in the compact view, which is what separates the two table densities. */
.orders-page-shell .orow .c-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--border); }

.orders-page-shell .orow .c-title .tt { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orders-page-shell .orow .c-house { font-size: var(--text-xs); color: var(--foreground); }
/* Category and views read as secondary text, and must not push the title out of its column when
   a label is long -- the row is one line and the title is what the reader scans. */
.orders-page-shell .orow .c-obj, .orders-page-shell .orow .c-views { font-size: var(--text-xs); color: var(--foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Start date as a chip: it is an answer, not a label, and sits between two numeric columns where
   plain text would blend into them. */
.orders-page-shell .orow .c-start { min-width: 0; }

.orders-page-shell .orow .start-chip { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--surface-accent-subtle); color: var(--foreground); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orders-page-shell .orow .c-loc { font-size: var(--text-xs); color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orders-page-shell .orow .c-area { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; }

.orders-page-shell .orow .c-price { font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

.orders-page-shell .orow .c-resp { display: flex; justify-content: flex-end; }

.orders-page-shell .resp-stack { display: inline-flex; flex-direction: row-reverse; align-items: center; }

.orders-page-shell .resp-stack .ravt { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; margin-left: -9px; flex: none; }

.orders-page-shell .resp-stack .ravt:last-child { margin-left: 0; }

.orders-page-shell .resp-stack .ravt.more { background: var(--muted); color: var(--foreground); font-size: 11px; }

.orders-page-shell .orow .c-cust { display: flex; justify-content: center; }

.orders-page-shell .orow .row-av { width: 30px; height: 30px; border-radius: 50%; background: var(--secondary); color: var(--secondary-foreground); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.orders-page-shell .orow .c-act { display: flex; justify-content: flex-end; }

.orders-page-shell .orow .c-act [data-slot="button"] { height: 32px; font-size: 12px; padding: 0 12px; }

.orders-page-shell .orow.is-applied .c-act [data-slot="button"] { pointer-events: none; }

@media (max-width: 768px){
    .orders-page-shell .rowhead, .orders-page-shell .orow { grid-template-columns: minmax(0,1fr) 120px 110px; }
    .orders-page-shell .rowhead .col-house, .orders-page-shell .rowhead .col-obj, .orders-page-shell .rowhead .col-area, .orders-page-shell .rowhead .col-start, .orders-page-shell .rowhead .col-views, .orders-page-shell .rowhead .col-resp, .orders-page-shell .rowhead .col-cust, .orders-page-shell .orow .c-house, .orders-page-shell .orow .c-obj, .orders-page-shell .orow .c-area, .orders-page-shell .orow .c-start, .orders-page-shell .orow .c-views, .orders-page-shell .orow .c-resp, .orders-page-shell .orow .c-cust { display: none; }
    .orders-page-shell .orow-open { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) 120px 110px; }
  }

.orders-page-shell .toolbar .count { font-size: var(--text-sm); color: var(--foreground); }

.orders-page-shell .toolbar .count b { color: var(--foreground); font-variant-numeric: tabular-nums; }

.orders-page-shell .sort { display: inline-flex; align-items: center; gap: 4px; background: var(--muted); padding: 3px; border-radius: calc(var(--radius) - 2px); }

.orders-page-shell .sort button { border: none; background: transparent; font-family: inherit; font-size: var(--text-xs); font-weight: 500; color: var(--foreground); padding: 6px 12px; border-radius: calc(var(--radius) - 4px); cursor: pointer; transition: all .15s ease; }

.orders-page-shell .sort button[data-active="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }

/* ===== order card ===== */

.orders-page-shell .feed { display: flex; flex-direction: column; gap: 10px; }

.orders-page-shell .ocard { padding: 0; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; }

/* Save control, pinned to the card's top-right corner.
   Sits outside the open-order button so a keyboard or screen reader can tell saving from
   opening; `position: relative` on the card is what anchors it. */
.orders-page-shell .ocard { position: relative; }

.orders-page-shell .ocard-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 999px; background: color-mix(in oklch, var(--card) 86%, transparent); border: 1px solid var(--border); color: var(--foreground); }

.orders-page-shell .ocard-fav:hover { background: var(--card); color: var(--foreground); }

.orders-page-shell .ocard-fav i, .orders-page-shell .ocard-fav svg.lucide { width: 16px; height: 16px; }

.orders-page-shell .ocard-fav[data-saved="true"] { color: var(--destructive); border-color: var(--destructive); }

.orders-page-shell .ocard-fav[data-saved="true"] i, .orders-page-shell .ocard-fav[data-saved="true"] svg.lucide { fill: currentColor; }

.orders-page-shell .ocard-open { display: block; width: 100%; height: auto; padding: 0; border-radius: 0; text-align: left; }

.orders-page-shell .ocard-open:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }

.orders-page-shell .ocard-top { display: flex; align-items: stretch; gap: 16px; padding: 14px 16px; }

.orders-page-shell .ocard-thumb { position: relative; flex: none; width: 200px; min-height: 116px; border-radius: 10px; background: var(--secondary); display: grid; place-items: center; color: var(--foreground); border: 1px solid var(--border); }

.orders-page-shell .ocard-thumb > i, .orders-page-shell .ocard-thumb > [data-slot="icon-anchor"] > i, .orders-page-shell .ocard-thumb > svg.lucide, .orders-page-shell .ocard-thumb > [data-slot="icon-anchor"] > svg.lucide { width: 28px; height: 28px; opacity: .4; }

.orders-page-shell .ocard-thumb .thumb-count { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 4px; background: oklch(0.145 0 0 / 0.7); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }

.orders-page-shell .ocard-thumb .thumb-count i, .orders-page-shell .ocard-thumb .thumb-count svg.lucide { width: 12px; height: 12px; }

/* The order's photograph fills the thumb; the placeholder icon keeps the centred layout.
   `overflow: hidden` matters because the image is cropped to the box rather than letterboxed --
   a site photo read at 200px is about shape and material, not composition. */
.orders-page-shell .ocard-thumb { overflow: hidden; }

.orders-page-shell .ocard-thumb[data-has-photo="true"] { background: var(--muted); }

.orders-page-shell .ocard-thumb .ocard-photo { width: 100%; height: 100%; min-height: 116px; object-fit: cover; display: block; }

.orders-page-shell .ocard-main { flex: 1; min-width: 0; }

.orders-page-shell .ocard-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }

.orders-page-shell .ocard-badges .sb-badge { height: 22px; padding: 0 8px; font-size: 12px; }

/* The title wraps. The card's clickable area is the kit's Button, which is `white-space: nowrap`,
   and the title inherited it: «Забор из кирпича по периметру участка, 120 м» ran 371px in a 327px
   column on a phone and was cut by the card's edge mid-number, with no ellipsis to say so. */
.orders-page-shell .ocard h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 5px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }

.orders-page-shell .ocard:hover h3 { color: var(--foreground); }

.orders-page-shell .ocard .desc { font-size: var(--text-sm); color: var(--foreground); line-height: 1.45; margin: 0 0 16px; max-width: 86ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orders-page-shell .meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.orders-page-shell .ocard-price .posted-meta { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; font-size: 11px; color: var(--foreground); }

.orders-page-shell .ocard-price .posted-meta i, .orders-page-shell .ocard-price .posted-meta svg { width: 12px; height: 12px; }

.orders-page-shell .meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--foreground); }

.orders-page-shell .meta i, .orders-page-shell .meta svg.lucide { width: 14px; height: 14px; color: var(--muted-foreground); flex: none; }

.orders-page-shell .meta.muted { color: var(--foreground); }

.orders-page-shell .ocard-price { text-align: right; flex: none; padding-left: 12px; display: flex; flex-direction: column; align-items: flex-end; }

.orders-page-shell .ocard-price .posted-meta { margin-top: auto; margin-bottom: 0; padding-top: 8px; }

.orders-page-shell .posted { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; font-size: 11px; color: var(--foreground); margin-bottom: 6px; }

.orders-page-shell .posted i, .orders-page-shell .posted svg.lucide { width: 12px; height: 12px; }

.orders-page-shell .price-val { font-weight: 700; font-size: var(--text-base); letter-spacing: -0.01em; white-space: nowrap; }

.orders-page-shell .price-sub { font-size: 11px; color: var(--foreground); margin-top: 2px; }

.orders-page-shell .ocard-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-subtle); }

.orders-page-shell .cust { display: flex; align-items: center; gap: 9px; }

.orders-page-shell .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); color: var(--secondary-foreground); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }

.orders-page-shell .cust-info { display: flex; align-items: center; gap: 40px; }

.orders-page-shell .cust-name { font-size: var(--text-xs); font-weight: 600; display: flex; align-items: center; gap: 4px; }

.orders-page-shell .cust-name i, .orders-page-shell .cust-name svg.lucide { width: 13px; height: 13px; color: var(--primary-hover); }

.orders-page-shell .cust-sub { font-size: var(--text-xs); color: var(--foreground); display: flex; align-items: center; gap: 6px; }

/* The figure beside the star is text: amber on the card read 2.06:1. The glyph keeps the amber. */
.orders-page-shell .cust-sub .star { color: var(--foreground); display: inline-flex; align-items: center; gap: 3px; }

.orders-page-shell .cust-sub .star i, .orders-page-shell .cust-sub .star svg.lucide { width: 12px; height: 12px; color: #E0A800; }

.orders-page-shell .foot-right { display: flex; align-items: center; gap: 12px; }

.orders-page-shell .resp-count { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-xs); color: var(--foreground); }

.orders-page-shell .resp-count .resp-n { white-space: nowrap; }

.orders-page-shell .resp-count i, .orders-page-shell .resp-count svg.lucide { width: 14px; height: 14px; }

/* ===== pagination ===== */

.orders-page-shell .pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }

.orders-page-shell .pager button { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--border); background: var(--card); font-family: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--foreground); cursor: pointer; border-radius: calc(var(--radius) - 2px); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .12s ease; font-variant-numeric: tabular-nums; }

.orders-page-shell .pager button:hover { background: var(--muted); border-color: oklch(0.82 0 0); }

.orders-page-shell .pager button[data-active="true"] { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 700; cursor: default; }

/* Compact table: the same row, tightened.
   The roomier table breathes at 50px and carries a thumbnail; this one drops to 40px and hides
   it, so a reader scanning many orders at once sees more of the board per screen. Only density
   changes -- the columns stay identical, or switching views would rearrange what is being read. */
.orders-page-shell .rowfeed-compact .orow { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }

.orders-page-shell .rowfeed-compact .orow .ocard-thumb, .orders-page-shell .rowfeed-compact .orow .c-thumb { display: none; }

.orders-page-shell .rowfeed-compact .orow .c-title .tt { font-size: var(--text-xs); }

/* orders-desktop/04-orders-desktop.css */
.orders-page-shell .pager .dots { min-width: 24px; text-align: center; color: var(--foreground); pointer-events: none; border: none; background: none; }

.orders-page-shell .pager .edge { padding: 0 18px; }

.orders-page-shell .pager .edge i, .orders-page-shell .pager .edge svg.lucide { width: 16px; height: 16px; }

.orders-page-shell .pager .edge[disabled] { opacity: .45; cursor: not-allowed; }

.orders-page-shell .pager .edge[disabled]:hover { background: var(--card); border-color: var(--border); }

.orders-page-shell .pager-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-bottom: 8px; flex-wrap: wrap; }

/* Links on the light band: the accent reads at 1.73:1 here. */
.orders-page-shell .rss { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm); color: var(--foreground); }

.orders-page-shell .rss-tag { background: #EE802F; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 6px; border-radius: 4px; }

.orders-page-shell .archive { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); color: var(--foreground); }

.orders-page-shell .archive i, .orders-page-shell .archive svg.lucide { width: 15px; height: 15px; }

/* ===== SEO links block ===== */

.orders-page-shell .all-cta { display: none; justify-content: center; margin-top: 20px; }

.orders-page-shell .all-cta [data-slot="button"] { gap: 8px; }

.orders-page-shell .all-cta [data-slot="button"] i, .orders-page-shell .all-cta [data-slot="button"] svg { width: 17px; height: 17px; }

.orders-page-shell .seo-band { background: var(--background); border-top: 1px solid var(--border); margin-top: 44px; }

.orders-page-shell .orders-feed-screen.active > .seo-band { margin-top: auto; }

.orders-page-shell .seo-block { margin: 0; padding: 40px 0 60px; }

.orders-page-shell .seo-block h2 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; }

.orders-page-shell .seo-catcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }

@media (max-width: 1024px){ .orders-page-shell .seo-catcols { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px){ .orders-page-shell .seo-catcols { grid-template-columns: 1fr; } }

.orders-page-shell .seo-cat { display: flex; flex-direction: column; }

.orders-page-shell .seo-cat h3 { font-size: var(--text-base); font-weight: 700; margin: 0 0 12px; }

/* `--foreground`, as the mockup has it, not the yellow accent: on the white band these links
   measured 1.73:1 against white, where the AA floor for body text is 4.5:1. The accent is meant
   for a control you act on, not for eighty links you read. Hover still underlines them. */
.orders-page-shell .seo-cat a { font-size: var(--text-sm); color: var(--foreground); padding: 4px 0; }

.orders-page-shell .seo-cat a:hover { text-decoration: underline; text-underline-offset: 3px; }

.orders-page-shell .seo-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; }

@media (max-width: 1024px){ .orders-page-shell .seo-cols { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px){ .orders-page-shell .seo-cols { grid-template-columns: 1fr; } }

.orders-page-shell .seo-cols a { font-size: var(--text-sm); color: var(--foreground); padding: 3px 0; }

.orders-page-shell .seo-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== detail ===== */

.orders-page-shell .back-link { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--foreground); cursor: pointer; padding: 18px 0 14px; background: none; border: none; font-family: inherit; }

.orders-page-shell .back-link:hover { color: var(--foreground); }

.orders-page-shell .back-link i, .orders-page-shell .back-link svg.lucide { width: 16px; height: 16px; }

.orders-page-shell .detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding-bottom: 80px; align-items: start; }

@media (max-width: 1024px){ .orders-page-shell .detail-grid { grid-template-columns: 1fr; } }

.orders-page-shell .detail-head h1 { margin: 8px 0 0; max-width: 22ch; }

.orders-page-shell .detail-gallery { margin: 22px 0 28px; }

.orders-page-shell .section { margin-bottom: 28px; }

.orders-page-shell .section h2 { font-size: var(--text-h4); font-weight: 600; margin: 0 0 12px; }

.orders-page-shell .section p { font-size: var(--text-base); line-height: 1.6; color: var(--foreground); margin: 0; max-width: 70ch; text-wrap: pretty; }

.orders-page-shell .task-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.orders-page-shell .est-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.orders-page-shell .est-head h2 { margin: 0; }

.orders-page-shell .est-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--foreground); background: var(--muted); border-radius: 999px; padding: 5px 11px; }

.orders-page-shell .est-badge i, .orders-page-shell .est-badge svg { width: 14px; height: 14px; }

.orders-page-shell .est-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.orders-page-shell .est-row { display: grid; grid-template-columns: 44px 1fr 88px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }

.orders-page-shell .est-row:first-child { border-top: none; }

.orders-page-shell .est-row--h { background: var(--muted); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--foreground); padding: 10px 16px; }

.orders-page-shell .est-num { font-variant-numeric: tabular-nums; color: var(--foreground); font-size: var(--text-sm); }

.orders-page-shell .est-name { font-size: var(--text-base); line-height: 1.4; }

.orders-page-shell .est-row--h .est-name { font-size: var(--text-xs); }

.orders-page-shell .est-unit { text-align: right; font-size: var(--text-sm); color: var(--foreground); font-variant-numeric: tabular-nums; }

.orders-page-shell .est-note { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-xs); color: var(--foreground); line-height: 1.5; margin-top: 12px; }

.orders-page-shell .est-note i, .orders-page-shell .est-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary-hover); }

.orders-page-shell .task-list li { display: flex; align-items: flex-start; gap: 11px; font-size: var(--text-base); line-height: 1.5; }

.orders-page-shell .task-list li i, .orders-page-shell .task-list li svg.lucide { width: 18px; height: 18px; color: var(--primary-hover); flex: none; margin-top: 2px; }

.orders-page-shell .param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.orders-page-shell .param { background: var(--card); padding: 13px 16px; }

.orders-page-shell .param dt { font-size: var(--text-xs); color: var(--foreground); margin-bottom: 3px; }

.orders-page-shell .param dd { font-size: var(--text-sm); font-weight: 500; margin: 0; }

/* aside */

.orders-page-shell .aside-stack { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1024px){ .orders-page-shell .aside-stack { position: static; } }

.orders-page-shell .apply-card { padding: 20px; }

.orders-page-shell .apply-price { font-weight: 700; font-size: var(--text-h4); letter-spacing: -0.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }

.orders-page-shell .apply-price-sub { font-size: var(--text-sm); color: var(--foreground); margin-top: 6px; }

.orders-page-shell .pay-info { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.orders-page-shell .pay-row { display: flex; align-items: flex-start; gap: 10px; }

.orders-page-shell .pay-row i, .orders-page-shell .pay-row svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--primary-hover); }

.orders-page-shell .pay-row .pay-l { font-size: var(--text-xs); color: var(--foreground); }

.orders-page-shell .pay-row .pay-v { font-size: var(--text-sm); font-weight: 500; color: var(--foreground); margin-top: 1px; line-height: 1.4; }

.orders-page-shell .apply-meta { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.orders-page-shell .apply-meta .row { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); }

.orders-page-shell .apply-meta .row i, .orders-page-shell .apply-meta .row svg.lucide { width: 17px; height: 17px; color: var(--muted-foreground); flex: none; }

.orders-page-shell .apply-meta .row span { color: var(--foreground); }

.orders-page-shell .apply-meta .row b { margin-left: auto; font-weight: 500; color: var(--foreground); }

.orders-page-shell .apply-note { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-xs); color: var(--foreground); line-height: 1.5; margin-top: 14px; }

.orders-page-shell .apply-note i, .orders-page-shell .apply-note svg.lucide { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.orders-page-shell .applied-state { display: none; align-items: center; gap: 10px; padding: 13px 14px; background: oklch(0.62 0.17 149 / 0.1); border: 1px solid oklch(0.62 0.17 149 / 0.3); border-radius: calc(var(--radius) - 2px); font-size: var(--text-sm); font-weight: 500; color: var(--text-success); }

.orders-page-shell .applied-state i, .orders-page-shell .applied-state svg.lucide { width: 18px; height: 18px; }

.orders-page-shell .cust-card { padding: 18px 20px; }

.orders-page-shell .cust-card .ch { display: flex; align-items: center; gap: 12px; }

.orders-page-shell .cust-card .avatar { width: 44px; height: 44px; font-size: 15px; }

.orders-page-shell .cust-card .cn { font-size: var(--text-base); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ===== similar orders ===== */

.orders-page-shell .orders-similar { padding: 8px 0 56px; }

.orders-page-shell .orders-similar__heading { font-size: var(--text-xl); font-weight: 600; margin: 0 0 12px; }

/* Four across, following the mockup's steps down. `minmax(0, 1fr)` rather than `1fr`: a long
   order title would otherwise widen its track and push the row out of the container. */
.orders-page-shell .orders-similar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1024px){ .orders-page-shell .orders-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 768px){ .orders-page-shell .orders-similar__grid { grid-template-columns: minmax(0, 1fr); } }

/* orders-desktop/05-orders-desktop.css */
.orders-page-shell .cust-card .cn i, .orders-page-shell .cust-card .cn svg.lucide { width: 15px; height: 15px; color: var(--primary-hover); }

.orders-page-shell .cust-card .cmeta { font-size: var(--text-xs); color: var(--foreground); margin-top: 2px; }

.orders-page-shell .cust-stats { display: flex; gap: 8px; margin-top: 16px; }

.orders-page-shell .cust-stat { flex: 1; text-align: center; padding: 11px 6px; background: var(--muted); border-radius: calc(var(--radius) - 4px); }

.orders-page-shell .cust-stat b { display: block; font-size: var(--text-base); font-weight: 600; font-variant-numeric: tabular-nums; }

.orders-page-shell .cust-stat span { font-size: 11px; color: var(--foreground); }

/* empty state */

.orders-page-shell .empty {
    min-height: 280px;
    padding: 56px 24px;
    color: var(--foreground);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

.orders-page-shell .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    box-shadow: var(--shadow-xs);
  }

.orders-page-shell .empty-icon i, .orders-page-shell .empty-icon svg {
    width: 26px;
    height: 26px;
    opacity: .65;
  }

.orders-page-shell .empty-copy {
    width: min(100%, 420px);
  }

.orders-page-shell .empty-copy strong {
    display: block;
    color: var(--foreground);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.35;
  }

.orders-page-shell .empty-copy p {
    margin: 6px 0 0;
    font-size: var(--text-sm);
    line-height: 1.45;
  }

.orders-page-shell .empty [data-slot="button"] {
    height: 2.5rem;
    gap: 8px;
  }

.orders-page-shell .empty [data-slot="button"] i, .orders-page-shell .empty [data-slot="button"] svg {
    width: 16px;
    height: 16px;
  }

/* screens */

.orders-page-shell [data-screen] { display: none; }

.orders-page-shell [data-screen].active { display: block; }

/* modal extras */

.orders-page-shell .otp-grid { display: flex; gap: 8px; justify-content: space-between; }

.orders-page-shell .otp-grid input { width: 100%; height: 3rem; text-align: center; font-size: var(--text-h4); font-family: var(--font-mono); border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--background); }

.orders-page-shell .otp-grid input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px oklch(0.708 0 0 / 0.25); }

.orders-page-shell .modal-step { display: none; }

.orders-page-shell .modal-step.active { display: block; }

.orders-page-shell .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--foreground); color: var(--background); font-size: var(--text-sm); padding: 11px 18px; border-radius: calc(var(--radius) - 2px); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; display: flex; align-items: center; gap: 9px; z-index: 60; }

.orders-page-shell .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.orders-page-shell .toast i, .orders-page-shell .toast svg.lucide { width: 16px; height: 16px; color: var(--primary); }

/* order media upload */

.orders-page-shell .order-media-input { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-xs); }

.orders-page-shell .order-media-input__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.orders-page-shell .order-media-input__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

.orders-page-shell .order-media-input__head p { margin: 4px 0 0; color: var(--foreground); font-size: 13.5px; line-height: 1.4; }

.orders-page-shell .order-media-input__add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 700; cursor: pointer; }

.orders-page-shell .order-media-input__add:hover { background: var(--muted); border-color: var(--foreground); }

.orders-page-shell .order-media-input__add.is-disabled { opacity: .5; pointer-events: none; }

.orders-page-shell .order-media-input__add i, .orders-page-shell .order-media-input__add svg { width: 17px; height: 17px; }

.orders-page-shell .order-media-input__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }

.orders-page-shell .order-media-input__item { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--muted); box-shadow: var(--shadow-xs); }

.orders-page-shell .order-media-input__item img, .orders-page-shell .order-media-input__item video { width: 100%; height: 100%; object-fit: cover; display: block; }

.orders-page-shell .order-media-input__remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 10px; background: rgba(17,17,17,.78); color: #fff; display: grid; place-items: center; overflow: hidden; cursor: pointer; font-size: 0; line-height: 0; }

.orders-page-shell .order-media-input__remove:hover { background: #111; }

.orders-page-shell .order-media-input__remove i, .orders-page-shell .order-media-input__remove svg { width: 16px; height: 16px; }

.orders-page-shell .order-media-input__kind { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 999px; background: rgba(17,17,17,.76); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.orders-page-shell .order-media-input__kind.is-new { background: var(--primary); color: #111; }

.orders-page-shell .order-media-input__empty { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 16px; border: 1.5px dashed var(--border); border-radius: 14px; color: var(--foreground); font-size: 14px; line-height: 1.45; }

.orders-page-shell .order-media-input__empty i, .orders-page-shell .order-media-input__empty svg { width: 22px; height: 22px; flex: none; }

@media (max-width: 768px){ .orders-page-shell .order-media-input { padding: 14px; } .orders-page-shell .order-media-input__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .orders-page-shell .order-media-input__add { width: 100%; } }

/* media gallery */

body.sb-media-modal-open { overflow: hidden; }

.orders-page-shell .sb-media-gallery { width: 100%; }

.orders-page-shell .sb-media-gallery__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

.orders-page-shell .sb-media-gallery__thumb { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding: 0; background: var(--muted); cursor: pointer; box-shadow: var(--shadow-xs); }

.orders-page-shell .sb-media-gallery__thumb img, .orders-page-shell .sb-media-gallery__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

.orders-page-shell .sb-media-gallery__play, .orders-page-shell .sb-media-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.38); color: #fff; font-weight: 800; }

.orders-page-shell .sb-media-gallery__play i, .orders-page-shell .sb-media-gallery__play svg { width: 26px; height: 26px; fill: currentColor; }

.orders-page-shell .sb-media-gallery__more { font-size: 22px; }

.orders-page-shell .sb-media-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 64px 76px; background: rgba(0,0,0,.86); color: #fff; }

.orders-page-shell .sb-media-lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; min-width: 0; min-height: 0; }

.orders-page-shell .sb-media-lightbox__stage img, .orders-page-shell .sb-media-lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #000; box-shadow: 0 24px 80px rgba(0,0,0,.4); }

.orders-page-shell .sb-media-lightbox__close, .orders-page-shell .sb-media-lightbox__nav { position: fixed; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }

.orders-page-shell .sb-media-lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; }

.orders-page-shell .sb-media-lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 16px; }

.orders-page-shell .sb-media-lightbox__nav--prev { left: 18px; }

.orders-page-shell .sb-media-lightbox__nav--next { right: 18px; }

/* orders-desktop/06-orders-desktop.css */
.orders-page-shell .sb-media-lightbox__close i, .orders-page-shell .sb-media-lightbox__close svg, .orders-page-shell .sb-media-lightbox__nav i, .orders-page-shell .sb-media-lightbox__nav svg { width: 24px; height: 24px; }

.orders-page-shell .sb-media-lightbox__counter { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.orders-page-shell .sb-media-lightbox__counter i, .orders-page-shell .sb-media-lightbox__counter svg { width: 16px; height: 16px; }

@media (max-width: 768px){
    .orders-page-shell .sb-media-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .orders-page-shell .sb-media-lightbox { padding: 64px 12px 76px; }
    .orders-page-shell .sb-media-lightbox__nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; border-radius: 14px; }
    .orders-page-shell .sb-media-lightbox__nav--prev { left: 16px; }
    .orders-page-shell .sb-media-lightbox__nav--next { right: 16px; }
  }

  /* Cross-links closing the feed: building types by category, then cities with open orders.
     Four columns on desktop, following the kit's steps down to one. */
  .orders-page-shell .orders-seo { padding: 40px 0 60px; }
  .orders-page-shell .orders-seo__heading { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; }
  .orders-page-shell .orders-seo__heading--spaced { margin-top: 36px; }
  .orders-page-shell .orders-seo__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
  .orders-page-shell .orders-seo__group { display: flex; flex-direction: column; min-width: 0; }
  .orders-page-shell .orders-seo__group-title { font-size: var(--text-base); font-weight: 700; margin: 0 0 12px; }
  /* `--foreground`: the accent measures 1.73:1 against this white band, where AA asks 4.5:1 for
     body text. This is the class the markup actually uses -- the older .seo-cat/.seo-cols rules
     above match nothing, which is how the yellow survived a first pass at this. Hover underlines. */
  .orders-page-shell .orders-seo__link { font-size: var(--text-sm); color: var(--foreground); padding: 4px 0; }
  .orders-page-shell .orders-seo__link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .orders-page-shell .orders-seo__cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 24px; }

  @media (max-width: 1280px) {
    .orders-page-shell .orders-seo__grid, .orders-page-shell .orders-seo__cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 640px) {
    .orders-page-shell .orders-seo__grid, .orders-page-shell .orders-seo__cities { grid-template-columns: minmax(0, 1fr); }
  }
