:root {
  color-scheme: light;
  --po-bg: #f5f7f6;
  --po-surface: #ffffff;
  --po-surface-2: #f0f4f2;
  --po-surface-3: #e8efec;
  --po-text: #17211e;
  --po-muted: #63706b;
  --po-line: #dbe3df;
  --po-line-strong: #c4d0cb;
  --po-teal: #066b59;
  --po-teal-hover: #055b4c;
  --po-teal-soft: #e0f2ed;
  --po-success: #16794f;
  --po-warning: #9a5b04;
  --po-warning-soft: #fff3d6;
  --po-danger: #b33434;
  --po-danger-soft: #fde9e8;
  --po-info: #2369a8;
  --po-shadow: 0 1px 2px rgba(20, 38, 32, .05), 0 12px 28px rgba(20, 38, 32, .06);
  --po-radius: 14px;
  --po-sidebar: 250px;
  --po-focus: 0 0 0 3px rgba(6, 107, 89, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --po-bg: #111714;
  --po-surface: #18201d;
  --po-surface-2: #202a26;
  --po-surface-3: #28332f;
  --po-text: #edf4f1;
  --po-muted: #a7b6b0;
  --po-line: #303d38;
  --po-line-strong: #45534e;
  --po-teal: #4bd0b1;
  --po-teal-hover: #6edbc1;
  --po-teal-soft: #173c33;
  --po-success: #65d59f;
  --po-warning: #efb552;
  --po-warning-soft: #3b2c15;
  --po-danger: #ff8c86;
  --po-danger-soft: #442423;
  --po-info: #8ac6ff;
  --po-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 18px 36px rgba(0, 0, 0, .18);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --po-bg: #111714;
    --po-surface: #18201d;
    --po-surface-2: #202a26;
    --po-surface-3: #28332f;
    --po-text: #edf4f1;
    --po-muted: #a7b6b0;
    --po-line: #303d38;
    --po-line-strong: #45534e;
    --po-teal: #4bd0b1;
    --po-teal-hover: #6edbc1;
    --po-teal-soft: #173c33;
    --po-success: #65d59f;
    --po-warning: #efb552;
    --po-warning-soft: #3b2c15;
    --po-danger: #ff8c86;
    --po-danger-soft: #442423;
    --po-info: #8ac6ff;
    --po-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 18px 36px rgba(0, 0, 0, .18);
  }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--po-text); background: var(--po-bg); font-size: 15px; line-height: 1.48; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input:not([type="checkbox"]):not([type="radio"]), textarea { min-height: 44px; }
button { color: inherit; }
a { color: var(--po-teal); }
:focus-visible { outline: 0; box-shadow: var(--po-focus); }
[hidden] { display: none !important; }
.po-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.po-skip { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--po-surface); color: var(--po-text); transform: translateY(-150%); }
.po-skip:focus { transform: translateY(0); }
.po-icon { width: 21px; height: 21px; display: block; flex: none; }

.po-auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: max(24px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); background: radial-gradient(circle at 10% 0, var(--po-teal-soft), transparent 34%), var(--po-bg); }
.po-auth-brand a, .po-sidebar-brand a { display: inline-flex; align-items: center; gap: 11px; color: var(--po-text); text-decoration: none; }
.po-auth-brand img { width: 112px; height: auto; }
.po-auth-brand span { padding-left: 12px; border-left: 1px solid var(--po-line-strong); font-weight: 650; }
.po-auth-layout { width: min(1040px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 84px; align-items: center; }
.po-auth-intro h1 { max-width: 690px; margin: 12px 0 18px; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.po-auth-intro > p { max-width: 600px; color: var(--po-muted); font-size: 1.16rem; }
.po-auth-intro ul { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.po-auth-intro li { display: flex; align-items: center; gap: 10px; }
.po-auth-intro li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--po-teal); }
.po-kicker { color: var(--po-teal); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.po-auth-card { padding: 38px; background: var(--po-surface); border: 1px solid var(--po-line); border-radius: 20px; box-shadow: var(--po-shadow); }
.po-auth-card h2 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -.025em; }
.po-auth-card p { margin: 0 0 26px; color: var(--po-muted); }
.po-form { display: grid; gap: 9px; }
.po-form label, .po-field-label { color: var(--po-text); font-size: .86rem; font-weight: 650; }
.po-form input:not([type="checkbox"]):not([type="radio"]), .po-form select, .po-form textarea, .po-field { width: 100%; border: 1px solid var(--po-line-strong); border-radius: 10px; background: var(--po-surface); color: var(--po-text); padding: 10px 12px; }
.po-form textarea { min-height: 106px; resize: vertical; }
.po-form input:not([type="checkbox"]):not([type="radio"]):focus, .po-form select:focus, .po-form textarea:focus, .po-field:focus { border-color: var(--po-teal); outline: none; box-shadow: var(--po-focus); }
.po-check { min-height: 44px; margin: 0; padding: 9px 0; display: flex; align-items: flex-start; gap: 10px; color: var(--po-text); cursor: pointer; }
.po-check > input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; border: 0; accent-color: var(--po-teal); }
.po-check > span { min-width: 0; line-height: 1.4; }
.po-check:focus-within { border-radius: 7px; box-shadow: var(--po-focus); }
.po-password-label { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.po-password-label a { font-size: .84rem; font-weight: 650; text-decoration: none; }
.po-form .po-button { margin-top: 14px; }
.po-form-inline { align-items: end; grid-template-columns: minmax(150px, 280px) auto; }
.po-form-inline > label { grid-column: 1 / -1; }
.po-form-message { min-height: 24px; margin: 14px 0 0 !important; color: var(--po-danger) !important; }
.po-auth-new { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--po-line); display: flex; justify-content: space-between; gap: 14px; color: var(--po-muted); font-size: .88rem; }
.po-auth-new a { font-weight: 700; text-decoration: none; }
.po-state-card { display: grid; gap: 12px; }
.po-state-card .po-button { width: 100%; }

.po-button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.po-button:active:not(:disabled) { transform: translateY(1px); }
.po-button:disabled { opacity: .52; cursor: not-allowed; }
.po-button-primary { background: var(--po-teal); color: #fff; }
html[data-theme="dark"] .po-button-primary { color: #08231c; }
.po-button-primary:hover:not(:disabled) { background: var(--po-teal-hover); }
.po-button-secondary { background: var(--po-surface); border-color: var(--po-line-strong); color: var(--po-text); }
.po-button-secondary:hover:not(:disabled) { background: var(--po-surface-2); }
.po-button-danger { color: var(--po-danger); background: var(--po-danger-soft); border-color: transparent; }
.po-button-quiet { background: transparent; border-color: transparent; color: var(--po-teal); }
.po-icon-button { position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px; display: inline-grid; place-items: center; background: transparent; cursor: pointer; }
.po-icon-button:hover { background: var(--po-surface-2); }
.po-rotate-down svg { transform: rotate(180deg); }

.po-workspace { min-height: 100vh; display: grid; grid-template-columns: var(--po-sidebar) minmax(0, 1fr); }
.po-sidebar { position: sticky; z-index: 30; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--po-line); background: var(--po-surface); transition: width .18s, transform .2s; }
.po-sidebar-brand { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 5px; }
.po-sidebar-brand img { width: 34px; height: 34px; }
.po-sidebar-brand strong, .po-sidebar-brand small { display: block; }
.po-sidebar-brand small { color: var(--po-muted); font-size: .72rem; }
.po-location-label { margin: 25px 7px 6px; color: var(--po-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.po-location-select { width: 100%; padding: 9px 10px; border: 1px solid var(--po-line); border-radius: 10px; background: var(--po-surface-2); color: var(--po-text); font-weight: 650; }
.po-navigation { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; margin-top: 19px; }
.po-nav-button { width: 100%; min-height: 44px; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; display: flex; align-items: center; gap: 12px; color: var(--po-muted); font-weight: 620; text-align: left; cursor: pointer; }
.po-nav-button:hover { color: var(--po-text); background: var(--po-surface-2); }
.po-nav-button[aria-current="page"] { color: var(--po-teal); background: var(--po-teal-soft); }
.po-sidebar-footer { padding-top: 12px; border-top: 1px solid var(--po-line); }
.po-account { padding: 5px 10px 10px; overflow: hidden; }
.po-account span, .po-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-account span { font-weight: 700; }
.po-account small { color: var(--po-muted); }
.po-workspace[data-collapsed="true"] { --po-sidebar: 78px; }
.po-workspace[data-collapsed="true"] .po-sidebar-brand span,
.po-workspace[data-collapsed="true"] .po-location-label,
.po-workspace[data-collapsed="true"] .po-location-select,
.po-workspace[data-collapsed="true"] .po-nav-button > span:last-child,
.po-workspace[data-collapsed="true"] .po-account { display: none; }
.po-workspace[data-collapsed="true"] .po-nav-button { justify-content: center; }

.po-shell { min-width: 0; }
body.po-terminal-mode .po-sidebar,
body.po-terminal-mode .po-topbar,
body.po-terminal-mode .po-mobile-navigation { display: none; }
body.po-terminal-mode .po-workspace { display: block; }
body.po-terminal-mode .po-main { max-width: none; min-height: 100vh; padding: 18px; }
body.po-terminal-mode .po-orders-layout { grid-template-columns: minmax(360px, .7fr) minmax(480px, 1.3fr); }
.po-topbar { position: sticky; z-index: 20; top: 0; min-height: 76px; padding: 12px clamp(18px, 3vw, 42px); display: flex; justify-content: space-between; align-items: center; gap: 24px; background: color-mix(in srgb, var(--po-bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--po-line) 70%, transparent); }
.po-topbar-start, .po-topbar-actions { display: flex; align-items: center; gap: 13px; }
.po-topbar h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.po-breadcrumb { margin: 0; color: var(--po-muted); font-size: .73rem; }
.po-connectivity, .po-status-control { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--po-line); background: var(--po-surface); color: var(--po-muted); font-size: .82rem; font-weight: 650; }
.po-status-control { cursor: pointer; color: var(--po-text); }
.po-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--po-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--po-success) 15%, transparent); }
[data-tone="warning"] .po-dot { background: var(--po-warning); box-shadow: 0 0 0 3px color-mix(in srgb, var(--po-warning) 15%, transparent); }
[data-tone="review"] .po-dot, [data-tone="neutral"] .po-dot { background: var(--po-muted); box-shadow: none; }
.po-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 1px 5px; border-radius: 99px; background: var(--po-danger); color: #fff; font-size: .68rem; font-weight: 800; }
.po-theme-control select { min-height: 38px; padding: 7px 28px 7px 10px; border: 1px solid var(--po-line); border-radius: 9px; background: var(--po-surface); color: var(--po-text); }
.po-main { width: 100%; max-width: 1640px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 42px) 64px; }
.po-view { min-height: calc(100vh - 171px); }
.po-mobile-only, .po-mobile-navigation { display: none; }

.po-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.po-page-head h2 { margin: 5px 0 3px; font-size: clamp(1.6rem, 2.2vw, 2.25rem); letter-spacing: -.035em; }
.po-page-head p { margin: 0; max-width: 700px; color: var(--po-muted); }
.po-page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.po-grid { display: grid; gap: 18px; }
.po-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.po-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.po-card { min-width: 0; padding: 20px; border: 1px solid var(--po-line); border-radius: var(--po-radius); background: var(--po-surface); box-shadow: 0 1px 2px rgba(20, 38, 32, .025); }
.po-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.po-card-header h3 { margin: 0; font-size: 1.02rem; }
.po-card-header p { margin: 4px 0 0; color: var(--po-muted); font-size: .86rem; }
.po-metric { padding: 18px; }
.po-metric > span { color: var(--po-muted); font-size: .78rem; font-weight: 650; }
.po-metric strong { display: block; margin-top: 10px; font-size: 1.65rem; letter-spacing: -.035em; }
.po-metric small { color: var(--po-muted); }
.po-marketing-plan { display: flex; min-height: 230px; flex-direction: column; }
.po-marketing-plan.is-selected { border-color: var(--po-teal); box-shadow: 0 0 0 1px var(--po-teal-soft); }
.po-marketing-plan .po-button { margin-top: auto; align-self: flex-start; }
.po-plan-price { margin: 8px 0 20px; color: var(--po-muted); }
.po-plan-price strong { display: block; color: var(--po-text); font-size: 1.25rem; }
.po-status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 9px; border-radius: 99px; background: var(--po-surface-2); color: var(--po-muted); font-size: .74rem; font-weight: 750; }
.po-status-pill[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.po-status-pill[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.po-status-pill[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }
.po-action-list, .po-checklist, .po-plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.po-action-row { width: 100%; min-height: 54px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--po-line); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; cursor: pointer; }
.po-action-row:last-child { border-bottom: 0; }
.po-action-row strong, .po-action-row small { display: block; }
.po-action-row small { margin-top: 2px; color: var(--po-muted); }
.po-action-row:hover strong { color: var(--po-teal); }
.po-readiness-list .po-action-row { flex-wrap: wrap; }
.po-readiness-list .po-action-row > span:first-child { min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.po-readiness-list .po-action-row > .po-button { margin-left: auto; }
.po-checklist li { min-height: 44px; display: flex; gap: 11px; align-items: center; }
.po-checkmark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--po-surface-2); color: var(--po-muted); }
.po-checkmark.done { background: var(--po-teal-soft); color: var(--po-success); }

.po-orders-layout { display: grid; grid-template-columns: minmax(440px, .95fr) minmax(420px, 1.15fr); gap: 18px; min-height: 640px; }
.po-order-list { padding: 0; overflow: hidden; }
.po-order-tabs { padding: 12px; display: flex; gap: 6px; border-bottom: 1px solid var(--po-line); overflow-x: auto; }
.po-order-tab { min-height: 38px; padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--po-muted); white-space: nowrap; cursor: pointer; }
.po-order-tab[aria-selected="true"] { background: var(--po-teal-soft); color: var(--po-teal); font-weight: 700; }
.po-order-cards { max-height: 690px; overflow-y: auto; }
.po-order-card { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--po-line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.po-order-card:hover, .po-order-card[aria-current="true"] { background: var(--po-surface-2); }
.po-order-card-head, .po-order-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.po-order-card strong { font-size: 1rem; }
.po-order-card-meta { margin-top: 9px; color: var(--po-muted); font-size: .8rem; }
.po-order-detail { position: sticky; top: 100px; align-self: start; }
.po-order-detail .po-card-header { flex-wrap: wrap; }
.po-order-detail .po-card-header > div { min-width: 0; flex: 1 1 200px; }
.po-order-detail h3 { font-size: 1.45rem; margin: 0; overflow-wrap: anywhere; }
.po-order-card-head { flex-wrap: wrap; }
.po-order-card-head strong { min-width: 0; overflow-wrap: anywhere; }
.po-order-items { margin: 18px 0; padding: 0; list-style: none; border-top: 1px solid var(--po-line); }
.po-order-item { padding: 14px 0; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; border-bottom: 1px solid var(--po-line); }
.po-order-item p, .po-order-item small { margin: 0; }
.po-order-item small { display: block; color: var(--po-muted); }
.po-order-note { padding: 13px; border-radius: 10px; background: var(--po-warning-soft); color: var(--po-text); }
.po-order-actions { margin-top: 18px; display: flex; gap: 9px; flex-wrap: wrap; }

.po-catalog-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 10px; margin-bottom: 18px; }
.po-search { position: relative; }
.po-search .po-icon { position: absolute; left: 12px; top: 12px; color: var(--po-muted); }
.po-search input { width: 100%; padding: 10px 12px 10px 42px; border: 1px solid var(--po-line); border-radius: 10px; background: var(--po-surface); color: var(--po-text); }
.po-address-suggestions { position: relative; z-index: 4; display: grid; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-surface); box-shadow: var(--po-shadow); overflow: hidden; }
.po-address-suggestions[hidden] { display: none; }
.po-address-suggestions button { min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--po-line); background: transparent; color: var(--po-text); text-align: left; cursor: pointer; }
.po-address-suggestions button:last-child { border-bottom: 0; }
.po-address-suggestions button:hover, .po-address-suggestions button:focus-visible { background: var(--po-teal-soft); }
.po-category-section + .po-category-section { margin-top: 18px; }
.po-category-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.po-category-header h3 { margin: 0; font-size: 1rem; }
.po-product-list { border: 1px solid var(--po-line); border-radius: 12px; overflow: hidden; background: var(--po-surface); }
.po-product-row { min-height: 82px; padding: 12px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--po-line); }
.po-product-row:last-child { border-bottom: 0; }
.po-product-image { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; background: var(--po-surface-2); display: grid; place-items: center; color: var(--po-muted); overflow: hidden; position: relative; }
.po-product-image img { width: 100%; height: 100%; object-fit: cover; }
.po-product-review { position: absolute; inset: auto 3px 3px; padding: 2px 4px; border-radius: 4px; background: rgba(17,23,20,.86); color: #fff; font-size: .58rem; line-height: 1.2; text-align: center; }
.po-product-copy { min-width: 0; }
.po-product-copy strong, .po-product-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-product-copy span { color: var(--po-muted); font-size: .83rem; }
.po-product-price { font-weight: 750; }
.po-catalog-secondary-actions { margin: -8px 0 18px; display: flex; gap: 9px; flex-wrap: wrap; }
.po-catalog-first-run { margin-top: 8px; }
.po-catalog-first-run .po-library-pack-grid { grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)); }
.po-library-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.po-library-choice, .po-library-pack { min-height: 112px; padding: 16px; border: 1px solid var(--po-line); border-radius: 13px; background: var(--po-surface); color: var(--po-text); display: grid; align-content: start; gap: 7px; text-align: left; cursor: pointer; }
.po-library-choice:hover, .po-library-choice:focus-visible, .po-library-pack:hover, .po-library-pack:focus-visible { border-color: var(--po-teal); box-shadow: 0 0 0 2px var(--po-teal-soft); outline: none; }
.po-library-choice .po-icon { color: var(--po-teal); }
.po-library-choice span, .po-library-pack span { color: var(--po-muted); font-size: .82rem; }
.po-library-choice-primary { position: relative; border: 2px solid var(--po-teal); background: linear-gradient(145deg, var(--po-teal-soft), var(--po-surface)); box-shadow: 0 8px 24px rgba(6,107,89,.12); }
.po-library-choice-primary strong { font-size: 1.04rem; }
.po-library-choice-primary .po-recommended-badge { justify-self: start; padding: 4px 8px; border-radius: 99px; background: var(--po-teal); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.po-library-pack[aria-pressed="true"] { border-color: var(--po-teal); background: var(--po-teal-soft); }
.po-empty-category-management { margin-top: 18px; }
.po-inactive-catalog-management { margin-top: 24px; }
.po-empty-category-list { display: grid; gap: 8px; }
.po-empty-category-row { min-height: 58px; padding: 10px 12px; border: 1px solid var(--po-line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.po-empty-category-row strong, .po-empty-category-row span { display: block; }
.po-empty-category-row span { margin-top: 2px; color: var(--po-muted); font-size: .78rem; }
.po-library-verticals { margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.po-library-chip { min-height: 44px; padding: 8px 13px; border: 1px solid var(--po-line); border-radius: 99px; background: var(--po-surface); color: var(--po-text); cursor: pointer; }
.po-library-chip[aria-pressed="true"] { border-color: var(--po-teal); background: var(--po-teal-soft); color: var(--po-teal); font-weight: 700; }
.po-library-search { display: block; margin: 22px 0 15px; }
.po-library-results { display: grid; gap: 14px; }
.po-library-category { padding: 16px; border: 1px solid var(--po-line); border-radius: 14px; background: var(--po-surface); }
.po-library-category > header { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.po-library-category h3, .po-library-category header span { margin: 0; }
.po-library-category header span { color: var(--po-muted); font-size: .78rem; }
.po-library-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.po-library-item { min-height: 54px; padding: 10px; border: 1px solid var(--po-line); border-radius: 10px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.po-library-item:has(input:checked) { border-color: var(--po-teal); background: var(--po-teal-soft); }
.po-library-item input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--po-teal); }
.po-library-item strong, .po-library-item small { display: block; }
.po-library-item small { margin-top: 2px; color: var(--po-muted); }
.po-library-selection-tray { position: sticky; z-index: 8; bottom: 14px; margin-top: 18px; padding: 13px 15px; border: 1px solid var(--po-line-strong); border-radius: 14px; background: color-mix(in srgb, var(--po-surface) 96%, transparent); box-shadow: var(--po-shadow); backdrop-filter: blur(14px); display: flex; align-items: center; gap: 12px; }
.po-library-selection-tray > span { flex: 1; color: var(--po-muted); }
.po-library-bulk-list { display: grid; gap: 10px; }
.po-library-bulk-row { padding: 14px; border: 1px solid var(--po-line); border-radius: 13px; background: var(--po-surface); display: grid; grid-template-columns: 32px minmax(130px, .7fr) minmax(180px, 1fr) minmax(130px, .55fr) minmax(130px, .55fr) minmax(170px, .7fr) auto; gap: 10px; align-items: end; }
.po-library-bulk-row label { display: grid; gap: 5px; color: var(--po-muted); font-size: .77rem; }
.po-library-row-number { align-self: center; color: var(--po-muted); font-weight: 750; }
.po-library-description { grid-column: 2 / -2; }
.po-library-description textarea { min-height: 70px; resize: vertical; }
.po-library-preview { margin-top: 16px; }
.po-library-error-summary { margin-top: 10px; padding: 10px; border-left: 3px solid var(--po-danger); background: var(--po-danger-soft); }
.po-library-error-summary ul { margin-bottom: 0; }
.po-import-source-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); gap: 18px; }
.po-import-source-grid .po-media-drop { align-content: center; gap: 7px; }
.po-import-source-grid .po-media-drop span { color: var(--po-muted); }
.po-import-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.po-import-summary div { min-width: 0; }
.po-import-summary small, .po-import-summary strong { display: block; }
.po-import-summary small { color: var(--po-muted); }
.po-import-summary strong { margin-top: 5px; font-size: 1.25rem; }
.po-import-pagination { margin: 14px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.po-import-table { max-height: 58vh; }
.po-import-table th { position: sticky; z-index: 2; top: 0; background: var(--po-surface); }
.po-import-table input, .po-import-table select { min-width: 130px; }
.po-import-table td:nth-child(3) { min-width: 220px; }
.po-import-table td small { display: block; max-width: 260px; margin-top: 4px; color: var(--po-danger); }
.po-import-row-invalid { background: var(--po-danger-soft); }
.po-segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--po-surface-2); }
.po-segmented button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.po-segmented button[aria-pressed="true"] { background: var(--po-surface); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

.po-hours-table { display: grid; gap: 8px; }
.po-hours-row { min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 120px 110px minmax(280px, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--po-line); border-radius: 11px; background: var(--po-surface); }
.po-hours-intervals { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.po-hours-interval { display: inline-flex; align-items: center; gap: 6px; }
.po-hours-row input[type="time"] { width: 116px; padding: 8px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-surface); color: var(--po-text); }
.po-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.po-switch input { width: 42px; height: 24px; appearance: none; border-radius: 99px; background: var(--po-line-strong); position: relative; transition: background .15s; }
.po-switch input::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.po-switch input:checked { background: var(--po-teal); }
.po-switch input:checked::after { transform: translateX(18px); }

.po-profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.po-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.po-form-group { display: grid; gap: 6px; }
.po-form-group-full { grid-column: 1 / -1; }
.po-field-help { min-height: 20px; color: var(--po-muted); font-size: .77rem; }
.po-media-drop { min-height: 170px; padding: 20px; border: 1px dashed var(--po-line-strong); border-radius: 12px; display: grid; place-items: center; text-align: center; background: var(--po-surface-2); cursor: pointer; }
.po-media-drop:hover { border-color: var(--po-teal); }
.po-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.po-media-tile { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--po-surface-2); overflow: hidden; position: relative; }
.po-media-tile img { width: 100%; height: 100%; object-fit: cover; }
.po-media-actions { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.po-media-tile .po-media-actions button { position: static; background: rgba(17,23,20,.82); color: #fff; }

.po-table-wrap { overflow-x: auto; border: 1px solid var(--po-line); border-radius: 12px; }
.po-table { width: 100%; border-collapse: collapse; background: var(--po-surface); }
.po-table th, .po-table td { padding: 13px 14px; border-bottom: 1px solid var(--po-line); text-align: left; vertical-align: middle; }
.po-table th { color: var(--po-muted); font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
.po-table tr:last-child td { border-bottom: 0; }
.po-table-note { display: block; margin-top: 4px; color: var(--po-muted); font-size: .76rem; }

.po-integration-list { display: grid; gap: 10px; }
.po-integration-card { padding: 16px; border: 1px solid var(--po-line); border-radius: 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "logo summary status" "details details details" "actions actions actions"; align-items: start; gap: 13px; }
.po-integration-logo { grid-area: logo; width: 44px; height: 44px; border-radius: 10px; background: var(--po-surface-2); display: grid; place-items: center; }
.po-integration-summary { grid-area: summary; min-width: 0; align-self: center; }
.po-integration-summary strong, .po-integration-summary small { display: block; overflow-wrap: anywhere; }
.po-integration-summary small { margin-top: 3px; color: var(--po-muted); }
.po-integration-status { grid-area: status; align-self: center; justify-self: end; }
.po-integration-details { grid-area: details; min-width: 0; display: grid; gap: 10px; }
.po-integration-details > :first-child { margin-top: 0; }
.po-integration-details > :last-child { margin-bottom: 0; }
.po-integration-actions { grid-area: actions; min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.po-integration-actions:empty, .po-integration-details:empty { display: none; }
.po-integration-actions .po-button { margin: 0; }
.po-device-administration, .po-external-pos { width: 100%; border-top: 1px solid var(--po-line); }
.po-device-administration summary, .po-external-pos summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--po-muted); font-weight: 700; }
.po-device-administration[open] summary, .po-external-pos[open] summary { color: var(--po-text); }
.po-device-administration .po-integration-actions { margin-top: 8px; }
.po-installation-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.po-installation-step { min-height: 44px; padding: 9px 11px; border: 1px solid var(--po-line); border-radius: 10px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; background: var(--po-surface-2); }
.po-installation-step::before { content: ""; width: 10px; height: 10px; margin: 6px 0 0 4px; border: 2px solid var(--po-line-strong); border-radius: 50%; }
.po-installation-step[data-state="complete"]::before { border-color: var(--po-success); background: var(--po-success); }
.po-installation-step[data-state="current"] { border-color: color-mix(in srgb, var(--po-teal) 52%, var(--po-line)); background: var(--po-teal-soft); }
.po-installation-step[data-state="current"]::before { border-color: var(--po-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--po-teal) 18%, transparent); }
.po-installation-step strong, .po-installation-step small { display: block; }
.po-installation-step small { color: var(--po-muted); }
.po-printer-welcome { padding: 24px; margin-block: 16px; border: 1px solid var(--po-line); border-radius: 16px; background: var(--po-surface-2); }
.po-printer-welcome h3 { margin-top: 0; }
.po-printer-welcome > .po-button { min-height: 44px; }
.po-printer-advanced > summary, .po-terminal-status-details > summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-weight: 600; }
.po-printer-workspace [data-printer-picker] > h3 { margin-top: 24px; }
[data-printer-search-status][aria-busy="true"] { display: flex; align-items: center; gap: 10px; }
[data-printer-search-status][aria-busy="true"]::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid var(--po-line); border-top-color: var(--po-teal); border-radius: 50%; animation: po-printer-search-spin 900ms linear infinite; }
@keyframes po-printer-search-spin { to { transform: rotate(360deg); } }
.po-terminal-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 12px; flex-basis: 100%; width: 100%; }
.po-terminal-status-grid > section { padding: 14px 16px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-surface); min-width: 0; overflow-wrap: anywhere; }
.po-terminal-status-label { display: block; color: var(--po-muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.po-terminal-status-grid p { margin: 0 0 4px; font-weight: 600; }
.po-terminal-status-grid small { color: var(--po-muted); }
.po-terminal-status-details { flex-basis: 100%; width: 100%; }
.po-terminal-status-grid [data-tone="warning"] { border-inline-start: 4px solid var(--po-warning); }
.po-terminal-status-grid [data-tone="danger"] { border-inline-start: 4px solid var(--po-danger); }
@media (max-width: 700px) { .po-terminal-status-grid { grid-template-columns: 1fr; gap: 8px; } .po-printer-welcome { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { [data-printer-search-status][aria-busy="true"]::before { animation: none; } }
.po-technical { margin-top: 18px; border-top: 1px solid var(--po-line); }
.po-technical summary { min-height: 44px; padding: 12px 0; display: flex; align-items: center; cursor: pointer; color: var(--po-muted); font-weight: 650; }
.po-technical pre { max-width: 100%; overflow: auto; padding: 12px; border-radius: 9px; background: var(--po-bg); color: var(--po-muted); font-size: .76rem; }

.po-empty, .po-error, .po-loading { min-height: 310px; padding: 36px; border: 1px solid var(--po-line); border-radius: var(--po-radius); background: var(--po-surface); display: grid; place-items: center; text-align: center; }
.po-empty > div, .po-error > div { max-width: 480px; }
.po-empty .po-icon, .po-error .po-icon { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--po-muted); }
.po-empty h3, .po-error h3 { margin: 0 0 7px; }
.po-empty p, .po-error p { margin: 0 0 18px; color: var(--po-muted); }
.po-skeleton-grid { width: 100%; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-skeleton { min-height: 130px; border-radius: 12px; background: linear-gradient(90deg, var(--po-surface-2), var(--po-surface-3), var(--po-surface-2)); background-size: 220% 100%; animation: po-shimmer 1.2s infinite linear; }
@keyframes po-shimmer { to { background-position: -220% 0; } }

.po-banner { margin: 12px clamp(18px, 3vw, 42px) 0; min-height: 54px; padding: 10px 14px; border-radius: 11px; display: flex; align-items: center; gap: 11px; }
.po-banner > div { display: grid; flex: 1; }
.po-banner > div span { font-size: .82rem; }
.po-banner button { border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.po-banner-warning { background: var(--po-warning-soft); color: var(--po-warning); }
.po-toast-region { position: fixed; z-index: 100; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 36px)); display: grid; gap: 8px; }
.po-toast { padding: 13px 15px; border: 1px solid var(--po-line); border-radius: 11px; background: var(--po-surface); box-shadow: var(--po-shadow); }
.po-toast[data-tone="error"] { border-color: color-mix(in srgb, var(--po-danger) 45%, var(--po-line)); }

.po-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(90vh, 900px); padding: 0; border: 1px solid var(--po-line); border-radius: 18px; background: var(--po-surface); color: var(--po-text); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.po-dialog::backdrop { background: rgba(12, 20, 17, .5); backdrop-filter: blur(3px); }
.po-dialog-frame { margin: 0; }
.po-dialog header { min-height: 74px; padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--po-line); }
.po-dialog h2 { margin: 3px 0 0; font-size: 1.3rem; }
.po-dialog-content { max-height: calc(90vh - 160px); padding: 20px; overflow-y: auto; }
.po-dialog footer { min-height: 70px; padding: 13px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--po-line); }
.po-dialog footer:empty { display: none; }
.po-dialog.po-dialog-checkout { width: min(980px, calc(100vw - 32px)); }
.po-dialog.po-dialog-checkout .po-dialog-content { max-height: calc(92vh - 76px); padding: 0; }

.po-checkout-shell { display: grid; grid-template-columns: minmax(300px, .84fr) minmax(380px, 1.16fr); background: var(--po-surface); }
.po-checkout-plan { grid-row: 1 / span 4; padding: 34px; color: #f4fbf8; background: #103d34; }
.po-checkout-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 62px; }
.po-checkout-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 11px; font-size: 1.15rem; font-weight: 800; }
.po-checkout-brand p, .po-checkout-brand small { margin: 0; display: block; }
.po-checkout-brand strong { font-size: 1.05rem; letter-spacing: -.015em; }
.po-checkout-brand small { color: rgba(244,251,248,.7); font-size: .76rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.po-checkout-title-row, .po-upcoming-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.po-checkout-title-row h3 { margin: 4px 0 0; font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.po-checkout-plan .po-kicker { color: #7fe0c7; }
.po-checkout-trial { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; white-space: nowrap; color: #d8fff4; background: rgba(255,255,255,.08); font-size: .75rem; font-weight: 750; }
.po-checkout-lead { margin: 22px 0; color: rgba(244,251,248,.74); }
.po-checkout-price { display: block; line-height: 1.55; }
.po-checkout-quantity { margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.po-checkout-quantity span { color: rgba(244,251,248,.74); }

.po-checkout-customer, .po-checkout-summary { padding: 28px 32px 0; }
.po-checkout-customer h3, .po-checkout-summary h3 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -.025em; }
.po-checkout-customer-types { margin: 18px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po-checkout-customer-types label { min-height: 86px; padding: 14px; display: flex; gap: 11px; border: 1px solid var(--po-line-strong); border-radius: 12px; cursor: pointer; background: var(--po-surface); }
.po-checkout-customer-types label:has(input:checked) { border-color: var(--po-teal); background: var(--po-teal-soft); box-shadow: inset 0 0 0 1px var(--po-teal); }
.po-checkout-customer-types label:focus-within { box-shadow: var(--po-focus); }
.po-checkout-customer-types input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--po-teal); flex: none; }
.po-checkout-customer-types strong, .po-checkout-customer-types small { display: block; }
.po-checkout-customer-types small { margin-top: 4px; color: var(--po-muted); font-size: .78rem; line-height: 1.35; }
.po-checkout-guidance { margin: 11px 0 0; padding: 11px 13px; border-left: 3px solid var(--po-teal); border-radius: 0 9px 9px 0; color: var(--po-muted); background: var(--po-surface-2); font-size: .8rem; }

.po-checkout-summary { padding-bottom: 12px; }
.po-checkout-summary dl, .po-upcoming-invoice dl { margin: 16px 0 0; }
.po-checkout-summary dl > div, .po-upcoming-invoice dl > div { padding: 10px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--po-line); }
.po-checkout-summary dt small { max-width: 270px; margin-top: 2px; display: block; color: var(--po-muted); font-size: .73rem; font-weight: 450; }
.po-checkout-summary dd, .po-upcoming-invoice dd { margin: 0; text-align: right; font-weight: 700; }
.po-checkout-total { font-size: 1.04rem; }
.po-checkout-today { margin-top: 14px; padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 12px; background: var(--po-surface-2); }
.po-checkout-today strong { font-size: 1.35rem; letter-spacing: -.035em; }
.po-checkout-today small { color: var(--po-muted); }
.po-checkout-terms { margin: 14px 0 0; color: var(--po-muted); font-size: .8rem; }
.po-checkout-trust { margin: 13px 0 0; display: flex; align-items: flex-start; gap: 10px; }
.po-checkout-trust > span:first-child { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--po-teal); background: var(--po-teal-soft); font-weight: 800; }
.po-checkout-trust strong, .po-checkout-trust small { display: block; }
.po-checkout-trust small { color: var(--po-muted); font-size: .75rem; }
.po-checkout-cta { margin: 8px 32px 28px; min-height: 50px; }
.po-checkout-blocked { margin: 8px 32px 0; padding: 12px 14px; border: 1px solid var(--po-danger); border-radius: 10px; color: var(--po-danger); background: var(--po-danger-soft); }

.po-billing-notice { margin-bottom: 18px; padding: 15px 17px; border: 1px solid var(--po-line-strong); border-radius: var(--po-radius); background: var(--po-surface); }
.po-billing-notice[data-tone="success"] { border-color: var(--po-success); background: var(--po-teal-soft); }
.po-billing-notice p { margin: 4px 0 0; color: var(--po-muted); }
.po-upcoming-invoice { margin-top: 20px; padding: 18px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-surface-2); }
.po-upcoming-heading h4 { margin: 3px 0 0; font-size: 1.08rem; }
.po-upcoming-invoice > small { color: var(--po-muted); }
.po-upcoming-due { font-size: 1.04rem; }

@media (max-width: 1100px) {
  :root { --po-sidebar: 220px; }
  .po-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-orders-layout { grid-template-columns: minmax(330px, .85fr) minmax(380px, 1.15fr); }
  .po-profile-grid { grid-template-columns: 1fr; }
  .po-auth-layout { gap: 44px; }
  .po-library-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-catalog-first-run .po-library-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-catalog-first-run .po-library-choice-primary { grid-column: 1 / -1; }
  .po-library-bulk-row { grid-template-columns: 32px repeat(2, minmax(0, 1fr)); }
  .po-library-description { grid-column: 2 / -1; }
  .po-import-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .po-workspace { display: block; }
  .po-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(300px, 88vw); box-shadow: var(--po-shadow); }
  .po-sidebar[data-open="true"] { transform: translateX(0); }
  .po-mobile-only { display: inline-grid; }
  #partner-sidebar-collapse { display: none; }
  .po-topbar { min-height: 70px; padding: 10px 18px; }
  .po-main { padding: 22px 18px 92px; }
  .po-orders-layout { grid-template-columns: 1fr; }
  .po-order-detail { position: static; }
  .po-mobile-navigation { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; min-height: 70px; padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--po-line); background: color-mix(in srgb, var(--po-surface) 94%, transparent); backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(5, 1fr); }
  .po-mobile-navigation .po-nav-button { min-width: 0; padding: 5px; flex-direction: column; justify-content: center; gap: 2px; font-size: .67rem; }
  .po-mobile-navigation .po-icon { width: 20px; height: 20px; }
  .po-auth-layout { grid-template-columns: 1fr; gap: 34px; padding: 50px 0; }
  .po-auth-intro h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
  .po-dialog.po-dialog-checkout { width: min(680px, calc(100vw - 24px)); }
  .po-checkout-shell { grid-template-columns: 1fr; }
  .po-checkout-plan { grid-row: auto; padding: 26px 28px; }
  .po-checkout-brand { margin-bottom: 28px; }
  .po-checkout-customer, .po-checkout-summary { padding-inline: 28px; }
  .po-checkout-cta { margin-inline: 28px; }
  .po-checkout-blocked { margin-inline: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .po-auth { padding: 18px; }
  .po-auth-intro { display: none; }
  .po-auth-layout { display: block; margin: auto; }
  .po-auth-card { padding: 26px 20px; }
  .po-auth-new { display: grid; }
  .po-connectivity, .po-theme-control { display: none; }
  .po-topbar-actions > [data-action="notifications"] { display: none; }
  .po-topbar { gap: 8px; }
  .po-topbar-start, .po-topbar-start > div { min-width: 0; }
  .po-topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .po-status-control { max-width: 150px; }
  .po-status-control span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .po-topbar-actions { gap: 5px; }
  .po-page-head { display: grid; align-items: start; }
  .po-page-actions { justify-content: flex-start; }
  .po-grid-2, .po-grid-3, .po-grid-4 { grid-template-columns: 1fr; }
  .po-metrics-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-card { padding: 16px; }
  .po-catalog-toolbar { grid-template-columns: 1fr auto; }
  .po-catalog-toolbar .po-button-secondary { display: none; }
  .po-product-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .po-order-tabs { flex-wrap: wrap; overflow-x: visible; }
  .po-order-tab { flex: 1 1 calc(33.333% - 6px); }
  .po-product-row > .po-page-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; flex-wrap: nowrap; }
  .po-product-image { width: 52px; height: 52px; }
  .po-hours-row { grid-template-columns: 1fr auto; }
  .po-hours-intervals { grid-column: 1 / -1; }
  .po-hours-row > .po-icon-button { grid-column: 2; grid-row: 2; }
  .po-form-grid { grid-template-columns: 1fr; }
  .po-form-inline { grid-template-columns: 1fr; }
  .po-integration-card { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "logo summary" "status status" "details details" "actions actions"; }
  .po-integration-status { justify-self: start; }
  .po-integration-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr; }
  .po-integration-actions .po-button { width: 100%; }
  .po-readiness-list .po-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .po-readiness-list .po-action-row > .po-button { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .po-form-group-full { grid-column: auto; }
  .po-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-library-pack-grid, .po-library-items { grid-template-columns: 1fr; }
  .po-catalog-first-run .po-library-pack-grid { grid-template-columns: 1fr; }
  .po-catalog-first-run .po-library-choice-primary { grid-column: auto; }
  .po-empty-category-row { align-items: stretch; flex-direction: column; }
  .po-empty-category-row .po-button { width: 100%; }
  .po-library-category > header { align-items: flex-start; flex-direction: column; }
  .po-library-selection-tray { bottom: 76px; align-items: stretch; flex-direction: column; }
  .po-library-selection-tray .po-page-actions { display: grid; }
  .po-library-bulk-row { grid-template-columns: 28px 1fr; }
  .po-library-bulk-row > label, .po-library-description { grid-column: 2; }
  .po-import-source-grid { grid-template-columns: 1fr; }
  .po-import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-import-pagination { align-items: stretch; flex-direction: column; }
  .po-table th, .po-table td { padding: 11px; }
  .po-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .po-dialog-content { max-height: calc(100vh - 160px); }
  .po-dialog.po-dialog-checkout { width: calc(100vw - 16px); }
  .po-dialog.po-dialog-checkout .po-dialog-content { max-height: calc(100vh - 82px); }
  .po-dialog-checkout header { min-height: 66px; padding: 12px 16px; }
  .po-checkout-plan, .po-checkout-customer, .po-checkout-summary { padding: 20px 18px; }
  .po-checkout-customer { padding-bottom: 0; }
  .po-checkout-summary { padding-top: 22px; }
  .po-checkout-brand { margin-bottom: 22px; }
  .po-checkout-title-row { align-items: center; }
  .po-checkout-customer-types { grid-template-columns: 1fr; }
  .po-checkout-customer-types label { min-height: 72px; }
  .po-checkout-summary dl > div { gap: 10px; }
  .po-checkout-summary dd { max-width: 42%; }
  .po-checkout-today { grid-template-columns: minmax(0, 1fr) auto; }
  .po-checkout-cta { position: sticky; bottom: 0; z-index: 1; margin: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-radius: 0; min-height: calc(56px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(16,61,52,.12); }
  .po-checkout-blocked { margin: 0 18px 12px; }
}

@media (max-width: 390px) {
  .po-topbar { padding-inline: 10px; }
  .po-main { padding-inline: 12px; }
  .po-topbar h1 { font-size: 1.15rem; }
  .po-breadcrumb { display: none; }
  .po-status-control { max-width: 132px; padding-inline: 8px; }
  .po-metrics-mobile { grid-template-columns: 1fr; }
}

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

@media print {
  .po-sidebar, .po-topbar, .po-mobile-navigation, .po-page-actions, .po-order-actions { display: none !important; }
  .po-workspace { display: block; }
  .po-main { max-width: none; padding: 0; }
  .po-card { box-shadow: none; }
}

.po-section-gap { margin-top: 18px; }
.po-image-crop { margin-top: 12px; display: grid; gap: 10px; }
.po-image-crop[hidden] { display: none; }
.po-image-crop img { width: min(100%, 420px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--po-line); }
.po-image-crop label { display: grid; gap: 6px; }
.po-modifier-group { margin-top: 14px; padding: 16px; border: 1px solid var(--po-line); border-radius: 14px; }
.po-modifier-options { display: grid; gap: 9px; margin-top: 12px; }
.po-modifier-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .35fr) 44px; gap: 9px; align-items: end; }
.po-modifier-option label { display: grid; gap: 6px; }
@media (max-width: 620px) { .po-modifier-option { grid-template-columns: minmax(0, 1fr) 44px; } .po-modifier-option label:nth-child(2) { grid-column: 1; } }
.po-support-thread { display: grid; gap: 12px; max-height: 45vh; overflow: auto; }
.po-support-thread article { max-width: 85%; padding: 12px 14px; border-radius: 14px; background: var(--po-surface-subtle); }
.po-support-thread article[data-sender="partner"] { justify-self: end; background: var(--po-accent-soft); }
.po-support-thread p { margin: 4px 0; white-space: pre-wrap; }
.po-support-thread time { color: var(--po-muted); font-size: .75rem; }

.po-manual-print-dialog { width: min(94vw, 720px); max-height: 92dvh; padding: 24px; border: 1px solid var(--po-border, #aaa); border-radius: 16px; }
.po-manual-print-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.po-manual-print-dialog iframe { width: 100%; height: min(55dvh, 560px); border: 1px solid #aaa; background: white; }
.po-manual-print-dialog .po-page-actions { margin-top: 16px; }

.po-print-queue-item { padding: 16px 0; border-bottom: 1px solid var(--po-line); }
.po-print-queue-item header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.po-print-queue-item p { overflow-wrap: anywhere; }
.po-print-queue-item .po-page-actions { flex-wrap: wrap; }
.po-print-queue-item button { min-height: 44px; }

/* PR 807 terminal workspace: the same design tokens in light and dark themes. */
.po-terminal-operations { display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:16px;margin-bottom:18px;border:1px solid var(--po-line);border-radius:14px;background:var(--po-surface); }
.po-terminal-operations p { margin:0;flex-basis:100%;overflow-wrap:anywhere; }
.po-terminal-operations small { color:var(--po-muted); }
.po-order-stale { padding:14px;margin:12px 0;border:1px solid var(--po-warning);border-radius:10px;background:var(--po-warning-soft);color:var(--po-warning);overflow-wrap:anywhere; }
.po-order-tabs { flex-wrap:wrap; }
.po-order-tab { min-height:44px;min-width:44px; }
.po-order-list > label { display:block;margin-bottom:8px; }
#partner-order-search { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--po-line);border-radius:10px;background:var(--po-surface);color:var(--po-text); }
.po-order-card p { margin:8px 0; }
.po-order-card .po-order-preview,.po-order-item p,.po-order-item small,.po-order-note p { white-space:normal;overflow-wrap:anywhere; }
.po-order-fulfillment { font-weight:750; }
.po-order-age { color:var(--po-muted);font-size:.85rem; }
.po-order-blocker { color:var(--po-warning);font-weight:700; }
fieldset.po-order-actions { padding:0;border:0;min-inline-size:0; }
fieldset.po-order-actions:disabled { opacity:.7; }
.po-order-tabs button:focus-visible,.po-order-card:focus-visible,.po-order-detail:focus-visible { outline:3px solid var(--po-accent,var(--po-success));outline-offset:3px; }
body.po-terminal-mode .po-order-item p { font-size:1.1rem; }
body.po-terminal-mode .po-order-item small { font-size:1rem;line-height:1.5; }
body.po-terminal-mode .po-order-detail { top:18px; }
@media (max-width:1000px) {
 .po-orders-layout,body.po-terminal-mode .po-orders-layout { grid-template-columns:minmax(0,1fr); }
 .po-order-detail,body.po-terminal-mode .po-order-detail { position:static; }
 body.po-terminal-mode .po-main { padding:12px; }
 .po-orders-layout > section { min-width:0; }
}
