/* Marketing Studio. Tokens come from base.css and motion.css. */

.st-shell { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.st-rail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.st-rail-label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); padding: 16px 10px 4px;
}
.st-rail-label:first-child { padding-top: 0; }
.st-tab {
  display: flex; align-items: center; gap: 8px; justify-content: flex-start;
  text-align: left; border: 0; background: transparent; color: hsl(var(--muted-foreground));
  border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; width: 100%;
}
.st-tab:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.st-ico { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.st-tab.is-on { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.st-tab.is-on .st-ico { opacity: 1; }
.st-tab .st-badge { margin-left: auto; }
.st-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 11px; line-height: 18px; text-align: center;
}
.st-pane { min-width: 0; }
.st-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.st-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.st-sub { color: hsl(var(--muted-foreground)); font-size: 13px; margin-top: 4px; max-width: 42rem; line-height: 1.45; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-stat, .st-card, .st-panel {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: 14px;
}
.st-stat { padding: 14px 16px; }
.st-stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-stat span, .st-meta { color: hsl(var(--muted-foreground)); font-size: 12px; }
.st-row { display: flex; gap: 12px; align-items: stretch; }
.st-list { display: flex; flex-direction: column; gap: 8px; }
.st-card { padding: 14px 16px; }
.st-card h3 { font-size: 14px; font-weight: 600; }
.st-aud {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; cursor: pointer; text-align: left;
}
.st-aud-n { text-align: right; min-width: 88px; }
.st-aud-n b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; }
.st-folder { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.st-folder .st-field { width: 180px; }
.st-checks { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 220px; overflow: auto; }
.st-check {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid hsl(var(--border)); background: transparent; color: inherit;
  border-radius: 10px; padding: 8px 10px; text-align: left; font-size: 13px; cursor: pointer;
}
.st-check i {
  width: 14px; height: 14px; border-radius: 4px; border: 1px solid hsl(var(--border));
  display: inline-block; flex-shrink: 0;
}
.st-check.is-on { border-color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.st-check.is-on i { background: hsl(var(--foreground)); border-color: transparent; }
.st-check:disabled { opacity: 0.45; cursor: default; }
.st-split { display: grid; grid-template-columns: 220px 1fr 280px; gap: 16px; align-items: start; }
.st-split.st-builder { grid-template-columns: 1fr 300px; }
.st-cond { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(72px, .8fr) 5.5rem auto; gap: 8px; margin-bottom: 4px; align-items: center; }
.st-group { margin: 8px 0 8px 12px; padding: 8px; border: 1px solid hsl(var(--border)); border-radius: 10px; }
.st-table-wrap { overflow: auto; margin-top: 12px; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th, .st-table td { text-align: left; padding: 8px; border-bottom: 1px solid hsl(var(--border)); }
.st-palette { position: fixed; inset: 12vh 20vw auto; background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 12px; z-index: 40; box-shadow: 0 12px 40px hsl(240 10% 3.9% / 0.12); }
.st-palette[hidden] { display: none; }
.st-match { grid-column: 1 / -1; font-size: 12px; color: hsl(var(--muted-foreground)); min-height: 1em; margin-bottom: 6px; }
.st-cond input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.st-cond input[type="number"]::-webkit-outer-spin-button,
.st-cond input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-field, .st-select, .st-area {
  width: 100%; border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  color: inherit; border-radius: 10px; padding: 8px 10px; font-size: 13px;
}
.st-area { min-height: 140px; resize: vertical; font-family: inherit; }
.st-steps { display: flex; gap: 8px; margin-bottom: 18px; }
.st-step {
  flex: 1; border: 0; background: transparent; color: hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--border)); padding: 8px 0; font-size: 12px; cursor: pointer; text-align: left;
}
.st-step-n { font-variant-numeric: tabular-nums; margin-right: 6px; }
.st-unit { align-self: center; font-size: 12px; color: hsl(var(--muted-foreground)); }
button.st-error { display: block; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.st-step.is-on { color: hsl(var(--foreground)); border-color: hsl(var(--foreground)); }
.st-channels { display: flex; gap: 8px; }
.st-chan {
  border: 1px solid hsl(var(--border)); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
}
.st-chan.is-on { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.st-live b { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-bar { height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; display: flex; }
.st-bar i { display: block; height: 100%; }
.st-bar .sms { background: hsl(var(--foreground)); }
.st-bar .email { background: hsl(var(--muted-foreground)); }
.st-empty { padding: 28px 8px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.5; max-width: 36rem; }
.st-person { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid hsl(var(--border)); font-size: 13px; }
.st-blur { filter: blur(6px); user-select: none; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.st-thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.st-bubble { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.st-bubble.in { background: hsl(var(--muted)); }
.st-bubble.out { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); margin-left: auto; }
.st-fan { width: 100%; height: 180px; }
.st-fan path { fill: none; stroke: hsl(var(--foreground)); stroke-width: 1.5; }
.st-coach {
  position: fixed; right: 24px; bottom: 24px; width: 280px; z-index: 40;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 12px 40px hsl(240 10% 3.9% / 0.12);
}
.st-error { color: #b91c1c; font-size: 13px; }
.st-main { min-width: 0; display: flex; flex-direction: column; min-height: 0; height: 100%; }
.st-main .st-pane { flex: 1; }
.st-banner { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-bottom: 1px solid hsl(var(--border)); padding: 6px 10px; font-size: 13px; }
.st-banner[hidden] { display: none; }
@media (max-width: 960px) {
  .st-shell, .st-split, .st-split.st-builder, .st-grid { grid-template-columns: 1fr; }
  .st-rail { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .st-fan path { stroke-dasharray: none !important; }
}

body.room-marketing #marketing-room { overflow: hidden; }
body.room-marketing #marketing-body {
  max-width: none;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.st-shell { height: 100%; min-height: 0; align-items: stretch; }
.st-shell.is-narrow { grid-template-columns: 64px minmax(0, 1fr); }
.st-shell.is-narrow .st-rail-label,
.st-shell.is-narrow .st-tab span { display: none; }
.st-pane { height: 100%; overflow: auto; padding-right: 4px; }
.st-page-head, .st-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
  background: hsl(var(--background)); padding-bottom: 10px;
}
.st-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.st-work.is-collapsed { grid-template-columns: minmax(0, 1fr) 44px; }
.st-work.is-collapsed [data-ai-body] { display: none; }
.st-ai, .st-work-main { min-width: 0; }
.st-ai { border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 12px; background: hsl(var(--card)); }
.st-chip {
  display: inline-flex; align-items: center; margin: 0 6px 0 0; padding: 2px 8px;
  border-radius: 999px; border: 1px solid hsl(var(--border)); font-size: 12px;
}
.st-chip.is-good { color: hsl(var(--foreground)); }
.st-tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.st-drop {
  border: 1px dashed hsl(var(--border)); border-radius: 14px; padding: 28px; margin-top: 12px;
}
.st-canvas { position: relative; min-height: 560px; border: 1px solid hsl(var(--border)); border-radius: 14px; margin-top: 12px; overflow: auto; }
.st-canvas-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-canvas-lines path { fill: none; stroke: hsl(var(--muted-foreground)); stroke-width: 1.5; }
.st-node {
  position: absolute; width: 180px; padding: 8px; border-radius: 12px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
}
.st-node header { font-size: 12px; font-weight: 600; cursor: grab; margin-bottom: 6px; }
.st-node textarea, .st-node input, .st-node select { width: 100%; font-size: 12px; }
.st-phone {
  border: 1px solid hsl(var(--border)); border-radius: 18px; padding: 16px; min-height: 140px;
  font-size: 13px; line-height: 1.45; white-space: pre-wrap;
}
.st-bar-row { display: grid; grid-template-columns: 8rem 1fr auto; gap: 8px; align-items: center; font-size: 12px; margin-top: 6px; }
.st-spark { width: 160px; height: 32px; }
.st-spark polyline { fill: none; stroke: hsl(var(--foreground)); stroke-width: 1.5; }
.st-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: hsl(var(--foreground)); color: hsl(var(--background));
  border-radius: 999px; padding: 8px 14px; font-size: 13px; z-index: 50;
}
.st-modal { position: fixed; inset: 0; background: hsl(240 10% 3.9% / 0.4); display: grid; place-items: center; z-index: 60; }
.st-dialog { width: min(420px, calc(100% - 32px)); }
.st-skel-row { height: 14px; border-radius: 7px; background: hsl(var(--muted)); margin: 8px 0; }
.st-code { font-size: 12px; overflow: auto; padding: 12px; border-radius: 12px; background: hsl(var(--muted)); }
@media (max-width: 960px) {
  .st-work, .st-work.is-collapsed { grid-template-columns: 1fr; }
  body.room-marketing #marketing-room { overflow: auto; }
}

.aud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 4px 0 12px; }
.aud-back { display: block; border: 0; background: none; padding: 0; margin: 0 0 6px; color: hsl(var(--muted-foreground)); font-size: 12px; cursor: pointer; }
.aud-back:hover { color: hsl(var(--foreground)); }
.aud-name { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.aud-sentence { margin: 4px 0 0; max-width: 42rem; color: hsl(var(--muted-foreground)); font-size: 13px; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.aud-chip { font-size: 12px; color: hsl(var(--muted-foreground)); }
.aud-chip b { color: hsl(var(--foreground)); font-weight: 600; font-variant-numeric: tabular-nums; }
.aud-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.aud-more { position: relative; }
.aud-icon { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: transparent; color: inherit; font-size: 13px; cursor: pointer; }
.aud-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; min-width: 160px; padding: 4px; background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: 10px; box-shadow: 0 8px 24px hsl(240 10% 3.9% / 0.12); }
.aud-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.aud-menu button:hover { background: hsl(var(--muted)); }
.aud-tabs { display: flex; gap: 2px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 14px; }
.aud-tab { flex: none; border: 0; background: transparent; color: hsl(var(--muted-foreground)); padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.aud-tab.is-on { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--foreground)); }
.aud-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.aud-main { min-width: 0; }
.aud-body.is-collapsed { grid-template-columns: minmax(0, 1fr); }
.aud-body.is-collapsed .aud-ai { display: none; }
.aud-ai { position: sticky; top: 8px; padding-left: 20px; border-left: 1px solid hsl(var(--border)); }
.aud-ai-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.aud-hint { margin: 6px 0 10px; font-size: 12px; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.aud-compose { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.aud-compose textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--background)); color: inherit; padding: 8px 10px; font: inherit; font-size: 13px; }
.aud-suggest { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: hsl(var(--foreground)); cursor: pointer; }
.aud-diff { margin-bottom: 14px; }
.aud-diff > p { margin: 0 0 4px; font-size: 13px; }
.aud-diff-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.aud-text { border: 0; background: none; padding: 0; color: hsl(var(--muted-foreground)); font-size: 13px; cursor: pointer; }
.aud-text:hover { color: hsl(var(--foreground)); }
.aud-find { margin-bottom: 10px; }
.aud-find .st-field { width: min(280px, 100%); height: 32px; border-radius: 8px; }
.aud-bulk { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 8px; border-radius: 8px; background: hsl(var(--muted)); font-size: 13px; }
.aud-bulk .st-field { width: 140px; height: 28px; }
.aud-bulk button { border: 0; background: hsl(var(--background)); color: inherit; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.aud-table th { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.aud-table td, .aud-table th { padding: 8px 10px; }
@media (max-width: 1100px) {
  .aud-body { grid-template-columns: 1fr; }
  .aud-ai { border-left: 0; padding-left: 0; border-top: 1px solid hsl(var(--border)); padding-top: 16px; }
}

.lv-gates { display: flex; gap: 8px; margin: 12px 0; }
.lv-gate { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: hsl(var(--muted-foreground)); font-size: 13px; cursor: pointer; padding: 0; }
.lv-gate.is-done { color: hsl(var(--foreground)); }
.lv-mark { width: 16px; height: 16px; border-radius: 50%; border: 1px solid hsl(var(--border)); display: inline-grid; place-items: center; font-size: 10px; }
.lv-gate.is-done .lv-mark { border-color: hsl(var(--foreground)); }
.lv-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); }
.lv-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; }
.lv-title { margin: 8px 0 4px; font-size: 18px; font-weight: 600; }
.lv-remain { margin: 0; color: hsl(var(--muted-foreground)); font-size: 13px; }
.lv-actions { display: flex; gap: 8px; margin-top: 12px; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--foreground)); flex: none; }
.lv-dot.is-calm { background: hsl(var(--muted-foreground)); }
.lv-panel.is-preparing .lv-dot, .lv-panel.is-sending .lv-dot { animation: lv-pulse 1.2s ease infinite; }
.lv-panel.is-failed .lv-dot, .lv-panel.is-partly_failed .lv-dot { background: hsl(0 72% 46%); }
.lv-bar { display: flex; height: 8px; margin-top: 12px; border-radius: 99px; overflow: hidden; background: hsl(var(--muted)); }
.lv-bar i { display: block; height: 100%; width: 0; transition: width 0.6s ease; }
.lv-bar [data-sent] { background: hsl(var(--foreground)); }
.lv-bar [data-failed] { background: hsl(0 72% 46%); }
.lv-bar [data-queued] { background: hsl(var(--border)); }
.lv-stats { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 14px; }
.lv-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 600; }
.lv-stats span { color: hsl(var(--muted-foreground)); font-size: 12px; }
.lv-feed { list-style: none; margin: 14px 0 0; padding: 0; }
.lv-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid hsl(var(--border)); font-size: 13px; }
.lv-row.is-new { animation: lv-in 0.35s ease; }
.lv-chip { font-size: 12px; }
.lv-chip.is-ok { color: hsl(152 45% 32%); }
.lv-chip.is-bad { color: hsl(0 72% 42%); }
.lv-chan, .lv-err { color: hsl(var(--muted-foreground)); font-size: 12px; }
.lv-end { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.lv-end.is-bad { color: hsl(0 72% 42%); }
.lv-check { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; }
.lv-check::after { content: ""; width: 4px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); margin-top: -2px; animation: lv-draw 0.35s ease forwards; }
@keyframes lv-pulse { 50% { opacity: 0.35; } }
@keyframes lv-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes lv-draw { to { transform: rotate(45deg) scale(1); } }
@keyframes lv-slide { from { transform: translateX(-120%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) {
  .lv-dot, .lv-row.is-new, .lv-check::after, .imp-read i { animation: none; }
  .lv-bar i { transition: none; }
  .lv-check::after { transform: rotate(45deg) scale(1); }
}

.imp-drop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; padding: 28px; border: 1px dashed hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); color: inherit; cursor: pointer; }
.imp-drop.is-hot { border-color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.imp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.imp-mark { width: 28px; height: 28px; color: hsl(var(--muted-foreground)); }
.imp-title { font-size: 15px; font-weight: 600; }
.imp-choose { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 13px; font-weight: 600; }
.imp-limits, .imp-error { font-size: 12px; color: hsl(var(--muted-foreground)); }
.imp-error { color: hsl(0 72% 42%); }
.imp-file { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.imp-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; font-size: 13px; }
.imp-chip span { color: hsl(var(--muted-foreground)); }
.imp-chip button { margin-left: auto; border: 0; background: none; color: hsl(var(--muted-foreground)); font-size: 13px; cursor: pointer; }
.ask { display: flex; flex-direction: column; gap: 10px; }
.ask-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chip { border: 1px solid hsl(var(--border)); background: transparent; color: inherit; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; text-align: left; }
.ask-chip:hover { background: hsl(var(--accent)); }
.ask-form { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ask-form textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--background)); color: inherit; padding: 8px 10px; font: inherit; font-size: 13px; }
.ask-result { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid hsl(var(--border)); font-size: 13px; line-height: 1.45; }
.ask-counts { font-size: 12px; color: hsl(var(--muted-foreground)); }
.ask-actions { display: flex; gap: 8px; align-items: center; }
.ask-text { border: 0; background: none; padding: 0; color: hsl(var(--muted-foreground)); font-size: 12px; cursor: pointer; text-align: left; }
.ask-text:hover { color: hsl(var(--foreground)); }
.ask-dock { margin-top: 16px; }
.ap-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-mode { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); color: inherit; cursor: pointer; }
.ap-mode strong { font-size: 14px; }
.ap-mode span { font-size: 12px; line-height: 1.45; color: hsl(var(--muted-foreground)); }
.ap-mode.is-on { border-color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.ap-guards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ap-guard { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ap-guard em { font-style: normal; color: hsl(var(--muted-foreground)); }
.ap-timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.ap-timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid hsl(var(--border)); font-size: 13px; }
.ap-timeline b { font-weight: 600; }
.ap-timeline em { font-style: normal; font-size: 12px; color: hsl(var(--muted-foreground)); }
@media (max-width: 960px) { .ap-modes, .ap-guards { grid-template-columns: 1fr; } }
.lib-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.lib-tabs button { border: 0; background: transparent; color: hsl(var(--muted-foreground)); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.lib-tabs button.is-on { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.lib-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lib-tools .st-field { max-width: 280px; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lib-chip { border: 1px solid hsl(var(--border)); background: transparent; color: inherit; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.lib-chip.is-on { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.lib-heading { font-size: 13px; font-weight: 600; margin: 18px 0 10px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lib-card { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); color: inherit; cursor: pointer; }
.lib-card:hover { border-color: hsl(var(--foreground)); }
.lib-card.is-static { cursor: default; }
.lib-card h3 { font-size: 14px; font-weight: 600; }
.lib-card-body { display: flex; flex-direction: column; gap: 4px; }
.lib-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lib-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: hsl(var(--accent)); color: hsl(var(--muted-foreground)); }
.lib-badge.is-good { background: hsl(152 45% 90%); color: hsl(152 45% 25%); }
.lib-badge.is-warn { background: hsl(38 90% 90%); color: hsl(32 80% 28%); }
.lib-phone { background: hsl(var(--muted)); border-radius: 12px; padding: 14px; min-height: 72px; display: flex; align-items: flex-end; }
.lib-bubble { background: hsl(var(--foreground)); color: hsl(var(--background)); border-radius: 12px 12px 12px 4px; padding: 8px 10px; font-size: 12px; line-height: 1.4; max-width: 92%; }
.lib-mail { display: flex; flex-direction: column; gap: 6px; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 12px; min-height: 72px; }
.lib-mail b { font-size: 13px; }
.lib-mail span { font-size: 12px; color: hsl(var(--muted-foreground)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lib-mail em { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: hsl(var(--foreground)); border-radius: 6px; padding: 4px 8px; }
.lib-brand { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 14px; margin-bottom: 16px; }
.lib-brand-sample .lib-mail { min-height: 120px; }
.lib-brand [data-brand-form] { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lib-brand [data-brand-form][hidden] { display: none; }
.lib-view { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.lib-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lib-form { display: flex; flex-direction: column; gap: 10px; }
.lib-form [hidden] { display: none; }
.lib-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lib-layout { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.lib-layout b { font-size: 13px; }
.lib-layout span { font-size: 11px; color: hsl(var(--muted-foreground)); }
.lib-layout.is-on { border-color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.lib-cta { display: flex; gap: 8px; }
.lib-cta .st-field { flex: 1; }
.lib-preview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.lib-inbox { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; }
.lib-inbox b { font-size: 12px; }
.lib-inbox span { font-size: 13px; font-weight: 600; }
.lib-inbox em { font-style: normal; font-size: 12px; color: hsl(var(--muted-foreground)); }
.lib-toggles { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lib-toggles button { border: 1px solid hsl(var(--border)); background: transparent; color: inherit; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.lib-toggles button.is-on { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.lib-stage { display: flex; gap: 12px; align-items: flex-start; }
.lib-device { width: 200px; flex-shrink: 0; background: hsl(var(--muted)); border-radius: 18px; padding: 16px 12px; min-height: 180px; }
.lib-frame-wrap { flex: 1; min-width: 0; border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.lib-frame-wrap.is-phone { max-width: 390px; }
.lib-frame { width: 100%; height: 460px; border: 0; background: #fff; }
.lib-finding { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin-top: 6px; }
.lib-finding.is-fail { background: hsl(0 72% 95%); color: hsl(0 72% 32%); }
.lib-finding.is-warn { background: hsl(38 90% 94%); color: hsl(32 80% 28%); }
.lib-finding button { border: 0; background: hsl(var(--foreground)); color: hsl(var(--background)); border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; }
.lib-pass { font-size: 12px; color: hsl(152 45% 28%); }
.lib-tokens { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.lib-modal { position: fixed; inset: 0; background: hsl(0 0% 0% / 0.4); display: grid; place-items: center; z-index: 40; }
.lib-dialog { width: min(420px, calc(100% - 32px)); max-height: 70vh; overflow: auto; background: hsl(var(--card)); color: inherit; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lib-dialog h3 { font-size: 15px; }
.lib-choices { display: flex; flex-direction: column; gap: 4px; }
.lib-from { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.st-meta.is-bad { color: hsl(0 72% 42%); }
@media (max-width: 960px) {
  .lib-brand, .lib-view, .lib-editor { grid-template-columns: 1fr; }
  .lib-stage { flex-direction: column; }
  .lib-preview { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-card, .lib-chip, .lib-layout { transition: none; }
}
.imp-read { position: relative; height: 4px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; }
.imp-read i { position: absolute; left: 0; top: 0; height: 100%; width: 40%; background: hsl(var(--foreground)); animation: lv-slide 1.1s ease infinite; }
.imp-read span { position: absolute; left: 0; top: 10px; font-size: 12px; color: hsl(var(--muted-foreground)); }

#lv-panel, #lv-split { display: none; }
#lv-panel[hidden], #lv-split[hidden] { display: none !important; }
/* Live campaign panel beside Ask */
body.ask-live.room-ask #ask-room {
  display: grid;
  grid-template-columns: minmax(360px, var(--live-chat, 1fr)) 8px minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
}
body.ask-live #chat-area,
body.ask-live #input-bar-wrapper,
body.ask-live #lv-panel { min-width: 0; min-height: 0; }
body.ask-live #chat-area { grid-column: 1; grid-row: 1; }
body.ask-live #input-bar-wrapper { grid-column: 1; grid-row: 2; }
body.ask-live #lv-split { display: block; grid-column: 2; grid-row: 1 / span 2; cursor: col-resize; background: hsl(var(--border)); }
body.ask-live #lv-panel {
  grid-column: 3; grid-row: 1 / span 2;
  display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 12px;
  overflow: hidden;
}
body.ask-live.ask-live-stack #ask-room {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(180px, var(--live-chat, 1fr)) auto 8px minmax(240px, 1fr);
}
body.ask-live.ask-live-stack #chat-area { grid-row: 1; grid-column: 1; }
body.ask-live.ask-live-stack #input-bar-wrapper { grid-row: 2; grid-column: 1; }
body.ask-live.ask-live-stack #lv-split { grid-row: 3; grid-column: 1; cursor: row-resize; }
body.ask-live.ask-live-stack #lv-panel { grid-row: 4; grid-column: 1; border-left: 0; border-top: 1px solid hsl(var(--border)); }
body.ask-live.ask-live-rail #ask-room { grid-template-columns: minmax(0, 1fr) 0 44px; }
body.ask-live.ask-live-rail #lv-panel .lv-body,
body.ask-live.ask-live-rail #lv-panel .lv-foot,
body.ask-live.ask-live-rail #lv-panel .lv-steps,
body.ask-live.ask-live-rail #lv-panel .lv-sub,
body.ask-live.ask-live-rail #lv-panel .lv-progress,
body.ask-live.ask-live-rail #lv-panel .lv-progress-label,
body.ask-live.ask-live-rail #lv-panel .lv-title-row .lv-name,
body.ask-live.ask-live-rail #lv-panel .lv-pill { display: none; }
body.ask-live.ask-live-rail #lv-panel { padding: 8px 4px; }
body.ask-live.ask-live-narrow #ask-room {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
body.ask-live.ask-live-narrow #lv-tabs { display: flex; grid-column: 1; grid-row: 1; }
body.ask-live.ask-live-narrow #chat-area { grid-column: 1; grid-row: 2; }
body.ask-live.ask-live-narrow #input-bar-wrapper { grid-column: 1; grid-row: 3; }
body.ask-live.ask-live-narrow #lv-split { display: none; }
body.ask-live.ask-live-narrow #lv-panel { grid-column: 1; grid-row: 2 / span 2; border-left: 0; }
body.ask-live.ask-live-narrow:not(.is-tab-campaign) #lv-panel { display: none; }
body.ask-live.ask-live-narrow.is-tab-campaign #chat-area,
body.ask-live.ask-live-narrow.is-tab-campaign #input-bar-wrapper { display: none; }
#lv-tabs { display: none; gap: 8px; padding: 8px 12px; border-bottom: 1px solid hsl(var(--border)); }
#lv-tabs button { flex: 1; min-height: 36px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: transparent; }
#lv-tabs button.is-on { background: hsl(var(--accent)); }
#lv-tabs i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: hsl(var(--primary)); margin-left: 4px; }
.lv-head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.lv-title-row, .lv-steps, .lv-foot, .lv-reach, .lv-predict, .lv-launch-actions { display: flex; gap: 8px; align-items: center; }
.lv-title-row { min-width: 0; flex-wrap: wrap; }
.lv-name { flex: 1 1 160px; min-width: 140px; border: 0; background: transparent; font: inherit; font-weight: 650; font-size: 16px; color: inherit; text-overflow: ellipsis; }
.lv-title-row .j-btn { flex: 0 0 auto; }
.lv-head-actions { display: inline-flex; gap: 2px; flex: 0 0 auto; margin-left: auto; }
.lv-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: hsl(var(--muted-foreground)); cursor: pointer; transition: background .12s ease, color .12s ease;
}
.lv-icon:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.lv-icon.is-active { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.lv-icon:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.lv-sub { margin: 0; font-size: 12.5px; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-sub:empty { display: none; }
.lv-steps { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; gap: 4px; }
.lv-progress { height: 4px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; }
.lv-progress-fill { display: block; height: 100%; border-radius: 99px; background: hsl(var(--foreground)); transition: width .3s ease; }
.lv-progress-label { margin: 0; font-size: 11px; }
.lv-add { display: flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; }
.lv-add .lv-input { width: 100%; box-sizing: border-box; }
.lv-step {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; box-sizing: border-box;
  padding: 0 10px 0 5px;
  border: 1px solid transparent; border-radius: 99px; background: transparent;
  color: hsl(var(--muted-foreground)); font-size: 12px; white-space: nowrap; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.lv-step:hover:not(:disabled) { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.lv-step:disabled { opacity: .5; cursor: default; }
.lv-step.is-on { color: hsl(var(--foreground)); font-weight: 650; border-color: hsl(var(--border)); background: hsl(var(--background)); }
.lv-step.is-done { color: hsl(152 42% 34%); }
.lv-step-dot { width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 10px; flex: 0 0 auto; }
.lv-step.is-on .lv-step-dot { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }
.lv-step.is-done .lv-step-dot { background: hsl(152 42% 34%); color: #fff; border-color: hsl(152 42% 34%); }
.lv-rail-dots button.is-done { background: hsl(152 42% 34%); }
.lv-body, #chat-area { scrollbar-gutter: stable; }
.lv-body { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.lv-count { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-sentence, .lv-diff, .lv-finding, .lv-warn { font-size: 13px; overflow-wrap: anywhere; }
.lv-reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-reach-item, .lv-predict div { min-width: 0; padding: 8px; border: 1px solid hsl(var(--border)); border-radius: 12px; }
.lv-reach-item span, .lv-predict div span { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }
.lv-sample { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lv-sample li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; font-size: 13px; }
.lv-sample li span, .lv-template strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lv-carousel { display: flex; gap: 8px; overflow-x: auto; scrollbar-gutter: stable; }
.lv-template, .lv-channel, .lv-opt, .lv-input {
  border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--background)); color: inherit;
}
.lv-template { min-width: 180px; text-align: left; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.lv-template.is-on, .lv-opt.is-on, .lv-channel.is-on { border-color: hsl(var(--ring)); background: hsl(var(--accent)); }
.lv-template em, .lv-channel em, .lv-channel small { font-style: normal; color: hsl(var(--muted-foreground)); font-size: 12px; overflow-wrap: anywhere; }
.lv-channels, .lv-schedule, .lv-form { display: flex; flex-direction: column; gap: 8px; }
.lv-channel { display: flex; gap: 8px; align-items: flex-start; padding: 8px; }
.lv-opt, .lv-input { padding: 8px 12px; text-align: left; }
.lv-opt.is-on { border-color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
.lv-submit {
  align-self: flex-start; margin-top: 8px; padding: 10px 18px; min-height: 40px;
  border: 0; border-radius: 10px; font-weight: 600; text-align: center; cursor: pointer;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  box-shadow: 0 1px 2px hsl(0 0% 0% / .12);
}
.lv-submit:hover:not(:disabled) { opacity: .9; }
.lv-submit:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.lv-submit:disabled { opacity: .45; cursor: not-allowed; }
.lv-form { margin-top: 8px; max-width: 36rem; }
.lv-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lv-q legend { font-size: 14px; font-weight: 650; }
.lv-head, .lv-foot { scrollbar-gutter: stable; }
.lv-foot {
  justify-content: flex-end; align-items: center; min-height: 44px;
  border-top: 1px solid hsl(var(--border)); padding-top: 8px;
}
#lv-panel { container-type: inline-size; container-name: lvpanel; }
.st-shell.is-embedded { display: block; height: auto; }
.st-shell.is-embedded .st-pane { height: auto; overflow: visible; padding-right: 0; }
@container lvpanel (max-width: 760px) {
  .st-work, .st-work.is-collapsed, .aud-body { grid-template-columns: minmax(0, 1fr); }
  .st-steps { overflow-x: auto; flex-wrap: nowrap; }
  .aud-top { flex-direction: column; align-items: stretch; }
}
.lv-body.is-changed { animation: lv-glow 1.2s ease; }
.lv-working { margin-right: auto; font-size: 12px; color: hsl(var(--muted-foreground)); }
.lv-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: hsl(var(--muted)); white-space: nowrap; }
.lv-by { font-size: 11px; color: hsl(var(--muted-foreground)); }
.lv-predict { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lv-bar { display: grid; grid-template-columns: 88px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.lv-bar i { display: block; height: 8px; border-radius: 99px; background: hsl(var(--foreground)); }
.lv-history { max-height: 160px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.lv-hist { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.lv-skel { height: 120px; border-radius: 12px; background: hsl(var(--muted)); }
.lv-rail-dots { display: none; flex-direction: column; gap: 8px; align-items: center; }
body.ask-live-rail .lv-rail-dots { display: flex; }
.lv-rail-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: hsl(var(--border)); }
.lv-rail-dots button.is-on { background: hsl(var(--foreground)); }
/* Message review card */
.lv-review { display: flex; flex-direction: column; gap: 12px; }
.lv-review.is-approved { border-color: hsl(152 42% 34% / .5); }
.lv-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-rv-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.lv-rv-status.wait { background: hsl(38 92% 50% / .15); color: hsl(32 70% 38%); }
.lv-rv-status.ok { background: hsl(152 42% 34% / .15); color: hsl(152 42% 30%); }
.lv-rv-step { display: flex; flex-direction: column; gap: 6px; }
.lv-rv-tag { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: hsl(var(--muted-foreground)); }
.lv-phone { display: flex; }
.lv-sms-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  background: hsl(var(--muted)); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap;
}
.lv-email { border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; }
.lv-email-subj { margin: 0; padding: 8px 12px; font-weight: 650; font-size: 13.5px; background: hsl(var(--muted) / .5); border-bottom: 1px solid hsl(var(--border)); }
.lv-email-body { padding: 10px 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lv-rv-plain { padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-chip { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.lv-chip.warn, .lv-chip.warning { background: hsl(38 92% 50% / .15); color: hsl(32 70% 36%); }
.lv-chip.error, .lv-chip.block { background: hsl(0 72% 51% / .15); color: hsl(0 65% 44%); }
.lv-rv-hint { margin: 0; }
.lv-rv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-review .j-primary {
  height: 32px; padding: 0 16px; border-radius: 99px; border: 0; cursor: pointer;
  background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 12.5px; font-weight: 600;
}
#lv-panel .j-btn,
#lv-panel .lv-review .j-primary,
#lv-panel .aud-icon,
#lv-panel .st-chan {
  box-sizing: border-box;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#lv-panel .ask,
#lv-panel .ask-dock,
#lv-panel .aud-ai { display: none !important; }
#lv-panel .st-actions,
#lv-panel .lv-rv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#lv-panel .st-actions .is-main:last-child { margin-left: auto; }
.st-shell.is-embedded .st-work { grid-template-columns: minmax(0, 1fr); }
.st-shell.is-embedded .st-ai { border: 0; padding: 0; background: transparent; }
.st-shell.is-embedded .st-canvas { min-height: 240px; }
.st-shell.is-embedded .aud-top { flex-direction: row; align-items: center; }
.st-shell.is-embedded .aud-tools { margin-left: auto; align-items: center; }
.lv-embed { display: flex; flex-direction: column; gap: 12px; }
.lv-embed-preview {
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 12px 14px;
  background: hsl(var(--background));
}
.lv-embed-preview .st-phone {
  max-width: 320px;
  margin-top: 8px;
  border-radius: 18px;
  background: hsl(var(--muted));
}
.lv-device {
  width: min(280px, 100%);
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 32px;
  background: #1c1c1e;
  box-shadow: 0 18px 40px hsl(0 0% 0% / .28), inset 0 0 0 1px hsl(0 0% 100% / .08);
}
.lv-device-bar {
  display: flex; align-items: center; justify-content: space-between;
  color: hsl(0 0% 100% / .72); font-size: 11px; font-weight: 600; padding: 2px 10px 8px;
}
.lv-device-island { width: 68px; height: 16px; border-radius: 99px; background: #000; }
.lv-device-screen {
  min-height: 230px; border-radius: 24px; padding: 14px 12px;
  background: linear-gradient(180deg, #f7f8fa 0%, #e7edf3 100%);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.lv-device-who { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.lv-device .lv-sms-bubble {
  align-self: flex-start; max-width: 92%; margin: 0;
  background: #0a84ff; color: #fff;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 6px 16px hsl(210 90% 40% / .25);
}
.lv-device .lv-sms-bubble.is-in { animation: lv-bubble-in .42s cubic-bezier(.2, .8, .2, 1); }
.lv-typing { display: inline-flex; gap: 4px; width: fit-content; padding: 10px 12px; border-radius: 14px; background: #fff; }
.lv-typing i {
  width: 6px; height: 6px; border-radius: 99px; background: #9aa3ad;
  animation: lv-dot 1.05s ease-in-out infinite;
}
.lv-typing i:nth-child(2) { animation-delay: .15s; }
.lv-typing i:nth-child(3) { animation-delay: .3s; }
.lv-sms-bubble[hidden], .lv-typing[hidden] { display: none !important; }
.lv-lib-wrap { display: flex; flex-direction: column; gap: 8px; }
.lv-lib-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-lib-head .st-field { width: min(180px, 46%); height: 32px; }
.lv-lib { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.lv-lib-card {
  flex: 0 0 168px; scroll-snap-align: start; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid hsl(var(--border)); border-radius: 14px;
  background: hsl(var(--card)); color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.lv-lib-card:hover { border-color: hsl(var(--foreground)); transform: translateY(-2px); }
.lv-lib-card b { font-size: 12px; font-weight: 650; line-height: 1.3; }
.lv-lib-mini {
  min-height: 52px; padding: 8px; border-radius: 10px; background: hsl(var(--muted));
  font-size: 11px; line-height: 1.35; color: hsl(var(--muted-foreground));
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
@keyframes lv-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes lv-dot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.lv-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.lv-when { display: flex; flex-direction: column; gap: 14px; }
.lv-clock { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lv-clock-face {
  width: 148px; height: 148px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 42%, #34363c, #141518 72%);
  box-shadow: inset 0 0 0 8px #0c0d10, 0 16px 36px hsl(0 0% 0% / .28);
}
.lv-clock-hand, .lv-clock-sec {
  position: absolute; left: 50%; bottom: 50%; transform-origin: bottom center; border-radius: 2px;
}
.lv-clock-hand {
  width: 3px; height: 32%; background: #fff; margin-left: -1.5px;
  transform: rotate(calc(var(--lv-hour, 9) * 30deg));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.lv-clock-sec {
  width: 1px; height: 38%; background: hsl(210 90% 62%); margin-left: -0.5px;
  animation: lv-spin 12s linear infinite;
}
.lv-clock-cap {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: #fff;
}
.lv-clock p { margin: 0; font-size: 13px; font-weight: 600; }
.lv-when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-when-card {
  text-align: left; cursor: pointer; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); color: inherit; border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
  animation: lv-bubble-in .4s both;
}
.lv-when-card:nth-child(2) { animation-delay: 50ms; }
.lv-when-card:nth-child(3) { animation-delay: 100ms; }
.lv-when-card:nth-child(4) { animation-delay: 150ms; }
.lv-when-card b { font-size: 14px; }
.lv-when-card span { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
.lv-when-card.is-on { border-color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
.lv-when-time, .lv-freq, .lv-alarm-mail { display: flex; flex-direction: column; gap: 6px; }
.lv-freq[hidden] { display: none; }
.lv-alarms { display: flex; flex-direction: column; gap: 12px; }
.lv-alarm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-alarm {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 14px; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); cursor: pointer; animation: lv-bubble-in .4s both;
}
.lv-alarm-input { position: absolute; opacity: 0; pointer-events: none; }
.lv-alarm-ring {
  width: 14px; height: 14px; margin-top: 2px; flex: none; border-radius: 50%;
  border: 2px solid hsl(var(--border));
}
.lv-alarm-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-alarm-copy b { font-size: 13px; }
.lv-alarm-copy small { font-size: 11px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
.lv-alarm:has(input:checked) { border-color: hsl(38 92% 50%); }
.lv-alarm:has(input:checked) .lv-alarm-ring {
  border-color: hsl(38 92% 50%); background: hsl(38 92% 50%);
  box-shadow: 0 0 0 0 hsl(38 92% 50% / .55);
  animation: lv-alarm-pulse 1.6s ease-out infinite;
}
.lv-launch, .lv-launch-hero { display: flex; flex-direction: column; gap: 12px; }
.lv-launch-hero {
  padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 16px;
  background: hsl(var(--card));
}
.lv-launch-goal { margin: 0; font-size: 15px; font-weight: 600; }
.lv-launch-stats, .lv-reach-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-stat {
  padding: 12px; border-radius: 14px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); animation: lv-bubble-in .45s both;
}
.lv-stat b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lv-stat span, .lv-launch-when { color: hsl(var(--muted-foreground)); font-size: 12px; }
.lv-launch-when { margin: 0; }
#lv-panel .lv-launch-bar { justify-content: space-between; }
#lv-panel .lv-launch-bar .j-btn.is-main { height: 40px; padding: 0 18px; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@keyframes lv-alarm-pulse {
  0% { box-shadow: 0 0 0 0 hsl(38 92% 50% / .45); }
  100% { box-shadow: 0 0 0 8px hsl(38 92% 50% / 0); }
}
.lv-review .j-primary:hover { opacity: .9; }
.lv-review .j-primary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.lv-approved { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: hsl(152 42% 30%); }
.lib-device, .lib-frame-wrap { min-height: 220px; }
@keyframes lv-glow {
  0% { box-shadow: inset 0 0 0 2px hsl(var(--foreground)); }
  100% { box-shadow: inset 0 0 0 0 hsl(var(--foreground)); }
}
.lv-brief { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px; }
.lv-brief .st-title { margin: 0; animation: lv-bubble-in .4s both; }
.lv-brief-metric {
  margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15;
  animation: lv-bubble-in .45s .06s both;
}
.lv-brief-why { margin: 0; font-size: 14px; line-height: 1.45; color: hsl(var(--muted-foreground)); animation: lv-bubble-in .45s .12s both; }
.lv-brief-offer {
  display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 14px 16px;
  border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--background));
  animation: lv-bubble-in .45s .18s both;
}
.lv-brief-offer span { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.lv-brief-offer b { font-size: 15px; font-weight: 650; }
#lv-panel .aud-top { animation: lv-bubble-in .4s both; }
#lv-panel .aud-chip {
  display: inline-flex; flex-direction: column; gap: 2px; min-width: 88px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); animation: lv-bubble-in .4s both;
}
#lv-panel .aud-chip b { font-size: 18px; letter-spacing: -0.03em; }
#lv-panel .aud-chip:nth-child(2) { animation-delay: 60ms; }
#lv-panel .aud-chip:nth-child(3) { animation-delay: 120ms; }
#lv-panel .aud-tab { transition: color .15s ease, border-color .15s ease; }
#lv-panel .aud-person { animation: lv-bubble-in .35s both; }
@media (prefers-reduced-motion: reduce) {
  .lv-step, .lv-template, .lv-opt, .lv-lib-card { transition: none; }
  .lv-body.is-changed, .lv-device .lv-sms-bubble.is-in, .lv-typing i,
  .lv-when-card, .lv-alarm, .lv-stat, .lv-clock-sec, .lv-alarm-ring,
  .lv-brief .st-title, .lv-brief-metric, .lv-brief-why, .lv-brief-offer,
  #lv-panel .aud-top, #lv-panel .aud-chip, #lv-panel .aud-person { animation: none; }
  .lv-clock-hand, #lv-panel .aud-tab { transition: none; }
}
