:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1rem + 4.2vw, 4.75rem);

  --font-display: 'Chillax', 'Trebuchet MS', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;

  --teal: #12b5a5;
  --coral: #ff6a4d;
  --sun: #ffc738;
  --violet: #8b6dff;
  --pink: #ff6fae;
  --lime: #a8dc3c;

  --ink: #1f1a3d;
  --paper: #fff8ec;
  --bg: #000;
  --bg-2: #000;
  --card: #111;
  --text: #f6efe2;
  --muted: #bdb6cc;
  --line: #e9e3d6;
  --shadow: 5px 5px 0 #3b3b3b;
  --shadow-sm: 3px 3px 0 #3b3b3b;

  --len-short: #8b6dff;
  --len-ok: #10a596;
  --len-long: #ff4d2e;

  --bl-bg: #303030;
  --bl-panel: #3d3d3d;
  --bl-field: #545454;
  --bl-text: #e6e6e6;
  --bl-dim: #a8a8a8;
  --bl-blue: #4772b3;
  --bl-btn: #595959;

  --r: 18px;
  --r-sm: 10px;
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 70px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
kbd, .kb { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; white-space: nowrap; }
code { font-size: .9em; background: var(--bg-2); padding: 1px 6px; border-radius: 5px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 3px solid #2a2a2a; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.logo { width: 34px; height: 34px; }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 2px solid transparent; transition: background .2s, border-color .2s; }
.nav a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s; }
.theme-toggle:hover { transform: translate(-1px,-1px); }
@media (max-width: 720px) { .nav { display: none; } .theme-toggle { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 3px solid #2a2a2a; background: var(--bg); }
.confetti { display: none; }
.hero-inner { position: relative; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: var(--text-sm); font-weight: 600; color: var(--muted); margin-bottom: 1.2rem; }
.pill { display: inline-block; padding: .25rem .8rem; border-radius: 999px; border: 2.5px solid var(--line); font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
.pill-sun { background: var(--sun); transform: rotate(-3deg); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); letter-spacing: -0.02em; max-width: 16ch; }
.hl { position: relative; white-space: nowrap; padding: 0 .12em; }
.hl::before { content: ""; position: absolute; inset: 52% -.05em 4% -.05em; z-index: -1; border-radius: 6px; transform: skewX(-8deg); }
.hl-teal::before { background: color-mix(in srgb, var(--teal) 75%, transparent); }
.hl-coral::before { background: color-mix(in srgb, var(--coral) 75%, transparent); }
.hero h1 { position: relative; z-index: 0; }
.lede { margin-top: 1.4rem; max-width: 60ch; font-size: var(--text-base); color: var(--muted); }
.hero-cards { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; max-width: 900px; }
.hero-card { position: relative; display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; column-gap: 1.1rem; align-items: center; padding: 1.2rem 1.3rem; border: 3px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.hero-card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 8px 8px 0 #3b3b3b; }
.hc-teal { background: #7fe0d4; }
.hc-coral { background: #ffb39d; }
.hc-art { grid-row: span 2; width: 120px; height: 80px; }
.hc-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); align-self: end; }
.hc-tag { font-size: var(--text-sm); line-height: 1.35; align-self: start; }
.hc-ver { position: absolute; top: -12px; right: 14px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 999px; font-size: var(--text-xs); font-weight: 700; padding: 0 .55rem; }
.hc-mesh-after { opacity: 0; transition: opacity .4s; }
.hc-mesh-before { transition: opacity .4s; }
.hero-card:hover .hc-mesh-after, .hc-teal.anim .hc-mesh-after { opacity: 1; }
.hero-card:hover .hc-mesh-before, .hc-teal.anim .hc-mesh-before { opacity: 0; }
.hc-fly { transition: transform .5s cubic-bezier(.3,1.6,.5,1); transform-origin: center; }
.hc-coral:hover .hc-fly { transform: translate(4px,-6px) rotate(8deg); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-bottom: 3px solid #2a2a2a; }
.em { background: var(--bg); }
.ex { background: var(--bg-2); }
.inst { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.015em; margin: .7rem 0 1rem; }
.sub { color: var(--muted); }
.badge { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border: 2.5px solid var(--line); border-radius: 999px; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge-teal { background: var(--teal); } .badge-coral { background: var(--coral); } .badge-sun { background: var(--sun); } .badge-violet { background: var(--violet); color: #fff; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--line); margin-right: .55rem; vertical-align: -1px; }
.dot-teal { background: var(--teal); } .dot-coral { background: var(--coral); }
h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); }
h4 { font-weight: 700; font-size: var(--text-base); margin-bottom: .3rem; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.trio-card { padding: 1.2rem 1.3rem; border: 3px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); }
.trio-card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: .3rem; }
.trio-card p { font-size: var(--text-sm); }
.t-teal { background: #8ee6db; } .t-violet { background: #c9bbff; } .t-sun { background: #ffdc7a; }
.trio-card:nth-child(2) { transform: rotate(.6deg); } .trio-card:nth-child(3) { transform: rotate(-.6deg); }

/* Playground */
.playground { background: var(--card); border: 3px solid var(--line); border-radius: 24px; box-shadow: 8px 8px 0 #3b3b3b; padding: clamp(1rem, 2.5vw, 1.8rem); margin-bottom: 4rem; }
.pg-head { margin-bottom: 1.2rem; }
.pg-head p { color: var(--muted); font-size: var(--text-sm); margin-top: .4rem; max-width: 75ch; }
.pg-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .pg-body { grid-template-columns: 1fr; } }
.pg-stage { position: relative; background: #3a3a3a; border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; background-image: linear-gradient(#444 1px, transparent 1px), linear-gradient(90deg, #444 1px, transparent 1px); background-size: 40px 40px; }
#meshCanvas { width: 100%; height: auto; max-height: 720px; object-fit: contain; display: block; touch-action: none; cursor: crosshair; aspect-ratio: 7 / 9; }
.pg-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: .8rem; flex-wrap: wrap; background: rgba(20,20,20,.75); color: #eee; font-size: var(--text-xs); padding: .35rem .7rem; border-radius: 8px; }
.pg-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.pg-toast { position: absolute; top: 12px; left: 50%; transform: translate(-50%, -20px); opacity: 0; background: var(--sun); color: var(--ink); border: 2.5px solid var(--line); border-radius: 999px; padding: .3rem 1rem; font-size: var(--text-sm); font-weight: 700; transition: all .3s; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.pg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pg-toast.err { background: var(--coral); }

.bl-panel { background: var(--bl-bg); color: var(--bl-text); border: 3px solid var(--line); border-radius: var(--r); font-size: var(--text-sm); padding-bottom: .8rem; overflow: hidden; }
.bl-tabs { display: flex; gap: 2px; background: #232323; padding: 6px 6px 0; font-size: var(--text-xs); }
.bl-tabs span { padding: .3rem .6rem; border-radius: 6px 6px 0 0; color: var(--bl-dim); }
.bl-tabs .on { background: var(--bl-bg); color: #fff; }
.bl-title { padding: .6rem .9rem; font-weight: 600; background: var(--bl-panel); }
.bl-row { display: grid; grid-template-columns: 44% 1fr; gap: .5rem; align-items: center; padding: .3rem .9rem; }
.bl-row label, .bl-lab { color: var(--bl-dim); text-align: right; font-size: var(--text-xs); }
.bl-row label em { font-style: normal; opacity: .75; }
.bl-input { width: 100%; background: var(--bl-field); border: 1px solid #1d1d1d; border-radius: 5px; padding: .3rem .5rem; color: #fff; font-size: var(--text-sm); }
.bl-input:focus { outline: 2px solid var(--bl-blue); }
.bl-num { display: flex; align-items: center; gap: .4rem; } .bl-num span { color: var(--bl-dim); font-size: var(--text-xs); }
.bl-range { width: 100%; accent-color: var(--teal); }
.bl-hint { padding: 0 .9rem .3rem; color: #9fd; font-size: var(--text-xs); text-align: right; }
.bl-seg { display: flex; flex-wrap: wrap; gap: 2px; }
.bl-seg button { flex: 1; background: var(--bl-btn); border: 1px solid #1d1d1d; color: #eee; font-size: var(--text-xs); padding: .25rem .3rem; border-radius: 4px; }
.bl-seg button.on { background: var(--bl-blue); color: #fff; }
.bl-btnrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: .4rem .9rem; }
.bl-btn, .bl-op { background: var(--bl-btn); border: 1px solid #1d1d1d; color: #eee; border-radius: 5px; padding: .4rem .3rem; font-size: var(--text-xs); transition: background .15s; }
.bl-btn:hover, .bl-op:hover { background: #6a6a6a; }
.bl-box { margin: .3rem .9rem .5rem; padding: .5rem .7rem; border: 1px solid #222; border-radius: 6px; background: #2a2a2a; font-size: var(--text-xs); display: grid; gap: .15rem; color: #ddd; min-height: 3rem; }
.bl-box.flash { animation: flash .7s; }
@keyframes flash { 0% { background: #2d5a52; } 100% { background: #2a2a2a; } }
.bl-ops { display: grid; gap: 4px; padding: .2rem .9rem .6rem; }
.bl-op { font-size: var(--text-sm); padding: .55rem; text-align: left; display: flex; gap: .6rem; align-items: center; }
.bl-op b { color: var(--teal); font-size: 1.05rem; width: 1.2em; text-align: center; }
.bl-op:active { background: var(--bl-blue); }
.bl-opts { margin: 0 .9rem; border-top: 1px solid #222; }
.bl-opts summary { padding: .5rem 0; cursor: pointer; color: #ddd; font-weight: 600; }
.bl-opts .bl-row { padding: .3rem 0; }
.bl-check { grid-template-columns: auto 1fr; justify-content: start; padding-left: calc(44% + .5rem) !important; }
.bl-check label { text-align: left; color: #ddd; }
.bl-check input { accent-color: var(--bl-blue); }
.bl-note { font-size: var(--text-xs); color: var(--bl-dim); padding: .3rem 0 .6rem; line-height: 1.45; }
.bl-footer { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem .9rem 0; border-top: 1px solid #222; margin-top: .4rem; }
.chip { background: var(--paper); color: var(--ink); border: 2px solid #111; border-radius: 999px; padding: .2rem .75rem; font-size: var(--text-xs); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.chip:hover { background: var(--sun); }
.chip-check input { accent-color: var(--teal); }
.pg-hist { margin-top: 1.2rem; }
.hist-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: var(--text-xs); font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
#histCanvas { width: 100%; height: 110px; background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--r-sm); display: block; }

/* Real before/after */
.real { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 4rem; }
@media (max-width: 860px) { .real { grid-template-columns: 1fr; } }
.real-copy h3 { margin: .8rem 0 .7rem; }
.real-copy p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: var(--text-sm); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--lime); color: var(--ink); border: 2px solid var(--line); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.compare { position: relative; border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 #3b3b3b; aspect-ratio: 615 / 897; user-select: none; background: #333; transform: rotate(1deg); }
.compare > img, .compare-top img { width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--sun); box-shadow: 0 0 0 2px var(--line); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--sun); color: var(--ink); border: 3px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: .35rem .5rem; white-space: nowrap; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-range:focus-visible + * { outline: none; }
.compare:focus-within { outline: 3px solid var(--violet); outline-offset: 4px; }
.tag { position: absolute; top: 12px; padding: .15rem .65rem; border: 2.5px solid var(--line); border-radius: 999px; font-size: var(--text-xs); font-weight: 700; color: var(--ink); pointer-events: none; }
.tag-l { left: 12px; background: var(--coral); } .tag-r { right: 12px; background: var(--lime); }
.shot { margin: 0; border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 #3b3b3b; transform: rotate(-1deg); max-width: 380px; justify-self: center; }

/* Find */
.find { margin-bottom: 4rem; }
.find > h3 { margin-bottom: 1.2rem; }
.find-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .find-grid { grid-template-columns: 1fr; } }
.find-card { background: var(--card); border: 3px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.find-card p { color: var(--muted); font-size: var(--text-sm); margin-bottom: 1rem; }
.find-card p:last-child { margin-bottom: 0; }
.bl-menu { background: #282828; color: #e6e6e6; border-radius: 10px; padding: .35rem; font-size: var(--text-sm); max-width: 330px; border: 2px solid #111; }
.bl-menu-title { color: #999; font-size: var(--text-xs); padding: .3rem .7rem; }
.mi { padding: .3rem .7rem; border-radius: 5px; }
.mi.sep { border-top: 1px solid #3c3c3c; margin-top: .25rem; padding-top: .45rem; }
.em-item { color: #fff; background: color-mix(in srgb, var(--teal) 22%, transparent); margin: 1px 0; cursor: help; position: relative; }
.em-item::after { content: "NEW"; position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .65rem; font-weight: 800; color: var(--ink); background: var(--teal); border-radius: 4px; padding: 0 .3rem; }
.em-item:hover, .em-item:focus { background: var(--bl-blue); outline: none; }
.mi-tip { margin-top: .35rem; padding: .45rem .7rem; font-size: var(--text-xs); color: #bfe; background: #1d1d1d; border-radius: 6px; min-height: 2.6em; }

/* Steps */
.steps-wrap { margin-bottom: 4rem; }
.steps-wrap > h3 { margin-bottom: 1.3rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 3px solid var(--line); border-radius: var(--r); padding: 2.6rem 1.1rem 1.1rem; font-size: var(--text-sm); box-shadow: var(--shadow-sm); }
.steps li b { display: block; font-size: var(--text-base); margin-bottom: .25rem; }
.steps li::before { content: counter(s); position: absolute; top: -16px; left: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--ink); border: 3px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.steps li:nth-child(2)::before { background: var(--sun); } .steps li:nth-child(3)::before { background: var(--violet); color: #fff; } .steps li:nth-child(4)::before { background: var(--pink); } .steps li:nth-child(5)::before { background: var(--lime); }
.steps-coral li:nth-child(1)::before { background: var(--coral); }

/* Reference */
.ref { margin-bottom: 4rem; }
.ref > h3 { margin-bottom: 1.3rem; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.ref-grid > div { padding: 1rem 1.2rem; border-right: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); border-bottom: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.ref-grid p { font-size: var(--text-sm); color: var(--muted); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-bottom: 1.4rem; }
.fmt { border: 3px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s; }
.fmt:hover { transform: translateY(-3px) rotate(-1deg); }
.fmt b { font-family: var(--font-display); font-size: var(--text-lg); display: block; }
.fmt span { font-size: var(--text-xs); line-height: 1.4; display: block; }
.f-teal { background: #8ee6db; } .f-violet { background: #c9bbff; } .f-sun { background: #ffdc7a; } .f-coral { background: #ffb39d; } .f-pink { background: #ffbcd9; } .f-lime { background: #d3f08f; }

/* Notes */
.good > h3 { margin-bottom: 1.3rem; }
.good-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.note { border: 3px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; font-size: var(--text-sm); color: var(--ink); line-height: 1.5; }
.note b { display: block; font-size: var(--text-base); margin-bottom: .2rem; }
.n-sun { background: #ffe7a3; } .n-coral { background: #ffcfc1; } .n-teal { background: #b6efe7; } .n-violet { background: #ddd3ff; }

/* Export demo */
.ex-demo { position: relative; background: var(--card); border: 3px solid var(--line); border-radius: 24px; box-shadow: 8px 8px 0 #3b3b3b; padding: clamp(1rem, 2.5vw, 1.8rem); margin-bottom: 4rem; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.seg { display: inline-flex; border: 2.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.seg button { border: 0; background: transparent; color: var(--ink); padding: .4rem 1rem; font-size: var(--text-sm); font-weight: 600; }
.seg button.on { background: var(--coral); }
.seg-big button.on { background: var(--sun); }
.ex-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.4rem; }
@media (max-width: 900px) { .ex-body { grid-template-columns: 1fr; } }
.outliner { background: var(--bl-bg); color: var(--bl-text); border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--text-sm); user-select: none; }
.ol-top { display: flex; justify-content: space-between; padding: .5rem .8rem; background: #232323; color: var(--bl-dim); font-size: var(--text-xs); }
.ol-list { padding: .3rem 0; min-height: 330px; }
.ol-row { display: flex; align-items: center; gap: .45rem; padding: .28rem .8rem; cursor: context-menu; position: relative; transition: background .2s, opacity .4s, transform .4s; }
.ol-row:nth-child(even) { background: #2b2b2b; }
.ol-row:hover { background: #3f3f3f; }
.ol-row.active { background: #334d80; }
.ol-row.coll { color: #ddd; cursor: default; }
.ol-row .ic { width: 1.1em; text-align: center; opacity: .9; }
.ol-row .ic-obj { color: #ff9f43; }
.ol-row .ic-col { color: #ccc; }
.ol-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-row .eye { margin-left: auto; opacity: .75; font-size: .8rem; }
.ol-row.hidden-obj .nm { opacity: .5; }
.ol-row.gone { opacity: .25; text-decoration: line-through; background: #5a2323 !important; }
.ol-row.blink { animation: rowblink 1.2s; }
@keyframes rowblink { 0%,100% { background: transparent; } 30% { background: #2d6b5e; } }
.ol-row.exporting { background: #2d6b5e !important; }
.ol-hint { padding: .5rem .8rem; color: #9fd; font-size: var(--text-xs); border-top: 1px solid #222; }
.ctx { position: absolute; z-index: 30; min-width: 230px; background: #282828; color: #e6e6e6; border-radius: 10px; padding: .35rem; font-size: var(--text-sm); border: 2px solid #111; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.ctx .ct { color: #999; font-size: var(--text-xs); padding: .25rem .7rem; }
.ctx button { display: flex; width: 100%; background: transparent; border: 0; color: #ddd; text-align: left; padding: .3rem .7rem; border-radius: 5px; font-size: var(--text-sm); gap: .5rem; }
.ctx button:hover, .ctx button:focus { background: #3d3d3d; outline: none; }
.ctx button.dim { color: #8a8a8a; }
.ctx hr { border: 0; border-top: 1px solid #3c3c3c; margin: .25rem 0; }
.ctx button.go { color: #fff; background: color-mix(in srgb, var(--coral) 35%, transparent); font-weight: 600; }
.ctx button.go:hover, .ctx button.go:focus { background: var(--bl-blue); }
.ex-side { display: grid; gap: 1rem; align-content: start; }
.ex-panel { background: var(--bl-bg); color: var(--bl-text); border: 3px solid var(--line); border-radius: var(--r); min-height: 300px; overflow: hidden; font-size: var(--text-sm); }
.ex-empty { display: grid; place-items: center; gap: .8rem; text-align: center; padding: 2.5rem 1.5rem; color: #ccc; min-height: 300px; align-content: center; }
.fb-top { display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; background: #232323; font-size: var(--text-xs); color: var(--bl-dim); }
.fb-top b { color: #fff; font-weight: 600; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 520px) { .fb-grid { grid-template-columns: 1fr; } }
.fb-files { padding: .7rem .8rem; border-right: 1px solid #222; display: grid; gap: .25rem; align-content: start; font-size: var(--text-xs); color: #bbb; }
.fb-files .fold { color: #ddd; }
.fb-opts { padding: .7rem .8rem; display: grid; gap: .45rem; align-content: start; background: #383838; }
.fb-opts h5 { margin: 0 0 .1rem; font-size: var(--text-xs); color: #bbb; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fb-opts label { display: flex; gap: .45rem; align-items: center; font-size: var(--text-xs); color: #ddd; }
.fb-opts label.dis { opacity: .4; }
.fb-opts input[type=checkbox] { accent-color: var(--bl-blue); }
.fb-opts .fmt-desc { font-size: var(--text-xs); color: #9fd; line-height: 1.35; }
.fb-num { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; font-size: var(--text-xs); }
.fb-bottom { display: flex; gap: .5rem; padding: .6rem .8rem; background: #232323; align-items: center; }
.fb-bottom .bl-input { flex: 1; }
.fb-go { background: var(--bl-blue); color: #fff; border: 0; border-radius: 5px; padding: .35rem 1rem; font-size: var(--text-sm); font-weight: 600; }
.fb-go:hover { background: #5884c6; }
.fb-cancel { background: var(--bl-btn); color: #eee; border: 0; border-radius: 5px; padding: .35rem .8rem; font-size: var(--text-sm); }
.fb-log { padding: .7rem .9rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--text-xs); line-height: 1.55; color: #cfe; display: grid; gap: .1rem; }
.fb-log .ok { color: #8fe28f; } .fb-log .warn { color: #ffd479; } .fb-log .bad { color: #ff8a73; }
.fb-log .ln { opacity: 0; transform: translateX(-6px); animation: ln .3s forwards; }
@keyframes ln { to { opacity: 1; transform: none; } }
.ex-tray { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; box-shadow: var(--shadow-sm); }
.tray-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; font-weight: 700; font-size: var(--text-sm); margin-bottom: .6rem; }
.scene-count { background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .6rem; font-size: var(--text-xs); transition: background .3s; }
.scene-count.bad { background: var(--coral); }
.tray-files { display: flex; flex-wrap: wrap; gap: .6rem; min-height: 54px; align-items: center; }
.tray-empty { font-size: var(--text-xs); color: #6b6585; }
.file { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: .3rem .6rem; font-size: var(--text-xs); font-weight: 600; animation: pop .55s cubic-bezier(.3,1.7,.5,1); max-width: 100%; }
.file .ext { background: var(--teal); border: 2px solid var(--ink); border-radius: 5px; padding: 0 .3rem; font-weight: 800; font-size: .65rem; }
.file .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.old-ctrl { padding: 1rem; display: grid; gap: .7rem; }
.old-ctrl p { color: #ddd; font-size: var(--text-sm); }
.old-btn { justify-self: start; background: var(--coral); color: var(--ink); border: 2.5px solid #111; border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: var(--text-sm); }
.old-btn.alt { background: var(--lime); }

/* Install */
.downloads { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2.5rem; }
.dl { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); border: 3px solid var(--line); border-radius: var(--r); padding: .9rem 1.4rem .9rem 1rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.dl:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 #3b3b3b; }
.dl:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.dl b { display: block; font-size: var(--text-base); }
.dl small { font-size: var(--text-xs); opacity: .8; }
.dl-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; }
.dl-teal { background: var(--teal); } .dl-coral { background: var(--coral); }
.install-tabs { background: var(--card); border: 3px solid var(--line); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.tab-panel { margin-top: 1.3rem; }
.tab-cap { font-size: var(--text-sm); color: var(--muted); margin-top: .8rem; }
.drag-demo { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 600px) { .drag-demo { grid-template-columns: 1fr; justify-items: start; } }
.dd-file { display: grid; place-items: center; gap: .2rem; width: 120px; padding: .8rem; border: 3px solid var(--line); border-radius: 14px; background: var(--sun); color: var(--ink); cursor: grab; box-shadow: var(--shadow-sm); transition: transform .2s; }
.dd-file span { font-size: 2rem; }
.dd-file small { font-size: var(--text-xs); font-weight: 600; text-align: center; word-break: break-all; }
.dd-file:hover { transform: rotate(-4deg) scale(1.04); }
.dd-file.used { opacity: .35; }
.dd-window { border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bl-bg); min-height: 150px; display: grid; grid-template-rows: auto 1fr; }
.dd-bar { display: flex; gap: .35rem; align-items: center; background: #232323; padding: .4rem .7rem; color: #bbb; font-size: var(--text-xs); }
.dd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.dd-bar span { margin-left: .5rem; }
.dd-body { display: grid; place-items: center; color: #aaa; font-size: var(--text-sm); border: 3px dashed transparent; margin: .6rem; border-radius: 10px; transition: all .2s; text-align: center; padding: 1rem; }
.dd-body.over { border-color: var(--sun); color: #fff; background: #3c3c3c; }
.dd-body.done { color: #fff; }
.dd-body .okmsg { display: grid; gap: .3rem; justify-items: center; animation: pop .5s cubic-bezier(.3,1.7,.5,1); }
.dd-body .okmsg b { color: #8fe28f; }
.crumbs { margin: 0; padding-left: 1.3rem; display: grid; gap: .8rem; font-size: var(--text-sm); }
.crumb { display: inline-block; background: #3d3d3d; color: #eee; border-radius: 6px; padding: .1rem .55rem; margin: 0 .15rem; font-size: var(--text-xs); font-weight: 600; }
.crumbs li:first-child .crumb + .crumb::before { content: ""; }
.crumbs li:first-child .crumb:not(:last-child)::after { content: " ›"; color: var(--sun); }
.after-install { margin-bottom: 2.5rem; }
.trouble > h3 { margin-bottom: 1rem; }
.trouble details { border: 3px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.trouble summary { padding: .75rem 1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.trouble details[open] summary::after { content: "–"; }
.trouble details p { padding: 0 1rem .9rem; color: var(--muted); font-size: var(--text-sm); }

.site-footer { padding: 2.5rem 0; background: #000; color: #f6efe2; border-top: 1px solid #2a2a2a; font-size: var(--text-sm); }
.foot-inner { display: grid; gap: .5rem; }
.muted { opacity: .7; font-size: var(--text-xs); }
