:root {
  --ink: #18181b; --muted: #71717a; --paper: #fff; --line: #e4e4e7; --soft: #f4f4f5;
  --danger: #b42318; --success: #26714b; --warning: #9a6a17; --radius: 8px;
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 14px; color: var(--ink); background: var(--paper); font-synthesis: none;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-underline-offset: 3px; }
button, a { transition: background-color .15s, border-color .15s; }
:focus-visible { outline: 2px solid #71717a; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.8px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
h3 { font-size: 14px; font-weight: 600; }
.eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
code { padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
input, select, textarea { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #a1a1aa; }
input::placeholder, textarea::placeholder { color: #a1a1aa; }
input:disabled, input[readonly], select:disabled, textarea:disabled { background: #fafafa; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
input[type="file"] { font-size: 12px; border: 0; padding: 0; }
input::file-selector-button { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; background: #fff; color: var(--ink); margin-right: 10px; }
textarea { resize: vertical; line-height: 1.65; }
label { display: block; font-size: 13px; font-weight: 500; line-height: 1.6; }
.field input, .field select, .field textarea { margin-top: 7px; }
.field + .field { margin-top: 18px; }
.field-help, .helptext { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.field-error, .errorlist { color: var(--danger); font-size: 12px; line-height: 1.7; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 13px; line-height: 1.7; margin: 14px 0; }
.check-row label { font-weight: 400; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.small { font-size: 11px; }
.subline { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 4px; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.45; text-decoration: none; text-align: center; }
.button.primary { background: var(--ink); color: #fafafa; }
.button.primary:hover { background: #353538; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.secondary:hover { background: var(--soft); }
.button.small { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.button.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 20px; }
.filter-field { display: block; min-width: 180px; flex: 1 1 220px; color: var(--muted); font-size: 11px; font-weight: 500; }
.filter-field input, .filter-field select { display: block; margin-top: 6px; }
.filter-bar > .button, .filter-bar > a.button { flex: 0 0 auto; }
.text-link { font-size: 12px; font-weight: 500; }
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 19px 12px 16px; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.nav-label { margin: 32px 12px 9px; color: var(--muted); font-size: 11px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { padding: 10px 12px; border-radius: 6px; color: #52525b; font-size: 13px; text-decoration: none; }
.nav-item:hover { background: #fafafa; }
.nav-item[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.sidebar-bottom .button { justify-content: flex-start; padding-left: 0; }
.workspace { min-width: 0; padding: 0 28px 28px; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 65px; margin: 0 -28px 28px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.workspace-user { color: var(--muted); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.workspace-user a { display: inline-block; padding: 6px 0 6px 12px; color: inherit; }
.workspace-user a:hover, .workspace-user a[aria-current="page"] { color: var(--ink); }
.account-security-panel { max-width: 660px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-header p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 23px; margin-bottom: 20px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-heading p { margin-top: 6px; }
.notice { padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 12px; line-height: 1.8; margin-bottom: 18px; overflow-wrap: anywhere; }
.notice.success { background: #f0f9f4; border-color: #d4e9dd; color: var(--success); }
.notice.warning { background: #fffbeb; border-color: #f3e0b8; color: var(--warning); }
.notice.error { background: #fff6f5; border-color: #f1d3ce; color: var(--danger); }
.status { display: inline-block; width: fit-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fafafa; color: #52525b; font-size: 11px; line-height: 1.4; }
.status.active, .status.completed, .status.delivered, .status.verified { background: #f0f9f4; border-color: #d4e9dd; color: var(--success); }
.status.pending, .status.reserved, .status.unknown, .status.failed, .status.error { background: #fffbeb; border-color: #f3e0b8; color: var(--warning); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; min-width: 0; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 27px; letter-spacing: -.6px; font-weight: 600; margin: 12px 0 5px; overflow-wrap: anywhere; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; font-size: 12px; }
th { padding: 13px 15px; background: #fafafa; color: #52525b; font-size: 11px; font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafafa; }
.customer-table { min-width: 670px; }
.order-table { min-width: 1060px; }
.catalog-table { min-width: 850px; }
.catalog-sync-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.catalog-markup-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.catalog-markup-form .field { max-width: 300px; flex: 1 1 200px; }
.catalog-plan-form { min-width: 215px; max-width: 260px; }
.catalog-plan-form input[type="number"] { margin-top: 6px; }
.catalog-plan-form .check-row { margin: 9px 0; }
.asset-table { min-width: 1340px; }
.order-table th:last-child, .order-table td:last-child { position: sticky; right: 0; z-index: 1; background: #fff; min-width: 135px; box-shadow: -1px 0 0 var(--line); }
.order-table th:last-child { background: #fafafa; }
.asset-table th:first-child, .asset-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 145px; box-shadow: 1px 0 0 var(--line); }
.asset-table th:first-child { background: #fafafa; }
.scroll-hint { color: var(--muted); font-size: 11px; margin: 0 0 9px; }
.empty { padding: 44px 22px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.empty h2 { font-size: 15px; margin-bottom: 8px; }
.empty p { max-width: 450px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty .button { margin-top: 18px; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.definition-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.definition-grid dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.readiness-list { border-top: 1px solid var(--line); }
.readiness-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.readiness-row:last-child { border-bottom: 0; }
.readiness-row strong { display: block; font-size: 13px; font-weight: 500; }
.readiness-row .status { flex: 0 0 auto; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 23px 24px; border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; background: #a1a1aa; border-radius: 50%; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline p { font-size: 12px; line-height: 1.8; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; width: fit-content; max-width: 100%; margin-bottom: 23px; border-radius: 6px; background: var(--soft); }
.settings-tabs a { padding: 8px 12px; border-radius: 4px; color: var(--muted); font-size: 12px; text-decoration: none; }
.settings-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #00000012; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.settings-editor { min-width: 0; }
.step-heading { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; }
.step-number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 600; }
.step-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.upload-box { padding: 14px; margin-top: 7px; border: 1px dashed var(--line); border-radius: 6px; }
.upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.upload-status { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; margin-top: 9px; }
.advanced { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.advanced summary { cursor: pointer; font-size: 12px; font-weight: 500; }
.advanced .field { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .field + .field { margin-top: 0; }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0; }
.preview-column { min-width: 0; }
.preview-caption { font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.phone { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); }
.phone-header { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.phone-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.phone-header strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.phone-header small { color: var(--muted); font-size: 11px; }
.phone-chat { padding: 12px; }
.phone-message { border: 1px solid var(--line); border-radius: 7px; padding: 13px; background: #fff; font-size: 12px; line-height: 1.9; }
.phone-message img { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.phone-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.phone-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.phone-menu span { padding: 9px 5px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.phone-menu span:last-child { grid-column: 1 / -1; }
.phone-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 10px 7px; background: #fff; border-top: 1px solid var(--line); }
.phone-bottom span { padding: 9px 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; text-align: center; font-size: 11px; }
.preview-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 12px; }
.phone-message .preview-note:empty { display: none; }
.credentials { max-width: 820px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.login-page { min-height: 100vh; display: grid; align-items: center; justify-items: center; background: #fafafa; padding: 24px; }
.login-card { width: 100%; max-width: 390px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.login-card .brand { padding: 0; margin-bottom: 30px; }
.login-card h1 { font-size: 23px; }
.login-card > p { margin-top: 8px; margin-bottom: 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-card .button { margin-top: 22px; }
@media (min-width: 1500px) { .workspace { padding-left: 36px; padding-right: 36px; } .workspace-bar { margin-left: -36px; margin-right: -36px; padding-left: 36px; padding-right: 36px; } .settings-layout { grid-template-columns: minmax(0, 750px) 340px; } }
@media (max-width: 1100px) { .settings-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; } .workspace { padding-left: 22px; padding-right: 22px; } .workspace-bar { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; } .panel { padding: 20px; } }
@media (max-width: 950px) { .shell { grid-template-columns: 190px minmax(0, 1fr); } .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings-layout { grid-template-columns: 1fr; } .preview-column { max-width: 360px; } }
@media (max-width: 700px) {
  .shell { display: block; } .sidebar { position: static; height: auto; padding: 15px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; } .sidebar .brand small { display: none; } .nav-label, .sidebar-bottom { display: none; }
  .main-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 15px; gap: 4px; }
  .nav-item { padding: 9px 5px; font-size: 12px; text-align: center; } .workspace { padding: 0 17px 22px; }
  .workspace-bar { min-height: 51px; margin: 0 -17px 23px; padding: 12px 17px; gap: 10px; } .breadcrumb { gap: 8px; font-size: 11px; }
  .workspace-user { max-width: 120px; } h1 { font-size: 24px; } .page-header { flex-wrap: wrap; margin-bottom: 22px; }
  .page-header p { font-size: 12px; } .panel { padding: 18px; } .panel-heading { flex-wrap: wrap; }
  .definition-grid, .form-grid { grid-template-columns: 1fr; } .settings-layout { gap: 16px; } .settings-tabs { width: 100%; }
  .settings-tabs a { flex: 1; text-align: center; font-size: 11px; padding: 8px 5px; } .preview-column { width: 100%; margin: 0 auto; }
  .save-bar { flex-wrap: wrap; } .save-bar .button { width: 100%; } input, select, textarea { font-size: 16px; }
  .metric { padding: 16px; } .metric strong { font-size: 23px; } .asset-table th:first-child, .asset-table td:first-child { position: static; box-shadow: none; }
  .order-table th:last-child, .order-table td:last-child { position: static; box-shadow: none; }
  .filter-bar { align-items: stretch; } .filter-field { flex-basis: 100%; } .filter-bar > .button, .filter-bar > a.button { flex: 1 1 auto; }
  .login-card { padding: 26px; } .login-page { padding: 18px; }
}
@media (pointer: coarse) { .button, .nav-item, .settings-tabs a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { button, a { transition: none; } }
