/* Writexa AI — global styles */
:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #eaf1fb;
  --text: #101c30;
  --muted: #64748b;
  --line: #dbe5f2;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #14b8a6;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow-sm: 0 8px 24px rgba(62, 40, 24, .07);
  --shadow-lg: 0 28px 80px rgba(62, 40, 24, .15);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #081525;
  --surface: #0f2138;
  --surface-2: #18314d;
  --text: #f8fbff;
  --muted: #b5c2d3;
  --line: #2a4464;
  --primary: #60a5fa;
  --primary-2: #22d3ee;
  --accent: #2dd4bf;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.18);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
::selection { background: rgba(232,93,69,.22); }
:focus-visible { outline: 3px solid rgba(232,93,69,.35); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-surface { background: var(--surface); }
.bg-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 52px 52px; background-position: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1,h2,h3,h4 { line-height: 1.08; letter-spacing: -.035em; margin: 0 0 18px; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border-radius: 999px; padding: 0 22px; border: 1px solid transparent; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 30px rgba(232,93,69,.28); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost { border-color: transparent; color: var(--muted); background: transparent; }
.btn-danger { background: rgba(215,72,95,.1); color: var(--danger); border-color: rgba(215,72,95,.18); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }
.announcement { background: #0b1f3a; color: #fff; text-align: center; padding: 9px 40px; font-size: .88rem; position: relative; }
.announcement a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.announcement button { position: absolute; right: 12px; top: 5px; border: 0; background: transparent; color: #fff; font-size: 1.2rem; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.navbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 1.12rem; font-weight: 900; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 8px 20px rgba(232,93,69,.25); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 700; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.menu-btn { display: none; }
.mobile-menu { display: none; padding: 10px 20px 22px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: grid; gap: 8px; }
.mobile-menu a { padding: 12px 8px; font-weight: 750; border-bottom: 1px solid var(--line); }
.hero { min-height: 760px; display: grid; place-items: center; padding: 90px 0 75px; overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: #60a5fa; top: -180px; left: -180px; }
.hero::after { width: 460px; height: 460px; background: #14b8a6; right: -180px; bottom: -180px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 54px; position: relative; z-index: 1; }
.hero h1 span { color: var(--primary); }
.hero-copy .lead { margin-bottom: 28px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.hero-proof span::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.product-window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1deg); }
.window-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.window-body { padding: 22px; }
.prompt-box { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: var(--bg); }
.prompt-box b { display: block; font-size: .85rem; margin-bottom: 8px; }
.mock-input { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px; color: var(--muted); }
.progress { height: 9px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.progress > span { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.outline-list { display: grid; gap: 10px; margin-top: 16px; }
.outline-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--bg); border-radius: 12px; }
.outline-item i { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: rgba(232,93,69,.12); color: var(--primary); font-style: normal; font-weight: 900; }
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.logo-chip { padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; font-weight: 850; color: var(--muted); text-align: center; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.section-head p { max-width: 620px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card.hover { transition: .22s ease; }
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(232,93,69,.11); color: var(--primary); font-size: 1.25rem; font-weight: 900; margin-bottom: 22px; }
.feature-card p { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.pill.success { color: #0c805d; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.2); }
.pill.primary { color: var(--primary); background: rgba(232,93,69,.1); border-color: rgba(232,93,69,.2); }
.steps { counter-reset: steps; }
.step { position: relative; padding-left: 82px; }
.step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; left: 0; top: 0; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--text); color: var(--bg); font-weight: 900; }
.workflow { border-radius: var(--radius-lg); background: #0b1f3a; color: white; padding: 52px; overflow: hidden; position: relative; }
.workflow::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; bottom: -100px; background: #2563eb; filter: blur(25px); opacity: .5; }
.workflow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; position: relative; z-index: 1; }
.workflow p { color: #bfc5d9; }
.pipeline { display: grid; gap: 12px; }
.pipeline-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.11); }
.pipeline-item span:first-child { font-weight: 800; }
.pipeline-item small { color: #bfc5d9; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .9rem; }
.use-case { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.use-case .num { font-size: 3.8rem; font-weight: 900; color: var(--surface-2); -webkit-text-stroke: 1px var(--line); }
.quote-card blockquote { margin: 0; font-size: 1.15rem; }
.quote-meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 900; }
.pricing-toggle { display: inline-flex; padding: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; }
.pricing-toggle button { border: 0; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 999px; font-weight: 800; }
.pricing-toggle button.active { background: var(--text); color: var(--bg); }
.price-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.price-card.popular { border: 2px solid var(--primary); transform: translateY(-8px); }
.popular-badge { position: absolute; top: -14px; right: 22px; background: var(--primary); color: white; border-radius: 999px; padding: 5px 11px; font-size: .76rem; font-weight: 900; }
.price { font-size: 2.8rem; font-weight: 900; letter-spacing: -.05em; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.feature-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.feature-list li::before { content: "✓"; color: var(--accent); margin-right: 9px; font-weight: 900; }
.faq-list { max-width: 850px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 20px; padding: 19px 22px; border: 0; color: var(--text); background: transparent; font-weight: 850; }
.faq-answer { display: none; padding: 0 22px 20px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.cta { padding: 58px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #1d4ed8, #0891b2); color: white; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.13); right: -100px; top: -100px; }
.cta p { color: rgba(255,255,255,.8); max-width: 620px; }
.site-footer { padding: 76px 0 28px; background: #06111f; color: #edf0f9; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.footer-brand p { color: #979fb6; max-width: 340px; }
.footer-title { font-size: .83rem; text-transform: uppercase; letter-spacing: .11em; color: #7f88a4; font-weight: 900; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #b8bfd1; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #252a3d; margin-top: 48px; padding-top: 24px; color: #8f97ad; font-size: .86rem; }
.page-hero { padding: 110px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); max-width: 920px; margin-inline: auto; }
.page-hero .lead { margin-inline: auto; }
.content-shell { max-width: 850px; margin-inline: auto; }
.prose { color: var(--muted); }
.prose h2, .prose h3 { color: var(--text); margin-top: 40px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--primary); text-decoration: underline; }
.form-card { max-width: 720px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .9rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(232,93,69,.1); }
textarea { min-height: 130px; resize: vertical; }
.field-error { color: var(--danger); font-size: .8rem; min-height: 18px; }
.auth-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { padding: 70px max(40px, 8vw); display: grid; align-content: center; }
.auth-visual { background: #0b1f3a; color: white; padding: 70px; display: grid; align-content: center; overflow: hidden; position: relative; }
.auth-visual::after { content: ""; width: 420px; height: 420px; border-radius: 50%; position: absolute; background: #2563eb; opacity: .5; filter: blur(45px); right: -160px; bottom: -160px; }
.auth-card { max-width: 470px; width: 100%; margin-inline: auto; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-toggle { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--muted); padding: 6px 8px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: 18px; margin-top: 4px; }
.generator-shell { display: grid; grid-template-columns: 390px 1fr; gap: 26px; align-items: start; }
.generator-form { position: sticky; top: 96px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.editor { min-height: 570px; background: var(--surface); }
.editor-output { white-space: pre-wrap; min-height: 460px; color: var(--text); }
.empty-state { text-align: center; min-height: 430px; display: grid; place-items: center; color: var(--muted); }
.empty-icon { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; background: rgba(232,93,69,.1); color: var(--primary); font-size: 1.8rem; }
.loading { display: none; min-height: 430px; place-items: center; text-align: center; }
.loading.show { display: grid; }
.spinner { width: 45px; height: 45px; border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.range-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.blog-card { padding: 0; overflow: hidden; }
.blog-cover { min-height: 210px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(91,71,224,.18), rgba(16,185,129,.16)); font-size: 4rem; }
.blog-content { padding: 24px; }
.blog-meta { color: var(--muted); font-size: .84rem; display: flex; gap: 12px; flex-wrap: wrap; }
.article-header { max-width: 900px; margin-inline: auto; text-align: center; }
.article-body { max-width: 760px; margin: 50px auto 0; }
.article-body p { font-size: 1.08rem; }
.contact-cards { margin-bottom: 35px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.notice { border: 1px solid rgba(183,121,31,.22); background: rgba(183,121,31,.08); color: var(--warning); border-radius: 12px; padding: 14px 16px; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(4,7,18,.65); padding: 20px; }
.modal.open { display: grid; }
.modal-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; }
.toast { background: var(--text); color: var(--bg); border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg); animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } }
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(430px, calc(100% - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); }
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: none; }
.back-top.show { display: grid; }
.kbd { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .78rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 28px; display: grid; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); position: absolute; left: -36px; top: 5px; box-shadow: 0 0 0 5px var(--bg); }
.error-page { min-height: 75vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(7rem, 20vw, 14rem); line-height: .8; font-weight: 950; letter-spacing: -.09em; color: var(--surface-2); -webkit-text-stroke: 2px var(--line); }
@media (max-width: 1000px) {
  .hero-grid, .workflow-grid, .generator-shell { grid-template-columns: 1fr; }
  .generator-form { position: static; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 72px 0; }
  .section-head { display: block; }
  .grid-2, .grid-3, .grid-4, .form-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero { padding-top: 65px; min-height: auto; }
  .hero-grid { gap: 40px; }
  .product-window { transform: none; }
  .logo-strip { grid-template-columns: repeat(2,1fr); }
  .workflow, .cta { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: auto; }
  .page-hero { padding-top: 80px; }
  .auth-panel { padding: 52px 22px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.65rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .nav-actions .icon-btn, .menu-btn { width: 39px; height: 39px; }
  .hero-proof { display: grid; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Writexa-specific visual language */
body { background-image: linear-gradient(rgba(37,99,235,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.025) 1px, transparent 1px), radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 28%), radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 24%); background-size: 44px 44px,44px 44px,auto,auto; }
.logo-mark { border-radius: 12px 12px 4px 12px; transform: rotate(2deg); box-shadow: inset -5px -5px 0 rgba(255,255,255,.16); }
.logo-mark + span { letter-spacing: -.035em; }
.hero::before { border-radius: 42% 58% 66% 34% / 48% 40% 60% 52%; }
.hero::after { border-radius: 62% 38% 44% 56% / 41% 56% 44% 59%; }
.product-window { transform: perspective(900px) rotateY(-2deg) rotateX(1deg); }
.feature-card:nth-child(even) .feature-icon { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.channel-pack { display:grid; gap:12px; }
.channel-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.channel-row strong { display:block; }
.channel-row small { color:var(--muted); }
.source-card { border-left:4px solid var(--primary); }
.voice-meter { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; }
.voice-meter span { height:9px; border-radius:999px; background:var(--surface-2); }
.voice-meter span.on { background:linear-gradient(90deg,var(--primary),var(--primary-2)); }
.template-chip { display:flex; align-items:center; justify-content:space-between; padding:13px 15px; border:1px solid var(--line); border-radius:13px; background:var(--surface); font-weight:800; }
.template-chip b { color:var(--primary); }
.editor-output { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.95rem; line-height:1.72; }

/* Writexa editorial interface */
.brief-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.brief-tile{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.brief-tile b{display:block;margin-bottom:4px}.score-ring{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) 0 86%,var(--surface-2) 86%);position:relative;font-weight:900}.score-ring:after{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--surface)}.score-ring span{position:relative;z-index:1}.draft-line{height:9px;border-radius:99px;background:var(--surface-2);margin:10px 0}.draft-line.w85{width:85%}.draft-line.w70{width:70%}.draft-line.w55{width:55%}@media(max-width:620px){.brief-grid{grid-template-columns:1fr}}
