* { box-sizing: border-box; }
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --border: #e2e5e9;
  --text: #17191c;
  --text-dim: #626b75;
  --accent: #2554ff;
  --accent-dim: #edf1ff;
  --green-bg: #e8f7ee;
  --green-text: #19734a;
  --amber-bg: #fff5df;
  --amber-text: #8a5700;
  --red-bg: #ffebe9;
  --red-text: #b82926;
  --shadow: 0 1px 2px rgba(20, 25, 32, 0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --card: #191c20;
    --border: #2b3036;
    --text: #f0f2f4;
    --text-dim: #a6adb6;
    --accent: #6f8cff;
    --accent-dim: #232d51;
    --green-bg: #153225;
    --green-text: #67d9a0;
    --amber-bg: #3a2c12;
    --amber-text: #f4bf60;
    --red-bg: #3a1f20;
    --red-text: #ff8b87;
    --shadow: none;
  }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: #17191c;
  border-right: 1px solid #25282d;
  padding: 22px 12px 14px;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  transition: transform 0.25s ease;
  z-index: 50;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 12px 24px;
  color: #f6f7f9;
}
.sidebar-brand span {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .02em;
}
.sidebar-brand small {
  color: #878e98;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}
.sidebar-brand:hover span { color: #fff; }
.sidebar nav { min-height: calc(100% - 112px); }
.nav-group {
  color: #6f7782;
  font-size: 11px;
  font-weight: 650;
  padding: 17px 12px 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 15px;
  color: #c5cad1;
}
.nav-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #262a30;
  color: #9fa6af;
  font-size: 14px;
  font-weight: 750;
}
.nav-item.active { background: #f0f2f4; color: #17191c; }
.nav-item.active .icon { background: #dfe5ff; color: #2554ff; }
.nav-item.disabled { color: #707781; cursor: default; }
.nav-item .soon {
  margin-left: auto;
  font-size: 11px;
  background: #292d33;
  color: #7f8791;
  padding: 2px 7px;
  border-radius: 8px;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #292d33;
  color: #8a929c;
  font-size: 13px;
}
.sidebar-footer a:hover { color: #f0f2f4; }

.main { flex: 1; margin-left: 224px; padding: 34px 42px 80px; min-width: 0; max-width: 1600px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-home { color: var(--accent); font-size: 13px; font-weight: 650; }
.menu-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 45;
}

.page-title { font-size: 29px; font-weight: 730; margin: 0 0 5px; letter-spacing: -0.035em; text-wrap: balance; }
.page-subtitle { color: var(--text-dim); font-size: 15px; margin: 0 0 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 680;
  color: var(--text);
  letter-spacing: -0.01em;
}

.big-number { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 0; }
.big-number.small { font-size: 22px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row + .row { margin-top: 10px; }
.label { color: var(--text-dim); font-size: 15px; }
.value { font-weight: 600; font-size: 17px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}
.pill.ok { background: var(--green-bg); color: var(--green-text); }
.pill.warn { background: var(--amber-bg); color: var(--amber-text); }
.pill.info { background: var(--accent-dim); color: var(--accent); }
.pill.danger { background: var(--red-bg); color: var(--red-text); }
.pill.neutral { background: var(--border); color: var(--text-dim); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--amber-text); margin-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}
.btn:active { opacity: 0.85; }
.btn.secondary { background: var(--accent-dim); color: var(--accent); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card { width: 100%; max-width: 360px; }
.login-title { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 4px; }
.login-sub { text-align: center; color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }
.error-msg { color: #ff3b30; font-size: 14px; text-align: center; margin: 0 0 16px; }

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  gap: 18px;
}
.project-choice {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease-out, border-color .18s ease-out, background-color .18s ease-out;
}
.project-choice:hover { transform: translateY(-2px); background: var(--bg); }
.project-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-choice.dropshipping { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.project-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 750;
}
.dropshipping .project-mark { background: var(--accent-dim); color: var(--accent); }
.project-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 650;
}
.project-state.active { background: var(--accent-dim); color: var(--accent); }
.project-choice h2 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.03em; }
.project-choice p { max-width: 34ch; margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.project-choice-link { color: var(--accent); font-size: 14px; font-weight: 650; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text-dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

.muted { color: var(--text-dim); }
.negative-value { color: var(--red-text); }
.table-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 400;
}
.finance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.connection-status {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-text);
  background: var(--amber-bg);
  font-size: 12px;
  font-weight: 650;
}
.connection-status.ok { color: var(--green-text); background: var(--green-bg); }
.finance-equation {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(210px, 1.1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.finance-equation > div {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.finance-equation > b {
  align-self: center;
  color: var(--text-dim);
  font-size: 23px;
  font-weight: 500;
}
.finance-equation span { color: var(--text-dim); font-size: 13px; }
.finance-equation strong { font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.045em; }
.finance-equation .finance-result { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.finance-result strong { color: var(--accent); }
.finance-note {
  margin: 0 0 24px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--amber-text);
  background: var(--amber-bg);
  font-size: 13px;
}
.finance-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
  align-items: start;
}
.finance-section-block {
  min-width: 0;
  margin-top: 18px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.section-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.4; }
.finance-table th:first-child, .finance-table td:first-child { padding-left: 0; }
.finance-table th:last-child, .finance-table td:last-child { padding-right: 0; }
.finance-table .pill { padding: 5px 9px; font-size: 12px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state .emoji { font-size: 40px; display: block; margin-bottom: 12px; }

.error-state { color: var(--red-text); }

.page-heading-row,
.order-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.orders-count {
  color: var(--text-dim);
  font-size: 14px;
  padding-top: 8px;
}
.orders-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 16px;
}
.orders-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.orders-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.orders-search button {
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.filter-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.orders-surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.order-list-head,
.order-list-row {
  display: grid;
  grid-template-columns: minmax(92px,.7fr) minmax(180px,1.4fr) minmax(130px,1fr) minmax(145px,1fr) minmax(150px,1.1fr) minmax(145px,1fr) 18px;
  gap: 16px;
  align-items: center;
}
.order-list-head {
  padding: 12px 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.order-list-row {
  position: relative;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background-color .18s ease-out;
}
.order-list-row:last-child { border-bottom: none; }
.order-list-row:hover { background: var(--bg); }
.order-list-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.order-list-row.has-warning { background: var(--amber-bg); }
.order-list-row.has-warning:hover { filter: brightness(.98); }
.order-primary,
.order-client,
.order-meta,
.order-payment,
.margin-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.order-list-row strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.order-list-row span:not(.pill):not(.row-arrow) { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.margin-cell strong { font-size: 15px; }
.row-arrow { color: var(--text-dim); font-size: 24px; }

.back-link {
  display: inline-flex;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.queue-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 4px 0 16px;
}
.queue-strip a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--border);
}
.queue-strip a:last-child { border-right: none; }
.queue-strip a:hover { background: var(--bg); }
.queue-strip span { font-size: 20px; font-weight: 730; letter-spacing: -.03em; }
.queue-strip small { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-strip .queue-alert { background: var(--amber-bg); color: var(--amber-text); }
.queue-strip .queue-alert small { color: var(--amber-text); }
.warning-panel {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid color-mix(in srgb, var(--amber-text) 28%, transparent);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.warning-title { font-weight: 700; margin-bottom: 6px; }
.warning-panel p { margin: 5px 0; font-size: 14px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.detail-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.detail-section h2 {
  margin: 0 0 16px;
  font-size: 17px;
  letter-spacing: -.2px;
}
.detail-list { margin: 0; }
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.detail-list > div:last-child { border-bottom: none; }
.detail-list dt { color: var(--text-dim); font-size: 13px; }
.detail-list dd { margin: 0; text-align: right; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.detail-list .finance-total { padding-top: 13px; }
.detail-list .finance-total dt,
.detail-list .finance-total dd { color: var(--text); font-size: 15px; font-weight: 700; }
.full-width { width: 100%; }
.detail-table .cell-sub { color: var(--text-dim); font-size: 12px; margin-top: 3px; }
.supplier-orders { display: flex; flex-direction: column; gap: 12px; }
.supplier-order {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.supplier-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.supplier-order-head > div { display: flex; flex-direction: column; gap: 3px; }
.supplier-order-head span:not(.pill) { color: var(--text-dim); font-size: 12px; }
.detail-list.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0 20px;
}
.empty-inline { color: var(--text-dim); padding: 10px 0; }

.roadmap-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.roadmap-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
}
.roadmap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.roadmap-dot.now { background: var(--accent); }
.roadmap-dot.next { background: var(--amber-text); }
.roadmap-dot.planned { background: var(--text-dim); }
.roadmap-map { max-width: 1240px; }
.roadmap-core {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 182px;
  margin: 2px 0 22px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.roadmap-core span { font-size: 17px; font-weight: 750; letter-spacing: .03em; }
.roadmap-core small { color: #fff; opacity: .82; font-size: 12px; }
.roadmap-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.roadmap-branches::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 0;
  width: 1px;
  height: 22px;
  background: var(--border);
}
.roadmap-goal {
  position: relative;
  min-height: 238px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.roadmap-goal::before {
  content: '';
  position: absolute;
  top: -17px;
  left: 22px;
  width: 1px;
  height: 17px;
  background: var(--border);
}
.roadmap-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.roadmap-index { color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.roadmap-status {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 650;
}
.roadmap-goal.now { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.roadmap-goal.now .roadmap-status { background: var(--accent-dim); color: var(--accent); }
.roadmap-goal.decision { border-color: color-mix(in srgb, var(--amber-text) 38%, var(--border)); }
.roadmap-goal.decision .roadmap-status,
.roadmap-goal.next .roadmap-status { background: var(--amber-bg); color: var(--amber-text); }
.roadmap-goal h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.roadmap-goal ul { margin: 0; padding: 0; list-style: none; }
.roadmap-goal li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 16px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}
.roadmap-goal li::before {
  content: '';
  position: absolute;
  top: .48em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
.roadmap-goal.now li::before { background: var(--accent); }
.roadmap-goal.decision li::before,
.roadmap-goal.next li::before { background: var(--amber-text); }

@media (prefers-reduced-motion: reduce) {
  .sidebar, .order-list-row { transition: none; }
}

@media (max-width: 1100px) {
  .order-list-head { display: none; }
  .order-list-row {
    grid-template-columns: minmax(90px,.7fr) minmax(180px,1.4fr) minmax(140px,1fr) minmax(150px,1fr) 18px;
  }
  .order-meta { display: none; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .finance-section { grid-column: 1 / -1; }
  .roadmap-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-columns { grid-template-columns: 1fr; }
  .finance-equation { grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr) auto minmax(180px,1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 20px 16px 40px; }
  .topbar { display: flex; }
  .overlay.open { display: block; }
  .page-heading-row, .order-detail-heading { align-items: flex-start; }
  .orders-count { display: none; }
  .queue-strip { grid-template-columns: 1fr 1fr; max-width: none; }
  .queue-strip a:nth-child(2) { border-right: none; }
  .queue-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .orders-search { max-width: none; }
  .order-list-row {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 16px;
  }
  .order-primary { grid-column: 1; grid-row: 1; }
  .order-list-row > div:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; }
  .order-client { grid-column: 1 / -1; grid-row: 2; }
  .order-payment { grid-column: 1; grid-row: 3; }
  .margin-cell { grid-column: 2; grid-row: 3; text-align: right; }
  .order-meta, .row-arrow { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .finance-section { grid-column: auto; }
  .detail-section { padding: 17px; }
  .detail-list.compact { grid-template-columns: 1fr; }
  .supplier-order-head { align-items: center; }
  .projects-list { grid-template-columns: 1fr; }
  .project-choice { min-height: 220px; }
  .roadmap-heading { flex-direction: column; gap: 0; }
  .roadmap-legend { padding-top: 0; margin: -8px 0 22px; white-space: normal; }
  .roadmap-branches { grid-template-columns: 1fr; }
  .roadmap-goal { min-height: 0; }
  .finance-heading { flex-direction: column; gap: 0; }
  .connection-status { margin: -8px 0 22px; }
  .finance-equation { grid-template-columns: 1fr; gap: 10px; }
  .finance-equation > div { min-height: 104px; }
  .finance-equation > b { display: none; }
  .finance-equation .finance-result { min-height: 118px; }
  .finance-section-block { padding: 17px; }
}

@media (max-width: 480px) {
  .orders-search { flex-direction: column; }
  .orders-search button { min-height: 44px; }
  .order-detail-heading { flex-direction: column; gap: 6px; }
  .order-detail-heading .page-subtitle { margin-bottom: 6px; }
}
