/* Dashboard polish for calculator setup screens. */
.app-shell {
  background: var(--bg);
}
.sidebar {
  background: rgba(18, 26, 34, 0.98);
  border-right: 1px solid rgba(143, 159, 178, 0.18);
  box-shadow: var(--qf-shadow-md);
}
html[data-theme="light"] .sidebar {
  background: #FFFFFF;
}
.sidebar .brand-block {
  margin: 0 14px 14px;
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.sidebar .brand-block .sub {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sidebar a,
.sidebar button {
  margin: 2px 10px;
  width: calc(100% - 20px);
  border-radius: 11px;
  border-left: 0;
  padding: 10px 12px;
  letter-spacing: 0.045em;
}
.sidebar a.active,
.sidebar button.active {
  background: rgba(51, 86, 238, 0.14);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar button[data-route="rates"]::after,
.sidebar button[data-route="accessorials"]::after,
.sidebar button[data-route="zones"]::after,
.sidebar button[data-route="brand"]::after,
.sidebar button[data-route="ai"]::after {
  content: 'SETUP';
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  opacity: 0.72;
}
.app-main {
  max-width: 1340px;
  padding: 38px 42px 56px;
}
.app-main h1 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.045em;
  margin-bottom: 6px;
}
.app-main .page-sub {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 15px;
}
.app-main > h1:first-child::before {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--accent);
}
.card,
.feature,
.price-card {
  background: var(--surface);
}
html[data-theme="light"] .card,
html[data-theme="light"] .feature,
html[data-theme="light"] .price-card {
  background: rgba(255,255,255,0.96);
}
.feature {
  border-radius: 18px;
  padding: 20px;
}
.qf-tabs {
  gap: 8px;
  padding: 8px;
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}
.qf-tab {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 13px;
}
.qf-tab.active {
  background: rgba(51, 86, 238,0.15);
  border-color: rgba(51, 86, 238,0.28);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.table {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.table thead th {
  background: var(--surface-2);
}
.table tbody tr:hover {
  background: rgba(51, 86, 238,0.055);
}
.table .input,
.table .select {
  background: rgba(255,255,255,0.035);
  border-color: var(--border);
}
.table .input:focus,
.table .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(51, 86, 238,0.14);
}
.qf-filter-row th {
  background: rgba(6,10,15,0.40) !important;
}
html[data-theme="light"] .qf-filter-row th {
  background: rgba(238,243,246,0.92) !important;
}
.app-main input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.notice {
  border-left: 4px solid var(--accent);
  background: rgba(51, 86, 238,0.12);
  color: var(--ink-soft);
}
.notice a {
  color: var(--accent);
  font-weight: 700;
}
.badge-info {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-warn {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}
@media (max-width: 900px) {
  .app-main { padding: 72px 18px 32px; }
  .qf-tabs { overflow-x: auto; flex-wrap: nowrap; }
  /* Service tabs: >=44px HIG tap height on touch/mobile (desktop untouched). */
  .qf-tab { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
  .table { display: block; overflow-x: auto; }
}
