:root {
  --bg: #f6f5fb; --surface: #ffffff; --surface-2: #f0eef8; --text: #1b1830; --muted: #6b6785;
  --border: #e3e0ef; --primary: #6d28d9; --primary-2: #db2777; --primary-ink: #ffffff;
  --ok: #059669; --warn: #d97706; --danger: #dc2626; --shadow: 0 6px 24px rgba(40, 20, 90, .08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12101c; --surface: #1b1829; --surface-2: #242036; --text: #ece9f7; --muted: #9b96b5;
    --border: #2f2a45; --primary: #8b5cf6; --primary-2: #ec4899; --shadow: 0 6px 24px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
h1 { font-size: 1.7rem; margin: 0 0 .4rem; } h2 { font-size: 1.15rem; margin: 2rem 0 .8rem; } h3 { margin: 0 0 .4rem; }
.muted { color: var(--muted); } .hidden { display: none !important; }
a { color: var(--primary); }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 1.5rem; align-items: center; padding: .8rem 1.5rem;
  background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.1rem; }
.logo { background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; color: transparent; }
nav { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; }
nav a { padding: .45rem .8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
nav a.active { background: var(--surface-2); color: var(--text); }
.badge { font-size: .75rem; padding: .3rem .6rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.badge.demo { background: #fef3c7; color: #92400e; }

main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.hero { padding: 1.2rem 0 1rem; }
.hero p { color: var(--muted); max-width: 640px; }
.niche-pick { display: inline-flex; gap: .6rem; align-items: center; font-weight: 600; margin-top: .5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tpl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; cursor: pointer;
  display: flex; flex-direction: column; gap: .5rem; transition: transform .12s, box-shadow .12s, border-color .12s; text-align: left; color: inherit; font: inherit; }
.tpl:hover, .tpl:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); outline: none; }
.tpl .ico { font-size: 1.8rem; }
.tpl h3 { font-size: 1.05rem; }
.tpl p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; flex: 1; }
.tpl .meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill { font-size: .72rem; padding: .2rem .55rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.pill.star { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }

.reco { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), color-mix(in srgb, var(--primary-2) 10%, var(--surface)));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }

.btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .6rem 1rem; border-radius: 10px;
  font-weight: 650; cursor: pointer; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.btn:hover { border-color: var(--primary); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-ink); border: 0; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.big { width: 100%; padding: .9rem; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.icon-btn { border: 0; background: var(--surface-2); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }

input, select, textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.niche-pick select { width: auto; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.row input, .row select { flex: 1; min-width: 180px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.two label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
label.inline { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .9rem; color: var(--muted); }
label.inline input { width: 90px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
details { margin-top: 1rem; } summary { cursor: pointer; color: var(--muted); }
.assets { margin-top: 1rem; display: grid; gap: .6rem; }

/* Wizard */
.overlay { position: fixed; inset: 0; background: rgba(10, 6, 25, .55); z-index: 50; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 2rem 1rem; }
.wizard { background: var(--bg); width: 100%; max-width: 1100px; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.wizard-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.wizard-head h2 { margin: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.wizard-body { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; padding: 1.4rem; }
.wz-form { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
fieldset { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
legend { font-weight: 700; padding: 0 .3rem; display: flex; align-items: center; gap: .5rem; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; }
.preset { background: var(--surface); border: 1px dashed var(--primary); border-radius: var(--radius); padding: 1rem 1.1rem; }
.preset h4 { margin: 0 0 .6rem; font-size: .9rem; }
.preset dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .88rem; }
.preset dt { color: var(--muted); } .preset dd { margin: 0; font-weight: 600; }
.preset select { width: auto; padding: .3rem .5rem; }

.city-search { position: relative; }
.dropdown { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); z-index: 5; max-height: 220px; overflow-y: auto; }
.dropdown li { padding: .5rem .6rem; border-radius: 8px; cursor: pointer; }
.dropdown li:hover { background: var(--surface-2); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { background: var(--surface-2); padding: .3rem .4rem .3rem .7rem; border-radius: 99px; font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.chip.missing { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); text-decoration: line-through; }
.preset dd .chips { gap: .3rem; } .preset dd .chip { font-size: .8rem; font-weight: 500; }

.media-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.map { height: 320px; border-radius: 12px; border: 1px solid var(--border); z-index: 0; }
.map-hint { font-size: .8rem; margin: -.2rem 0 0; }
.cover-box { margin-top: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.cover-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.cover-stage { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .6rem; align-items: start; }
.cover-stage video { width: 100%; max-height: 340px; background: #000; border-radius: 10px; object-fit: contain; }
.cover-current { display: flex; flex-direction: column; gap: .25rem; }
.cover-current img { width: 96px; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; background: var(--surface); border: 2px solid var(--primary); }
#wz-cover-range { padding: 0; accent-color: var(--primary); }
.cover-ctrl { flex-wrap: wrap; align-items: center; gap: .4rem; }
.cover-ctrl .btn { padding: .4rem .6rem; font-size: .85rem; }
.cover-ctrl b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.loc-list { display: flex; flex-direction: column; gap: .4rem; }
.loc-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(90px, 1.2fr) 52px 28px; align-items: center; gap: .6rem;
  background: var(--surface-2); border: 2px solid transparent; border-radius: 10px; padding: .45rem .6rem; cursor: pointer; }
.loc-row.sel { border-color: var(--loc-color, var(--primary)); background: var(--surface); }
.loc-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--loc-color); }
.loc-name { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-row input[type=range] { padding: 0; accent-color: var(--loc-color, var(--primary)); }
.loc-row b { text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; }
.loc-row .loc-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .95rem; }
@media (max-width: 560px) {
  .loc-row { grid-template-columns: 14px minmax(0, 1fr) 52px 28px; }
  .loc-row input[type=range] { grid-column: 1 / -1; grid-row: 2; }
}
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; max-height: 420px; overflow-y: auto; }
.ig-item { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: var(--surface); text-align: left; color: inherit; font: inherit; }
.ig-item:hover, .ig-item.sel { border-color: var(--primary); }
.ig-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.ig-item .badge-top { position: absolute; top: 4px; left: 4px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .4rem; border-radius: 99px; }
.ig-item .badge-type { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; padding: .1rem .4rem; border-radius: 99px; }
.ig-item .ig-meta { font-size: .72rem; padding: .3rem .4rem; color: var(--muted); display: flex; justify-content: space-between; }
.ig-chosen { background: var(--surface-2); border-radius: 10px; padding: .7rem .8rem; }
.ig-chosen .seg { flex-direction: column; gap: .5rem; }
.ig-chosen label { align-items: flex-start; }
.ph-media video { width: 100%; height: 100%; object-fit: cover; }
.file-btn { cursor: pointer; }
.art-box { background: var(--surface-2); border-radius: 10px; padding: .8rem; display: flex; flex-direction: column; gap: .4rem; }
.variations { display: grid; gap: .5rem; }
.variation { border: 1px solid var(--border); border-radius: 10px; padding: .7rem; cursor: pointer; background: var(--surface); text-align: left; color: inherit; font: inherit; }
.variation:hover { border-color: var(--primary); }
.variation small { color: var(--primary); font-weight: 700; }
.variation p { margin: .3rem 0 0; white-space: pre-line; font-size: .88rem; }
.seg { display: flex; gap: 1rem; flex-wrap: wrap; }
.seg label, .checks label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.seg input, .checks input, .rule input[type=checkbox] { width: auto; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; }
.rule { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; flex-wrap: wrap; }
.rule:last-child { border: 0; }
.rule .val { width: 90px; }
.rule span { flex: 1; min-width: 180px; }
.error { color: var(--danger); font-weight: 600; margin: 0; }

.preview-col { position: sticky; top: 1rem; align-self: start; }
.phone { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.ph-head { display: flex; gap: .6rem; align-items: center; padding: .7rem; font-size: .85rem; }
.ph-head small { display: block; color: var(--muted); font-size: .72rem; }
.ph-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.ph-media { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-cta { background: var(--primary); color: #fff; padding: .55rem .8rem; font-size: .85rem; font-weight: 700; }
.ph-text { padding: .7rem; font-size: .85rem; }
.ph-text p { white-space: pre-line; margin: .3rem 0 0; }
.tip { font-size: .85rem; margin-top: .8rem; }

/* Campanhas */
.camp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .8rem; display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; }
.camp img, .camp .noimg { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.camp h3 { font-size: 1rem; }
.stats { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.stat b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: .75rem; }
.status { font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 99px; }
.status.ACTIVE { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.status.PAUSED { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.camp-actions { display: flex; flex-direction: column; gap: .4rem; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.log li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; }
.log time { color: var(--muted); font-size: .78rem; margin-right: .5rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Instagram */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; font-size: .86rem; display: flex; flex-direction: column; gap: .5rem; }
.post.top { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.post .cap { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.post .nums div { background: var(--surface-2); border-radius: 8px; padding: .35rem; text-align: center; }
.post .nums b { display: block; font-variant-numeric: tabular-nums; }
.post .nums small { color: var(--muted); font-size: .7rem; }
.post img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.analysis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 1rem; }
.analysis .card { margin: 0; }
.analysis ul { margin: .3rem 0 0; padding-left: 1.1rem; } .analysis li { margin-bottom: .35rem; }
.score { font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; color: transparent; }

.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .7rem 1.1rem; border-radius: 10px; z-index: 100; font-weight: 600; max-width: 90vw; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .wizard-body { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; max-width: 340px; margin: 0 auto; width: 100%; }
  .camp { grid-template-columns: 56px 1fr; } .camp img, .camp .noimg { width: 56px; height: 56px; }
  .camp-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .two { grid-template-columns: 1fr; }
  .overlay { padding: 0; } .wizard { border-radius: 0; }
}

/* ---------------------------------------------- Analisador de campanha --- */
.toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; white-space: nowrap; }
.toggle input, .row .toggle input { width: auto; flex: none; min-width: 0; margin: 0; }
.an-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1rem; align-items: start; }
.an-list { display: flex; flex-direction: column; gap: .5rem; max-height: calc(100vh - 180px); overflow-y: auto; position: sticky; top: 1rem; }
.an-item { text-align: left; font: inherit; color: inherit; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; }
.an-item:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.an-item.sel { border-color: var(--primary); }
.an-item b { font-size: .92rem; line-height: 1.3; }
.an-item .an-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--muted); }
.an-detail { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.an-detail .card { margin: 0; }
.an-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.an-head h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: .6rem .7rem; }
.kpi small { display: block; color: var(--muted); font-size: .75rem; }
.kpi b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.kpi.main { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: .45rem .5rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.tbl .thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; vertical-align: middle; margin-right: .5rem; background: var(--surface-2); }
.lvl { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; white-space: nowrap; }
.lvl.otimo { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.lvl.bom { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.lvl.atencao { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.lvl.critico { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.verdict .score { font-size: 3rem; line-height: 1; }
.decision { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; padding: .25rem .6rem; border-radius: 8px; background: var(--surface-2); margin-right: .4rem; }
.decision.escalar { background: var(--ok); color: #fff; } .decision.manter { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); color: var(--ok); }
.decision.ajustar { background: var(--warn); color: #fff; } .decision.refazer, .decision.pausar { background: var(--danger); color: #fff; }
.alerts { border-color: var(--danger) !important; background: color-mix(in srgb, var(--danger) 7%, var(--surface)) !important; }
.alerts li { color: var(--text); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.mcard { background: var(--surface-2); border-radius: 10px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; }
.mcard .top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.mcard .val { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sugs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; counter-reset: sug; }
.sug { background: var(--surface-2); border-radius: 12px; padding: .8rem .9rem; counter-increment: sug; }
.sug-head { display: flex; gap: .6rem; align-items: flex-start; }
.sug-head::before { content: counter(sug); display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; }
.sug-head b { flex: 1; }
.sug p { margin: .45rem 0 0 2.2rem; font-size: .9rem; line-height: 1.45; }
.sug details { margin: .4rem 0 0 2.2rem; } .sug details p { margin-left: 0; white-space: pre-line; }
.tag { font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.tag.alto { color: var(--ok); } .tag.baixo-esf { color: var(--ok); }
.copybox { background: var(--surface-2); border-radius: 10px; padding: .7rem .8rem; font-size: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.copybox p { margin: 0; white-space: pre-line; }
.plan { margin: 0; padding-left: 1.2rem; } .plan li { margin-bottom: .4rem; }
.an-loading { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 860px) {
  .an-layout { grid-template-columns: 1fr; }
  .an-list { max-height: 260px; position: static; }
  .verdict { grid-template-columns: 1fr; }
}
