﻿:root {
  color-scheme: light;
  --ink: #0f1115;
  --ink-soft: #1f242b;
  --subtle: #5c6370;
  --faint: #8a919d;
  --line: #e4e7ec;
  --line-strong: #cfd4db;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --panel-soft: #eef7f4;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #dff4ef;
  --blue: #2d5bff;
  --coral: #c65b3d;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --success: #059669;
  --success-soft: #d1fae5;
  --pop: #db2777;
  --pop-soft: #fce7f3;
  --reservation: #2563eb;
  --reservation-soft: #dbeafe;
  --exhibition: #7c3aed;
  --exhibition-soft: #ede9fe;
  --festival: #ea580c;
  --festival-soft: #ffedd5;
  --shadow: 0 18px 50px rgba(15, 17, 21, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 17, 21, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -100px, #eaf6f2 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f6f7f9 42%, #eef2f4 100%);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.primary-link {
  align-items: center;
  background: var(--accent);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.hero-primary-button {
  border: 0;
}

.ghost-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.ghost-link:hover {
  background: #f1f5f7;
  color: var(--ink);
}

.primary-link:hover {
  background: var(--accent-strong);
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

a {
  color: var(--accent-strong);
}

.ghost,
.quick-chips button,
.text-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost:hover,
.quick-chips button:hover,
.text-button:hover {
  background: #f1f5f7;
}

.text-button {
  min-height: 32px;
  padding: 0 10px;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(223, 227, 232, 0.85);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand {
  font-size: 22px;
  letter-spacing: 0;
}

.brand-lockup span,
.muted,
.fineprint {
  color: var(--subtle);
}

.brand-lockup:hover .brand {
  color: var(--accent-strong);
}

.topnav {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.topnav a {
  border-radius: 999px;
  color: var(--subtle);
  padding: 8px 12px;
  text-decoration: none;
}

.topnav a:hover {
  background: #fff;
  color: var(--ink);
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: max-content;
}

.top-actions .icon-button,
.top-actions .primary-link,
.top-actions .hero-primary-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  height: 44px;
  line-height: 1;
  min-height: 44px;
  white-space: nowrap;
}

.top-actions .icon-button {
  padding: 0 16px;
}

main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 28px 64px;
}

.hero {
  order: 1;
}

.keyword-section {
  order: 3;
}

.workbench {
  order: 4;
}

.watch-sample-section {
  order: 5;
}

.pricing-section {
  order: 6;
}

.saved-strip {
  order: 7;
}

.value-section {
  order: 8;
}

.faq-section {
  order: 9;
}

.signal-board {
  display: none;
}

.home-account-panel {
  order: 2;
}

.home-account-panel {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr) auto;
  margin: 10px 0 22px;
  padding: 24px;
}

.home-account-copy {
  min-width: 0;
}

.home-account-copy h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  margin: 8px 0 8px;
}

.home-account-copy p {
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.home-account-status {
  align-content: start;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-status-row {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
}

.home-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.home-status-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-status-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-status-row.tone-ok {
  background: rgba(236, 253, 245, 0.82);
  border-color: rgba(16, 185, 129, 0.28);
}

.home-status-row.tone-warn {
  background: rgba(255, 251, 235, 0.86);
  border-color: rgba(245, 158, 11, 0.3);
}

.home-account-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 190px;
}

.home-account-actions .primary-link,
.home-account-actions .ghost {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  text-align: center;
  width: 100%;
}

.hero {
  display: block;
  min-height: 0;
  padding: 40px 0 28px;
}

.hero-grid {
  align-items: stretch;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero-copy {
  margin: 0;
  max-width: 640px;
  min-width: 0;
  text-align: left;
}

.hero-copy h1 em {
  background: linear-gradient(180deg, transparent 65%, rgba(16, 185, 129, 0.32) 65%);
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  padding: 0 2px;
}

.hero-account-strip {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  max-width: 620px;
  padding: 12px 14px;
}

.hero-account-strip span {
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.hero-account-strip strong {
  color: var(--ink);
  flex: 1 1 260px;
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}

.hero-account-strip a {
  background: var(--accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--accent-strong);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 12px;
  text-decoration: none;
}

.hero-account-strip a:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.eyebrow,
.panel-label {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 6px;
  margin-right: 8px;
  vertical-align: middle;
  width: 6px;
}

h1 {
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 14px 0 0;
  max-width: 640px;
  text-wrap: balance;
}

.lead {
  color: var(--subtle);
  font-size: 17px;
  line-height: 1.62;
  margin: 18px 0 0;
  max-width: 560px;
}

.lead strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 24px;
}

.hero-actions .primary-link,
.hero-actions .hero-primary-button {
  background: linear-gradient(180deg, #14a394 0%, #0f766e 100%);
  border: 1px solid #0f766e;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
  font-size: 15px;
  min-height: 52px;
  padding: 0 22px;
}

.hero-actions .primary-link:hover,
.hero-actions .hero-primary-button:hover {
  background: var(--accent-strong);
  filter: brightness(1.02);
}

.hero-meta {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 560px;
}

.hero-meta div {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 12px;
}

.hero-meta strong {
  color: var(--ink);
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-meta span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.hero-preview {
  align-content: start;
  align-self: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: 18px;
}

.hero-feed-note {
  color: var(--subtle);
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
}

.hero-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-feed-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.hero-feed-item:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.hero-feed-item-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.feed-kind {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
}

.feed-kind-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.feed-kind-warning {
  background: #fffbeb;
  color: #b45309;
}

.feed-kind-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.feed-kind-popup {
  background: #fdf4ff;
  color: #9333ea;
}

.feed-kind-success {
  background: #ecfdf5;
  color: #047857;
}

.hero-feed-time {
  color: var(--subtle);
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
}

.hero-feed-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-feed-meta {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  gap: 4px 10px;
}

.hero-feed-meta .hero-feed-free {
  background: #ecfdf5;
  border-radius: 999px;
  color: #047857;
  font-weight: 700;
  padding: 1px 8px;
}

.hero-feed-footer-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 12px;
  justify-content: space-between;
  margin-top: 2px;
}

.hero-feed-keyword {
  color: var(--subtle);
  font-weight: 600;
}

.hero-feed-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 800;
  gap: 2px;
  text-decoration: none;
}

.hero-feed-link:hover {
  text-decoration: underline;
}

.hero-feed-footer {
  border-top: 1px dashed var(--line);
  color: var(--subtle);
  font-size: 12px;
  margin: 0;
  padding-top: 10px;
}

.hero-feed-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--subtle);
  display: grid;
  gap: 4px;
  padding: 24px;
  text-align: center;
}

.hero-preview-head {
  align-items: center;
  display: flex;
  gap: 8px;
}

.hero-preview-head strong {
  font-size: 15px;
  font-weight: 800;
}

.live-dot {
  background: var(--danger);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  display: inline-block;
  height: 8px;
  width: 8px;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.04); }
}

.hero-preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr auto;
  min-height: 290px;
  overflow: hidden;
  padding: 0;
}

.hero-preview-card.empty {
  align-items: center;
  border-style: dashed;
  color: var(--subtle);
  justify-items: center;
  min-height: 180px;
  text-align: center;
}

.hero-preview-card .preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-preview-image {
  aspect-ratio: 16 / 7;
  background: #eef2f4;
  border-bottom: 1px solid var(--line);
  display: block;
  object-fit: cover;
  width: 100%;
}

.preview-content {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
}

.preview-topline {
  align-items: center;
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 800;
  gap: 8px;
}

.preview-rank {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  padding: 4px 8px;
}

.hero-preview-card h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.hero-preview-card .preview-meta {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 10px;
  margin: 0;
}

.hero-preview-card .preview-link {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.hero-preview-card .preview-link.primary {
  background: var(--accent);
  color: #fff;
}

.hero-preview-card .preview-link.primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.preview-actions {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding: 12px 16px 14px;
}

.preview-actions button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  min-height: 42px;
  padding: 0 12px;
}

.preview-actions button:hover {
  background: #f1f5f7;
}

.watch-form {
  align-self: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
  width: 100%;
}

.form-heading {
  align-items: center;
  display: flex;
  gap: 9px;
}

.status-dot {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--accent-soft);
  height: 9px;
  width: 9px;
}

label {
  color: var(--subtle);
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}

.fineprint {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 0 14px;
}

.summary-grid.compact {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.trust-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px auto 0;
  max-width: 980px;
}

.trust-row div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.trust-row span {
  color: var(--subtle);
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin: 0 auto 20px;
  max-width: 760px;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.section-heading h2 em {
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  font-style: normal;
  padding: 0 4px;
}

.section-heading p {
  color: var(--subtle);
  line-height: 1.62;
  margin: 0;
}

.category-overview,
.value-section,
.faq-section {
  margin: 14px auto 0;
  max-width: 980px;
}

.category-grid,
.value-grid,
.faq-grid {
  display: grid;
  gap: 12px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: -4px 0 14px;
}

.category-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.category-links a:hover {
  background: #f4fbf9;
  border-color: #a9d8ce;
  color: var(--accent-strong);
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 7px;
  justify-content: stretch;
  min-height: 112px;
  padding: 14px;
  text-align: left;
}

.category-card:hover {
  background: #f4fbf9;
  border-color: #a9d8ce;
}

.category-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.category-card strong {
  font-size: 24px;
  line-height: 1;
}

.category-card small {
  color: var(--subtle);
  line-height: 1.42;
}

.value-section,
.faq-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(15, 17, 21, 0.05);
  padding: 28px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-grid div {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 22px 20px;
}

.value-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 10px;
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  margin-bottom: 6px;
  width: 44px;
}

.value-grid strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.value-grid span {
  color: var(--subtle);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-grid {
  grid-template-columns: 1fr;
}

.faq-grid details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-grid p {
  color: var(--subtle);
  line-height: 1.6;
  margin: 10px 0 0;
}

.summary-grid div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.signal-board,
.keyword-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(15, 17, 21, 0.06);
  margin: 28px auto 0;
  max-width: 1100px;
  padding: 24px;
}

.signal-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
}

.signal-head h2,
.keyword-head strong {
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 6px 0 0;
}

.signal-summary {
  align-items: center;
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.signal-summary span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.mini-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.mini-link:hover {
  background: #f4fbf9;
  border-color: #a9d8ce;
}

.signal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.signal-tabs button,
.keyword-chips button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
}

.signal-tabs button.active,
.keyword-chips button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.signal-list {
  display: grid;
  gap: 8px;
}

.keyword-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf9 100%);
  border-color: #b8e1d6;
  display: grid;
  gap: 16px;
}

.keyword-head {
  display: grid;
  gap: 5px;
}

.keyword-head strong {
  font-size: clamp(22px, 2.5vw, 26px);
  margin: 0;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-chips button {
  min-height: 40px;
}

.ad-section {
  background: transparent;
  display: grid;
  gap: 8px;
  margin: 24px auto 0;
  max-width: 1100px;
  min-height: 92px;
  width: 100%;
}

.ad-section[hidden] {
  display: none;
}

.ad-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  justify-self: end;
}

.ad-slot {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 90px;
  overflow: hidden;
}

.ad-section-footer .ad-slot {
  min-height: 120px;
}

.summary-grid span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.summary-grid strong {
  font-size: 28px;
}

.workbench {
  display: block;
}

.side-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 86px;
}

.insight-panel,
.saved-panel,
.pricing-panel,
.event-board {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 25, 29, 0.06);
}

.insight-panel,
.saved-panel,
.pricing-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.insight-panel strong {
  font-size: 20px;
  line-height: 1.35;
}

.insight-panel p,
.saved-panel p {
  color: var(--subtle);
  line-height: 1.55;
  margin: 0;
}

.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#savedList {
  display: grid;
  gap: 8px;
}

.saved-item {
  background: #f1f5f7;
  color: var(--ink);
  justify-content: flex-start;
  min-height: 38px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.price-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.price-row strong {
  font-size: 22px;
}

.price-row span {
  color: var(--subtle);
}

.event-board {
  min-width: 0;
  margin: 28px auto 0;
  max-width: 1100px;
  padding: 24px;
}

.board-header {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.board-header h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 8px 0 0;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.quick-chips button {
  min-height: 34px;
  padding: 0 12px;
}

.quick-chips button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 150px 150px 150px;
  margin: 14px 0;
}

.result-line {
  align-items: end;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 0 0 12px;
}

.result-line div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.result-line span {
  color: var(--ink);
  font-weight: 800;
}

.result-line small {
  color: var(--subtle);
  line-height: 1.4;
}

.result-line strong {
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 17px;
}

.event-list {
  display: grid;
  gap: 8px;
}

.result-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.result-highlights[hidden] {
  display: none;
}

.result-highlights span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
}

.result-highlights strong {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
}

.result-highlights em {
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.result-divider {
  align-items: center;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0;
  padding: 10px 12px;
}

.result-divider strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.result-divider span {
  font-size: 12.5px;
  line-height: 1.45;
}

.result-pagination {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.result-pagination[hidden] {
  display: none;
}

.result-pagination button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
}

.result-pagination button:hover {
  background: #f1f5f7;
}

.result-pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.result-pagination button:disabled {
  background: #f8fafc;
  color: var(--faint);
  cursor: not-allowed;
  opacity: 0.7;
}

.page-numbers {
  align-items: center;
  display: flex;
  gap: 6px;
}

.page-gap {
  color: var(--faint);
  font-weight: 900;
  padding: 0 2px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.event-card.has-media {
  grid-template-columns: 96px minmax(0, 1fr) minmax(160px, auto);
}

.event-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(15, 17, 21, 0.08);
  transform: translateY(-1px);
}

.thumb {
  align-items: center;
  aspect-ratio: 1;
  background: var(--panel-soft);
  border: 1px solid #d4ebe4;
  border-radius: var(--radius);
  color: var(--accent-strong);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  padding: 8px;
  width: 96px;
}

.thumb .thumb-icon {
  font-size: 26px;
  line-height: 1;
}

.thumb.cat-popup {
  background: var(--pop-soft);
  border-color: #f9a8d4;
  color: var(--pop);
}

.thumb.cat-reservation {
  background: var(--reservation-soft);
  border-color: #93c5fd;
  color: var(--reservation);
}

.thumb.cat-exhibition {
  background: var(--exhibition-soft);
  border-color: #c4b5fd;
  color: var(--exhibition);
}

.thumb.cat-festival {
  background: var(--festival-soft);
  border-color: #fdba74;
  color: var(--festival);
}

.thumb.cat-performance {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

.thumb.cat-event {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.event-main {
  min-width: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 8px;
}

.tag.secondary {
  background: #fff1e8;
  color: #9a4a2c;
}

.tag.source {
  background: #edf1ff;
  color: var(--blue);
}

.tag.signal-score {
  background: var(--ink);
  color: #fff;
}

.tag.priority-tag {
  background: #0f1115;
  color: #fff;
}

.tag.trust-tag {
  background: #eef7f4;
  border: 1px solid #c7e7df;
  color: var(--accent-strong);
}

.tag.tag-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.tag.tag-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag.tag-success {
  background: var(--success-soft);
  color: var(--success);
}

.tag.tag-popup {
  background: var(--pop-soft);
  color: var(--pop);
}

.tag.tag-reservation {
  background: var(--reservation-soft);
  color: var(--reservation);
}

.tag.tag-exhibition {
  background: var(--exhibition-soft);
  color: var(--exhibition);
}

.event-card h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 0;
}

.meta {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 12px;
}

.score-line {
  align-items: center;
  display: none;
  gap: 8px;
  grid-template-columns: 82px minmax(0, 1fr);
  margin-top: 12px;
}

.score-line strong {
  color: var(--coral);
  font-size: 14px;
}

.score-track {
  background: #edf0f2;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.score-track span {
  background: var(--coral);
  display: block;
  height: 100%;
}

.reason {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 0 0;
}

.event-insight {
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 720px;
}

.event-checklist {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.event-checklist span {
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 900;
}

.event-checklist strong {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.event-card-dense {
  padding: 12px 14px;
}

.event-card-dense .event-insight {
  display: -webkit-box;
  margin-top: 8px;
  max-width: 680px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-card-dense .event-detail-list {
  margin-top: 8px;
}

.event-card-dense .actions {
  align-content: start;
}

.event-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.event-detail-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
}

.event-detail-list dt {
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 800;
}

.event-detail-list dd {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  margin: 0;
}

.saved-strip,
.watch-sample-section,
.pricing-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(15, 17, 21, 0.06);
  margin: 28px auto 0;
  max-width: 1100px;
  padding: 24px;
}

.watch-sample-section {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.watch-sample-copy {
  display: grid;
  gap: 8px;
}

.watch-sample-copy h2 {
  font-size: 26px;
  line-height: 1.28;
  margin: 0;
}

.watch-sample-copy p {
  color: var(--subtle);
  line-height: 1.58;
  margin: 0;
}

.watch-sample-feed {
  display: grid;
  gap: 8px;
}

.watch-sample-feed div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.watch-sample-feed span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.watch-sample-feed strong {
  font-size: 16px;
}

.watch-sample-feed small {
  color: var(--subtle);
  font-size: 13px;
}

.monitor-pricing {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.pricing-main-copy h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 8px 0;
}

.pricing-main-copy .muted {
  font-size: 15px;
  line-height: 1.6;
}

.monitor-plan {
  background: linear-gradient(180deg, #1b2528 0%, #0f1115 100%);
  border-color: #0f1115;
  color: #fff;
  position: relative;
}

.monitor-plan:hover,
.monitor-plan.featured {
  background: linear-gradient(180deg, #1b2528 0%, #0f1115 100%);
  border-color: #0f1115;
  box-shadow: 0 16px 40px rgba(15, 17, 21, 0.32);
  color: #fff;
  transform: translateY(-2px);
}

.monitor-plan .plan-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
}

.monitor-plan small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.monitor-plan strong {
  color: #fff;
}

.plan-badge {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 10px;
  position: absolute;
  right: 14px;
  top: 14px;
}

.plan-name {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
}

.subtle-plan {
  min-height: 128px;
}

.saved-strip {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr) auto;
}

.saved-strip-copy {
  display: grid;
  gap: 4px;
}

.saved-strip-copy strong {
  font-size: 18px;
  font-weight: 700;
}

.saved-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-benefits {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--subtle);
  display: grid;
  gap: 6px;
  line-height: 1.45;
  margin: 0;
  padding: 12px 12px 12px 28px;
}

.keyword-picker {
  background: linear-gradient(180deg, #fbfdfc 0%, #f5f9f8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.picker-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.picker-head strong {
  font-size: 15px;
  font-weight: 700;
}

.picker-counter {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtle);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  padding: 5px 11px;
}

.picker-counter strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.picker-group {
  display: grid;
  gap: 8px;
}

.picker-group-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.picker-chips button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  padding: 0 12px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.picker-chips button:hover:not(:disabled):not(.active) {
  background: var(--accent-soft);
  border-color: #a9d8ce;
  color: var(--accent-strong);
}

.picker-chips button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.02);
}

.picker-chips button.active::before {
  content: "✓ ";
  font-weight: 800;
}

.picker-chips button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.picker-custom {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.picker-custom > span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.picker-custom input {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  min-height: 36px;
  padding: 0 0 4px;
}

.picker-custom input:focus {
  border-color: var(--accent);
  box-shadow: none;
  outline: none;
}

.picker-selected {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}

.picker-selected strong {
  color: var(--ink);
  font-weight: 700;
}

.plan-options button {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  line-height: 1.25;
  padding: 10px 12px;
}

.plan-options button small {
  color: var(--subtle);
  font-size: 11.5px;
  font-weight: 600;
}

.plan-options button.active small {
  color: rgba(255, 255, 255, 0.86);
}

#checkoutSubmitButton:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.alert-preview {
  background: #f4fbf9;
  border: 1px solid #b8e1d6;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.alert-preview strong {
  color: var(--accent-strong);
}

.alert-preview div {
  color: var(--subtle);
  line-height: 1.45;
}

.alert-preview span {
  color: var(--ink);
  font-weight: 900;
  margin-right: 6px;
}

.checkout-assurance {
  background: #fffdf7;
  border: 1px solid #f4d9a7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.checkout-assurance strong {
  color: #7c2d12;
  font-size: 14px;
}

.checkout-assurance ul {
  display: grid;
}

.checkout-assurance li {
  background: #fff;
  border: 1px solid #f4d9a7;
  border-radius: 7px;
  color: #7c2d12;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  padding: 7px 10px;
}

.quality-high_value {
  background: #e7f8f3;
  color: #087466;
}

.quality-normal {
  background: #eef4f7;
  color: #33515f;
}

.quality-low_priority {
  background: #f3f4f6;
  color: #6b7280;
}

.quality-needs_review {
  background: #fff7ed;
  color: #9a3412;
}

.saved-strip {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.pricing-section {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.pricing-section h2 {
  font-size: 28px;
  letter-spacing: 0;
  margin: 8px 0;
}

.pricing-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.pricing-cards.single-plan {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.pricing-cards.single-plan .plan-card {
  align-items: flex-start;
  min-height: 0;
  padding: 28px 28px 24px;
  width: 100%;
}

.pricing-cards.single-plan .plan-card strong {
  font-size: 38px;
  line-height: 1.05;
}

.pricing-cards.single-plan .plan-aside {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 12px;
  padding-top: 12px;
}

.plan-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-content: stretch;
  min-height: 148px;
  padding: 18px;
  text-align: left;
}

.plan-card:hover,
.plan-card.featured {
  background: #f4fbf9;
  border-color: #a9d8ce;
}

.pricing-cards .monitor-plan.featured {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  border-color: #0f766e;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.24);
  color: #fff;
}

.pricing-cards .monitor-plan.featured .plan-name,
.pricing-cards .monitor-plan.featured small,
.pricing-cards .monitor-plan.featured span {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-cards .monitor-plan.featured strong {
  color: #fff;
}

.plan-card strong {
  font-size: 28px;
}

.plan-card small,
.plan-card span {
  color: var(--subtle);
}

.actions {
  align-content: center;
  align-items: stretch;
  display: grid;
  gap: 8px;
  min-width: 168px;
}

.actions button {
  font-size: 13px;
  min-height: 38px;
  padding: 0 12px;
}

.actions a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  text-align: center;
  text-decoration: none;
}

.actions a:hover {
  background: var(--accent-soft);
  border-color: #a9d8ce;
}

.actions .primary-official {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  min-height: 42px;
}

.actions .primary-official:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.actions .ghost-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  min-height: 42px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.actions .ghost-action:hover {
  background: #f4f8f4;
  border-color: #0b6e3a;
  color: #0b6e3a;
}

/* Calendar dropdown menu */
.calendar-menu {
  position: relative;
  display: inline-block;
}

.calendar-menu .caret {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}

.calendar-menu-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 50;
  padding: 6px;
  display: grid;
  gap: 2px;
}

/* HTML5 [hidden] is normally display:none, but our `display: grid` above
   wins by specificity. Re-assert hidden so the popup stays closed by
   default and only opens when JS sets hidden=false. */
.calendar-menu-pop[hidden] {
  display: none;
}

/* Admin: daily traffic chart — 7 vertical bars, mobile-friendly. */
.traffic-daily-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 160px;
  padding: 16px 4px 4px;
}

.traffic-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.traffic-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 120px;
  width: 100%;
}

.traffic-bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.25s;
}

.traffic-bar-pv {
  background: #cce5d6;
}

.traffic-bar-uv {
  background: #0b6e3a;
}

.traffic-day-label {
  font-size: 11.5px;
  color: var(--subtle);
  margin-top: 2px;
}

.traffic-day-num {
  font-size: 11px;
  text-align: center;
  line-height: 1.1;
}

.traffic-day-num strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.traffic-day-num small {
  color: var(--subtle);
}

.traffic-day-conv {
  font-size: 11px;
  color: #b07700;
  background: #fff5da;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--subtle);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

.legend-dot.legend-pv { background: #cce5d6; }
.legend-dot.legend-uv { background: #0b6e3a; }
.legend-dot.legend-conv { background: transparent; }

/* Admin: 2-column subsection (channels + devices) */
.ops-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .ops-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .me-login-actions,
  .me-signup-actions,
  .me-signup-two {
    grid-template-columns: 1fr;
  }
}

.ops-subhead {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ops-bar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.ops-bar-list li {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bar-label {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  background: #eef2f0;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  background: #0b6e3a;
  height: 100%;
  border-radius: 6px;
  transition: width 0.25s;
}

.bar-value {
  text-align: right;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

/* Header "마이페이지" link — always visible so first-time visitors know
   the management page exists. When a saved token is detected, the
   .is-logged-in class adds a small green accent to nudge return users. */
.header-me-link {
  background: #fff;
  border: 1px solid #cfd8d5;
  color: var(--accent-strong);
  font-weight: 800;
  gap: 7px;
  min-width: 132px;
  text-decoration: none;
}

.header-me-link:hover {
  background: #f4f8f4;
  border-color: #0b6e3a;
  color: #0b6e3a;
}

.header-me-link.is-logged-in {
  background: #f4f8f4;
  border-color: #b8d6c5;
  color: #0b6e3a;
  font-weight: 600;
}

.header-me-link.is-logged-in::before {
  content: "•";
  color: #0b6e3a;
  font-size: 16px;
  line-height: 1;
}

.header-me-link.is-logged-in::after {
  content: "이용 중";
  border: 1px solid #b8d6c5;
  border-radius: 999px;
  color: #0b6e3a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
}

@media (max-width: 720px) {
  .header-me-link {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Post-payment success dialog */
.signup-success-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.signup-success-dialog::backdrop {
  background: rgba(15, 23, 30, 0.5);
}

.signup-success {
  padding: 28px 26px;
  text-align: center;
}

.signup-success-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 8px;
}

.signup-success h2 {
  margin: 4px 0 8px;
  font-size: 19px;
  color: var(--ink);
}

.signup-success-sub {
  margin: 0 0 18px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.signup-success-card {
  background: #f4f8f4;
  border: 1px solid #d8e7d8;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 18px;
  text-align: left;
}

.signup-success-card strong {
  display: block;
  font-size: 13px;
  color: #0b6e3a;
  margin-bottom: 4px;
}

.signup-success-card p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--subtle);
  line-height: 1.5;
}

.signup-success-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.signup-success-link input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  background: #fff;
  color: var(--ink);
  user-select: all;
}

.signup-success-link button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.signup-success-link button:hover {
  background: #f0f7f0;
  border-color: #0b6e3a;
  color: #0b6e3a;
}

.signup-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-success-actions .primary-link {
  display: block;
  padding: 12px 18px;
  background: #0b6e3a;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.signup-success-actions .primary-link:hover {
  background: #085c30;
}

.signup-success-actions .ghost {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--subtle);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
}

.signup-success-tip {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: #fffaeb;
  border: 1px solid #f4e0a5;
  border-radius: 8px;
  font-size: 12.5px;
  color: #6c4a00;
  text-align: left;
  line-height: 1.55;
}

/* Collapsible "extras" card on /me — holds marketing consent, consent
   log, and data export. These exist for PIPA compliance but most users
   never touch them, so we keep the card closed by default to avoid
   visual noise. */
details.me-extras {
  padding: 0;
}

details.me-extras > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

details.me-extras > summary::-webkit-details-marker {
  display: none;
}

details.me-extras > summary > .panel-label {
  flex-shrink: 0;
}

details.me-extras > summary > h2 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

details.me-extras > summary > h2::after {
  content: "";
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--subtle);
  margin-top: 2px;
}

.me-extras-caret {
  font-size: 12px;
  color: var(--subtle);
  transition: transform 0.18s;
}

details.me-extras[open] .me-extras-caret {
  transform: rotate(180deg);
}

.me-extras-body {
  padding: 4px 20px 20px;
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.me-extras-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.me-extras-download a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0b6e3a;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

.me-extras-download a:hover {
  border-bottom-color: #0b6e3a;
}

/* /me page: helpful state when there is no token yet */
.me-token-help .me-help-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}

.me-token-help .me-help-list li {
  padding: 10px 12px;
  background: #f4f8f4;
  border-radius: 8px;
}

.calendar-menu-pop a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
}

.calendar-menu-pop a:hover {
  background: #f4f8f4;
}

.calendar-menu-pop .cal-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f4f8f4;
  border-radius: 8px;
}

.calendar-menu-pop strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.calendar-menu-pop small {
  display: block;
  font-size: 11.5px;
  color: var(--subtle);
  margin-top: 1px;
}

@media (max-width: 720px) {
  .calendar-menu-pop {
    right: auto;
    left: 0;
    min-width: 220px;
  }
}

/* SEO category landing page */
.seo-landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

.seo-hero {
  padding: 36px 28px;
  background: linear-gradient(135deg, #f4f8f4 0%, #fff 60%);
  border: 1px solid #d8e7d8;
  border-radius: 18px;
  margin-bottom: 24px;
}

.seo-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.seo-hero p {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.6;
}

.seo-section {
  margin: 36px 0;
}

.seo-section h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--ink);
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.seo-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.seo-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.seo-card .meta {
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
}

.seo-card a {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #0b6e3a;
  text-decoration: none;
}

.seo-card a:hover {
  text-decoration: underline;
}

.seo-bullets {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Referral inbound banner */
.referral-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 22px;
  background: linear-gradient(90deg, #fff5da 0%, #fff8e8 100%);
  border-bottom: 1px solid #f0d56a;
  color: #5c4700;
  font-size: 13.5px;
}

.referral-banner strong {
  color: #6a4f00;
  font-weight: 700;
}

.referral-banner button {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #6a4f00;
  cursor: pointer;
  padding: 0 6px;
}

/* Referral box inside /me */
.me-referral-box {
  display: grid;
  gap: 10px;
}

.me-referral-box label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--subtle);
}

.me-referral-box input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #f8faf6;
  user-select: all;
}

/* PWA install FAB */
.pwa-install-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #0b6e3a;
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(11, 110, 58, 0.32), 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pwa-install-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11, 110, 58, 0.42), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pwa-install-fab span:first-child {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 720px) {
  .pwa-install-fab {
    left: 12px;
    bottom: 78px; /* keep above mobile nav / browser chrome */
    max-width: calc(100vw - 24px);
  }
}

.event-card .meta {
  margin-top: 8px;
}

.empty-state {
  align-items: center;
  border: 1px dashed #cbd3da;
  border-radius: 8px;
  color: var(--subtle);
  display: grid;
  min-height: 160px;
  place-items: center;
  text-align: center;
}

dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 32px);
  max-width: 560px;
  overflow: auto;
  padding: 0;
  width: calc(100% - 32px);
}

dialog form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

dialog h2 {
  font-size: 24px;
  margin: 0;
}

dialog p {
  color: var(--subtle);
  line-height: 1.55;
  margin: 0;
}

.toast {
  background: #17201f;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 700;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 13px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--subtle);
  display: grid;
  gap: 14px;
  margin: 36px auto 0;
  max-width: 1200px;
  padding: 28px 28px 40px;
  font-size: 13px;
  line-height: 1.55;
}

.footer-top {
  display: grid;
  gap: 6px;
}

.footer-top strong {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.footer-legal-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-legal-nav a strong {
  color: #0b6e3a;
}

.footer-legal-nav a:hover {
  text-decoration: underline;
}

.footer-business {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  font-size: 12.5px;
  color: var(--subtle);
}

.footer-business span {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.footer-business dt {
  font-weight: 500;
  color: var(--subtle);
}

.footer-business dt::after {
  content: ":";
  margin-left: 2px;
}

.footer-business dd {
  margin: 0;
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--subtle);
}

.footer strong {
  color: var(--ink);
}

.footer a {
  color: var(--subtle);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* Consent box inside checkout dialog */
.consent-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  margin: 14px 0 10px;
  background: #fafbf9;
}

.consent-box legend {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: 0 6px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #0b6e3a;
  cursor: pointer;
}

.consent-row span {
  flex: 1;
}

.consent-row a {
  color: #0b6e3a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-row small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.5;
}

.consent-divider {
  margin: 6px 0;
  border: none;
  border-top: 1px dashed var(--line);
}

.consent-warning {
  margin: 6px 0 0;
  padding: 8px 10px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  color: #b1281f;
  font-size: 12.5px;
  font-weight: 500;
}

/* Pre-checkout legal notice block */
.checkout-legal-notice {
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: #f4f8f4;
  border: 1px solid #d8e7d8;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-legal-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #0b6e3a;
  font-size: 13px;
}

.checkout-legal-notice ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.checkout-legal-notice a {
  color: #0b6e3a;
  text-decoration: underline;
}

/* Legal page enhancements */
.legal-breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.legal-breadcrumb span {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-breadcrumb a {
  color: var(--subtle);
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-meta {
  margin: -8px 0 16px;
  color: var(--subtle);
  font-size: 13px;
}

.legal-intro {
  background: #f4f8f4;
  border: 1px solid #d8e7d8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13.5px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table thead th {
  background: #f4f8f4;
  font-weight: 600;
  color: var(--ink);
}

.business-info-table {
  max-width: 720px;
}

.legal-note {
  background: #fff7e0;
  border: 1px solid #f0d56a;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  color: #6a4f00;
  font-size: 13.5px;
}

/* Site-wide data disclaimer banner under the top bar */
.data-disclaimer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  padding: 9px 22px;
  background: #f4f8f4;
  border-bottom: 1px solid #d8e7d8;
  font-size: 12.5px;
  color: #4b5b48;
  line-height: 1.5;
}

.data-disclaimer-icon {
  color: #0b6e3a;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

.data-disclaimer strong {
  color: #0b6e3a;
  font-weight: 600;
}

.data-disclaimer-report {
  margin-left: auto;
  background: #fff;
  border: 1px solid #b1281f;
  color: #b1281f;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.data-disclaimer-report:hover {
  background: #b1281f;
  color: #fff;
}

/* Data correction report dialog */
.report-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.report-intro {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--subtle);
}

.report-intro small {
  display: inline-block;
  margin-top: 4px;
  color: var(--subtle);
}

.report-form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
}

.report-form label small {
  color: var(--subtle);
  font-weight: 400;
}

.report-form input[type="text"],
.report-form input[type="email"],
.report-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.report-form input:focus,
.report-form textarea:focus {
  border-color: #0b6e3a;
  box-shadow: 0 0 0 3px rgba(11, 110, 58, 0.15);
}

.report-legal {
  margin: 0;
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.55;
}

.report-legal a {
  color: #0b6e3a;
  text-decoration: underline;
}

.legal-note code {
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #8d5d00;
  border: 1px solid #f0d56a;
}

.legal-page {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 44px;
  line-height: 1.08;
  margin-bottom: 24px;
  text-align: left;
}

.legal-page h2 {
  margin-top: 28px;
}

.legal-page p {
  color: var(--subtle);
  line-height: 1.7;
}

.admin-body {
  background: #f5f7f8;
}

.ops-body {
  background: #f4f6f7;
}

.ops-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  min-height: 70px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ops-brand {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.ops-brand strong {
  font-size: 22px;
}

.ops-brand span,
.ops-topbar a {
  color: var(--subtle);
}

.ops-topbar nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ops-topbar a {
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

.ops-topbar a:hover {
  background: #f1f5f7;
  color: var(--ink);
}

/* ===== Admin tabs ===== */
.ops-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.ops-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--subtle);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 8px 16px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ops-tab:hover { background: #f1f5f7; color: var(--ink); }
.ops-tab.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.ops-tab-link {
  color: var(--subtle);
  font-size: 0.85rem;
  margin-left: 4px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
.ops-tab-link:hover { background: #f1f5f7; color: var(--ink); }

/* When using data-tab="..." on sections, the JS hides them with the
   hidden attribute. This keeps a non-active tab fully out of the layout. */
[data-tab][hidden] { display: none !important; }

/* ===== KPI strip (dashboard tab) ===== */
.ops-kpi-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border, #e6ebef);
  border-left: 4px solid var(--accent, #4c6fff);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.kpi-card.kpi-revenue  { border-left-color: #10b981; }
.kpi-card.kpi-active   { border-left-color: #4c6fff; }
.kpi-card.kpi-new      { border-left-color: #f59e0b; }
.kpi-card.kpi-delivery { border-left-color: #6366f1; }
.kpi-label {
  color: var(--subtle);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kpi-value {
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-sub {
  color: var(--subtle);
  font-size: 0.82rem;
}

/* ===== Urgent alerts panel ===== */
.ops-alert-panel {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 16px 18px;
}
.ops-alert-panel header { margin-bottom: 10px; }
.ops-alert-panel h2 { color: #991b1b; margin: 4px 0 0 0; font-size: 1.1rem; }
.panel-label-alert {
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 3px 10px;
}
.ops-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 4px solid #dc2626;
}
.alert-item.alert-warn { border-left-color: #f59e0b; }
.alert-item.alert-info { border-left-color: #6366f1; background: #f5f3ff; }
.alert-body strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.alert-body p { margin: 0; color: var(--subtle); font-size: 0.85rem; }
.alert-item button {
  appearance: none;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  white-space: nowrap;
}
.alert-item button:hover { background: #1e293b; }

.ops-main {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  padding-top: 26px;
}

.ops-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.ops-hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  margin: 10px 0 0;
  max-width: 780px;
  text-align: left;
}

.ops-hero p:not(.eyebrow) {
  color: var(--subtle);
  font-size: 17px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 680px;
}

.ops-status-card,
.ops-kpi,
.ops-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 25, 29, 0.05);
}

.ops-status-card {
  align-content: end;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
}

.ops-status-card strong {
  font-size: 28px;
  line-height: 1.15;
}

.ops-status-card span {
  color: var(--subtle);
  line-height: 1.5;
}

.ops-status-card.ok {
  background: #edf8f5;
  border-color: #b8e1d6;
}

.ops-status-card.warn {
  background: #fff7ed;
  border-color: #fed7aa;
}

.ops-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.daily-ops-panel {
  display: grid;
  gap: 14px;
}

.daily-ops-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.daily-ops-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-content: stretch;
  min-height: 150px;
  padding: 14px;
  text-align: left;
}

.daily-ops-card:hover,
.daily-ops-card.active {
  background: #17201f;
  border-color: #17201f;
  color: #fff;
}

.daily-ops-card span,
.daily-ops-card small {
  color: var(--subtle);
}

.daily-ops-card.active span,
.daily-ops-card.active small,
.daily-ops-card:hover span,
.daily-ops-card:hover small {
  color: rgba(255, 255, 255, 0.76);
}

.daily-ops-card strong {
  font-size: 34px;
  line-height: 1;
}

.daily-ops-card small {
  line-height: 1.4;
}

.ops-kpi {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.ops-kpi span,
.ops-kpi small {
  color: var(--subtle);
}

.ops-kpi span {
  font-size: 13px;
  font-weight: 800;
}

.ops-kpi strong {
  font-size: 30px;
  line-height: 1;
}

.ops-kpi small {
  line-height: 1.45;
}

.ops-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ops-panel {
  min-width: 0;
  padding: 20px;
}

.priority-panel {
  background: #17201f;
  color: #fff;
}

.priority-panel .panel-label,
.priority-panel h2,
.priority-panel small {
  color: #fff;
}

.ops-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.row-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ops-count {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtle);
  font-weight: 900;
  padding: 8px 12px;
}

.ops-panel-head h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}

.ops-actions,
.ops-checklist {
  display: grid;
  gap: 10px;
}

.ops-action {
  align-items: start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  gap: 7px;
  justify-content: stretch;
  min-height: auto;
  padding: 14px;
  text-align: left;
}

.ops-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ops-action span {
  color: #9ee6d8;
  font-size: 12px;
  font-weight: 800;
}

.ops-action strong {
  font-size: 18px;
}

.ops-action small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.ops-check {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 13px;
}

.ops-check > span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 0;
  text-align: center;
}

.ops-check.ok > span {
  background: #dff4ef;
  color: var(--accent-strong);
}

.ops-check.warn > span {
  background: #fff1e8;
  color: #9a4a2c;
}

.ops-check strong {
  display: block;
  margin-bottom: 4px;
}

.ops-check small {
  color: var(--subtle);
  line-height: 1.45;
}

.ops-table {
  overflow-x: auto;
}

.ops-table table {
  border-collapse: collapse;
  width: 100%;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

.ops-table th {
  color: var(--subtle);
}

.ops-event-list {
  display: grid;
  gap: 10px;
}

.ops-event {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.ops-event strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  margin-top: 6px;
}

.ops-event p {
  color: var(--subtle);
  line-height: 1.45;
  margin: 6px 0 0;
}

.ops-event a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.ops-event.is-hidden-home {
  background: #f8fafc;
  opacity: 0.82;
}

.ops-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ops-event-actions button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 32px;
  padding: 0 9px;
}

.ops-event-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.operator-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  padding: 8px 10px;
}

.official-candidates {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
}

.official-candidates strong {
  color: var(--accent-strong);
  font-size: 13px;
  margin: 0;
}

.official-candidate {
  display: grid;
  gap: 2px;
}

.official-candidate a {
  font-size: 14px;
}

.official-candidate small {
  color: var(--subtle);
  line-height: 1.4;
}

.official-candidate button {
  justify-self: start;
  min-height: 30px;
  padding: 0 9px;
}

.edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.check-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.check-row input {
  width: auto;
}

.error-text {
  color: #b42318 !important;
}

.runbook-panel {
  margin-top: 2px;
}

.ops-auth-banner {
  align-items: center;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
  padding: 12px 16px;
}

.ops-auth-banner strong {
  font-size: 16px;
  margin-right: 6px;
}

.ops-auth-banner span {
  color: inherit;
  line-height: 1.45;
}

.ops-auth-banner button {
  min-height: 32px;
  padding: 0 10px;
}

.ops-auth-banner.ok {
  background: #edf8f5;
  border: 1px solid #b8e1d6;
  color: #086e60;
}

.ops-auth-banner.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.ops-auth-banner.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.source-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.source-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.source-card.is-hidden {
  background: #f8fafc;
  opacity: 0.85;
}

.source-card.is-lower {
  border-color: #fed7aa;
}

.source-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.source-head strong {
  font-size: 17px;
}

.source-head small {
  color: var(--subtle);
  display: block;
  margin-top: 4px;
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.source-stats {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 14px;
}

.source-stats span {
  white-space: nowrap;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-actions button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 32px;
  padding: 0 10px;
}

.source-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.history-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-meta small {
  color: var(--subtle);
}

.tag.history-action {
  background: #1f2937;
  color: #fff;
}

.history-detail {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 32px;
  padding: 0 10px;
}

.history-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.source-card.is-disabled {
  background: #f8fafc;
  border-style: dashed;
  opacity: 0.78;
}

.source-meta {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 14px;
}

.source-meta .source-error {
  color: #b42318;
}

.source-meta .source-todo {
  color: #9a3412;
}

.tag.status-ok {
  background: #dff4ef;
  color: #086e60;
}

.tag.source-health-healthy {
  background: #dff4ef;
  color: #086e60;
}

.tag.source-health-paused {
  background: #f3f4f6;
  color: #4b5563;
}

.tag.source-health-setup {
  background: #fff7ed;
  color: #9a3412;
}

.tag.source-health-attention,
.tag.source-health-unknown {
  background: #fef2f2;
  color: #991b1b;
}

.tag.status-skipped {
  background: #f3f4f6;
  color: #4b5563;
}

.tag.status-failed {
  background: #fef2f2;
  color: #991b1b;
}

.tag.status-stub,
.tag.status-manual_seed,
.tag.status-data_present,
.tag.status-unknown {
  background: #fff7ed;
  color: #9a3412;
}

.keyword-counts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.keyword-count-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.keyword-count-row strong {
  font-size: 16px;
}

.keyword-count-row span {
  color: var(--subtle);
  font-size: 13px;
}

.keyword-chips button {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 12px;
}

.keyword-chips .chip-count {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.keyword-chips button:hover .chip-count,
.keyword-chips button.active .chip-count {
  color: rgba(255, 255, 255, 0.85);
}

.source-meta .source-hint {
  color: #1d4ed8;
}

.coverage-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.coverage-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.coverage-card .coverage-label {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.coverage-card strong {
  font-size: 22px;
}

.coverage-card small {
  color: var(--subtle);
  font-size: 12px;
}

.coverage-dormant {
  background: #fff7ed;
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  padding: 10px 12px;
  font-size: 13px;
  color: #9a3412;
}

.coverage-dormant span {
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 2px 8px;
}

.funnel-tabs {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  gap: 0;
  padding: 4px;
}

.funnel-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--subtle);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
}

.funnel-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.funnel-stages {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.funnel-stage {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  flex: 1 1 140px;
  gap: 4px;
  padding: 14px 14px 12px;
  position: relative;
}

.funnel-stage-label {
  color: var(--subtle);
  font-size: 12.5px;
  font-weight: 600;
}

.funnel-stage strong {
  font-size: 24px;
  font-weight: 800;
}

.funnel-stage small {
  color: var(--subtle);
  font-size: 11.5px;
}

.funnel-stage-ratio {
  display: inline-flex;
  flex-direction: column;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  margin-top: 6px;
  padding: 4px 10px;
  align-self: flex-start;
}

.funnel-stage-ratio em {
  font-style: normal;
  font-size: 12.5px;
}

.funnel-stage-ratio small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  margin-top: 1px;
}

.funnel-arrow {
  align-self: center;
  color: var(--subtle);
  font-size: 22px;
  font-weight: 600;
}

.funnel-insight {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .funnel-stages {
    flex-direction: column;
  }
  .funnel-arrow {
    align-self: flex-start;
    transform: rotate(90deg);
  }
}

.keyword-count-row.status-warn {
  border-color: #f59e0b;
}

.keyword-count-row.status-dormant {
  border-color: #d1d5db;
  opacity: 0.78;
}

.runbook-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.runbook-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 14px;
}

.runbook-grid span {
  color: var(--subtle);
  line-height: 1.45;
}

.runbook-grid code {
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: block;
  overflow-x: auto;
  padding: 10px;
}

.admin-main {
  display: grid;
  gap: 20px;
  max-width: 1180px;
}

.admin-hero {
  padding: 28px 0 8px;
}

.admin-hero h1 {
  font-size: 44px;
  max-width: 760px;
  text-align: left;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.panel-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: 24px;
  margin: 0;
}

.setup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
}

.status-pill.ok {
  background: #edf8f5;
  border-color: #b8e1d6;
  color: #087466;
}

.status-pill.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.next-actions {
  color: var(--ink);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 10px 8px;
  text-align: left;
}

.admin-table th {
  color: var(--subtle);
}

.command-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, auto) 1fr;
}

.command-grid code {
  background: #eef2f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.36);
}

.plan-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.plan-options button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 54px;
}

.plan-options button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plan-options-tiered,
.plan-options-solo {
  grid-template-columns: 1fr;
  gap: 12px;
}

.plan-options-solo .plan-option-main {
  cursor: default;
}

.plan-options-tiered .plan-option-main {
  align-items: flex-start;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid var(--accent);
  border-radius: 14px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  position: relative;
  text-align: left;
  min-height: 0;
}

.plan-options-tiered .plan-option-main.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.plan-options-tiered .plan-option-main.active small,
.plan-options-tiered .plan-option-main.active .plan-option-name,
.plan-options-tiered .plan-option-main.active .plan-option-tag {
  color: rgba(255, 255, 255, 0.96);
}

.plan-options-tiered .plan-option-tag {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
}

.plan-options-tiered .plan-option-main.active .plan-option-tag {
  background: #fff;
  color: var(--accent);
}

.plan-options-tiered .plan-option-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.plan-options-tiered .plan-option-main .plan-option-amount {
  font-size: 26px;
  font-weight: 800;
}

.plan-options-tiered .plan-option-main small {
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.5;
}

.plan-options-tiered .plan-option-secondary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.plan-options-tiered .plan-option-secondary button {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 12px 14px;
  text-align: left;
}

.plan-options-tiered .plan-option-secondary button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plan-options-tiered .plan-option-secondary button strong {
  font-size: 16px;
  font-weight: 700;
}

.plan-options-tiered .plan-option-secondary button small {
  color: var(--subtle);
  font-size: 11.5px;
}

.plan-options-tiered .plan-option-secondary button.active small {
  color: rgba(255, 255, 255, 0.86);
}

.dialog-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

@media (max-width: 980px) {
  .topbar,
  .workbench,
  .ops-topbar,
  .ops-hero,
  .hero-grid,
  .monitor-pricing,
  .home-account-panel,
  .saved-strip {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: auto;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .saved-strip {
    gap: 16px;
  }

  .saved-actions {
    flex-direction: row;
  }

  .home-account-actions {
    flex-direction: row;
    min-width: 0;
  }

  .topbar {
    align-items: start;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .ops-topbar nav {
    justify-content: flex-start;
  }

  .side-panel {
    position: static;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar .top-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-lockup span {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 10px 12px;
  }

  .topnav,
  .top-actions {
    display: none;
  }

  .topbar .top-actions {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .top-actions .primary-link,
  .top-actions .hero-primary-button {
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
  }

  main {
    padding: 14px 12px 34px;
    width: 100%;
  }

  h1 {
    font-size: 26px;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: wrap;
    word-break: normal;
  }

  .hero-copy,
  .lead,
  .hero-actions,
  .hero-meta,
  .hero-preview,
  .watch-sample-section,
  .pricing-section,
  .signal-board,
  .home-account-panel,
  .keyword-section,
  .event-board,
  .saved-strip {
    max-width: calc(100vw - 24px);
  }

  .home-account-panel {
    border-radius: 12px;
    gap: 16px;
    margin: 8px 0 18px;
    padding: 18px;
  }

  .home-account-copy h2 {
    font-size: 21px;
  }

  .home-account-actions {
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    padding: 16px 0 12px;
  }

  .hero-copy {
    text-align: left;
  }

  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 12px;
    max-width: 340px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-actions,
  .hero-pills {
    justify-content: flex-start;
  }

  .hero-actions .primary-link,
  .hero-actions button,
  .hero-actions .ghost-link {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }

  .hero-account-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }

  .hero-account-strip strong,
  .hero-account-strip a {
    flex: 1 1 auto;
  }

  .hero-pills span:nth-child(n+3),
  .trust-row,
  .summary-grid div:nth-child(3),
  .summary-grid div:nth-child(4),
  .section-heading p,
  .category-card small,
  .value-grid span,
  .faq-section {
    display: none;
  }

  .summary-grid,
  .ops-kpis,
  .daily-ops-grid,
  .ops-layout,
  .runbook-grid,
  .signal-head,
  .category-grid,
  .value-grid,
  .trust-row,
  .filters,
  .event-card,
  .saved-strip,
  .watch-sample-section,
  .pricing-section,
  .pricing-cards,
  .admin-grid,
  .command-grid,
  .plan-options,
  .dialog-actions,
  .hero-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .hero-meta div:nth-child(3) {
    display: none;
  }

  .hero-meta strong {
    font-size: 22px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .summary-grid div {
    padding: 12px;
  }

  .summary-grid strong {
    font-size: 24px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .category-overview {
    margin-top: 10px;
  }

  .signal-board,
  .keyword-section {
    padding: 12px;
  }

  .hero-preview {
    padding: 12px;
  }

  .hero-preview-card {
    min-height: 0;
  }

  .hero-preview-image {
    aspect-ratio: 16 / 8;
  }

  .preview-content {
    padding: 0 12px;
  }

  .preview-actions {
    grid-template-columns: 1fr;
    padding: 10px 12px 12px;
  }

  .signal-head h2 {
    font-size: 22px;
  }

  .signal-summary {
    justify-content: flex-start;
  }

  .signal-summary span {
    font-size: 12px;
    padding: 6px 9px;
  }

  .signal-tabs,
  .keyword-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .signal-tabs button,
  .keyword-chips button {
    flex: 0 0 auto;
  }

  .daily-ops-card {
    min-height: auto;
  }

  .row-head {
    align-items: start;
    display: grid;
  }

  .ops-event {
    grid-template-columns: 1fr;
  }

  .edit-grid {
    grid-template-columns: 1fr;
  }

  .keyword-head {
    display: grid;
    gap: 4px;
  }

  .category-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .category-links a {
    white-space: nowrap;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    min-height: 82px;
    padding: 12px;
  }

  .category-card strong {
    font-size: 22px;
  }

  .event-board {
    padding: 12px;
  }

  .board-header h2 {
    font-size: 22px;
  }

  .quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quick-chips button {
    flex: 0 0 auto;
  }

  .filters {
    gap: 8px;
  }

  .result-line {
    align-items: start;
    display: grid;
  }

  .result-highlights {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .result-highlights span {
    flex: 0 0 auto;
  }

  .result-pagination {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-numbers {
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .result-pagination button {
    flex: 0 0 auto;
  }

  .board-header {
    align-items: start;
    display: grid;
  }

  .quick-chips {
    justify-content: flex-start;
  }

  .thumb {
    aspect-ratio: 1;
    width: 74px;
  }

  .event-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .event-card .actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr auto;
  }

  .event-card .actions button,
  .event-card .actions a {
    min-height: 38px;
  }

  .tag.source,
  .meta span:nth-child(n+4) {
    display: none;
  }

  .reason {
    font-size: 12px;
    margin-top: 6px;
  }

  .event-card h3 {
    font-size: 16px;
    margin: 7px 0;
  }

  .meta {
    font-size: 13px;
    gap: 5px 8px;
  }

  .saved-strip {
    align-items: start;
  }

  .value-section,
  .pricing-section {
    padding: 14px;
  }

  .pricing-section h2 {
    font-size: 22px;
  }

  .plan-card {
    min-height: auto;
    padding: 14px;
  }

  .topnav {
    display: none;
  }
}

/* === Admin: 구독자 관리 패널 === */
.subscribers-panel .subscriber-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.subscribers-panel .stat-card {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscribers-panel .stat-card strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.subscribers-panel .stat-card span {
  font-size: 12px;
  color: #5c6370;
  font-weight: 500;
}

.subscribers-panel .stat-active { border-color: #b8e6c9; }
.subscribers-panel .stat-active strong { color: #0f766e; }
.subscribers-panel .stat-warn { border-color: #fad9a3; background: #fffbf2; }
.subscribers-panel .stat-warn strong { color: #b25500; }
.subscribers-panel .stat-expired { border-color: #f4c2c2; background: #fff5f5; }
.subscribers-panel .stat-expired strong { color: #b91c1c; }
.subscribers-panel .stat-pending strong { color: #475569; }
.subscribers-panel .stat-muted strong { color: #6b7280; }
.subscribers-panel .stat-total strong { color: #0f766e; }

.subscriber-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.subscriber-search {
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
}

.subscriber-search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d6dae0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.subscriber-search input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.subscriber-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.subscriber-filters button {
  border: 1px solid #d6dae0;
  background: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  color: #475569;
}

.subscriber-filters button.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.subscriber-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
}

.subscriber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.subscriber-table thead {
  background: #f8f9fb;
}

.subscriber-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12.5px;
  color: #475569;
  border-bottom: 1px solid #e3e6ec;
}

.subscriber-table td {
  padding: 12px;
  border-bottom: 1px solid #eef0f3;
  vertical-align: top;
}

.subscriber-table tbody tr:hover {
  background: #fafbfc;
}

.subscriber-table .cell-strong {
  font-weight: 600;
  color: #17191d;
}

.subscriber-table .cell-keywords {
  max-width: 240px;
  font-size: 12.5px;
  color: #475569;
}

.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-pill.status-active { background: #d8f3dc; color: #0f5132; }
.status-pill.status-active.status-warn { background: #fff3cd; color: #93580a; }
.status-pill.status-expired { background: #fde2e2; color: #b91c1c; }
.status-pill.status-pending { background: #e5e7eb; color: #475569; }
.status-pill.status-unsub { background: #f3f4f6; color: #6b7280; }

.chan-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-right: 4px;
}
.chan-pill.chan-alim { background: #fef3c7; color: #92400e; }
.chan-pill.chan-email { background: #dbeafe; color: #1e3a8a; }
.chan-pill.chan-none { background: #f3f4f6; color: #6b7280; }

/* 구독자 상세 모달 */
.subscriber-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(720px, 92vw);
  max-height: 86vh;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.subscriber-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.subscriber-dialog form {
  display: flex;
  flex-direction: column;
  max-height: 86vh;
}

.subscriber-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid #eef0f3;
}

.subscriber-dialog-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.subscriber-dialog-head .muted {
  font-size: 12.5px;
  margin-top: 4px;
}

.subscriber-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.subscriber-dialog-grid section {
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  padding: 14px;
  background: #fafbfc;
}

.subscriber-dialog-grid section.full {
  grid-column: 1 / -1;
}

.subscriber-dialog-grid section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.subscriber-dialog-grid section .muted {
  font-size: 12px;
  margin: 0 0 10px;
}

.subscriber-dialog-grid section textarea {
  width: 100%;
  border: 1px solid #d6dae0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}

.subscriber-dialog-grid section .row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.subscriber-dialog-grid section button.primary {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.subscriber-dialog-grid section button.ghost {
  background: #fff;
  border: 1px solid #d6dae0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
}

.subscriber-dialog-grid .copy-target {
  display: block;
  background: #f1f5f9;
  border: 1px solid #d6dae0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 10px;
}

.subscriber-history {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.subscriber-history li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  font-size: 12.5px;
}

.subscriber-history .hist-status {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e5e7eb;
  color: #475569;
}
.subscriber-history .hist-status.status-sent { background: #d8f3dc; color: #0f5132; }
.subscriber-history .hist-status.status-failed { background: #fde2e2; color: #b91c1c; }
.subscriber-history .hist-status.status-pending { background: #fff3cd; color: #93580a; }

.subscriber-history .hist-channel {
  color: #475569;
  font-weight: 600;
}

.subscriber-history .hist-time {
  color: #6b7280;
  font-size: 11.5px;
}

.subscriber-ops-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.subscriber-ops-log li {
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px dashed #eef0f3;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.subscriber-ops-log .ops-time {
  color: #6b7280;
  font-size: 11.5px;
}

.subscriber-ops-log .ops-action {
  font-weight: 600;
  color: #17191d;
}

@media (max-width: 820px) {
  .subscribers-panel .subscriber-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .subscriber-dialog-grid {
    grid-template-columns: 1fr;
  }
}

/* === 마이페이지 === */
.me-body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 600px);
  min-height: 100vh;
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  color: #17191d;
}

.me-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e3e6ec;
  background: #fff;
}

.me-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 2px;
}
.me-brand strong { font-size: 16px; letter-spacing: 0; }
.me-brand span { font-size: 12px; color: #6b7280; }

.me-topbar nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.me-topbar nav a,
.me-logout-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

.me-topbar nav a {
  border: 1px solid #d6dae0;
  color: #475569;
  text-decoration: none;
}

.me-logout-button {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
  cursor: pointer;
}

.me-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 22px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.me-banner {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.me-banner[data-tone="danger"] { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.me-banner[data-tone="warn"] { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.me-banner[data-tone="info"] { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.me-summary-loading {
  padding: 32px;
  text-align: center;
  color: #6b7280;
}

.me-summary-card {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ecfdf5;
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.18);
}
.me-summary-card.tone-warn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.18);
}
.me-summary-card.tone-danger {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.18);
}
.me-summary-card.tone-muted {
  background: linear-gradient(135deg, #475569 0%, #1f2937 100%);
}

.me-summary-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.me-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  animation: me-pulse 1.8s ease-in-out infinite;
}

@keyframes me-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.me-summary-card h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.me-summary-card .muted {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.me-summary-meta {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.me-summary-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.me-summary-meta dt {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.me-summary-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.me-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.me-card {
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.me-card.me-card-wide {
  grid-column: 1 / -1;
}

.me-card header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.me-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.me-card .muted {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
}

.me-card .panel-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #0f766e;
  text-transform: uppercase;
}

.me-token-help {
  gap: 18px;
}

.me-login-form {
  background: #f8fafc;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.me-login-form label {
  color: #17191d;
  font-size: 13px;
  font-weight: 700;
}

.me-login-form > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.me-login-form > .me-login-stack {
  grid-template-columns: 1fr;
}

.me-login-form input {
  border: 1px solid #d6dae0;
  border-radius: 10px;
  font-size: 14px;
  min-height: 42px;
  padding: 0 12px;
}

.me-login-form input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.me-login-form .primary {
  background: #0f766e;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.me-login-form .primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.me-login-actions a {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  text-align: center;
  text-decoration: none;
}

.me-login-actions .primary {
  background: #0f766e;
  color: #ffffff;
}

.me-login-actions .ghost {
  background: #ffffff;
  border: 1px solid #d6dae0;
  color: #17191d;
}

.me-login-actions button {
  border: 0;
  cursor: pointer;
}

.me-signup-card {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

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

.me-signup-form label,
.me-signup-consent {
  color: #17191d;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.me-signup-form small {
  color: #6b7280;
  font-weight: 600;
}

.me-signup-form input {
  border: 1px solid #d6dae0;
  border-radius: 10px;
  font-size: 14px;
  min-height: 42px;
  padding: 0 12px;
}

.me-signup-form input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.me-signup-two {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-signup-plan {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.me-signup-plan span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.me-signup-plan strong {
  color: #0f1115;
  font-size: 24px;
  font-weight: 900;
}

.me-signup-keywords {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.me-signup-keyword-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.me-signup-keyword-head div {
  display: grid;
  gap: 4px;
}

.me-signup-keyword-head strong {
  color: #0f1115;
  font-size: 15px;
  font-weight: 900;
}

.me-signup-keyword-head span {
  background: #ffffff;
  border: 1px solid #d6dae0;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
}

.me-signup-keyword-head span strong {
  color: #0f766e;
  font-size: 13px;
}

.me-keyword-group {
  display: grid;
  gap: 8px;
}

.me-keyword-group > span {
  color: #17191d;
  font-size: 13px;
  font-weight: 900;
}

.me-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.me-keyword-chips button {
  background: #ffffff;
  border: 1px solid #d6dae0;
  border-radius: 999px;
  color: #17191d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 13px;
}

.me-keyword-chips button:hover {
  border-color: rgba(15, 118, 110, 0.55);
  color: #0f766e;
}

.me-keyword-chips button.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.me-keyword-chips button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.me-signup-custom-keywords {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  padding: 12px;
}

.me-signup-keyword-selected,
.me-signup-keyword-safe {
  margin: 0;
}

.me-signup-keyword-selected {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  padding: 11px 12px;
}

.me-signup-keyword-selected strong {
  color: #0f766e;
  font-weight: 900;
}

.me-signup-keyword-signal {
  display: grid;
  gap: 8px;
}

.me-signup-signal-row {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-left: 4px solid #94a3b8;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.me-signup-signal-row.level-ok {
  border-left-color: #0f766e;
}

.me-signup-signal-row.level-warn {
  border-left-color: #d97706;
}

.me-signup-signal-row.level-danger {
  border-left-color: #dc2626;
}

.me-signup-signal-row strong {
  color: #0f1115;
  font-size: 13px;
  font-weight: 900;
}

.me-signup-signal-row span {
  color: #0f766e;
  font-size: 12.5px;
  font-weight: 900;
}

.me-signup-signal-row.level-warn span {
  color: #b45309;
}

.me-signup-signal-row.level-danger span {
  color: #b91c1c;
}

.me-signup-signal-row small {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.me-signup-keyword-safe {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  padding: 11px 12px;
}

.me-signup-consent {
  background: #f8fafc;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.me-signup-consent legend {
  font-weight: 900;
  padding: 0 4px;
}

.me-signup-consent label {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  font-weight: 700;
  justify-content: start;
  line-height: 1.4;
}

.me-signup-consent input {
  height: 16px;
  margin-top: 2px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.me-signup-consent span {
  display: grid;
  gap: 3px;
}

.me-signup-consent strong {
  color: #17191d;
  font-weight: 800;
}

.me-signup-consent small {
  color: #5b6472;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.me-signup-consent a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.me-signup-consent a:hover {
  text-decoration: underline;
}

.me-consent-summary {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  padding: 11px 12px;
}

.me-consent-summary summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.me-consent-summary ul {
  color: #475569;
  display: grid;
  font-size: 12.5px;
  gap: 6px;
  line-height: 1.5;
  margin: 10px 0 0;
  padding-left: 18px;
}

.me-consent-full {
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  margin-left: 28px;
  padding: 10px 12px;
}

.me-consent-full summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 900;
}

.me-consent-full div {
  color: #475569;
  display: grid;
  font-size: 12.5px;
  gap: 7px;
  line-height: 1.5;
  margin-top: 10px;
}

.me-consent-full p {
  margin: 0;
}

.me-consent-full a {
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

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

.me-signup-actions button {
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 46px;
}

.me-signup-actions .primary {
  background: #0f766e;
  border: 0;
  color: #ffffff;
}

.me-signup-actions .ghost {
  background: #ffffff;
  border: 1px solid #d6dae0;
  color: #17191d;
}

.me-signup-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.me-help-list {
  color: #475569;
  display: grid;
  font-size: 13.5px;
  gap: 8px;
  line-height: 1.55;
  margin: 0;
  padding-left: 18px;
}

.me-help-list a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.me-status-list {
  display: grid;
  gap: 8px;
}

.me-status-row {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 10px 12px;
}

.me-status-row span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.me-status-row strong {
  color: #17191d;
  font-size: 13.5px;
  line-height: 1.35;
}

.me-status-row small {
  color: #6b7280;
  font-size: 12px;
  grid-column: 2;
  line-height: 1.45;
}

.me-status-row.tone-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.me-status-row.tone-ok strong {
  color: #166534;
}

.me-status-row.tone-warn {
  background: #fffbeb;
  border-color: #fde68a;
}

.me-status-row.tone-warn strong {
  color: #92400e;
}

.me-status-row.tone-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.me-status-row.tone-danger strong {
  color: #991b1b;
}

.me-inline-form {
  border-top: 1px dashed #eef0f3;
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.me-inline-form label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.me-inline-form > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.me-inline-form input,
.me-inline-form select,
.me-inline-form textarea {
  border: 1px solid #d6dae0;
  border-radius: 10px;
  font-size: 13.5px;
  min-height: 40px;
  padding: 0 11px;
}

.me-inline-form input:focus,
.me-inline-form textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.me-inline-form .ghost,
.me-mini-details .ghost {
  background: #fff;
  border: 1px solid #d6dae0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 13px;
  white-space: nowrap;
}

.me-mini-details {
  border-top: 1px dashed #eef0f3;
  padding-top: 12px;
}

.me-mini-details summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.me-mini-details .me-inline-form {
  border-top: none;
  margin-top: 10px;
  padding-top: 0;
}

.me-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.me-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.me-keyword-chip button {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #065f46;
  cursor: pointer;
  padding: 0 0 0 2px;
}

.me-keyword-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.me-keyword-add input {
  border: 1px solid #d6dae0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.me-keyword-add input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.me-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.me-renewal-box {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 14px;
}

.me-renewal-box div {
  display: grid;
  gap: 3px;
}

.me-renewal-box strong {
  color: #0f1115;
  font-size: 14px;
  font-weight: 900;
}

.me-renewal-box small {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.me-renewal-box > span {
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.me-actions .primary,
.me-keyword-add .primary {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.me-actions .primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.me-actions .ghost {
  background: #fff;
  border: 1px solid #d6dae0;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.me-actions .danger.ghost {
  border-color: #fecaca;
  color: #b91c1c;
}

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

.me-support-form select,
.me-support-form textarea {
  border: 1px solid #d6dae0;
  border-radius: 10px;
  color: #17191d;
  font: inherit;
  font-size: 14px;
  width: 100%;
}

.me-support-form select {
  min-height: 44px;
  padding: 0 12px;
}

.me-support-form textarea {
  line-height: 1.55;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.me-support-form select:focus,
.me-support-form textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.me-support-form button {
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
}

.me-consent-log {
  margin: 14px 0 6px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
}

.me-consent-log > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef0f3;
}

.me-consent-log > div:last-child {
  border-bottom: none;
}

.me-consent-log dt {
  color: var(--subtle);
  font-weight: 500;
}

.me-consent-log dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

a.ghost#meDownloadDataButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Notification feedback row */
.me-hist-feedback {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 10px;
  background: #f4f8f4;
  border: 1px dashed #d8e7d8;
  border-radius: 8px;
  font-size: 12.5px;
}

.me-hist-feedback-label {
  color: var(--subtle);
  margin-right: 4px;
}

.me-hist-feedback button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.me-hist-feedback button:hover:not(:disabled) {
  background: #f0f7f0;
  border-color: #0b6e3a;
  color: #0b6e3a;
}

.me-hist-feedback button:disabled {
  cursor: default;
  opacity: 0.7;
}

.me-hist-feedback button.active {
  background: #0b6e3a;
  border-color: #0b6e3a;
  color: #fff;
}

.me-hist-feedback-thanks {
  color: #0b6e3a;
  font-weight: 500;
  margin-left: 4px;
}

.me-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.me-toggle:hover {
  background: #f8fafc;
  border-color: #d6dae0;
}

.me-toggle input {
  appearance: none;
  background: #cbd5e1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  height: 18px;
  margin: 0;
  min-height: 0;
  position: relative;
  width: 34px;
}

.me-toggle input::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  content: "";
  height: 14px;
  left: 1px;
  position: absolute;
  top: 1px;
  transition: transform 0.15s ease;
  width: 14px;
}

.me-toggle input:checked {
  background: #0f766e;
  border-color: #0f766e;
}

.me-toggle input:checked::after {
  transform: translateX(16px);
}

.me-toggle input:disabled {
  background: #e5e7eb;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

.me-toggle input:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
  outline: none;
}

.me-toggle span strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.me-toggle span .muted {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.me-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-history li {
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.me-hist-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.me-hist-channel {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.me-hist-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: #e5e7eb;
  color: #475569;
}
.me-hist-status.status-sent { background: #d8f3dc; color: #0f5132; }
.me-hist-status.status-failed { background: #fde2e2; color: #b91c1c; }
.me-hist-status.status-pending { background: #fff3cd; color: #93580a; }

.me-hist-time { color: #6b7280; }

.me-hist-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #17191d;
}

.me-hist-meta {
  font-size: 12.5px;
  color: #475569;
}

.me-hist-meta a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.me-foot {
  text-align: center;
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 12px;
}

.me-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #17191d;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.me-toast[data-tone="warn"] { background: #9a3412; }
.me-toast[data-tone="danger"] { background: #991b1b; }

@media (max-width: 720px) {
  .header-me-link.is-logged-in::after { display: none; }
  .me-topbar { padding: 14px 12px; }
  .me-topbar nav { gap: 6px; }
  .me-topbar nav a,
  .me-logout-button {
    font-size: 12.5px;
    min-height: 36px;
    padding: 0 10px;
  }
  .me-login-form > div { grid-template-columns: 1fr; }
  .me-inline-form > div { grid-template-columns: 1fr; }
  .me-keyword-add { grid-template-columns: 1fr; }
  .me-renewal-box { grid-template-columns: 1fr; }
  .me-keyword-add .primary,
  .me-support-form button {
    justify-self: stretch;
    width: 100%;
  }
  .me-status-row {
    grid-template-columns: 1fr;
  }
  .me-status-row small {
    grid-column: auto;
  }
  .me-summary-meta { grid-template-columns: repeat(2, 1fr); }
  .me-grid { grid-template-columns: 1fr; }
  .me-card.me-card-wide { grid-column: auto; }
}

/* Checkout: per-keyword signal preview --------------------------------- */
.picker-signal {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.picker-signal-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.picker-signal-list {
  display: grid;
  gap: 6px;
}
.picker-signal-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
}
.picker-signal-row.level-danger { background: #fef2f2; border-color: #fecaca; }
.picker-signal-row.level-warn { background: #fffbeb; border-color: #fde68a; }
.picker-signal-row.level-ok { background: #f0fdf4; border-color: #bbf7d0; }
.picker-signal-row.level-unknown { background: #f1f5f9; border-color: #cbd5f5; }
.picker-signal-icon { font-size: 14px; line-height: 1; }
.picker-signal-keyword { font-weight: 600; }
.picker-signal-label { color: var(--subtle); font-size: 12px; }
.picker-signal-hint { grid-column: 1 / -1; color: #475569; font-size: 12px; line-height: 1.4; }

/* Keyword health panel ------------------------------------------------- */
.keyword-health-list {
  display: grid;
  gap: 12px;
}
.keyword-health-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.keyword-health-row.status-red { background: #fef2f2; border-color: #fecaca; }
.keyword-health-row.status-yellow { background: #fffbeb; border-color: #fcd34d; }
.keyword-health-row.status-spike { background: #fff7ed; border-color: #fb923c; }
.keyword-health-row.status-green { background: #f0fdf4; border-color: #bbf7d0; }

.keyword-health-row > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.keyword-health-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.keyword-health-title strong { font-size: 15px; }
.keyword-health-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  letter-spacing: 0.02em;
}
.keyword-health-badge.status-green { background: #bbf7d0; color: #14532d; }
.keyword-health-badge.status-yellow { background: #fde68a; color: #92400e; }
.keyword-health-badge.status-red { background: #fecaca; color: #991b1b; }
.keyword-health-badge.status-spike { background: #fdba74; color: #7c2d12; }
.keyword-health-counts {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--subtle);
}
.keyword-health-counts strong { color: #0f172a; font-size: 15px; }
.keyword-health-reason { margin: 0; font-size: 13px; color: #334155; }
.keyword-health-samples {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.keyword-health-samples li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.keyword-health-samples small { color: var(--subtle); margin-left: 4px; }
.keyword-blocklist-add {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.keyword-blocklist-add input {
  flex: 1 1 220px;
  min-width: 0;
}
.keyword-blocklist-add.small input,
.keyword-blocklist-add.small button { font-size: 12px; padding: 6px 10px; }
.keyword-health-blocklist {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.keyword-health-blocklist summary { cursor: pointer; font-weight: 600; }
.keyword-blocklist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.keyword-blocklist-chip {
  background: #fff;
  border: 1px solid #fda4af;
  color: #9f1239;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}
.muted.small { font-size: 12px; }
button.ghost.small { font-size: 11px; padding: 4px 8px; }
