:root {
  --sg-navy: #2e325e;
  --sg-gold: #f3ab0f;
  --sg-ink: #151820;
  --sg-muted: #667085;
  --sg-line: #dde3ea;
  --sg-soft: #f4f6f8;
  --sg-green: #176b5b;
  --sg-red: #b42318;
  --sg-blue: #235d9f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fafc, #eef2f6 420px),
    var(--sg-soft);
  background-size: auto;
  color: var(--sg-ink);
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.sg-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sg-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--sg-line);
  overflow-y: auto;
  box-shadow: 16px 0 40px rgba(21, 24, 32, 0.04);
}

.sg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--sg-line);
  margin-bottom: 14px;
}

.sg-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sg-navy);
  border-radius: 8px;
  color: var(--sg-navy);
  font-weight: 900;
}

.sg-brand-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.sg-brand-sub {
  margin: 2px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 700;
}

.sg-menu-label {
  padding: 14px 12px 7px;
  color: var(--sg-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sg-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #303642;
  font-size: 14px;
  font-weight: 750;
}

.sg-nav-link:hover {
  color: var(--sg-navy);
  background: #f7f8fb;
}

.sg-nav-link.active {
  color: var(--sg-navy);
  background: #f0f1f7;
}

.sg-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--sg-gold);
}

.sg-nav-link i {
  width: 18px;
  color: var(--sg-muted);
  text-align: center;
}

.sg-main {
  min-width: 0;
}

.sg-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 227, 234, 0.7);
}

.sg-page {
  width: min(1180px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.sg-page.wide {
  width: min(1280px, calc(100vw - 320px));
}

.sg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sg-page > section:first-child {
  padding: 4px 0 16px;
  border-bottom: 1px solid rgba(221, 227, 234, 0.8);
}

.sg-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--sg-gold);
}

.sg-title {
  margin: 10px 0 8px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.sg-lead {
  max-width: 820px;
  color: var(--sg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.sg-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 24, 32, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sg-card:hover {
  transform: translateY(-1px);
  border-color: #cfd6df;
  box-shadow: 0 12px 30px rgba(21, 24, 32, 0.065);
}

.sg-card-header {
  padding: 18px 20px 0;
}

.sg-card-body {
  padding: 20px;
}

.sg-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.sg-desc {
  color: var(--sg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.sg-stat {
  padding: 20px;
}

.sg-stat-label {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sg-stat-value {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
  color: var(--sg-navy);
  font-weight: 900;
  letter-spacing: 0;
}

.fw-black {
  font-weight: 900 !important;
}

.sg-stat-note {
  margin-top: 8px;
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.sg-badge.gold {
  color: #7a5c00;
  background: #fff4cf;
  border-color: #ffe39b;
}

.sg-badge.green {
  color: var(--sg-green);
  background: #dff1ec;
}

.sg-badge.blue {
  color: var(--sg-blue);
  background: #e4effc;
}

.sg-badge.red {
  color: var(--sg-red);
  background: #fde8e5;
}

.sg-badge.gray {
  color: #596170;
  background: #eef1f5;
}

.sg-section {
  margin-top: 20px;
}

.sg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}

.sg-table {
  margin: 0;
  vertical-align: middle;
}

.sg-table th {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #f8fafc;
}

.sg-table td {
  color: #303642;
  font-size: 14px;
}

.sg-table tbody tr:hover td {
  background: #fbfcfe;
}

.sg-money {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.sg-timeline {
  display: grid;
  gap: 12px;
}

.sg-timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.sg-dot {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sg-navy);
  background: #f0f1f7;
  font-size: 13px;
  font-weight: 900;
}

.sg-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sg-flow-step {
  position: relative;
  padding: 18px;
  min-height: 132px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 24, 32, 0.045);
}

.sg-portal {
  min-height: 100vh;
  background: #fff;
}

.portal-top {
  border-bottom: 1px solid var(--sg-line);
  background: #fff;
}

.portal-gov {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--sg-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--sg-line);
}

.portal-header {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sg-ink);
  font-size: 22px;
  font-weight: 900;
}

.portal-logo .mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sg-navy);
  border-radius: 9px;
  color: var(--sg-navy);
}

.portal-search {
  display: flex;
  align-items: center;
  border: 2px solid var(--sg-navy);
  border-radius: 999px;
  padding: 5px 6px 5px 20px;
}

.portal-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  font-size: 15px;
}

.portal-search button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-navy);
  color: #fff;
}

.portal-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 850;
}

.portal-quick {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 18px 0 24px;
}

.portal-quick a {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #303642;
  font-size: 13px;
  font-weight: 800;
}

.portal-quick img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: #fff;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 8px 0 28px;
}

.portal-banner,
.portal-login {
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  background: #fff;
}

.portal-banner {
  padding: 34px 38px;
}

.portal-banner h1 {
  margin: 0 0 14px;
  color: var(--sg-ink);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.portal-banner p {
  max-width: 680px;
  color: var(--sg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.portal-login {
  padding: 22px;
}

.portal-auth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.portal-auth {
  min-height: 92px;
  padding: 14px 8px;
  border: 1px solid var(--sg-line);
  border-radius: 9px;
  text-align: center;
  color: #303642;
  font-size: 12px;
  font-weight: 800;
}

.portal-auth i {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-navy);
  font-size: 24px;
}

.portal-bottom {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 18px 0 38px;
  border-top: 1px solid var(--sg-line);
}

.portal-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #303642;
  font-size: 13px;
  font-weight: 800;
}

.portal-bottom i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  color: var(--sg-navy);
}

.link-builder {
  display: grid;
  grid-template-columns: 170px minmax(180px, 1fr) auto;
  gap: 10px;
}

.sg-funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sg-funnel .step-box {
  padding: 14px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.sg-funnel strong {
  display: block;
  color: var(--sg-navy);
  font-size: 24px;
  line-height: 1;
}

.sg-funnel span {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 800;
}

.settlement-summary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.settlement-amount {
  padding: 24px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fff;
}

.settlement-amount .label {
  color: var(--sg-muted);
  font-size: 13px;
  font-weight: 900;
}

.settlement-amount .value {
  margin-top: 8px;
  color: var(--sg-navy);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.settlement-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.settlement-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sg-line);
  color: #303642;
  font-size: 14px;
}

.settlement-line strong {
  font-variant-numeric: tabular-nums;
}

.settlement-line.minus strong {
  color: var(--sg-red);
}

.settlement-account {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fff;
}

.account-box {
  padding: 14px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #f8fafc;
}

.receipt-card {
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fff;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sg-line);
}

.receipt-body {
  padding: 18px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.receipt-item {
  padding: 14px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.receipt-item span {
  display: block;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
}

.receipt-item strong {
  display: block;
  margin-top: 6px;
  color: var(--sg-ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sg-line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--sg-muted);
  font-size: 13px;
  font-weight: 850;
}

.approved-assets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.asset-card {
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fff;
}

.asset-thumb {
  position: relative;
  aspect-ratio: 1.45 / 1;
  background: #f8fafc;
  border-bottom: 1px solid var(--sg-line);
}

.asset-thumb.square {
  aspect-ratio: 1 / 1;
}

.asset-thumb.poster {
  aspect-ratio: 3 / 4;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asset-body {
  padding: 14px;
}

.asset-title {
  margin: 0;
  color: var(--sg-ink);
  font-size: 15px;
  font-weight: 900;
}

.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.asset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.sg-flow-step::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--sg-line);
  border-right: 1px solid var(--sg-line);
  background: #fff;
  z-index: 1;
}

.sg-flow-step:last-child::after {
  display: none;
}

.sg-callout {
  padding: 18px 20px;
  background: #fffdf5;
  border: 1px solid #ffe0a3;
  border-left: 5px solid var(--sg-gold);
  border-radius: 8px;
}

.sg-copybox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
}

.sg-copybox code {
  flex: 1;
  color: var(--sg-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sg {
  --bs-btn-bg: var(--sg-navy);
  --bs-btn-border-color: var(--sg-navy);
  --bs-btn-hover-bg: #22264a;
  --bs-btn-hover-border-color: #22264a;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-gold {
  --bs-btn-bg: var(--sg-gold);
  --bs-btn-border-color: var(--sg-gold);
  --bs-btn-hover-bg: #db9707;
  --bs-btn-hover-border-color: #db9707;
  --bs-btn-color: #151820;
  --bs-btn-hover-color: #151820;
}

.form-label {
  color: #303642;
  font-size: 13px;
  font-weight: 850;
}

.form-control,
.form-select {
  border-color: var(--sg-line);
  border-radius: 8px;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e9edf2;
}

.progress-bar {
  background: var(--sg-navy);
}

.partner-console {
  width: min(1280px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

/* partner-dashboard now shares the standard .sg-* shell (sidebar/topbar/brand/nav/badge)
   so its scale matches every other page. Page-specific styling lives in .pc-* below. */

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

.pc-breadcrumb {
  color: #8a9099;
  font-size: 12px;
  font-weight: 750;
}

.pc-header h1 {
  margin: 5px 0 5px;
  color: #17191f;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.pc-header p {
  max-width: 680px;
  margin: 0;
  color: #626b77;
  font-size: 14.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pc-actions .btn {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.pc-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 24, 32, 0.035);
}

.pc-metric {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e8eaee;
}

.pc-metric:last-child {
  border-right: 0;
}

.pc-metric span {
  display: block;
  color: #6f7783;
  font-size: 12px;
  font-weight: 800;
}

.pc-metric strong {
  display: block;
  margin-top: 7px;
  color: #17191f;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pc-metric em {
  display: block;
  margin-top: 8px;
  color: #8a9099;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.pc-metric em.up {
  color: #157f58;
}

.pc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.pc-main-stack,
.pc-side-stack {
  display: grid;
  gap: 14px;
}

.pc-panel {
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 24, 32, 0.035);
}

.pc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f2;
}

.pc-panel-head.compact {
  align-items: center;
  padding-bottom: 14px;
}

.pc-panel-head h2 {
  margin: 0;
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.pc-panel-head p {
  margin: 5px 0 0;
  color: #737b87;
  font-size: 14px;
  line-height: 1.5;
}

.pc-panel-head span {
  color: #737b87;
  font-size: 12px;
  font-weight: 800;
}

.pc-link {
  color: #343944;
  font-size: 13px;
  font-weight: 800;
}

.pc-link:hover {
  color: #111827;
}

.pc-performance {
  overflow: hidden;
}

.pc-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf0f2;
  background: #fbfcfd;
}

.pc-filter-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  color: #59616d;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pc-filter-row span.active {
  border-color: #24262d;
  color: #fff;
  background: #24262d;
}

.pc-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 16px;
}

.pc-funnel-step {
  min-width: 0;
  padding: 0 13px;
  border-right: 1px solid #edf0f2;
}

.pc-funnel-step:first-child {
  padding-left: 0;
}

.pc-funnel-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.pc-funnel-step span {
  display: block;
  color: #737b87;
  font-size: 12px;
  font-weight: 800;
}

.pc-funnel-step strong {
  display: block;
  margin-top: 8px;
  color: #17191f;
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.pc-funnel-step em {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #8a9099;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.pc-bar,
.pc-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff3;
}

.pc-bar {
  margin-top: 14px;
}

.pc-bar i,
.pc-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #24262d;
}

.pc-insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf0f2;
}

.pc-insight-row div {
  padding: 14px 18px;
  border-right: 1px solid #edf0f2;
}

.pc-insight-row div:last-child {
  border-right: 0;
}

.pc-insight-row b,
.pc-insight-row span {
  display: block;
}

.pc-insight-row b {
  color: #343944;
  font-size: 12px;
  font-weight: 850;
}

.pc-insight-row span {
  margin-top: 4px;
  color: #737b87;
  font-size: 12.5px;
}

.pc-segment {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  background: #f7f8fa;
}

.pc-segment button {
  min-height: 26px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  background: transparent;
  color: #626b77;
  font-size: 12px;
  font-weight: 800;
}

.pc-segment button.active {
  background: #fff;
  color: #17191f;
  box-shadow: inset 0 0 0 1px #e1e4e8;
}

.pc-list-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f2;
  background: #fbfcfd;
}

.pc-list-toolbar label {
  min-width: 0;
  margin: 0;
}

.pc-list-toolbar label > span {
  display: block;
  margin-bottom: 4px;
  color: #737b87;
  font-size: 11px;
  font-weight: 850;
}

.pc-list-toolbar .form-control,
.pc-list-toolbar .form-select,
.pc-list-toolbar .btn {
  min-height: 31px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}

.pc-table {
  margin: 0;
}

.pc-table th {
  padding: 10px 16px;
  border-bottom-color: #e1e4e8;
  background: #fbfbfc;
  color: #737b87;
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
}

.pc-table td {
  padding: 12px 16px;
  border-bottom-color: #edf0f2;
  color: #343944;
  font-size: 14px;
  vertical-align: middle;
}

.pc-table tbody tr:last-child td {
  border-bottom: 0;
}

.pc-table tbody tr:hover td {
  background: #fafbfc;
}

.pc-money {
  color: #17191f;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.pc-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.pc-status.blue {
  color: #225d94;
  background: #eaf3fb;
}

.pc-status.amber {
  color: #7d5b00;
  background: #fff3cf;
}

.pc-status.green {
  color: #157f58;
  background: #e4f3ed;
}

.pc-sla {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.pc-sla.on {
  color: #176b5b;
  background: #eef8f3;
}

.pc-sla.warn {
  color: #7d5b00;
  background: #fff7df;
}

.pc-sla.late {
  color: #9f2f23;
  background: #fff0ee;
}

.pc-settlement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #edf0f2;
}

.pc-settlement-grid div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #edf0f2;
}

.pc-settlement-grid div:last-child {
  border-right: 0;
}

.pc-settlement-grid span,
.pc-settlement-grid strong,
.pc-settlement-grid em {
  display: block;
}

.pc-settlement-grid span {
  color: #737b87;
  font-size: 12px;
  font-weight: 850;
}

.pc-settlement-grid strong {
  margin-top: 7px;
  color: #17191f;
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.pc-settlement-grid em {
  margin-top: 7px;
  color: #8a9099;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.pc-table-compact th,
.pc-table-compact td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.pc-link-card {
  padding-bottom: 16px;
}

.pc-link-card label {
  display: block;
  margin: 14px 16px 7px;
  color: #737b87;
  font-size: 11px;
  font-weight: 850;
}

.pc-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  margin: 0 16px;
}

.pc-copy code {
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  color: #24262d;
  background: #f7f8fa;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-copy .btn {
  border-color: #e1e4e8;
  border-radius: 6px;
}

.pc-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 16px 0;
}

.pc-tool-grid a {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  color: #343944;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pc-tool-grid a:hover {
  border-color: #cbd1d8;
  background: #fafbfc;
}

.pc-tool-grid i {
  color: #737b87;
  font-size: 16px;
}

.pc-task-list {
  display: grid;
}

.pc-task-list a,
.pc-asset-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f2;
  color: #343944;
}

.pc-asset-list {
  display: grid;
}

.pc-asset-list a {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.pc-task-list a:last-child,
.pc-asset-list a:last-child {
  border-bottom: 0;
}

.pc-task-list a:hover,
.pc-asset-list a:hover {
  background: #fafbfc;
}

.pc-task-list i,
.pc-asset-list i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  color: #626b77;
  background: #fff;
}

.pc-asset-list i {
  color: #24262d;
  background: #f7f8fa;
}

.pc-task-list b,
.pc-task-list small,
.pc-asset-list b,
.pc-asset-list small {
  display: block;
}

.pc-task-list b,
.pc-asset-list b {
  color: #24262d;
  font-size: 14px;
  font-weight: 850;
}

.pc-task-list small,
.pc-asset-list small {
  margin-top: 2px;
  color: #8a9099;
  font-size: 12.5px;
}

.pc-asset-list em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  color: #59616d;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.pc-grade {
  padding-bottom: 16px;
}

.pc-grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 16px 10px;
}

.pc-grade-row strong {
  color: #17191f;
  font-size: 24px;
  font-weight: 850;
}

.pc-grade-row em {
  color: #737b87;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.pc-grade .pc-progress {
  margin: 0 16px;
}

.pc-grade p {
  margin: 12px 16px 0;
  color: #737b87;
  font-size: 12.5px;
  line-height: 1.55;
}

.sg-mobile-nav {
  display: none;
}

@media (max-width: 1080px) {
  .sg-layout {
    display: block;
  }

  .sg-sidebar {
    display: none;
  }

  .sg-mobile-nav {
    display: block;
  }

  .sg-page,
  .sg-page.wide {
    width: calc(100vw - 32px);
    max-width: 960px;
  }

  .sg-main {
    overflow-x: hidden;
  }

  .sg-topbar {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.94);
  }

  .sg-flow {
    grid-template-columns: 1fr;
  }

  .sg-flow-step::after {
    display: none;
  }

  .portal-header,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-quick {
    grid-template-columns: repeat(4, 1fr);
  }

  .portal-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-builder {
    grid-template-columns: 1fr;
  }

  .partner-console {
    width: calc(100vw - 32px);
    max-width: 960px;
    padding: 18px 0 38px;
  }

  body[data-page="partner-dashboard"] .sg-layout {
    display: block;
  }

  .pc-header,
  .pc-grid {
    grid-template-columns: 1fr;
  }

  .pc-header {
    display: grid;
  }

  .pc-actions {
    justify-content: flex-start;
  }

  .pc-grid {
    display: grid;
  }

  .pc-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-metric-strip,
  .pc-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-list-toolbar {
    grid-template-columns: minmax(180px, 1fr) repeat(2, 150px);
  }

  .pc-list-toolbar .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pc-metric:nth-child(2),
  .pc-funnel-step:nth-child(2) {
    border-right: 0;
  }

  .pc-metric:nth-child(-n+2) {
    border-bottom: 1px solid #e8eaee;
  }

  .pc-funnel-step {
    padding: 12px 14px;
    border-bottom: 1px solid #edf0f2;
  }

  .pc-funnel-step:nth-child(-n+2) {
    padding-top: 0;
  }

  .pc-funnel-step:nth-child(n+3) {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .sg-title {
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: 0;
  }

  .sg-lead {
    font-size: 15px;
  }

  .portal-gov {
    flex-direction: column;
  }

  .portal-quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-banner {
    padding: 24px;
  }

  .portal-banner h1 {
    font-size: 26px;
  }

  .portal-bottom,
  .sg-funnel {
    grid-template-columns: 1fr;
  }

  .settlement-summary,
  .receipt-grid,
  .timeline-row,
  .approved-assets {
    grid-template-columns: 1fr;
  }

  .asset-actions {
    grid-template-columns: 1fr;
  }

  .sg-card-body,
  .sg-stat {
    padding: 16px;
  }

  .sg-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-console {
    width: calc(100vw - 24px);
    padding-top: 14px;
  }

  .pc-header h1 {
    font-size: 24px;
  }

  .pc-header p {
    max-width: 330px;
  }

  .pc-metric-strip,
  .pc-funnel,
  .pc-insight-row,
  .pc-list-toolbar,
  .pc-settlement-grid,
  .pc-side-stack {
    grid-template-columns: 1fr;
  }

  .pc-metric,
  .pc-funnel-step,
  .pc-insight-row div,
  .pc-settlement-grid div {
    border-right: 0;
    border-bottom: 1px solid #edf0f2;
  }

  .pc-metric:last-child,
  .pc-funnel-step:last-child,
  .pc-insight-row div:last-child,
  .pc-settlement-grid div:last-child {
    border-bottom: 0;
  }

  .pc-funnel-step {
    padding: 0 0 14px;
  }

  .pc-funnel-step + .pc-funnel-step {
    padding-top: 14px;
  }

  .pc-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pc-table th,
  .pc-table td {
    white-space: nowrap;
  }

  .sg-copybox {
    align-items: stretch;
    flex-direction: column;
  }

  .sg-copybox code {
    white-space: normal;
    word-break: break-all;
  }
}
