/* ═══════════════════════════════════════════════════════════
   SHOWCASE — poster-style editorial sections + faithful app mocks.
   App-mock values are copied from the real ESpline CSS
   (src/ui/index.html) at --bg-shift: 0 — do not "improve" them.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #f2f1ec;
  --paper-2: #e9e8e2;
  --ink: #0d0d0d;
}

/* ─── POSTER SECTIONS (light, editorial) ─── */
.poster {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.poster .section-label { color: #5f7a00; }

.poster-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
  position: relative;
}

.sticker-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.sticker-title .stick {
  display: inline-block;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.sticker-title .hi {
  display: inline-block;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.swoosh { position: relative; display: inline-block; }

.swoosh::before {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0.02em;
  height: 0.42em;
  background: var(--green);
  z-index: -1;
  transform: skewX(-12deg) rotate(-1deg);
}

.badge-sticker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.35rem 0.8rem;
  transform: rotate(-3deg);
}

.badge-sticker.alt { transform: rotate(2deg); background: #fff; }

.poster-stats { display: flex; flex-direction: column; gap: 1rem; }

.pstat .pstat-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.1rem 0.35rem;
  background: linear-gradient(transparent 35%, var(--green) 35%);
}

.pstat .pstat-v {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: block;
}

.pstat .pstat-s { font-size: 0.75rem; color: #555; display: block; max-width: 260px; }

/* ═══════════════════════════════════════════════════════════
   APP WINDOW MOCK — values from the real app CSS
   ═══════════════════════════════════════════════════════════ */
.app-frame {
  background: #0b0b0b;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(13, 13, 13, 0.35), 0 0 0 2px var(--ink);
  position: relative;
}

.app-window {
  --c: #C5FD04; /* app accent variable — the mocks use it like the app does */
  background: hsl(0 0% 12%);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--sans);
  color: #ddd;
  font-size: 11px;
  user-select: none;
}

/* ── topbar ── */
.aw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: hsl(0 0% 11%);
  border-bottom: 1px solid hsl(0 0% 16%);
}

.aw-topbar-l { display: flex; align-items: center; gap: 10px; }

.aw-ham { display: flex; flex-direction: column; gap: 3px; }
.aw-ham span { width: 13px; height: 1.5px; background: #888; border-radius: 2px; }

.aw-title { font-weight: 600; font-size: 11px; color: #eee; letter-spacing: 0.02em; }

.aw-topbar-r { display: flex; align-items: center; gap: 8px; }

.aw-bridge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 20px;
  padding: 2px 8px;
}

.aw-bridge svg { width: 11px; height: 11px; }

.aw-icon-btn {
  width: 20px; height: 20px;
  border-radius: 4px;
  color: #999;
  display: flex; align-items: center; justify-content: center;
}

.aw-icon-btn svg { width: 13px; height: 13px; }

.aw-body { display: flex; min-height: 320px; }

/* ── sidebar (real theme CSS, all three styles) ── */
.aw-sidebar {
  width: 138px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  background: hsl(0 0% 14.51%);
  border-right: 1px solid hsl(0 0% 21.18%);
}

.aw-sb-node {
  font-family: var(--mono);
  font-size: 8.5px;
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px 8px;
}

.aw-sb-item {
  font-size: 10px;
  cursor: pointer;
  position: relative;
}

/* Printstream (app default) */
.sbm-print .aw-sb-item {
  overflow: hidden;
  background: hsl(0 0% 22.75%);
  color: #888;
  border: 1px solid hsl(0 0% 13.73%);
  border-radius: 2px;
  margin: 3px 6px;
  padding: 8px 12px;
  transition: all 0.25s ease;
}

.sbm-print .aw-sb-item:hover { color: #fff; border-color: #6e6e6e; background: hsl(0 0% 23.53%); transform: translateX(2px); }

.sbm-print .aw-sb-item.on { background: hsl(0 0% 20.39%); color: #fff; border-color: #5a5a5a; }

.sbm-print .aw-sb-item.on::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: #fff;
}

/* Minimal */
.sbm-min .aw-sb-item {
  color: #666;
  padding: 10px 16px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.sbm-min .aw-sb-item:hover { color: #aaa; }
.sbm-min .aw-sb-item.on { color: #fff; border-left-color: #fff; }

/* Accent (the new style — shipped to the app from this design) */
.sbm-accent .aw-sb-item {
  color: #8a8a8a;
  margin: 2px 6px;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background .15s ease, color .15s ease;
}

.sbm-accent .aw-sb-item:hover { color: #ddd; background: rgba(255, 255, 255, .04); }

.sbm-accent .aw-sb-item.on { color: #fff; background: hsl(0 0% 17.65%); }

.sbm-accent .aw-sb-item.on::before {
  content: "";
  position: absolute;
  left: 4px; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 55%, transparent);
}

/* ── editor / canvas ── */
.aw-editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.aw-editor-main { flex: 1; display: flex; min-height: 0; }

.aw-canvas {
  flex: 1.35;
  position: relative;
  margin: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle, hsl(0 0% 18%) 1px, transparent 1px) 0 0 / 24px 24px,
    hsl(0 0% 9.41%);
  min-height: 220px;
  overflow: hidden;
}

.aw-canvas.grid-lines {
  background:
    linear-gradient(hsl(0 0% 15%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, hsl(0 0% 15%) 1px, transparent 1px) 0 0 / 24px 24px,
    hsl(0 0% 9.41%);
}

.aw-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── right rail ── */
.aw-rail {
  flex: 1;
  padding: 10px 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

/* fstamp buttons (SF / EF / stretch) — real icons, real chip look */
.aw-ctrl-row { display: flex; gap: 5px; align-items: center; }

.aw-fstamp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9px;
  color: #ccc;
  background: hsl(0 0% 13.33%);
  border: 1px solid hsl(0 0% 22.75%);
  border-radius: 4px;
  padding: 4px 7px;
  cursor: pointer;
}

.aw-fstamp svg { width: 11px; height: 9px; color: var(--c); }

/* pill sliders — the app's real control sliders:
   dark 18px track, thin 2px accent-line thumb, mono lowercase label */
.pill-row { display: flex; align-items: center; gap: 6px; }

.pill-name {
  font-size: 10px;
  font-weight: 500;
  color: #666;
  width: 46px;
  flex-shrink: 0;
  white-space: nowrap;
  text-transform: lowercase;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Fira Code', monospace;
}

.pill-track {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: hsl(0 0% 9.41%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}

.pill-thumb {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--c);
}

.pill-val {
  font-size: 10px;
  font-weight: 500;
  color: var(--c);
  min-width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Fira Code', monospace;
}

/* preset cards — the app's real WIDE card format:
   mini curve svg left (40×26), name right, accent border when active */
.aw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
  border-top: 1px solid hsl(0 0% 24.31%);
  padding-top: 8px;
}

.aw-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.aw-card:hover { background: rgba(255, 255, 255, .06); }

.aw-card.on { background: rgba(255, 255, 255, .04); border-color: var(--c); }

.aw-card .c-svg { width: 34px; height: 22px; flex-shrink: 0; }
.aw-card .c-svg svg { width: 100%; height: 100%; overflow: visible; display: block; }
.aw-card .c-svg .curve-path { stroke: var(--c); stroke-width: 1.8; }
.aw-card .c-svg .curve-keypoint, .aw-card .c-svg .curve-endpoint { display: none; }

.aw-card .c-name {
  font-size: 9.5px;
  color: #999;
  flex: 1;
  text-align: left;
  letter-spacing: .2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aw-card.on .c-name { color: var(--c); }

/* card scale — the app's 70–160% Card size setting */
.aw-cards { --card-scale: 1; }
.aw-cards .c-svg { width: calc(34px * var(--card-scale, 1)); height: calc(22px * var(--card-scale, 1)); }
.aw-cards .c-name { font-size: calc(9.5px * var(--card-scale, 1)); }

/* SQUARE card format (the app's real square mode) */
.aw-cards.square { grid-template-columns: repeat(auto-fill, minmax(calc(58px * var(--card-scale, 1)), 1fr)) !important; }

.aw-cards.square .aw-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.aw-cards.square .aw-card:hover { background: rgba(255, 255, 255, 0.07); }

.aw-cards.square .aw-card.on { background: rgba(0, 0, 0, 0.3); border-color: var(--c); }

.aw-cards.square .c-svg { width: 100%; height: calc(30px * var(--card-scale, 1)); }

.aw-cards.square .c-name { flex: 0 0 auto; text-align: center; font-size: calc(9px * var(--card-scale, 1)); }

/* layout wireframe demo (sidebar tour: Auto / Side / Bottom) */
.aw-layout-demo {
  display: flex;
  gap: 5px;
  padding: 10px;
  min-height: 120px;
}

.aw-layout-demo .ld-sb {
  width: 26px;
  flex-shrink: 0;
  border-radius: 4px;
  background: hsl(0 0% 16%);
  border: 1px solid hsl(0 0% 22%);
}

.aw-layout-demo .ld-main {
  flex: 1;
  display: flex;
  gap: 5px;
  transition: flex-direction 0s;
}

.aw-layout-demo .ld-canvas {
  flex: 1.4;
  border-radius: 4px;
  background:
    radial-gradient(circle, hsl(0 0% 16%) 1px, transparent 1px) 0 0 / 12px 12px,
    hsl(0 0% 9.41%);
  border: 1px solid hsl(0 0% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 8px;
  color: #555;
  letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 56px;
}

.aw-layout-demo .ld-rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aw-layout-demo .ld-rail span {
  flex: 1;
  border-radius: 4px;
  background: hsl(0 0% 14%);
  border: 1px solid hsl(0 0% 20%);
  min-height: 12px;
}

.aw-layout-demo.layout-bottom .ld-main { flex-direction: column; }
.aw-layout-demo.layout-bottom .ld-rail { flex-direction: row; }

.aw-sett-range { touch-action: none; }

/* ── bottom bar (real) ── */
.aw-botbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: hsl(0 0% 14.51%);
  border-top: 1px solid hsl(0 0% 23.53%);
}

.aw-bargap { flex: 1; }

.aw-mode {
  padding: 6px 8px;
  border: 1px solid hsl(0 0% 22.75%);
  border-radius: 5px;
  color: #888;
  background: hsl(0 0% 16.47%);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.aw-mode svg { width: 13px; height: 13px; }

.aw-mode:hover { color: #bbb; border-color: #484848; background: hsl(0 0% 18.82%); }

.aw-mode.on {
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  background: color-mix(in srgb, var(--c) 7%, transparent);
}

/* Apply — Minimal (the app default): grey, green on hover/done */
.aw-apply {
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
  background: hsl(0 0% 20%);
  border-radius: 6px;
  color: #ccc;
  letter-spacing: .3px;
  border: 1px solid hsl(0 0% 26.67%);
  transition: all .2s cubic-bezier(.22, .9, .25, 1);
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.aw-apply:hover {
  border-color: var(--c);
  color: var(--c);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  transform: translateY(-2px);
}

.aw-apply.done { color: var(--c); border-color: var(--c); }

.aw-heart { color: #666; font-size: 13px; cursor: pointer; transition: color .15s; }
.aw-heart:hover { color: #999; }
.aw-heart.on { color: #e2264d; }

/* ── GLASS theme (real app CSS) ── */
.theme-glass .aw-mode {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .6);
  text-shadow: 0 0 12px rgba(255, 255, 255, .2);
}

.theme-glass .aw-mode:hover {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, .2));
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  box-shadow: 0 4px rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.theme-glass .aw-mode.on {
  border-color: rgba(255, 255, 255, .5);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
}

.theme-glass .aw-apply {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
  text-shadow: 0 0 20px rgba(255, 255, 255, .3);
}

.theme-glass .aw-apply:hover {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .14), rgba(255, 255, 255, .25), rgba(255, 255, 255, .39));
  border-color: rgba(255, 255, 255, .62);
  color: #fff;
  box-shadow: 0 6px rgba(255, 255, 255, .62);
  transform: translateY(-6px);
}

.theme-glass .aw-card {
  background: rgba(255, 255, 255, .068);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  color: rgba(255, 255, 255, .7);
  text-shadow: 0 0 20px rgba(255, 255, 255, .3);
  overflow: hidden;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}

.theme-glass .aw-card:hover {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .14), rgba(255, 255, 255, .25), rgba(255, 255, 255, .39));
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 6px rgba(255, 255, 255, .5);
  transform: translateY(-6px);
}

.theme-glass .aw-card:active {
  transform: translateY(2px);
  box-shadow: none;
  background: rgba(255, 255, 255, .1);
}

.theme-glass .aw-card.on { border-color: var(--c); background: rgba(255, 255, 255, .18); }

/* ── BRUTALIST theme (real app CSS) ── */
.theme-brutalist .aw-mode {
  border: 2.5px solid #555;
  border-radius: 4px;
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 20%);
  transition: .2s;
}

.theme-brutalist .aw-mode:hover {
  transform: translate(-0.25rem, -0.25rem);
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 26.67%);
}

.theme-brutalist .aw-mode.on {
  border-color: var(--c);
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 20%);
  color: var(--c);
  background: transparent;
}

.theme-brutalist .aw-apply {
  border: 2.5px solid #555;
  border-radius: 4px;
  background: hsl(0 0% 10.2%);
  color: #ccc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 20%);
  transition: .2s;
}

.theme-brutalist .aw-apply:hover {
  transform: translate(-0.25rem, -0.25rem);
  box-shadow: 0.25rem 0.25rem 0 var(--c);
  color: var(--c);
  border-color: var(--c);
}

.theme-brutalist .aw-card {
  border: 2.5px solid #555;
  border-radius: 4px;
  background: hsl(0 0% 11.76%);
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 20%);
  transition: .2s;
}

.theme-brutalist .aw-card:hover {
  transform: translate(-0.25rem, -0.25rem);
  box-shadow: 0.25rem 0.25rem 0 hsl(0 0% 26.67%);
  background: hsl(0 0% 14.51%);
}

.theme-brutalist .aw-card.on { border-color: var(--c); }

/* ── toggles / settings rows ── */
.aw-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  border-bottom: 1px solid hsl(0 0% 16%);
  font-size: 10px;
  color: #bbb;
}

.aw-tgl {
  width: 26px; height: 14px;
  border-radius: 14px;
  background: hsl(0 0% 22%);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}

.aw-tgl::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #999;
  transition: all .15s;
}

.aw-tgl.on { background: var(--c); }
.aw-tgl.on::after { left: 14px; background: #0d0d0d; }

.aw-sett-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 2px; }
.aw-sett-label { font-size: 9.5px; color: #999; flex-shrink: 0; }
.aw-sett-opts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }

/* real .sett-opt look */
.aw-opt {
  font-family: var(--sans);
  font-size: 9px;
  color: #999;
  border: 1px solid hsl(0 0% 22%);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all .15s;
}

.aw-opt:hover { color: #ddd; border-color: #555; }

.aw-opt.on { color: #0d0d0d; background: var(--c); border-color: var(--c); font-weight: 700; }

/* settings slider mock — matches the (now fixed) app settings sliders */
.aw-sett-range {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  background: hsl(0 0% 9.41%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}

.aw-sett-range .pill-thumb { width: 2px; }

/* accent swatches — the app's real palette design: rounded squares with a
   hard black offset shadow and dock-style magnify on hover */
.aw-accents { display: flex; align-items: center; padding: 4px 2px; }

.aw-accent {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin: -1px;
  border-radius: 5px;
  border: 2px solid hsl(0 0% 13.33%);
  box-shadow: 2px 2px 0 0 #000;
  cursor: pointer;
  transition: 300ms cubic-bezier(.175, .885, .32, 1.275);
}

.aw-accent:hover { transform: scale(1.4) translateY(-3px); z-index: 99; }
.aw-accent:hover + .aw-accent { transform: scale(1.2) translateY(-2px); z-index: 98; }
.aw-accent:hover + .aw-accent + .aw-accent { transform: scale(1.1); z-index: 97; }
.aw-accent:has(+ .aw-accent:hover) { transform: scale(1.2) translateY(-2px); z-index: 98; }
.aw-accent:has(+ .aw-accent + .aw-accent:hover) { transform: scale(1.1); z-index: 97; }

.aw-accent:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 #000; }

.aw-accent.on { border-color: #fff; transform: scale(1.1); }

/* rainbow = conic of the real per-type curve colors (matches the app exactly) */
.aw-accent.rainbow {
  background: conic-gradient(from 180deg, #e6d633, #7fff00, #00d4ff, #bf5af2, #ff6b6b, #ff9f0a, #e6d633);
}

/* custom picker swatch — conic + dashed border, like the app */
.aw-accent.custom {
  background: conic-gradient(from 0deg, #e11d48, #fb923c, #10b981, #3b82f6, #8b5cf6, #e11d48);
  border: 2px dashed #555;
}

.aw-accent.custom:hover { border-color: #888; }

/* save modal mock */
.aw-modal {
  background: hsl(0 0% 12%);
  border: 1px solid hsl(0 0% 20%);
  border-radius: 10px;
  padding: 14px;
  max-width: 260px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.aw-modal-hdr { font-weight: 600; font-size: 11px; color: #eee; margin-bottom: 10px; }

.aw-modal-label {
  font-family: var(--mono);
  font-size: 8.5px;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.aw-modal-input {
  background: hsl(0 0% 8%);
  border: 1px solid hsl(0 0% 22%);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 10px;
  color: #eee;
  margin-bottom: 12px;
}

.aw-modal-input .caret {
  display: inline-block;
  width: 1px; height: 10px;
  background: var(--c);
  vertical-align: -1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.aw-modal-btns { display: flex; gap: 6px; justify-content: flex-end; }

.aw-modal-btn { font-size: 9.5px; padding: 4px 12px; border-radius: 5px; border: 1px solid hsl(0 0% 24%); color: #aaa; cursor: pointer; }
.aw-modal-btn.save { background: var(--c); border-color: var(--c); color: #0d0d0d; font-weight: 700; }

/* ─── ANNOTATION CALLOUTS ─── */
.annot-dot {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 5;
}

.annot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.annot-item { display: flex; gap: 0.7rem; align-items: baseline; }

.annot-item .n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--green);
  border: 1.5px solid var(--ink);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transform: translateY(3px);
}

.annot-item b { font-size: 0.85rem; display: block; }
.annot-item span { font-size: 0.75rem; color: #555; }

/* ─── TOUR ─── */
.tour-grid { display: flex; flex-direction: column; gap: 1.5px; background: var(--ink); border: 2px solid var(--ink); }

.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--paper);
}

.tour-row:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.tour-row:nth-child(even) .tour-copy { order: 2; }
.tour-row:nth-child(even) .tour-visual { order: 1; }

.tour-copy { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }

.tour-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  display: inline-block;
}

.tour-num .swipe { background: linear-gradient(transparent 30%, var(--green) 30%); padding: 0.1rem 0.3rem; }

.tour-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.tour-desc { font-size: 0.9rem; line-height: 1.65; color: #444; max-width: 420px; }
.tour-desc b { color: var(--ink); }

.tour-visual {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--paper-2);
  position: relative;
  min-height: 260px;
}

.tour-visual .app-window { width: 100%; max-width: 430px; border-radius: 10px; box-shadow: 0 16px 40px rgba(13, 13, 13, 0.25), 0 0 0 2px var(--ink); }

.tour-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; }

.tour-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 0.2rem 0.5rem;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.try-hint {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0.25rem 0.6rem;
  transform: rotate(-2deg);
  align-self: flex-start;
}

/* ─── FEATURED SPOTLIGHT (EA/Steam-style, homepage) ─── */
.spotlight {
  background: var(--black);
  border-top: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.spotlight-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spotlight-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.spotlight-title .accent { color: var(--green); }

.spotlight-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 440px; margin-bottom: 1.75rem; }

.spotlight-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.spotlight-chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(197, 253, 4, 0.35);
  padding: 0.3rem 0.7rem;
}

.spotlight-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.spotlight-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
}

.spotlight .app-frame { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px #222; }

/* ─── POSTER PRODUCT GRID (homepage) ─── */
.pgrid-section { background: var(--paper-2); border-top: 2px solid var(--ink); color: var(--ink); }
.pgrid-section .section-label { color: #5f7a00; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pcard {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.pcard:hover { transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--ink); }

.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; }

.pcard-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(transparent 55%, var(--green) 55%);
  padding: 0 0.3rem;
}

.pcard-price-orig { font-size: 0.95rem; color: #999; text-decoration: line-through; }

.pcard-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pcard-tag { font-size: 0.85rem; color: #555; }

.pcard-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.pcard-preview {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.pcard-preview .card-curves { border: none; margin: 0; background: #222; }
.pcard-preview .card-curve-cell { background: hsl(0 0% 10%); }

.pcard-ctrls {
  border: 1.5px solid var(--ink);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--paper);
}

.pcard-ctrl-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.pcard-ctrl-row .t { color: #5f7a00; font-weight: 700; }

.pcard-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
}

.pcard-btns { display: flex; gap: 0.75rem; margin-top: auto; padding-top: 0.5rem; }

.pcard-btn {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--ink);
  transition: all 0.12s;
}

.pcard-btn.buy { background: var(--green); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pcard-btn.buy:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.pcard-btn.more { background: transparent; color: var(--ink); }
.pcard-btn.more:hover { background: var(--ink); color: var(--green); }

/* ─── REVSHAPE SHOWCASE ─── */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.rs-grid.mini { grid-template-columns: repeat(4, 1fr); background: #1a1a1a; padding: 8px; gap: 4px; }

.rs-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  background: rgba(255, 255, 255, 0.02);
}

.rs-cell:hover { background: rgba(255, 255, 255, .06); }

.rs-cell.on { background: rgba(255, 255, 255, .04); border-color: var(--c); }

.rs-cell svg { display: block; }

.rs-name {
  font-family: var(--mono);
  font-size: 8px;
  color: #999;
  letter-spacing: .04em;
  white-space: nowrap;
}

.rs-cell.on .rs-name { color: var(--c); }

@media (max-width: 640px) {
  .rs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .poster-inner { padding: 5rem 1.5rem 3rem; }
  .tour-row, .tour-row:nth-child(even) { grid-template-columns: 1fr; }
  .tour-row:nth-child(even) .tour-copy { order: 1; }
  .tour-row:nth-child(even) .tour-visual { order: 2; }
  .aw-sidebar { width: 112px; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }
  .pgrid { grid-template-columns: 1fr; }
}

/* ─── LIVE DEMOS: curve-type dropdown — the app's navbar title dropdown
   (ed-title-sel-wrap: label + chevron trigger, floating panel) ─── */
.aw-type-wrap { position: relative; }

.aw-type-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
  color: #eee;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background .18s ease;
}

.aw-type-trigger:hover { background: rgba(255, 255, 255, 0.04); }
.aw-type-wrap.open .aw-type-trigger { background: rgba(255, 255, 255, 0.09); }

.aw-type-trigger svg { width: 9px; height: 9px; color: #888; transition: transform .15s; }
.aw-type-wrap.open .aw-type-trigger svg { transform: rotate(180deg); }

.aw-type-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: -4px;
  min-width: 128px;
  background: hsl(0 0% 10%);
  border: 1px solid hsl(0 0% 20%);
  border-radius: 8px;
  padding: 4px;
  display: none;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.aw-type-wrap.open .aw-type-panel { display: block; }

.aw-type-opt {
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 10.5px;
  color: #bbb;
  cursor: pointer;
}

.aw-type-opt:hover { background: rgba(255, 255, 255, 0.06); color: #eee; }
.aw-type-opt.on { color: var(--c); }

/* interactive sliders + handles */
.pill-track { touch-action: none; }
.aw-canvas { touch-action: none; }
.aw-canvas [data-handle]:hover { r: 7; }
.aw-canvas [data-handle]:active { cursor: grabbing; }

/* ─── REVSHAPE: polygon lab ─── */
.rs-poly-canvas {
  position: relative;
  min-height: 250px;
  margin: 0 0 8px;
  touch-action: none;
}

.rs-poly-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rs-poly-canvas [data-poly-pt]:active { cursor: grabbing; }

/* "the node has much more" footnote on interactive previews */
.rs-mini-note {
  font-size: 10px;
  line-height: 1.5;
  color: #999;
  padding: 7px 2px 2px;
  border-top: 1px solid hsl(0 0% 15%);
  margin-top: 6px;
}

/* stamped on every dark demo window: this is the website, not the plugin */
.rs-demo-flag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C5FD04;
  border: 1px dashed hsl(0 0% 32%);
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 0 8px;
  text-align: center;
}

/* product-page disclaimer: the interactive panels are website demos, not the plugin UI */
.demo-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 640px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.9rem 1.1rem;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

.demo-notice-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  border: 1.5px solid var(--ink);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  transform: rotate(-2deg);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* RevShape labs: plain canvas — no grid dots */
.aw-canvas.rs-plain, .aw-canvas.rs-plain.grid-lines { background: hsl(0 0% 9.41%); }

/* ═══════════════════════════════════════════════════════════
   GRIDMOTION — dark app-window mock, reusing EaseSpline's design
   ═══════════════════════════════════════════════════════════ */

/* app window body: canvas left, rail right */
.gm-aw { font-family: var(--sans); }
.gm-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: hsl(0 0% 11%); border-bottom: 1px solid hsl(0 0% 16%);
}
.gm-topbar-l { display: flex; align-items: center; gap: 10px; }
.gm-title { font-weight: 600; font-size: 11px; color: #eee; letter-spacing: 0.02em; }
.gm-topbar-r { display: flex; align-items: center; gap: 8px; }
.gm-bridge {
  font-family: var(--mono); font-size: 9px; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 20px; padding: 2px 8px;
}

.gm-body { display: flex; min-height: 260px; }

.gm-canvas-wrap {
  flex: 1.4; position: relative; margin: 10px; border-radius: 8px;
  background: hsl(0 0% 9.41%); overflow: hidden;
}
.gm-canvas { display: block; width: 100%; }

.gm-rail {
  flex: 1; padding: 10px 10px 10px 0;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}

/* pill sliders — exact match to EaseSpline's .pill-row */
.gm-pill-row { display: flex; align-items: center; gap: 6px; }
.gm-pill-name {
  font-size: 10px; font-weight: 500; color: #666; width: 46px;
  flex-shrink: 0; white-space: nowrap; text-transform: lowercase;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Fira Code', monospace;
}
.gm-pill-track {
  flex: 1; height: 18px; border-radius: 4px;
  background: hsl(0 0% 9.41%); border: 1px solid rgba(255,255,255,0.03);
  position: relative; overflow: hidden; cursor: ew-resize; touch-action: none;
}
.gm-pill-thumb { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--c); }
.gm-pill-val {
  font-size: 10px; font-weight: 500; color: var(--c); min-width: 30px;
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Fira Code', monospace;
}

/* toggles — exact match to EaseSpline's .aw-toggle-row + .aw-tgl */
.gm-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px; border-bottom: 1px solid hsl(0 0% 16%);
  font-size: 10px; color: #bbb;
}
.gm-tgl {
  width: 26px; height: 14px; border-radius: 14px;
  background: hsl(0 0% 22%); position: relative; flex-shrink: 0;
  cursor: pointer; transition: background .15s;
}
.gm-tgl::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #999; transition: all .15s;
}
.gm-tgl.on { background: var(--c); }
.gm-tgl.on::after { left: 14px; background: #0d0d0d; }

/* combo options — exact match to .aw-sett-group + .aw-opt */
.gm-combo-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 5px 2px;
}
.gm-combo-label { font-size: 9.5px; color: #999; flex-shrink: 0; }
.gm-combo-opts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.gm-opt {
  font-family: var(--sans); font-size: 9px; color: #999;
  border: 1px solid hsl(0 0% 22%); border-radius: 4px;
  padding: 3px 8px; cursor: pointer; transition: all .15s;
}
.gm-opt:hover { color: #ddd; border-color: #555; }
.gm-opt.on { color: #0d0d0d; background: var(--c); border-color: var(--c); font-weight: 700; }

/* color input */
.gm-color-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 5px 2px;
}
.gm-color-input {
  width: 40px; height: 20px; border: 1px solid hsl(0 0% 22%);
  border-radius: 4px; cursor: pointer; background: hsl(0 0% 12%); padding: 1px;
}

/* touch action */
.gm-pill-track { touch-action: none; }

/* ═══ Animation Preview mock (awp-*) — verbatim from src/ui/preview.html ═══
   :root vars there: --bg #252423, --bg2 #2a2928, --fg #f6f4f2, --fg2 #b8b6b3,
   --fg3 #9a9593, --fg4 #524f49, --fg5 #413d39; accent = live curve color. */
.aw-preview {
  --pbg: #252423; --pbg2: #2a2928; --pfg: #f6f4f2; --pfg2: #b8b6b3;
  --pfg3: #9a9593; --pfg4: #524f49; --pfg5: #413d39;
  background: var(--pbg);
  border: 1px solid hsl(0 0% 18%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  user-select: none; -webkit-user-select: none;
  width: 100%; max-width: 560px;
}
.awp-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--pbg2);
  border-bottom: 1px solid hsl(0 0% 19%);
}
.awp-brand { font-size: 10.5px; font-weight: 700; color: var(--pfg); letter-spacing: .04em; }
.awp-sep { width: 1px; height: 14px; background: var(--pfg5); }
.awp-name { font-size: 10.5px; color: var(--pfg2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awp-tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pc, #e6d633); border: 1px solid color-mix(in srgb, var(--pc, #e6d633) 45%, transparent);
  padding: 1.5px 6px; border-radius: 999px;
}
.awp-gap { flex: 1; }
.awp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  color: var(--pfg3); cursor: pointer; transition: color .12s, background .12s;
}
.awp-btn:hover { color: var(--pfg); background: rgba(255,255,255,0.07); }
.awp-btn.on { color: var(--pc, #e6d633); }
.awp-btn svg { width: 12px; height: 12px; }
.awp-conn { width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #e6d633); box-shadow: 0 0 6px color-mix(in srgb, var(--pc, #e6d633) 70%, transparent); flex-shrink: 0; }
.awp-stage {
  position: relative; height: 170px; overflow: hidden;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.awp-shape {
  position: absolute; top: 50%; left: 16px;
  width: 38px; height: 38px; margin-top: -19px;
  border-radius: 6px;
  background: var(--pc, #e6d633);
  will-change: transform, opacity;
}
.awp-params { padding: 10px 12px 8px; border-top: 1px solid hsl(0 0% 19%); display: flex; flex-direction: column; gap: 6px; }
/* the app's real pill sliders — verbatim from preview.html:188-288:
   18px dark track box, absolute range inside, 2px accent bar thumb,
   accent value text (no box), lowercase mono keys. */
.awp-row { display: flex; align-items: center; gap: 8px; }
.awp-key {
  font-size: 11px; font-weight: 500; color: var(--pfg2);
  width: 96px; flex-shrink: 0; text-transform: lowercase;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
}
.awp-track {
  flex: 1; height: 18px; display: flex; align-items: center;
  border-radius: 4px; overflow: hidden;
  background: #181818; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.awp-track:has(.awp-range:active) { background: color-mix(in srgb, var(--pc, #e6d633) 20%, #181818); }
.awp-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; background: transparent;
  cursor: ew-resize; outline: none; display: block;
  position: absolute; top: 0; left: 0; margin: 0;
}
.awp-range::-webkit-slider-runnable-track { height: 18px; background: transparent; border: none; }
.awp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px; width: 2px; border-radius: 0;
  background: var(--pc, #e6d633);
  border: none; cursor: ew-resize; box-shadow: none; margin-top: 0; transition: none;
}
.awp-range::-moz-range-track { height: 18px; background: transparent; border: none; }
.awp-range::-moz-range-thumb {
  height: 18px; width: 2px; border-radius: 0;
  background: var(--pc, #e6d633);
  cursor: ew-resize; border: none; box-shadow: none;
}
.awp-val {
  font-size: 10px; font-weight: 500; color: var(--pc, #e6d633);
  min-width: 34px; text-align: right; font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
}
.awp-cards { padding: 8px 10px 10px; display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid hsl(0 0% 19%); }
.awp-cards .aw-card { flex: 1; min-width: 72px; }

/* ═══ Profiles rail mock — .card-section-hdr verbatim (index.html:412) ═══ */
.aw-sec-hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #8a8a8a;
  padding: 9px 2px 5px;
  border-bottom: 1px solid hsl(0 0% 20%);
  margin-top: 4px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}
.aw-sec-hdr.sub { color: #6f6f6f; font-size: 9px; padding-left: 8px; }
.aw-sec-r { display: inline-flex; align-items: center; gap: 4px; }
.aw-sec-count { color: #555; font-weight: 500; text-transform: none; }
.aw-sec-menu {
  color: #666; cursor: pointer; padding: 1px 2px; border-radius: 4px;
  display: inline-flex; align-items: center;
  opacity: .35; transition: opacity .15s, color .15s, background .15s;
}
.aw-sec-hdr:hover .aw-sec-menu { opacity: .8; }
.aw-sec-menu:hover { color: #fff; opacity: 1; background: rgba(255,255,255,0.08); }
.aw-prof-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  padding: 6px 0 2px;
}
.aw-prof-empty {
  font-family: 'Menlo','Monaco','Consolas','Fira Code',monospace;
  font-size: 8.5px; color: #5c5c5c; line-height: 1.6; padding: 6px 2px;
}

/* context-menu replica — .esp-context-menu verbatim (index.html:741) */
.aw-ctx {
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 4px; min-width: 165px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; gap: 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}
.aw-ctx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 11px; color: #ccc; cursor: pointer;
  border-radius: 5px; transition: background .12s, color .12s;
}
.aw-ctx-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.aw-ctx-item.danger { color: #ed4245; }
.aw-ctx-item.danger:hover { background: #ed4245; color: #fff; }
.aw-ctx-item.hi { color: var(--green, #C5FD04); font-weight: 600; }
.aw-ctx-item.hi::after { content: '←'; margin-left: 10px; }
.aw-ctx-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 2px 4px; }
.aw-ctx-chk { display: inline-block; width: 14px; color: #8a8a8a; }

/* ═══ Import / Export guide grid ═══ */
.aw-io-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .aw-io-grid { grid-template-columns: 1fr; } }
.aw-io-step {
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center;
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); border-radius: 4px;
  padding: 1.25rem 1.5rem;
}
@media (max-width: 560px) { .aw-io-step { grid-template-columns: 1fr; } }
.aw-io-copy h4 { font-size: 1.05rem; margin: 0.4rem 0 0.5rem; }
.aw-io-copy p { font-size: 0.82rem; line-height: 1.6; color: #444; }
.aw-io-visual { align-self: center; }

/* ═══ Profile vs Custom-folder distinction strip ═══ */
.aw-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); background: var(--ink); }
@media (max-width: 760px) { .aw-cmp { grid-template-columns: 1fr; } }
.aw-cmp-col { background: #fff; padding: 1.5rem; }
.aw-cmp-col + .aw-cmp-col { border-left: 2px solid var(--ink); }
@media (max-width: 760px) { .aw-cmp-col + .aw-cmp-col { border-left: none; border-top: 2px solid var(--ink); } }
.aw-cmp-tag {
  display: inline-block; font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 0.25rem 0.6rem; border-radius: 3px;
  margin-bottom: 0.75rem;
}
.aw-cmp-col.alt .aw-cmp-tag { background: var(--green); color: var(--ink); }
.aw-cmp-col h4 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--ink); }
.aw-cmp-col ul { list-style: none; margin: 0; padding: 0; }
.aw-cmp-col li {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: #444;
  padding: 0.4rem 0 0.4rem 1.4rem; position: relative;
  border-bottom: 1px dashed #ddd;
}
.aw-cmp-col li:last-child { border-bottom: none; }
.aw-cmp-col li::before { content: '→'; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.aw-cmp-col li b { color: var(--ink); }

/* dropdown extras: custom-folder rows + the app's "+ Add Custom Section" */
.aw-type-opt.custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aw-type-opt.custom .aw-opt-dots { display: inline-flex; color: #666; }
.aw-type-opt.custom .aw-opt-dots svg { width: 11px; height: 11px; }
.aw-type-opt.addsec {
  color: #C5FD04;
  border-top: 1px solid hsl(0 0% 18%);
  margin-top: 4px;
  border-radius: 0 0 5px 5px;
  white-space: nowrap;
}
.aw-type-opt.addsec:hover { background: rgba(197, 253, 4, 0.08); color: #C5FD04; }
