@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

/* Eyes · interfaz (misma base visual que ShadeCut y Moldit · printsncode.com) */

:root {
  /* PrintsNCode look: Manrope / Montserrat, charcoal panels, red used sparingly */
  --font: "Manrope", "Avenir Next", "Segoe UI Variable", system-ui, sans-serif;
  --font-head: "Montserrat", "Manrope", system-ui, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --top: 64px;
  --accent: #e3141b;
  --accent-2: #b40000;
  --accent-ink: #ffffff;
  --ok: #2fbf71;
  --bad: #e5484d;
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #0d0d0e;
  --card: #121212;
  --card-2: #191a1c;
  --field: #1d1e21;
  --line: #262626;
  --line-2: #303135;
  --text: #ebebeb;
  --muted: #999999;
  --metal: #c7c5bf;
  --soft: rgba(227, 20, 27, .12);
  --glow: rgba(227, 20, 27, .28);
  --accent-text: #ff4b4f;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f1f1f1;
  --bg-2: #ebebea;
  --card: #ffffff;
  --card-2: #f7f7f6;
  --field: #e9e9e8;
  --line: #d9d9d9;
  --line-2: #cccccc;
  --text: #0e0e0e;
  --muted: #5e5e5e;
  --metal: #777a80;
  --soft: rgba(227, 20, 27, .08);
  --glow: rgba(227, 20, 27, .2);
  --accent-text: #c40f15;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .25);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

button, input, select { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  height: var(--top);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { border-radius: 10px; box-shadow: 0 4px 16px var(--glow); }
.brand h1 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand p { font-size: 11px; color: var(--muted); }

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

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2);
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(-12deg); }
html[data-theme="dark"] .i-moon, html[data-theme="light"] .i-sun { display: none; }

.seg {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 12px var(--glow); }
.seg-sm button { padding: 5px 10px; font-size: 11px; letter-spacing: .04em; }

.fmt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  padding: 0 4px 0 10px; height: 36px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
}
.fmt select { border: 0; background: transparent; font-weight: 700; font-size: 12.5px; cursor: pointer; outline: none; padding: 4px; }

.btn {
  height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card); cursor: pointer;
  font-size: 12.5px; font-weight: 650; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-main {
  border-color: transparent; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 3px 14px var(--glow);
}
.btn-main:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-soft { background: var(--soft); border-color: rgba(227, 20, 27, .35); color: var(--accent-text); width: 100%; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; }

/* ---------- layout ---------- */
.layout {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: var(--left-w, 340px) 10px minmax(0, 1fr) 320px;
}
.side { overflow-y: auto; overflow-x: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); min-width: 0; }
.side > * { flex-shrink: 0; }
.side-left { border-right: 1px solid var(--line); }
.side-right { border-left: 1px solid var(--line); }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* settings sections */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sec summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; font-size: 13px; font-weight: 750;
}
.sec summary::-webkit-details-marker { display: none; }
.sec summary::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px;
}
.sec[open] summary::after { transform: rotate(-135deg); }
.sec[open] summary { border-bottom: 1px solid var(--line); }
.sec-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
#secSwitch, #decorFields { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field.disabled { opacity: .4; pointer-events: none; }
.field-head { display: flex; align-items: center; gap: 6px; }
.field-head label { flex: 1; font-size: 12px; color: var(--muted); cursor: help; }
.num-wrap {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--field); border-radius: 6px; padding: 0 7px 0 2px;
}
.num-wrap i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.num {
  width: 54px; border: 0; background: transparent; outline: none;
  text-align: right; font-weight: 700; font-size: 12px; padding: 4px 2px;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.num::-webkit-inner-spin-button, .num::-webkit-outer-spin-button { -webkit-appearance: none; }
.num-wrap:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.hex { width: 86px; text-align: left; background: var(--field); border-radius: 6px; padding: 6px 8px; text-transform: uppercase; }

.reset {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1;
  transition: color .15s, background .15s, transform .25s;
}
.reset:hover { color: var(--accent-text); background: var(--soft); transform: rotate(-180deg); }

input[type=range] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--field) var(--fill));
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
input.hue {
  background: linear-gradient(90deg, #f33, #ff3, #3f3, #3ff, #33f, #f3f, #f33) !important;
  height: 8px;
}

.select {
  width: 100%; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--field); border: 1px solid transparent; outline: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600;
}
.select:focus { border-color: var(--accent); }

.check { display: flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.color-row { display: flex; align-items: center; gap: 8px; }
input[type=color] {
  width: 44px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px;
  background: none; padding: 2px; cursor: pointer;
}
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 6px; }

.note { font-size: 11.5px; line-height: 1.5; color: var(--muted); }

/* ---------- editor ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-head h2 { font-size: 14px; font-weight: 800; }
.card-tools { display: flex; gap: 4px; }
/* ---------- footer ---------- */
.foot {
  min-height: 44px;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 4px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.foot .foot-credit { color: var(--text); font-weight: 750; white-space: nowrap; }
.foot-copyright { white-space: nowrap; }
.foot-credit:hover, .foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.foot-links a { padding-block: 6px; }
.foot-socials { display: flex; gap: 2px; }
.foot-socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; }
.foot-socials a:hover { background: var(--card-2); }
.foot-socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (max-width: 520px) {
  .foot-brand, .foot-links, .foot-socials { width: 100%; justify-content: center; margin-left: 0; }
  .foot-socials a { width: 44px; height: 44px; }
}

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 50; max-width: 260px;
  padding: 9px 11px; border-radius: 9px;
  background: #17181a; color: #ebebeb; font-size: 11.5px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.tip.show { opacity: 1; transform: none; }

/* ---------- PrintsNCode integration ---------- */
h1, h2, .sec summary, .card-head h2 { font-family: var(--font-head); font-weight: 650; letter-spacing: -.02em; }
.topbar {
  position: relative; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 216, 220, .07);
}
html[data-theme="light"] .topbar { border-bottom-color: var(--line); }
.brand { gap: 14px; }
.brand img { box-shadow: none; border-radius: 0; }
.pnc-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; opacity: .92; transition: opacity .15s; }
.pnc-link:hover { opacity: 1; }
.pnc-link .pnc-mark { height: 22px; width: auto; padding: 2px; border-radius: 6px; background: #17181a; }
.pnc-link .pnc-word { height: 11px; width: auto; }
.brand-sep { width: 1px; height: 26px; background: var(--line-2); }
.app-name { display: flex; align-items: center; gap: 10px; }
.app-name h1 { font-size: 17px; }
.app-name p { font-size: 11px; color: var(--muted); }
.seg, .fmt, .btn, .icon-btn, .pill { border-radius: 999px; }
.seg, .fmt, .icon-btn, .btn:not(.btn-main), .pill { background: color-mix(in srgb, var(--card) 72%, transparent); border-color: var(--line); }
.seg button.on, .pill.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button.on { font-weight: 700; }
#modeSeg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 14px var(--glow); }
.btn-main { box-shadow: 0 6px 22px -6px var(--glow); }
.sec, .card { border-radius: var(--r); border-color: var(--line); }
.hud { border-radius: 999px; }
.vis-bar .pill.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.vis-bar .pill.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.drop { background: color-mix(in srgb, var(--card) 70%, transparent); }
.drop strong, .drop b { color: var(--text); }


/* ---------- Eyes ---------- */

.brand svg { width: 40px; height: 28px; }
.app-tag { font-size: 11px; color: var(--muted); }
.sec summary { gap: 8px; }
.sec summary .grow { flex: 1; }
.sec summary .reset { margin-right: 4px; }
.sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.fam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fam button, .opt {
  text-align: left; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--field); border: 1px solid transparent; font-size: 12.5px; font-weight: 700;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s;
}
.fam button small, .opt small { font-size: 10.5px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.fam button:hover, .opt:hover { border-color: var(--line-2); }
.fam button.on, .opt.on { border-color: var(--accent); background: var(--soft); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.chips button.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 250px; overflow-y: auto; }
.gallery button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border-radius: var(--r-sm);
  background: var(--field); border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.gallery button.on { border-color: var(--accent); background: var(--soft); }
.gallery img { width: 54px; height: 54px; border-radius: 50%; }
.variants { display: flex; gap: 5px; flex-wrap: wrap; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 12px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); }
.drop strong { color: var(--text); font-size: 12.5px; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input { display: none; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--field); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.field > span { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.field output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.input { width: 100%; padding: 8px 10px; border-radius: var(--r-sm); background: var(--field); border: 1px solid transparent; outline: none; font-size: 12.5px; }
.input:focus { border-color: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-height: 210px; overflow-y: auto; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 8px; border: 1px solid transparent;
  background: none; cursor: pointer; font-size: 10px; color: var(--muted); }
.swatch i { width: 34px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 36% 50%, var(--b) 0 22%, transparent 23%), radial-gradient(circle at 64% 50%, var(--c) 0 22%, transparent 23%), var(--a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatch.on { border-color: var(--accent); color: var(--text); }
.colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.colors label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.colors input[type=color] { flex-shrink: 0; }
.colors .orig { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); flex-shrink: 0; }

.feat { display: flex; flex-direction: column; gap: 4px; }
.feat-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); background: var(--field); }
.feat-row.showing { box-shadow: inset 0 0 0 1px var(--accent); }
.feat-row label { flex: 1; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.feat-row label span { display: flex; flex-direction: column; gap: 1px; }
.feat-row label small { font-size: 10.5px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.switch { appearance: none; -webkit-appearance: none; width: 32px; height: 18px; border-radius: 18px; background: var(--line-2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(14px); }
.switch:disabled { opacity: .5; }
.eye-btn { width: 30px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.eye-btn:hover, .feat-row.showing .eye-btn { color: var(--accent-text); border-color: var(--accent); }

.stage { display: flex; flex-direction: column; background: var(--bg); }
.stage-canvas { flex: 1; min-height: 0; position: relative; }
#preview { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.stage-cap { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; max-width: 80%;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage-cap b { color: var(--accent-text); }
.stage-hint { position: absolute; bottom: 58px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--muted); }

.side-right .card { gap: 9px; }
.dl { display: flex; flex-direction: column; gap: 6px; }
.dl button, .dl a, .dl label.btn { height: auto; padding: 9px 12px; flex-direction: column; align-items: flex-start; gap: 1px; border-radius: var(--r-sm); text-decoration: none; }
.dl small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.dl .btn-main small { color: rgba(255,255,255,.85); }
.dl input[type=file] { display: none; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.status { font-size: 11.5px; color: var(--muted); min-height: 1.4em; }
.status.bad { color: var(--bad); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; text-align: right; }
.steps { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.45; }
code { background: var(--field); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }

@media (max-width: 1180px) {
  body { height: auto; overflow: auto; }
  .layout { display: flex; flex-direction: column; }
  .stage { order: -1; height: 56vh; min-height: 320px; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
  .side { overflow: visible; }
  .side-left, .side-right { border: 0; }
}
@media (max-width: 560px) {
  .topbar { height: auto; min-height: var(--top); flex-wrap: wrap; gap: 4px 8px; padding: 8px 10px; }
  .topbar-actions { flex-wrap: wrap; }
  .app-tag { display: none; }
  .stage { height: 44vh; }
  .opts, .row3 { grid-template-columns: 1fr; }
  .fam { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.pill { padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-2); transition: border-color .15s; }
.pill:hover { border-color: var(--accent); }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
a.btn { text-decoration: none; color: var(--text); }
.swatches { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.swatch span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.settings-divider { cursor: col-resize; touch-action: none; background: var(--bg-2); display: grid; place-items: center; }
.settings-divider::before { content: ""; width: 3px; height: 32px; border-radius: 3px; background: var(--line-2); }
.settings-divider:hover::before, .settings-divider:focus-visible::before { background: var(--accent); }
.settings-dragging { user-select: none; cursor: col-resize; }
.own-files { display: grid; gap: 8px; min-width: 0; }
.own-file { display: grid; gap: 6px; min-width: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); }
.own-file .input { min-width: 0; }
.own-file-name { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.own-file-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.own-file-actions .select { flex: 1 1 110px; width: auto; min-width: 0; }
.own-file-actions .btn { width: auto; min-height: 32px; padding: 5px 8px; }
.gif-studio-entry h2, .gif-studio-bar h2 { font-size: 15px; }
.gif-studio-dialog { box-sizing: border-box; width: min(1160px, calc(100vw - 28px)); height: min(92dvh, 1000px); max-width: none; max-height: none; padding: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); margin: auto; }
.gif-studio-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.gif-studio-dialog::backdrop { background: rgb(0 0 0 / .72); }
.gif-studio-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.gif-studio-bar .btn { width: auto; min-height: 36px; }
.gif-studio-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1180px) { .settings-divider { display: none; } }
@media (max-width: 560px) { .gif-studio-dialog { width: calc(100vw - 12px); height: 96dvh; } }

.eye-uploads .btn { position: relative; cursor: pointer; }
.eye-uploads input { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }
.eye-uploads label:focus-within { outline:2px solid currentColor; outline-offset:2px; }
#bootPreview { width:96px; height:96px; border-radius:50%; background:#000; outline:1px solid var(--line); }
.capacity-alert { margin: .55rem 0; padding: .75rem; border-radius: .6rem; border: 1px solid #cc8760; background: #40291d; color: #fff1dd; font-weight: 700; line-height: 1.45; }
[data-theme="light"] .capacity-alert { background: #fff1dd; color: #662f0f; }

#sdPreviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
#sdPreviews figure{margin:0;min-width:0}
#sdPreviews img{display:block;width:100%;height:auto;border-radius:50%;background:#000}
#sdPreviews figcaption{margin-top:4px;font-size:.7rem;overflow-wrap:anywhere}
