.auth-page {
  min-height: calc(100dvh - 48px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: var(--bg-2);
}
.auth-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.auth-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--bg-2);
  border-radius: 980px;
  margin-bottom: 20px;
}
.role-btn {
  border: 0;
  background: transparent;
  border-radius: 980px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.role-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.role-panel { display: none; margin-bottom: 20px; }
.role-panel.is-active { display: block; }
.role-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.role-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.auth-form .optional {
  font-weight: 400;
  color: var(--muted);
}
.auth-form input {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  background: #fff;
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
}
.auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-alt {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-alt a { color: var(--accent); }
.oauth-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.google-gis {
  display: grid;
  justify-items: stretch;
  min-height: 44px;
}
.google-gis iframe,
.google-gis > div {
  width: 100% !important;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.oauth-btn:hover {
  background: var(--bg-2);
  border-color: #c7c7cc;
}
.oauth-btn.is-unconfigured {
  opacity: 0.72;
}
.oauth-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff2f2;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

/* Seller Central */
.sc-body { background: #f3f3f3; min-height: 100dvh; }
.sc-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}
.sc-side {
  background: #232f3e;
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}
.sc-brand {
  display: block;
  padding: 8px 20px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.sc-brand small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #ff9900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-nav { list-style: none; margin: 0; padding: 0; }
.sc-nav a {
  display: block;
  padding: 11px 20px;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  border-left: 3px solid transparent;
}
.sc-nav a:hover,
.sc-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-left-color: #ff9900;
}
.sc-side-foot {
  display: grid;
  gap: 8px;
  padding: 20px;
  margin-top: 24px;
}
.sc-side-foot a,
.sc-side-foot button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.sc-side-foot a:hover,
.sc-side-foot button:hover { color: #fff; }
.sc-main { padding: 0; }
.sc-view { display: none; }
.sc-view.is-active { display: block; }
.sc-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: #0f1111;
  font-size: 14px;
  line-height: 1.7;
}
.sc-copy {
  margin: 0 0 14px;
  color: #565959;
  font-size: 14px;
  line-height: 1.5;
}
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #e3e6e6;
}
.sc-top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.sc-top .meta { color: var(--muted); font-size: 13px; }
.sc-content { padding: 24px 28px 40px; }
.sc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.sc-stat {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 8px;
  padding: 18px 16px;
}
.sc-stat b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sc-stat span { color: #565959; font-size: 13px; }
.sc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.sc-panel {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 8px;
  padding: 18px;
}
.sc-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sc-table th,
.sc-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}
.sc-table th { color: #565959; font-weight: 600; }
.sc-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #e7f6ec;
  color: #067d62;
}
.sc-pill.warn { background: #fff5e6; color: #b87900; }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d5d9d9;
  background: linear-gradient(#f7f8f8, #e7e9ec);
  color: #0f1111;
  cursor: pointer;
}
.sc-btn.primary {
  background: linear-gradient(#ffd814, #ffce12);
  border-color: #fcd200;
}
.sc-btn.linkish {
  background: transparent;
  border: 0;
  color: #007185;
  padding: 0;
}
.buyer-shell { background: var(--bg-2); min-height: calc(100dvh - 48px); padding: 40px 0 64px; }
.buyer-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.buyer-side,
.buyer-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.buyer-side h2,
.buyer-main h1 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
}
.buyer-side a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.buyer-side a:hover,
.buyer-side a.active { color: var(--accent); font-weight: 600; }
.buyer-view { display: none; }
.buyer-view.is-active { display: block; }
.buyer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.buyer-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-2);
}
.buyer-card b { display: block; font-size: 22px; margin-bottom: 4px; }
.buyer-card span { color: var(--muted); font-size: 13px; }
.buyer-portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.buyer-portals a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .2s ease;
}
.buyer-portals a:hover { border-color: var(--accent); }
.buyer-portals strong { display: block; margin-bottom: 4px; }
.buyer-portals span { color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .sc-shell { grid-template-columns: 1fr; }
  .sc-side { position: relative; height: auto; }
  .sc-stats, .sc-grid, .buyer-grid, .buyer-cards, .buyer-portals {
    grid-template-columns: 1fr;
  }
}
