.ayc { max-width: 1100px; margin: 0 auto; }
.ayc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 1.25rem;
  align-items: start;
}
.ayc-form {
  background: #fff;
  border: 1px solid var(--ic-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
}
.ayc-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.7rem;
}
.ayc-themes { border: 0; padding: 0; margin: 0 0 0.85rem; }
.ayc-themes legend {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: var(--ic-navy);
}
.ayc-theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}
.ayc-theme {
  aspect-ratio: 3 / 4;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.ayc-theme.is-on { border-color: var(--ic-gold); box-shadow: 0 0 0 1px var(--ic-navy); }
.ayc-theme span {
  display: block;
  width: 100%;
  height: 100%;
}
.ayc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}
.ayc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ic-navy);
  cursor: pointer;
}
.ayc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.55rem;
}
.ayc-save-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 16, 28, 0.72);
}
.ayc-save-card {
  width: min(100%, 22rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.ayc-save-title {
  margin: 0 0 0.35rem;
  color: var(--ic-navy);
  font-weight: 700;
  font-size: 1.1rem;
}
.ayc-save-help {
  margin: 0 0 0.75rem;
  color: var(--ic-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.ayc-save-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--ic-line);
  margin: 0 0 0.85rem;
  -webkit-touch-callout: default;
  user-select: none;
}
.ayc-save-close { width: 100%; }
.ayc-preview-wrap { position: sticky; top: 1rem; }
.ayc-preview-label {
  margin: 0 0 0.45rem;
  color: var(--ic-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ayc-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--ic-line);
  box-shadow: var(--shadow-soft);
  background: #0f1b33;
}
.apv .ayc-form { box-shadow: none; }
.apv .ayc-layout { grid-template-columns: 1fr; }
.apv .ayc-preview-wrap { position: static; }
@media (max-width: 860px) {
  .ayc-layout { grid-template-columns: 1fr; }
  .ayc-preview-wrap { position: static; order: -1; max-width: 22rem; margin: 0 auto; width: 100%; }
  .ayc-theme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
