:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --text: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --purple: #7c3aed;
  --dark: #111827;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --radius: 16px;
}

/* Shopping automation admin */
.shopping-admin-page {
  background: #f5f7fb;
  color: #111827;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
    #f5f7fb;
  color: #111827;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.login-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.login-brand i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
}

.login-copy h1,
.login-copy p,
.login-status {
  margin: 0;
}

.login-copy h1 {
  color: #111827;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.login-copy p:not(.section-kicker) {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.55;
}

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

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.login-form .primary-action {
  width: 100%;
}

.login-status {
  min-height: 20px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.shopping-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.shopping-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #101827;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-sidebar .side-brand {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.shopping-sidebar .side-brand i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
}

.shopping-sidebar .side-nav {
  display: grid;
  gap: 6px;
}

.shopping-sidebar .side-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.shopping-sidebar .side-nav a:hover,
.shopping-sidebar .side-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.shopping-sidebar .side-nav i {
  width: 18px;
  text-align: center;
}

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

.shopping-header,
.shopping-panel,
.metric-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

.shopping-header h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.shopping-header p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.header-actions,
.button-row,
.build-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.metric-card {
  min-height: 148px;
  padding: 18px;
}

.metric-card p {
  margin: 14px 0 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
}

.metric-card small {
  color: #94a3b8;
}

.overview-alert-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

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

.overview-alert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.overview-alert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.overview-alert-card.active {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.overview-alert-card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.overview-alert-card.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.overview-alert-card > i {
  color: #64748b;
  font-size: 20px;
}

.overview-alert-card.active > i {
  color: #16a34a;
}

.overview-alert-card.warning > i {
  color: #d97706;
}

.overview-alert-card.danger > i {
  color: #dc2626;
}

.overview-alert-card strong,
.overview-alert-card p,
.overview-alert-card small {
  display: block;
}

.overview-alert-card strong {
  color: #111827;
}

.overview-alert-card p {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.45;
}

.overview-alert-card small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.overview-alert-card a {
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.overview-alert-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ops-alert-card {
  margin-bottom: 14px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.metric-icon.teal {
  color: #0f766e;
  background: #ccfbf1;
}

.metric-icon.blue {
  color: #2563eb;
  background: #dbeafe;
}

.metric-icon.amber {
  color: #b45309;
  background: #fef3c7;
}

.metric-icon.violet {
  color: #7c3aed;
  background: #ede9fe;
}

.shopping-panel {
  padding: 22px;
  margin-bottom: 18px;
}

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

.panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 21px;
  letter-spacing: 0;
}

.panel-head p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  margin-bottom: 14px;
}

.collector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 14px;
}

.collector-grid label {
  display: grid;
  gap: 7px;
}

.collector-grid label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.collector-grid textarea,
.collector-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.collector-grid textarea {
  min-height: 190px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.collector-grid input {
  height: 42px;
  padding: 0 12px;
}

.collector-fields {
  display: grid;
  gap: 12px;
}

.file-drop {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop i {
  color: #0f766e;
  font-size: 28px;
}

.file-drop span,
.format-box p,
.inline-status {
  color: #64748b;
  font-size: 13px;
}

.format-box {
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.format-box strong {
  display: block;
  margin-bottom: 8px;
}

.format-box code {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.field-block,
.settings-grid label {
  display: grid;
  gap: 7px;
}

.field-block span,
.settings-grid label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.field-block textarea,
.settings-grid input,
.settings-grid select,
.settings-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.field-block textarea,
.settings-grid textarea {
  min-height: 120px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.settings-grid input,
.settings-grid select {
  height: 42px;
  padding: 0 12px;
}

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

.settings-wide {
  grid-column: 1 / -1;
}

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

.backup-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.backup-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.backup-card-head > i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #0f766e;
  background: #ccfbf1;
}

.backup-card-head h3,
.backup-card-head p,
.backup-warning {
  margin: 0;
}

.backup-card-head h3 {
  color: #111827;
}

.backup-card-head p {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.backup-summary,
.restore-preview {
  display: grid;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.backup-summary > span,
.restore-preview > span {
  color: #64748b;
  font-size: 13px;
}

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

.backup-summary-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.backup-summary-grid strong,
.backup-summary-grid small {
  display: block;
}

.backup-summary-grid strong {
  color: #111827;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.backup-summary-grid small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.backup-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  line-height: 1.45;
}

.backup-warning i {
  margin-top: 2px;
}

.backup-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.backup-file-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  padding: 9px 0 0;
  border-top: 1px solid #f1f5f9;
}

.backup-file-list strong {
  color: #334155;
  font-size: 13px;
}

.backup-file-list span {
  color: #64748b;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.backup-file-picker {
  display: grid;
  gap: 7px;
}

.backup-file-picker span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.backup-file-picker input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.button-row {
  margin-top: 14px;
}

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

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

.analysis-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.analysis-card span,
.keyword-controls label span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.analysis-card strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 24px;
}

.analysis-card small {
  color: #94a3b8;
}

.analysis-detail {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.analysis-detail p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.analysis-detail p + p {
  margin-top: 4px;
}

.analysis-detail ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #92400e;
  font-size: 13px;
}

.preview-table-wrap {
  margin-top: 14px;
}

.keyword-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-controls label {
  display: grid;
  gap: 7px;
}

.keyword-controls input {
  width: 160px;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.keyword-list {
  margin-top: 16px;
}

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

.keyword-card {
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.keyword-card strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.keyword-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.keyword-card small {
  display: block;
  margin-top: 8px;
  color: #0f766e;
  font-weight: 800;
}

.product-db-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, auto) minmax(140px, auto);
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.product-db-toolbar label {
  display: grid;
  gap: 7px;
}

.product-db-toolbar span,
.product-editor-form label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.product-db-toolbar input,
.product-editor-form input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.product-db-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.product-db-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.product-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.product-editor-form label {
  display: grid;
  gap: 7px;
}

.product-row-button {
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

.product-row-button:hover {
  border-color: #2563eb;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 0 10px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  cursor: pointer;
}

.campaign-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.campaign-summary-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.campaign-summary-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.campaign-summary-card strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 24px;
}

.campaign-manager-list {
  display: grid;
  gap: 12px;
}

.campaign-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.campaign-card-head {
  display: grid;
  align-content: start;
  gap: 10px;
}

.campaign-card-head strong {
  color: #111827;
  font-size: 18px;
}

.campaign-card-head small {
  color: #64748b;
}

.campaign-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.campaign-card-metrics span {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px;
  color: #475569;
  font-size: 13px;
}

.campaign-card-metrics b {
  display: block;
  color: #111827;
  font-size: 16px;
}

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

.campaign-card-controls label {
  display: grid;
  gap: 7px;
}

.campaign-card-controls label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.campaign-card-controls input,
.campaign-card-controls select {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.campaign-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.ops-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-card h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
}

.ops-card p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.ops-card label {
  display: grid;
  gap: 7px;
}

.ops-card label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.ops-card input[type="text"],
.ops-card input[type="number"],
.ops-card input[type="time"],
.ops-card select {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

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

.ops-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.ops-check input {
  width: 18px;
  height: 18px;
}

.deployment-target-card {
  margin-bottom: 14px;
}

.deployment-target-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.deployment-target-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.deployment-target-form label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.deployment-target-form input,
.deployment-target-form select {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.deployment-target-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.deployment-target-result.active {
  border-color: #bbf7d0;
}

.deployment-target-result.warning {
  border-color: #fde68a;
}

.deployment-target-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deployment-target-head strong,
.deployment-target-head small {
  display: block;
}

.deployment-target-head strong {
  color: #111827;
  font-size: 17px;
}

.deployment-target-head small {
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.deployment-target-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.deployment-target-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.deployment-target-checks span.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.deployment-target-meta {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 13px;
}

.deployment-target-meta a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.deployment-target-missing {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.indexing-card {
  margin-top: 14px;
}

.panel-head.compact {
  margin-bottom: 0;
}

.indexing-plan {
  display: grid;
  gap: 12px;
}

.indexing-card-list {
  display: grid;
  gap: 12px;
}

.indexing-submit-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.indexing-submit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.indexing-submit-head strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.indexing-submit-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.indexing-ready-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.indexing-ready-row span {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.indexing-ready-row span.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

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

.indexing-link-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.indexing-link-grid label span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.indexing-link-grid div {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #64748b;
  font-size: 13px;
  word-break: break-all;
}

.indexing-link-grid a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.indexing-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.indexing-summary strong {
  margin-right: auto;
}

.indexing-summary a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.indexing-checklist {
  margin: 0;
  padding: 14px 14px 14px 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  line-height: 1.7;
}

.submission-card {
  margin-top: 14px;
}

.compact-actions {
  justify-content: flex-end;
}

.submission-package {
  display: grid;
  gap: 12px;
}

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

.submission-summary-grid article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.submission-summary-grid i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #ecfeff;
  color: #0e7490;
}

.submission-summary-grid strong,
.submission-summary-grid small {
  display: block;
}

.submission-summary-grid strong {
  color: #111827;
  font-size: 17px;
}

.submission-summary-grid small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.submission-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.submission-toolbar a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.submission-card-list {
  display: grid;
  gap: 12px;
}

.submission-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.submission-item.active {
  border-color: #bbf7d0;
}

.submission-item.warning {
  border-color: #fde68a;
}

.submission-item.danger {
  border-color: #fecaca;
}

.submission-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.submission-item-head strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.submission-item-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.submission-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.submission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.submission-progress-label {
  color: #64748b;
  font-weight: 800;
}

.submission-url-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.submission-url-list label {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.submission-url-list span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.submission-url-list a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.submission-task-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.submission-task-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.submission-task-grid span.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.submission-blockers {
  margin: 0;
  padding: 10px 10px 10px 28px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.6;
}

.submission-ready-note {
  margin: 0;
  color: #166534;
  font-weight: 800;
}

.ops-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.build-job-card {
  margin-bottom: 14px;
}

.build-job-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) auto minmax(140px, auto);
  align-items: end;
  gap: 10px;
}

.build-job-controls label:not(.ops-check) {
  display: grid;
  gap: 7px;
}

.build-job-controls input[type="text"] {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.build-job-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.build-job-item strong {
  display: block;
  color: #111827;
}

.build-job-item small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.local-deploy-card {
  margin-bottom: 14px;
}

.local-deploy-list {
  display: grid;
  gap: 12px;
}

.local-deploy-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.local-deploy-summary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.local-deploy-summary strong {
  color: #111827;
}

.local-deploy-summary a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.local-deploy-cards {
  display: grid;
  gap: 10px;
}

.local-deploy-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.local-deploy-item.active {
  border-color: #bbf7d0;
}

.local-deploy-item.danger {
  border-color: #fecaca;
}

.local-deploy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.local-deploy-head strong,
.local-deploy-head small,
.local-deploy-item small {
  display: block;
}

.local-deploy-head strong {
  color: #111827;
  font-size: 17px;
}

.local-deploy-head small,
.local-deploy-item small {
  color: #64748b;
  word-break: break-all;
}

.local-deploy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.local-deploy-links a {
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.remote-deploy-card {
  margin-bottom: 14px;
}

.remote-deploy-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.remote-deploy-controls label {
  width: min(180px, 100%);
}

.remote-deploy-controls small {
  color: #64748b;
  line-height: 1.5;
}

.remote-deploy-list {
  display: grid;
  gap: 12px;
}

.remote-deploy-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.remote-deploy-result.active {
  border-color: #bbf7d0;
}

.remote-deploy-result.warning {
  border-color: #fde68a;
}

.remote-deploy-result.danger {
  border-color: #fecaca;
}

.remote-deploy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.remote-deploy-head strong,
.remote-deploy-head small {
  display: block;
}

.remote-deploy-head strong {
  color: #111827;
  font-size: 17px;
}

.remote-deploy-head small {
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.remote-deploy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remote-deploy-summary span,
.remote-deploy-summary a {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.remote-deploy-summary a {
  color: #2563eb;
}

.remote-deploy-summary strong {
  color: #111827;
}

.remote-deploy-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
}

.remote-attempt-list,
.remote-upload-run-list {
  display: grid;
  gap: 8px;
}

.remote-attempt-list span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.remote-attempt-list span.active {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.remote-attempt-list span.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.remote-attempt-list small {
  color: #991b1b;
  font-weight: 700;
  word-break: break-word;
}

.remote-upload-log-card {
  margin-bottom: 14px;
}

.remote-upload-run {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.remote-upload-run.active {
  border-color: #bbf7d0;
}

.remote-upload-run.warning {
  border-color: #fde68a;
}

.remote-upload-run.danger {
  border-color: #fecaca;
}

.remote-upload-run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.remote-upload-run-head strong,
.remote-upload-run-head small {
  display: block;
}

.remote-upload-run-head strong {
  color: #111827;
}

.remote-upload-run-head small {
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.deployment-schedule-card {
  margin-bottom: 14px;
}

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

.deployment-schedule-form label {
  min-width: 0;
}

.deployment-schedule-result,
.scheduled-deployment-run {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.deployment-schedule-result.active,
.scheduled-deployment-run.active {
  border-color: #bbf7d0;
}

.deployment-schedule-result.warning,
.scheduled-deployment-run.warning {
  border-color: #fde68a;
}

.scheduled-deployment-run.danger {
  border-color: #fecaca;
}

.deployment-schedule-head,
.scheduled-deployment-run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deployment-schedule-head strong,
.deployment-schedule-head small,
.scheduled-deployment-run-head strong,
.scheduled-deployment-run-head small {
  display: block;
}

.deployment-schedule-head strong,
.scheduled-deployment-run-head strong {
  color: #111827;
}

.deployment-schedule-head small,
.scheduled-deployment-run-head small {
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.scheduled-deployment-run-list {
  display: grid;
  gap: 8px;
}

.remote-file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.remote-file-preview span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.remote-file-preview strong,
.remote-file-preview small {
  display: block;
}

.remote-file-preview strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-file-preview small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.deployment-live-card {
  margin-bottom: 14px;
}

.deployment-live-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.deployment-live-history-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
}

.deployment-live-history-head strong {
  color: #111827;
}

.deployment-live-history-head small {
  font-size: 12px;
}

.deployment-live-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.deployment-live-history-item.active {
  border-color: #bbf7d0;
}

.deployment-live-history-item.danger {
  border-color: #fecaca;
}

.deployment-live-history-item strong,
.deployment-live-history-item small {
  display: block;
}

.deployment-live-history-item strong {
  color: #111827;
}

.deployment-live-history-item small {
  margin-top: 4px;
  color: #64748b;
}

.deployment-check-list {
  display: grid;
  gap: 12px;
}

.deployment-check-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.deployment-check-summary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.deployment-check-summary strong {
  color: #111827;
}

.deployment-check-cards {
  display: grid;
  gap: 12px;
}

.deployment-check-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.deployment-check-card.active {
  border-color: #bbf7d0;
}

.deployment-check-card.warning {
  border-color: #fde68a;
}

.deployment-check-card.danger {
  border-color: #fecaca;
}

.deployment-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deployment-check-head strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.deployment-check-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.deployment-url-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deployment-url-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.deployment-url-grid article.active {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.deployment-url-grid article.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.deployment-url-grid article.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.deployment-url-grid strong,
.deployment-url-grid small,
.deployment-url-grid span {
  display: block;
}

.deployment-url-grid strong {
  color: #111827;
}

.deployment-url-grid small,
.deployment-url-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.deployment-url-grid a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.deployment-issues {
  margin: 0;
  padding: 10px 10px 10px 28px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.6;
}

.deployment-ok-note {
  margin: 0;
  color: #166534;
  font-weight: 800;
}

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

.ops-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) minmax(190px, 1.2fr) 110px auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.ops-row strong,
.indexing-status-head strong {
  display: block;
  color: #111827;
}

.ops-row small,
.indexing-status-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.ops-row input,
.ops-row select,
.indexing-note {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 13px;
}

.indexing-status-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.indexing-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.indexing-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.indexing-toggle-grid label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.indexing-toggle-grid input {
  width: 16px;
  height: 16px;
}

.large-action {
  min-height: 46px;
}

.build-log {
  min-height: 72px;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  white-space: pre-wrap;
  overflow: auto;
}

.table-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.package-list,
.qa-list {
  margin-top: 16px;
}

.package-list h3,
.qa-list h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.package-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  background: #f8fafc;
  text-decoration: none;
}

.package-card i {
  color: #0f766e;
  font-size: 22px;
}

.package-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.verification-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.verification-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.verification-summary-card i {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
}

.verification-summary-card.good i {
  background: #dcfce7;
  color: #166534;
}

.verification-summary-card.warning i {
  background: #fef3c7;
  color: #92400e;
}

.verification-summary-card.danger i {
  background: #fee2e2;
  color: #991b1b;
}

.verification-summary-card strong,
.verification-summary-card small {
  display: block;
}

.verification-summary-card strong {
  color: #111827;
  font-size: 18px;
}

.verification-summary-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.verification-list {
  display: grid;
  gap: 12px;
}

.verification-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.verification-card.active {
  border-color: #bbf7d0;
}

.verification-card.warning {
  border-color: #fde68a;
}

.verification-card.danger {
  border-color: #fecaca;
}

.verification-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.verification-card-head strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.verification-card-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  word-break: break-all;
}

.verification-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.verification-metrics span,
.required-file-grid span {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.verification-metrics small,
.verification-metrics strong,
.required-file-grid strong,
.required-file-grid small {
  display: block;
}

.verification-metrics small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.verification-metrics strong {
  margin-top: 3px;
  color: #111827;
  font-size: 14px;
}

.required-file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.required-file-grid span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}

.required-file-grid i {
  grid-row: span 2;
  color: #94a3b8;
}

.required-file-grid span.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.required-file-grid span.ok i {
  color: #16a34a;
}

.required-file-grid span.missing {
  border-color: #fecaca;
  background: #fef2f2;
}

.required-file-grid span.missing i {
  color: #dc2626;
}

.required-file-grid strong {
  color: #111827;
}

.required-file-grid small {
  color: #64748b;
  font-size: 12px;
}

.verification-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.verification-footer a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.verification-issues {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.verification-issues ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.verification-issues li {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.verification-issues li strong {
  margin-right: 6px;
}

.verification-issues li.danger {
  background: #fef2f2;
  color: #991b1b;
}

.verification-issues li.warning {
  background: #fffbeb;
  color: #92400e;
}

.verification-issues.is-clean {
  border-top: 0;
  padding-top: 0;
}

.verification-issues.is-clean p {
  margin: 0;
  color: #166534;
  font-weight: 800;
}

.qa-card,
.empty-box {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.qa-card + .qa-card {
  margin-top: 10px;
}

.qa-card p,
.empty-box p {
  margin: 4px 0 0;
  color: #64748b;
}

.qa-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #92400e;
  font-size: 13px;
}

.empty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
}

.empty-box i {
  color: #94a3b8;
  font-size: 22px;
}

.status-pill.danger {
  color: #991b1b;
  background: #fee2e2;
}

.status-pill.warning {
  color: #92400e;
  background: #fef3c7;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 1024px) {
  .shopping-shell {
    grid-template-columns: 1fr;
  }

  .shopping-sidebar {
    position: static;
    height: auto;
  }

  .shopping-sidebar .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 720px) {
  .shopping-main {
    padding: 16px;
  }

  .shopping-sidebar .side-nav {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .upload-grid,
  .collector-grid,
  .product-db-toolbar,
  .product-db-layout,
  .product-editor-form,
  .campaign-summary-grid,
  .campaign-card,
  .campaign-card-controls,
  .settings-grid,
  .backup-grid,
  .backup-summary-grid,
  .backup-file-list li,
  .analysis-grid,
  .ops-grid,
  .ops-mini-grid,
  .ops-management-grid,
  .deployment-target-form,
  .build-job-controls,
  .build-job-item,
  .ops-row,
  .deployment-url-grid,
  .indexing-link-grid,
  .submission-url-list,
  .verification-metrics,
  .required-file-grid,
  .indexing-toggle-grid {
    grid-template-columns: 1fr;
  }

  .shopping-header h1 {
    font-size: 22px;
  }

  .panel-head,
  .header-actions,
  .build-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions a,
  .build-actions button,
  .button-row button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 256px;
  flex: 0 0 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
  color: #64748b;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}

.side-nav i {
  width: 20px;
  text-align: center;
}

.side-nav a:hover {
  color: var(--ink);
  background: #f8fafc;
}

.side-nav a.is-active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .18);
}

.help-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  transition: background .15s ease;
}

.help-card:hover {
  background: #f1f5f9;
}

.help-card i {
  color: var(--blue);
  font-size: 22px;
}

.help-card strong,
.help-card small {
  display: block;
}

.help-card strong {
  color: #374151;
  font-size: 14px;
}

.help-card small {
  color: #64748b;
  font-size: 12px;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.top-header {
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 32px;
}

.top-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  scrollbar-width: thin;
}

.top-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 4px 0 9px;
}

.top-tabs a:hover,
.top-tabs a.is-active {
  color: var(--blue);
}

.top-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  color: #16a34a;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.time-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.icon-button,
.avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  color: #94a3b8;
  font-size: 18px;
}

.avatar-button {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0;
  background: #e2e8f0;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  display: block;
}

.page-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 32px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.page-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.hello {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
}

.hero-row h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.hero-row p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  word-break: keep-all;
}

.period-card {
  flex: 0 0 auto;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.period-card:hover {
  border-color: #60a5fa;
}

.period-card span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

.period-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-size: 14px;
}

.period-card strong span {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.period-card .fa-chevron-down {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.kpi-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .20);
}

.kpi-card .spark-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 4px;
  opacity: .48;
}

.spark-bars span {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.kpi-label {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.kpi-card.primary .kpi-label {
  color: #bfdbfe;
}

.kpi-value {
  color: var(--ink);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.kpi-card.primary .kpi-value {
  color: #ffffff;
}

.kpi-note {
  color: #94a3b8;
  font-size: 12px;
}

.kpi-card.primary .kpi-note {
  color: #bfdbfe;
}

.positive {
  color: #22c55e;
  font-weight: 800;
}

.negative {
  color: #a855f7;
  font-weight: 800;
}

.dashboard-grid,
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

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

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card,
.today-card,
.donut-card,
.ranking-card,
.report-card {
  padding: 24px;
}

.report-card {
  padding: 0;
  overflow: hidden;
}

.report-head {
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 24px;
}

.card h2 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
}

.card h2 span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.select-button,
.count-pill,
.subtle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.select-button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
}

.count-pill {
  color: var(--blue);
  background: #eff6ff;
}

.subtle-pill {
  color: #64748b;
  background: #f8fafc;
}

.chart-box {
  position: relative;
  width: 100%;
}

.chart-box.line {
  height: 288px;
}

.chart-box.bar,
.chart-box.donut {
  height: 210px;
}

.today-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 312px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.today-list::-webkit-scrollbar {
  width: 5px;
}

.today-list::-webkit-scrollbar-track {
  background: transparent;
}

.today-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.today-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f8fafc;
  padding: 0 0 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.today-item:hover .today-label {
  color: var(--blue);
}

.today-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.today-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.today-label {
  min-width: 0;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-value {
  color: var(--ink);
  font-weight: 900;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.insight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  padding: 16px;
}

.insight-card.green {
  border: 1px solid #dcfce7;
  background: #f0fdf4;
}

.insight-card.purple {
  border: 1px solid #f3e8ff;
  background: #faf5ff;
}

.insight-card.blue {
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.insight-card p {
  margin: 0;
}

.insight-kicker {
  margin-bottom: 4px !important;
  font-size: 12px;
}

.insight-title {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.insight-note {
  margin-top: 4px !important;
  font-size: 12px;
}

.insight-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 20px;
}

.green .insight-kicker,
.green .insight-note {
  color: #15803d;
}

.green .insight-icon {
  color: #16a34a;
  background: #dcfce7;
}

.purple .insight-kicker,
.purple .insight-note {
  color: #7e22ce;
}

.purple .insight-icon {
  color: #9333ea;
  background: #f3e8ff;
}

.blue .insight-kicker,
.blue .insight-note {
  color: #1d4ed8;
}

.blue .insight-icon {
  color: #2563eb;
  background: #dbeafe;
}

.table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.report-table thead {
  color: #64748b;
  background: #f8fafc;
}

.report-table th {
  padding: 12px 24px;
  font-weight: 700;
}

.report-table td {
  border-top: 1px solid #f1f5f9;
  padding: 14px 24px;
}

.report-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.report-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.report-value {
  color: #1f2937;
  font-weight: 800;
}

.report-up {
  color: #22c55e;
  font-size: 12px;
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rank-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.rank-no {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

.rank-name {
  min-width: 0;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-value {
  color: #111827;
  font-weight: 900;
}

.content-section {
  scroll-margin-top: 24px;
  margin: 42px 0 24px;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  word-break: keep-all;
}

.section-kicker {
  margin-bottom: 6px !important;
  color: var(--blue) !important;
  font-size: 13px !important;
  font-weight: 900;
}

.primary-action,
.outline-action,
.text-action,
.view-button,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  gap: 8px;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .16);
}

.primary-action:hover {
  background: var(--blue-dark);
}

.primary-action.muted {
  color: var(--blue);
  background: #eff6ff;
  box-shadow: none;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: #64748b;
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
}

.secondary-action:hover {
  color: var(--ink);
  background: #f8fafc;
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.select-field,
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
}

.select-field {
  min-width: 180px;
  padding: 0 14px;
}

.select-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.select-field select {
  width: 100%;
  border: 0;
  appearance: none;
  outline: none;
  background: transparent;
  color: #334155;
  font-weight: 700;
}

.select-field i {
  color: #94a3b8;
  font-size: 11px;
  pointer-events: none;
}

.search-field {
  min-width: 280px;
  padding: 0 14px;
}

.search-field i {
  color: #94a3b8;
  font-size: 14px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0 0 10px;
  background: transparent;
  color: #334155;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.toolbar-right strong {
  color: var(--ink);
}

.view-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #94a3b8;
  background: #ffffff;
}

.view-button.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.ad-management-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.category-card {
  position: sticky;
  top: 0;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px;
}

.category-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.category-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.category-list {
  max-height: 362px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  scrollbar-width: thin;
}

.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.category-list li:hover {
  color: var(--ink);
  background: #f8fafc;
}

.category-list li.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.text-action {
  width: calc(100% - 32px);
  margin: 8px 16px 16px;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 8px 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
}

.ad-catalog {
  min-width: 0;
}

.ad-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ad-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ad-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.ad-visual {
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px;
  text-align: center;
}

.ad-visual p,
.ad-visual h3,
.ad-visual strong {
  margin: 0;
}

.visual-law {
  color: #ffffff;
  background:
    linear-gradient(rgba(15, 23, 42, .78), rgba(15, 23, 42, .82)),
    url("https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80&w=600") center/cover;
}

.visual-law p {
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}

.visual-law h3 {
  font-size: 18px;
  font-weight: 800;
}

.visual-law strong {
  font-size: 24px;
  font-weight: 900;
}

.visual-circle {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.visual-circle div {
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 14px;
}

.visual-circle small {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
}

.visual-circle strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.visual-circle span {
  margin-top: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  background: currentColor;
}

.visual-circle.blue {
  color: #2563eb;
}

.visual-circle.red {
  color: #dc2626;
}

.visual-debt,
.visual-consult,
.visual-clean {
  color: #ffffff;
}

.visual-debt {
  background:
    linear-gradient(rgba(127, 29, 29, .88), rgba(127, 29, 29, .88)),
    url("https://images.unsplash.com/photo-1585829365295-ab7cd400c167?auto=format&fit=crop&q=80&w=600") center/cover;
}

.visual-consult {
  background:
    linear-gradient(rgba(30, 41, 59, .74), rgba(15, 23, 42, .88)),
    url("https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&q=80&w=600") center/cover;
}

.visual-clean {
  color: #1f2937;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}

.visual-debt span,
.visual-consult span,
.visual-clean span {
  margin-bottom: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
}

.visual-debt strong,
.visual-consult strong,
.visual-clean strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.visual-debt p,
.visual-consult p,
.visual-clean p {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: .82;
}

.ad-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.ad-body h3 {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.ad-badge {
  width: max-content;
  border-radius: 6px;
  padding: 4px 8px;
  color: #ffffff;
  background: #2a2e33;
  font-size: 12px;
  font-weight: 800;
}

.ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.ad-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.outline-action {
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #64748b;
  background: #ffffff;
}

.outline-action:hover {
  color: var(--blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 24px 0 4px;
}

.pagination button,
.pagination span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
}

.pagination button {
  border: 1px solid var(--line);
  background: #ffffff;
}

.pagination button.is-active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

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

.program-card {
  display: grid;
  gap: 8px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.program-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 18px;
}

.program-icon.blue {
  color: var(--blue);
  background: #eff6ff;
}

.program-icon.green {
  color: #16a34a;
  background: #f0fdf4;
}

.program-icon.purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.program-icon.orange {
  color: #ea580c;
  background: #fff7ed;
}

.program-card p,
.program-card small {
  margin: 0;
  color: #64748b;
}

.program-card p {
  font-size: 14px;
  font-weight: 800;
}

.program-card strong {
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.program-card small {
  font-size: 12px;
}

.affiliate-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}

.program-table-card {
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.active {
  color: #15803d;
  background: #dcfce7;
}

.status-pill.pending {
  color: #7c3aed;
  background: #f3e8ff;
}

.status-pill.paused {
  color: #64748b;
  background: #f1f5f9;
}

.process-card {
  padding: 24px;
}

.process-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  gap: 12px;
}

.process-list li > span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

.process-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.process-list p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  word-break: keep-all;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}

.contact-card,
.contact-info-card {
  padding: 24px;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  padding: 12px 13px;
  background: #ffffff;
  color: #334155;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
  overflow-wrap: anywhere;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.contact-info-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.contact-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-item > span {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
}

.contact-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.contact-info-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.contact-form-card {
  padding: 32px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.contact-field-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-field-row {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

.contact-field-row > span:first-child {
  width: 104px;
  flex: 0 0 104px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.contact-form b {
  color: #ef4444;
  font-weight: 900;
}

.contact-select-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.contact-select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  color: #94a3b8;
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-select-wrap select {
  appearance: none;
  padding-right: 36px;
}

.contact-message-field {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

.contact-message-field > span:first-child {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.textarea-wrap {
  position: relative;
  display: block !important;
  flex: 1 1 auto;
}

.textarea-wrap textarea {
  height: 100%;
  min-height: 214px;
  padding-bottom: 34px;
  resize: none;
  line-height: 1.65;
}

.textarea-wrap small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.textarea-wrap em {
  color: #cbd5e1;
  font-style: normal;
}

.consent-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.consent-card:hover {
  background: #f1f5f9;
}

.consent-card > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #cbd5e1;
  background: #ffffff;
  font-size: 10px;
}

.consent-card strong {
  flex: 1 1 auto;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.consent-card > i {
  color: #94a3b8;
}

.contact-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.contact-submit {
  min-width: 240px;
}

.contact-guide-head h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.contact-guide-head p {
  margin: 0 0 26px;
  color: #64748b;
  font-size: 13px;
  word-break: keep-all;
}

.contact-info-item > span.indigo {
  color: #6366f1;
  background: #eef2ff;
}

.admin-page {
  overflow: hidden;
  background: var(--bg);
}

.admin-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  background: #ffffff;
}

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.admin-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 32px;
}

.admin-header h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
}

.admin-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.admin-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 32px;
}

.admin-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-section {
  scroll-margin-top: 24px;
  margin-bottom: 46px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-form-card,
.admin-list-card {
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 20px;
}

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

.admin-form label {
  display: grid;
  gap: 7px;
}

.admin-form label span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  padding: 12px 13px;
  background: #ffffff;
  color: #334155;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin: -4px -4px 16px;
  padding: 0 4px 16px;
}

.admin-list-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.admin-list-head .text-action {
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

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

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.admin-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.admin-item p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
}

.admin-item button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  color: #dc2626;
  background: #fff7f7;
  cursor: pointer;
}

.admin-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #94a3b8;
  text-align: center;
}

.admin-empty i {
  font-size: 24px;
}

.admin-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.tracking-layout {
  margin-bottom: 18px;
}

.embed-code-card {
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 18px;
}

.embed-code-card .admin-list-head {
  margin: 0 0 12px;
  padding: 0;
  border-bottom: 0;
}

.embed-code-card pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 16px;
  background: #0f172a;
  color: #e0f2fe;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.tracking-guide-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.tracking-step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-step-list li {
  display: flex;
  gap: 12px;
  color: #64748b;
}

.tracking-step-list span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

.tracking-step-list p {
  margin: 2px 0 0;
  font-size: 13px;
  word-break: keep-all;
}

.tracking-status {
  border: 1px solid #dcfce7;
  border-radius: 8px;
  padding: 12px 14px;
  color: #15803d;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 900;
}

.tracking-status.is-offline {
  border-color: #fee2e2;
  color: #b91c1c;
  background: #fff7f7;
}

.tracking-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.tracking-summary-card {
  display: grid;
  gap: 8px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tracking-summary-card p,
.tracking-summary-card small {
  margin: 0;
  color: #64748b;
}

.tracking-summary-card p {
  font-size: 14px;
  font-weight: 800;
}

.tracking-summary-card strong {
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.tracking-summary-card small {
  font-size: 12px;
}

.tracking-table-card {
  overflow: hidden;
  padding: 24px;
}

.tracking-table-card .admin-list-head {
  margin: 0 0 16px;
  padding: 0 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-grid,
  .report-grid,
  .contact-layout,
  .affiliate-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-brand {
    height: 58px;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: thin;
  }

  .side-nav a {
    flex: 0 0 auto;
  }

  .help-card {
    display: none;
  }

  .app-main {
    height: auto;
  }

  .top-header {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .page-scroll {
    overflow: visible;
    padding: 20px 16px;
  }

  .hero-row {
    align-items: stretch;
    flex-direction: column;
  }

  .period-card {
    width: 100%;
    min-width: 0;
  }

  .admin-page {
    overflow: auto;
  }

  .admin-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .admin-main {
    height: auto;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .admin-scroll {
    overflow: visible;
    padding: 20px 16px;
  }

  .section-head,
  .toolbar-card {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .select-field,
  .search-field {
    flex: 1 1 0;
    min-width: 0;
  }

  .toolbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .ad-management-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    position: static;
  }

  .category-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .category-list li {
    flex: 0 0 auto;
  }

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

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .time-badge {
    min-width: 0;
  }

  .top-tabs {
    width: 100%;
  }

  .page-scroll,
  .page-inner,
  .kpi-card,
  .card {
    width: 100%;
    max-width: 100%;
  }

  .page-inner {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-row,
  .kpi-grid,
  .dashboard-grid,
  .insight-grid,
  .report-grid {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-row h1 {
    font-size: 24px;
  }

  .hero-row p,
  .period-card strong {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .chart-card,
  .today-card,
  .donut-card,
  .ranking-card {
    padding: 20px;
  }

  .report-head {
    padding: 20px;
  }

  .kpi-grid,
  .insight-grid,
  .ad-card-grid,
  .tracking-summary-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
  }

  .select-field,
  .search-field,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .contact-form-card,
  .contact-card,
  .contact-info-card {
    padding: 20px;
  }

  .contact-layout,
  .contact-form-card,
  .contact-info-card {
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
  }

  .contact-field-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .contact-field-row > span:first-child {
    width: auto;
    flex: none;
  }

  .contact-submit {
    width: 100%;
    min-width: 0;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .kpi-card {
    min-height: 128px;
  }

  .chart-box.line,
  .chart-box.bar,
  .chart-box.donut {
    height: 260px;
  }

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