/* 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(--muted); }

.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-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); }

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

.sb-logo { cursor: pointer; }

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

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

.hdr-lang { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--foreground); padding: 8px 6px; border-radius: calc(var(--radius) - 4px); }

.hdr-lang:hover { background: var(--muted); }

.hdr-lang i { width: 16px; height: 16px; }

.hdr-lang .chev { width: 15px; height: 15px; color: var(--muted-foreground); }

.hdr-city { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--foreground); padding: 8px 10px; border-radius: calc(var(--radius) - 4px); }

.hdr-city:hover { background: var(--muted); }

.hdr-city > i:first-child { width: 16px; height: 16px; color: var(--primary-hover); }

.hdr-city .chev { width: 15px; height: 15px; color: var(--muted-foreground); }

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

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

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

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

.crumb i { width: 13px; height: 13px; }

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

.pagehead h1 { margin: 0; }

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

.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; }

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

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

.ob-icon i { width: 24px; height: 24px; }

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

.ob-sub { font-size: 14px; color: #b8b8b8; margin: 3px 0 0; }

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

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

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

.ob-stat span { font-size: 12px; color: #9a9a9a; margin-top: 4px; display: block; }

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

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

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

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

.stat i { width: 15px; height: 15px; color: var(--muted-foreground); }

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

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

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

.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; }

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

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

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

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

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

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

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

.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; }

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

.fb-spacer { flex: 1; }

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

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

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

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

.fb-row { align-items: stretch; }

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

.budget-inputs { height: 2.75rem; }

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

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

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

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

/* more-filters modal */

.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-more-overlay { z-index: 80; }

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

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

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

.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 { 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(--muted-foreground); margin-top: 2px; }

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

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

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

.sb-switch[data-slot="switch"] { width: 2.5rem; height: 1.4rem; border: none; border-radius: 999px; background: var(--input); padding: 0; }

.sb-switch[data-state="checked"] { background: var(--primary); }

.sb-switch [data-slot="switch-thumb"] { width: 1rem; height: 1rem; transform: translateX(2px); background: #fff; box-shadow: var(--shadow-xs); }

.sb-switch[data-state="checked"] [data-slot="switch-thumb"] { transform: translateX(1.1rem); }

.more-filters.has-active { border-color: #111; background: #111; color: #fff; }

.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 { width: 16px; height: 16px; }

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

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

.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: 820px){ .fb-more { grid-template-columns: 1fr 1fr; } }

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

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

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

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

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

.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; }

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

.fb-chip[data-active="true"] { background: #111; color: #fff; border-color: #111; }

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

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

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

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

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

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

.reset-link { background: none; border: none; color: var(--muted-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; }

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

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

.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; }

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

.fb-chip[data-active="true"] { background: #111; color: #fff; border-color: #111; }

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

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

.obj-dd { position: relative; }

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

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

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

.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; }

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

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

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

.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-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(--muted-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: oklch(0.9 0 0); }

.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; } }

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

@media (max-width: 640px){ .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(--muted-foreground); margin-bottom: 12px; }

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

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

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

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

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

.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(--muted-foreground); font-variant-numeric: tabular-nums; }

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

.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(--muted-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(--muted-foreground); font-variant-numeric: tabular-nums; }

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

.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; }

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

.house-opt[data-active="true"] { background: #111; color: #fff; }

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

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

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

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

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

.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; }

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

.cat-opt[data-active="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }

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

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

.cat-opt .co-ic i { width: 20px; height: 20px; }

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

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


/* orders-desktop/03-orders-desktop.css */
.cat-opt .co-count { display: block; font-size: var(--text-xs); color: var(--muted-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); }

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

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

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

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

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

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

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

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

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

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

.view-toggle i { width: 17px; height: 17px; }

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

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

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

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

eground); }
  .rowhead .num, .orow .num { text-align: right; }

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

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

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

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

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

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

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

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

.orow .c-house { font-size: var(--text-xs); color: var(--muted-foreground); }

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

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

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

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

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

.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; }

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

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

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

.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; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ocard-thumb > i { width: 28px; height: 28px; opacity: .4; }

.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; }

.ocard-thumb .thumb-count i { width: 12px; height: 12px; }

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

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

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

.ocard h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 5px; line-height: 1.25; }

.ocard:hover h3 { color: #000; }

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

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

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

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

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

.meta i { width: 14px; height: 14px; color: var(--muted-foreground); flex: none; }

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

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

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

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

.posted i { width: 12px; height: 12px; }

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

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

.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: oklch(0.985 0 0); }

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

.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; }

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

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

.cust-name i { width: 13px; height: 13px; color: var(--primary-hover); }

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

.cust-sub .star { color: #E0A800; display: inline-flex; align-items: center; gap: 3px; }

.cust-sub .star i { width: 12px; height: 12px; }

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

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

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

.resp-count i { width: 14px; height: 14px; }

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

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

.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; }

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

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


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

.pager .edge { padding: 0 18px; }

.pager .edge i { width: 16px; height: 16px; }

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

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

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

.rss { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm); color: var(--primary-hover); }

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

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

.archive i { width: 15px; height: 15px; }

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

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

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

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

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

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

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

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

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

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

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

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

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

.seo-cat a { font-size: var(--text-sm); color: var(--primary-hover); padding: 4px 0; }

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

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

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

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

.seo-cols a { font-size: var(--text-sm); color: var(--primary-hover); padding: 3px 0; }

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

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

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

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

.back-link i { width: 16px; height: 16px; }

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

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

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

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 130px; gap: 8px; margin: 22px 0 28px; }

.gallery .ph { background: var(--muted); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); display: grid; place-items: center; color: var(--muted-foreground); position: relative; overflow: hidden; }

.gallery .ph:first-child { grid-row: span 2; }

.gallery .ph i { width: 26px; height: 26px; opacity: .5; }

.gallery .more { position: absolute; inset: 0; background: oklch(0.145 0 0 / 0.5); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: var(--text-base); }

.section { margin-bottom: 28px; }

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

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

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

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

.est-head h2 { margin: 0; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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; }

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

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

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

/* aside */

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

@media (max-width: 940px){ .aside-stack { position: static; } }

.apply-card { padding: 20px; }

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

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

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

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

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

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

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

.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); }

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

.apply-meta .row i { width: 17px; height: 17px; color: var(--muted-foreground); flex: none; }

.apply-meta .row span { color: var(--muted-foreground); }

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

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

.apply-note i { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.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: oklch(0.45 0.15 149); }

.applied-state i { width: 18px; height: 18px; }

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

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

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

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


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

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

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

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

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

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

/* empty state */

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

.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);
  }

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

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

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

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

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

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

/* screens */

[data-screen] { display: none; }

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

/* modal extras */

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

.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); }

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

.modal-step { display: none; }

.modal-step.active { display: block; }

.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; }

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

.toast i { width: 16px; height: 16px; color: var(--primary); }

/* order media upload */

.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); }

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

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

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

.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; }

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

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

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

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

.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); }

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

.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; }

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

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

.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; }

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

.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(--muted-foreground); font-size: 14px; line-height: 1.45; }

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

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

/* media gallery */

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

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

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

.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); }

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

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

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

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

.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; }

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

.sb-media-lightbox__stage img,
  .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); }

.sb-media-lightbox__close,
  .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); }

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

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

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

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


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

.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; }

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

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