:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-2: #f1f5f1;
  --ink: #17211f;
  --muted: #62706d;
  --line: #dce3df;
  --line-strong: #c7d2cc;
  --teal: #087e74;
  --teal-2: #d8f2ee;
  --coral: #c94f42;
  --amber: #b57905;
  --green: #178a48;
  --violet: #5e5ab7;
  --blue: #2b6f9f;
  --danger: #b42318;
  --shadow: 0 14px 34px rgba(23, 33, 31, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(8, 126, 116, 0.05), transparent 360px),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  min-height: 72px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.lookup {
  min-width: 0;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) 132px 112px 112px auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
  outline: none;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 126, 116, 0.12);
}

.primary,
.secondary,
.ghost,
.icon-button,
.chip-button {
  border: 1px solid transparent;
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  text-decoration: none;
}

.primary {
  background: var(--teal);
  color: #fff;
}

.primary:hover {
  background: #066a62;
}

.secondary {
  border-color: var(--line-strong);
  background: #fff;
}

.secondary:hover,
.ghost:hover,
.chip-button:hover {
  background: var(--surface-2);
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.icon-button {
  width: 38px;
  padding: 0;
  border-color: var(--line-strong);
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow: auto;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.nav button.active,
.nav button:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--teal);
}

.side-block {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.side-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.side-list {
  display: grid;
  gap: 8px;
}

.side-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.side-kv span:first-child {
  color: var(--muted);
}

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

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.view-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.view-header p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 820px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 14px;
}

.analysis-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

.sas-result-layout {
  grid-template-columns: 1fr;
}

.active-panel-slot {
  min-width: 0;
}

.connect-strip {
  margin-bottom: 14px;
  border: 1px solid #f4d797;
  background: #fff8e8;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.connect-strip.connected {
  border-color: #bde9cf;
  background: #eefaf3;
}

.connect-strip span {
  color: var(--muted);
  font-size: 13px;
}

.wide-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-header {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
}

.panel-body {
  padding: 14px;
}

.panel-jumpbar {
  box-shadow: none;
}

.jump-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 7px;
}

.jump-grid button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  min-height: 34px;
  padding: 7px 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.jump-grid button.active,
.jump-grid button:hover {
  color: var(--ink);
  background: var(--teal-2);
  border-color: #a8dad4;
}

.span-12 {
  grid-column: span 12;
}

.span-8 {
  grid-column: span 8;
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.product-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-image {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f5f0;
  object-fit: cover;
}

.product-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.meta-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.meta-row {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.badge-row {
  margin-top: 10px;
}

.sas-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sas-summary-strip div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
}

.sas-summary-strip div:last-child {
  border-right: 0;
}

.sas-summary-strip span,
.sas-summary-strip strong {
  display: block;
}

.sas-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sas-summary-strip strong {
  margin-top: 4px;
  font-size: 14px;
}

.badge,
.status-pill,
.tag,
.seller-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.badge.green,
.status-pill.good {
  background: #dcf5e7;
  color: #0b6b36;
  border-color: #bde9cf;
}

.badge.amber,
.status-pill.warn {
  background: #fff1d4;
  color: #805400;
  border-color: #f4d797;
}

.badge.red,
.status-pill.bad {
  background: #ffe4df;
  color: #9f2419;
  border-color: #fac3b9;
}

.badge.blue {
  background: #e1f0f7;
  color: #1d5d86;
  border-color: #bfdeef;
}

.badge.violet {
  background: #ebe9fb;
  color: #514c9f;
  border-color: #d5d1f3;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  min-height: 84px;
}

.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.metric small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.metric.good strong {
  color: var(--green);
}

.metric.warn strong {
  color: var(--amber);
}

.metric.bad strong {
  color: var(--danger);
}

.calc-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calc-grid .full,
.settings-grid .full {
  grid-column: 1 / -1;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  min-height: 38px;
}

.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 11px;
  min-width: 58px;
  color: var(--muted);
  font-weight: 700;
}

.segmented button.active {
  background: var(--teal);
  color: #fff;
}

.fee-list,
.alert-list,
.info-list {
  display: grid;
  gap: 9px;
}

.fee-row,
.alert-row,
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.fee-row:last-child,
.alert-row:last-child,
.info-row:last-child {
  border-bottom: 0;
}

.fee-row span:first-child,
.info-row span:first-child {
  color: var(--muted);
}

.alert-row {
  justify-content: flex-start;
}

.alert-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--green);
}

.alert-dot.warn {
  background: var(--amber);
}

.alert-dot.bad {
  background: var(--danger);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fbfcfa;
  position: sticky;
  top: 0;
}

tr:hover td {
  background: #fbfcfa;
}

.seller-type {
  border-radius: 6px;
  min-width: 42px;
  justify-content: center;
  background: #eef7f6;
  color: var(--teal);
}

.seller-type.fbm {
  background: #fff1d4;
  color: var(--amber);
}

.seller-type.amz {
  background: #ffe4df;
  color: var(--danger);
}

.seller-type.sfp {
  background: #ebe9fb;
  color: var(--violet);
}

.chart-shell {
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
  overflow: hidden;
}

.chart-shell svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  min-width: 0;
}

.mini-card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.flow-steps div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.flow-steps div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.flow-steps strong {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
}

.flow-steps span {
  color: var(--muted);
}

.connect-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.discount-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 92px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.discount-tile:hover {
  background: var(--surface-2);
}

.discount-tile strong {
  font-size: 18px;
}

.discount-tile span,
.discount-tile small {
  color: var(--muted);
}

.tag {
  background: #eef7f6;
  color: var(--teal);
  border-color: #cbe7e3;
}

.tag button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 0 0 3px;
  line-height: 1;
}

.history-card,
.store-card,
.search-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.history-card img,
.store-card img,
.search-card img {
  width: 70px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.card-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.saved-searches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  padding: 11px 13px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 30;
  font-size: 14px;
}

.risk-score {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.score-ring {
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) var(--score), #e7ebe7 0);
  position: relative;
  font-weight: 800;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.score-ring span {
  position: relative;
}

@media (max-width: 1180px) {
  .lookup {
    grid-template-columns: minmax(220px, 1fr) 118px 102px 102px;
  }

  .lookup .primary {
    grid-column: 1 / -1;
  }

  .analysis-grid,
  .wide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: auto;
  }

  .saved-searches,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell,
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 58px;
  }

  .lookup {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .connect-strip {
    grid-template-columns: 1fr;
  }

  .lookup .field:first-child,
  .lookup .primary {
    grid-column: 1 / -1;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .nav button {
    grid-template-columns: 20px 1fr;
    min-width: 126px;
  }

  .side-block {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .view-header {
    display: grid;
  }

  .product-hero {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-image {
    width: 88px;
  }

  .sas-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sas-summary-strip div:nth-child(2n) {
    border-right: 0;
  }

  .sas-summary-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .metric-grid,
  .calc-grid,
  .settings-grid,
  .two-col,
  .saved-searches,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid .full,
  .settings-grid .full {
    grid-column: auto;
  }

  .history-card,
  .store-card,
  .search-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .history-card img,
  .store-card img,
  .search-card img {
    width: 56px;
  }

  .history-card .toolbar,
  .store-card .toolbar,
  .search-card .toolbar {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
}

/* SAS likeness pass: flatter workstation chrome with subtle glass only in the page background */
body {
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.86), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 86% 0%, rgba(62, 169, 229, 0.16), transparent 32%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.sas-shell .topbar {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: 49px 28px 27px;
  position: static;
  border-bottom: 1px solid #b9b9b9;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.sas-shell .brand {
  height: 49px;
  padding: 9px 8px;
}

.sas-shell .brand strong {
  font-size: 30px;
}

.sas-shell .brand b {
  border-radius: 0;
  font-size: 20px;
  padding: 1px 5px;
}

.sas-shell .top-links {
  gap: 18px;
  padding-right: 9px;
}

.global-product-search {
  width: 174px;
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 3px !important;
  background: #fff !important;
}

.sas-shell .top-links button {
  color: #006bb6;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
}

.sas-shell .lookup {
  grid-template-columns: auto minmax(320px, 1fr) 60px 70px 70px 88px;
  gap: 4px;
  padding: 2px 0 2px 0;
  border-top: 1px solid #d4d4d4;
  background: #fff;
}

.sas-shell .lookup label {
  padding-left: 0;
}

.sas-shell .lookup #lookup-query {
  height: 19px !important;
  min-height: 19px !important;
  border: 1px solid #176a27 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.sas-shell .lookup input,
.sas-shell .lookup select {
  height: 19px !important;
  min-height: 19px !important;
  border-radius: 0 !important;
}

.sas-shell .lookup .primary {
  height: 22px;
  min-height: 22px;
  border-radius: 3px;
  background: #2d79b9;
}

.sas-shell .sas-toolstrip {
  gap: 4px;
  padding: 3px 0;
  background: #fff;
  border-top: 1px solid #d8d8d8;
}

.sas-shell .sas-toolstrip button,
.product-dropdown {
  height: 22px;
  min-height: 22px;
  border-radius: 3px;
  background: #2d79b9;
  border: 1px solid #1e6097;
  color: #fff;
  padding: 1px 8px;
  box-shadow: none;
}

.product-dropdown {
  margin-left: auto;
  width: 76px;
  background: #e7e7e7;
  color: #111;
  border-color: #a8a8a8;
}

.sas-status-line {
  display: none;
}

.sas-workbench {
  grid-template-columns: minmax(320px, 24.6%) minmax(330px, 25%) minmax(300px, 25%) minmax(320px, 25.4%);
  gap: 6px;
  padding: 6px 0 24px;
  align-items: start;
}

.sas-column {
  gap: 6px;
}

.sas-shell .panel {
  border: 1px solid #9d9d9d;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.sas-shell .panel-header {
  min-height: 24px;
  padding: 3px 6px;
  border-bottom: 1px solid #a4a4a4;
  background: linear-gradient(#eeeeee, #d8d8d8);
}

.sas-shell .panel-header h2 {
  font-size: 11px;
  color: #111;
}

.api-chip {
  max-width: 30px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #d7edf8;
  border-color: #bcdbe8;
  color: #26749f;
  font-size: 9px;
}

.sas-product {
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 7px;
}

.sas-product img {
  width: 74px;
  height: 118px;
}

.sas-product h2 {
  font-size: 11px;
  line-height: 1.25;
}

.sas-button-row,
.sas-tabs {
  gap: 5px;
  padding: 5px;
}

.sas-tabs button,
.sas-button-row button,
.sas-table button,
.lookup-mini button,
.sas-shell .panel button {
  min-height: 20px;
  border-radius: 3px;
  background: #2d79b9;
  border: 1px solid #1e6097;
  color: #fff;
  padding: 2px 8px;
  box-shadow: none;
}

.sas-table,
.sas-matrix,
.sas-shell table {
  font-size: 11px;
  table-layout: fixed;
}

.sas-table th,
.sas-table td,
.sas-matrix th,
.sas-matrix td,
.sas-shell table th,
.sas-shell table td {
  border: 1px solid #d4d4d4;
  padding: 5px 6px;
  line-height: 1.2;
  white-space: normal;
}

.sas-table th,
.sas-matrix th,
.sas-shell table th {
  background: #efefef;
}

.good,
.sas-yes {
  background: #dff1d8 !important;
  color: #008000 !important;
}

.warn {
  background: #dff1f8 !important;
  color: #0071a8 !important;
}

.bad,
.sas-no {
  background: #f1d9d9 !important;
  color: #b00000 !important;
}

.keepa-chart-shell {
  height: 548px;
  padding: 7px 8px 0;
  background: #fff;
  overflow: hidden;
}

.keepa-chart-shell svg {
  width: 100%;
  height: 100%;
  display: block;
}

.keepa-range-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 6px;
  border-top: 1px solid #ddd;
}

.keepa-range-row button {
  min-height: 22px;
}

.sas-shell .chart-shell,
.sas-shell .chart-legend {
  display: none;
}

.sas-shell .calc-grid {
  grid-template-columns: 1fr;
}

.sas-shell .field {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 23px;
}

.sas-shell .field label {
  padding: 5px 6px;
}

.sas-shell .field input,
.sas-shell .field select {
  height: 23px;
  min-height: 23px;
  border-radius: 0;
}

.sas-shell .fee-row,
.sas-shell .info-row {
  min-height: 23px;
  padding: 5px 6px;
}

.buybox-split {
  grid-template-columns: 1fr;
}

.pie {
  width: 170px;
  height: 170px;
}

@media (max-width: 1450px) {
  .sas-workbench {
    grid-template-columns: minmax(310px, 1fr) minmax(330px, 1fr);
  }

  .sas-trade,
  .sas-right {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .sas-shell .topbar,
  .sas-shell .lookup,
  .sas-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .global-product-search {
    width: 150px;
  }

  .sas-shell .topbar {
    grid-template-rows: auto;
  }

  .keepa-chart-shell {
    height: 430px;
  }
}

/* AI connectors and administrator workspace */
.sas-shell .top-links .integration-nav {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 3px;
}

.integration-nav img {
  display: block;
  width: 20px;
  height: 20px;
}

.integration-page,
.admin-page {
  width: min(980px, calc(100vw - 28px));
  margin: 16px auto 42px;
  color: #183344;
}

.integration-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(91, 119, 135, 0.2);
}

.integration-heading img {
  width: 38px;
  height: 38px;
}

.integration-heading h1,
.integration-heading p,
.integration-panel h2,
.integration-notice p {
  margin: 0;
}

.integration-heading h1 {
  font-size: 20px;
}

.integration-heading p {
  margin-top: 4px;
  color: #617b89;
  font-size: 12px;
}

.integration-page {
  display: grid;
  gap: 10px;
}

.integration-panel,
.integration-notice,
.admin-users-panel,
.admin-stats > div {
  border: 1px solid rgba(84, 120, 140, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(31, 53, 75, 0.075), inset 0 1px rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(125%);
}

.integration-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(84, 120, 140, 0.16);
  background: rgba(225, 237, 241, 0.42);
}

.integration-panel-title h2 {
  font-size: 13px;
}

.integration-panel-title span {
  color: #187247;
  font-size: 10px;
  font-weight: 800;
}

.mcp-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
}

.mcp-url-row code {
  min-width: 0;
  overflow: auto;
  padding: 10px 11px;
  border: 1px solid rgba(84, 120, 140, 0.2);
  border-radius: 7px;
  background: rgba(245, 250, 251, 0.72);
  color: #174c68;
  white-space: nowrap;
}

.integration-steps {
  margin: 0;
  padding: 12px 18px 14px 38px;
}

.integration-steps li {
  padding: 5px 0 5px 4px;
  color: #36596b;
  font-size: 12px;
  line-height: 1.45;
}

.prompt-list {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.prompt-list button {
  min-height: 36px;
  border: 1px solid rgba(84, 120, 140, 0.17);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(249, 252, 253, 0.64);
  color: #255269;
  text-align: left;
  font-size: 11px;
}

.prompt-list button:hover {
  border-color: rgba(31, 119, 177, 0.35);
  background: rgba(31, 119, 177, 0.08);
}

.integration-notice {
  padding: 12px 14px;
}

.integration-notice strong {
  font-size: 12px;
}

.integration-notice p {
  margin-top: 5px;
  color: #617b89;
  font-size: 11px;
  line-height: 1.45;
}

.admin-title-row {
  margin-bottom: 14px;
}

.admin-title-row > div {
  display: grid;
  gap: 3px;
}

.admin-title-row span {
  color: #68818e;
  font-size: 10px;
}

.admin-refresh {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px;
  border: 0;
  background: transparent;
}

.admin-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.admin-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  color: #607b89;
  font-size: 11px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-stats > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.admin-stats span {
  color: #68818e;
  font-size: 10px;
}

.admin-stats strong {
  color: #174f6d;
  font-size: 22px;
}

.admin-users-panel {
  overflow: hidden;
}

.admin-users-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(84, 120, 140, 0.16);
  background: rgba(225, 237, 241, 0.42);
  font-size: 12px;
}

.admin-users-toolbar input {
  min-height: 30px;
  height: 30px;
  border-radius: 7px;
}

.admin-table-wrap {
  overflow: auto;
  max-height: 570px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.admin-table th,
.admin-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(84, 120, 140, 0.13);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #486778;
  background: rgba(239, 246, 248, 0.96);
}

.admin-table td:first-child,
.admin-table td:nth-child(3),
.admin-table td:nth-child(4) {
  display: table-cell;
}

.admin-table td strong,
.admin-table td span,
.admin-table td small {
  display: block;
}

.admin-table td span,
.admin-table td small {
  margin-top: 2px;
  color: #6b838f;
}

@media (max-width: 760px) {
  .integration-page,
  .admin-page {
    width: calc(100vw - 16px);
    margin-top: 8px;
  }

  .mcp-url-row,
  .admin-users-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sas-shell .sas-panel.is-unavailable {
  border-color: rgba(115, 129, 137, 0.2);
  background: rgba(232, 237, 240, 0.58);
  filter: grayscale(0.82);
  opacity: 0.62;
}

.sas-shell .sas-panel.is-unavailable .panel-header,
.sas-shell .sas-panel.is-unavailable .panel-body {
  background: rgba(226, 232, 235, 0.52);
}

.sas-shell .sas-panel.is-unavailable button:disabled {
  border-color: rgba(111, 126, 135, 0.25);
  background: rgba(194, 204, 209, 0.54);
  color: #667984;
  cursor: not-allowed;
}

.panel-unavailable-label {
  color: #6c7c85;
  font-size: 10px;
  font-weight: 700;
}

.european-marketplaces-table {
  table-layout: fixed;
}

.european-marketplaces-table th,
.european-marketplaces-table td {
  padding: 4px 5px;
  text-align: right;
  white-space: nowrap;
}

.european-marketplaces-table th:first-child,
.european-marketplaces-table td:first-child {
  width: 42px;
  text-align: center;
}

.european-marketplaces-table .seller-type {
  margin-left: 4px;
}

.marketplace-flag {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 18px;
  padding: 1px 3px;
  border: 1px solid rgba(78, 104, 119, 0.24);
  border-radius: 4px;
  background: rgba(244, 248, 249, 0.8);
  color: #38566a;
  font-size: 9px;
  font-weight: 800;
}

.european-marketplace-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 6px;
  border-top: 1px solid rgba(92, 121, 139, 0.18);
  color: #38566a;
  font-size: 10px;
}

.european-marketplace-footer strong {
  min-width: 48px;
  padding: 3px 8px;
  border: 1px solid rgba(39, 112, 158, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #175d88;
  text-align: center;
}

.european-marketplace-footer span:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .european-marketplaces-table th,
  .european-marketplaces-table td {
    padding-inline: 3px;
    font-size: 9px;
  }
}

/* Per-user analysis panel layout */
.panel-layout-settings {
  width: min(100%, 760px);
  border: 1px solid rgba(93, 126, 145, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 30px rgba(42, 75, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
  overflow: hidden;
}

.panel-layout-summary {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(93, 126, 145, 0.18);
  background: rgba(218, 231, 236, 0.42);
  color: #24475a;
}

.panel-layout-summary strong {
  font-size: 13px;
}

.panel-layout-summary span {
  color: #587284;
  font-size: 11px;
}

.panel-layout-list {
  display: grid;
  gap: 5px;
  padding: 7px;
}

.panel-layout-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(93, 126, 145, 0.2);
  border-radius: 7px;
  background: rgba(247, 251, 252, 0.72);
  color: #173d52;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: opacity 120ms ease, background 120ms ease, transform 120ms ease;
}

.panel-layout-row.is-hidden {
  background: rgba(233, 239, 242, 0.5);
  color: #6e818c;
  opacity: 0.7;
}

.panel-layout-row.is-dragging {
  opacity: 0.38;
  transform: scale(0.995);
}

.panel-layout-row.drop-before::before,
.panel-layout-row.drop-after::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 2px;
  background: #1884bd;
  z-index: 2;
}

.panel-layout-row.drop-before::before {
  top: -4px;
}

.panel-layout-row.drop-after::after {
  bottom: -4px;
}

.panel-layout-label {
  min-width: 0;
  padding: 0 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.panel-drag-handle,
.panel-order-button {
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #547084;
  cursor: grab;
}

.panel-order-button {
  cursor: pointer;
}

.panel-drag-handle:hover,
.panel-order-button:hover:not(:disabled) {
  background: rgba(31, 119, 177, 0.1);
  color: #176a98;
}

.panel-drag-handle svg,
.panel-order-button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-drag-handle svg circle {
  fill: currentColor;
  stroke: none;
}

.panel-order-button:disabled {
  cursor: default;
  opacity: 0.25;
}

.panel-layout-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
}

.panel-visibility-switch {
  position: relative;
  width: 35px;
  height: 20px;
  margin-left: 5px;
  flex: 0 0 auto;
}

.panel-visibility-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.panel-visibility-switch span {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(95, 116, 127, 0.42);
  box-shadow: inset 0 1px 3px rgba(43, 65, 76, 0.15);
  cursor: pointer;
  transition: background 120ms ease;
}

.panel-visibility-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 54, 67, 0.24);
  transition: transform 120ms ease;
}

.panel-visibility-switch input:checked + span {
  background: rgba(25, 128, 176, 0.72);
}

.panel-visibility-switch input:checked + span::after {
  transform: translateX(15px);
}

.panel-visibility-switch input:focus-visible + span {
  outline: 2px solid #1a7eb4;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .panel-layout-settings {
    width: 100%;
  }

  .panel-layout-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .panel-layout-actions {
    padding-right: 5px;
  }
}

.sas-discount-tabs button {
  border-color: rgba(31, 111, 165, 0.38) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #166495 !important;
}

.sas-discount-tabs button:hover {
  background: rgba(27, 123, 181, 0.1) !important;
}

.sas-discount-tabs button.active,
.sas-discount-tabs button[aria-pressed="true"] {
  border-color: #176fa8 !important;
  background: #287fba !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.sas-shell .seller-type.fbm {
  border-color: #d7ad52;
  background: #fff1c7;
  color: #79520b;
}

.sas-shell .seller-type.amz {
  border-color: #ef9c42;
  background: #ffe2bd;
  color: #ad4b00;
}

.calculator-fulfillment {
  min-height: 26px;
  border-color: rgba(32, 104, 156, 0.34);
  background: rgba(255, 255, 255, 0.72);
}

.calculator-fulfillment button {
  min-width: 48px;
  padding: 4px 10px;
  color: #476272;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.calculator-fulfillment button.active,
.calculator-fulfillment button[aria-pressed="true"] {
  background: #257bb4;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(12, 76, 119, 0.42), 0 0 0 2px rgba(37, 123, 180, 0.14);
}

.fulfillment-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.variation-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-bottom: 1px solid rgba(91, 119, 135, 0.2);
}

.variation-toolbar span {
  font-size: 10px;
  color: #355469;
}

.variation-toolbar input {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid rgba(82, 117, 143, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.variation-table-wrap {
  max-height: 190px;
  overflow: auto;
}

.sas-shell .variation-table {
  min-width: 0;
  table-layout: fixed;
}

.sas-shell .variation-table th,
.sas-shell .variation-table td {
  padding: 5px 7px;
  overflow-wrap: anywhere;
}

.sas-shell .variation-table .current-variation td {
  background: rgba(203, 234, 248, 0.72);
}

.variation-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: #546b79;
}

.variation-empty strong {
  color: #243d4d;
}

/* Final overflow and rounded-glass polish */
.sas-workbench {
  grid-template-columns: minmax(270px, 23%) minmax(340px, 28%) minmax(270px, 22%) minmax(300px, 27%);
  gap: 8px;
  padding: 8px;
  overflow-x: hidden;
}

.sas-column,
.sas-panel,
.sas-shell .panel {
  min-width: 0;
}

.sas-shell .panel {
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(1.2);
  border-color: rgba(92, 110, 128, 0.32);
  overflow: hidden;
}

.sas-shell .panel-header {
  border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(224, 230, 236, 0.72));
  min-width: 0;
}

.sas-shell .panel-body {
  overflow-x: hidden;
}

.sas-middle .sas-panel:first-child {
  width: 100%;
}

.sas-middle .sas-panel:first-child .sas-table {
  width: 100%;
}

.sas-shell .sas-table,
.sas-shell .sas-matrix,
.sas-shell table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.sas-shell .sas-table th,
.sas-shell .sas-table td,
.sas-shell .sas-matrix th,
.sas-shell .sas-matrix td,
.sas-shell table th,
.sas-shell table td {
  padding: 4px 5px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sas-shell input,
.sas-shell select,
.sas-shell textarea,
.global-product-search,
.sas-shell .lookup #lookup-query {
  border-radius: 9px !important;
}

.sas-shell .sas-toolstrip button,
.product-dropdown,
.sas-tabs button,
.sas-button-row button,
.sas-table button,
.lookup-mini button,
.sas-shell .panel button,
.sas-shell .primary,
.api-chip,
.sas-pill,
.seller-type,
.status-pill {
  border-radius: 999px;
}

.api-chip {
  max-width: 34px;
}

.sas-product {
  grid-template-columns: 74px minmax(0, 1fr);
}

.sas-product img {
  width: 64px;
  height: 94px;
}

.sas-button-row {
  gap: 4px;
}

.sas-button-row button,
.sas-tabs button,
.sas-shell .panel button {
  padding-left: 7px;
  padding-right: 7px;
}

.lookup-mini {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.keepa-chart-shell {
  height: 438px;
  padding: 5px;
  border-radius: 0 0 12px 12px;
}

.keepa-chart-shell svg {
  width: 100%;
  height: 100%;
}

.keepa-range-row {
  gap: 4px;
  padding: 5px;
}

.keepa-range-row button {
  min-height: 20px;
  padding: 2px 7px;
}

.sas-shell .field {
  grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
}

.buybox-split {
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
}

.pie {
  width: 118px;
  height: 118px;
}

@media (max-width: 1450px) {
  .sas-workbench {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  }
}

@media (max-width: 760px) {
  .sas-workbench {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px;
  }

  .keepa-chart-shell {
    height: 360px;
  }

  .buybox-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .lookup {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .sas-summary-strip {
    grid-template-columns: 1fr;
  }

  .sas-summary-strip div,
  .sas-summary-strip div:nth-child(2n) {
    border-right: 0;
  }

  .sas-summary-strip div + div {
    border-top: 1px solid var(--line);
  }
}

/* SAS-style dense sourcing workbench */
body {
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.app-shell.sas-shell {
  display: block;
  min-height: 100vh;
}

.sas-shell .topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 29px 22px 25px;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid #9a9a9a;
  background: #f4f4f4;
  backdrop-filter: none;
}

.sas-shell .brand {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: 29px;
  padding: 2px 8px;
  border: 0;
  gap: 3px;
}

.sas-shell .brand strong {
  display: inline;
  font-size: 21px;
  line-height: 1;
  color: #f58220;
}

.sas-shell .brand strong span {
  display: inline;
  color: #128ed1;
  font-size: inherit;
}

.sas-shell .brand b {
  background: #f58220;
  color: #fff;
  padding: 1px 3px;
  font-size: 14px;
}

.sas-shell .top-links {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 8px;
}

.sas-shell .top-links button {
  border: 0;
  background: transparent;
  color: #006eb8;
  font-size: 11px;
  min-height: 0;
  padding: 0;
}

.sas-shell .top-links button.active {
  color: #111;
  font-weight: 700;
}

.sas-shell .lookup {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) 58px 70px 70px 50px;
  gap: 3px;
  align-items: center;
  padding: 0 4px;
  border-top: 1px solid #ddd;
}

.sas-shell .lookup label {
  font-size: 11px;
  font-weight: 400;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
}

.sas-shell input,
.sas-shell select,
.sas-shell textarea {
  min-height: 18px;
  height: 18px;
  border: 1px solid #9f9f9f;
  border-radius: 0;
  padding: 1px 4px;
  font-size: 11px;
  box-shadow: none;
}

.sas-shell textarea {
  min-height: 34px;
  height: 34px;
}

.sas-shell input:focus,
.sas-shell select:focus,
.sas-shell textarea:focus {
  border-color: #196f1d;
  box-shadow: none;
}

.sas-shell .lookup #lookup-query {
  border-color: #0b6113;
}

.sas-shell .primary,
.sas-shell .secondary,
.sas-shell .ghost,
.sas-shell .icon-button,
.sas-shell .chip-button,
.sas-shell button {
  min-height: 18px;
  border-radius: 0;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.sas-shell .primary,
.sas-shell .icon-button,
.sas-panel button {
  background: #287bbd;
  border: 1px solid #1b5e93;
  color: #fff;
}

.sas-shell .sas-toolstrip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 2px 4px;
  background: #fff;
  border-top: 1px solid #d2d2d2;
}

.sas-shell .icon-button {
  width: 22px;
  height: 19px;
  padding: 0;
}

.sas-shell .main {
  padding: 0;
  background: #fff;
}

.sas-status-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 2px 4px;
  border-bottom: 1px solid #aaa;
  background: #fafafa;
}

.sas-status-line h1 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.sas-status-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sas-status-line button {
  border: 1px solid #8f8f8f;
  background: #e8e8e8;
  color: #111;
}

.lookup-error {
  margin: 5px 6px 0;
  padding: 7px 10px;
  border: 1px solid rgba(0, 113, 206, 0.24);
  border-radius: 8px;
  background: rgba(245, 250, 255, 0.82);
  color: #17537f;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.account-page {
  padding: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.account-panel {
  border: 1px solid rgba(120, 150, 175, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 45px rgba(30, 55, 80, 0.09);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.account-panel.wide {
  grid-column: 1 / -1;
}

.account-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #24465f;
}

.subscription-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.subscription-card {
  border: 1px solid rgba(60, 120, 165, 0.18);
  border-radius: 10px;
  padding: 12px;
  background: rgba(246, 250, 253, 0.82);
}

.subscription-card span,
.subscription-card small {
  display: block;
  color: #5f7485;
}

.subscription-card strong {
  display: block;
  margin: 4px 0;
  color: #172d3e;
}

.status-pill.blue {
  background: #e9f4ff;
  color: #1f6fa8;
}

.settings-usage-panel {
  margin-top: 14px;
}

.settings-usage-grid {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.settings-usage-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(110, 130, 145, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.settings-usage-row p {
  margin: 0;
  color: #536b7c;
}

.sas-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 25%) minmax(420px, 25%) minmax(430px, 1fr);
  gap: 6px;
  align-items: start;
  padding: 5px 4px 24px;
}

.sas-column {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.sas-shell .panel {
  border: 1px solid #8e8e8e;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}

.sas-shell .panel-header {
  min-height: 21px;
  padding: 2px 5px;
  border-bottom: 1px solid #8e8e8e;
  background: linear-gradient(#eeeeee, #d4d4d4);
}

.sas-shell .panel-header h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.sas-shell .panel-body {
  padding: 0;
  overflow-x: auto;
}

.sas-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 7px;
  padding: 5px;
}

.sas-product img {
  width: 64px;
  height: 82px;
  object-fit: contain;
}

.sas-product h2 {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.25;
}

.stars {
  color: #f18b00;
}

.stars span {
  color: #555;
}

.sas-button-row,
.sas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  align-items: center;
}

.sas-tabs {
  border-bottom: 1px solid #ddd;
}

.sas-tabs button,
.sas-button-row button,
.sas-table button,
.lookup-mini button {
  min-height: 18px;
  padding: 1px 7px;
  background: #287bbd;
  border: 1px solid #1b5e93;
  color: #fff;
}

.sas-table,
.sas-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.sas-table th,
.sas-table td,
.sas-matrix th,
.sas-matrix td,
.sas-shell table th,
.sas-shell table td {
  border: 1px solid #d0d0d0;
  padding: 3px 5px;
  line-height: 1.2;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.sas-table th,
.sas-matrix th,
.sas-shell table th {
  background: #f5f5f5;
  font-weight: 400;
  color: #333;
}

.sas-table td:last-child {
  text-align: right;
}

.sas-matrix td {
  text-align: center;
}

.good,
.sas-yes {
  background: #dff1d8 !important;
  color: #008000 !important;
}

.warn {
  background: #dbeff7 !important;
  color: #0074b7 !important;
}

.bad,
.sas-no {
  background: #f1dada !important;
  color: #b00000 !important;
}

.sas-pill {
  display: inline-flex;
  min-width: 16px;
  justify-content: center;
  border: 1px solid #8e8e8e;
  padding: 1px 4px;
  font-size: 10px;
}

.sas-shell .chart-shell {
  padding: 4px;
  height: 268px;
  background: #fff;
  border: 0;
}

.sas-shell .chart-shell svg {
  width: 100%;
  height: 100%;
}

.sas-shell .chart-legend {
  padding: 3px 6px 5px;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
}

.sas-shell .calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sas-shell .field {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid #d0d0d0;
}

.sas-shell .field label {
  padding: 3px 5px;
  background: #f5f5f5;
  border-right: 1px solid #d0d0d0;
  color: #333;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sas-shell .field input,
.sas-shell .field select {
  border: 0;
  height: 20px;
}

.sas-shell .fee-list,
.sas-shell .info-list {
  display: block;
}

.sas-shell .fee-row,
.sas-shell .info-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-height: 20px;
  padding: 3px 5px;
  border-bottom: 1px solid #d0d0d0;
  font-size: 11px;
}

.sas-shell .fee-row span,
.sas-shell .info-row span:first-child {
  color: #333;
}

.sas-shell .seller-type {
  min-height: 0;
  border-radius: 0;
  padding: 1px 4px;
  background: #dff1d8;
  color: #008000;
  border: 1px solid #83c67b;
}

.lookup-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 3px;
  align-items: center;
  padding: 4px;
}

.buybox-split {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  padding: 4px;
}

.pie {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 12px auto;
  background: conic-gradient(#1e88e5 0 18%, #fdd835 18% 32%, #43a047 32% 45%, #fb8c00 45% 56%, #8e24aa 56% 67%, #00acc1 67% 79%, #e53935 79% 90%, #7cb342 90% 100%);
  border: 1px solid #aaa;
}

@media (max-width: 1280px) {
  .sas-workbench {
    grid-template-columns: minmax(340px, 1fr) minmax(380px, 1fr);
  }

  .sas-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sas-shell .topbar,
  .sas-shell .lookup,
  .sas-status-line,
  .sas-workbench,
  .buybox-split {
    grid-template-columns: 1fr;
  }

  .sas-shell .top-links,
  .sas-shell .lookup,
  .sas-shell .sas-toolstrip {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    overflow-x: auto;
    max-width: 100vw;
    min-width: 0;
  }

  .sas-right {
    grid-template-columns: 1fr;
  }

  .sas-workbench {
    overflow-x: hidden;
  }
}

/* Cleaner glass pass */
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(112, 181, 255, 0.28), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(73, 216, 181, 0.2), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef4f8 48%, #f8fafc 100%);
}

.sas-shell .topbar {
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: 38px 38px 38px;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(94, 112, 130, 0.24);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 10px 28px rgba(56, 72, 92, 0.08);
}

.sas-shell .brand {
  height: 38px;
  padding: 6px 12px;
}

.sas-shell .brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.sas-shell .brand b {
  border-radius: 6px;
  padding: 2px 5px;
}

.sas-shell .top-links {
  gap: 6px;
  padding: 0 10px;
}

.sas-shell .top-links button,
.sas-shell .sas-toolstrip button,
.sas-status-line button,
.sas-tabs button,
.sas-button-row button,
.sas-table button,
.lookup-mini button {
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(47, 102, 154, 0.22);
  background: rgba(255, 255, 255, 0.58);
  color: #1b5d92;
  padding: 3px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sas-shell .top-links button.active,
.sas-shell .top-links button:hover,
.sas-shell .sas-toolstrip button:hover,
.sas-status-line button:hover,
.sas-tabs button:hover,
.sas-button-row button:hover,
.sas-table button:hover {
  background: rgba(16, 117, 194, 0.12);
  color: #0e4f80;
}

.sas-shell .lookup {
  grid-template-columns: auto minmax(220px, 1fr) 74px 88px 88px 74px;
  gap: 7px;
  padding: 5px 10px;
  border-top: 1px solid rgba(129, 148, 166, 0.18);
}

.sas-shell .lookup #lookup-query,
.sas-shell input,
.sas-shell select,
.sas-shell textarea {
  min-height: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(76, 103, 129, 0.22);
  background: rgba(255, 255, 255, 0.76);
}

.sas-shell textarea {
  min-height: 56px;
}

.sas-shell .primary {
  border-radius: 999px;
  background: linear-gradient(180deg, #2d9af2, #176cae);
}

.sas-shell .sas-toolstrip {
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid rgba(129, 148, 166, 0.16);
  background: transparent;
  overflow-x: auto;
}

.toolbar-button {
  white-space: nowrap;
}

.sas-status-line {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  margin: 10px 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(91, 111, 130, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 12px 30px rgba(60, 76, 98, 0.08);
}

.sas-status-line h1 {
  font-size: 13px;
}

.sas-workbench {
  grid-template-columns: minmax(310px, 0.9fr) minmax(360px, 1fr) minmax(400px, 1.15fr);
  gap: 10px;
  padding: 10px;
}

.sas-shell .panel {
  border: 1px solid rgba(78, 100, 124, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 13px 32px rgba(48, 68, 90, 0.08);
}

.sas-shell .panel-header {
  min-height: 34px;
  padding: 6px 9px;
  border-bottom: 1px solid rgba(76, 103, 129, 0.14);
  background: rgba(255, 255, 255, 0.38);
}

.sas-shell .panel-header h2 {
  font-size: 12px;
  color: #1c2934;
}

.panel-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.api-chip {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(34, 112, 179, 0.16);
  border-radius: 999px;
  padding: 2px 7px;
  color: #4a7395;
  background: rgba(236, 247, 255, 0.62);
  font-size: 10px;
  font-weight: 600;
}

.sas-shell .panel-body {
  max-width: 100%;
}

.sas-product {
  gap: 10px;
  padding: 10px;
}

.sas-product img {
  width: 72px;
  height: 88px;
}

.sas-product h2 {
  font-size: 13px;
}

.sas-table,
.sas-matrix {
  table-layout: auto;
}

.sas-table th,
.sas-table td,
.sas-matrix th,
.sas-matrix td,
.sas-shell table th,
.sas-shell table td {
  border-color: rgba(82, 102, 124, 0.14);
  padding: 5px 7px;
}

.sas-table th,
.sas-matrix th,
.sas-shell table th {
  background: rgba(247, 250, 252, 0.75);
}

.good,
.sas-yes {
  background: rgba(69, 190, 117, 0.16) !important;
  color: #146c3b !important;
}

.warn {
  background: rgba(70, 164, 223, 0.16) !important;
  color: #17618e !important;
}

.bad,
.sas-no {
  background: rgba(225, 89, 79, 0.15) !important;
  color: #9d3129 !important;
}

.sas-shell .chart-shell {
  height: 246px;
  padding: 8px;
}

.sas-shell .calc-grid {
  grid-template-columns: 1fr;
}

.sas-shell .field {
  grid-template-columns: 116px minmax(0, 1fr);
}

.buybox-split {
  grid-template-columns: 128px minmax(0, 1fr);
}

.pie {
  width: 104px;
  height: 104px;
}

@media (max-width: 1360px) {
  .sas-workbench {
    grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  }

  .sas-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sas-shell .topbar,
  .sas-shell .lookup,
  .sas-status-line,
  .sas-workbench,
  .sas-right,
  .buybox-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sas-shell .topbar {
    position: static;
  }

  .sas-status-line,
  .sas-workbench {
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .api-chip {
    max-width: 116px;
  }
}

/* Final SAS screenshot alignment overrides */
.sas-shell .topbar {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: 49px 28px 27px;
  position: static;
  border-bottom: 1px solid #b9b9b9;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.sas-shell .brand {
  height: 49px;
  padding: 9px 8px;
}

.sas-shell .brand strong {
  font-size: 30px;
}

.sas-shell .brand b {
  border-radius: 0;
  font-size: 20px;
  padding: 1px 5px;
}

.sas-workbench {
  grid-template-columns: minmax(320px, 24.6%) minmax(330px, 25%) minmax(300px, 25%) minmax(320px, 25.4%);
  gap: 6px;
  padding: 6px 0 24px;
}

.sas-shell .panel {
  border: 1px solid #9d9d9d;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.sas-shell .panel-header {
  min-height: 24px;
  padding: 3px 6px;
  border-bottom: 1px solid #a4a4a4;
  background: linear-gradient(#eeeeee, #d8d8d8);
}

.sas-shell .panel-header h2 {
  font-size: 11px;
  color: #111;
}

.sas-shell .sas-toolstrip button,
.product-dropdown,
.sas-tabs button,
.sas-button-row button,
.sas-table button,
.lookup-mini button,
.sas-shell .panel button {
  border-radius: 3px;
  background: #2d79b9;
  border: 1px solid #1e6097;
  color: #fff;
  box-shadow: none;
}

.sas-shell .chart-shell,
.sas-shell .chart-legend {
  display: none;
}

@media (max-width: 1450px) {
  .sas-workbench {
    grid-template-columns: minmax(310px, 1fr) minmax(330px, 1fr);
  }
}

@media (max-width: 760px) {
  .sas-shell .topbar,
  .sas-shell .lookup,
  .sas-workbench {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
}

/* Final responsive glass polish */
.sas-shell {
  --glass-radius: 14px;
  --control-radius: 10px;
}

.sas-workbench {
  grid-template-columns: minmax(250px, 22.5%) minmax(330px, 29%) minmax(260px, 22.5%) minmax(290px, 26%) !important;
  gap: 8px !important;
  padding: 8px 8px 24px !important;
  overflow-x: hidden !important;
}

.sas-column,
.sas-shell .panel,
.sas-shell .panel-body,
.sas-shell .panel-body > *,
.sas-shell .table-wrap,
.sas-shell table {
  min-width: 0 !important;
  max-width: 100% !important;
}

.sas-column > .panel,
.sas-column > .sas-panel,
.sas-column > .span-12,
.sas-column > .span-8,
.sas-column > .span-7,
.sas-column > .span-6,
.sas-column > .span-5,
.sas-column > .span-4,
.sas-column > .span-3 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  justify-self: stretch !important;
}

.sas-shell .panel {
  border: 1px solid rgba(110, 133, 152, 0.38) !important;
  border-radius: var(--glass-radius) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  box-shadow: 0 12px 32px rgba(31, 53, 75, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  overflow: hidden !important;
}

.sas-shell .panel-header {
  border-radius: calc(var(--glass-radius) - 1px) calc(var(--glass-radius) - 1px) 0 0 !important;
  border-bottom: 1px solid rgba(103, 126, 144, 0.25) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(226,235,241,0.68)) !important;
}

.sas-shell .panel-body {
  overflow-x: hidden !important;
}

.sas-shell .table-wrap {
  overflow-x: hidden !important;
}

.sas-shell table {
  width: 100% !important;
  table-layout: fixed !important;
}

.sas-shell th,
.sas-shell td {
  padding: 4px 5px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.sas-shell th {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sas-middle .sas-panel:first-child {
  width: 100% !important;
  justify-self: stretch !important;
}

.sas-middle .sas-panel:first-child .sas-table {
  width: 100% !important;
}

.sas-shell button,
.sas-shell input,
.sas-shell select,
.sas-shell textarea,
.global-product-search,
.product-dropdown,
.seller-type,
.status-pill,
.api-chip,
.score-chip,
.sas-tabs button,
.keepa-range-row button {
  border-radius: var(--control-radius) !important;
}

.sas-shell button,
.seller-type,
.status-pill,
.api-chip,
.score-chip,
.sas-tabs button,
.keepa-range-row button {
  border-radius: 999px !important;
}

.sas-product {
  grid-template-columns: 66px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
}

.sas-product img {
  width: 58px !important;
  height: 82px !important;
}

.keepa-chart-shell {
  height: 438px !important;
  padding: 4px !important;
  border-radius: 0 0 var(--glass-radius) var(--glass-radius) !important;
  overflow: hidden !important;
}

.keepa-chart-shell svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.keepa-range-row {
  gap: 4px !important;
  padding: 5px !important;
  overflow: hidden !important;
}

.keepa-range-row button {
  min-width: 0 !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
}

.buybox-chart {
  width: min(172px, 48vw) !important;
  height: min(172px, 48vw) !important;
}

@media (max-width: 1450px) {
  .sas-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .sas-workbench {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-inline: 6px !important;
  }

  .sas-shell .lookup {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .sas-shell .lookup .connect-btn,
  .sas-shell .lookup .sync-btn,
  .sas-shell .lookup .endpoint-btn {
    display: none !important;
  }

  .keepa-chart-shell {
    height: 390px !important;
  }

  .sas-shell th,
  .sas-shell td {
    padding: 4px !important;
    font-size: 10px !important;
  }
}

/* Navigation and page simplification */
.sas-shell .lookup {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 4px 8px !important;
}

.sas-shell .lookup #lookup-query {
  width: 100% !important;
}

.simple-page,
.history-page {
  width: min(980px, calc(100vw - 32px));
  margin: 18px auto 40px;
}

.amazon-status-panel {
  max-width: 560px;
}

.compact-view-header {
  width: min(980px, calc(100vw - 32px));
  margin: 14px auto 12px;
  align-items: center;
}

.history-page .compact-view-header {
  width: 100%;
  margin-inline: 0;
}

.history-panel-header {
  grid-template-columns: auto minmax(180px, 320px);
}

.history-search {
  width: 100%;
  height: 30px !important;
  min-height: 30px !important;
}

.history-card {
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  padding: 8px !important;
}

.history-card img {
  width: 56px !important;
}

@media (max-width: 760px) {
  .simple-page,
  .history-page,
  .compact-view-header {
    width: calc(100vw - 16px);
    margin-top: 10px;
  }

  .history-panel-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-card {
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .history-card img {
    width: 46px !important;
  }

  .history-card .toolbar {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* Simplified product strip and live graph */
.sas-shell .sas-toolstrip {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 8px !important;
}

.sas-shell .sas-toolstrip button,
.sas-shell .product-dropdown,
.toolbar-button {
  display: none !important;
}

.product-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 9px;
  border: 1px solid rgba(95, 118, 138, 0.32);
  border-radius: 999px;
  color: #1d5d93;
  background: rgba(255, 255, 255, 0.74);
  font-size: 10.5px;
  font-weight: 700;
}

.keepa-chart-shell {
  position: relative !important;
}

.keepa-graph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  cursor: crosshair;
}

.keepa-graph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.keepa-series-legend {
  cursor: pointer;
}

.keepa-series-legend.is-hidden {
  opacity: 0.62;
}

.keepa-series-legend.is-unavailable {
  cursor: default;
  opacity: 0.38;
}

.keepa-series-legend:not(.is-unavailable):hover .keepa-series-hit,
.keepa-series-legend:not(.is-unavailable):focus .keepa-series-hit {
  fill: rgba(31, 130, 190, 0.08);
  stroke: rgba(31, 130, 190, 0.4);
}

.keepa-loading {
  display: grid;
  place-items: center;
  height: 100%;
  color: #5f7486;
  font-size: 11px;
}

.keepa-crosshair {
  stroke: rgba(35, 91, 146, 0.74);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

.keepa-tooltip {
  position: absolute;
  z-index: 4;
  width: 154px;
  max-width: 170px;
  padding: 5px 7px;
  border: 1px solid rgba(48, 76, 101, 0.22);
  border-radius: 9px;
  color: #122c42;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(31, 53, 75, 0.14);
  font-size: 10.5px;
  line-height: 1.25;
  pointer-events: none;
}

.keepa-tooltip-date {
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(48, 76, 101, 0.13);
  color: #365a70;
  font-weight: 700;
}

.keepa-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.keepa-tooltip-row span {
  min-width: 0;
  font-weight: 700;
}

.keepa-tooltip-row strong {
  color: #122c42;
  white-space: nowrap;
}

.keepa-range-row button.active {
  background: #1f75b7 !important;
  color: #fff !important;
  border-color: #155d94 !important;
}

/* SAS-style Settings page */
.sas-settings-page {
  width: min(768px, calc(100vw - 28px));
  margin: 8px auto 34px;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-bottom: 1px solid #d0d6dc;
  margin-bottom: 38px;
}

.settings-title-row h1 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.settings-title-row .primary {
  min-height: 27px;
  padding: 4px 12px;
  border-radius: 4px !important;
  background: #2c78b7 !important;
  border-color: #1c629a !important;
  font-size: 11px;
}

.sas-settings-profile,
.sas-settings-card {
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.sas-settings-profile {
  margin-bottom: 6px;
}

.sas-settings-panel-title {
  min-height: 21px;
  padding: 4px 6px;
  border-bottom: 1px solid #c4c4c4;
  background: #d9d9d9;
  font-size: 12px;
  line-height: 1.1;
}

.profile-copy {
  padding: 7px 6px 8px;
  line-height: 1.35;
}

.profile-copy a {
  color: #176fae;
  text-decoration: underline;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto auto;
  align-items: center;
  gap: 6px;
  margin: 0 6px 7px;
  padding: 6px;
  border: 1px solid #d6e1ed;
  border-radius: 4px;
  background: #f8fbfd;
}

.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip,
.profile-button,
.new-profile-button {
  border: 1px solid transparent;
  border-radius: 5px !important;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.profile-chip.active {
  color: #008c1c;
  background: #dff4dd;
}

.profile-chip.editing {
  color: #1774ac;
  background: #dbeffc;
}

.profile-button.muted {
  color: #fff;
  background: #92c596;
}

.profile-button.muted + .profile-button.muted {
  background: #7fa9cf;
}

.profile-button.blue,
.new-profile-button {
  color: #fff;
  background: #2d79b9;
}

.profile-button.danger {
  color: #fff;
  background: #ee8f98;
}

.new-profile-button {
  margin: 0 0 6px 6px;
  min-height: 28px;
}

.sas-settings-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 18px;
}

.sas-settings-tabs button {
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid #c8d6e5;
  border-left: 0;
  background: #fff;
  color: #000;
  border-radius: 0 !important;
  font-size: 12px;
}

.sas-settings-tabs button:first-child {
  border-left: 1px solid #c8d6e5;
  border-radius: 4px 0 0 4px !important;
}

.sas-settings-tabs button:last-child {
  border-radius: 0 4px 4px 0 !important;
}

.sas-settings-tabs button.active {
  background: #2d79b9;
  border-color: #2d79b9;
  color: #fff;
}

.sas-settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 8px;
  align-content: start;
}

.sas-settings-card-body {
  padding: 4px 4px 10px;
}

.sas-setting-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  column-gap: 12px;
}

.sas-setting-row > label {
  justify-self: end;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.help-dot {
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  margin-left: 3px;
  border-radius: 999px;
  color: #fff;
  background: #2d79b9;
  font-size: 8px;
  font-weight: 700;
}

.sas-setting-control {
  min-width: 0;
}

.sas-setting-control input,
.sas-setting-control select,
.sas-input-group {
  width: 174px;
  height: 30px !important;
  min-height: 30px !important;
  border: 1px solid #d4dee8;
  border-radius: 4px !important;
  background: #fff;
  color: #000;
  font-size: 12px;
}

.sas-setting-control select {
  padding-inline: 10px;
}

.sas-setting-control input {
  padding: 5px 10px;
  text-align: right;
}

.sas-setting-control > input:not([inputmode]) {
  text-align: left;
}

.sas-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.sas-input-group.has-prefix {
  grid-template-columns: auto minmax(0, 1fr);
}

.sas-input-group.has-suffix {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sas-input-group.has-prefix.has-suffix {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.sas-input-group span {
  display: grid;
  place-items: center;
  min-width: 28px;
  padding: 0 8px;
  border-right: 1px solid #d4dee8;
  color: #4f6270;
  background: #f3f8fc;
}

.sas-input-group span:last-child {
  border-right: 0;
  border-left: 1px solid #d4dee8;
}

.sas-input-group input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

.settings-note {
  margin: 6px 0 4px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1.25;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch span {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #a8a8a8;
  transition: background .15s ease;
}

.settings-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}

.settings-switch input:checked + span {
  background: #2d79b9;
}

.settings-switch input:checked + span::after {
  transform: translateX(16px);
}

.settings-segment {
  display: inline-flex;
  border: 1px solid #d4dee8;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.settings-segment button {
  min-height: 30px;
  min-width: 39px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  color: #000;
  font-size: 12px;
}

.settings-segment button + button {
  border-left: 1px solid #d4dee8;
}

.settings-segment button.active {
  background: #2d79b9;
  color: #fff;
}

.sas-offer-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 5px;
  font-size: 10px;
}

.sas-offers-scroll {
  max-height: 278px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.sas-offers-scroll .sas-table {
  margin: 0;
}

.sas-offers-scroll .sas-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(239, 245, 248, 0.96);
  backdrop-filter: blur(8px);
}

.sas-offer-counts span {
  border: 1px solid rgba(39, 119, 185, 0.35);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  padding: 2px 6px;
}

/* SAS parity refinements */
.sas-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  font-size: 11px;
}

.sas-quick-grid .span-2 {
  grid-column: span 2;
}

.sas-quick-grid .span-3 {
  grid-column: span 3;
}

.sas-q-head,
.sas-q-value,
.sas-q-input {
  min-height: 21px;
  border: 1px solid rgba(110, 124, 136, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.sas-q-head {
  background: rgba(230, 230, 230, 0.82);
  color: #111;
}

.sas-q-head.price-head {
  justify-content: space-between;
  gap: 4px;
  padding-left: 6px;
}

.price-marketplace-select {
  width: auto !important;
  min-width: 50px;
  height: 19px !important;
  padding: 0 18px 0 5px !important;
  border: 1px solid rgba(69, 132, 172, 0.38) !important;
  border-radius: 6px !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  color: #164f73;
  font-size: 10px;
  font-weight: 700;
}

.sas-shell .price-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.sas-q-value {
  background: rgba(223, 241, 216, 0.95);
  color: #008000;
}

.sas-q-input {
  justify-content: stretch;
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
}

.sas-q-input span {
  width: 24px;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(110, 124, 136, 0.26);
}

.sas-q-input input {
  min-width: 0;
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  text-align: right;
  padding: 2px 6px !important;
  height: 100%;
}

.sas-offer-tabs {
  justify-content: flex-start;
}

.lookup-audit-search {
  padding: 4px;
  border-bottom: 1px solid rgba(110, 124, 136, 0.2);
}

.lookup-audit-search input {
  width: 100%;
}

.lookup-audit-table th,
.lookup-audit-table td {
  font-size: 10px;
}

.lookup-audit-table-wrap {
  max-height: 124px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.lookup-audit-table-wrap .lookup-audit-table {
  margin: 0;
}

.lookup-audit-table-wrap .lookup-audit-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.keepa-chart-shell {
  height: 500px !important;
}

.lookup-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(236, 244, 248, 0.54);
  backdrop-filter: blur(12px) saturate(135%);
}

.lookup-loading-card {
  width: min(360px, calc(100vw - 32px));
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 70px rgba(32, 72, 96, 0.22);
  color: #17384d;
  text-align: center;
}

.lookup-loading-card strong {
  font-size: 17px;
}

.lookup-loading-card span:last-child {
  color: #607889;
  font-size: 12px;
}

.lookup-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(43, 111, 159, 0.18);
  border-top-color: #2b6f9f;
  border-radius: 50%;
  animation: lookup-spin 0.75s linear infinite;
}

@keyframes lookup-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eaf1f4;
  color: #17384d;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(32, 72, 96, 0.18);
  backdrop-filter: blur(18px) saturate(135%);
}

.auth-loading {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
}

.auth-loading p {
  margin: 0;
  color: #607889;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 25px;
}

.auth-brand strong {
  color: #f28b45;
}

.auth-brand strong span {
  color: #17a7d4;
}

.auth-brand b {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f28b45;
  color: #fff;
  font-size: 18px;
}

.auth-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(43, 111, 159, 0.16);
  border-radius: 10px;
  background: rgba(225, 237, 243, 0.76);
}

.auth-segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526d7e;
  cursor: pointer;
}

.auth-segmented button.active {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(32, 72, 96, 0.12);
  color: #1f648f;
  font-weight: 700;
}

.auth-copy {
  margin: 24px 0 20px;
}

.auth-copy h1 {
  margin: 0 0 7px;
  font-size: 23px;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0;
  color: #607889;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #456173;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(92, 121, 139, 0.3);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #17384d;
  font: inherit;
}

.auth-form input:focus {
  border-color: #2b7eaa;
  box-shadow: 0 0 0 3px rgba(43, 126, 170, 0.13);
}

.auth-submit {
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #2377a7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover {
  background: #19678f;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid rgba(180, 54, 54, 0.24);
  border-radius: 8px;
  background: rgba(255, 235, 235, 0.88);
  color: #9f2f2f;
  font-size: 12px;
}

.amazon-onboarding-panel {
  width: min(500px, 100%);
}

.onboarding-step {
  display: inline-block;
  margin-bottom: 10px;
  color: #2377a7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.onboarding-marketplace {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  color: #456173;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-marketplace select {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(92, 121, 139, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #17384d;
  font: inherit;
}

.onboarding-actions {
  display: grid;
  gap: 9px;
}

.onboarding-skip {
  min-height: 42px;
  border: 1px solid rgba(58, 96, 119, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #385b70;
  font-weight: 700;
  cursor: pointer;
}

.onboarding-skip:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (min-width: 761px) {
  .sas-shell .topbar {
    grid-template-rows: 49px 28px;
  }
}

.account-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 820px) {
  .sas-settings-columns {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr auto auto;
  }

  .profile-button {
    display: none;
  }
}

@media (max-width: 520px) {
  .sas-settings-page {
    width: calc(100vw - 24px);
  }

  .settings-title-row {
    margin-bottom: 14px;
  }

  .sas-setting-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 5px 2px;
  }

  .sas-setting-row > label {
    justify-self: start;
    text-align: left;
  }

  .sas-setting-control input,
  .sas-setting-control select,
  .sas-input-group {
    width: 100%;
  }
}

.seller-storefront-link {
  display: inline;
  max-width: 100%;
  padding: 0;
  color: #146fa3;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(20, 111, 163, 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
}

.seller-storefront-link:hover {
  color: #0a527c;
  text-decoration-color: currentColor;
}

.offer-seller-link {
  text-decoration: underline;
  text-decoration-color: rgba(20, 111, 163, 0.45);
  text-underline-offset: 2px;
}

.offer-seller-link:hover .seller-type,
.offer-seller-link:focus-visible .seller-type {
  box-shadow: 0 0 0 2px rgba(20, 111, 163, 0.18);
  filter: saturate(1.15);
}

.panel-inline-error {
  margin: 6px 2px 1px;
  color: #8a4b18;
  font-size: 11px;
  line-height: 1.35;
}

.discovery-status {
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(95, 124, 140, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 18px rgba(45, 77, 94, 0.07);
  backdrop-filter: blur(14px) saturate(125%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #587080;
}

.discovery-status > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.discovery-status strong {
  min-width: 0;
  overflow: hidden;
  color: #183f57;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-status button,
.discovery-footer button {
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(35, 119, 167, 0.3);
  border-radius: 5px;
  background: rgba(35, 119, 167, 0.9);
  color: #fff;
  cursor: pointer;
}

.discovery-page {
  margin-top: 7px;
}

.discovery-list {
  display: grid;
  gap: 6px;
}

.discovery-product {
  min-width: 0;
  min-height: 126px;
  border: 1px solid rgba(95, 124, 140, 0.26);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(43, 77, 96, 0.055);
  backdrop-filter: blur(12px) saturate(120%);
  display: grid;
  grid-template-columns: minmax(430px, 1fr) 168px 258px;
}

.discovery-product-main {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px;
}

.discovery-image-button {
  position: relative;
  width: 88px;
  min-width: 88px;
  min-height: 110px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(238, 245, 248, 0.8);
  cursor: pointer;
}

.discovery-image-button img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.discovery-image-button span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 7px rgba(28, 58, 75, 0.12);
  color: #183f57;
  font-size: 10px;
  font-weight: 700;
}

.discovery-product-copy {
  min-width: 0;
  color: #506a79;
  font-size: 10px;
  line-height: 1.35;
}

.discovery-title {
  max-width: 100%;
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #086da9;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.discovery-title:hover {
  text-decoration: underline;
}

.discovery-rating span {
  color: #f2a214;
  letter-spacing: 0;
}

.discovery-metrics {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.discovery-metrics > span {
  min-width: 68px;
  min-height: 39px;
  padding: 3px 6px;
  border: 1px solid rgba(98, 127, 143, 0.27);
  border-radius: 4px;
  background: rgba(229, 240, 244, 0.64);
  display: grid;
  align-content: center;
  text-align: center;
}

.discovery-metrics small,
.discovery-metrics em {
  color: #647c89;
  font-size: 8px;
  font-style: normal;
}

.discovery-metrics strong {
  color: #1b5e7e;
  font-size: 10px;
}

.discovery-offers {
  min-width: 0;
  border-left: 1px solid rgba(95, 124, 140, 0.2);
  border-right: 1px solid rgba(95, 124, 140, 0.2);
  background: rgba(245, 249, 250, 0.62);
}

.discovery-offers > strong {
  min-height: 24px;
  padding: 5px 6px;
  display: block;
  color: #314f60;
  font-size: 9px;
  text-align: center;
}

.discovery-offers table,
.storefront-summary table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9px;
}

.discovery-offers th,
.discovery-offers td,
.storefront-summary th,
.storefront-summary td {
  padding: 3px 5px;
  border-top: 1px solid rgba(95, 124, 140, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.discovery-offers th:first-child,
.discovery-offers td:first-child,
.storefront-summary th:first-child,
.storefront-summary td:first-child {
  text-align: left;
}

.discovery-chart {
  min-width: 0;
  padding: 5px;
  display: grid;
  place-items: center;
}

.discovery-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.discovery-empty {
  min-height: 180px;
  border: 1px solid rgba(95, 124, 140, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #657d8a;
}

.discovery-empty strong {
  color: #284f66;
}

.storefront-retry-controls {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #657d8a;
  font-size: 11px;
}

.storefront-refresh-button {
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2d718f;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.storefront-refresh-button:hover,
.storefront-refresh-button:focus-visible {
  color: #174e69;
  background: transparent;
}

.storefront-refresh-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discovery-footer {
  padding: 10px;
  display: flex;
  justify-content: center;
}

.storefront-overview {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.storefront-summary {
  min-width: 0;
  border: 1px solid rgba(95, 124, 140, 0.24);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(43, 77, 96, 0.055);
  backdrop-filter: blur(12px) saturate(120%);
}

.storefront-summary-title {
  padding: 6px 8px;
  background: rgba(215, 226, 232, 0.7);
  color: #274a5e;
  font-size: 10px;
  font-weight: 700;
}

.storefront-summary td:first-child {
  color: #1a6d9b;
}

.storefront-summary td:last-child {
  color: #25495d;
  font-weight: 700;
}

.storefront-products {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .discovery-product {
    grid-template-columns: minmax(420px, 1fr) 160px 220px;
  }
}

@media (max-width: 900px) {
  .storefront-overview {
    grid-template-columns: 1fr;
  }

  .discovery-product {
    grid-template-columns: minmax(0, 1fr) 178px;
  }

  .discovery-chart {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(95, 124, 140, 0.18);
  }

  .discovery-chart svg {
    max-height: 120px;
  }
}

@media (max-width: 620px) {
  .discovery-status,
  .discovery-status > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovery-product {
    grid-template-columns: 1fr;
  }

  .discovery-product-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .discovery-image-button {
    width: 72px;
    min-width: 72px;
  }

  .discovery-offers {
    border: 0;
    border-top: 1px solid rgba(95, 124, 140, 0.18);
  }
}

/* SourceWise public brand and storefront filtering */
.app-brand-logo {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
}

.auth-brand-logo {
  display: block;
  width: min(230px, 84%);
  height: auto;
  margin: 0 auto 24px;
}

.auth-loading .auth-brand-logo {
  margin-bottom: 6px;
}

.auth-home {
  width: 34px;
  height: 34px;
  margin: -8px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #315b70;
  font-size: 22px;
  line-height: 1;
}

.storefront-filter-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a6d9b;
  text-align: left;
  font-size: inherit;
  cursor: pointer;
}

.storefront-filter-link:hover,
.storefront-filter-link:focus-visible {
  color: #0b4f73;
  text-decoration: underline;
}

.storefront-summary tr.active td {
  background: rgba(32, 169, 210, 0.12);
}

.storefront-filter-bar {
  min-height: 38px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(32, 169, 210, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: #355a6d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  backdrop-filter: blur(12px) saturate(120%);
}

.storefront-filter-bar button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #315b70;
  font-size: 20px;
  line-height: 1;
}

.landing-shell {
  min-height: 100vh;
  background: #f5f8f9;
  color: #102a36;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  padding: 10px clamp(20px, 5vw, 74px);
  border-bottom: 1px solid rgba(16, 42, 54, 0.11);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(18px) saturate(130%);
}

.landing-logo img {
  display: block;
  width: 192px;
  height: auto;
}

.landing-nav nav,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav a {
  color: #345563;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.landing-nav a:hover {
  color: #087eaa;
}

.landing-primary,
.landing-secondary,
.landing-signin {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 7px;
  font-weight: 750;
}

.landing-primary {
  border: 1px solid #f28b45;
  background: #f28b45;
  color: #102a36;
}

.landing-primary:hover {
  background: #ff9a55;
}

.landing-secondary,
.landing-signin {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.landing-nav .landing-signin {
  border-color: rgba(16, 42, 54, 0.18);
  background: #ffffff;
  color: #214656;
}

.landing-hero {
  position: relative;
  height: calc(100svh - 126px);
  min-height: 520px;
  max-height: 760px;
  padding: 64px clamp(22px, 7vw, 108px);
  background-color: #1d2023;
  background-image: url("./assets/sourcewise-hero.png");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 23, 0.16);
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, 52%);
  color: #ffffff;
}

.landing-kicker,
.landing-section-copy > span,
.landing-close > div > span {
  color: #6fd6ef;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-hero h1 {
  margin: 12px 0 18px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.landing-hero p {
  max-width: 580px;
  margin: 0;
  color: #e7f1f4;
  font-size: 19px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.landing-actions {
  margin-top: 28px;
}

.landing-signal-row {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #cbdade;
  font-size: 12px;
}

.landing-signal-row span {
  padding-left: 13px;
  border-left: 3px solid #20a9d2;
}

.landing-workspace {
  padding: 78px clamp(20px, 7vw, 108px) 86px;
  background: #f5f8f9;
}

.landing-section-copy {
  width: min(720px, 100%);
}

.landing-section-copy > span,
.landing-close > div > span {
  color: #087eaa;
}

.landing-section-copy h2,
.landing-close h2 {
  margin: 9px 0 12px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.landing-section-copy p {
  margin: 0;
  color: #5c7078;
  font-size: 16px;
  line-height: 1.6;
}

.landing-product-strip {
  margin-top: 36px;
  border: 1px solid rgba(16, 42, 54, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 55px rgba(16, 42, 54, 0.11);
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.65fr)) minmax(180px, 1fr);
  overflow: hidden;
}

.landing-product-identity,
.landing-preview-metric,
.landing-preview-chart {
  min-width: 0;
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid rgba(16, 42, 54, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-product-identity {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.landing-product-identity img {
  width: 54px;
  height: 54px;
}

.landing-product-identity div,
.landing-preview-metric {
  display: grid;
  gap: 5px;
}

.landing-product-strip small {
  color: #6b7e86;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-product-strip strong {
  color: #153d4d;
  font-size: 21px;
}

.landing-product-strip span {
  color: #698089;
  font-size: 11px;
}

.landing-preview-metric.good strong {
  color: #16804b;
}

.landing-preview-chart {
  border-right: 0;
  flex-direction: row;
  align-items: flex-end;
  gap: 7px;
}

.landing-preview-chart i {
  width: 12%;
  min-height: 8px;
  border-radius: 3px 3px 0 0;
  background: #20a9d2;
}

.landing-preview-chart i:nth-child(3n) {
  background: #f28b45;
}

.landing-capabilities,
.landing-workflow,
.landing-assurance {
  padding: 82px clamp(20px, 7vw, 108px);
}

.landing-capabilities {
  border-top: 1px solid rgba(16, 42, 54, 0.1);
  background: #ffffff;
}

.landing-capability-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 42, 54, 0.14);
  border-bottom: 1px solid rgba(16, 42, 54, 0.14);
}

.landing-capability-grid article {
  min-width: 0;
  min-height: 230px;
  padding: 30px 24px 28px 0;
  border-right: 1px solid rgba(16, 42, 54, 0.12);
}

.landing-capability-grid article:not(:first-child) {
  padding-left: 24px;
}

.landing-capability-grid article:last-child {
  border-right: 0;
}

.landing-capability-grid b {
  color: #f28b45;
  font-size: 13px;
}

.landing-capability-grid h3,
.landing-steps h3 {
  margin: 30px 0 10px;
  color: #153d4d;
  font-size: 18px;
  letter-spacing: 0;
}

.landing-capability-grid p,
.landing-steps p,
.landing-access p,
.landing-assurance p {
  margin: 0;
  color: #5c7078;
  font-size: 14px;
  line-height: 1.65;
}

.landing-workflow {
  background: #edf4f6;
}

.landing-steps {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.landing-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
}

.landing-steps li > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(8, 126, 170, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #087eaa;
  background: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

.landing-steps h3 {
  margin-top: 8px;
}

.landing-access {
  padding: 78px clamp(20px, 7vw, 108px);
  background: #173844;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: center;
}

.landing-access > div > span {
  color: #74d7ec;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-access h2 {
  margin: 10px 0 14px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.landing-access p {
  color: #c8d9de;
}

.landing-access dl {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.landing-access dl > div {
  min-height: 74px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.landing-access dt {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.landing-access dd {
  margin: 0;
  color: #b8cdd3;
  font-size: 13px;
}

.landing-assurance {
  background: #ffffff;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.landing-assurance a {
  flex: 0 0 auto;
  color: #087eaa;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.landing-close {
  min-height: 190px;
  padding: 46px clamp(20px, 7vw, 108px);
  background: #102a36;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-close h2 {
  margin-bottom: 0;
}

.landing-footer {
  min-height: 76px;
  padding: 18px clamp(20px, 7vw, 108px);
  background: #ffffff;
  color: #5d727b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.landing-footer-brand,
.landing-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-footer img {
  width: 34px;
  height: 34px;
}

.landing-footer a {
  color: #087eaa;
  text-decoration: none;
  font-weight: 700;
}

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 94px;
}

.legal-intro {
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(16, 42, 54, 0.15);
}

.legal-intro > span {
  color: #087eaa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-intro h1 {
  margin: 12px 0 14px;
  color: #102a36;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-intro p {
  max-width: 700px;
  margin: 0 0 18px;
  color: #526b75;
  font-size: 17px;
  line-height: 1.6;
}

.legal-intro small {
  color: #748991;
  font-size: 12px;
}

.legal-document {
  padding-top: 22px;
}

.legal-document section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(16, 42, 54, 0.1);
}

.legal-document h2 {
  margin: 0 0 10px;
  color: #153d4d;
  font-size: 19px;
  letter-spacing: 0;
}

.legal-document p {
  margin: 0;
  color: #536b75;
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .landing-nav nav > a {
    display: none;
  }

  .landing-hero-content {
    width: min(620px, 72%);
  }

  .landing-product-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .landing-capability-grid article:nth-child(-n+2) {
    border-bottom: 1px solid rgba(16, 42, 54, 0.12);
  }

  .landing-steps {
    gap: 24px;
  }

  .landing-access {
    grid-template-columns: 1fr;
  }

  .landing-product-identity,
  .landing-preview-chart {
    grid-column: span 3;
  }

  .landing-preview-chart {
    min-height: 110px;
    border-top: 1px solid rgba(16, 42, 54, 0.1);
  }
}

@media (max-width: 680px) {
  .landing-nav {
    min-height: 64px;
    padding: 9px 14px;
  }

  .landing-logo img {
    width: 148px;
  }

  .landing-nav .landing-signin {
    display: none;
  }

  .landing-nav .landing-primary {
    min-height: 38px;
    padding: 8px 12px;
  }

  .landing-hero {
    height: calc(100svh - 104px);
    min-height: 500px;
    padding: 46px 20px;
    background-position: 60% center;
  }

  .landing-hero::before {
    background: rgba(8, 18, 23, 0.48);
  }

  .landing-hero-content {
    width: 100%;
  }

  .landing-hero h1 {
    font-size: 38px;
  }

  .landing-hero p {
    max-width: 460px;
    font-size: 16px;
  }

  .landing-signal-row {
    margin-top: 30px;
    gap: 11px;
  }

  .landing-workspace {
    padding: 58px 16px 64px;
  }

  .landing-capabilities,
  .landing-workflow,
  .landing-assurance,
  .landing-access {
    padding: 58px 16px 64px;
  }

  .landing-section-copy h2,
  .landing-close h2,
  .landing-access h2 {
    font-size: 29px;
  }

  .landing-capability-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-capability-grid article,
  .landing-capability-grid article:not(:first-child) {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 42, 54, 0.12);
  }

  .landing-capability-grid article:last-child {
    border-bottom: 0;
  }

  .landing-capability-grid h3 {
    margin-top: 16px;
  }

  .landing-steps {
    gap: 30px;
  }

  .landing-access dl > div {
    grid-template-columns: 105px 1fr;
  }

  .landing-assurance {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-product-strip {
    grid-template-columns: 1fr;
  }

  .landing-product-identity,
  .landing-preview-chart {
    grid-column: auto;
  }

  .landing-product-identity,
  .landing-preview-metric,
  .landing-preview-chart {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 42, 54, 0.1);
  }

  .landing-close {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer nav {
    flex-wrap: wrap;
  }

  .legal-main {
    width: min(100% - 32px, 920px);
    padding: 52px 0 70px;
  }

  .legal-intro h1 {
    font-size: 34px;
  }
}

/* Public site, August 2026 refresh. */
.landing-v2 .landing-hero {
  height: calc(100svh - 112px);
  min-height: 560px;
  max-height: 780px;
  background-position: center 48%;
}

.landing-v2 .landing-hero::before {
  background: rgba(5, 18, 24, 0.28);
}

.landing-v2 .landing-hero-content {
  width: min(650px, 56%);
}

.landing-v2 .landing-hero h1 {
  margin-bottom: 12px;
}

.landing-v2 .landing-hero-lead {
  max-width: 610px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.25;
}

.landing-v2 .landing-hero-detail {
  max-width: 610px;
  margin-top: 12px;
  color: #dbe9ed;
  font-size: 16px;
  line-height: 1.6;
}

.landing-v2 .landing-signal-row {
  margin-top: 34px;
}

.landing-proof {
  min-height: 112px;
  padding: 0 clamp(20px, 7vw, 108px);
  border-bottom: 1px solid rgba(16, 42, 54, 0.12);
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-proof > div {
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid rgba(16, 42, 54, 0.1);
  display: grid;
  align-content: center;
  gap: 5px;
}

.landing-proof > div:first-child {
  padding-left: 0;
}

.landing-proof > div:last-child {
  border-right: 0;
}

.landing-proof strong {
  color: #153d4d;
  font-size: 20px;
}

.landing-proof span {
  color: #617780;
  font-size: 12px;
}

.landing-v2 .landing-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-v2 .landing-capability-grid article,
.landing-v2 .landing-capability-grid article:not(:first-child) {
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid rgba(16, 42, 54, 0.12);
  border-bottom: 1px solid rgba(16, 42, 54, 0.12);
}

.landing-v2 .landing-capability-grid article:nth-child(3n) {
  border-right: 0;
}

.landing-v2 .landing-capability-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.landing-v2 .landing-capability-grid h3 {
  margin-top: 24px;
}

.landing-everywhere {
  padding: 82px clamp(20px, 7vw, 108px);
  background: #173844;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  gap: clamp(46px, 8vw, 128px);
  align-items: center;
}

.landing-everywhere-copy > span,
.landing-free > div > span,
.landing-faq .landing-section-copy > span {
  color: #74d7ec;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-everywhere h2,
.landing-free h2 {
  margin: 10px 0 14px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.landing-everywhere-copy > p {
  max-width: 660px;
  margin: 0;
  color: #c8d9de;
  font-size: 15px;
  line-height: 1.7;
}

.landing-everywhere ul {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.landing-everywhere li {
  min-height: 64px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.landing-everywhere li strong {
  color: #ffffff;
  font-size: 13px;
}

.landing-everywhere li span {
  color: #b9cfd5;
  font-size: 12px;
  line-height: 1.45;
}

.landing-device-stage {
  min-height: 500px;
  display: grid;
  place-items: center;
}

.landing-phone {
  width: min(310px, 100%);
  aspect-ratio: 0.53;
  padding: 16px;
  border: 5px solid #0b222c;
  border-radius: 28px;
  background: rgba(247, 251, 252, 0.96);
  color: #153d4d;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-rows: 48px 36px 116px 78px 1fr 42px;
  gap: 10px;
  overflow: hidden;
}

.landing-phone-bar {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
}

.landing-phone-bar img {
  width: 28px;
  height: 28px;
}

.landing-phone-bar b {
  font-size: 15px;
}

.landing-phone-bar span,
.landing-phone small {
  color: #6d828a;
  font-size: 9px;
}

.landing-phone-search {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #b8cbd2;
  border-radius: 7px;
  background: #ffffff;
  color: #41606d;
  font-size: 11px;
}

.landing-phone-product {
  padding: 15px;
  border: 1px solid #c2d4da;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: center;
  gap: 5px;
}

.landing-phone-product span {
  color: #5b737c;
  font-size: 10px;
}

.landing-phone-product strong {
  color: #153d4d;
  font-size: 25px;
}

.landing-phone-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.landing-phone-metrics > span {
  min-width: 0;
  padding: 9px 5px;
  border: 1px solid #c8d8dd;
  border-radius: 7px;
  background: #ffffff;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
}

.landing-phone-metrics b {
  color: #16804b;
  font-size: 12px;
}

.landing-phone-chart {
  position: relative;
  min-height: 0;
  border: 1px solid #c8d8dd;
  border-radius: 8px;
  background-color: #ffffff;
  background-image: linear-gradient(#e3ecef 1px, transparent 1px), linear-gradient(90deg, #e3ecef 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%;
  overflow: hidden;
}

.landing-phone-chart i {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 2px;
  transform-origin: left center;
}

.landing-phone-chart i:nth-child(1) {
  top: 42%;
  background: #f28b45;
  transform: rotate(-4deg);
}

.landing-phone-chart i:nth-child(2) {
  top: 60%;
  background: #20a9d2;
  transform: rotate(6deg);
}

.landing-phone-chart i:nth-child(3) {
  top: 70%;
  background: #70aa72;
  transform: rotate(-10deg);
}

.landing-phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  color: #6b818a;
  font-size: 9px;
  text-align: center;
}

.landing-phone-tabs b {
  color: #087eaa;
}

.landing-free {
  padding: 68px clamp(20px, 7vw, 108px);
  background: #ecf8fb;
  color: #102a36;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
}

.landing-free > div > span {
  color: #087eaa;
}

.landing-free h2 {
  margin-bottom: 0;
}

.landing-free-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.landing-free-copy p {
  margin: 0;
  color: #4e6872;
  font-size: 14px;
  line-height: 1.7;
}

.landing-free-copy .landing-primary {
  flex: 0 0 auto;
}

.landing-assurance-links {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  text-align: right;
}

.landing-faq {
  padding: 82px clamp(20px, 7vw, 108px);
  border-top: 1px solid rgba(16, 42, 54, 0.1);
  background: #f5f8f9;
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 128px);
}

.landing-faq .landing-section-copy > span {
  color: #087eaa;
}

.landing-faq-list {
  border-top: 1px solid rgba(16, 42, 54, 0.16);
}

.landing-faq details {
  padding: 20px 0;
  border-bottom: 1px solid rgba(16, 42, 54, 0.16);
}

.landing-faq summary {
  color: #153d4d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.landing-faq details p {
  margin: 12px 0 0;
  color: #5c7078;
  font-size: 13px;
  line-height: 1.7;
}

.landing-faq a,
.legal-document a {
  color: #087eaa;
  font-weight: 750;
}

.landing-footer-brand small {
  color: #7b8e95;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .landing-v2 .landing-hero-content {
    width: min(620px, 74%);
  }

  .landing-v2 .landing-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-v2 .landing-capability-grid article,
  .landing-v2 .landing-capability-grid article:nth-child(3n) {
    border-right: 1px solid rgba(16, 42, 54, 0.12);
    border-bottom: 1px solid rgba(16, 42, 54, 0.12);
  }

  .landing-v2 .landing-capability-grid article:nth-child(2n) {
    border-right: 0;
  }

  .landing-v2 .landing-capability-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .landing-everywhere {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 42px;
  }

  .landing-free {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .legal-shell .landing-nav nav > a {
    display: inline-flex;
  }

  .legal-shell .landing-nav nav {
    gap: 12px;
  }

  .landing-v2 .landing-nav nav > a,
  .landing-v2 .landing-nav .landing-signin {
    display: none;
  }

  .landing-v2 .landing-nav .landing-primary {
    max-width: 145px;
    white-space: normal;
    line-height: 1.15;
  }

  .landing-v2 .landing-hero {
    height: calc(100svh - 94px);
    min-height: 560px;
    padding: 42px 18px;
    background-position: 62% center;
  }

  .landing-v2 .landing-hero::before {
    background: rgba(5, 18, 24, 0.6);
  }

  .landing-v2 .landing-hero-content {
    width: 100%;
  }

  .landing-v2 .landing-hero h1 {
    font-size: 40px;
  }

  .landing-v2 .landing-hero-lead {
    font-size: 20px;
  }

  .landing-v2 .landing-hero-detail {
    font-size: 14px;
  }

  .landing-v2 .landing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-v2 .landing-actions button {
    width: 100%;
  }

  .landing-proof {
    padding: 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-proof > div,
  .landing-proof > div:first-child {
    padding: 18px 12px;
    border-bottom: 1px solid rgba(16, 42, 54, 0.1);
  }

  .landing-proof > div:nth-child(2n) {
    border-right: 0;
  }

  .landing-proof > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .landing-v2 .landing-capability-grid {
    grid-template-columns: 1fr;
  }

  .landing-v2 .landing-capability-grid article,
  .landing-v2 .landing-capability-grid article:not(:first-child),
  .landing-v2 .landing-capability-grid article:nth-child(2n),
  .landing-v2 .landing-capability-grid article:nth-last-child(-n + 2) {
    min-height: 0;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 42, 54, 0.12);
  }

  .landing-v2 .landing-capability-grid article:last-child {
    border-bottom: 0;
  }

  .landing-everywhere,
  .landing-faq {
    padding: 58px 16px 64px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .landing-everywhere h2,
  .landing-free h2 {
    font-size: 29px;
  }

  .landing-device-stage {
    min-height: 0;
  }

  .landing-phone {
    width: min(300px, 94%);
  }

  .landing-free {
    padding: 52px 16px;
  }

  .landing-free-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-assurance-links {
    text-align: left;
  }
}

/* Compact, reusable card actions. */
.sas-shell .panel-refresh-button,
.sas-shell .inline-copy-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #236f9d;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
}

.sas-shell .panel-refresh-button:hover,
.sas-shell .inline-copy-button:hover {
  background: rgba(35, 111, 157, 0.12);
  color: #12567e;
}

.sas-shell .panel-refresh-button:disabled,
.sas-shell .inline-copy-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.panel-refresh-button svg,
.inline-copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sas-panel.is-refreshing .panel-refresh-button svg {
  animation: panel-refresh-spin 0.75s linear infinite;
}

.sas-panel.is-refreshing > .panel-body {
  opacity: 0.62;
  transition: opacity 120ms ease;
}

.sas-shell .sas-panel {
  position: relative;
}

.panel-card-loader {
  position: absolute;
  inset: 25px 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  color: #234c68;
  background: rgba(244, 249, 252, 0.48);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.panel-card-loader strong {
  font-size: 11px;
  font-weight: 700;
}

@keyframes panel-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.sas-product-details {
  min-width: 0;
}

.sas-product-title,
.product-identifier {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.sas-product-title h2,
.product-identifier span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sas-product-title .inline-copy-button,
.product-identifier .inline-copy-button {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: -3px;
}

.sas-product .stars {
  margin: 2px 0;
  font-size: 17px;
  line-height: 1;
}

.sas-product .stars span {
  font-size: 10px;
  vertical-align: 2px;
}

.sas-shell .product-link-row {
  padding-left: 0;
}

.sas-shell .product-link-row a {
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(47, 102, 154, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #1b5d92;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sas-shell .product-link-row a:hover {
  background: rgba(16, 117, 194, 0.12);
  color: #0e4f80;
}

.fee-source-chip {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.fee-source-chip.live {
  background: rgba(58, 154, 81, 0.13);
  color: #25753a;
}

.fee-source-chip.pending {
  background: rgba(214, 139, 27, 0.14);
  color: #86550c;
}

.fee-provider-error {
  min-height: 70px;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #6e552a;
  background: rgba(255, 248, 228, 0.62);
}

.fee-provider-error span {
  line-height: 1.35;
}

.fee-provider-error a {
  color: #176da5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sas-panel[data-api="/api/source-hub/profit-calculator/numbers"] > .panel-body {
  position: relative;
  min-height: 126px;
}

.calculator-card-content {
  transition: opacity 140ms ease, filter 140ms ease;
}

.calculator-card-content.is-loading {
  opacity: 0.34;
  filter: blur(1px);
  pointer-events: none;
}

.calculator-mini-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #234c68;
  background: rgba(244, 249, 252, 0.42);
  backdrop-filter: blur(2px);
}

.mini-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(37, 123, 180, 0.22);
  border-top-color: #257bb4;
  border-radius: 50%;
  animation: panel-refresh-spin 0.72s linear infinite;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 39, 49, 0.28);
  backdrop-filter: blur(8px) saturate(1.08);
}

.add-product-dialog {
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(113, 140, 158, 0.38);
  border-radius: 14px;
  background: rgba(248, 252, 254, 0.9);
  box-shadow: 0 22px 60px rgba(24, 49, 65, 0.24);
}

.dialog-header {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(100, 129, 148, 0.25);
}

.dialog-header h2 {
  margin: 0 0 3px;
  font-size: 16px;
}

.dialog-header span {
  color: #617989;
  font-size: 11px;
}

.dialog-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4b6575;
  font-size: 22px;
  line-height: 1;
}

.add-product-form {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.add-product-form .full,
.listing-fulfillment,
.dialog-error,
.dialog-actions {
  grid-column: 1 / -1;
}

.listing-fulfillment {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: 0;
}

.listing-fulfillment legend {
  margin-bottom: 5px;
  color: #486173;
  font-size: 11px;
  font-weight: 700;
}

.listing-fulfillment label {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 112, 137, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #486173;
  cursor: pointer;
}

.listing-fulfillment label:has(input:checked) {
  border-color: #257bb4;
  background: #257bb4;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(37, 123, 180, 0.13);
}

.listing-fulfillment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dialog-error {
  padding: 9px 10px;
  border: 1px solid rgba(178, 71, 71, 0.25);
  border-radius: 8px;
  background: rgba(255, 233, 233, 0.72);
  color: #8d3030;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-actions button {
  min-height: 32px;
}

.dialog-actions button[type="submit"] {
  min-width: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

@media (max-width: 520px) {
  .add-product-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .add-product-form .full,
  .listing-fulfillment,
  .dialog-error,
  .dialog-actions {
    grid-column: 1;
  }
}

/* Icon-only actions stay quiet until hovered. */
.sas-shell .panel .panel-refresh-button,
.sas-shell .panel .inline-copy-button {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 2px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5c6f7b !important;
  box-shadow: none !important;
}

.sas-shell .panel .panel-refresh-button:hover,
.sas-shell .panel .inline-copy-button:hover {
  border: 0 !important;
  background: transparent !important;
  color: #176f9f !important;
}

.sas-shell .panel .panel-refresh-button:disabled,
.sas-shell .panel .inline-copy-button:disabled {
  background: transparent !important;
  color: #9aa8b0 !important;
}

.sas-product-title .inline-copy-button,
.product-identifier .inline-copy-button {
  flex-basis: 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: -2px;
}

/* Glass treatment for the dense settings workspace. */
.sas-settings-page {
  width: min(920px, calc(100vw - 32px));
  color: #183344;
}

.sas-settings-page .settings-title-row {
  margin-bottom: 22px;
  border-bottom-color: rgba(91, 119, 135, 0.2);
}

.sas-settings-page .settings-title-row h1 {
  color: #183344;
  font-size: 14px;
}

.sas-settings-profile,
.sas-settings-card {
  border: 1px solid rgba(102, 132, 148, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 24px rgba(42, 75, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
}

.sas-settings-panel-title {
  min-height: 28px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(102, 132, 148, 0.19);
  background: rgba(218, 231, 236, 0.5);
  color: #254759;
  font-weight: 700;
}

.profile-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 7px;
  border-color: rgba(102, 132, 148, 0.2);
  border-radius: 7px;
  background: rgba(247, 251, 252, 0.62);
}

.sas-settings-tabs {
  gap: 5px;
  margin-bottom: 14px;
}

.sas-settings-tabs button,
.sas-settings-tabs button:first-child,
.sas-settings-tabs button:last-child {
  border: 1px solid rgba(77, 113, 136, 0.2);
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.55);
  color: #36596c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sas-settings-tabs button.active {
  border-color: rgba(24, 116, 169, 0.32);
  background: rgba(32, 126, 181, 0.13);
  color: #135e88;
}

.sas-setting-control input,
.sas-setting-control select,
.sas-input-group,
.settings-segment {
  border-color: rgba(93, 126, 145, 0.23);
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.62);
  color: #183344;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sas-input-group span {
  border-color: rgba(93, 126, 145, 0.18);
  background: rgba(224, 235, 239, 0.46);
}

.settings-segment button {
  background: transparent;
  color: #36596c;
}

.settings-segment button.active {
  background: rgba(31, 119, 177, 0.16);
  color: #135e88;
}

.settings-switch span {
  background: rgba(95, 116, 127, 0.42);
  box-shadow: inset 0 1px 3px rgba(43, 65, 76, 0.15);
}

.settings-switch input:checked + span {
  background: rgba(25, 128, 176, 0.72);
}

.help-dot {
  background: rgba(31, 116, 166, 0.78);
}

/* Buy-box ownership gets the full panel width before the scannable seller table. */
.buybox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
}

.buybox-pie-chart {
  min-width: 0;
  min-height: 185px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(91, 119, 135, 0.18);
}

.buybox-pie-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
}

.buybox-table-wrap {
  min-width: 0;
  max-height: 360px;
  overflow: auto;
}

.device-settings {
  overflow: hidden;
  border: 1px solid rgba(77, 113, 136, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 34px rgba(31, 53, 75, 0.08), inset 0 1px rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(120%);
}

.device-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(77, 113, 136, 0.16);
  background: rgba(235, 243, 247, 0.62);
}

.device-settings-summary > div {
  display: grid;
  gap: 3px;
}

.device-settings-summary strong {
  color: #183f55;
  font-size: 14px;
}

.device-settings-summary span,
.device-footnote,
.device-details small {
  color: #67808d;
  font-size: 11px;
}

.device-refresh {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.device-refresh svg,
.device-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-list {
  display: grid;
}

.device-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid rgba(77, 113, 136, 0.13);
}

.device-row:first-child {
  border-top: 0;
}

.device-row.current {
  background: rgba(36, 145, 190, 0.055);
}

.device-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 125, 165, 0.2);
  border-radius: 8px;
  color: #247ca6;
  background: rgba(255, 255, 255, 0.64);
}

.device-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.device-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #203d4d;
  font-size: 12px;
  font-weight: 700;
}

.device-current {
  border-radius: 999px;
  padding: 2px 7px;
  color: #197044;
  background: rgba(49, 172, 101, 0.13);
  font-size: 9px;
}

.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #607a88;
  font-size: 10px;
}

.device-revoke {
  min-width: 72px;
}

.device-state {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: #607a88;
  font-size: 11px;
}

.device-error {
  margin: 10px 14px 0;
  border: 1px solid rgba(184, 67, 67, 0.24);
  border-radius: 7px;
  padding: 8px 10px;
  color: #9f3333;
  background: rgba(255, 238, 238, 0.72);
  font-size: 11px;
}

.device-footnote {
  margin: 0;
  padding: 9px 14px 11px;
  border-top: 1px solid rgba(77, 113, 136, 0.13);
}

@media (max-width: 620px) {
  .device-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .device-revoke {
    grid-column: 2;
    justify-self: start;
  }
}

.subscription-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding: 2px;
}

.account-manage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(62, 113, 143, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  color: #175f88;
  text-decoration: none;
}

.account-manage-link:hover {
  background: rgba(35, 126, 180, 0.12);
}

@media (max-width: 760px) {
  .sas-status-line {
    display: none;
  }

  .account-page {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .account-grid,
  .subscription-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-panel,
  .subscription-card,
  .account-panel .field,
  .account-panel .info-row {
    min-width: 0;
  }

  .account-panel .info-row {
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  }

  .account-panel .info-row strong,
  .subscription-card strong,
  .subscription-card small {
    overflow-wrap: anywhere;
  }
}
