.ac-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 64px;
  gap: 32px;
  flex: 1;
}
@media (max-width: 900px) {
  .ac-main { grid-template-columns: 1fr; padding: 16px 20px 48px; gap: 20px; }
}

/* Settings rail */
.ac-rail {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .ac-rail { position: static; } }

.ac-sect { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ac-sect:last-child { border-bottom: 0; }
.ac-sect-h {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.ac-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ac-row:last-child { margin-bottom: 0; }
.ac-row-label { font-size: 12.5px; color: var(--ink-2); }

.ac-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.ac-seg-opt {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  height: 30px;
  cursor: pointer;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-seg-opt:last-child { border-right: 0; }
.ac-seg-opt:hover { background: var(--hover); color: var(--ink); }
.ac-seg-opt.active { background: var(--ink); color: var(--bg); }

.ac-bg-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ac-bg-sw {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  cursor: pointer; padding: 0; position: relative;
}
.ac-bg-sw.active::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--ink);
}
.ac-bg-color {
  width: 26px; height: 22px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/* Position 3x3 grid */
.ac-pos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 90px;
  aspect-ratio: 1 / 1;
}
.ac-pos-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  appearance: none;
  padding: 0;
}
.ac-pos-cell:hover { background: var(--hover); }
.ac-pos-cell.active { background: var(--ink); border-color: var(--ink); }

.ac-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.ac-btn {
  appearance: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ac-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.ac-btn:not([disabled]):hover { opacity: 0.88; }
.ac-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.ac-btn.ghost:not([disabled]):hover { color: var(--ink); background: var(--hover); }

/* Canvas area */
.ac-canvas-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.ac-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, var(--line-2) 11px 12px);
  cursor: pointer;
  min-height: 360px;
  gap: 16px;
}
.ac-empty:hover, .ac-empty.over { border-color: var(--ink); background:
    linear-gradient(var(--hover), var(--hover)),
    repeating-linear-gradient(45deg, transparent 0 11px, var(--line-2) 11px 12px);
}
.ac-empty-title { font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.ac-empty-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ac-empty-hint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.ac-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.ac-status-actions { display: flex; gap: 8px; align-items: center; }

.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.ac-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.ac-card-canvas-wrap {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ac-card-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.ac-card-meta {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.ac-card-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ac-card-dims {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ac-card-dl {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  padding: 4px 8px;
  cursor: pointer;
}
.ac-card-dl:hover { color: var(--ink); border-color: var(--ink); }
.ac-card-x {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}
.ac-card-x:hover { color: var(--ink); }

/* ── SEO sections ──────────────────────────────────────────────── */
.ac-seo {
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.ac-seo-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.ac-seo-section {
  padding: 80px 32px;
  border-bottom: 1px solid var(--line);
}
.ac-seo-section:last-child { border-bottom: 0; }
@media (max-width: 720px) { .ac-seo-section { padding: 56px 20px; } }

.ac-seo-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
  max-width: 880px;
}
.ac-seo-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ac-seo-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}

/* features / use-cases grid */
.ac-seo-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ac-seo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ac-seo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .ac-seo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .ac-seo-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ac-seo-grid.cols-3 { grid-template-columns: 1fr; }
}
.ac-seo-card {
  background: var(--panel);
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}
.ac-seo-card-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.ac-seo-card-h {
  margin: 0;
  font-size: 16.5px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--ink);
}
.ac-seo-card-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* steps */
.ac-seo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ac-seo-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.ac-seo-step:last-child { border-bottom: 1px solid var(--line); }
.ac-seo-step-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}
.ac-seo-step-h {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ink);
}
.ac-seo-step-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .ac-seo-step { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
}

/* specs */
.ac-seo-specs { margin: 0; border-top: 1px solid var(--line); }
.ac-seo-spec-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ac-seo-spec-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.ac-seo-spec-v {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
@media (max-width: 600px) {
  .ac-seo-spec-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}

/* FAQ */
.ac-seo-faq { border-top: 1px solid var(--line); }
.ac-seo-faq-item { border-bottom: 1px solid var(--line); }
.ac-seo-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ac-seo-faq-mark {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 16px;
  width: 18px;
  text-align: center;
}
.ac-seo-faq-a {
  padding: 0 36px 20px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
  text-wrap: pretty;
}

/* CTA */
.ac-seo-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 720px;
}
.ac-seo-cta-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 500;
  text-wrap: balance;
}
.ac-seo-cta-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.ac-seo-cta-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ac-seo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.ac-seo-cta-btn:hover { opacity: 0.88; }
.ac-seo-cta-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.ac-seo-cta-btn.ghost:hover { color: var(--ink); background: var(--hover); }
