*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #1b1916;
  --ink-2: #4a453e;
  --muted: #857e73;
  --line: #e8e3da;
  --line-2: #f0ece5;
  --accent: #b4532a;
  --accent-soft: #f6e7df;
  --ok: #2f7d4f;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 25, 22, 0.04), 0 4px 16px rgba(27, 25, 22, 0.05);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}

.i {
  display: inline-flex;
  flex: none;
}

/* ------------------------------------------------------------ shell */

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.side-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
  margin-bottom: 8px;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.brand-chip .meta {
  min-width: 0;
}
.brand-chip .name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-chip .src {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: none;
  border-radius: 10px;
  font-weight: 550;
  font-size: 15px;
  cursor: pointer;
}
.nav-group-head:hover {
  background: var(--line-2);
}
.nav-group-head .chev {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s;
}
.nav-group[data-open="false"] .chev {
  transform: rotate(-90deg);
}
.nav-group[data-open="false"] .nav-items {
  display: none;
}
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 36px;
  border-radius: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-2);
  text-align: left;
  font-size: 14.5px;
}
.nav-item:hover:not(:disabled) {
  background: var(--line-2);
  color: var(--ink);
}
.nav-item.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 550;
}
.nav-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.side-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px;
  line-height: 1.7;
}

.main {
  padding: 40px clamp(16px, 4vw, 48px) 96px;
  min-width: 0;
}
.main-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ------------------------------------------------------------ type */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 34px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------ controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
.btn:hover:not(:disabled) {
  border-color: #d8d1c5;
  background: var(--surface-2);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #34302a;
  border-color: #34302a;
}
.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  color: var(--ink-2);
}
.kbd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  margin-left: 2px;
  font-weight: 500;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field:focus {
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(27, 25, 22, 0.08);
}
.field:focus-visible,
.composer textarea:focus-visible {
  outline: none; /* these draw their own focus state */
}
textarea.field {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ onboarding */

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.option {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.option-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.option h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.option p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.option form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.option-swatches {
  display: flex;
  gap: 6px;
  margin: 4px 0 2px;
}
.option-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.progress-card {
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.step.active {
  color: var(--ink);
  font-weight: 550;
}
.step.active .dot {
  border-color: var(--ink);
}
.step.active .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1s infinite;
}
.step.done {
  color: var(--ink-2);
}
.step.done .dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

/* ------------------------------------------------------------ brand DNA */

.dna {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.dna-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-2);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.avatar.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}
.dna-title {
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.dna-sub {
  font-size: 13px;
  color: var(--muted);
}
.spacer {
  flex: 1;
}
.dna-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dna-cell {
  padding: 16px 20px 18px;
  border-right: 1px solid var(--line-2);
  min-width: 0;
}
.dna-cell:last-child {
  border-right: 0;
}
.dna-products {
  padding: 12px 20px;
  border-top: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.dna-products b {
  color: var(--muted);
  font-weight: 500;
  margin-right: 6px;
}
.cell-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  background: var(--line-2);
  color: var(--muted);
  vertical-align: 1px;
}
.tag-ok {
  background: #e6f2ea;
  color: var(--ok);
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.swatch .c {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
}
.chip.accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.small {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 8px;
}
.small .k {
  color: var(--muted);
}

/* ------------------------------------------------------------ composer */

.composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.composer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.composer-title {
  font-weight: 650;
  font-size: 16px;
}
.seg {
  display: inline-flex;
  background: var(--line-2);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: none;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seg button:hover {
  color: var(--ink);
}
.seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  padding: 6px 2px;
  font-size: 18px;
  line-height: 1.45;
  min-height: 82px;
  background: transparent;
}
.composer textarea::placeholder {
  color: #aaa297;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px;
}
.suggestion {
  border: 1px dashed #d9d2c6;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
}
.suggestion:hover {
  border-style: solid;
  color: var(--ink);
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ results */

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.results-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 0;
}
.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  color: #c4bcb0;
}
.run {
  margin-bottom: 44px;
}
.run-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.run-prompt {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
}
.run-meta {
  font-size: 13px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise 0.25s ease-out;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--line-2);
}
.card-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
}
.card-actions {
  display: flex;
  gap: 2px;
}
.card-body {
  padding: 16px;
}

.media {
  position: relative;
  background: var(--line-2);
}
.media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.skel {
  background: linear-gradient(
    90deg,
    var(--line-2) 0%,
    #f9f6f1 50%,
    var(--line-2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}
.skel-media {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  display: grid;
  place-items: center;
}
.skel-line {
  height: 11px;
  margin: 9px 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.elapsed {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex: none;
}

details.prompt {
  border-top: 1px solid var(--line-2);
  padding: 10px 16px;
  font-size: 13px;
}
details.prompt summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 550;
}
details.prompt p {
  margin: 8px 0 2px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Instagram-style post */
.ig-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px #d62976;
  flex: none;
}
.ig-handle {
  font-weight: 600;
  font-size: 13.5px;
}
.ig-sub {
  font-size: 11.5px;
  color: var(--muted);
}
.ig-bar {
  display: flex;
  gap: 14px;
  padding: 11px 14px 4px;
}
.ig-bar .right {
  margin-left: auto;
}
.ig-caption {
  padding: 4px 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.ig-caption b {
  font-weight: 600;
}
.hashtags {
  color: #00376b;
}

/* Meta-style ad */
.fb-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 8px;
}
.fb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.fb-name {
  font-weight: 600;
  font-size: 14px;
}
.fb-sub {
  font-size: 12px;
  color: var(--muted);
}
.fb-text {
  padding: 0 14px 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.fb-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f2f5;
}
.fb-cta .meta {
  min-width: 0;
  flex: 1;
}
.fb-domain {
  font-size: 11.5px;
  text-transform: uppercase;
  color: #65676b;
  letter-spacing: 0.02em;
}
.fb-headline {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.fb-btn {
  background: #e4e6eb;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.targeting {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 10px;
}
.targeting-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.trow {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
}
.trow .k {
  color: var(--muted);
  padding-top: 3px;
}

/* Script storyboard */
.script-title {
  font-weight: 650;
  font-size: 16.5px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.script-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.scenes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scene {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.scene:first-child {
  border-top: 0;
}
.scene-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.scene-shot {
  font-size: 13.5px;
  font-weight: 550;
}
.scene-vo {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--accent-soft);
  font-style: italic;
}
.scene-dur {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.video-box {
  margin-top: 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.video-box video {
  width: 100%;
  border-radius: 8px;
}

.media-error {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}
.card-error {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}
.card-error .msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ------------------------------------------------------------ gate + toasts */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-card .logo-mark {
  margin: 0 auto 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.gate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 6px;
}
.gate-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.gate-err {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}

#toasts {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: rise 0.2s ease-out;
}
.toast.error {
  background: var(--danger);
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel,
  .spinner,
  .step.active .dot::after,
  .card,
  .toast {
    animation: none;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  .dna-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dna-cell {
    border-bottom: 1px solid var(--line-2);
  }
  .dna-cell:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .nav-group,
  .sidebar .side-foot,
  .sidebar .side-label {
    display: none;
  }
  .sidebar .brand-block {
    margin-left: auto;
    min-width: 0;
  }
  .brand-chip {
    padding: 5px 8px;
  }
  .brand-chip .src {
    display: none;
  }
  .main {
    padding-top: 26px;
  }
}
@media (max-width: 560px) {
  .dna-grid {
    grid-template-columns: 1fr;
  }
  .dna-cell {
    border-right: 0;
  }
  .dna-head {
    flex-wrap: wrap;
  }
  .composer-top .seg {
    width: 100%;
  }
  .composer-foot .btn-lg {
    width: 100%;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
