/* ad-creative-brief-lab-2 */
:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --ink: #1a1d29;
  --muted: #6b7180;
  --line: #e6e8ef;
  --brand: #5b3df5;
  --brand-soft: #efeaff;
  --accent: #ff5a87;
  --green: #16a06b;
  --amber: #d98300;
  --red: #d6455b;
  --shadow: 0 1px 2px rgba(20, 20, 50, .04), 0 8px 24px rgba(20, 20, 50, .06);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }

/* header */
.site-head {
  background: linear-gradient(120deg, #2a1a6e 0%, #5b3df5 55%, #8b5cf6 100%);
  color: #fff;
  padding: 22px 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { font-size: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.site-head h1 { font-size: 23px; letter-spacing: .5px; }
.tagline { font-size: 13.5px; opacity: .9; margin-top: 2px; }
.tagline strong { color: #ffe27a; }
.head-meta { font-size: 12.5px; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; }

/* layout */
.layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; padding: 26px 0 10px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.input-panel { padding: 20px; position: sticky; top: 16px; }
.output-panel { padding: 22px; min-height: 60vh; }
.panel-title { font-size: 15px; color: var(--brand); margin-bottom: 14px; }

/* form */
form label { display: block; font-size: 13px; font-weight: 600; color: #444b5c; margin-bottom: 14px; }
input[type=text], select, textarea {
  width: 100%; margin-top: 6px; padding: 9px 11px; font-size: 14px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfbfe; color: var(--ink);
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; line-height: 1.55; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platforms { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 4px; margin-bottom: 14px; }
.platforms legend { font-size: 12.5px; font-weight: 600; color: #444b5c; padding: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; margin: 0 0 8px; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); transition: .15s; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:focus-within span { box-shadow: 0 0 0 3px var(--brand-soft); }

.actions { display: flex; gap: 10px; margin-top: 4px; }
.btn {
  font: inherit; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; transition: .15s; background: #eef0f6; color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; flex: 1; }
.btn.primary:hover { background: #4a2fe0; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--muted); }
.btn.small { font-size: 12.5px; padding: 7px 12px; }
.privacy { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* empty state */
.empty { text-align: center; padding: 30px 10px; }
.empty-illu { font-size: 54px; }
.empty h2 { font-size: 19px; margin: 12px 0 18px; }
.empty-list { list-style: none; padding: 0; max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 12px; }
.empty-list li { background: #fafaff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }

/* result */
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.result-head h2 { font-size: 20px; }
.result-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.result-actions { display: flex; gap: 8px; }
.callout { background: var(--brand-soft); color: #36277a; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin: 16px 0 6px; }

.block { margin-top: 22px; }
.block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; border-left: 3px solid var(--brand); padding-left: 10px; }
.block-head h3 { font-size: 16px; }
.hint, .muted { color: var(--muted); }
.hint { font-size: 12px; }
.muted { font-size: inherit; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 12px; }
.card { background: #fdfdff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; font-size: 13px; }
.card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.tag.soft { background: #eef0f6; color: var(--muted); }
.tag.star { background: #fff2e0; color: var(--amber); }
.angle .hook { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.angle .meta { font-size: 11.5px; color: var(--muted); }
.aud h4 { font-size: 14px; }
.aud p { margin-bottom: 3px; }
.aud .obj { color: var(--red); }

/* tests */
.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card.test { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; box-shadow: var(--shadow); }
.test-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.test-head h4 { font-size: 15px; flex: 1; }
.rank { font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 6px; padding: 2px 7px; }
.score { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.score.high, .ice-dot.high { background: #e3f6ee; color: var(--green); }
.score.mid, .ice-dot.mid { background: #fdf0db; color: var(--amber); }
.score.low, .ice-dot.low { background: #fce8eb; color: var(--red); }
.hypo { font-size: 12.5px; color: #3a4150; margin-bottom: 10px; }
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.ab-cell { background: #f7f8fc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: 12px; }
.ab-tag { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.ab-tag.b { color: var(--accent); }
.metric { font-size: 11.5px; margin-bottom: 3px; }
.ice-controls { margin-top: 11px; border-top: 1px dashed var(--line); padding-top: 9px; display: grid; gap: 4px; }
.ice-row { display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ice-row input[type=range] { width: 100%; accent-color: var(--brand); }
.ice-row output { font-weight: 700; color: var(--ink); text-align: right; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wave { background: #fdfdff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.wave-head h4 { font-size: 14px; color: var(--brand); }
.wave-head p { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.wave ul { margin: 0; padding-left: 2px; list-style: none; display: grid; gap: 7px; }
.wave li { font-size: 12.5px; display: flex; gap: 7px; align-items: baseline; }
.ice-dot { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; flex-shrink: 0; }

/* champion */
.champion { background: linear-gradient(180deg, #fbfaff, #fff); border: 1px solid var(--brand-soft); border-radius: 14px; padding: 16px 18px; }
.champ-copy { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; display: grid; gap: 6px; font-size: 13.5px; margin-bottom: 14px; }
.storyboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: shot; }
.storyboard li { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.shot-t { flex-shrink: 0; width: 64px; font-weight: 700; font-size: 12.5px; color: var(--brand); }
.shot-line { font-weight: 600; font-size: 13.5px; }
.shot-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* footer */
.site-foot { padding: 26px 0 36px; color: var(--muted); font-size: 12.5px; text-align: center; }
.site-foot .muted { display: block; margin-top: 4px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 50; box-shadow: var(--shadow); }

/* responsive */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .input-panel { position: static; }
  .head-meta { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .ab { grid-template-columns: 1fr; }
  .site-head h1 { font-size: 20px; }
  .result-actions { width: 100%; }
  .result-actions .btn { flex: 1; }
}
