:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --card: #fff;
  --text: #1f2330;
  --muted: #5f6470;
  --brand: #4f46e5;
  --brand-soft: #eef2ff;
  --border: #dfe3ee;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
.site-header, .site-footer { text-align: center; padding: 1rem; }
.site-header p { color: var(--muted); margin-top: .25rem; }
.layout { display: grid; grid-template-columns: 180px minmax(320px, 1fr) 180px; gap: 1rem; max-width: 1400px; margin: 0 auto; padding: 0 1rem 2rem; }
.content { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
input, select, button { border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; font: inherit; }
button[data-action] { background: var(--brand); color: #fff; cursor: pointer; margin-top: .6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
label { display: grid; gap: .4rem; font-size: .94rem; }
.result { margin-top: .7rem; padding: .65rem; border-radius: 8px; background: var(--brand-soft); }
.seo { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.seo h3, .seo h4 { margin-bottom: .35rem; }
.seo p, .seo li { color: #303649; line-height: 1.45; }
.ad-slot, .ad-inline { border: 1px dashed #b8bfd1; color: #7b8194; border-radius: 10px; display: grid; place-items: center; background: #fafbff; text-align: center; padding: .8rem; }
.ad-slot { min-height: 300px; position: sticky; top: .75rem; }
.ad-inline { min-height: 90px; }
.hint { color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .ad-slot { min-height: 70px; position: static; } }
