/* Shared LMStylist (Ink & Gold) styles for the generator subpages + engine (generator.js). */
:root{
  --bg:#f7f5ef; --surface:#ffffff; --surface-2:#f1eee4; --text:#1f2a3b; --muted:#647084; --line:#e6e1d3;
  --accent:#856011; --accent-600:#946812; --accent-weak:#f6eed9; --ring:rgba(181,129,36,.30); --gold:#b3861d;
  --radius:16px; --radius-sm:10px; --shadow:0 10px 30px rgba(30,40,60,.10); --shadow-sm:0 2px 8px rgba(30,40,60,.06); --red:#c0392b;
}
*{ box-sizing:border-box; }
html.booting body{ visibility:hidden; }
body{ margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; }
body.dark{ --bg:#0f141d; --surface:#161d29; --surface-2:#1e2633; --text:#e9edf4; --muted:#94a3b8; --line:#2b3545; --accent:#d6a93f; --accent-600:#c2922b; --accent-weak:#2a2415; --ring:rgba(214,169,63,.35); --gold:#d6a93f; }
a{ color:var(--accent); }
button{ font:inherit; cursor:pointer; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }

header{ background:var(--surface); border-bottom:1px solid var(--line); }
.bar{ display:flex; align-items:center; gap:12px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:11px; color:inherit; margin-left:22px; text-decoration:none; padding:4px 8px; border-radius:10px; }
a.brand:hover{ background:var(--accent-weak); }
.leaf{ width:30px; height:30px; flex:none; }
.brand .name{ font-weight:800; font-size:19px; letter-spacing:.2px; color:var(--text); border-bottom:2.5px solid var(--gold); padding-bottom:1px; line-height:1.15; }
.brand .name b{ color:var(--gold); font-weight:800; }
.brand .name .sbox{ position:relative; display:inline-block; line-height:1; }
.brand .name .sbox .sblk{ color:#111827; }
body.dark .brand .name .sbox .sblk{ color:#ffffff; }
.brand .name .sbox .sgld{ position:absolute; left:0; top:0; transform:scale(0.72); transform-origin:center; color:var(--gold); }
.spacer{ flex:1; }
.who{ color:var(--muted); font-size:14px; }
.ghost{ background:transparent; border:1px solid var(--line); color:var(--text); padding:7px 12px; border-radius:10px; }
.ghost:hover{ background:var(--accent-weak); border-color:var(--accent); }
.classconvene-pill{ display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font-weight:600; font-size:13.5px; }
.classconvene-pill:hover{ background:#e6f4ec; border-color:#7fcaa3; color:#1d2a25; }
body.dark .classconvene-pill:hover{ background:#16302a; border-color:#2f7d56; color:#e7f0eb; }

h1{ font-size:24px; margin:22px 0 2px; }
h1 .crumb{ font-size:14px; font-weight:500; color:var(--muted); }
h1 .crumb a{ color:var(--muted); }
.lead{ color:var(--muted); margin:0 0 18px; max-width:760px; }

.cols{ display:grid; grid-template-columns:minmax(0,420px) minmax(0,1fr); gap:20px; align-items:start; padding-bottom:50px; }
@media (max-width:900px){ .cols{ grid-template-columns:1fr; } }
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:18px; }

label{ display:block; font-size:13px; font-weight:600; margin:12px 0 5px; }
.hint{ color:var(--muted); font-size:12px; margin:-2px 0 5px; }
input,select,textarea{ width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg); color:var(--text); font-size:14px; font-family:inherit; }
textarea{ resize:vertical; min-height:60px; }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--ring); }
.mono{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; }

.primary{ padding:9px 14px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-weight:700; }
.primary:hover{ background:var(--accent-600); }
.btn{ padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); }
.btn:hover{ background:var(--surface-2); }
.btn.sm{ padding:6px 10px; font-size:13px; }
.row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.muted{ color:var(--muted); }
.hidden{ display:none; }
.ok{ color:var(--accent-600); font-size:13px; }

.swatches{ display:flex; gap:6px; flex-wrap:wrap; }
.sw{ width:24px; height:24px; border-radius:50%; border:2px solid transparent; cursor:pointer; }
.sw.on{ border-color:var(--text); }

.note{ background:var(--accent-weak); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13px; color:var(--text); margin-top:10px; }
.note.warn{ background:#fff7ed; border-color:#fed7aa; color:#7c4a02; }

.preview-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
iframe#preview{ width:100%; height:560px; border:1px solid var(--line); border-radius:12px; background:#fff; }
#htmlWrap{ margin-top:12px; }
#htmlBox{ width:100%; min-height:200px; }

#impBar{ position:fixed; top:0; left:0; right:0; background:#fde68a; color:#7c5e10; padding:8px 14px; text-align:center; z-index:3000; font-size:14px; box-shadow:0 2px 8px rgba(0,0,0,.18); }
