:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --line: #d2d2d7;
  --line-strong: #b9bbc2;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --green: #238636;
  --amber: #b97700;
  --red: #d70015;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  font-family:
    Pretendard,
    "Pretendard Variable",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.86);
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span:last-child {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.nav-item.is-active,
.nav-item:hover {
  color: var(--text);
}

.workspace {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 54px 22px 72px;
}

.topbar {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
}

.topbar h1 {
  max-width: 860px;
  margin: 10px auto 0;
  color: var(--text);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.topbar p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.link-intake,
.panel,
.kpi-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.link-intake {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.selected-product {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.status-pill,
.state-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.link-form {
  display: grid;
  gap: 10px;
}

.link-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
}

input::placeholder {
  color: var(--subtle);
}

.link-form button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.link-form button:disabled {
  background: #8bbcf4;
  cursor: wait;
}

.form-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.lookup-loading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f5faff, #ffffff);
  padding: 14px 16px;
}

.lookup-loading[hidden] {
  display: none;
}

.lookup-loading strong,
.lookup-loading span {
  display: block;
}

.lookup-loading strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.lookup-loading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 113, 227, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.product-spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 54px);
}

.product-spotlight[hidden] {
  display: none;
}

.detail-media {
  display: grid;
  min-height: clamp(260px, 34vw, 440px);
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f5f5f7);
}

.detail-media img {
  display: block;
  width: min(100%, 500px);
  max-height: 430px;
  object-fit: contain;
}

.detail-media span {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  font-size: 28px;
  font-weight: 800;
}

.detail-content {
  display: grid;
  min-width: 0;
  gap: 16px;
}

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

.detail-platform {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.detail-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.detail-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.detail-price {
  display: block;
  color: var(--text);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
}

.detail-price-row {
  display: grid;
  gap: 6px;
}

.detail-price-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-facts span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.detail-facts strong {
  color: var(--text);
}

.price-brief {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.price-brief > span {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.price-brief dl {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.price-brief dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-brief dt,
.price-brief dd {
  margin: 0;
}

.price-brief dt {
  color: var(--muted);
  font-size: 14px;
}

.price-brief dd {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.price-brief dd small {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.price-brief > strong {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--red);
  font-size: 17px;
}

.price-brief p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.shared-panel div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.shared-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shared-panel strong {
  color: var(--text);
  font-size: 18px;
}

.shared-panel small {
  color: var(--subtle);
  font-size: 12px;
}

.recommendation-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.06), rgba(255, 255, 255, 0.96));
  padding: 16px;
}

.recommendation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recommendation-head span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.recommendation-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

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

.recommendation-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

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

.recommendation-copy > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.recommendation-prices b {
  color: var(--text);
  font-size: 17px;
}

.recommendation-prices small {
  color: var(--subtle);
  font-size: 12px;
}

.recommendation-copy em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.recommendation-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.recommendation-link.is-disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.buy-index {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.buy-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.buy-index-head strong {
  color: var(--text);
  font-size: 18px;
}

.buy-meter {
  position: relative;
  height: 10px;
  overflow: visible;
  border-radius: 999px;
  background: linear-gradient(90deg, #0071e3 0 25%, #8ec5ff 25% 50%, #f2d37b 50% 75%, #ff3b30 75% 100%);
}

.buy-meter i {
  position: absolute;
  top: -6px;
  left: clamp(0%, var(--score), 100%);
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 11px solid var(--red);
  transform: translateX(-50%);
}

.buy-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.buy-index.is-empty .buy-meter {
  background: var(--line);
}

.buy-index.is-empty .buy-meter i {
  display: none;
}

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

.alert-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.alert-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.alert-grid strong {
  color: var(--text);
  font-size: 15px;
}

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

.primary-link,
.detail-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  border: 1px solid var(--red);
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 59, 48, 0.18);
}

.primary-link.is-disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.detail-actions button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.detail-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.detail-disclosure {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.kpi-card small {
  color: var(--subtle);
}

.affiliate-strip {
  margin-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

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

.affiliate-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.affiliate-card:hover {
  border-color: var(--blue);
}

.affiliate-image {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

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

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

.affiliate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.affiliate-meta strong,
.affiliate-meta em {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.affiliate-meta em {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}

.affiliate-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.affiliate-price {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.affiliate-disclosure {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.graph-section {
  margin-top: 16px;
}

.panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.chart-frame {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.92)),
    var(--surface-soft);
}

#price-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.chart-summary div {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.chart-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.chart-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 18px;
}

.table-panel {
  margin-top: 16px;
}

tbody tr {
  cursor: pointer;
}

tbody tr.is-selected {
  background: rgba(0, 113, 227, 0.05);
}

tbody tr.is-selected .product-thumb {
  border-color: var(--blue);
  color: var(--blue);
}

tbody tr.is-selected .product-thumb.has-image {
  color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 14px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.product-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.product-thumb.has-image {
  padding: 0;
  background: #ffffff;
  color: transparent;
}

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

.product-cell strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell .product-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.product-cell .product-shared {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.row-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

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

.state-pill.is-ready {
  background: rgba(35, 134, 54, 0.1);
  color: var(--green);
}

.state-pill.is-watch {
  background: rgba(185, 119, 0, 0.1);
  color: var(--amber);
}

.state-pill.is-limited {
  background: var(--blue-soft);
  color: var(--blue);
}

.buy-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.buy-link:hover {
  text-decoration: underline;
}

.buy-link.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.buy-link.is-disabled:hover {
  text-decoration: none;
}

.seo-section {
  margin-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

.seo-copy {
  max-width: 840px;
}

.seo-copy h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-copy p,
.seo-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.seo-copy p {
  margin: 16px 0 0;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.seo-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.seo-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.seo-grid p {
  margin: 10px 0 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px 16px;
}

.faq-list summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 10px 0 0;
}

.site-footer {
  margin-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.site-footer p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 900px) {
  .sidebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .nav-list {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .seo-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-media {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .workspace {
    padding: 34px 16px 56px;
  }

  .topbar {
    text-align: left;
  }

  .topbar h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .section-heading {
    flex-direction: column;
  }

  .input-row,
  .kpi-grid,
  .affiliate-items,
  .chart-summary,
  .alert-grid,
  .shared-panel,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .product-spotlight {
    padding: 18px;
  }

  .detail-media {
    min-height: 240px;
  }

  .detail-header {
    flex-direction: column;
  }

  .recommendation-head {
    flex-direction: column;
  }

  .recommendation-head small {
    text-align: left;
  }

  .recommendation-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .recommendation-link {
    grid-column: 1 / -1;
  }

  .detail-header h2 {
    font-size: 25px;
  }

  .detail-price {
    font-size: 32px;
  }

  .product-cell strong {
    max-width: 210px;
  }
}
