/* LAN Control — Design tab (public/design.js). Written against the console tokens only,
   so every theme (Console, Groove, After Dark, Vinyl) carries through. */

.dz-small { font-size:12.5px; }
.dz-spin { display:inline-block; width:13px; height:13px; border-radius:50%; border:2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color:var(--accent); animation:dzspin .8s linear infinite; vertical-align:-2px; }
@keyframes dzspin { to { transform:rotate(360deg); } }

/* The paper itself stays white in every theme — it is a document. */
.dz-thumb { display:block; padding:0; border:0; background:none; cursor:pointer; border-radius:6px; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(16,0,60,.10); aspect-ratio:210/297; transition:transform .2s var(--ease), box-shadow .2s; }
.dz-thumb svg { display:block; width:100%; height:100%; }
button.dz-thumb:hover { transform:translateY(-2px); box-shadow:0 2px 4px rgba(0,0,0,.08), 0 14px 30px rgba(16,0,60,.16); }
.dz-skel { width:100%; height:100%; background:linear-gradient(100deg, #fff 30%, #f4efe8 50%, #fff 70%); background-size:200% 100%; animation:dzsk 1.2s linear infinite; }
@keyframes dzsk { to { background-position:-200% 0; } }

/* ── Documents ── */
.dz-kinds { display:grid; grid-template-columns:repeat(auto-fill, minmax(420px, 1fr)); gap:18px; }
.dz-kind { display:grid; grid-template-columns:150px 1fr; gap:20px; padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm); transition:box-shadow .25s var(--ease); }
.dz-kind:hover { box-shadow:var(--shadow); }
.dz-kind .dz-thumb { width:150px; background:#fff; }
.dz-kind.soon { background:color-mix(in srgb, var(--surface) 60%, var(--soft)); }
.dz-soon { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); background:var(--soft) !important; box-shadow:none !important; border:1.5px dashed var(--line-2); cursor:default; font-size:12.5px; font-weight:500; }
.dz-soon svg.i { width:22px; height:22px; }
.dz-kb { display:flex; flex-direction:column; gap:8px; min-width:0; }
.dz-kb p { margin:0; color:var(--muted); font-size:13px; }
.dz-kt { display:flex; align-items:center; gap:10px; }
.dz-kt h3 { margin:0; font:700 19px/1.2 Montserrat, sans-serif; flex:1; }
.dz-kv { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; margin:4px 0 6px; font-size:13px; }
.dz-kv dt { color:var(--muted); }
.dz-kv dd { margin:0; }
.dz-kb .row { margin-top:auto; }
.dz-plan { margin:2px 0; padding-left:18px; font-size:13px; color:var(--ink-2); }
.dz-plan li { margin:2px 0; }

/* ── Library ── */
.dz-crumb { display:flex; align-items:center; gap:6px; margin:-6px 0 14px -8px; color:var(--muted); font-size:13px; }
.dz-libhead { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.dz-libhead h2 { margin:0; font:700 21px/1.2 Montserrat, sans-serif; }
.dz-libhead p { margin:4px 0 0; font-size:13px; max-width:620px; }
.dz-lib { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:22px; }
.dz-card { display:flex; flex-direction:column; gap:12px; }
.dz-card .dz-thumb { background:#fff; outline:2px solid transparent; outline-offset:3px; }
.dz-card.on .dz-thumb { outline-color:var(--gold); }
.dz-cb { display:flex; flex-direction:column; gap:4px; }
.dz-ct { display:flex; align-items:center; gap:8px; }
.dz-ct b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.dz-ct .pill svg.i { width:12px; height:12px; }
.dz-note { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dz-cb .row { margin-top:6px; gap:2px; flex-wrap:nowrap; }
.dz-cb .btn.ghost { width:30px; padding:0; }
.dz-drawer { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); padding:16px 18px 18px; margin-bottom:22px; display:flex; flex-direction:column; gap:12px; animation:rise .25s var(--ease); position:relative; }
.dz-drawer::before { content:""; position:absolute; left:0; top:0; right:0; height:2px; border-radius:var(--r) var(--r) 0 0; background:var(--strip); }
.dz-dh { display:flex; align-items:center; justify-content:space-between; }
.dz-dh b { display:flex; align-items:center; gap:8px; font-weight:600; }
.dz-dh svg.i { color:var(--gold); }
.dz-ideas { display:flex; flex-wrap:wrap; gap:6px; }
.dz-starts { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.dz-start { display:flex; flex-direction:column; gap:6px; text-align:left; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--bg); cursor:pointer; font:inherit; color:var(--ink); transition:border-color .15s, background .15s; }
.dz-start:hover { border-color:var(--gold); background:var(--surface); }
.dz-start > svg.i { width:28px; height:28px; color:var(--muted); margin:18px auto; }
.dz-start b { font-weight:600; font-size:13.5px; }
.dz-start span { font-size:12px; color:var(--muted); }
.dz-mini { aspect-ratio:210/297; overflow:hidden; border-radius:4px; box-shadow:0 1px 6px rgba(0,0,0,.1); background:#fff; }
.dz-mini svg { width:100%; height:100%; display:block; }
.dz-ups { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.dz-ups > div { padding:12px 14px; border-radius:10px; background:var(--soft); }
.dz-ups b { font-weight:600; font-size:13.5px; }
.dz-ups p { margin:4px 0 0; font-size:12.5px; color:var(--muted); }

/* ── Editor ── */
.dz-ed { display:flex; flex-direction:column; height:calc(100dvh - var(--hdr)); background:var(--bg); }
.dz-top { display:flex; align-items:center; gap:6px; padding:10px 14px; border-bottom:1px solid var(--line); background:var(--surface); position:relative; flex-wrap:nowrap; min-width:0; }
.dz-top > * { flex-shrink:0; }
.dz-top::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity:.6; }
.dz-name { border-color:transparent; background:none; font:700 16px/1.2 Montserrat, sans-serif; flex:0 1 280px !important; width:0; min-width:110px; height:34px; }
.dz-name:hover { border-color:var(--line-2); }
.dz-sp { flex:1; }
.dz-src { height:30px; font-size:12.5px; width:170px; flex-shrink:1 !important; min-width:90px; }
.dz-top .pill svg.i { width:12px; height:12px; }
.dz-body { flex:1; min-height:0; display:grid; grid-template-columns:272px 1fr 318px; }
.dz-left, .dz-right { background:var(--surface); overflow:auto; min-height:0; }
.dz-left { border-right:1px solid var(--line); display:flex; flex-direction:column; }
.dz-right { border-left:1px solid var(--line); }
.dz-tabs { margin:0 12px 6px; display:flex; position:sticky; top:12px; z-index:3; box-shadow:0 -12px 0 12px var(--surface); }
.dz-left { padding-top:12px; }
.dz-tabs button { flex:1; justify-content:center; padding:6px 8px; font-size:12.5px; }
.dz-tabs svg.i { width:14px; height:14px; }
.dz-lp { padding:6px 12px 18px; flex:1; }

.dz-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.dz-li { display:flex; align-items:center; gap:2px; border-radius:10px; border:1px solid transparent; transition:background .15s, border-color .15s; position:relative; }
.dz-li:hover, .dz-li.hov { background:var(--hover); }
.dz-li.on { background:var(--accent-soft); border-color:color-mix(in srgb, var(--accent) 25%, transparent); }
.dz-li.off .dz-lt { opacity:.45; }
.dz-li.drag { opacity:.4; }
.dz-li.above::before, .dz-li.below::after { content:""; position:absolute; left:8px; right:8px; height:2px; background:var(--gold); border-radius:2px; }
.dz-li.above::before { top:-3px; } .dz-li.below::after { bottom:-3px; }
.dz-grip { cursor:grab; color:var(--muted); display:grid; place-items:center; width:22px; opacity:.55; }
.dz-grip svg.i { width:14px; height:14px; }
.dz-lt { flex:1; min-width:0; text-align:left; border:0; background:none; font:inherit; color:var(--ink); padding:7px 2px; cursor:pointer; display:flex; flex-direction:column; }
.dz-lt b { font-weight:600; font-size:13px; }
.dz-lt span { font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dz-li .icon-btn { width:28px; height:28px; opacity:.6; }
.dz-li .icon-btn:hover { opacity:1; }
.dz-li .icon-btn svg.i { width:15px; height:15px; }
.dz-add { padding:10px 0 4px; }
.dz-addmenu { display:flex; flex-direction:column; gap:2px; margin-top:6px; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
.dz-addmenu button { text-align:left; border:0; background:none; font:inherit; color:var(--ink); padding:7px 9px; border-radius:8px; cursor:pointer; display:flex; flex-direction:column; }
.dz-addmenu button:hover { background:var(--hover); }
.dz-addmenu b { font-weight:600; font-size:13px; }
.dz-addmenu span { font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dz-addsub { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-ink); padding:8px 9px 2px; font-weight:600; }
.dz-hist { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.dz-hist li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:10px; background:var(--bg); font-size:13px; }
.dz-hist li div { display:flex; flex-direction:column; }
.dz-hist li span { font-size:11.5px; color:var(--muted); }

.dz-mid { display:flex; flex-direction:column; min-width:0; min-height:0; position:relative;
  background:radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0/18px 18px, var(--bg); }
.dz-zoom { display:flex; align-items:center; gap:4px; padding:8px 14px 0; font-size:12.5px; color:var(--muted); }
.dz-zoom #zval { min-width:40px; text-align:center; font-variant-numeric:tabular-nums; }
.dz-zoom .icon-btn { width:28px; height:28px; }
.dz-canvas { flex:1; overflow:auto; min-height:0; padding:14px 24px 120px; }
.dz-pages { display:flex; flex-direction:column; align-items:center; gap:22px; }
.dz-page { position:relative; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.1), 0 16px 40px rgba(16,0,60,.14); border-radius:2px; }
.dz-page svg { display:block; width:100%; height:auto; }
.dz-pn { position:absolute; right:0; bottom:-18px; font-size:11px; color:var(--muted); }
.dz-hit { fill:transparent; stroke:transparent; stroke-width:1.2; cursor:pointer; transition:stroke .15s, fill .15s; }
.dz-hit:hover, .dz-hit.hov { stroke:color-mix(in srgb, #ffa904 70%, transparent); stroke-dasharray:3 2; }
.dz-hit.sel { stroke:#ffa904; stroke-width:1.6; stroke-dasharray:none; fill:rgba(255,169,4,.05); }

.dz-ai { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); width:min(640px, calc(100% - 32px)); display:flex; align-items:flex-end; gap:8px; padding:8px 8px 8px 12px;
  background:color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter:blur(14px); border:1px solid var(--line-2); border-radius:16px; box-shadow:var(--shadow-lg); }
.dz-ai textarea { border:0; box-shadow:none; background:none; min-height:22px; max-height:120px; padding:6px 0; resize:none; font-size:13.5px; }
.dz-ai textarea:focus { box-shadow:none; }
.dz-ai-i { color:var(--gold); display:grid; place-items:center; height:34px; }
.dz-ai .btn { border-radius:11px; width:36px; padding:0; }
.dz-ai.busy { border-color:var(--gold); }
.dz-ai.busy .dz-ai-i { animation:dzspin 1.6s linear infinite; }

.dz-empty { padding:40px 22px; text-align:center; color:var(--muted); font-size:13px; }
.dz-empty > svg.i { width:30px; height:30px; margin-bottom:8px; color:var(--gold); }
.dz-empty b { display:block; color:var(--ink); font-weight:600; margin-bottom:6px; font-size:14px; }
.dz-empty a { color:var(--accent-text); text-decoration:underline; }
.dz-rh { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:14px 14px 10px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--surface); z-index:2; }
.dz-rh small { font-size:11.5px; color:var(--muted); }
.dz-rh h3 { margin:2px 0 0; font:700 16px/1.2 Montserrat, sans-serif; }
.dz-rh .row { gap:0; flex-wrap:nowrap; }
.dz-rh .icon-btn { width:28px; height:28px; }
.dz-rh .icon-btn svg.i { width:15px; height:15px; }
.icon-btn.danger:hover { color:var(--bad); background:var(--bad-soft); }
.icon-btn[disabled] { opacity:.35; pointer-events:none; }

.dz-form { display:flex; flex-direction:column; gap:14px; padding:14px; }
.dz-lp .dz-form { padding:6px 0; }
.dz-f { display:flex; flex-direction:column; gap:6px; }
.dz-f > span { font-size:12px; font-weight:600; color:var(--ink-2); display:flex; align-items:center; justify-content:space-between; }
.dz-f input:not([type=range]):not([type=color]):not([type=checkbox]), .dz-f select, .dz-f textarea { width:100%; height:34px; font-size:13px; }
.dz-f textarea { height:auto; min-height:60px; }
.dz-tokbtn { border:0; background:var(--gold-soft); color:var(--gold-ink); border-radius:6px; height:22px; padding:0 6px; cursor:pointer; display:grid; place-items:center; }
.dz-tokbtn svg.i { width:13px; height:13px; }
.dz-seg { display:flex; flex-wrap:wrap; gap:3px; padding:3px; background:var(--soft); border-radius:9px; }
.dz-seg button { flex:1 1 auto; border:0; background:none; font:inherit; font-size:12.5px; color:var(--muted); padding:5px 8px; border-radius:7px; cursor:pointer; white-space:nowrap; }
.dz-seg button:hover { color:var(--ink); }
.dz-seg button.on { background:var(--surface); color:var(--accent-text); box-shadow:var(--shadow-sm), 0 0 0 1px var(--line); font-weight:500; }
.dz-range { display:flex; align-items:center; gap:8px; }
.dz-range input[type=range] { flex:1; accent-color:var(--accent); height:auto; border:0; padding:0; box-shadow:none; background:none; }
.dz-num { width:62px !important; flex:none; padding:0 6px !important; text-align:right; font-variant-numeric:tabular-nums; }
.dz-range small { color:var(--muted); width:18px; }
.dz-sw { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.dz-sw button, .dz-cust { width:26px; height:26px; border-radius:50%; border:1px solid var(--line-2); background:var(--c); cursor:pointer; padding:0; box-shadow:inset 0 0 0 2px var(--surface); transition:transform .1s; }
.dz-sw button:hover { transform:scale(1.08); }
.dz-sw button.on, .dz-cust.on { outline:2px solid var(--accent); outline-offset:1px; }
.dz-cust { position:relative; display:grid; place-items:center; background:conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); overflow:hidden; }
.dz-cust input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.dz-cust span { color:#fff; font-weight:700; font-size:14px; text-shadow:0 1px 2px rgba(0,0,0,.4); pointer-events:none; }
.dz-tog { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; font-size:13px; cursor:pointer; }
.dz-tog input { display:none; }
.dz-tog i { width:32px; height:18px; border-radius:99px; background:var(--line-2); position:relative; flex:none; transition:background .2s; }
.dz-tog i::after { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:transform .2s var(--ease); }
.dz-tog input:checked + i { background:var(--accent); }
.dz-tog input:checked + i::after { transform:translateX(14px); }
.dz-rows { display:flex; flex-direction:column; gap:6px; }
.dz-row2 { display:flex; gap:4px; align-items:center; }
.dz-row2 input { flex:1; min-width:0; }
.dz-row2 .icon-btn { width:28px; height:28px; }
.dz-colbox { display:flex; flex-direction:column; gap:4px; padding:8px; border-radius:10px; background:var(--bg); border:1px solid var(--line); }
.dz-icol { display:grid; grid-template-columns:70px 1fr auto 78px 28px; gap:4px; align-items:center; }
.dz-icol b { font-size:12px; font-weight:600; }
.dz-icol small { font-size:11px; white-space:nowrap; }
.dz-icol select { padding-right:22px !important; }
.dz-icol .icon-btn { width:28px; height:28px; }
.dz-img { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.dz-img img { max-width:100%; max-height:70px; border-radius:6px; padding:6px; background:repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/12px 12px; border:1px solid var(--line); }
.dz-tokmenu { position:fixed; z-index:80; width:320px; max-height:330px; overflow:auto; background:var(--surface); border:1px solid var(--line-2); border-radius:12px; box-shadow:var(--shadow-lg); padding:6px; }
.dz-tokmenu .dz-tg { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-ink); padding:8px 8px 3px; font-weight:600; }
.dz-tokmenu button { display:flex; flex-direction:column; align-items:flex-start; width:100%; text-align:left; border:0; background:none; padding:5px 8px; border-radius:7px; cursor:pointer; color:var(--ink); font:inherit; }
.dz-tokmenu button:hover { background:var(--hover); }
.dz-tokmenu code { font-size:12px; color:var(--accent-text); }
.dz-tokmenu span { font-size:11.5px; color:var(--muted); }

.dz-pals { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.dz-pals > * { min-width:0; }
.dz-pal { display:flex; align-items:center; gap:3px; padding:6px 8px; border:1px solid var(--line); border-radius:9px; background:var(--bg); cursor:pointer; font:inherit; font-size:11.5px; color:var(--ink-2); }
.dz-pal:hover { border-color:var(--gold); }
.dz-pal i { width:12px; height:12px; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); }
.dz-pal span { margin-left:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dz-colors { display:grid; grid-template-columns:1fr; gap:4px; }
.dz-crow { display:flex; align-items:center; gap:8px; font-size:12px; padding:4px 6px; border-radius:8px; background:var(--bg); cursor:pointer; }
.dz-crow input { width:26px; height:26px; padding:0; border:0; border-radius:50%; overflow:hidden; background:none; cursor:pointer; flex:none; box-shadow:none; }
.dz-crow input::-webkit-color-swatch-wrapper { padding:0; } .dz-crow input::-webkit-color-swatch { border:1px solid var(--line-2); border-radius:50%; }
.dz-crow span { flex:1; }
.dz-crow code { font-size:10.5px; color:var(--muted); }
.dz-4 { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.dz-4 label, .dz-2 label { display:flex; flex-direction:column; gap:2px; }
.dz-4 small { font-size:11px; color:var(--muted); }
.dz-4 input { text-align:center; padding:0 4px !important; }
.dz-2 { display:grid; grid-template-columns:90px 1fr; gap:8px; }

/* ── Business details ── */
.dz-biz { display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:22px; align-items:start; }
.dz-biz fieldset { border:0; padding:0; margin:0 0 18px; }
.dz-biz legend { font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; color:var(--gold-ink); margin-bottom:8px; }
.dz-bizg { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.dz-bizg label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:500; color:var(--ink-2); }
.dz-bizg label.wide { grid-column:1 / -1; }
.dz-bizg code { font-size:10.5px; color:var(--muted); font-weight:400; }
.dz-bizg input, .dz-bizg textarea { width:100%; }
.dz-bizp { position:sticky; top:20px; display:flex; flex-direction:column; gap:8px; }
.dz-bizp .dz-thumb { background:#fff; cursor:default; }

/* ── Narrow screens ── */
@media (max-width: 1180px) { .dz-body { grid-template-columns:240px 1fr 290px; } }
@media (max-width: 1320px) { .dz-top .dz-hide-s { display:none; } }
@media (max-width: 980px) {
  .dz-ed { height:auto; min-height:calc(100dvh - var(--hdr)); }
  main.full:has(.dz-ed) { overflow:auto; }
  .dz-body { grid-template-columns:1fr; }
  .dz-mid { order:1; min-height:70vh; }
  .dz-right { order:2; border-left:0; border-top:1px solid var(--line); }
  .dz-left { order:3; border-right:0; border-top:1px solid var(--line); }
  .dz-ai { position:sticky; bottom:12px; margin:0 auto 12px; transform:none; left:auto; }
  .dz-canvas { padding-bottom:20px; }
  .dz-hide-s { display:none; }
  .dz-name { width:auto; flex:1; }
  .dz-kinds { grid-template-columns:1fr; }
  .dz-biz { grid-template-columns:1fr; }
  .dz-bizp { display:none; }
  .dz-ups { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .dz-kind { grid-template-columns:96px 1fr; gap:14px; padding:14px; }
  .dz-kind .dz-thumb { width:96px; }
  .dz-lib { grid-template-columns:1fr 1fr; gap:14px; }
  .dz-bizg { grid-template-columns:1fr; }
  .dz-src { max-width:130px; }
}

/* ── Logo (public/design-logo.js) and LAN's logo in Business details ── */
.chk { background-color:#fff; background-image:linear-gradient(45deg, #eceef6 25%, transparent 25%, transparent 75%, #eceef6 75%), linear-gradient(45deg, #eceef6 25%, transparent 25%, transparent 75%, #eceef6 75%); background-size:16px 16px; background-position:0 0, 8px 8px; }
.dz-logoslot { width:180px; height:96px; display:grid; place-items:center; border-radius:10px; border:1px solid var(--line); padding:10px; flex-shrink:0; background-color:#fff;
  background-image:linear-gradient(45deg, #f3f4f9 25%, transparent 25%, transparent 75%, #f3f4f9 75%), linear-gradient(45deg, #f3f4f9 25%, transparent 25%, transparent 75%, #f3f4f9 75%); background-size:14px 14px; background-position:0 0, 7px 7px; }
.dz-logoslot img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
.dz-logoslot.none { background:var(--soft); border-style:dashed; font-size:13px; }
.dz-bizlogo { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.dz-bizlogo p { margin:0 0 8px; max-width:360px; }
.dz-note2 small a { color:var(--accent-text); }

.lg { display:flex; flex-direction:column; gap:22px; }
.lg-now { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:20px; padding:18px; align-items:center; }
.lg-nowl { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.lg-nowl h2 { margin:0 0 4px; font:700 19px/1.2 Montserrat, sans-serif; }
.lg-nowl p { margin:0 0 10px; max-width:420px; }
.lg-where { display:flex; gap:12px; }
.lg-doc { display:flex; flex-direction:column; align-items:center; gap:6px; border:0; background:none; padding:0; cursor:pointer; font:inherit; font-size:12px; color:var(--muted); }
.lg-doc .dz-thumb { width:86px; background:#fff; }
.lg-doc:hover span { color:var(--ink); }

.lg-maker { padding:0; overflow:hidden; }
.lg-top { display:flex; align-items:center; gap:6px; padding:10px 14px; border-bottom:1px solid var(--line); position:relative; flex-wrap:wrap; }
.lg-top::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity:.6; }
.lg-top .dz-sp { flex:1; }
.lg-top .pill svg.i { width:12px; height:12px; }
.lg-body { display:grid; grid-template-columns:330px minmax(0, 1fr); min-height:560px; }
.lg-ctl { border-right:1px solid var(--line); padding:6px 14px 18px; overflow:auto; max-height:760px; display:flex; flex-direction:column; }
.lg-g { border-bottom:1px solid var(--line); padding:10px 0; display:flex; flex-direction:column; gap:10px; }
.lg-g[open] { gap:10px; }
.lg-g > summary { cursor:pointer; list-style:none; font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; color:var(--gold-ink); display:flex; justify-content:space-between; }
.lg-g > summary::after { content:"+"; color:var(--muted); font-weight:400; }
.lg-g[open] > summary::after { content:"–"; }
.lg-g > summary::-webkit-details-marker { display:none; }
.lg-g .dz-f + .dz-f, .lg-g > * + * { margin-top:8px; }
.lg-g .dz-2 { grid-template-columns:1fr 1fr; }
.lg-g .row { gap:14px; flex-wrap:wrap; }
.lg-col { display:flex; align-items:center; gap:8px; height:34px; }
.lg-col input[type=color] { width:38px; height:30px; padding:2px; border-radius:7px; border:1px solid var(--line-2); background:var(--surface); cursor:pointer; }
.lg-col code { font-size:11.5px; color:var(--muted); }
.lg-shapes { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.lg-shapes button { display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 4px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; font:inherit; font-size:11px; color:#6b5f5a; }
.lg-shapes button.on { border-color:var(--gold); box-shadow:0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent); color:#0e0a2e; }
.lg-shapes canvas { width:36px; height:36px; }
.lg-ways { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.lg-ways button { display:flex; align-items:center; gap:3px; padding:6px 8px; border:1px solid var(--line); border-radius:9px; background:var(--surface); cursor:pointer; font:inherit; font-size:11.5px; color:var(--ink-2); text-align:left; }
.lg-ways button:hover { border-color:var(--line-2); }
.lg-ways i { width:12px; height:12px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 1px rgba(0,0,0,.08); }
.lg-ways span { margin-left:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.lg-stage { display:flex; flex-direction:column; gap:14px; padding:16px; min-width:0; background:var(--bg); }
.lg-bd { display:flex; gap:4px; flex-wrap:wrap; }
.lg-bd button { display:flex; align-items:center; gap:6px; border:1px solid transparent; background:none; border-radius:8px; padding:4px 9px; cursor:pointer; font:inherit; font-size:12px; color:var(--muted); }
.lg-bd button.on { border-color:var(--line-2); background:var(--surface); color:var(--ink); }
.lg-bd i { width:14px; height:14px; border-radius:4px; box-shadow:0 0 0 1px rgba(0,0,0,.12); background-size:8px 8px; }
.lg-canvas { flex:1; min-height:340px; display:grid; place-items:center; border-radius:14px; border:1px solid var(--line); padding:20px; transition:background .2s; }
.lg-canvas canvas { display:block; max-width:100%; }
.lg-small { display:flex; flex-direction:column; gap:6px; }
.lg-paper { display:flex; align-items:center; gap:14px; background:#fff; border-radius:8px; padding:14px 18px; box-shadow:0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(16,0,60,.08); border-bottom:2px solid #ffa904; }
.lg-paper b { display:block; font:700 15px/1.2 Helvetica, Arial, sans-serif; color:#0e0a2e; }
.lg-paper span { font:11px/1.3 Helvetica, Arial, sans-serif; color:#6b6890; }
.lg-ai { position:static; transform:none; width:auto; margin:0; }
.lg-ai .btn { width:auto; padding:0 12px; }
.lg-ai .btn.primary { width:36px; padding:0; }

.lg-ideas h3 { margin:0; font:700 17px/1.2 Montserrat, sans-serif; }
.lg-ideas > p { margin:2px 0 12px; }
.lg-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:14px; }
.lg-card { display:flex; flex-direction:column; gap:8px; padding:10px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); cursor:pointer; font:inherit; text-align:left; color:var(--ink); transition:box-shadow .2s, transform .2s; }
button.lg-card:hover { box-shadow:var(--shadow); transform:translateY(-1px); }
article.lg-card { cursor:default; }
.lg-card.on { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
.lg-card.open { outline:2px dashed color-mix(in srgb, var(--gold) 55%, transparent); outline-offset:2px; }
.lg-tile { height:110px; display:grid; place-items:center; border-radius:9px; overflow:hidden; padding:8px; }
.lg-tile img { max-width:100%; max-height:100%; object-fit:contain; }
.lg-tile canvas { max-width:100%; }
.lg-card b { font-size:13.5px; font-weight:600; }
.lg-ct { display:flex; align-items:center; gap:8px; justify-content:space-between; min-width:0; }
.lg-ct b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg-card .row { gap:6px; flex-wrap:wrap; }

@media (max-width: 980px) {
  .lg-now { grid-template-columns:1fr; }
  .lg-body { grid-template-columns:1fr; }
  .lg-ctl { order:2; border-right:0; border-top:1px solid var(--line); max-height:none; }
  .lg-canvas { min-height:220px; }
}
@media (max-width: 520px) {
  .lg-where { display:none; }
  .lg-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .lg-tile { height:80px; }
  .dz-logoslot { width:140px; height:80px; }
}

/* ── Client logos (Design → Client logos, the client file, the portal) ── */
.lg-for { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm); }
.lg-for label { font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; color:var(--gold-ink); }
.lg-for select { flex:1 1 320px; min-width:0; height:38px; font-size:14px; }
.lg-for input { flex:0 1 220px; min-width:0; height:38px; }
.lg-empty { padding:26px; }
.lg-empty h2 { margin:0 0 6px; font:700 19px/1.2 Montserrat, sans-serif; }
.lg-empty p { margin:0; max-width:620px; }
.lg-code { font:500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; margin-left:6px; }
.lg-wait { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius:10px; background:color-mix(in srgb, var(--gold) 8%, transparent); margin-top:6px; }
.lg-wait > div { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.lg-oh { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.lg-oh h3 { margin:0; font:700 17px/1.2 Montserrat, sans-serif; }
.lg-oh .n { font:600 12px/1 inherit; color:var(--muted); margin-left:4px; }
.lg-oh p { margin:2px 0 0; }
.lg-card { position:relative; }
button.lg-tile { border:0; cursor:pointer; width:100%; }
.lg-card.picked { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
.lg-tick { position:absolute; top:14px; left:14px; z-index:1; display:flex; align-items:center; gap:4px; cursor:pointer; }
.lg-tick input { width:18px; height:18px; accent-color:#ffa904; cursor:pointer; }
.lg-tick span { min-width:18px; height:18px; border-radius:9px; background:#ffa904; color:#fff; font:700 11px/18px Helvetica, Arial, sans-serif; text-align:center; }
.lg-tick span:empty { display:none; }
.lg-drawer { border:1px solid var(--line-2); border-radius:var(--r); background:var(--surface); padding:14px; margin-bottom:14px; display:flex; flex-direction:column; gap:12px; }
.lg-drawer .dz-dh { display:flex; justify-content:space-between; align-items:center; }
.lg-dest { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; }
.lg-radio { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.lg-radio:has(input:checked) { border-color:var(--gold); background:color-mix(in srgb, var(--gold) 8%, transparent); }
.lg-radio span { display:flex; flex-direction:column; min-width:0; }
.lg-radio b { font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-logo { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.cl-logo p { margin:0 0 10px; max-width:460px; }
.cl-logoimg { width:220px; height:120px; display:grid; place-items:center; padding:12px; border-radius:10px; border:1px solid var(--line); flex-shrink:0; background-color:#fff;
  background-image:linear-gradient(45deg, #f3f4f9 25%, transparent 25%, transparent 75%, #f3f4f9 75%), linear-gradient(45deg, #f3f4f9 25%, transparent 25%, transparent 75%, #f3f4f9 75%); background-size:14px 14px; background-position:0 0, 7px 7px; }
.cl-logoimg img { max-width:100%; max-height:100%; object-fit:contain; }
@media (max-width: 520px) { .cl-logoimg { width:100%; } .lg-for input { flex:1 1 100%; } }
