/* Ummah IT Solutions - Free AI Article Generator */
:root {
  --brand: #ff4500;
  --brand-600: #e63e00;
  --brand-50: #fff3ee;
  --ink: #171718;
  --ink-2: #26262a;
  --text: #4b4e56;
  --muted: #7a7e87;
  --line: #e7e7ec;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ok: #138a4b;
  --warn: #b25e00;
  --bad: #c62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 23, 24, .04), 0 12px 32px -12px rgba(23, 23, 24, .16);
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Hero / nav ---------- */
.hero {
  position: relative;
  color: #c9cad0;
  background:
    radial-gradient(600px 320px at 85% 10%, rgba(255, 69, 0, .28), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(255, 69, 0, .12), transparent 70%),
    var(--ink);
  padding-bottom: 120px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.nav {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.brand { text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand-text { color: #fff; font: 700 20px/40px var(--head); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: #fff; text-decoration: none;
  font: 500 13px/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
}
.nav-links a:not(.btn):hover { color: var(--brand); }
.hero-body { position: relative; z-index: 1; padding-top: 48px; }
.hero-body > * { max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.01em; }
.lead { margin: 0 0 24px; font-size: 18px; color: #c9cad0; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  color: #fff; font: 500 13px/1 var(--head);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  font: 600 14px/1 var(--head);
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-pill {
  background: var(--brand); color: #fff;
  padding: 8px 8px 8px 24px; border-radius: 50px; min-height: 52px;
  text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 10px 24px -10px rgba(255, 69, 0, .7);
}
.btn-pill:hover { background: var(--brand-600); }
.btn-pill.btn-sm { min-height: 40px; padding: 0 20px; font-size: 12px; }
.btn-icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--brand);
}
.btn-block { width: 100%; justify-content: space-between; }
.btn-pill[disabled] { opacity: .6; cursor: wait; box-shadow: none; }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-weight: 500; font-size: 13px;
}
.btn-ghost:hover { border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: 600 13px var(--head); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- App layout ---------- */
.app {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start;
  margin-top: -84px;
}
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(23, 23, 24, .05);
}
.form-card { padding: 26px; position: sticky; top: 16px; }
.card-title { margin: 0 0 18px; font-size: 20px; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field label, .checks { display: block; margin-bottom: 6px; font: 500 14px/1.3 var(--head); color: var(--ink); }
.req { color: var(--brand); }
.opt { color: var(--muted); font: 400 12px var(--body); margin-left: 4px; }
input[type=text], textarea, select {
  width: 100%; padding: 11px 13px;
  font: 15px/1.4 var(--body); color: var(--ink);
  background: #fbfbfc; border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 48px; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23171718' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
input:focus, textarea:focus, select:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 69, 0, .12);
}
.field.invalid textarea, .field.invalid input { border-color: var(--bad); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin: 2px 0 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font: 400 14px var(--body); color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.more { margin: 0 0 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary {
  cursor: pointer; list-style: none; font: 600 14px var(--head); color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-50); color: var(--brand); font-weight: 700; }
.more[open] summary::before { content: "–"; }
.more[open] summary { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 14px; }
.quota { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.quota strong { color: var(--ink); }
.form-msg { margin: 12px 0 0; padding: 11px 14px; border-radius: 11px; background: #fdecec; color: var(--bad); font-size: 14px; }

/* ---------- Output ---------- */
.out-card { min-height: 640px; padding: 26px 30px; }
.state-empty, .state-loading { text-align: center; padding: 56px 12px; }
.state h3 { margin: 18px 0 8px; font-size: 20px; }
.empty-art {
  width: 112px; height: 136px; margin: 0 auto; padding: 18px 16px;
  border-radius: 14px; background: var(--brand-50); border: 1px solid #ffd9c9;
  display: grid; gap: 10px; align-content: start;
}
.empty-art span { height: 8px; border-radius: 4px; background: #ffc4ad; }
.empty-art span:first-child { height: 12px; width: 70%; background: var(--brand); }
.empty-art span:nth-child(3) { width: 85%; }
.empty-art span:last-child { width: 55%; }
.tips { display: inline-block; text-align: left; max-width: 460px; margin: 4px 0 0; padding-left: 20px; font-size: 15px; }
.tips li { margin-bottom: 6px; }

.loader { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--brand-50); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.elapsed { font: 600 13px var(--head); color: var(--brand); }
.skeleton { max-width: 520px; margin: 28px auto 0; display: grid; gap: 12px; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eee 0, #f7f7f7 40%, #eee 80%); background-size: 400px 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 6px; }
.stat { padding: 6px 11px; border-radius: 50px; background: var(--bg); font: 500 12px var(--head); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
}
.menu-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: 14px var(--body); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--bg); }

.tabs { display: flex; gap: 4px; margin: 16px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  padding: 10px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: 500 14px var(--head); color: var(--muted);
}
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--brand); }
.badge { display: inline-block; min-width: 20px; padding: 2px 6px; margin-left: 4px; border-radius: 50px; background: var(--brand-50); color: var(--brand); font-size: 11px; }
.badge:empty { display: none; }
.notice { padding: 11px 14px; border-radius: 11px; background: #fff6e5; color: var(--warn); font-size: 14px; }
.edit-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }

/* ---------- Article typography ---------- */
.article {
  max-width: 760px; outline: none; border-radius: 12px; padding: 4px 8px; margin: 0 -8px;
  font: 18px/1.75 var(--read); color: #2b2c30;
  transition: box-shadow .15s;
}
.article:focus { box-shadow: 0 0 0 2px var(--brand-50); }
.article h1 { font-size: 32px; margin: 0 0 18px; letter-spacing: -.01em; }
.article h2 { font-size: 24px; margin: 36px 0 12px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article h4 { font-size: 17px; margin: 22px 0 6px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 26px; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 10px 10px 0; }
.article strong { color: var(--ink); }
.article code { font: 15px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font: 15px/1.5 var(--body); }
.article th, .article td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.article th { background: var(--bg); font-family: var(--head); font-weight: 600; color: var(--ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.article[dir=rtl] { text-align: right; }
.article[dir=rtl] ul, .article[dir=rtl] ol { padding-left: 0; padding-right: 26px; }
.article[dir=rtl] blockquote { border-left: 0; border-right: 3px solid var(--brand); border-radius: 10px 0 0 10px; }
.article[dir=rtl] th, .article[dir=rtl] td { text-align: right; }
.article[lang=ur] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2.3; font-size: 19px; }
.article[lang=ur] h1, .article[lang=ur] h2, .article[lang=ur] h3 { font-family: "Noto Nastaliq Urdu", serif; line-height: 2; }
.article[lang=ar] { font-family: "Noto Naskh Arabic", "Traditional Arabic", serif; line-height: 2; font-size: 19px; }
.article[lang=ar] h1, .article[lang=ar] h2, .article[lang=ar] h3 { font-family: "Noto Naskh Arabic", serif; }

/* ---------- SEO panel ---------- */
.seo-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.seo-head { display: flex; align-items: center; gap: 10px; font-family: var(--head); color: var(--ink); font-size: 14px; }
.seo-head .link { margin-left: auto; }
.count { font: 500 12px var(--head); padding: 3px 8px; border-radius: 50px; background: var(--bg); color: var(--muted); }
.count.good { background: #e7f6ee; color: var(--ok); }
.count.warn { background: #fff3e0; color: var(--warn); }
.seo-val { margin: 6px 0 0; color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.serp { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; font-family: Arial, sans-serif; }
.serp-label { margin: 0 0 10px; font: 600 11px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.serp-url { margin: 0; font-size: 13px; color: #202124; }
.serp-title { margin: 4px 0; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.serp-desc { margin: 0; font-size: 14px; color: #4d5156; }

/* ---------- Writing check ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.metric { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.metric .m-label { font: 500 12px var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric .m-value { font: 600 22px/1.3 var(--head); color: var(--ink); margin: 4px 0 2px; }
.metric .m-note { font-size: 13px; }
.metric.good .m-note { color: var(--ok); }
.metric.warn .m-note { color: var(--warn); }
.metric.bad .m-note { color: var(--bad); }
.phrase-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.phrase-list button { padding: 6px 12px; border: 1px solid #ffd9c9; border-radius: 50px; background: var(--brand-50); color: var(--brand-600); font: 500 13px var(--body); cursor: pointer; }
.phrase-list button:hover { border-color: var(--brand); }
.ok-box { padding: 12px 16px; border-radius: 12px; background: #e7f6ee; color: var(--ok); font-size: 14px; }
mark.ag-hl { background: #ffe1d3; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section-title { font-size: 28px; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 16px var(--head); }
.steps h3 { margin: 14px 0 6px; font-size: 18px; }
.steps p { margin: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 16px var(--head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }

.cta { margin-top: 80px; background: var(--ink); color: #c9cad0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 0; }
.cta h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.cta p { margin: 0; max-width: 620px; }
.footer { background: #0f0f10; color: #8b8d94; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; }
.footer p { margin: 0; }
.footer a { color: #c9cad0; text-decoration: none; }
.footer a:hover { color: var(--brand); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 500 14px var(--head);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .out-card { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .brand img { height: 32px; }
  .hero { padding-bottom: 100px; }
  .hero-body { padding-top: 20px; }
  .lead { font-size: 16px; }
  .form-card, .out-card { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .article { font-size: 17px; }
  .article h1 { font-size: 26px; }
  .article h2 { font-size: 21px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; }
}
@media print {
  .hero, .form-card, .toolbar, .tabs, .edit-hint, .section, .cta, .footer, .toast { display: none !important; }
  .app { display: block; margin: 0; }
  .card { box-shadow: none; border: 0; }
}

/* ---------- v2.1 additions ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 13px var(--head); color: #9a9ca3; }
.crumbs a { color: #c9cad0; text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 500; font-size: 13px; }
.btn-dark:hover { background: #000; }
.menu-list { min-width: 250px; }
.menu-list button b { display: block; font: 600 14px var(--head); color: var(--ink); }
.menu-list button small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.badge-score.good { background: #e7f6ee; color: var(--ok); }
.badge-score.warn { background: #fff3e0; color: var(--warn); }
.badge-score.bad { background: #fdecec; color: var(--bad); }

/* SEO score */
.seo-top { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.seo-h { margin: 0 0 4px; font-size: 18px; }
.score { position: relative; width: 84px; height: 84px; flex: none; }
.score svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 3.4; }
.score .ring-bg { stroke: var(--line); }
.score .ring { stroke: var(--muted); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .5s ease, stroke .3s; }
.score.good .ring { stroke: var(--ok); }
.score.warn .ring { stroke: #f39200; }
.score.bad .ring { stroke: var(--bad); }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.score-num strong { font: 700 24px var(--head); color: var(--ink); }
.score-num span { font: 500 11px var(--head); color: var(--muted); margin-top: 2px; }
.checklist { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.checklist strong { display: block; font-weight: 500; color: var(--ink); }
.checklist small { display: block; color: var(--muted); margin-top: 2px; }
.ck { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.checklist .ok .ck { background: #e7f6ee; color: var(--ok); }
.checklist .no .ck { background: #fdecec; color: var(--bad); }
.checklist .na .ck { background: var(--bg); color: var(--muted); }
.checklist .na strong { color: var(--muted); }
.seo-fields { margin-top: 10px; }
.seo-fields .grid-2 { gap: 0 16px; }
label.seo-head { margin-bottom: 6px; cursor: text; }
.seo-input { margin-top: 2px; }
textarea.seo-input { resize: vertical; }
.extras { margin-top: 22px; }
.extras h4 { margin: 0 0 4px; font-size: 16px; }
.idea-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.idea-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.idea-list small { display: block; font: 500 12px var(--head); color: var(--muted); }
.idea-list span { color: var(--ink); font-size: 14px; }

/* HTML code */
.code-opts { margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: 600 14px var(--head); color: var(--ink); }
.seg label small { width: 100%; padding-left: 26px; font: 400 12px var(--body); color: var(--muted); }
.seg input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.code-opts .checks { margin-bottom: 6px; }
textarea.code {
  width: 100%; height: 380px; padding: 14px 16px; border-radius: 12px; border: 1px solid #2a2a2e;
  background: #131315; color: #e6e6e9; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; tab-size: 2; resize: vertical;
}
textarea.code:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 69, 0, .15); background: #131315; }
.code-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Page sections */
.section-lead { margin: -10px 0 24px; max-width: 720px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.features li::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--brand); margin-bottom: 14px; }
.features h3 { margin: 0 0 6px; font-size: 16px; }
.features p { margin: 0; font-size: 15px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 34px 24px; }
.guide h3 { font-size: 18px; margin: 22px 0 6px; }
.guide p { margin: 0; }

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seo-fields .grid-2 { grid-template-columns: 1fr; }
  .guide-grid { padding: 4px 20px 20px; }
}
@media print {
  .hero, .form-card, .toolbar, .tabs, .edit-hint, .notice, .section, .cta, .footer, .toast, .panel:not([data-panel=article]) { display: none !important; }
  body { background: #fff; }
  .out-card { padding: 0; min-height: 0; }
  .article { max-width: none; margin: 0; padding: 0; font-size: 12pt; }
  .article h2 { break-after: avoid; }
}
