:root {
  --forest: #14211c;
  --forest-2: #22382f;
  --cream: #f4f1e9;
  --paper: #fffdf8;
  --ink: #16231e;
  --muted: #69756f;
  --line: #dde1dc;
  --orange: #ee6b3b;
  --orange-soft: #fff0e8;
  --mint: #83d5b6;
  --blue: #5b77df;
  --shadow: 0 18px 56px rgba(20, 33, 28, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.016em;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding-bottom: 78px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(131, 213, 182, .15), transparent 25%),
    radial-gradient(circle at 12% 90%, rgba(238, 107, 59, .12), transparent 26%),
    var(--forest);
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -210px;
  top: 56px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255,255,255,.022), 0 0 0 124px rgba(255,255,255,.016);
}
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 23px; }
.nav-right, .user-menu { display: flex; align-items: center; gap: 7px; }
.language-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; }
.language-switch a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 12px; font-weight: 800; line-height: 1; padding: 7px 9px; border-radius: 999px; white-space: nowrap; }
.language-switch a.active { color: #14211c; background: #fff; }
.public-nav { display: flex; align-items: center; gap: 16px; margin-right: 8px; }
.public-nav a { color: #cbd6d1; font-size: 11px; font-weight: 800; text-decoration: none; }
.public-nav a:hover { color: #fff; }
.login-button { padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: var(--forest); background: var(--mint); font-size: 11px; font-weight: 900; white-space: nowrap; }
.install-button { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 900; white-space: nowrap; }
.install-button[hidden] { display: none; }
.login-button[hidden] { display: none; }
.user-menu[hidden] { display: none; }
.user-menu { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.12); }
.user-menu > #userEmail { max-width: 150px; color: #cbd6d1; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu button { padding: 7px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 800; }
.user-menu .admin-btn { color: var(--forest); background: var(--mint); border-color: var(--mint); }
.user-menu .visitor-stat { display: inline-flex; align-items: baseline; gap: 4px; padding-inline: 10px; border-color: rgba(131,213,182,.28); background: rgba(131,213,182,.1); }
.user-menu .visitor-stat[hidden] { display: none; }
.visitor-stat span { color: #b9cbc3; font-size: 9px; }
.visitor-stat strong { color: var(--mint); font-size: 13px; }
.visitor-stat small { color: #b9cbc3; font-size: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px 8px 8px 2px; background: var(--orange); font-size: 18px; letter-spacing: 0; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #ced9d4; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 750; }
.privacy-pill i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(131,213,182,.1); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(45px, 8vw, 104px); padding-top: 76px; }
.eyebrow, .kicker { margin: 0; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
h1 { margin: 15px 0 0; font-size: clamp(43px, 6vw, 72px); line-height: 1.04; letter-spacing: -.065em; }
h1 em { color: var(--mint); font-style: normal; }
.lead { max-width: 600px; margin: 22px 0 0; color: #bfcbc6; font-size: 16px; line-height: 1.75; }
.scan-card { padding: 24px; color: var(--ink); background: var(--paper); border: 1px solid rgba(255,255,255,.35); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.scan-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.scan-label-row label { font-size: 13px; font-weight: 850; }
.scan-label-row span { color: var(--muted); font-size: 10px; }
.url-field { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 13px; background: #f5f5f1; border: 1px solid var(--line); border-radius: 11px; }
.url-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,107,59,.1); }
.url-field span { color: var(--orange); font-weight: 900; }
.url-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.primary-btn { width: 100%; height: 50px; margin-top: 11px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 11px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 11px 24px rgba(238,107,59,.24); }
.primary-btn:hover { filter: brightness(.97); }
.primary-btn:disabled { cursor: wait; opacity: .72; }
.button-arrow { font-size: 20px; transition: transform .2s ease; }
.primary-btn:hover .button-arrow { transform: translateX(3px); }
.demo-btn { width: 100%; margin-top: 8px; padding: 9px; border: 0; color: var(--forest-2); background: transparent; font-size: 11px; font-weight: 800; text-decoration: underline; text-decoration-color: #bfc7c2; text-underline-offset: 3px; }
.scan-note { margin: 11px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.saved-sites-panel { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.saved-sites-panel[hidden] { display: none; }
.saved-sites-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.saved-sites-head b { font-size: 12px; }
.saved-sites-head button { min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: #fff; font-size: 10px; font-weight: 850; }
.site-nickname { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.site-nickname input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #f5f5f1; font-size: 11px; }
.saved-site-list { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.saved-site-item { flex: 0 0 auto; display: grid; grid-template-columns: auto 34px 34px; gap: 4px; }
.saved-site-chip { display: grid; align-items: center; gap: 1px; min-height: 44px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; }
.saved-site-chip.active { border-color: var(--orange); background: var(--orange-soft); }
.saved-site-chip b { font-size: 10px; }
.saved-site-chip small { max-width: 150px; color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-site-icon { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 13px; font-weight: 900; }
.saved-site-icon.active { color: #b84923; border-color: #efb49c; background: var(--orange-soft); }
#savedSitesEmpty { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
#savedSitesEmpty[hidden] { display: none; }
.status { min-height: 0; margin-top: 0; padding: 0; border-radius: 9px; font-size: 11px; line-height: 1.5; transition: all .2s ease; }
.status.show { min-height: 35px; margin-top: 10px; padding: 9px 11px; }
.status.loading { color: #355e50; background: #e8f7f1; }
.status.error { color: #9c3f22; background: #fff0e8; }
.status.success { color: #315a49; background: #e8f7f1; }

.main { padding: 0 0 80px; }
.reminder-banner { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 14px 16px; border: 1px solid #b8ded0; border-radius: 14px; background: #e8f7f1; box-shadow: 0 10px 30px rgba(20,33,28,.07); }
.reminder-banner[hidden] { display: none; }
.reminder-banner div { display: grid; gap: 3px; }
.reminder-banner b { font-size: 13px; }
.reminder-banner span { color: var(--muted); font-size: 11px; }
.reminder-banner button { padding: 8px 12px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 10px; font-weight: 850; }
.public-overview { position: relative; z-index: 3; margin-top: -34px; padding: 27px; border: 1px solid rgba(20,33,28,.08); border-radius: 20px; background: rgba(255,253,248,.98); box-shadow: var(--shadow); }
.public-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); align-items: end; gap: 28px; }
.public-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.benefit-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8f8f4; }
.benefit-grid article > span { color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.benefit-grid h3 { margin: 12px 0 0; font-size: 17px; }
.benefit-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.guide-library { padding-top: 58px; scroll-margin-top: 18px; }
.guide-library .section-sub { max-width: 410px; font-size: 14px; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 20px; }
.guide-grid a { grid-column: span 2; min-height: 178px; padding: 20px; border: 1px solid rgba(20,33,28,.09); border-radius: 16px; background: var(--paper); box-shadow: 0 9px 30px rgba(20,33,28,.05); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.guide-grid a:nth-child(4), .guide-grid a:nth-child(5) { grid-column: span 3; }
.guide-grid a:hover { transform: translateY(-2px); border-color: rgba(238,107,59,.45); }
.guide-grid span { color: var(--orange); font-size: 11px; font-weight: 900; }
.guide-grid h3 { margin: 16px 0 0; font-size: 18px; line-height: 1.42; }
.guide-grid p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.portal-ready { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 32px; align-items: center; margin-top: 54px; padding: 27px; border-radius: 18px; color: #fff; background: var(--forest-2); }
.portal-ready h2 { font-size: clamp(24px, 3vw, 32px); }
.portal-ready p:not(.kicker) { margin: 10px 0 0; color: #b9c8c1; font-size: 14px; line-height: 1.65; }
.portal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-links a { padding: 11px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #e8efeb; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 800; text-decoration: none; }
.portal-links a:hover { background: rgba(255,255,255,.1); }
.overview { margin-top: 54px; position: relative; z-index: 3; scroll-margin-top: 18px; }
.section-heading, .queue-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
h2 { margin: 7px 0 0; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.05em; }
.section-sub { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.overview .section-heading { padding: 24px 26px; border: 1px solid rgba(20,33,28,.08); border-radius: 20px 20px 0 0; background: rgba(255,253,248,.96); box-shadow: var(--shadow); }
.overview-actions { display: flex; gap: 8px; }
.quiet-btn, .export-btn { padding: 10px 13px; border-radius: 10px; font-size: 11px; font-weight: 850; }
.quiet-btn { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.export-btn { color: #fff; border: 1px solid var(--forest); background: var(--forest); }
.quiet-btn:disabled, .export-btn:disabled { opacity: .35; cursor: not-allowed; }
.stats-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); background: rgba(255,253,248,.96); border: 1px solid rgba(20,33,28,.08); border-top: 0; border-radius: 0 0 20px 20px; overflow: hidden; box-shadow: var(--shadow); }
.stat-card { min-height: 160px; padding: 24px; position: relative; border-left: 1px solid var(--line); }
.stat-card:first-child { border-left: 0; }
.stat-card.featured { color: #fff; background: var(--forest-2); }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.featured .stat-label { color: #b8c6c0; }
.stat-card strong { display: block; margin-top: 12px; font-size: 38px; letter-spacing: -.055em; }
.stat-card p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.featured p { color: #b8c6c0; }
.stat-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 8px; font-size: 13px; font-weight: 900; }
.stat-icon.orange { color: #b84923; background: var(--orange-soft); }
.stat-icon.blue { color: #4058ae; background: #edf0ff; }
.stat-icon.mint { color: #23745d; background: #e5f7f0; }
.health-track { height: 5px; margin-top: 13px; border-radius: 20px; background: rgba(255,255,255,.13); overflow: hidden; }
.health-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint); transition: width .45s ease; }

.daily-focus { padding-top: 54px; }
.time-chips { display: flex; gap: 6px; padding: 4px; border-radius: 11px; background: #e7e8e3; }
.time-chips button { min-width: 58px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; }
.time-chips button.active { color: #fff; background: var(--forest); }
.focus-empty { margin-top: 18px; padding: 24px; border: 1px dashed #cbd1cc; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.35); font-size: 12px; text-align: center; }
.focus-empty[hidden] { display: none; }
.focus-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.focus-card { min-width: 0; padding: 18px; border: 1px solid rgba(20,33,28,.09); border-radius: 16px; background: var(--paper); box-shadow: 0 9px 30px rgba(20,33,28,.05); }
.focus-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.focus-card-top span { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.focus-card-top b { padding: 5px 7px; border-radius: 999px; color: #2e6652; background: #e5f7f0; font-size: 9px; }
.focus-card h3 { margin: 15px 0 0; font-size: 15px; line-height: 1.45; }
.focus-card p { margin: 8px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.focus-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.focus-actions button { min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: #fff; font-size: 10px; font-weight: 850; }
.focus-actions button:first-child { color: #fff; background: var(--forest); border-color: var(--forest); }

.weekly-picks { padding-top: 54px; }
.weekly-picks-heading { align-items: flex-end; }
.weekly-add-button { min-height: 46px; padding: 11px 16px; border: 0; border-radius: 11px; color: #fff; background: var(--orange); font-size: 14px; font-weight: 850; }
.weekly-add-button:disabled { cursor: not-allowed; opacity: .42; }
.weekly-plan-empty, .performance-empty { margin-top: 18px; padding: 24px; border: 1px dashed #cbd1cc; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.35); font-size: 14px; text-align: center; }
.weekly-plan-empty[hidden], .performance-empty[hidden] { display: none; }
.weekly-plan-list { display: grid; gap: 8px; margin-top: 18px; }
.weekly-plan-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(20,33,28,.09); border-radius: 14px; background: var(--paper); }
.weekly-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--forest); font-size: 14px; font-weight: 900; }
.weekly-plan-item h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.weekly-plan-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.weekly-plan-item > b { color: var(--orange); font-size: 15px; }
.weekly-plan-item button { min-height: 40px; padding: 8px 12px; border: 1px solid #c8dbd2; border-radius: 9px; color: var(--forest); background: #eef7f3; font-size: 13px; font-weight: 850; }
.weekly-plan-item button:disabled { color: var(--muted); border-color: var(--line); background: #f1f2ef; }

.growth-tools, .work-plan { padding-top: 54px; }
.compact-heading { align-items: center; }
.compact-heading h2 { font-size: clamp(25px, 3.4vw, 34px); }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.growth-card { min-height: 300px; padding: 21px; display: flex; flex-direction: column; border: 1px solid rgba(20,33,28,.09); border-radius: 17px; background: var(--paper); box-shadow: 0 9px 32px rgba(20,33,28,.05); }
.growth-card .tool-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: var(--forest); font-size: 9px; font-weight: 900; }
.growth-card:nth-child(2) .tool-number { color: #8f3e20; background: var(--orange-soft); }
.growth-card:nth-child(3) .tool-number { color: #235e4b; background: #e5f7f0; }
.growth-card h3 { margin: 18px 0 0; font-size: 17px; letter-spacing: -.03em; }
.growth-card > p { min-height: 52px; margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tool-btn { width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 850; }
.tool-btn.secondary { color: var(--forest); border: 1px solid var(--line); background: #fff; }
.tool-btn:disabled { cursor: not-allowed; opacity: .38; }
.csv-fallback-button { min-height: 38px; margin-top: 8px; border: 1px dashed #c5ccc7; border-radius: 9px; color: var(--muted); background: #fafaf7; font-size: 12px; font-weight: 800; }
.csv-fallback-button:disabled { cursor: not-allowed; opacity: .4; }
.gsc-property-row { display: grid; gap: 6px; margin: 10px 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.gsc-property-row[hidden] { display: none; }
.gsc-property-row select { width: 100%; min-height: 42px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f7f7f3; font-size: 13px; }
.tool-help { margin: 9px 0 0; color: var(--orange); font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.tool-result { margin-top: auto; padding-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inline-setting { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 800; }
.inline-setting input { width: 18px; height: 18px; accent-color: var(--forest); }
.day-setting { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.day-setting select, .task-status { width: 100%; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f7f7f3; font-size: 11px; }
.link-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.link-stats span { padding: 10px 5px; border-radius: 9px; color: var(--muted); background: #f2f3ef; font-size: 8px; text-align: center; }
.link-stats b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }

.performance-dashboard { padding-top: 54px; }
.performance-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.performance-summary-grid article { padding: 16px; border: 1px solid rgba(20,33,28,.08); border-radius: 13px; background: var(--paper); }
.performance-summary-grid span { display: block; color: var(--muted); font-size: 13px; }
.performance-summary-grid b { display: block; margin-top: 10px; font-size: 24px; }
.performance-summary-grid article:first-child b { color: #257058; }
.performance-status { margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.performance-status[hidden] { display: none; }
.performance-status-bar { display: flex; height: 10px; overflow: hidden; border-radius: 99px; background: #e8ebe8; }
.performance-status-bar i:first-child { background: #4baf8a; }
.performance-status-bar i:nth-child(2) { background: #aeb8b2; }
.performance-status-bar i:last-child { background: #eb8665; }
.performance-status p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.performance-list { display: grid; gap: 8px; margin-top: 12px; }
.performance-item { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #aeb8b2; border-radius: 12px; background: var(--paper); }
.performance-item.improved { border-left-color: #4baf8a; }
.performance-item.declined { border-left-color: #eb8665; }
.performance-item > div:first-child { min-width: 0; }
.performance-item > div:first-child b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.performance-item > div:first-child span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.performance-deltas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.performance-deltas span { padding: 7px 9px; border-radius: 8px; color: var(--muted); background: #f1f4f0; font-size: 12px; }
.performance-deltas b { color: var(--ink); }

.work-plan .compact-heading { align-items: flex-end; }
.task-progress { flex: 0 0 auto; padding: 9px 12px; border-radius: 999px; color: #2c6250; background: #e5f7f0; font-size: 11px; }
.task-empty { margin-top: 18px; padding: 26px 18px; border: 1px dashed #cbd1cc; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.35); font-size: 11px; text-align: center; }
.task-empty[hidden] { display: none; }
.task-list { display: grid; gap: 9px; margin-top: 18px; }
.task-item { display: grid; grid-template-columns: minmax(240px, 1fr) 150px minmax(180px, auto) auto; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid rgba(20,33,28,.09); border-radius: 14px; background: var(--paper); }
.task-item.done { border-color: #badfd1; background: #f4fbf8; }
.task-copy b { display: block; font-size: 13px; line-height: 1.4; }
.task-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.task-review { color: var(--muted); font-size: 9px; line-height: 1.45; }
.task-review strong { display: block; margin-bottom: 3px; color: #2e6652; font-size: 10px; }
.task-remove { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 15px; }

.queue { padding-top: 58px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(260px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.65); }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input:disabled { cursor: not-allowed; }
.filter-row { display: flex; gap: 8px; margin: 19px 0 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 11px; font-weight: 800; }
.filter b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 999px; background: #e7eae6; color: var(--ink); font-size: 9px; }
.filter.active { color: #fff; background: var(--forest); border-color: var(--forest); }
.filter.active b { background: var(--orange); color: #fff; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -4px 0 13px; padding: 10px 12px; border: 1px solid #cce2d8; border-radius: 12px; background: #edf8f3; }
.bulk-toolbar[hidden] { display: none; }
.bulk-toolbar label { display: flex; align-items: center; gap: 8px; color: #2d5f4d; font-size: 11px; font-weight: 900; }
.bulk-toolbar input { width: 18px; height: 18px; accent-color: var(--forest); }
.bulk-toolbar > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bulk-toolbar button { min-height: 38px; padding: 7px 10px; border: 1px solid #bed8cc; border-radius: 9px; color: #245745; background: #fff; font-size: 10px; font-weight: 850; }
.empty-state { padding: 58px 20px; border: 1px dashed #cbd1cc; border-radius: 18px; background: rgba(255,255,255,.35); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-visual { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.empty-visual span { display: grid; place-items: center; width: 46px; height: 58px; color: #819089; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 900; box-shadow: 0 6px 18px rgba(20,33,28,.05); }
.empty-visual span:nth-child(2) { transform: translateY(-7px); color: var(--orange); }
.empty-state h3 { margin: 0; font-size: 17px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.post-list { display: grid; gap: 9px; }
.post-card { display: grid; grid-template-columns: 32px 82px minmax(220px, 1.3fr) minmax(320px, 1fr) auto; gap: 15px; align-items: center; padding: 17px 19px; background: var(--paper); border: 1px solid rgba(20,33,28,.09); border-radius: 16px; box-shadow: 0 8px 30px rgba(20,33,28,.045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card.selected { border-color: #65a88f; box-shadow: 0 0 0 2px rgba(101,168,143,.15); }
.post-select { width: 20px; height: 20px; accent-color: var(--forest); }
.post-card:hover { transform: translateY(-2px); border-color: rgba(238,107,59,.3); box-shadow: 0 14px 38px rgba(20,33,28,.08); }
.priority { text-align: center; }
.priority small { display: block; color: var(--muted); font-size: 9px; font-weight: 850; }
.score-ring { --score: 0; width: 57px; height: 57px; display: grid; place-items: center; margin: 6px auto 0; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--score) * 1%), #e9ece8 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.score-ring strong { position: relative; font-size: 17px; }
.post-main h3 { margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
.post-link { display: block; margin-top: 5px; max-width: 480px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-metric-row { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.search-metric-row b { color: #2c6250; }
.reason-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.reason { padding: 5px 7px; border-radius: 999px; color: #755143; background: var(--orange-soft); font-size: 9px; font-weight: 800; }
.reason.green { color: #376556; background: #e8f7f1; }
.post-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { padding: 9px 7px; border-radius: 9px; background: #f2f3ef; text-align: center; }
.metric span { display: block; color: var(--muted); font-size: 8px; font-weight: 750; }
.metric b { display: block; margin-top: 3px; font-size: 11px; }
.post-actions { display: grid; grid-template-columns: 1fr 38px; gap: 6px; }
.detail-btn, .task-add-btn { padding: 9px 11px; border-radius: 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.detail-btn, .task-add-btn { grid-column: 1 / -1; }
.detail-btn { border: 0; background: var(--forest); color: #fff; }
.task-add-btn { border: 1px solid #e4a88e; color: #a64b29; background: var(--orange-soft); }
.task-add-btn.added { border-color: #b9d9cc; color: #2e6652; background: #e8f7f1; }
.favorite-btn, .hold-btn { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 14px; font-weight: 900; }
.favorite-btn.active { color: #b84923; border-color: #efb49c; background: var(--orange-soft); }
.hold-btn.active { color: #2e6652; border-color: #b9d9cc; background: #e8f7f1; }
.load-more { display: block; width: 100%; margin-top: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 850; }
.method-note { margin: 16px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.ad-shell { min-height: 122px; margin-top: 38px; padding: 10px 14px 14px; border: 1px solid #d8dcd7; border-radius: 16px; background: rgba(255,255,255,.5); overflow: hidden; }
.ad-shell[hidden] { display: none; }
.ad-shell-inline { margin: 38px 0 0; }
.ad-disclosure { display: block; margin-bottom: 7px; color: #929d97; font-size: 8px; font-weight: 900; letter-spacing: .17em; text-align: center; }
.ad-container { width: 100%; min-height: 90px; text-align: center; }
.ad-container:empty { display: none; }

dialog { width: min(720px, calc(100% - 26px)); max-height: min(88vh, 820px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 28px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(8,18,14,.72); backdrop-filter: blur(4px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: 23px; color: #fff; background: var(--forest); }
.modal-head .kicker { color: var(--mint); }
.modal-head h3 { margin: 6px 0 0; font-size: 22px; line-height: 1.35; }
.modal-meta { margin-top: 7px; color: #bdc9c3; font-size: 10px; }
.close-btn { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; }
.modal-body { padding: 22px; }
.detail-score { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid #f1cdbf; border-radius: 13px; background: var(--orange-soft); }
.detail-score strong { color: var(--orange); font-size: 30px; }
.detail-score span { color: #795141; font-size: 11px; line-height: 1.5; }
.action-list { list-style: none; margin: 17px 0 0; padding: 0; display: grid; gap: 9px; }
.action-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf7; }
.action-list i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--forest); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; }
.action-list b { display: block; font-size: 12px; }
.action-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.visit-link { display: inline-flex; margin-top: 15px; color: var(--orange); font-size: 11px; font-weight: 850; text-decoration: none; }
.copy-brief-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
.copy-brief-actions button { min-height: 44px; padding: 10px; border: 1px solid #c8dbd2; border-radius: 10px; color: #245745; background: #eef7f3; font-size: 11px; font-weight: 900; }
.copy-brief-actions button:first-child { color: #fff; border-color: var(--forest); background: var(--forest); }

.settings-form { margin: 0; }
.settings-body { display: grid; gap: 13px; }
.settings-body > label:not(.switch-row), .auth-panel form label { display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 800; }
.settings-body input[type="text"], .auth-panel form input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #f7f7f3; font-size: 12px; font-weight: 500; }
.settings-body input:focus, .auth-panel form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,107,59,.1); }
.switch-row { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 10px; background: #eef5f1; font-size: 11px; font-weight: 800; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--forest); }
.settings-guide { padding: 13px; border: 1px solid #d8e7df; border-radius: 11px; background: #f1f8f4; }
.settings-guide b { font-size: 11px; }
.settings-guide ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.settings-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
#adminStatsDialog { width: min(920px, calc(100% - 26px)); }
.admin-stats-body { display: grid; gap: 18px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.admin-stat-grid article { padding: 14px; border-radius: 11px; background: #f2f3ef; }
.admin-stat-grid span { display: block; color: var(--muted); font-size: 9px; }
.admin-stat-grid b { display: block; margin-top: 8px; font-size: 23px; }
.visit-chart { height: 150px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; padding: 14px 12px 5px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf7; }
.chart-day { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.chart-day b { font-size: 9px; }
.chart-bar { width: min(28px, 70%); min-height: 4px; border-radius: 6px 6px 2px 2px; background: var(--orange); }
.chart-day span { color: var(--muted); font-size: 8px; }
.admin-operation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; }
.admin-operation-toolbar > div:first-child { display: grid; gap: 3px; }
.admin-operation-toolbar b { font-size: 14px; }
.admin-operation-toolbar span { color: var(--muted); font-size: 10px; }
.admin-operation-toolbar > div:last-child { display: flex; gap: 7px; }
.admin-operations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-operation-panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fafaf7; }
.admin-member-panel { overflow: visible; }
.operation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line); background: #f1f4f0; }
.operation-heading > div { display: grid; gap: 4px; }
.operation-heading b { font-size: 12px; }
.operation-heading span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.operation-heading i { display: grid; flex: 0 0 25px; place-items: center; min-width: 25px; height: 25px; border-radius: 20px; color: #fff; background: var(--orange); font-size: 10px; font-style: normal; font-weight: 900; }
.member-heading { border-radius: 13px 13px 0 0; }
.member-search-box { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #fff; }
.member-search-box span { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 850; }
.member-search-box input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d7ddd8; border-radius: 9px; color: var(--ink); background: #fafaf7; font: inherit; font-size: 11px; }
.member-search-box input:focus { outline: 2px solid rgba(40, 97, 75, .18); border-color: var(--forest); }
.admin-member-list { max-height: 390px; overflow-y: auto; border-radius: 0 0 13px 13px; }
.admin-member-item { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(260px, 1fr) auto; gap: 14px; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }
.admin-member-item:last-child { border-bottom: 0; }
.member-identity { min-width: 0; }
.member-identity > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.member-identity b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.member-identity p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.member-identity small { display: block; margin-top: 5px; color: #8c9690; font-size: 8px; }
.member-role { flex: 0 0 auto; padding: 3px 6px; border-radius: 20px; color: #54615b; background: #e8ece9; font-size: 8px; font-weight: 900; }
.member-role.is-admin { color: #74431f; background: #ffead7; }
.member-activity { display: flex; flex-wrap: wrap; gap: 6px; }
.member-activity span { display: grid; gap: 2px; padding: 7px 8px; border-radius: 8px; color: var(--muted); background: #f1f4f0; font-size: 8px; }
.member-activity b { color: var(--ink); font-size: 9px; }
.member-activity .member-alert { color: #8d372e; background: #fde9e7; }
.member-actions { display: grid; gap: 5px; }
.member-actions button { min-height: 34px; padding: 7px 9px; border: 1px solid #c8dbd2; border-radius: 8px; color: #245745; background: #eef7f3; font-size: 9px; font-weight: 900; }
.member-actions button:disabled { opacity: .45; }
.admin-operation-list { max-height: 290px; overflow-y: auto; }
.admin-operation-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.admin-operation-item:last-child { border-bottom: 0; }
.admin-operation-item b, .admin-operation-item p, .admin-operation-item small { overflow-wrap: anywhere; }
.admin-operation-item b { display: block; font-size: 11px; }
.admin-operation-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-operation-item small { display: block; margin-top: 5px; color: #8c9690; font-size: 8px; line-height: 1.5; }
.operation-actions { display: grid; gap: 5px; }
.admin-operation-item button, .admin-operation-item a { min-height: 34px; padding: 7px 9px; border: 1px solid #c8dbd2; border-radius: 8px; color: #245745; background: #eef7f3; font-size: 9px; font-weight: 900; text-align: center; text-decoration: none; }
.admin-operation-item button:disabled { opacity: .45; }
.error-operation > button { color: #fff; border-color: var(--forest); background: var(--forest); }
.operation-empty { margin: 0; padding: 23px 13px; color: var(--muted); font-size: 10px; text-align: center; }
.admin-operation-note { margin: -5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.detail-link-audit { margin-top: 17px; padding: 14px; border: 1px solid #d8e7df; border-radius: 11px; background: #f1f8f4; }
.detail-link-audit h4 { margin: 0; font-size: 12px; }
.detail-link-audit ul { margin: 9px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.auth-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 75% 20%, rgba(131,213,182,.16), transparent 28%), rgba(11,24,19,.97); overflow-y: auto; }
.auth-gate[hidden] { display: none; }
.auth-panel { position: relative; width: min(430px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 23px; background: var(--paper); box-shadow: 0 35px 110px rgba(0,0,0,.4); }
.auth-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #f7f7f3; font-size: 20px; line-height: 1; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand > div { display: grid; gap: 2px; }
.auth-brand b { font-size: 11px; letter-spacing: .12em; }
.auth-brand small { color: var(--muted); font-size: 9px; }
.auth-kicker { margin: 30px 0 0; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.auth-panel h2 { margin-top: 7px; font-size: 33px; line-height: 1.1; }
.auth-copy { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 20px; padding: 4px; border-radius: 11px; background: #eeefeb; }
.auth-tabs button { padding: 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; }
.auth-tabs button.active { color: #fff; background: var(--forest); }
.auth-panel form { display: grid; gap: 12px; margin-top: 16px; }
.auth-panel .auth-name[hidden] { display: none; }
.auth-panel form .primary-btn { margin-top: 2px; }
.auth-resend { display: block; margin: 11px auto 0; padding: 5px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-terms { margin: 14px 0 0; color: #929b96; font-size: 9px; line-height: 1.5; text-align: center; }
.auth-terms button, .legal-link { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: #c7d1cc; background: var(--forest); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner b { font-size: 10px; letter-spacing: .13em; }
.footer-inner p { margin: 5px 0 0; color: #98a9a1; font-size: 10px; }
.legal-link { color: #dbe4df; font-size: 11px; white-space: nowrap; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #dbe4df; font-size: 12px; font-weight: 800; text-underline-offset: 3px; }

.seo-settings-body { display: grid; gap: 16px; }
.seo-built-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seo-built-list span { padding: 12px; border: 1px solid #d8e7df; border-radius: 10px; color: var(--muted); background: #f1f8f4; font-size: 12px; line-height: 1.45; }
.seo-built-list b { display: block; margin-bottom: 3px; color: #23745d; font-size: 10px; }
.sitemap-copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sitemap-copy-row code { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f3; color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.sitemap-copy-row button { padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 850; }
.indexnow-button { width: 100%; padding: 13px; border: 1px solid #d8e7df; border-radius: 10px; color: #23745d; background: #f1f8f4; font-size: 12px; font-weight: 900; }
.indexnow-button:disabled { cursor: wait; opacity: .65; }
.portal-checklist { display: grid; gap: 10px; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.portal-checklist legend { padding: 0 6px; color: var(--ink); font-size: 12px; font-weight: 900; }
.portal-checklist label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.portal-checklist input { width: 17px; height: 17px; accent-color: var(--orange); }
.portal-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-action-row a { padding: 12px; border-radius: 10px; color: #fff; background: var(--forest-2); font-size: 12px; font-weight: 850; text-align: center; text-decoration: none; }

.privacy-dialog { width: min(780px, calc(100% - 26px)); }
.policy-body { color: var(--muted); font-size: 12px; line-height: 1.75; }
.policy-body > p { margin: 0; color: var(--ink); }
.policy-body section { margin-top: 22px; }
.policy-body h4 { margin: 0 0 7px; color: var(--ink); font-size: 14px; }
.policy-body p { margin: 0; }
.policy-body ul { margin: 0; padding-left: 20px; }
.policy-body li + li { margin-top: 5px; }
.policy-body a { color: #b84923; font-weight: 800; }
.google-oauth-settings { display: grid; gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid #d4e2db; border-radius: 13px; background: #f4faf7; }
.google-oauth-settings > div:first-child b { font-size: 14px; }
.google-oauth-settings > div:first-child p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.google-oauth-settings > label { display: grid; gap: 7px; font-size: 13px; font-weight: 850; }
.google-oauth-settings input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; }
.authorized-origin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.authorized-origin-row span { color: var(--muted); font-size: 12px; }
.authorized-origin-row code { overflow: hidden; padding: 8px; border-radius: 7px; background: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.authorized-origin-row button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: #fff; font-size: 12px; font-weight: 850; }

.data-settings-body { display: grid; gap: 10px; }
.data-settings-body article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf7; }
.data-settings-body b { font-size: 13px; }
.data-settings-body p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.data-settings-body article button { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: #fff; font-size: 10px; font-weight: 900; }
.data-settings-body article .danger-button { color: #a63f25; border-color: #efc3b3; background: #fff5f0; }
.undo-toast { position: fixed; z-index: 200; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; width: min(420px, calc(100% - 28px)); padding: 13px 15px; border-radius: 13px; color: #fff; background: var(--forest); box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.undo-toast[hidden] { display: none; }
.undo-toast span { flex: 1; font-size: 12px; }
.undo-toast button { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: var(--forest); background: var(--mint); font-size: 10px; font-weight: 900; }

.operations-hub { margin-top: 58px; padding: 26px; border: 1px solid #cfe0d8; border-radius: 20px; background: linear-gradient(135deg, #f3faf6, #fffaf4); box-shadow: 0 18px 55px rgba(20,33,28,.06); }
.operations-heading { align-items: center; }
.operations-open { min-height: 46px; padding: 11px 16px; border: 0; border-radius: 11px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 900; white-space: nowrap; }
.operations-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 20px; }
.operations-kpi-grid article { display: grid; gap: 7px; min-width: 0; padding: 15px; border: 1px solid rgba(40,97,75,.12); border-radius: 13px; background: rgba(255,255,255,.88); }
.operations-kpi-grid span { color: var(--muted); font-size: 9px; font-weight: 850; }
.operations-kpi-grid b { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.operations-kpi-grid small { color: #87918c; font-size: 8px; line-height: 1.45; }
.mini-progress, .revenue-progress { overflow: hidden; height: 6px; border-radius: 10px; background: #e2e8e4; }
.mini-progress i, .revenue-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ef9b68); transition: width .25s ease; }
.operations-feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.operations-feature-list span { padding: 6px 9px; border-radius: 30px; color: #2e6653; background: #e7f2ed; font-size: 8px; font-weight: 850; }

.operations-dialog { width: min(920px, calc(100% - 26px)); }
.operations-body { min-height: 560px; }
.operations-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 6px; padding-bottom: 15px; overflow-x: auto; background: #fff; scrollbar-width: thin; }
.operations-tabs button { flex: 0 0 auto; min-height: 38px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #f7f7f3; font-size: 9px; font-weight: 900; }
.operations-tabs button.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.operations-panel { display: grid; gap: 15px; }
.operations-panel[hidden] { display: none; }
.panel-title { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 13px; background: #f2f7f4; }
.panel-title > span { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 9px; font-weight: 900; }
.panel-title h4 { margin: 0; font-size: 16px; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.operations-panel > label, .compact-form label, .stack-form label, .workspace-picker { display: grid; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 850; }
.operations-panel input, .operations-panel select, .operations-panel textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d5ddd8; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.operations-panel textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.operations-panel input:focus, .operations-panel select:focus, .operations-panel textarea:focus { outline: 2px solid rgba(40,97,75,.16); border-color: var(--forest); }
.draft-output textarea { min-height: 290px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-actions .primary-btn { width: auto; min-width: 170px; }
.panel-note { margin: 0; padding: 11px 12px; border-left: 3px solid #d1dbd5; color: var(--muted); background: #fafaf7; font-size: 9px; line-height: 1.6; }
.compact-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) auto; gap: 9px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf7; }
.compact-form button, .stack-form button { min-height: 42px; padding: 9px 13px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 10px; font-weight: 900; }
.revenue-entry-form { grid-template-columns: repeat(4, minmax(0,1fr)) auto; }
.revenue-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.revenue-summary article { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.revenue-summary span { color: var(--muted); font-size: 9px; }
.revenue-summary b { font-size: 16px; }
#revenueTrackStatus { margin: -8px 0 0; color: var(--muted); font-size: 9px; text-align: right; }
.compact-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.compact-list > p { margin: 0; padding: 18px; color: var(--muted); font-size: 10px; text-align: center; }
.compact-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.compact-list article:last-child { border-bottom: 0; }
.compact-list b { overflow-wrap: anywhere; font-size: 10px; }
.compact-list span, .compact-list small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.compact-list article > div { display: grid; gap: 4px; }
.compact-list article > strong { font-size: 11px; white-space: nowrap; }
.stack-form { display: grid; gap: 10px; }
.stack-form .primary-btn { width: 100%; }
.ad-ops-summary { display: flex; gap: 8px; }
.ad-ops-summary span { flex: 1; padding: 14px; border-radius: 11px; color: var(--muted); background: #f2f7f4; font-size: 10px; }
.ad-ops-summary b { display: block; margin-top: 5px; color: var(--ink); font-size: 18px; }
.recommendation-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recommendation-list li { padding: 11px 12px; border: 1px solid #e5dccf; border-radius: 10px; color: #675542; background: #fff9f0; font-size: 10px; line-height: 1.55; }
.push-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: #f2f7f4; }
.push-card > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-size: 20px; }
.push-card b { font-size: 13px; }
.push-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.push-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.push-settings > label { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf7; color: var(--muted); font-size: 9px; font-weight: 800; }
.push-settings select { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 10px; color: var(--ink); font: inherit; font-size: 10px; font-weight: 800; }
.push-settings .toggle-row { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--ink); font-size: 10px; }
.push-settings input { width: 18px; height: 18px; accent-color: var(--forest); }
.team-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-columns > article { display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf7; }
.team-columns h5, .incoming-invites h5 { margin: 0; font-size: 12px; }
.workspace-picker { padding: 13px; border-radius: 11px; background: #f2f7f4; }
.incoming-invites { display: grid; gap: 8px; padding: 13px; border: 1px solid #cfe0d8; border-radius: 12px; background: #f3faf6; }
.incoming-invites [data-accept-invite] { min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px; color: #fff; background: var(--forest); font-size: 9px; font-weight: 900; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 58px; }
  .hero-copy { max-width: 700px; }
  .scan-card { max-width: 640px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-card:nth-child(4) { border-top: 1px solid var(--line); }
  .post-card { grid-template-columns: 28px 70px 1fr auto; }
  .post-metrics { grid-column: 3 / -1; }
  .growth-grid { grid-template-columns: 1fr 1fr; }
  .growth-card:last-child { grid-column: 1 / -1; min-height: 240px; }
  .task-item { grid-template-columns: minmax(220px, 1fr) 130px auto; }
  .task-review { grid-column: 1 / 3; }
  .public-heading, .portal-ready { grid-template-columns: 1fr; }
  .focus-list { grid-template-columns: 1fr; }
  .performance-summary-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid a, .guide-grid a:nth-child(4), .guide-grid a:nth-child(5) { grid-column: span 3; }
  .operations-kpi-grid { grid-template-columns: 1fr 1fr; }
  .revenue-entry-form { grid-template-columns: 1fr 1fr; }
  .revenue-entry-form button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .push-settings { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .hero { min-height: 0; padding-bottom: 62px; }
  .nav { padding-top: 16px; }
  .nav-right { max-width: 74%; flex-wrap: wrap; justify-content: flex-end; }
  .user-menu { flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding-left: 0; border-left: 0; }
  .brand { font-size: 10px; }
  .privacy-pill { font-size: 9px; }
  .privacy-pill { display: none; }
  .public-nav { display: none; }
  .login-button { padding: 8px 10px; font-size: 10px; }
  .user-menu > #userEmail { display: none; }
  .user-menu .admin-btn { font-size: 0; }
  .user-menu #adSettingsButton::after { content: "광고"; font-size: 9px; }
  .user-menu #adminStatsButton::after { content: "통계"; font-size: 9px; }
  .user-menu #seoSettingsButton::after { content: "검색"; font-size: 9px; }
  .user-menu #dataSettingsButton::after { content: "내정보"; font-size: 9px; }
  .user-menu .visitor-stat { padding: 7px 8px; }
  .hero-grid { padding-top: 50px; }
  h1 { font-size: 42px; }
  .lead { font-size: 14px; }
  .scan-card { padding: 17px; border-radius: 17px; }
  .saved-sites-head button, .saved-site-icon { min-height: 44px; }
  .public-overview { margin-top: -28px; padding: 20px 16px; }
  .public-heading { gap: 14px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .guide-library { padding-top: 44px; }
  .guide-library .compact-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid a, .guide-grid a:nth-child(4), .guide-grid a:nth-child(5) { grid-column: auto; min-height: 0; }
  .portal-ready { margin-top: 42px; padding: 21px 17px; }
  .portal-links, .seo-built-list, .portal-action-row { grid-template-columns: 1fr; }
  .overview { margin-top: 42px; }
  .overview .section-heading { align-items: flex-start; padding: 19px 16px; }
  .overview-actions { flex-direction: column; }
  .quiet-btn, .export-btn { padding: 8px 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 143px; padding: 17px 15px; }
  .stat-card strong { font-size: 31px; }
  .queue { padding-top: 46px; }
  .queue-top { align-items: flex-start; flex-direction: column; gap: 15px; }
  .search-box { width: 100%; }
  .post-card { grid-template-columns: 24px 56px 1fr; gap: 10px; padding: 14px 12px; }
  .score-ring { width: 50px; height: 50px; }
  .post-main { grid-column: 3; }
  .post-metrics { grid-column: 1 / -1; gap: 5px; }
  .post-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 42px 42px; }
  .detail-btn, .task-add-btn { grid-column: auto; }
  .detail-btn, .task-add-btn { width: 100%; padding: 11px; }
  .post-main h3 { font-size: 14px; }
  .bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .bulk-toolbar > div { width: 100%; justify-content: stretch; }
  .bulk-toolbar button { flex: 1 1 calc(50% - 6px); min-height: 44px; }
  .modal-head, .modal-body { padding: 17px; }
  .auth-gate { padding: 12px; align-items: start; }
  .auth-panel { margin-top: 12px; padding: 21px 17px; border-radius: 18px; }
  .auth-panel h2 { font-size: 29px; }
  .ad-shell { margin-top: 28px; }
  .growth-tools, .work-plan, .weekly-picks, .performance-dashboard { padding-top: 42px; }
  .daily-focus { padding-top: 42px; }
  .daily-focus .compact-heading { align-items: flex-start; flex-direction: column; }
  .weekly-picks-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .weekly-add-button { width: 100%; min-height: 48px; }
  .weekly-plan-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 13px; }
  .weekly-plan-item > b { text-align: right; }
  .weekly-plan-item button { grid-column: 2 / -1; min-height: 44px; }
  .performance-summary-grid { grid-template-columns: 1fr 1fr; }
  .performance-summary-grid article { padding: 14px; }
  .performance-summary-grid b { font-size: 21px; }
  .performance-item { grid-template-columns: 1fr; }
  .performance-deltas { justify-content: flex-start; }
  .authorized-origin-row { grid-template-columns: 1fr auto; }
  .authorized-origin-row span { grid-column: 1 / -1; }
  .time-chips { width: 100%; }
  .time-chips button { flex: 1; min-height: 44px; }
  .growth-grid { grid-template-columns: 1fr; }
  .growth-card, .growth-card:last-child { grid-column: auto; min-height: 0; }
  .growth-card > p { min-height: 0; }
  .tool-result { margin-top: 12px; }
  .work-plan .compact-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .task-item { grid-template-columns: 1fr auto; }
  .task-copy { grid-column: 1 / -1; }
  .task-status { grid-column: 1; }
  .task-review { grid-column: 1 / -1; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-operation-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-operation-toolbar > div:last-child { width: 100%; }
  .admin-operation-toolbar button { flex: 1; min-height: 44px; }
  .admin-operations-grid { grid-template-columns: 1fr; }
  .admin-member-item { grid-template-columns: 1fr; align-items: start; }
  .member-actions { grid-template-columns: 1fr 1fr; width: 100%; }
  .member-actions button { min-height: 44px; }
  .admin-operation-list { max-height: 250px; }
  .reminder-banner { align-items: flex-start; }
  .bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .bulk-toolbar > div { justify-content: flex-start; width: 100%; }
  .bulk-toolbar button { flex: 1 1 calc(50% - 6px); min-height: 44px; }
  .data-settings-body article { grid-template-columns: 1fr; }
  .data-settings-body article button { width: 100%; }
  .copy-brief-actions { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .footer-links { gap: 12px; }
  .policy-body { font-size: 11px; }
  .data-settings-body article { grid-template-columns: 1fr; }
  .data-settings-body article button { min-height: 44px; }
  .operations-hub { margin-top: 42px; padding: 17px; }
  .operations-heading { align-items: flex-start; flex-direction: column; }
  .operations-open { width: 100%; }
  .operations-kpi-grid, .revenue-summary, .team-columns { grid-template-columns: 1fr 1fr; }
  .operations-kpi-grid b { font-size: 17px; }
  .operations-dialog { width: calc(100% - 18px); max-height: 94vh; border-radius: 17px; }
  .operations-body { min-height: 0; }
  .compact-form, .revenue-entry-form { grid-template-columns: 1fr; }
  .compact-form button, .revenue-entry-form button { grid-column: auto; min-height: 46px; }
  .panel-actions { display: grid; grid-template-columns: 1fr; }
  .panel-actions .primary-btn { width: 100%; }
  .team-columns { grid-template-columns: 1fr; }
  .operations-panel input, .operations-panel select { min-height: 46px; font-size: 14px; }
}
