/* YACLIC CENTER visual system: soft surfaces and botanical green accents. */
:root {
  --radius: 14px;
  --background: #ffffff;
  --foreground: #171c19;
  --section-muted: #f8faf9;
  --section-contrast: #ffffff;
  --card: #ffffff;
  --card-strong: #edf3ee;
  --muted-foreground: #858b87;
  --primary: #65956c;
  --primary-hover: #4f7e57;
  --primary-soft: #e7f0e8;
  --accent: #64956c;
  --accent-soft: #edf4ee;
  --success: #5a8b62;
  --success-soft: #eef6ef;
  --violet: #719779;
  --violet-soft: #edf4ee;
  --border: #e9eeea;
  --soft-border: #f0f2f0;
  --shadow: 0 4px 18px rgba(39, 66, 46, .035);
  --sidebar-width: clamp(210px, calc(120px + 7vw), 340px);
  --nav-font-size: clamp(11px, calc(5px + .5vw), 18px);
  --nav-icon-size: clamp(16px, calc(10px + .5vw), 23px);
}
html[data-theme="dark"] {
  --background: #171e19;
  --foreground: #edf3ee;
  --section-muted: #121813;
  --section-contrast: #1b241d;
  --card: #1b241d;
  --card-strong: #263329;
  --muted-foreground: #99aa9d;
  --primary: #6d9e75;
  --primary-hover: #7eaf86;
  --primary-soft: #293f2e;
  --accent: #86b78e;
  --accent-soft: #293f2e;
  --success: #8bb995;
  --success-soft: #24392a;
  --violet: #8bb995;
  --violet-soft: #24392a;
  --border: #2a362d;
  --soft-border: #263129;
  --shadow: 0 4px 18px rgba(0, 0, 0, .1);
}
body { background: var(--section-muted); font-size: 13px; }
.sidebar { background: var(--section-muted); }
.brand-row { height: clamp(57px, 3.5vw, 76px); padding: 0 clamp(17px, 1vw, 25px); flex-shrink: 0; }
.brand { gap: 8px; }
.brand-mark { width: clamp(29px, 1.6vw, 38px); height: clamp(29px, 1.6vw, 38px); flex-shrink: 0; padding: 0; line-height: 1; border: 0; border-radius: 5px; background: linear-gradient(135deg, #79a781, #477a51); color: white; box-shadow: none; }
.brand-mark svg { display: block; width: 85%; height: 85%; fill: currentColor; stroke: none; }
.brand-name { font-family: inherit; font-size: clamp(15px, calc(12px + .23vw), 20px); font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.brand-name em { color: var(--muted-foreground); font-weight: 400; font-style: normal; }
.nav-scroll { padding: 0 11px 12px; }
.nav-group { margin-top: clamp(14px, 1vw, 24px); }
.nav-label { padding: 0 6px 7px; font-size: clamp(9px, calc(7px + .17vw), 12px); font-weight: 650; letter-spacing: .14em; }
.nav-item { position: relative; min-height: clamp(32px, 2.5vw, 50px); padding: 6px clamp(12px, .8vw, 20px); gap: 11px; border-radius: 7px; font-size: var(--nav-font-size); }
.nav-item + .nav-item { margin-top: 1px; }
.nav-item svg { width: var(--nav-icon-size); height: var(--nav-icon-size); flex-shrink: 0; }
.nav-item.active { background: var(--primary-soft); color: var(--foreground); font-weight: 600; }
.nav-item.active::before { display: block; content: ""; position: absolute; left: -1px; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--primary); }
.nav-count { background: var(--primary-soft); color: var(--success); border-radius: 5px; font-weight: 500; font-size: calc(var(--nav-font-size) - 1px); }
.nav-service { border: 0; width: var(--nav-icon-size); height: var(--nav-icon-size); flex-shrink: 0; font-size: calc(var(--nav-font-size) - 1px); }
.nav-service.google { background: transparent; color: #4285f4; font-size: calc(var(--nav-icon-size) + 2px); }
.nav-service:has(img) { padding: 0; border: 0; background: transparent; overflow: hidden; }
.nav-service img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sidebar-footer { padding: 8px 11px 13px; border-top-color: var(--soft-border); flex-shrink: 0; }
.sidebar .support-card strong, .sidebar .account-row strong { font-size: calc(var(--nav-font-size) - 1px); }
.sidebar .support-card small, .sidebar .account-row small { font-size: calc(var(--nav-font-size) - 3px); }
.sidebar .support-card button, .sidebar .logout-link { font-size: calc(var(--nav-font-size) - 2px); }
.sidebar .account-row .avatar { width: clamp(30px, 1.8vw, 40px); height: clamp(30px, 1.8vw, 40px); font-size: calc(var(--nav-font-size) - 2px); }
.support-card { padding: 8px; background: color-mix(in srgb, var(--primary-soft) 35%, var(--card)); border-radius: 9px; gap: 5px; }
.support-icon { border: 0; background: var(--primary-soft); color: var(--success); }
.support-card button { font-weight: 600; box-shadow: var(--shadow); }
.account-row .avatar { width: 28px; height: 28px; }
.account-row strong { font-weight: 500; }
.topbar { height: 53px; padding: 0 20px; }
.breadcrumbs { font-size: 10px; }
.breadcrumbs strong { font-weight: 600; }
.icon-button { width: 33px; height: 33px; }
.search-trigger { height: 33px; min-width: 165px; border-radius: 11px; font-size: 10px; }
.primary-button, .secondary-button { min-height: 39px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.primary-button, .tool-hero .primary-button { background: linear-gradient(110deg, var(--primary-hover), var(--primary)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(73, 119, 81, .1); }
.primary-button:hover { background: var(--primary-hover); }
.primary-button.compact { min-height: 33px; height: 33px; border-radius: 20px; }
.secondary-button { box-shadow: var(--shadow); }
.content-wrap { padding: 10px 20px 40px; }
.system-banner { min-height: 57px; margin-bottom: 17px; border-color: var(--border); border-radius: 12px; background: linear-gradient(115deg, var(--card), var(--success-soft)); box-shadow: none; }
.system-banner strong { font-weight: 600; }
.system-banner-action { background: var(--card); color: var(--success); font-weight: 500; box-shadow: var(--shadow); }
.tool-hero { position: relative; padding: 0; gap: 16px; }
.tool-hero .panel-kicker, .eyebrow { color: var(--success); font-size: 9px; font-weight: 650; }
.tool-hero h1 { margin: 9px 0 6px; font-family: inherit; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -1.6px; line-height: 1.12; }
.tool-hero p { max-width: 720px; font-size: 12px; color: var(--muted-foreground); }
.tool-hero-actions { padding-bottom: 3px; }
.tool-metrics { margin-top: 15px; gap: 12px; }
.tool-stat { position: relative; min-height: 88px; padding: 14px 16px; border-radius: 13px; box-shadow: var(--shadow); }
.tool-stat span { font-size: 9px; font-weight: 400; letter-spacing: 0; }
.tool-stat strong { margin-top: 2px; font-family: inherit; font-size: 25px; font-weight: 650; letter-spacing: -.8px; }
.tool-stat small { font-size: 10px; }
.tool-workspace { margin-top: 12px; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 12px; }
.panel { padding: 16px; }
.panel-kicker { font-size: 8px; font-weight: 500; }
.panel-header h2, .filter-panel h2, .results-panel h2 { margin: 3px 0 10px; font-weight: 650; font-size: 20px; letter-spacing: -.5px; }
.filter-form { gap: 9px; }
.filter-form label, .modal label { font-weight: 500; }
.filter-form input, .filter-form select { height: 31px; font-size: 10px; }
.filter-form textarea { min-height: 54px; font-size: 10px; }
.field-help { font-size: 9px; }
.filter-form .primary-button { margin-top: 1px; }
.result-tabs { padding: 0; gap: 3px; border: 0; background: transparent; }
.result-tabs button { border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; font-weight: 400; }
.result-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.table-search { height: 32px; }
.table-search input { font-size: 10px; }
.results-panel .table-wrap { margin: 0 -6px; }
th { padding: 10px 12px; background: var(--section-muted); border-top: 0; font-weight: 400; font-size: 8px; letter-spacing: 0; }
td { padding: 10px 12px; font-size: 10px; }
.result-name { font-weight: 400; }
.position-badge { border: 0; font-weight: 500; }
.status-pill { border: 0; border-radius: 6px; font-weight: 400; }
.report-banner { background: var(--success-soft); color: var(--foreground); }
.report-banner small { color: var(--muted-foreground); }
.report-banner button { background: var(--primary); color: #fff; border: 0; }
.metric-card.primary-metric { background: var(--card); color: var(--foreground); }
.metric-icon { border: 0; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.auth-screen { grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
.auth-form-side { min-width: 0; min-height: 100dvh; padding: 72px 24px; }
.auth-card { background: var(--card); }
.reference-stat { padding-left: 80px; }
.reference-stat .stat-symbol { position: absolute; left: 15px; top: 21px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--section-muted); color: var(--success); }
.stat-symbol svg { width: 25px; height: 25px; }
.reference-stat small { color: var(--success); }
.reference-stat:last-child small { color: var(--muted-foreground); }
.seo-score { display: inline-flex; align-items: center; gap: 12px; }
.seo-score i { display: block; width: 58px; height: 8px; background: var(--section-muted); border-radius: 6px; overflow: hidden; }
.seo-score b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-hover), #8ab68f); }
.seo-score.needs-edit b { background: linear-gradient(90deg, #f2b331, #ffd66e); }
.seo-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 5px; background: var(--success-soft); color: var(--success); white-space: nowrap; }
.seo-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.seo-status.review { background: #fff8e8; color: #d5a02c; }
.seo-status.draft { background: var(--section-muted); color: var(--muted-foreground); }
.results-summary { margin-top: 25px; padding: 0 1px 6px; display: flex; justify-content: space-between; align-items: center; color: var(--muted-foreground); font-size: 10px; }
.results-pagination { display: flex; gap: 5px; align-items: center; }
.results-pagination span, .results-pagination button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--muted-foreground); }
.results-pagination span { background: var(--primary); color: white; border-color: transparent; }
.results-pagination button:disabled { opacity: .4; cursor: default; }
.results-summary > small { margin-left: auto; margin-right: 12px; }

/* Reference composition; wider displays retain the fluid navigation scale. */
body { font-family: Arial, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: inherit; }
.brand-row { height: 53px; }
.nav-scroll { min-height: 0; }
.nav-label { font-weight: 500; }
.sidebar .support-card strong, .sidebar .account-row strong { font-size: max(10px, calc(var(--nav-font-size) - 1px)); }
.sidebar .support-card small, .sidebar .account-row small { font-size: max(9px, calc(var(--nav-font-size) - 3px)); }
.sidebar .support-card button, .sidebar .logout-link { font-size: max(10px, calc(var(--nav-font-size) - 2px)); }
.content-wrap { position: relative; }
.system-banner { position: relative; z-index: 2; background: color-mix(in srgb, var(--success-soft) 55%, transparent); }
.system-banner-action { position: relative; z-index: 1; }
.primary-button, .tool-hero .primary-button { background: linear-gradient(15deg, #52815b, #80a879); }
html[data-theme="dark"] .primary-button { background: linear-gradient(15deg, #426b4a, #658f67); }
[data-page="seo"] #tool-page-content { position: relative; }
[data-page="seo"] .tool-hero { display: block; isolation: isolate; min-height: 78px; }
[data-page="seo"] .tool-hero h1 { margin: 7px 0 3px; font-size: clamp(30px, 3.125vw, 44px); line-height: 1.08; letter-spacing: -1.5px; }
[data-page="seo"] .tool-hero p { font-size: 13px; line-height: 18px; max-width: 620px; }
[data-page="seo"] .tool-hero-actions { position: absolute; right: 0; bottom: 0; padding: 0; }
[data-page="seo"] .tool-metrics { margin-top: 9px; }
[data-page="seo"] .reference-stat { height: 88px; min-height: 88px; padding: 14px 14px 12px 81px; overflow: hidden; border-color: var(--soft-border); }
[data-page="seo"] .reference-stat > span { display: block; line-height: 12px; }
[data-page="seo"] .reference-stat strong { position: relative; z-index: 1; font-size: 25px; line-height: 29px; margin-top: 2px; }
[data-page="seo"] .reference-stat small { position: relative; z-index: 1; margin-top: 2px; line-height: 14px; }
.stat-bars { position: absolute; bottom: 26px; right: 17px; height: 34px; display: flex; align-items: end; gap: 3px; }
.stat-bars i { width: 4px; height: 20%; border-radius: 2px 2px 0 0; background: linear-gradient(#7ea77b, #dcebdc); }
.stat-bars i:nth-child(2) { height: 32%; }.stat-bars i:nth-child(3) { height: 40%; }.stat-bars i:nth-child(4) { height: 63%; }.stat-bars i:nth-child(5) { height: 51%; }.stat-bars i:nth-child(6) { height: 79%; }.stat-bars i:nth-child(7) { height: 100%; }
.stat-sparkline { position: absolute; width: 64px; height: 36px; right: 16px; bottom: 18px; color: #8daf8e; stroke-width: 1.6; }
.stat-sparkline circle { fill: var(--success); stroke: none; }
.stat-coverage { position: absolute; right: 15px; bottom: 16px; width: 76px; height: 8px; border-radius: 8px; background: var(--section-muted); }
.stat-coverage i { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #497e54, #85b18b); }
.stat-landscape { position: absolute; inset: 0 0 0 40%; background: linear-gradient(135deg, transparent, var(--primary-soft)); clip-path: polygon(0 100%, 36% 36%, 66% 37%, 100% 0, 100% 100%); }
[data-page="seo"] .tool-workspace { margin-top: 9px; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
[data-page="seo"] .panel { padding: 12px 14px; border-color: var(--soft-border); }
[data-page="seo"] .filter-panel h2 { margin: 3px 0 3px; line-height: 24px; }
[data-page="seo"] .filter-form { gap: 3px; }
[data-page="seo"] .filter-form label { gap: 3px; line-height: 14px; }
[data-page="seo"] .filter-form input, [data-page="seo"] .filter-form select { height: 30px; font-weight: 400; }
[data-page="seo"] .filter-form textarea { height: 52px; min-height: 52px; padding: 7px 11px; font-weight: 400; line-height: 15px; resize: vertical; }
[data-page="seo"] .field-help { margin-top: 2px; line-height: 14px; }
[data-page="seo"] .filter-form .primary-button { height: 40px; margin-top: 3px; flex-shrink: 0; }
[data-page="seo"] .results-panel { display: flex; flex-direction: column; }
[data-page="seo"] .results-panel .panel-header h2 { margin-bottom: 8px; line-height: 24px; }
[data-page="seo"] .results-panel .panel-header .secondary-button { min-height: 35px; padding: 0 12px; }
[data-page="seo"] .results-toolbar { margin-bottom: 7px; }
[data-page="seo"] .result-tabs button { height: 30px; font-size: 10px; }
[data-page="seo"] .results-panel .table-wrap { margin: 0 -5px; padding-bottom: 6px; }
[data-page="seo"] th { padding: 9px 6px; font-size: 8px; height: 31px; }
[data-page="seo"] td { padding: 7px 6px; height: 36px; font-size: 10px; }
[data-page="seo"] .result-name { max-width: 210px; }
.selection-cell { width: 38px; text-align: center; }
.selection-cell input { appearance: none; display: inline-block; width: 14px; height: 14px; margin: 0; vertical-align: middle; border: 1px solid #cdd4cf; border-radius: 3px; background: var(--card); cursor: pointer; }
.selection-cell input:checked, .selection-cell input:indeterminate { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
.selection-cell input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.row-actions-heading, .seo-actions { text-align: center; width: 53px; }
.seo-row-menu { position: relative; }
.seo-row-menu summary { list-style: none; cursor: pointer; font-size: 20px; line-height: 20px; color: var(--muted-foreground); border-radius: 5px; }
.seo-row-menu summary::-webkit-details-marker { display: none; }
.seo-row-menu summary:focus-visible { outline: 2px solid var(--primary); }
.seo-row-menu > div { position: absolute; right: 0; top: 23px; z-index: 5; display: grid; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 5px 18px #0001; }
.seo-row-menu button { padding: 8px 10px; white-space: nowrap; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 11px; }
.seo-row-menu button:hover { background: var(--primary-soft); }
.tool-results-body tr:last-child .seo-row-menu > div, .tool-results-body tr:nth-last-child(2) .seo-row-menu > div { top: auto; bottom: 23px; }
[data-page="seo"] .seo-score { gap: 12px; }
[data-page="seo"] .seo-score i { width: 58px; }
[data-page="seo"] .results-summary { margin-top: auto; padding: 22px 1px 9px; }
[data-page="seo"] .report-banner { display: none; }
@media (min-width: 901px) and (max-width: 1400px) {
  .nav-group { margin-top: 11px; }
  .nav-label { padding-bottom: 5px; }
  .sidebar .support-card { padding: 6px; gap: 3px; }
  .sidebar .support-card button { height: 25px; }
  .sidebar .support-icon { width: 28px; height: 28px; }
  .sidebar .account-row { padding-top: 4px; padding-bottom: 4px; }
  .sidebar .logout-link { height: 28px; }
}
@media (min-width: 1800px) {
  .brand-row, .topbar { height: 70px; }
  .nav-group { margin-top: 22px; }
  .content-wrap { padding: 20px 30px 50px; }
  [data-page="seo"] .tool-hero { min-height: 110px; }
  [data-page="seo"] .tool-hero h1 { font-size: 48px; }
  [data-page="seo"] .tool-hero p { font-size: 16px; max-width: 850px; }
  [data-page="seo"] .reference-stat { height: 112px; padding-top: 21px; }
  [data-page="seo"] .reference-stat > span { font-size: 12px; }
  [data-page="seo"] .reference-stat small { font-size: 12px; }
  [data-page="seo"] .reference-stat .stat-symbol { top: 29px; }
  [data-page="seo"] .panel { padding: 20px; }
  [data-page="seo"] .filter-form { gap: 12px; }
  [data-page="seo"] .filter-form label { font-size: 13px; line-height: 19px; gap: 6px; }
  [data-page="seo"] .filter-form input, [data-page="seo"] .filter-form select { height: 40px; font-size: 13px; }
  [data-page="seo"] .filter-form textarea { height: 80px; font-size: 13px; line-height: 19px; }
  [data-page="seo"] .filter-form .primary-button { height: 46px; }
  [data-page="seo"] td { height: 47px; font-size: 13px; }
  [data-page="seo"] th { font-size: 10px; }
  [data-page="seo"] .result-name { max-width: 360px; }
}
@media (max-width: 1100px) {
  [data-page="seo"] .tool-hero-actions { position: relative; margin-top: 16px; }
  [data-page="seo"] .tool-workspace { grid-template-columns: 1fr; }
  .stat-bars, .stat-sparkline, .stat-coverage { display: none; }
}
@media (min-width: 1100px) { .tool-hero { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 901px) and (max-width: 1099px) { .tool-hero { grid-template-columns: 1fr; } .tool-workspace { grid-template-columns: 1fr; } .reference-stat { padding-left: 58px; } .reference-stat .stat-symbol { width: 32px; height: 32px; left: 12px; } }
@media (max-width: 900px) { .content-wrap { padding: 15px 20px 35px; } .tool-workspace { grid-template-columns: 1fr; } .tool-hero { grid-template-columns: 1fr; } .tool-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .content-wrap { padding: 12px 13px 30px; } .topbar { padding: 0 12px; } .search-trigger { min-width: 33px; width: 33px; } .tool-hero h1 { letter-spacing: -1px; } .tool-hero-actions { flex-wrap: wrap; } .reference-stat { padding: 12px 10px 12px 52px; } .reference-stat .stat-symbol { width: 30px; height: 30px; left: 10px; top: 23px; } .stat-symbol svg { width: 19px; height: 19px; } .tool-stat span { font-size: 8px; } .tool-stat small { font-size: 9px; } .results-toolbar { flex-wrap: wrap; } .table-search { flex: 1; } .table-search input { width: 100%; min-width: 0; } .results-panel .table-wrap { margin: 0; } .report-banner { flex-wrap: wrap; } }
