/* ASCII Art — a hero uploader (after="hide") over a split: the preview card
   (terminal window + before/after rows) on the left, the settings inspector
   on the right (layout from styles/components/form.css + uploader.css). Only
   the title tile, the terminal, the width presets and the custom-ramp field's
   face are the page's own. */

/* Title icon — brand-aligned glass tile. Terminal-green gradient with a soft
   tint shadow + top highlight, matching the glass icons of sibling tools. */
.aa-title-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #30D158, #149A3D);
  box-shadow: 0 2px 6px rgba(20, 154, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Five width presets on one line, all the same width. */
.aa-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}

/* Written input.<class>: the shared form rule input[type="…"] in common.css
   is (0,1,1) and silently beats a bare class. */
input.aa-input--mono { font-family: var(--mono); }

/* ── Terminal-style preview ──────────────────────────────────────────────────
   A fixed-theme terminal window (traffic lights + title bar) independent of
   the page's light/dark scheme — the Theme segment flips .aa-term--light.
   It is the preview card's first row, edge to edge (the row inherits the
   card's top corners). */
.aa-term {
  background: #161618;
}

.aa-term__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: #323236;
}

.aa-term__dots {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.aa-term__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.aa-term__dots i:nth-child(1) { background: #ff5f57; }
.aa-term__dots i:nth-child(2) { background: #febc2e; }
.aa-term__dots i:nth-child(3) { background: #28c840; }

.aa-term__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(235, 235, 245, 0.55);
}

.aa-term__body {
  padding: var(--space-4);
  min-height: 340px;
  max-height: 68vh;
  overflow: auto;
  color: #e8e8ed;
}

.aa-pre {
  margin: 0;
  width: max-content;
  margin-inline: auto; /* center narrow art; fitted art fills the row anyway */
  font-family: var(--mono);
  font-variant-ligatures: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
}

.aa-canvas {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
}

/* Light terminal theme */
.aa-term--light { background: #ffffff; }
.aa-term--light .aa-term__bar { background: #e9e9ee; }
.aa-term--light .aa-term__title { color: rgba(60, 60, 67, 0.55); }
.aa-term--light .aa-term__body { color: #1d1d1f; }


/* Never squeeze a download button below its icon + label: when the pair
   doesn't fit side by side (longer ko/ja labels) the row wraps and each
   button fills its own line instead of clipping the label and the icon. */
.aa-actions > .btn { min-width: max-content; }
