:root {
  color-scheme: light;
  --ink: #102037;
  --ink-soft: #31415a;
  --muted: #718096;
  --canvas: #f4f6f8;
  --paper: #ffffff;
  --navy: #0b172a;
  --navy-2: #15243b;
  --blue: #176bce;
  --blue-soft: #eaf3ff;
  --green: #17835b;
  --green-soft: #e7f7f0;
  --amber: #b56a16;
  --amber-soft: #fff4df;
  --red: #b94043;
  --red-soft: #ffeded;
  --violet: #7254c7;
  --violet-soft: #f0edff;
  --cyan: #167b91;
  --cyan-soft: #e5f7fa;
  --line: #e2e7ed;
  --line-dark: #ccd5df;
  --shadow: 0 14px 36px rgba(16, 32, 55, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  min-width: 320px;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 107, 206, 0.26);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  background:
    radial-gradient(circle at 0 0, rgba(37, 104, 175, 0.26), transparent 28%),
    var(--navy);
  color: white;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #3a88e5, #1b5da8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(0,0,0,.2);
  font-size: 20px;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong { font-size: 14px; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: #9fb0c6; font-size: 11px; }

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 38px;
}

.nav-label {
  margin: 22px 11px 7px;
  color: #6f8199;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #b8c4d3;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.is-active { background: rgba(53, 129, 218, .2); color: white; }
.nav-icon { font-size: 18px; line-height: 1; }
.region-dot { width: 8px; height: 8px; border-radius: 999px; }
.region-us { background: #56a0f4; }
.region-uk { background: #d487e8; }

.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #c6d3e2;
  font-size: 10px;
  text-align: center;
}

.sidebar-foot { margin-top: auto; }

.prototype-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}

.prototype-status strong,
.prototype-status small { display: block; }
.prototype-status strong { font-size: 11px; }
.prototype-status small { margin-top: 2px; color: #8395ac; font-size: 10px; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: #f1b84c; box-shadow: 0 0 0 4px rgba(241,184,76,.12); }

.legacy-link {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  color: #8395ac;
  text-decoration: none;
  font-size: 11px;
}
.legacy-link:hover { color: white; }

.main {
  min-width: 0;
  padding: 0 34px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 91px;
  border-bottom: 1px solid var(--line);
}

.context-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }

.role-control {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.role-control span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.role-control select { border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 750; }

.avatar-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--navy-2);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  background: #30b77d;
}

.mobile-menu { display: none; }

.prototype-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 0;
  padding: 10px 13px;
  border: 1px solid #d9c78e;
  border-radius: 9px;
  background: #fffbec;
  color: #6e5b22;
}

.prototype-banner span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f4d979;
  color: #4c3c0d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prototype-banner p { margin: 0; font-size: 11px; font-weight: 600; }

.view-root { padding-top: 28px; }
.welcome-row,
.workflow-intro,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.welcome-row h2,
.workflow-intro h2 { margin: 4px 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.welcome-row p,
.workflow-intro p { margin: 0; max-width: 720px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.overline { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.primary-button,
.secondary-button {
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 780;
}

.primary-button { background: var(--blue); color: white; box-shadow: 0 6px 14px rgba(23,107,206,.18); }
.primary-button:hover { background: #105fae; }
.secondary-button { border-color: var(--line-dark); background: white; color: var(--ink-soft); }
.secondary-button:hover { border-color: #aeb9c6; background: #f9fafb; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 4px 15px rgba(16,32,55,.025);
}

.kpi-icon,
.attention-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-weight: 850;
}
.kpi-icon { width: 38px; height: 38px; font-size: 15px; }
.kpi-card span,
.kpi-card strong,
.kpi-card small { display: block; }
.kpi-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.kpi-card strong { margin: 2px 0; font-size: 23px; letter-spacing: -.03em; }
.kpi-card small { color: #94a0af; font-size: 9px; }

.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-cyan { background: var(--cyan-soft); color: var(--cyan); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .82fr);
  gap: 16px;
  margin-top: 16px;
}

.panel,
.currency-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 4px 15px rgba(16,32,55,.025);
}

.panel { padding: 20px; }
.panel-heading { align-items: center; margin-bottom: 13px; }
.panel-heading h3 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.02em; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 750; }

.attention-list { margin: 0 -8px -6px; }
.attention-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.attention-row:hover { background: #f8fafc; }
.attention-icon { width: 34px; height: 34px; font-size: 10px; }
.attention-copy strong,
.attention-copy small,
.attention-value strong,
.attention-value small { display: block; }
.attention-copy strong { font-size: 11px; }
.attention-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.attention-value { text-align: right; }
.attention-value strong { font-size: 11px; }
.attention-value small { margin-top: 3px; color: var(--amber); font-size: 9px; font-weight: 700; }
.row-arrow { color: #9aa7b7; font-size: 20px; }

.currency-stack { display: grid; gap: 16px; }
.currency-card { padding: 17px; }
.currency-heading { display: flex; align-items: center; justify-content: space-between; }
.currency-heading span,
.currency-heading strong { display: block; }
.currency-heading span { color: var(--muted); font-size: 9px; }
.currency-heading strong { font-size: 11px; }
.currency-amount { margin-top: 16px; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.currency-card > p { margin: 2px 0 13px; color: var(--muted); font-size: 9px; }
.currency-progress { display: flex; align-items: center; gap: 10px; }
.currency-progress > span,
.detail-progress > span { display: block; flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: #e7ecf2; }
.currency-progress i,
.detail-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.currency-progress strong { color: var(--green); font-size: 9px; }
.currency-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.currency-meta span { font-size: 10px; font-weight: 750; }
.currency-meta small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; font-weight: 600; }

.recent-panel { margin-top: 16px; }
.recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.region-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 850;
}
.region-badge.region-us { background: var(--blue-soft); color: var(--blue); }
.region-badge.region-uk { background: var(--violet-soft); color: var(--violet); }

.workflow-intro { margin-bottom: 20px; }
.workflow-stat { min-width: 90px; padding: 12px 15px; border-left: 2px solid var(--blue); }
.workflow-stat strong,
.workflow-stat span { display: block; }
.workflow-stat strong { font-size: 22px; }
.workflow-stat span { color: var(--muted); font-size: 9px; }

.board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.search-control {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.search-control input { width: 100%; min-height: 36px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.filter-control { display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; }
.filter-control span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.filter-control select { min-height: 36px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 700; }

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(218px, 1fr));
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.kanban-column {
  min-height: 480px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef1f4;
}
.kanban-column > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 11px; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.kanban-column > header strong { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: white; color: var(--muted); font-size: 9px; }
.kanban-stack { display: grid; align-content: start; gap: 9px; }

.order-card {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #dce2e9;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 2px 8px rgba(16,32,55,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.order-card:hover { transform: translateY(-2px); border-color: #b9c9db; box-shadow: 0 9px 22px rgba(16,32,55,.09); }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.stage-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.stage-pill > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.order-reference { display: block; margin-top: 12px; }
.order-reference strong,
.order-reference small { display: block; }
.order-reference strong { font-size: 13px; }
.order-reference small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-summary { display: -webkit-box; margin-top: 10px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.money-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.money-pair span,
.money-pair strong { display: block; }
.money-pair span { color: var(--muted); font-size: 8px; }
.money-pair strong { margin-top: 2px; font-size: 10px; }
.money-complete { color: var(--green); }
.progress-track { display: block; height: 3px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e7ecf2; }
.progress-track span { display: block; height: 100%; background: var(--green); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.avatar-stack { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.avatar-stack i { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8eef5; color: var(--ink-soft); font-size: 7px; font-style: normal; font-weight: 800; }
.next-action { color: var(--blue); font-size: 8px; font-weight: 800; white-space: nowrap; }
.due-label { color: var(--muted); font-size: 8px; white-space: nowrap; }
.empty-column { display: grid; place-items: center; min-height: 110px; border: 1px dashed #ccd4de; border-radius: 9px; color: #9ba7b4; text-align: center; }
.empty-column span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: white; color: var(--green); }
.empty-column p { margin: 0; font-size: 9px; }

.order-card.is-compact { box-shadow: none; }
.order-card.is-compact .card-footer,
.order-card.is-compact .card-topline { display: flex; }
.order-card.is-compact .money-pair { margin-top: 11px; }

.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f9fafb; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ledger-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 10px; vertical-align: middle; }
.ledger-table tr { cursor: pointer; }
.ledger-table tbody tr:hover { background: #f8fafc; }
.ledger-table td > strong,
.ledger-table td > small { display: block; }
.ledger-table td > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.table-po { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.numeric { font-weight: 750; white-space: nowrap; }
.row-open { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--blue); font-size: 17px; }
.history-toolbar { margin-top: 4px; }

.product-panel { padding-bottom: 8px; }
.vat-note { padding: 5px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 750; }
.product-list { margin: 0 -8px; }
.product-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 110px 20px; align-items: center; gap: 12px; width: 100%; padding: 13px 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.product-row:hover { background: #f8fafc; }
.product-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 850; }
.product-row strong,
.product-row small { display: block; }
.product-row strong { font-size: 10px; }
.product-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.product-status { padding: 4px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 8px; font-weight: 800; }
.product-status.is-active { background: var(--green-soft); color: var(--green); }
.product-price { text-align: right; }

.detail-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.detail-drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(7,16,29,.42); opacity: 0; transition: opacity .2s ease; }
.detail-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(550px, 94vw); height: 100%; overflow-y: auto; padding: 28px; background: white; box-shadow: -20px 0 50px rgba(7,16,29,.16); transform: translateX(100%); transition: transform .22s ease; }
.detail-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-close { position: absolute; top: 19px; right: 20px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink-soft); font-size: 20px; }
.drawer-open { overflow: hidden; }
.detail-badges { display: flex; gap: 7px; margin-bottom: 22px; }
.detail-header h2 { margin: 4px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.detail-header p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.detail-action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.read-only-note { display: flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: 9px; }
.detail-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 11px; font-weight: 800; }
.section-title small { color: var(--muted); font-size: 8px; font-weight: 650; }
.finance-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finance-figures > div { padding: 12px; border-radius: 9px; background: #f7f9fb; }
.finance-figures small,
.finance-figures strong { display: block; }
.finance-figures small { color: var(--muted); font-size: 8px; }
.finance-figures strong { margin-top: 4px; font-size: 13px; }
.finance-figures .has-variance { background: var(--amber-soft); color: var(--amber); }
.finance-figures .no-variance { background: var(--green-soft); color: var(--green); }
.detail-progress { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.detail-progress small { color: var(--muted); font-size: 8px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.detail-facts dt { color: var(--muted); font-size: 8px; }
.detail-facts dd { margin: 3px 0 0; font-size: 10px; font-weight: 750; }
.shipment-records { display: grid; gap: 10px; }
.shipment-record { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }
.shipment-record > strong { display: block; margin-bottom: 10px; font-size: 10px; }
.line-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.line-item strong,
.line-item small { display: block; }
.line-item strong { font-size: 10px; }
.line-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.timeline { display: grid; }
.timeline-event { position: relative; display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; padding: 0 0 17px; }
.timeline-event:not(:last-child)::before { content: ""; position: absolute; top: 8px; bottom: -3px; left: 4px; width: 1px; background: var(--line-dark); }
.timeline-event i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-event strong,
.timeline-event small { display: block; }
.timeline-event strong { font-size: 10px; }
.timeline-event small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.timeline-event time { color: var(--muted); font-size: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 30px);
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  box-shadow: 0 15px 38px rgba(7,16,29,.25);
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast strong { font-size: 10px; }
.toast span { color: #b6c2d0; font-size: 9px; }

.quote-workspace-form { display: grid; gap: 16px; padding: 22px 0; }
.quote-workspace-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.quote-workspace-form input,
.quote-workspace-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 11px 12px;
  resize: vertical;
}
.quote-workspace-form input:focus,
.quote-workspace-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,74,232,.12); outline: none; }
.quote-safety-note,
.quote-warning,
.quote-ready { display: flex; align-items: flex-start; gap: 8px; border-radius: 10px; padding: 11px 12px; font-size: 12px; }
.quote-safety-note { background: #f3f1ff; color: #4b3db2; }
.quote-warning { background: #fff4e5; color: #8a4b08; }
.quote-ready { background: #eaf8f0; color: #197044; font-weight: 700; }
.quote-preview-result:not(:empty) { border-top: 1px solid var(--line); padding-top: 20px; }
.quote-preview-summary { display: flex; justify-content: space-between; margin: 14px 0 8px; color: var(--ink-soft); }
.quote-preview-summary strong { color: var(--ink); }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .main { padding-inline: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: 244px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 40px rgba(7,16,29,.2); }
  .sidebar.is-mobile-open { transform: translateX(0); }
  .main { padding: 0 15px 44px; }
  .topbar { min-height: 76px; }
  .mobile-menu { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
  .topbar > div:first-of-type { margin-right: auto; }
  .context-label { display: none; }
  .topbar h1 { font-size: 18px; }
  .role-control > span { display: none; }
  .role-control { padding: 5px; }
  .avatar-button { display: none; }
  .prototype-banner { align-items: flex-start; }
  .welcome-row,
  .workflow-intro { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card { padding: 13px; }
  .kpi-icon { width: 32px; height: 32px; }
  .content-grid { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; }
  .board-toolbar { align-items: stretch; flex-direction: column; }
  .search-control { min-width: 0; }
  .filter-control { justify-content: space-between; }
  .kanban { grid-template-columns: repeat(5, 250px); }
  .product-row { grid-template-columns: 38px 1fr auto 18px; }
  .product-status { display: none; }
  .product-price { grid-column: 2; text-align: left; }
  .finance-figures { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .role-control select { max-width: 115px; }
  .prototype-banner p { font-size: 9px; }
  .drawer-panel { padding: 23px 18px; }
  .detail-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
