* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --bg: #f7f8fb;
  --sidebar: #fff;
  --panel: #fff;
  --surface: #f3f4f8;
  --hover: #f8f8fc;
  --text: #20222d;
  --secondary: #505563;
  --muted: #5d6270;
  --border: #e4e6ee;
  --subtle-border: #eef0f5;
  --accent: #218838;
  --accent-soft: #e8f5eb;
  --on-accent: #fff;
  --mint: var(--accent);
  --mint-soft: var(--accent-soft);
  --amber: #926018;
  --amber-soft: #fff5df;
  --avatar: #eaeaf2;
  --focus: #218838;
  --shadow: 0 12px 50px #1d223117;
  --backdrop: #15172470;
  color-scheme: light;
  color: var(--text);
  background: var(--bg);
}
:root[data-theme="dark"] {
  --bg: #101116;
  --sidebar: #14151b;
  --panel: #17181f;
  --surface: #1e2029;
  --hover: #1c1e27;
  --text: #edeef5;
  --secondary: #bcc0cc;
  --muted: #adb2c0;
  --border: #2c2e3a;
  --subtle-border: #252733;
  --accent: #39a653;
  --accent-soft: #1b3022;
  --on-accent: #101116;
  --mint: var(--accent);
  --mint-soft: var(--accent-soft);
  --amber: #c28a40;
  --amber-soft: #342c1f;
  --avatar: #292c39;
  --focus: #39a653;
  --shadow: 0 18px 70px #0006;
  --backdrop: #07080bb0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #101116;
    --sidebar: #14151b;
    --panel: #17181f;
    --surface: #1e2029;
    --hover: #1c1e27;
    --text: #edeef5;
    --secondary: #bcc0cc;
    --muted: #adb2c0;
    --border: #2c2e3a;
    --subtle-border: #252733;
    --accent: #39a653;
    --accent-soft: #1b3022;
    --on-accent: #101116;
    --mint: var(--accent);
    --mint-soft: var(--accent-soft);
    --amber: #c28a40;
    --amber-soft: #342c1f;
    --avatar: #292c39;
    --focus: #39a653;
    --shadow: 0 18px 70px #0006;
    --backdrop: #07080bb0;
    color-scheme: dark;
  }
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
p {
  margin: 0;
  line-height: 1.6;
  color: var(--secondary);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  z-index: 20;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px;
  border-radius: 6px;
}
.skip-link:focus {
  transform: none;
}
.app-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 28px 16px 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: sticky;
  top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 700;
  letter-spacing: -0.8px;
  font-size: 24px;
  width: fit-content;
}
.brand > span:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-caption {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 550;
  padding-top: 3px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -2px;
  padding: 0 3px 3px 0;
}
.brand-mark > span {
  font-size: 27px;
}
.workspace-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 10px;
  margin-top: 33px;
}
.workspace-avatar,
.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--avatar);
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.workspace-card strong,
.account strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.workspace-card small,
.account small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.workspace-tag {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: auto;
}
.sidebar-nav {
  margin-top: 30px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.25px;
  color: var(--muted);
  font-weight: 600;
  padding: 0 12px;
  margin-bottom: 13px;
}
.product-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px 14px;
  color: var(--secondary);
}
.product-label > .icon {
  color: var(--accent);
  width: 17px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  background: var(--surface);
}
.nav-link .icon {
  color: var(--accent);
  width: 16px;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-bottom .nav-label {
  margin-bottom: 10px;
}
.theme-control {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.theme-control button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--secondary);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  padding: 7px 5px;
  font-size: 10px;
  min-height: 32px;
}
.theme-control button .icon {
  width: 13px;
  height: 13px;
}
.theme-control button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.theme-control button:hover {
  color: var(--text);
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--border);
  margin: 22px -16px 0;
  padding: 19px 17px;
}
.account form {
  margin-left: auto;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  color: var(--text);
  background: var(--surface);
}
.icon-button .icon {
  width: 16px;
}
.mobile-logout {
  display: none;
}
.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--secondary);
}
.breadcrumbs > span:last-child {
  color: var(--text);
}
.breadcrumbs > .icon {
  width: 11px;
  height: 11px;
  color: var(--muted);
}
.read-only {
  font-size: 10px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.read-only .icon {
  width: 12px;
  height: 12px;
}
main {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 36px;
  flex: 1;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.heading h1 {
  margin: 13px 0 10px;
}
.heading p {
  font-size: 12px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.25px;
  font-weight: 600;
  color: var(--muted);
}
.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.product-icon .icon {
  width: 15px;
  height: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 550;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}
.button .icon {
  width: 14px;
  height: 14px;
}
.button:hover {
  background: var(--surface);
}
.button.primary {
  background: #218838;
  border-color: #218838;
  color: #fff;
}
.button.primary:hover {
  filter: brightness(0.95);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 18px;
  --tone: var(--muted);
  --tone-bg: var(--surface);
}
.mint {
  --tone: var(--mint);
  --tone-bg: var(--mint-soft);
}
.green {
  --tone: var(--accent);
  --tone-bg: var(--accent-soft);
}
.amber {
  --tone: var(--amber);
  --tone-bg: var(--amber-soft);
}
.stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--secondary);
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-bg);
  color: var(--tone);
  border-radius: 6px;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}
.stat-icon .icon {
  width: 15px;
  height: 15px;
}
.stat-value {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.5px;
  display: block;
  margin: 18px 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat p {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--tone, var(--muted));
  border-radius: 50%;
  flex-shrink: 0;
}
.summary-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  padding: 18px 2px 27px;
  flex-wrap: wrap;
}
.summary-strip > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.summary-strip strong {
  font-weight: 550;
  color: var(--secondary);
}
.summary-strip .tiny-dot {
  margin-right: 3px;
}
.warning-dot {
  background: var(--amber);
}
.summary-strip .summary-total {
  margin-left: auto;
}
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
}
.list {
  /* Table scrolling is contained by .table-scroll; allow filter focus rings. */
  overflow: visible;
}
.list-heading {
  padding: 23px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count-tag {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--secondary);
}
.list-heading p {
  font-size: 10px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 24px 22px;
}
.field {
  min-width: 0;
}
.search-field {
  position: relative;
  flex: 1;
  max-width: 350px;
  min-width: 180px;
}
.input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
}
.input-icon .icon {
  width: 15px;
  height: 15px;
}
input,
select {
  font-size: 11px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 36px;
  padding: 8px 11px;
  max-width: 100%;
}
input {
  width: 100%;
  padding-left: 34px;
}
input::placeholder {
  color: var(--muted);
}
select {
  padding-right: 28px;
  cursor: pointer;
}
.clear {
  font-size: 10px;
  color: var(--secondary);
  padding: 8px;
}
.clear:hover {
  text-decoration: underline;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
}
th {
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--subtle-border);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--hover);
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th:last-child,
td:last-child {
  padding-right: 24px;
}
.shop-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.shop-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.shop-cell strong {
  font-weight: 550;
  font-size: 11px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.shop-cell small {
  margin-top: 4px;
}
.date-cell {
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  border-radius: 5px;
  padding: 4px 0;
  background: var(--surface);
  color: var(--secondary);
}
.badge.active {
  --tone: var(--mint);
  background: var(--mint-soft);
  color: var(--mint);
}
.plan-badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 3px 0;
  font-size: 9px;
  background: var(--tone-bg, var(--surface));
  color: var(--tone, var(--secondary));
  border: 0;
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  font-size: 10px;
  padding: 7px 9px;
  white-space: nowrap;
}
.contact:hover {
  color: var(--text);
  background: var(--surface);
}
.contact .icon {
  width: 12px;
  height: 12px;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10px;
}
.pagination a,
.pagination .page-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  min-height: 29px;
  padding: 5px 9px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.pagination a:hover {
  background: var(--surface);
}
.pagination a[aria-current] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.pagination .page-direction {
  color: var(--secondary);
}
.pagination .disabled {
  opacity: 0.45;
}
.ellipsis {
  padding: 5px;
  color: var(--muted);
}
.footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  margin: 17px 1px 0;
  max-width: 830px;
}
.footnote .icon {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  padding: 18px 36px;
}
.empty {
  text-align: center;
  padding: 50px 20px;
}
.empty h3 {
  margin: 16px 0 8px;
}
.empty p {
  font-size: 12px;
  max-width: 420px;
  margin: auto;
}
.empty-icon,
.dialog-icon,
.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 10px;
}
.empty-icon {
  margin: auto;
}
dialog {
  width: calc(100% - 32px);
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(3px);
}
.dialog-content {
  padding: 28px;
}
.dialog-icon {
  margin-bottom: 22px;
}
.dialog-content h2 {
  font-size: 21px;
  margin: 12px 0 8px;
  letter-spacing: -0.5px;
}
.dialog-content > p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
dl {
  margin: 24px 0;
  line-height: 1.5;
  border-block: 1px solid var(--border);
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
}
dl > div + div {
  border-top: 1px solid var(--subtle-border);
}
dt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--secondary);
}
dt .icon {
  width: 15px;
  height: 15px;
}
dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dialog-prose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
  font-size: 13px;
}
.dialog-prose p {
  margin: 0;
  line-height: 1.5;
}
.dialog-content form {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.dialog-content .button {
  min-width: 80px;
}
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.auth-header .theme-control {
  width: 230px;
}
.auth-layout .main-column {
  flex: 1;
}
.auth-layout main {
  display: grid;
  place-items: center;
}
.login {
  max-width: 440px;
  width: 100%;
  padding: 40px;
  margin: 30px 0;
}
.login-icon {
  margin-bottom: 26px;
  background: var(--accent-soft);
  border-color: transparent;
}
.login h1 {
  font-size: 33px;
  margin: 17px 0;
  letter-spacing: -1px;
  line-height: 1.25;
}
.login > p {
  font-size: 13px;
}
.login .primary {
  margin: 28px 0 21px;
  min-height: 42px;
  width: 100%;
  font-size: 12px;
  justify-content: space-between;
}
.login .login-note {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-note .icon {
  width: 12px;
  height: 12px;
}
.error {
  padding: 12px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 18px;
}
.failure {
  padding: 32px;
  max-width: 650px;
}
.failure h1 {
  font-size: 27px;
  margin: 20px 0 14px;
}
.failure p {
  font-size: 13px;
}
.failure .button {
  margin-top: 24px;
}
.busy:before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .busy:before {
    animation: none;
  }
  dialog::backdrop {
    backdrop-filter: none;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 44px 48px;
  }
  .topbar {
    padding-inline: 48px;
  }
  .stat p {
    font-size: 11px;
  }
  .stat h2 {
    font-size: 13px;
  }
  .stat {
    padding: 24px;
  }
  .stat-value {
    font-size: 40px;
  }
  table,
  .shop-cell strong {
    font-size: 13px;
  }
  td small {
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  .app-layout {
    grid-template-columns: 206px minmax(0, 1fr);
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat h2 {
    font-size: 10px;
  }
  .stat p {
    font-size: 9px;
  }
  .stat-icon {
    width: 23px;
    height: 23px;
  }
  .summary-strip .summary-total {
    display: none;
  }
  .theme-control button {
    gap: 4px;
    font-size: 9px;
  }
  .brand {
    padding-inline: 7px;
  }
  .account {
    padding-inline: 12px;
  }
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat h2 {
    font-size: 12px;
  }
  .stat p {
    font-size: 10px;
  }
  .stat-value {
    margin-block: 16px;
  }
  .list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .app-layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    padding: 0;
  }
  .workspace-card,
  .sidebar-nav,
  .sidebar-bottom > .nav-label,
  .account {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    align-self: center;
  }
  .sidebar .theme-control {
    width: auto;
  }
  .sidebar .theme-control button {
    padding: 6px 8px;
    min-height: 30px;
  }
  .sidebar .theme-control button > span {
    display: none;
  }
  .sidebar .theme-control .icon {
    width: 15px;
    height: 15px;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
    gap: 12px;
  }
  .breadcrumbs {
    font-size: 11px;
  }
  .read-only {
    font-size: 9px;
    margin-left: auto;
  }
  .mobile-logout {
    display: block;
  }
  main {
    padding: 26px 20px;
  }
  .heading {
    align-items: start;
    gap: 10px;
  }
  .heading p {
    font-size: 11px;
    max-width: 240px;
  }
  .heading h1 {
    font-size: 28px;
  }
  .heading .refresh {
    font-size: 10px;
    padding: 7px 9px;
    margin-top: 26px;
  }
  .heading .refresh .icon {
    width: 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat h2 {
    font-size: 10px;
  }
  .stat p {
    font-size: 9px;
    align-items: flex-start;
  }
  .stat p .tiny-dot {
    margin-top: 5px;
  }
  .stat-value {
    font-size: 30px;
  }
  .summary-strip {
    gap: 10px;
    padding-block: 17px 23px;
    font-size: 9px;
  }
  .list-heading {
    padding: 20px 17px 15px;
  }
  .filters {
    padding: 0 17px 19px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .field:has(select) {
    flex: 1;
  }
  .field select {
    width: 100%;
  }
  .filters .clear {
    padding-left: 0;
  }
  .table-footer {
    padding: 15px 17px;
    flex-direction: column;
    align-items: start;
  }
  .pagination {
    gap: 3px;
  }
  .footnote {
    font-size: 9px;
  }
  .auth-header {
    padding: 20px;
    flex-wrap: wrap;
  }
  .auth-header .theme-control {
    width: 210px;
  }
  .login {
    padding: 27px;
    margin: 20px 0;
  }
  .login h1 {
    font-size: 30px;
  }
  footer {
    padding: 20px;
    font-size: 9px;
  }
  .dialog-content {
    padding: 23px;
  }
  .dialog-content h2 {
    font-size: 20px;
  }
}

/* Readable density: secondary labels remain legible on normal laptop displays. */
.heading p {
  font-size: 13px;
}
.eyebrow,
.nav-label {
  font-size: 10px;
}
.stat h2 {
  font-size: 12px;
}
.stat p {
  font-size: 11px;
  align-items: flex-start;
}
.stat p .tiny-dot {
  margin-top: 6px;
}
.summary-strip,
.list-heading p,
.result-count,
.pagination {
  font-size: 11px;
}
.button,
input,
select {
  font-size: 12px;
}
table,
.shop-cell strong {
  font-size: 12px;
}
th {
  font-size: 11px;
  padding: 12px 14px;
}
td {
  padding: 15px 14px;
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
th:last-child,
td:last-child {
  padding-right: 20px;
}
td small {
  font-size: 10px;
}
.plan-badge + small {
  max-width: 150px;
  white-space: normal;
  line-height: 1.5;
}
.badge,
.plan-badge,
.contact {
  font-size: 11px;
}
.footnote,
footer {
  font-size: 10px;
}
@media (max-width: 1200px) {
  .stat h2 {
    font-size: 11px;
  }
  .stat p {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .stat h2 {
    font-size: 11px;
  }
  .stat p {
    font-size: 10px;
  }
  .heading p {
    font-size: 12px;
  }
  .summary-strip {
    font-size: 10px;
  }
  .theme-control button {
    min-height: 36px;
  }
  .contact {
    min-height: 36px;
  }
  .pagination a,
  .pagination .page-direction {
    min-height: 36px;
    min-width: 32px;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .brand-caption {
    display: none;
  }
}

/* Quiet surfaces and an icon rail by default. Text contrast remains unchanged. */
:root {
  --bg: #fafafb;
  --sidebar: #f6f7f9;
  --panel: #fbfbfc;
  --surface: #f0f1f4;
  --hover: #f4f5f7;
  --border: #e6e7ec;
  --subtle-border: #eceef2;
}
:root[data-theme="dark"] {
  --bg: #13141a;
  --sidebar: #111218;
  --panel: #15161c;
  --surface: #1b1d25;
  --hover: #191b22;
  --border: #272932;
  --subtle-border: #23252d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #13141a;
    --sidebar: #111218;
    --panel: #15161c;
    --surface: #1b1d25;
    --hover: #191b22;
    --border: #272932;
    --subtle-border: #23252d;
  }
}
.brand-symbol {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.sidebar-toggle:hover {
  background: var(--surface);
  color: var(--text);
}
.sidebar-toggle .icon {
  width: 15px;
  height: 15px;
}
:root[data-sidebar="expanded"] .sidebar-toggle .icon {
  transform: rotate(180deg);
}
.sidebar .workspace-card {
  background: none;
  border: 0;
  padding: 8px 10px;
}
.sidebar .nav-link {
  border-color: transparent;
  background: var(--surface);
}
.sidebar .theme-control {
  background: none;
  border-color: transparent;
}
.stat {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.stat + .stat {
  border-left: 1px solid var(--subtle-border);
}
.stat-icon {
  background: none;
}
.stats {
  gap: 0;
  padding: 5px 0;
}
.stat {
  padding: 18px 26px;
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  padding-right: 0;
}
.list {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.list-heading {
  padding: 23px 0 18px;
}
.filters {
  padding: 0 0 22px;
}
th {
  background: transparent;
  border-top: 0;
}
.table-footer {
  padding-inline: 0;
}
.summary-strip {
  border-bottom: 1px solid var(--subtle-border);
  margin-bottom: 10px;
  padding-bottom: 23px;
}
.shop-avatar {
  background: transparent;
  border-color: var(--subtle-border);
}
.badge,
.plan-badge {
  background: transparent;
}
.contact {
  border-color: transparent;
}
.contact:hover {
  background: var(--surface);
}
.topbar {
  border-bottom-color: var(--subtle-border);
}
:root:not([data-sidebar="expanded"]) .sidebar .brand-wordmark {
  display: none;
}
@media (min-width: 761px) {
  .app-layout {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  :root[data-sidebar="expanded"] .app-layout {
    grid-template-columns: 228px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 14px 0;
    overflow-y: auto;
  }
  :root:not([data-sidebar="expanded"]) .sidebar-brand {
    flex-direction: column;
    gap: 24px;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .brand {
    padding: 0;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .workspace-card,
  :root:not([data-sidebar="expanded"]) .sidebar .nav-label,
  :root:not([data-sidebar="expanded"]) .sidebar .product-label,
  :root:not([data-sidebar="expanded"]) .sidebar .nav-link > span,
  :root:not([data-sidebar="expanded"]) .sidebar .theme-control button > span,
  :root:not([data-sidebar="expanded"]) .sidebar .account > span,
  :root:not([data-sidebar="expanded"]) .sidebar .account > div {
    display: none;
  }
  :root:not([data-sidebar="expanded"]) .sidebar-nav {
    margin-top: 25px;
  }
  :root:not([data-sidebar="expanded"]) .nav-link {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  :root:not([data-sidebar="expanded"]) .nav-link .icon {
    width: 18px;
    height: 18px;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .theme-control {
    flex-direction: column;
    padding: 0;
    gap: 6px;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .theme-control button {
    width: 42px;
    min-height: 36px;
    padding: 8px;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .theme-control .icon {
    width: 16px;
    height: 16px;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .account {
    margin: 18px 0 0;
    padding: 16px 0;
    justify-content: center;
  }
  :root:not([data-sidebar="expanded"]) .sidebar .account form {
    margin: 0;
  }
  :root[data-sidebar="expanded"] .sidebar {
    padding-inline: 14px;
  }
  :root[data-sidebar="expanded"] .sidebar .brand {
    padding: 0;
    gap: 8px;
  }
  :root[data-sidebar="expanded"] .sidebar .brand-caption {
    display: none;
  }
}
@media (max-width: 1000px) {
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(2) {
    padding-right: 0;
  }
  .stat {
    padding-block: 18px;
  }
  .stats {
    row-gap: 6px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 18px;
    gap: 12px;
  }
  .sidebar-brand {
    gap: 16px;
  }
  .sidebar .brand-symbol {
    width: 30px;
    height: 30px;
  }
  .sidebar .brand-wordmark {
    font-size: 20px;
  }
  .sidebar .sidebar-bottom {
    margin-left: auto;
  }
  :root[data-sidebar="expanded"] .sidebar-nav {
    display: block;
    order: 3;
    width: 100%;
    margin-top: 0;
  }
  :root[data-sidebar="expanded"] .sidebar-nav .nav-label,
  :root[data-sidebar="expanded"] .sidebar-nav .product-label {
    display: none;
  }
  .stat {
    padding-inline: 16px;
  }
  .stat:first-child,
  .stat:nth-child(3) {
    padding-left: 0;
  }
  .stat:nth-child(2),
  .stat:last-child {
    padding-right: 0;
  }
  .stat + .stat {
    border-color: var(--subtle-border);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .list-heading {
    padding-inline: 0;
  }
  .filters {
    padding-inline: 0;
  }
  .summary-strip {
    gap: 10px;
  }
}
.sidebar .account {
  margin-inline: 0;
  padding-inline: 0;
}
@media (max-width: 760px) {
  .sidebar {
    flex-direction: row;
  }
}

/* Readable dashboard type and a complete, wrapping shop list on small screens. */
.app-layout {
  font-size: 15px;
}
.app-layout h2 {
  font-size: 17px;
}
.app-layout .heading p,
.app-layout .shop-cell strong,
.app-layout table,
.app-layout .button,
.app-layout input,
.app-layout select {
  font-size: 14px;
}
.app-layout .stat h2,
.app-layout .stat p,
.app-layout .summary-strip,
.app-layout .list-heading p,
.app-layout .result-count,
.app-layout .pagination,
.app-layout th,
.app-layout td small,
.app-layout .badge,
.app-layout .plan-badge,
.app-layout .contact,
.app-layout .breadcrumbs,
.app-layout .account small,
.app-layout .count-tag {
  font-size: 13px;
}
.app-layout .eyebrow,
.app-layout .nav-label,
.app-layout .footnote,
.app-layout footer,
.app-layout .read-only,
.app-layout .theme-control button,
.app-layout .shop-avatar {
  font-size: 12px;
}
.mobile-cell-label {
  display: none;
}
@media (max-width: 760px) {
  .app-layout main {
    padding: 24px 16px;
  }
  .heading {
    flex-wrap: wrap;
  }
  .heading > div,
  .shop-cell > div {
    min-width: 0;
  }
  .heading .refresh {
    margin-top: 0;
  }
  .app-layout input,
  .app-layout select {
    font-size: 16px;
    min-height: 44px;
  }
  .filters > .field {
    min-width: 0;
  }
  .filters select {
    max-width: 100%;
  }
  .summary-strip > span {
    min-width: 0;
    flex-wrap: wrap;
  }
  .table-scroll {
    overflow: visible;
  }
  .table-scroll table,
  .table-scroll tbody {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
  }
  .table-scroll td,
  .table-scroll td:first-child,
  .table-scroll td:last-child {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-cell-label {
    display: block;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 5px;
  }
  .shop-cell strong,
  .shop-cell small {
    overflow-wrap: anywhere;
  }
  .plan-badge + small {
    max-width: none;
  }
  .table-scroll .contact {
    min-height: 44px;
    padding: 10px 0;
    white-space: normal;
  }
  .table-scroll .badge,
  .table-scroll .plan-badge {
    padding-left: 0;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination a,
  .pagination .page-direction {
    min-height: 40px;
  }
}

/* Match the website wordmark and keep headers compact at every breakpoint. */
.brand,
.sidebar .brand,
.sidebar .brand-wordmark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.045em;
  gap: 9px;
}
.brand-symbol,
.sidebar .brand-symbol {
  width: 20px;
  height: 20px;
  transform: translateY(-2px);
}
.auth-header {
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  flex-wrap: nowrap;
  gap: 12px;
}
.auth-header .brand {
  padding: 0;
  flex-shrink: 0;
}
.topbar {
  height: 56px;
  min-height: 56px;
}
@media (max-width: 760px) {
  .auth-header {
    padding-inline: 16px;
  }
  .auth-header .theme-control {
    width: auto;
  }
  .auth-header .theme-control button {
    padding: 8px;
    min-width: 32px;
  }
  .auth-header .theme-control button > span {
    display: none;
  }
  .sidebar {
    min-height: 56px;
    padding: 8px 16px;
  }
}

/* Filled labels keep text legible in both themes. */
:root {
  --pill-green: #218838;
  --pill-orange: #926018;
  --pill-neutral: #535b69;
}
.app-layout .table-scroll .badge,
.app-layout .table-scroll .plan-badge {
  background: var(--pill-neutral);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.app-layout .table-scroll .badge.active,
.app-layout .table-scroll .plan-badge.green {
  background: var(--pill-green);
}
.app-layout .table-scroll .plan-badge.amber {
  background: var(--pill-orange);
}
.read-only {
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-width: 760px) {
  .topbar {
    padding-inline: 16px;
    gap: 8px;
  }
  .topbar .breadcrumbs > span:first-child,
  .topbar .breadcrumbs > .icon {
    display: none;
  }
}
