.seo-page { max-width: 1380px; margin: 8px auto 48px; color: var(--text); }
.seo-page *, .seo-page *::before, .seo-page *::after { box-sizing: border-box; }
.seo-heading, .seo-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.seo-heading h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; margin: 5px 0 9px; }
.seo-heading p { color: var(--muted); margin: 0; line-height: 1.7; max-width: 740px; }
.seo-eyebrow { display: block; color: #166d96; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.seo-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.seo-tabs .btn { min-height: 40px; }
.seo-page .btn { white-space: normal; text-align: center; }
.seo-page .btn:focus-visible, .seo-page a:focus-visible, .seo-page summary:focus-visible { outline: 3px solid #1589bf; outline-offset: -3px; }
.seo-page input, .seo-page textarea, .seo-page select { width: 100%; min-width: 0; font-size: 14px; }
.seo-page textarea { resize: vertical; line-height: 1.65; }
.seo-page .f { margin: 0 0 17px; }
.seo-page .f input, .seo-page .f textarea, .seo-page .f select { margin-top: 5px; }
.seo-launch { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border: 1px solid #cfe4ef; border-radius: 14px; background: #edf7fc; margin-bottom: 20px; }
.seo-launch h2 { font-size: clamp(20px, 2.6vw, 27px); margin: 8px 0; overflow-wrap: anywhere; letter-spacing: -.025em; }
.seo-launch p { max-width: 740px; margin: 0; color: #395a6d; line-height: 1.75; }
.seo-launch.ready { background: #eff9f3; border-color: #cae7d5; }
.seo-launch.ready .seo-eyebrow { color: #276d45; }
.seo-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.seo-metrics > div { border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 20px; }
.seo-metrics span { font-size: 12px; color: var(--muted); }
.seo-metrics strong { display: block; font-size: 29px; margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seo-overview-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); gap: 22px; align-items: start; }
.seo-card { padding: 25px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.seo-card h2, .seo-section-head h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.02em; }
.seo-card h3 { font-size: 15px; margin: 25px 0 9px; }
.seo-card p { line-height: 1.8; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.seo-card .seo-eyebrow { margin-bottom: 12px; }
.seo-help { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 8px 0 18px; }
.seo-side { display: grid; gap: 18px; }
.seo-checks { list-style: none; margin: 18px 0 0; padding: 0; }
.seo-checks > li { display: flex; gap: 12px; align-items: flex-start; padding: 17px 0; border-top: 1px solid var(--line); }
.seo-checks > li > div { flex: 1; min-width: 0; }
.seo-checks b { font-size: 13px; font-weight: 650; }
.seo-checks p { font-size: 12px; line-height: 1.7; margin: 5px 0 0; }
.seo-check-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #fff2d0; color: #775700; font-weight: 750; }
.seo-check-icon.pass { background: #e9f6ee; color: #256343; }
.seo-check-icon.fail { background: #ffeded; color: #a63737; }
.seo-status, .seo-post-status { display: inline-block; border-radius: 20px; padding: 4px 9px; font-size: 10px; font-weight: 650; line-height: 1.6; color: #785600; background: #fff3d4; white-space: nowrap; }
.seo-status.pass, .seo-post-status.published { color: #235d3e; background: #e5f4eb; }
.seo-status.fail { color: #983737; background: #fce9e9; }
.seo-checks .seo-status { flex-shrink: 0; }
.seo-page-list, .seo-article-list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seo-page-row, .seo-article-row { display: flex; justify-content: space-between; gap: 28px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.seo-page-row:last-child, .seo-article-row:last-child { border-bottom: 0; }
.seo-page-info, .seo-article-row > div:first-child { min-width: 0; flex: 1; }
.seo-page-row h2, .seo-article-row h3 { font-size: 16px; line-height: 1.5; margin: 7px 0; overflow-wrap: anywhere; }
.seo-page-row p, .seo-article-row p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0 0 9px; overflow-wrap: anywhere; }
.seo-page-row a, .seo-article-row small, .seo-text-link { font-size: 11px; overflow-wrap: anywhere; }
.seo-page-actions { width: 250px; flex: 0 0 250px; }
.seo-page-actions > .btn { margin-bottom: 10px; }
.seo-page-actions details { font-size: 12px; }
.seo-page-actions summary { cursor: pointer; padding: 7px 0; color: #216a91; }
.seo-page-actions ul { list-style: none; margin: 0; padding: 0; }
.seo-page-actions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 11px; }
.seo-section-head h2 { margin-top: 14px; }
.seo-section-head p { margin-bottom: 0; max-width: 670px; }
.seo-filters { display: grid; grid-template-columns: 170px 170px minmax(160px,1fr) auto; gap: 12px; align-items: end; margin: 24px 0 18px; }
.seo-filters .f { margin: 0; }
.seo-filters .select-control { width: 100%; }
.seo-filters > .btn { min-height: 42px; }
.seo-article-actions { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; justify-content: flex-end; gap: 12px; max-width: 240px; flex: 0 0 240px; }
.seo-article-actions .seo-text-link { flex-basis: 100%; text-align: right; }
.seo-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; }
.seo-pagination span { margin-right: auto; font-size: 12px; color: var(--muted); }
.seo-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.seo-editor fieldset { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 26px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seo-fields { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 25px; }
.seo-fields .seo-help:last-child { margin-bottom: 0; }
.seo-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seo-body-input { min-height: 340px; font-family: ui-monospace,Consolas,monospace; font-size: 13px !important; }
.seo-snippet { min-width: 0; align-self: start; border: 1px solid var(--line); border-radius: 12px; padding: 23px; background: #f9fbfd; position: sticky; top: 20px; }
.seo-search-preview { margin: 20px 0; padding: 20px; background: #fff; border: 1px solid #e4eaf0; border-radius: 9px; overflow-wrap: anywhere; }
.seo-search-preview > span { font-size: 13px; font-weight: 600; display: block; }
.seo-search-preview small { display: block; margin: 5px 0 14px; font-size: 11px; color: #566571; }
.seo-search-preview b { display: block; font-size: 18px; line-height: 1.45; color: #23469b; font-weight: 500; }
.seo-search-preview p { font-size: 12px; line-height: 1.7; color: #505f6b; margin: 7px 0 0; }
.seo-savebar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 19px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; }
.seo-savebar > span { flex: 1; min-width: 120px; font-size: 12px; color: #825d08; }
.seo-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.seo-settings-grid fieldset { border: 0; padding: 0; min-width: 0; }
.seo-domain { display: block; padding: 14px; margin: 20px 0; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; background: #f4f8fb; }
.seo-link-row { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 22px; align-items: center; font-size: 12px; }
.seo-page #seo-error:not(:empty) { margin-bottom: 20px; }
@media (max-width: 1100px) {
  .seo-overview-grid { grid-template-columns: 1fr; }
  .seo-side { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .seo-filters { grid-template-columns: 1fr 1fr; }
  .seo-editor fieldset { grid-template-columns: minmax(0,1.4fr) minmax(230px,1fr); gap: 18px; }
  .seo-page-actions { flex-basis: 220px; width: 220px; }
}
@media (max-width: 800px) {
  .seo-heading, .seo-section-head, .seo-launch { align-items: flex-start; flex-wrap: wrap; }
  .seo-side, .seo-settings-grid, .seo-editor fieldset { grid-template-columns: 1fr; }
  .seo-snippet { position: static; }
  .seo-metrics { grid-template-columns: 1fr 1fr; }
  .seo-page-row, .seo-article-row { flex-direction: column; gap: 17px; }
  .seo-page-actions, .seo-article-actions { width: 100%; flex-basis: auto; max-width: none; }
  .seo-article-actions { justify-content: flex-start; }
  .seo-article-actions .seo-text-link { flex-basis: auto; }
  .seo-launch, .seo-card, .seo-fields, .seo-snippet, .seo-page-row, .seo-article-row { padding: 20px; }
}
@media (max-width: 480px) {
  .seo-two-fields, .seo-filters { grid-template-columns: 1fr; }
  .seo-checks > li { flex-wrap: wrap; }
  .seo-checks .seo-status { margin-left: 37px; }
  .seo-metrics { gap: 9px; }
  .seo-metrics > div { padding: 16px; }
  .seo-savebar .btn { width: 100%; }
  .seo-savebar > span { flex-basis: 100%; }
}
