/* Orders, quotes, returns, tickets and dealer content (admin) */

/* ---------------------------------------------------------------- list */
.om-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.om-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 650; font-size: 14px; color: var(--ink-2); text-decoration: none !important; white-space: nowrap;
}
.om-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.om-tab b { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--surface-3); font-size: 12px; font-weight: 750; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.om-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.om-tab.is-active b { background: color-mix(in srgb, var(--surface) 18%, transparent); color: var(--surface); }
.om-tab-dot { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; background: var(--ink); }
.om-tab-dot.is-tape { background: var(--tape); }
.om-tab-dot.is-blue { background: var(--blue); }
.om-tab-dot.is-sky { background: var(--sky-bright); }
.om-tab-dot.is-mint { background: var(--success-bright); }
.om-tab-dot.is-coral { background: var(--danger-bright); }
.om-tab-dot.is-violet { background: var(--violet); }

.om-list .om-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 18px; }
.om-fsearch {
  flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--faint);
}
.om-fsearch:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.om-fsearch .icon { width: 18px; height: 18px; }
.om-fsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.om-fsearch input::placeholder { color: var(--faint); }
.om-fchip {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.om-fchip:hover { border-color: var(--line-strong); }
.om-fchip .icon { width: 16px; height: 16px; color: var(--muted); }
.om-fchip b { color: var(--ink); font-weight: 700; }
.om-fchip.is-set { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.om-fchip-val { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.om-fchip .badge { height: 20px; min-width: 20px; font-size: 11px; }
.om-menu { width: 260px; max-width: calc(100vw - 32px); }
.om-menu .menu-item.is-current { background: var(--brand-soft); color: var(--brand-text); }
.om-menu-dealer { width: 300px; padding: 10px; display: grid; gap: 6px; }
.om-menu-more { width: 280px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.om-menu-more .field { gap: 6px; }
.om-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 2px 6px 6px; }
.om-clear { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 6px; font-size: 13.5px; font-weight: 650; color: var(--muted); text-decoration: none !important; }
.om-clear:hover { color: var(--ink); }
.om-clear .icon { width: 15px; height: 15px; }

.om-bulk {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 18px 14px; padding: 10px 12px 10px 16px; border-radius: 14px;
  background: var(--ink); color: var(--surface); animation: om-pop 0.25s var(--ease);
}
.om-bulk > b { margin-right: auto; font-size: 14px; }
.om-bulk form { display: contents; }
.om-bulk .btn:not(.btn-success) { --btn-bg: color-mix(in srgb, var(--surface) 10%, transparent); --btn-fg: var(--surface); --btn-bd: color-mix(in srgb, var(--surface) 20%, transparent); box-shadow: none; }
.om-bulk .btn:not(.btn-success):hover { --btn-bg: color-mix(in srgb, var(--surface) 18%, transparent); }
@keyframes om-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.om-list .table-wrap { position: relative; border-top: 1px solid var(--line-2); }
.om-table th, .om-table td { padding-left: 12px; padding-right: 12px; }
.om-table th:first-child, .om-table td:first-child { padding-left: 16px; }
.om-table th.sel, .om-table td.sel { width: 44px; padding-right: 0; }
.om-table th:last-child, .om-table td:last-child { padding-right: 14px; }
.om-table td { white-space: nowrap; }
.om-table tbody tr.is-selected td, .om-table tbody tr:has(.om-cb:checked) td { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.om-table tr.om-attention td:first-child { box-shadow: inset 3px 0 0 var(--tape); }
.om-cb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; display: block; border-radius: 7px; border: 1.5px solid var(--line-strong);
  background: var(--surface) center / 14px 14px no-repeat; cursor: pointer; transition: background-color 0.12s, border-color 0.12s;
}
.om-cb:hover { border-color: var(--brand); }
.om-cb:checked, .om-cb:indeterminate {
  background-color: var(--brand); border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.om-cb:focus-visible { outline: none; box-shadow: var(--ring); }
.om-code { font-stretch: 88%; font-weight: 700; color: var(--ink); text-decoration: none !important; font-variant-numeric: tabular-nums; }
.om-code:hover { color: var(--brand-text); }
.om-src { display: inline-grid; place-items: center; margin-left: 6px; vertical-align: -2px; color: var(--faint); cursor: help; }
.om-src .icon { width: 14px; height: 14px; }
.om-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; margin-top: 1px; }
.om-who { display: flex; align-items: center; gap: 10px; }
.om-who b { display: block; font-weight: 650; line-height: 1.3; color: var(--ink); max-width: 175px; overflow: hidden; text-overflow: ellipsis; }
.om-who small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.om-av { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 750; display: grid; place-items: center; flex: none; }
.om-kdv { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.om-status { display: inline-flex; align-items: center; gap: 6px; }
.om-warn { display: inline-grid; place-items: center; color: var(--warning); cursor: help; }
.om-warn .icon { width: 16px; height: 16px; }
.om-track { display: inline-flex; align-items: center; gap: 6px; max-width: 165px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none !important; white-space: nowrap; }
.om-track > span { overflow: hidden; text-overflow: ellipsis; }
a.om-track:hover { color: var(--brand-text); }
.om-track .icon { width: 15px; height: 15px; color: var(--sky); }
.om-track.is-none { color: var(--ink-2); }
.om-act { display: inline-flex; gap: 2px; align-items: center; }
.om-act > a, .om-act button[data-dropdown] {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 0; background: none; cursor: pointer;
}
.om-act > a:hover, .om-act button[data-dropdown]:hover, .om-act .is-open button[data-dropdown] { background: var(--surface-3); color: var(--ink); }
.om-act .icon { width: 17px; height: 17px; }
.om-act .menu form { margin: 0; }
.om-act .menu { text-align: left; }

.om-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); font-weight: 600; }
.om-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.om-pages a, .om-pages span {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-2); font-weight: 650; text-decoration: none !important; font-variant-numeric: tabular-nums;
}
.om-pages a:hover { border-color: var(--line-strong); color: var(--ink); }
.om-pages .is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.om-pages .is-gap { border-color: transparent; }
.om-empty { padding: 48px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; border-top: 1px solid var(--line-2); }
.om-empty .ti { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 6px; }
.om-empty .ti .icon { width: 24px; height: 24px; }
.om-empty b { color: var(--ink); font-size: 16px; }
.om-empty p { max-width: 420px; font-size: 13.5px; }
.om-empty .btn { margin-top: 10px; }
@media (max-width: 640px) {
  .om-list .om-tools { padding: 16px 18px 14px; position: relative; }
  /* filter menus open full width under the toolbar instead of running off the screen */
  .om-tools .dropdown { position: static; }
  .om-tools .menu, .om-tools .menu.menu-left { left: 12px; right: 12px; width: auto; max-width: none; top: calc(100% - 6px); transform-origin: top center; }
  .om-fsearch { flex-basis: 100%; max-width: none; }
  .om-bulk { margin: 0 12px 12px; }
  .om-bulk > b { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- order page */
.od-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.od-head-main { min-width: 0; }
.od-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-family: var(--font-display); font-size: 30px; font-stretch: 108%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.od-title .od-chip { height: 30px; padding: 0 12px; font-size: 13.5px; font-family: var(--font); font-stretch: 100%; letter-spacing: 0; }
.od-sub { margin-top: 8px; color: var(--muted); font-weight: 550; font-size: 14.5px; }
.od-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.od-actions .btn-success { box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--success) 80%, transparent); }

.od-steps { margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 20px 22px; }
.od-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding-right: 12px; min-width: 0; }
.od-step::after { content: ""; position: absolute; top: 17px; left: 42px; right: 6px; height: 3px; border-radius: 3px; background: var(--line-2); }
.od-step:last-child::after { display: none; }
.od-step.is-done::after { background: var(--success-bright); }
.od-step-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--faint); position: relative; z-index: 1; flex: none; }
.od-step-dot .icon { width: 17px; height: 17px; }
.od-step-dot b { font-size: 13px; font-weight: 700; }
.od-step.is-done .od-step-dot { background: var(--success-bright); color: #fff; }
.od-step.is-current .od-step-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent); }
.od-step > span:last-child { min-width: 0; }
.od-step > span:last-child b { display: block; font-size: 14px; font-weight: 700; }
.od-step small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-steps.is-closed .od-step:not(.is-done) { opacity: 0.55; }
.od-alerts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.od-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.od-col { display: grid; gap: 18px; min-width: 0; }
.od-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.od-lines .table-wrap { position: relative; }
.od-table td { vertical-align: middle; }
.od-table th, .od-table td { padding-left: 14px; padding-right: 14px; }
.od-table td.num { white-space: nowrap; }
.od-prod { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.od-prod .ti { width: 42px; height: 42px; border-radius: 12px; }
.od-prod .ti .icon { width: 20px; height: 20px; }
.od-thumb { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line); background: var(--surface-2); }
.od-thumb img { width: 100%; height: 100%; object-fit: cover; }
.od-prod-main { min-width: 0; }
.od-prod-main b { display: block; font-weight: 650; color: var(--ink); line-height: 1.35; }
.od-prod-main small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; font-stretch: 88%; }
.od-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--success); margin-top: 2px; }
.od-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success-bright); }
.od-stock.is-short { color: var(--danger); }
.od-stock.is-short::before { background: var(--danger-bright); }
.od-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.od-flags .chip { height: 21px; font-size: 12px; }
.od-unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.od-list-price { color: var(--faint); }
.od-shipped { display: inline-flex; align-items: center; gap: 3px; }
.od-table .om-num-input { width: 72px; }
.od-table .om-price-input { width: 92px; }
.od-lines.is-editing .od-table th, .od-lines.is-editing .od-table td { padding-left: 10px; padding-right: 10px; }
.od-lines.is-editing .od-table th:first-child, .od-lines.is-editing .od-table td:first-child { padding-left: 20px; }

.od-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px 20px 20px; border-top: 1px solid var(--line-2); }
.od-totals-note { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-width: 0; }
.od-totals dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 9px 40px; font-size: 14.5px; align-content: start; }
.od-totals dt { color: var(--muted); font-weight: 600; }
.od-totals dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-totals dd.is-minus, .od-totals dd.is-paid { color: var(--success); }
.od-totals .is-grand { font-size: 17px; color: var(--ink); font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line); }
.od-totals dd.is-grand { font-family: var(--font-display); font-size: 22px; font-stretch: 112%; }

.od-shipments { list-style: none; margin: 0; padding: 0; }
.od-shipments > li { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.od-ship-head { display: flex; align-items: center; gap: 12px; }
.od-ship-head b { display: block; font-weight: 700; }
.od-ship-head small { display: block; font-size: 12.5px; color: var(--muted); }
.od-ship-lines { list-style: none; margin: 10px 0 0 48px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.od-ship-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.od-ship-lines li:last-child { border-bottom: 0; }
.od-ship-note { margin: 6px 0 0 48px; }

.od-notes { display: flex; flex-direction: column; gap: 12px; }
.od-note { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--tape-soft); color: var(--ink-2); line-height: 1.55; overflow-wrap: anywhere; }
.od-note .ti { background: var(--surface); color: #b57400; }
:root[data-theme="dark"] .od-note .ti { color: var(--tape); }
.od-note b { display: block; color: var(--ink); font-size: 14px; }
.od-note-empty { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.od-note-empty .icon { width: 16px; height: 16px; color: var(--faint); }
.od-inote textarea { min-height: 76px; resize: vertical; border-radius: 14px; padding: 12px 14px; }
.od-inote-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.od-inote-read p { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; }
.od-empty { display: flex; align-items: center; gap: 10px; padding: 0 20px 20px; color: var(--muted); font-size: 13.5px; }

.od-dealer { display: flex; align-items: center; gap: 12px; }
.od-av { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; font-weight: 800; display: grid; place-items: center; flex: none; }
.od-dealer b { display: block; font-size: 16px; font-weight: 750; line-height: 1.3; }
.od-dealer small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.od-dealer-state { margin-top: 10px; }
.od-kv { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.od-kv li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; min-width: 0; }
.od-kv li > .icon { width: 16px; height: 16px; color: var(--faint); margin-top: 2px; flex: none; }
.od-kv a { color: var(--ink-2); min-width: 0; }
.od-kv a:hover { color: var(--brand-text); }

.od-cari { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.od-cari-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.od-cari-top small { font-size: 13px; color: var(--muted); font-weight: 600; }
.od-cari-top strong { font-family: var(--font-display); font-size: 22px; font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-stack { margin-top: 12px; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--surface-3) 80%, var(--line-strong)); overflow: hidden; display: flex; }
.od-stack i { display: block; height: 100%; }
.od-stack .is-debt, .od-leg .is-debt { background: var(--blue); }
.od-stack .is-others, .od-leg .is-others { background: var(--sky-bright); }
.od-stack .is-own, .od-leg .is-own { background: var(--tape); }
.od-leg { display: flex; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.od-leg span { display: inline-flex; align-items: center; gap: 6px; }
.od-leg em { width: 9px; height: 9px; border-radius: 3px; display: block; }
.od-line { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--success); }
.od-line .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.od-line.is-bad { color: var(--danger); }
.od-line.is-muted { color: var(--muted); font-weight: 600; }

.od-payments { display: flex; flex-direction: column; margin-top: 6px; }
.od-payment { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }

.od-tl { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; }
.od-tl li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 16px; }
.od-tl li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.od-tl li:last-child { padding-bottom: 0; }
.od-tl li:last-child::before { display: none; }
.od-tl .ti { width: 28px; height: 28px; border-radius: 50%; }
.od-tl .ti .icon { width: 14px; height: 14px; }
.od-tl li > span:last-child { min-width: 0; }
.od-tl b { display: block; font-size: 14px; font-weight: 650; }
.od-tl small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.od-tl-note { display: block; margin: 4px 0 2px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }

@media (max-width: 1180px) {
  .od-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .od-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .od-step { flex-direction: row; align-items: center; gap: 12px; }
  .od-step::after { display: none; }
}
@media (max-width: 640px) {
  .od-title { font-size: 28px; }
  .od-head { align-items: flex-start; }
  .od-totals { grid-template-columns: minmax(0, 1fr); padding: 14px 20px 18px; }
  .od-totals-note:empty { display: none; }
  .od-totals dl { gap: 9px 16px; }
  .od-ship-lines, .od-ship-note { margin-left: 0; }
  .od-shipments > li { padding: 12px 16px; }
}

/* ---------------------------------------------------------------- detail header */
.om-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.om-head-main { min-width: 0; }
.om-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.om-head-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.om-head-sub a { color: var(--ink); }
.om-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.om-summary { margin-bottom: 16px; overflow: hidden; }
.om-facts { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.om-fact { padding: 16px 20px; min-width: 0; }
.om-fact + .om-fact { border-left: 1px solid var(--line); }
.om-fact-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.om-fact-v { margin-top: 6px; font-weight: 650; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.om-fact-big { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.om-progress { list-style: none; margin: 0; padding: 14px 20px 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface-2); }
.om-progress li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--faint); }
.om-progress li::before { content: ""; position: absolute; left: 22px; right: 4px; top: 8px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.om-progress li:last-child::before { display: none; }
.om-progress li.is-done::before { background: var(--brand); }
.om-progress-dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--brand-ink); }
.om-progress li.is-done .om-progress-dot { background: var(--brand); border-color: var(--brand); }
.om-progress li.is-current .om-progress-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.om-progress li.is-current { color: var(--ink); }
.om-progress li.is-done { color: var(--ink-2); }
.om-progress-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.om-alerts { margin-bottom: 16px; gap: 10px; }

@media (max-width: 1100px) {
  .om-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-fact:nth-child(3) { border-left: 0; }
  .om-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .om-head { margin-bottom: 12px; }
  .om-head-sub { font-size: 13px; gap: 6px; }
  .om-fact { padding: 12px 14px; }
  .om-fact-big { font-size: 20px; }
  .om-progress { padding: 12px 14px 14px; }
  .om-progress-label { font-size: 11px; }
  .om-progress li:not(.is-current) .om-progress-label { visibility: hidden; }
  .om-progress li.is-current .om-progress-label { overflow: visible; }
  .om-progress li.is-current:nth-child(n+4) { align-items: flex-end; }
  .om-progress li.is-current:nth-child(n+4) .om-progress-label { position: absolute; right: 0; top: 24px; }
  .om-progress li.is-current:nth-child(n+4)::before { display: none; }
}

/* ---------------------------------------------------------------- lines */
.om-item-name { font-weight: 650; color: var(--ink); line-height: 1.35; }
.om-item-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.om-num-input { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.om-price-input { width: 112px; }
.om-edit-only { display: none !important; }
.om-lines.is-editing .om-edit-only { display: revert !important; }
.om-lines.is-editing td.om-edit-only, .om-lines.is-editing th.om-edit-only { display: table-cell !important; }
.om-lines.is-editing .om-view-only { display: none !important; }
.om-lines.is-editing tr.is-removed td { opacity: 0.45; }
.om-lines.is-editing tr.is-removed .om-item-name { text-decoration: line-through; }
.om-lines.is-editing tr.is-changed td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.om-remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.om-remove:hover { background: var(--danger-soft); color: var(--danger); }
.om-remove input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.om-remove:has(input:checked) { background: var(--danger); color: #fff; }
.om-remove:has(input:focus-visible) { box-shadow: var(--ring); }
.om-addline { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.om-lines.is-editing .om-addline { display: block !important; }
.om-addline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.om-addline-search { flex: 1 1 260px; min-width: 0; }
.om-addline-form .select { width: auto; max-width: 200px; }
.om-addline .hint { margin-top: 8px; }
.om-lines.is-editing .om-edit-foot { display: flex !important; }

.om-totals-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px; padding: 16px 20px 18px; border-top: 1px solid var(--line); }
.om-totals-note { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-width: 0; }
.om-totals .kv-row { padding: 6px 0; }
.om-totals .kv-row + .kv-row { border-top: 0; }
.om-totals .kv-row.total { margin-top: 6px; padding-top: 12px; }
@media (max-width: 720px) {
  .om-totals-wrap { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 8px; }
  .om-totals-note:empty { display: none; }
  .om-addline { padding: 12px 16px; }
  .om-addline-form .om-num-input { flex: 1 1 80px; width: auto; }
  .om-addline-form .select { max-width: none; flex: 1 1 100%; }
}

.om-empty-inline { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--muted); font-size: 13.5px; }

/* activity feed */
.om-feed { list-style: none; margin: 0; padding: 0; }
.om-feed-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.om-feed-item:last-child { padding-bottom: 0; }
.om-feed-item::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.om-feed-item:last-child::before { display: none; }
.om-feed-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.om-feed-item.is-latest .om-feed-icon { box-shadow: 0 0 0 4px var(--surface-2); }
.om-feed-item.tone-success .om-feed-icon { background: var(--success-soft); color: var(--success); border-color: transparent; }
.om-feed-item.tone-warning .om-feed-icon { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.om-feed-item.tone-danger .om-feed-icon { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.om-feed-item.tone-brand .om-feed-icon, .om-feed-item.tone-info .om-feed-icon { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.om-feed-item.tone-violet .om-feed-icon { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.om-feed-body { padding-top: 3px; min-width: 0; }
.om-feed-title { font-weight: 650; }
.om-feed-note { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.om-feed-meta { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }

/* aside */
.om-dealer-avatar { border-radius: 12px; }
.om-dealer-name { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); }
.om-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; }
.om-contact .icon { color: var(--faint); }
.om-contact a { color: var(--ink-2); min-width: 0; }
.om-subsection { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.om-subhead { font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; display: block; }
.om-quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--tape); background: var(--tape-soft); border-radius: 0 8px 8px 0; color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }

/* dialogs */
.om-switch-hint { margin: 4px 0 0 48px; }
.om-checklist { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.om-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.om-checklist li .icon { margin-top: 2px; color: var(--muted); }
.om-checklist li.text-warning, .om-checklist li.text-warning .icon { color: var(--warning); }
.om-ship-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.om-ship-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 112px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.om-ship-row:first-child { border-top: 0; }
.om-ship-row-head { background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.om-ship-row .num { text-align: right; }
.om-ship-row .om-num-input { width: 100%; }
.om-ship-name { display: flex; flex-direction: column; min-width: 0; }
.om-ship-name .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-ship-tools { padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); justify-content: flex-end; }
@media (max-width: 720px) {
  .om-ship-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .om-ship-row > .num:nth-child(2) { display: none; }
  .om-ship-row-head > .num:nth-child(2) { display: none; }
}

/* ---------------------------------------------------------------- order entry */
.oc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.oc-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 750; margin-right: 8px; flex: none; }
.card-head h2 .oc-step { vertical-align: 1px; }
.oc-dealer-pick { position: relative; }
.oc-dealer { display: flex; align-items: center; gap: 14px; }
.oc-dealer-name { font-weight: 700; font-size: 15.5px; }
.oc-dealer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.oc-dealer-stats > div { padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.oc-dealer-stats > div + div { border-left: 1px solid var(--line); }
.oc-dealer-stats .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.oc-dealer-stats .v { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-lines-empty { padding: 36px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.oc-lines-empty .empty-icon { margin-bottom: 4px; }
.oc-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 128px 32px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.oc-line:first-child { border-top: 0; }
.oc-line.has-problem { background: color-mix(in srgb, var(--danger-soft) 45%, transparent); }
.oc-line-name { font-weight: 650; line-height: 1.35; }
.oc-line-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.oc-line-sub .chip { height: 20px; font-size: 11.5px; }
.oc-line-problem { font-size: 12.5px; color: var(--danger); font-weight: 600; margin-top: 4px; }
.oc-line-warn { font-size: 12.5px; color: var(--warning); font-weight: 600; margin-top: 4px; }
.oc-line-total { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-line-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
.oc-line .select { height: 32px; font-size: 13px; margin-top: 6px; max-width: 260px; }
.oc-add { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.oc-add .input-icon .input { background: var(--surface); }
.oc-summary .kv-row { padding: 7px 0; }
.oc-summary .kv-row + .kv-row { border-top: 0; }
.oc-check { margin-top: 12px; }
.oc-methods { display: grid; gap: 8px; }
.oc-methods .choice { padding: 10px 12px; }
.oc-submit { margin-top: 16px; }
.oc-loading .oc-summary { opacity: 0.6; transition: opacity 0.2s; }
@media (max-width: 1100px) {
  .oc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .oc-line { grid-template-columns: 40px minmax(0, 1fr) auto 32px; padding: 12px 16px; row-gap: 10px; column-gap: 10px; }
  .oc-line > .grow { grid-column: 2 / 4; grid-row: 1; }
  .oc-line .oc-line-remove { grid-column: 4; grid-row: 1; align-self: start; }
  .oc-line .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
  .oc-line .oc-line-total { grid-column: 3 / 5; grid-row: 2; align-self: center; }
  .oc-add { padding: 12px 16px; }
  .oc-dealer-stats { grid-template-columns: minmax(0, 1fr); }
  .oc-dealer-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .oc-sticky { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; z-index: 44; bottom: calc(var(--tabbar-h) + var(--safe-b)); padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, 0.18); }
  .oc-sticky .total { font-family: var(--font-display); font-weight: 650; font-size: 18px; font-variant-numeric: tabular-nums; margin-right: auto; }
  .page:has(.oc-sticky) { padding-bottom: calc(var(--tabbar-h) + 96px + var(--safe-b)); }
}
@media (min-width: 721px) { .oc-sticky { display: none; } }
.oc-page .oc-step { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12.5px; margin-right: 10px; }
.oc-page .card-head .sub { margin-left: 36px; }
.oc-page .oc-dealer-name { font-size: 16px; font-weight: 750; }
.oc-page .oc-dealer-stats { border-color: var(--line-2); border-radius: 14px; }
.oc-page .oc-dealer-stats .v { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 16px; }
.oc-page .oc-line { border-top-color: var(--line-2); }
.oc-page .oc-line-total { font-size: 15px; }
@media (max-width: 640px) { .oc-page .card-head .sub { margin-left: 0; } }

/* ---------------------------------------------------------------- quotes */
.qt-requested td:first-child { box-shadow: inset 3px 0 0 var(--tape); }
.qt-lines .qt-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 132px 92px 120px 32px; gap: 10px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.qt-lines .qt-row:first-child { border-top: 0; }
.qt-lines .qt-row-head { background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.qt-lines .num { text-align: right; }
.qt-lines .input { height: 34px; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.qt-lines .qt-name .strong { display: block; line-height: 1.35; }
.qt-lines .qt-name .small { color: var(--muted); }
.qt-lines .qt-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qt-hint-price { font-size: 11.5px; color: var(--faint); text-align: right; margin-top: 2px; }
@media (max-width: 860px) {
  .qt-lines .qt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; row-gap: 8px; padding: 12px 16px; }
  .qt-lines .qt-row-head { display: none; }
  .qt-lines .qt-name { grid-column: 1 / 3; }
  .qt-lines .qt-remove { grid-column: 3; grid-row: 1; }
  .qt-lines .qt-field::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; text-align: left; }
  .qt-lines .qt-total { grid-column: 1 / 4; border-top: 1px dashed var(--line); padding-top: 6px; }
}
.qt-doc { position: relative; }
.qt-doc::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--tape); }
.qt-valid { display: inline-flex; align-items: center; gap: 6px; }
.qt-terms { white-space: pre-line; color: var(--ink-2); font-size: 13.5px; }

/* ---------------------------------------------------------------- returns */
.rt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.rt-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.rt-photo img { width: 100%; height: 100%; object-fit: cover; }
.rt-photo:hover { border-color: var(--brand); }
.rt-reason { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.rt-reason-title { font-weight: 700; }
.rt-reason-text { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- tickets */
.tk-unread td:first-child { box-shadow: inset 3px 0 0 var(--tape); }
.tk-unread .cell-title { font-weight: 750; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tk-thread { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.tk-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; max-width: 760px; }
.tk-msg.is-staff { grid-template-columns: minmax(0, 1fr) 36px; margin-left: auto; }
.tk-msg.is-staff .avatar { order: 2; background: var(--brand); color: var(--brand-ink); }
.tk-msg .avatar { width: 36px; height: 36px; }
.tk-bubble { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tk-msg.is-staff .tk-bubble { border-radius: 14px 4px 14px 14px; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.tk-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.tk-meta strong { color: var(--ink); font-size: 13.5px; }
.tk-msg.is-staff .tk-meta { justify-content: flex-end; }
.tk-body { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); line-height: 1.55; }
.tk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none !important; }
.tk-file:hover { border-color: var(--line-strong); color: var(--ink); }
.tk-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tk-reply { border-top: 1px solid var(--line); padding: 16px 20px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.tk-reply .textarea { background: var(--surface); }
.tk-reply-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tk-reply-foot .grow { flex: 1 1 0; }
.tk-reply-foot .select { width: auto; flex: none; }
.tk-other { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 13px; text-decoration: none !important; padding: 2px 0; }
.tk-other:hover { color: var(--ink); }
.tk-other span.truncate { min-width: 0; }
.tk-attach { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tk-attach input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-attach-names { font-size: 12.5px; color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-day { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); font-weight: 650; }
.tk-day::before, .tk-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 1100px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .tk-reply-foot .select { flex: 1 1 100%; order: 3; }
  .tk-reply-foot .btn-primary { order: 4; flex: 1 1 100%; }
  .tk-thread { padding: 14px; gap: 12px; }
  .tk-msg, .tk-msg.is-staff { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .tk-msg .avatar { display: none; }
  .tk-msg.is-staff { margin-left: 24px; }
  .tk-msg:not(.is-staff) { margin-right: 24px; }
  .tk-reply { padding: 14px; }
}

/* ---------------------------------------------------------------- announcements & banners */
.ct-tabs { margin-bottom: 20px; }
.ct-ann-body { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.ct-reads { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 96px; }
.ct-reads .meter { width: 96px; height: 6px; }
.ct-banner-thumb { width: 120px; aspect-ratio: 12 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); flex: none; }
.ct-banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-preview { position: relative; display: flex; align-items: flex-end; aspect-ratio: 12 / 5; min-height: 160px; border-radius: var(--r-xl); overflow: hidden; background: var(--brand); color: #fff; padding: 22px; }
.ct-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55)); }
.ct-preview-body { position: relative; z-index: 1; min-width: 0; }
.ct-preview-title { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.ct-preview-sub { opacity: 0.9; margin-top: 4px; overflow-wrap: anywhere; }
.ct-preview-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.95); color: #131826; font-size: 13px; font-weight: 700; }
.ct-preview.is-empty .ct-preview-title:empty::before { content: attr(data-placeholder); opacity: 0.7; }
.ct-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-groups .check { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; background: var(--surface); }
.ct-groups .check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.ct-groups .check input { width: 15px; height: 15px; margin-top: 1px; }
.ct-ann-preview { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ct-ann-preview-title { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ct-ann-preview-body { margin-top: 6px; color: var(--ink-2); white-space: pre-line; font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .ct-banner-thumb { width: 96px; }
  .ct-preview { padding: 16px; min-height: 140px; }
  .ct-preview-title { font-size: 18px; }
}

/* shared */
.mx-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.mx-kv-compact .kv-row { padding: 7px 0; }
.mx-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.om-progress.rt-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.avatar.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.om-edit-foot { border-radius: 0; background: var(--brand-soft); border-top-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
