/* livelinks editor: top bar, icon rail, left panel, canvas with the page in the middle, inspector on the right */
:root {
  --bg: #0e0e0f; --chrome: #151516; --panel: #18181a; --raise: #202022; --raise-2: #28282b;
  --line: #2a2a2d; --line-2: #343438; --text: #f4f2ee; --muted: #9b9893; --faint: #6c6a66;
  --coral: #fb9280; --coral-soft: rgb(251 146 128 / .14); --on-coral: #1a1a1a;
  --ok: #7fd4a0; --error: #ff8a7a; --radius: 12px; --ease: cubic-bezier(.16, 1, .3, 1);
  --top: 56px; --side: 300px; --insp-w: 320px;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ph { font-size: 18px; line-height: 1; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2c2f; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- shell ---------- */
.ed { display: grid; grid-template-rows: var(--top) 1fr; height: 100dvh; }
.ed-top { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); min-width: 0; }
.ed-body { display: grid; grid-template-columns: var(--side) 1fr var(--insp-w); min-height: 0; }

/* ---------- top bar ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex: none; }
.logo img { width: 28px; height: 28px; }
.logo span { font-size: 18px; letter-spacing: -.035em; } .logo b { font-weight: 800; }
.top-sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.page-pill { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 5px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); min-width: 0; }
.page-pill .mini { width: 24px; height: 24px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: var(--raise-2); color: var(--muted); font-weight: 800; font-size: 11px; flex: none; }
.page-pill .mini img { width: 100%; height: 100%; object-fit: cover; }
.page-pill .url { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.page-pill .url .dom { color: var(--muted); font-weight: 500; }
.page-pill .url b { color: var(--text); font-weight: 700; }
.pill-sep { width: 1px; height: 18px; background: var(--line-2); flex: none; }
.pill-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.pill-copy:hover { background: var(--raise-2); color: var(--text); }
.pill-copy .ph { font-size: 14px; }
.pill-copy.done { color: var(--ok); }
.top-mid { margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.seg-mini { display: flex; padding: 3px; gap: 2px; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; }
.seg-mini button { width: 34px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); display: grid; place-items: center; }
.seg-mini button[aria-pressed="true"] { background: var(--raise-2); color: var(--text); }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.save { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.save i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save.saving i { background: var(--muted); animation: blink 1s infinite; } .save.error i { background: var(--error); } .save.error { color: var(--error); }
.save.idle i, .save.dirty i, .save.idle span, .save.dirty span { display: none; }
.save-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; margin-left: 6px; border: 0; border-radius: 10px; background: var(--coral); color: #1a1a1a; font-weight: 800; font-size: 13.5px; box-shadow: 0 0 0 4px rgb(251 146 128 / .18); animation: savePop .35s var(--ease); }
.save-btn:hover { filter: brightness(1.06); } .save-btn .ph { font-size: 16px; }
.save-btn[hidden] { display: none; }
@keyframes savePop { from { transform: scale(.85); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
.tbtn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tbtn:hover { background: var(--raise-2); }
.tbtn.primary { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.tbtn.primary:hover { background: #ffa595; }
.tbtn.icon { width: 34px; padding: 0; justify-content: center; }

/* ---------- sidebar: tabs on top, quiet content below ---------- */
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px 0; gap: 2px; border-bottom: 1px solid var(--line); }
.side-tab { position: relative; height: 52px; border: 0; background: none; color: var(--faint); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; letter-spacing: .01em; transition: color .15s; }
.side-tab .ph { font-size: 19px; }
.side-tab:hover { color: var(--text); }
.side-tab[aria-selected="true"] { color: var(--text); }
.side-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.side-head { padding: 18px 18px 6px; }
.side-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.side-head p { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.side-body { flex: 1; overflow-y: auto; padding: 10px 18px 24px; }
.sec { padding: 14px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 4px; }
.sec-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.sec-title small { font-weight: 500; color: var(--faint); }

/* search */
.search { position: relative; }
.search .ph { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 15px; pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 12px 0 33px; background: var(--raise); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.search input:focus { outline: none; border-color: var(--line-2); background: var(--raise-2); }
.search input::placeholder { color: var(--faint); }

/* block list */
.blist { display: grid; gap: 2px; margin-top: 12px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; border-radius: 10px; background: none; text-align: left; width: 100%; }
.brow:hover { background: var(--raise); }
.brow .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--raise); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; }
.brow b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.brow span { display: block; font-size: 12px; color: var(--faint); }

/* empty states */
.empty-state { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 38px 12px; color: var(--faint); }
.empty-state .ph { font-size: 26px; color: var(--line-2); margin-bottom: 4px; }
.empty-state b { color: var(--muted); font-size: 13px; font-weight: 600; }
.empty-state span { font-size: 12.5px; max-width: 26ch; }

/* ---------- fields (used by panels and the inspector) ---------- */
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f > label, .f .lab { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f .lab small { font-weight: 600; color: var(--faint); }
.in, .ta, .sel { width: 100%; height: 38px; padding: 0 11px; background: var(--raise); border: 1px solid var(--line); border-radius: 9px; transition: border-color .15s; }
.ta { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.in:hover, .ta:hover, .sel:hover { border-color: var(--line-2); }
.in:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--coral); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; }
.seg button { height: 30px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.seg button[aria-pressed="true"] { background: var(--raise-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-weight: 600; }
.sw input { appearance: none; width: 36px; height: 21px; border-radius: 999px; background: #3a3a3e; position: relative; flex: none; transition: background .2s; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.sw input:checked { background: var(--coral); } .sw input:checked::after { transform: translateX(15px); }
.sw input:disabled { opacity: .4; }
.color { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 38px; padding: 0 8px 0 5px; background: var(--raise); border: 1px solid var(--line); border-radius: 9px; }
.color input[type="color"] { width: 28px; height: 28px; border: 0; padding: 0; background: none; border-radius: 7px; flex: none; }
.color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .color input[type="color"]::-webkit-color-swatch { border: 1px solid rgb(255 255 255 / .15); border-radius: 7px; }
.color input[type="text"] { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; text-transform: uppercase; font-size: 12.5px; font-weight: 600; }
.color input[type="text"]:focus { outline: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > * { min-width: 0; }
input[type="range"] { width: 100%; accent-color: var(--coral); }
.upload { display: flex; align-items: center; gap: 12px; }
.upload .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--raise) center / cover; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); flex: none; overflow: hidden; }
.upload .thumb.round { border-radius: 50%; font-size: 22px; font-weight: 800; color: var(--text); }
.upload .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload .btns { display: grid; gap: 6px; }
.hint { font-size: 12px; color: var(--muted); } .hint.ok { color: var(--ok); } .hint.err { color: var(--error); }
.count { font-size: 11px; color: var(--faint); text-align: right; }

/* accordion sections in Design / Settings */
.acc { border-bottom: 1px solid var(--line); }
.acc > button { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; font-weight: 600; font-size: 13px; padding: 0 2px; color: var(--text); }
.acc > button .ph { color: var(--muted); transition: transform .3s var(--ease); font-size: 15px; }
.acc.open > button .ph { transform: rotate(180deg); }
.acc > div { padding: 2px 4px 14px; display: none; }
.acc.open > div { display: block; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset { aspect-ratio: 3 / 4; border-radius: 10px; border: 2px solid transparent; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-align: left; font-size: 11px; font-weight: 800; transition: transform .2s var(--ease); }
.preset:hover { transform: translateY(-1px); }
.preset i { display: block; height: 9px; border-radius: 4px; }
.preset[aria-pressed="true"] { border-color: var(--coral); }
.pro-tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); letter-spacing: .03em; }

/* ---------- canvas ---------- */
.ed-canvas {
  position: relative; min-width: 0; overflow: hidden; display: grid; place-items: center;
  background-color: #111113;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .018) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: center center;
}
.ed-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgb(0 0 0 / .45)); }
.stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 28px 24px 18px; justify-content: center; }
.device { position: relative; height: min(800px, calc(100dvh - var(--top) - 96px)); aspect-ratio: 390 / 844; border-radius: 52px; padding: 11px; background: #050506; border: 1px solid #2d2d30; box-shadow: 0 0 0 1px #000, 0 40px 90px rgb(0 0 0 / .6), inset 0 0 0 2px #1a1a1c; transition: aspect-ratio .4s var(--ease), border-radius .4s var(--ease); }
.device::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 3; }
.device.desktop { aspect-ratio: auto; width: min(1000px, calc(100vw - var(--side) - var(--insp-w) - 80px)); border-radius: 16px; padding: 30px 8px 8px; }
.device.desktop::before { top: 11px; left: 18px; width: 40px; height: 8px; margin: 0; border-radius: 0; background: radial-gradient(circle, #3a3a3d 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; }
.screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden auto; background: #111; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.device.desktop .screen { border-radius: 9px; }
.screen .llpage { min-height: 100%; }
.screen .llpage-inner { padding-top: 64px; }
.device.desktop .screen .llpage-inner { padding-top: 56px; }
.stage-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: rgb(21 21 22 / .8); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.stage-hint kbd { font: 700 11px/1 "Public Sans", sans-serif; padding: 3px 6px; border-radius: 5px; background: var(--raise-2); border: 1px solid var(--line-2); color: var(--text); }

/* selection on the page: hover hint, then the frame + handles + bar take over */
.screen .selectable { cursor: grab; outline: 1.5px dashed transparent; outline-offset: 5px; transition: outline-color .15s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.screen .selectable:hover { outline-color: rgb(251 146 128 / .5); }
.screen .selectable.is-selected { outline-color: transparent; touch-action: none; }
.screen .selectable img { -webkit-user-drag: none; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.dragging .screen { scroll-behavior: auto; }

.frame { position: absolute; z-index: 5; pointer-events: none; border: 1.5px solid var(--coral); border-radius: 10px; box-shadow: 0 0 0 4px rgb(251 146 128 / .12); }
.h-rotate { position: absolute; left: 50%; top: -34px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; pointer-events: auto; cursor: grab; box-shadow: 0 4px 12px rgb(0 0 0 / .4); touch-action: none; }
.h-rotate::after { content: ""; position: absolute; top: 26px; left: 50%; width: 1.5px; height: 8px; background: var(--coral); }
.h-rotate .ph { font-size: 14px; }
.h-scale { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 4px; background: #fff; border: 2px solid var(--coral); pointer-events: auto; cursor: nwse-resize; touch-action: none; }
.h-rotate::before, .h-scale::before { content: ""; position: absolute; inset: -10px; }   /* bigger touch target */

.tools { position: absolute; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: rgb(28 28 30 / .96); border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgb(0 0 0 / .55); backdrop-filter: blur(10px); white-space: nowrap; animation: toolsIn .25s var(--ease); }
@keyframes toolsIn { from { opacity: 0; transform: translateY(4px); } }
.tools button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.tools button:hover { background: var(--raise-2); }
.tools button:disabled { opacity: .35; cursor: default; background: none; }
.tools button.t-text { color: var(--coral); }
.tools button.danger:hover { color: var(--error); }
.tools .ph { font-size: 17px; }
.t-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 3px; }
.t-scale { min-width: 40px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.guide { position: absolute; z-index: 4; left: 50%; top: 24px; bottom: 56px; width: 1px; margin-left: -.5px; background: repeating-linear-gradient(to bottom, var(--coral) 0 6px, transparent 6px 10px); pointer-events: none; }
.stage { position: relative; }
.screen .llpage-embed iframe { pointer-events: none; }
.screen .badge { cursor: inherit; }   /* names show on hover; a drag or click still goes to the badges row */

/* ---------- inspector ---------- */
.ed-insp { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.insp-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.insp-head .kind { width: 34px; height: 34px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; flex: none; }
.insp-head .kind .ph { font-size: 19px; }
.insp-head h3 { font-size: 15px; font-weight: 800; flex: 1; min-width: 0; }
.insp-head p { font-size: 12px; color: var(--muted); }
.insp-body { flex: 1; overflow-y: auto; padding: 16px; }
.ed-body { transition: grid-template-columns .45s var(--ease); }
@media (min-width: 1181px) {
  .ed-body.insp-away { grid-template-columns: var(--side) 1fr 0; }
  .ed-body.insp-away .ed-insp { visibility: hidden; overflow: hidden; }
  .ed-body.insp-away .insp-tab { opacity: 1; transform: none; pointer-events: auto; transition-delay: .2s; }
}
/* the little badge tab that pulls the right-hand panel back out */
.insp-tab {
  position: fixed; right: 0; top: calc(var(--top) + 18px); z-index: 30;
  width: 46px; height: 44px; padding: 0 0 0 4px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer;
  box-shadow: -8px 8px 24px rgb(0 0 0 / .35);
  opacity: 0; transform: translateX(100%); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease), width .25s var(--ease), background .2s;
}
.insp-tab .ph { font-size: 21px; color: var(--coral); }
.insp-tab:hover { width: 52px; background: var(--raise); }

/* get started + tips (nothing selected) */
.start { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.start h4 { font-size: 14px; font-weight: 700; }
.start .bar { height: 6px; border-radius: 99px; background: var(--raise-2); margin: 10px 0 12px; overflow: hidden; }
.start .bar i { display: block; height: 100%; background: var(--coral); border-radius: 99px; transition: width .6s var(--ease); }
.check { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 600; }
.check:hover { background: rgb(255 255 255 / .04); }
.check .ph { font-size: 19px; color: var(--faint); }
.check.done { color: var(--muted); } .check.done .ph { color: var(--ok); } .check.done span { text-decoration: line-through; }
.tips { margin-top: 18px; display: grid; gap: 10px; }
.tips h5 { font-size: 12.5px; font-weight: 700; color: var(--text); }
.tip-row { display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; }
.tip-row .ph { color: var(--faint); font-size: 16px; margin-top: 1px; }
.keys { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.keys div { display: flex; justify-content: space-between; }
.keys kbd { font: 700 11px/1 "Public Sans", sans-serif; padding: 4px 6px; border-radius: 5px; background: var(--raise-2); border: 1px solid var(--line-2); color: var(--text); }

/* badges: your badges grid + the add picker */
.mygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 6px; }
.mytile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 8px 8px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); text-align: center; }
.mytile .emb { width: 44px; height: 44px; display: block; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)); }
.mytile .emb svg { width: 100%; height: 100%; display: block; }
.mytile .emb.old { display: grid; place-items: center; color: var(--faint); font-size: 26px; filter: none; }
.mytile .mult { position: absolute; top: 44px; left: calc(50% + 12px); min-width: 18px; height: 15px; padding: 0 4px; border-radius: 8px; background: #fff; color: #141414; font: 800 9.5px/15px "Public Sans", sans-serif; box-shadow: 0 0 0 1.5px #141414; }
.mytile .nm { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.25; min-height: 29px; display: grid; place-items: center; }
.mytile.retired .nm { color: var(--faint); }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--raise-2); border-radius: 8px; padding: 2px; }
.stepper button { width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--text); display: grid; place-items: center; }
.stepper button:hover { background: #343438; }
.stepper button:disabled { opacity: .3; background: none; }
.stepper .ph { font-size: 13px; }
.stepper b { min-width: 30px; font-size: 12px; font-variant-numeric: tabular-nums; }
.bx { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #34343a; color: var(--text); display: grid; place-items: center; transition: background .15s, color .15s; }
.bx:hover { background: var(--error); color: #1a1a1a; }
.bx .ph { font-size: 12px; }
.pick-title { font-size: 12px; font-weight: 800; margin: 12px 2px 8px; }
.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-bottom: 4px; }
.picker button { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); padding: 6px; transition: transform .2s var(--ease), background .15s, border-color .15s; }
.picker button:hover { background: var(--raise-2); border-color: var(--line-2); transform: translateY(-1px); }
.picker button:active { transform: scale(.94); }
.picker button.owned { border-color: rgb(251 146 128 / .45); }
.picker .emb { display: block; width: 100%; height: 100%; }
.picker .emb svg { width: 100%; height: 100%; display: block; }
.picker .plus { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.picker .plus .ph { font-size: 10px; }
.picker button:hover .plus, .picker button:focus-visible .plus { opacity: 1; transform: none; }

/* insights */
.metric { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; }
.metric + .metric { border-top: 1px solid var(--line); }
.metric > span { color: var(--muted); font-size: 13px; }
.metric > div { display: flex; align-items: baseline; gap: 8px; }
.metric b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dl { font-size: 11.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.dl.up { color: var(--ok); } .dl.down { color: var(--error); }
.spark { width: 100%; height: 84px; display: block; }
.rank-list { display: grid; }
.rank-list > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.rank-list > div + div { border-top: 1px solid var(--line); }
.rank-list em { font-style: normal; width: 16px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rank-list span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: #262628; border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgb(0 0 0 / .5); font-weight: 600; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { color: var(--error); }
.toast button { height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--raise-2); color: var(--coral); font-weight: 800; }

/* ---------- smaller screens ---------- */
@media (max-width: 1360px) { :root { --side: 284px; --insp-w: 296px; } }
@media (max-width: 1180px) {
  .ed-body { grid-template-columns: var(--side) 1fr; }
  .ed-insp { position: fixed; top: var(--top); right: 0; bottom: 0; width: var(--insp-w); z-index: 40; box-shadow: -20px 0 40px rgb(0 0 0 / .4); transform: translateX(100%); transition: transform .35s var(--ease); }
  .ed-insp.open { transform: none; }
  .insp-close { display: grid; }
  .device.desktop { width: min(1000px, calc(100vw - var(--side) - 60px)); }
}
@media (max-width: 820px) {
  :root { --top: 52px; }
  .ed-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .ed-canvas { grid-row: 1; }
  .side { grid-row: 2; border-right: 0; border-top: 1px solid var(--line); max-height: 58dvh; }
  .side:not(.open) .side-head, .side:not(.open) .side-body { display: none; }
  .side-tabs { order: 2; border-bottom: 0; border-top: 1px solid var(--line); padding: 2px 6px; }
  .side-tab[aria-selected="true"]::after { top: -1px; bottom: auto; }
  .ed-insp { top: auto; bottom: 0; left: 0; width: auto; height: 70dvh; border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(105%); z-index: 50; }
  .ed-insp.open { transform: none; }
  .top-mid, .save span, .logo span, .page-pill .url, .tbtn .lbl { display: none; }
  .device { height: calc(100dvh - var(--top) - 64px - 70px); }
  .stage-hint { display: none; }
  .tools { max-width: calc(100vw - 16px); overflow-x: auto; }
  .tools .t-text { font-size: 0; gap: 0; } .tools .t-text .ph { font-size: 17px; }
}

/* small section labels (badges, settings) */
.group-label { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.group-label:first-child { margin-top: 2px; }

/* Add: logo grid */
.list-title { margin: 18px 2px 8px; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lrow { min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.lrow:hover { background: var(--raise-2); border-color: var(--line-2); }
.lrow:active { transform: scale(.98); }
.lrow .lg { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.lrow .lg img { width: 20px; height: 20px; }
.lrow .nm { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mono { width: 20px; height: 20px; background: var(--text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* small icon buttons (inspector close, removes) */
.ibtn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; }
.ibtn:hover { background: var(--raise-2); color: var(--text); }
.ibtn.danger:hover { color: var(--error); }
.lrow.wide { width: 100%; margin-top: 6px; justify-content: center; }
.lrow.wide .lg .ph { font-size: 19px; color: var(--text); }

/* Design: animation tiles + matte colour swatches */
.anim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.anim-tile { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 8px; padding: 6px 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); text-align: left; transition: border-color .15s, background .15s; }
.anim-tile:hover { background: var(--raise-2); border-color: var(--line-2); }
.anim-tile[aria-pressed="true"] { border-color: var(--text); }
.anim-cell { display: grid; gap: 6px; align-content: start; }
.finish.wide, .finish.wide .finish-sel { width: 100%; }
.anim-thumb { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #111; border: 1px solid rgb(255 255 255 / .06); }
.anim-thumb .llpage-tint { position: absolute; inset: 0; mix-blend-mode: color; opacity: .32; }
.anim-thumb canvas, .anim-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.anim-tile .nm { min-width: 0; font-size: 11px; font-weight: 600; padding: 0 2px; color: var(--text); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.finish { position: relative; display: inline-flex; align-items: center; }
.finish-sel { appearance: none; -webkit-appearance: none; height: 28px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raise); font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.finish-sel:hover { border-color: var(--line-2); background: var(--raise-2); }
.finish-sel:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.finish i, .finish .ph { position: absolute; right: 9px; font-size: 12px; pointer-events: none; opacity: .7; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); transition: transform .15s; }
.swatch:hover { transform: scale(1.05); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }

/* name font picker */
.fontlist { max-height: 300px; overflow-y: auto; display: grid; gap: 4px; padding: 4px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); overscroll-behavior: contain; }
.fontgroup { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 8px 4px; }
.fontrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); text-align: left; }
.fontrow:hover { background: var(--raise-2); }
.fontrow[aria-pressed="true"] { border-color: var(--text); background: var(--raise-2); }
.fontrow .fs { font-size: 20px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fontrow small { flex: none; font-size: 11px; color: var(--faint); font-weight: 600; }

/* unsaved changes popup */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal { width: min(420px, 100%); padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.modal-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(251 146 128 / .14); color: var(--coral); font-size: 22px; margin-bottom: 14px; }
.modal h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.modal p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.modal-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@keyframes fadeIn { from { opacity: 0; } }

/* per-link style controls under a link's own settings */
.lstyle { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* tabs inside a panel: one section at a time, pinned at the top while the section scrolls */
.ptabs { position: sticky; top: -1px; z-index: 3; display: flex; gap: 1px; padding: 3px; margin: 0 0 16px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); box-shadow: 0 6px 12px -6px rgb(0 0 0 / .6); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
/* every tab name shows in full: tabs share the width by their text, and the bar scrolls sideways if it ever runs out */
.ptabs button { flex: 1 0 auto; height: 30px; padding: 0 7px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.ptabs button:hover { color: var(--text); }
.ptabs button[aria-selected="true"] { background: var(--raise-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ptab-body { animation: tabIn .25s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(4px); } }
.row2 > .f { margin-bottom: 14px; min-width: 0; }
.row2 .seg button { font-size: 11.5px; }
.anim-colour { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lstyle-tools { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.lstyle-tools .tbtn { justify-content: center; font-size: 12px; }

/* custom badges (Pro) and the locked version on Free */
.cb-maker { margin: 6px 0 14px; }
.cb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cb-thumb { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--raise); border: 1px dashed var(--line-2); color: var(--muted); font-size: 18px; }
.cb-thumb:hover { border-color: var(--coral); color: var(--text); }
.cb-thumb .cbadge { width: 46px; height: 46px; }
.cb-row .in { flex: 1; min-width: 0; }
.cb-maker .tbtn { width: 100%; justify-content: center; }
.pro-lock { margin: 6px 0 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(150deg, rgb(251 146 128 / .08), var(--raise) 60%); }
.pro-lock-head { display: flex; align-items: center; gap: 8px; }
.pro-lock-head .ph { color: var(--coral); font-size: 17px; }
.pro-lock-head b { flex: 1; font-size: 13.5px; }
.pro-lock p { font-size: 12.5px; color: var(--muted); margin: 8px 0 12px; line-height: 1.45; }
.pro-lock .tbtn { font-size: 12.5px; }


/* first-time tour: the room goes dark except one spot, a note beside it, controls always at the bottom */
.tour { position: fixed; inset: 0; z-index: 200; }
/* the spotlight: everything else dims, the target gets a thin clean outline */
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(6 6 7 / .66); outline: 1.5px solid rgb(255 255 255 / .85); outline-offset: 0; pointer-events: none;
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.tour-hole.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; outline: 0; box-shadow: 0 0 0 9999px rgb(6 6 7 / .72); }
/* one card holds everything: step, progress, title, text, controls */
.tour-card { position: fixed; padding: 16px 18px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgb(0 0 0 / .45);
  transition: left .5s var(--ease), top .5s var(--ease); }
.tour-card.center { left: 50%; top: 46%; width: min(400px, calc(100vw - 32px)); transform: translate(-50%, -50%); padding: 20px 22px 18px; transition: none; }
.tour-top { display: flex; align-items: center; justify-content: space-between; }
.tour-count { font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tour-skip { border: 0; background: none; color: var(--faint); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.tour-skip:hover { color: var(--text); }
.tour-progress { display: flex; gap: 3px; margin: 10px 0 14px; }
.tour-progress i { flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.tour-progress i.done { background: var(--muted); }
.tour-progress i.now { background: var(--coral); }
.tour-title { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.tour-card.center .tour-title { font-size: 20px; letter-spacing: -.02em; }
.tour-text { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tour-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tour-btn { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.tour-btn:hover { background: var(--raise); }
.tour-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); min-width: 84px; }
.tour-btn.primary:hover { opacity: .9; background: var(--text); }
.tour-btn[hidden] { display: none; }
.tour-card.swap .tour-title, .tour-card.swap .tour-text { animation: tourText .35s var(--ease); }
@keyframes tourText { from { opacity: 0; transform: translateY(4px); } }

/* page features cards (Add > Features) */
.feat-card { margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); }
.feat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feat-head .ph { font-size: 17px; color: var(--coral); }
.feat-head b { flex: 1; font-size: 13.5px; }
.feat-card > .hint { margin: 0 0 6px; font-size: 12px; line-height: 1.45; }
.feat-card .sw { padding: 6px 0; font-size: 13px; }
.feat-card .f { margin: 8px 0 10px; }
.feat-card .tbtn { width: 100%; justify-content: center; }

/* link presets grid */
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset-tile { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: pointer; transition: border-color .2s, transform .15s; }
.preset-tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.preset-tile.on { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.llpage.preset-prev { min-height: 0; display: block; padding: 10px 8px; pointer-events: none; }
.preset-prev .llpage-link { min-height: 34px; padding: 6px 10px; font-size: 11.5px; }
.brow b .pro-tag { display: inline-block; margin-left: 6px; vertical-align: 1px; font-size: 9.5px; color: var(--coral); }
.picker button.locked .emb { opacity: .45; filter: grayscale(.6); }
.picker button.locked .pro-tag { position: absolute; right: 3px; bottom: 3px; display: inline-block; transform: scale(.85); transform-origin: bottom right; }

/* ---------- first-visit loading screen ---------- */
.ll-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 30px; background: #121212; transition: opacity .45s ease; }
.ll-loader.out { opacity: 0; pointer-events: none; }
.ll-loader-mark { display: flex; align-items: center; gap: 12px; animation: llLoadIn .8s cubic-bezier(.16, 1, .3, 1) both; }
.ll-loader-mark img { width: 52px; height: 52px; }
.ll-loader-mark span { font: 400 34px/1 "Public Sans", sans-serif; letter-spacing: -.035em; color: #f8f6f2; }
.ll-loader-mark b { font-weight: 800; }
.ll-loader-bar { width: 200px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .08); overflow: hidden; animation: llLoadIn .8s .1s cubic-bezier(.16, 1, .3, 1) both; }
.ll-loader-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #fb9280; transform-origin: left; transform: scaleX(0); animation: llLoadBar 3s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes llLoadIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes llLoadBar { 0% { transform: scaleX(0); } 30% { transform: scaleX(.42); } 55% { transform: scaleX(.58); } 85% { transform: scaleX(.93); } 100% { transform: scaleX(1); } }

/* ---------- delete account ---------- */
.tbtn.danger-outline { color: var(--error); border-color: color-mix(in srgb, var(--error) 35%, transparent); }
.tbtn.danger-outline:hover { background: color-mix(in srgb, var(--error) 10%, transparent); }
.danger-box { margin-top: 24px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--error) 40%, transparent); background: color-mix(in srgb, var(--error) 6%, transparent); }
.tbtn.danger-solid { flex: 1; justify-content: center; background: var(--error); border-color: var(--error); color: #1a1a1a; font-weight: 800; }
.tbtn.danger-solid:disabled { opacity: .4; }

/* nothing in the side panels may spill past its column */
.f > * { min-width: 0; max-width: 100%; }
.f input[type="range"] { width: 100%; min-width: 0; }
.mytile:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.mytile:hover .bx { background: color-mix(in srgb, var(--error) 80%, #34343a); color: #1a1a1a; }
.tbtn.trial-btn { background: var(--coral); border-color: var(--coral); color: #1a1a1a; font-weight: 800; }
.tbtn.trial-btn:hover { background: #fca393; }

/* badge names pop up on hover in the picker */
.picker button[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30;
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px; background: #0b0b0c; border: 1px solid var(--line-2); color: var(--text);
  font-size: 11.5px; font-weight: 700; box-shadow: 0 8px 20px rgb(0 0 0 / .45); transition: opacity .15s, transform .15s;
}
.picker button[data-tip]:hover::after, .picker button[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.picker button:nth-child(6n+1)[data-tip]::after { left: 0; transform: translate(0, 4px); }
.picker button:nth-child(6n+1)[data-tip]:hover::after { transform: none; }
.picker button:nth-child(6n)[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.picker button:nth-child(6n)[data-tip]:hover::after { transform: none; }
.picker { overflow: visible; }
.picker button.granted.owned .emb { opacity: 1; filter: none; }
.picker button.granted { cursor: default; }

/* LIVE Fest: sub-section title and the "what place" popup */
.pick-title.sub { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line-2); }
.place-modal { text-align: center; }
.place-modal .place-emb { width: 72px; height: 72px; margin: 0 auto 12px; }
.place-modal .place-emb svg { width: 100%; height: 100%; }
.place-modal p { margin-bottom: 12px; }
.place-modal .in { width: 100%; margin-bottom: 18px; text-align: center; font-size: 18px; font-weight: 700; }
.place-modal .modal-btns { justify-content: center; }

/* background colour picker: appears under the picked background */
.anim-cell { display: grid; gap: 6px; min-width: 0; align-content: start; }
.anim-colour-pick { display: flex; width: 100%; animation: fadeIn .2s; }
.anim-colour-pick .finish-sel { width: 100%; font-size: 11.5px; }

/* link preview card: looks like a Discord embed */
.lp-card { display: flex; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 12px; border-radius: 8px; background: #2b2d31; border-left: 4px solid #fb9280; color: #dbdee1; font-family: "Public Sans", system-ui, sans-serif; }
.lp-card.big { flex-direction: column; }
.lp-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.lp-site { font-size: 11px; color: #b5bac1; }
.lp-title { font-size: 14px; color: #00a8fc; overflow-wrap: anywhere; }
.lp-desc { font-size: 12.5px; line-height: 1.35; color: #dbdee1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; }
.lp-card.big .lp-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; }

/* insights breakdowns */
.bar-list { display: grid; gap: 10px; }
.bar-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.bar-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); font-weight: 600; }
.bar-top b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-top small { width: 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-ic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
img.bar-ic { filter: grayscale(1) brightness(1.6); opacity: .85; }
.bar-flag { width: 16px; font-size: 14px; line-height: 1; flex: none; }
.bar-track { height: 4px; border-radius: 4px; background: var(--raise-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--text); opacity: .75; animation: barIn .7s cubic-bezier(.16, 1, .3, 1); transform-origin: left; }
@keyframes barIn { from { transform: scaleX(0); } }
.dev-split { display: flex; gap: 3px; height: 10px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.dev-split i { display: block; min-width: 4px; animation: barIn .7s cubic-bezier(.16, 1, .3, 1); transform-origin: left; }
.dev-mobile { background: #fb9280; } .dev-tablet { background: #f4f2ee; } .dev-desktop { background: #8b8f98; }
.dev-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.dev-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dev-legend em { width: 8px; height: 8px; border-radius: 50%; }
.dev-legend b { color: var(--text); font-weight: 700; }

.plat-cat { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 16px 2px 8px; }
.plat-cat:first-child { margin-top: 4px; }

/* make your own badge: one tidy line */
.cb-line, .cb-locked { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 6px 6px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); }
.cb-line:focus-within { border-color: var(--line-2); }
.cb-plus { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--raise-2); color: var(--muted); font-size: 17px; overflow: hidden; }
.cb-plus.pick { cursor: pointer; border: 1px dashed var(--line-2); }
.cb-plus.pick:hover { color: var(--text); border-color: var(--coral); }
.cb-plus.has { border-style: solid; }
.cb-plus img { width: 100%; height: 100%; object-fit: cover; }
.cb-name { flex: 1; min-width: 0; height: 36px; border: 0; background: none; color: var(--text); font: 600 13px/1 "Public Sans", sans-serif; outline: none; }
.cb-name::placeholder { color: var(--faint); font-weight: 500; }
.cb-add { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 0; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; font-size: 16px; cursor: pointer; transition: transform .15s; }
.cb-add:active { transform: scale(.94); }
.cb-locked { width: 100%; text-align: left; cursor: pointer; color: var(--text); }
.cb-locked:hover { background: var(--raise-2); }
.cb-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cb-copy b { font-size: 13px; }
.cb-copy b .pro-tag { margin-left: 4px; font-size: 9.5px; }
.cb-copy small { font-size: 11.5px; color: var(--muted); }
.cb-locked > .ph:last-child { color: var(--faint); }

/* ---------- light mode (Settings > Appearance) ---------- */
:root[data-theme="light"] {
  --bg: #eeede9; --chrome: #ffffff; --panel: #fbfaf8; --raise: #f2f1ee; --raise-2: #e8e6e2;
  --line: #e1dfda; --line-2: #cfccc6; --text: #18181a; --muted: #67645f; --faint: #9a968f;
  --coral-soft: rgb(251 146 128 / .18); color-scheme: light;
}
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cfccc6; background-clip: padding-box; }
:root[data-theme="light"] .ed-canvas {
  background-image: linear-gradient(rgb(0 0 0 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(0 0 0 / .04) 1px, transparent 1px),
    linear-gradient(rgb(0 0 0 / .02) 1px, transparent 1px), linear-gradient(90deg, rgb(0 0 0 / .02) 1px, transparent 1px);
}
:root[data-theme="light"] .stage-hint { background: rgb(255 255 255 / .85); }
:root[data-theme="light"] .tools { background: rgb(255 255 255 / .97); box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
:root[data-theme="light"] .stepper button:hover, :root[data-theme="light"] .bx { background: #dcd9d4; }
:root[data-theme="light"] .check:hover { background: rgb(0 0 0 / .04); }
:root[data-theme="light"] .picker button[data-tip]::after { background: #18181a; color: #f4f2ee; border-color: #18181a; }
:root[data-theme="light"] .device { box-shadow: 0 30px 70px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .06); }
:root[data-theme="light"] .logo img { content: url("/brand/ll-mark.svg"); }
:root[data-theme="light"] .modal-back, :root[data-theme="light"] .set-back { background: rgb(30 30 32 / .28); }

/* ---------- settings: a sheet over the preview, with a clear close button ---------- */
.ed-canvas { position: relative; }
.set-back { position: absolute; inset: 0; z-index: 40; display: grid; place-items: start center; overflow-y: auto; padding: 40px 20px;
  background: rgb(8 8 9 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.set-sheet { position: relative; width: min(560px, 100%); border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45); animation: setIn .35s var(--ease); }
@keyframes setIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.set-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.set-head div { flex: 1; }
.set-head h2 { font-size: 20px; letter-spacing: -.02em; }
.set-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.set-x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); color: var(--text);
  display: grid; place-items: center; transition: background .15s, transform .15s; }
.set-x:hover { background: var(--raise-2); transform: rotate(90deg); }
.set-x .ph { font-size: 18px; }
.set-body { padding: 8px 22px 22px; }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-pick button { display: grid; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text); }
.theme-pick button[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.theme-pick i.sw-prev { display: block; height: 54px; border-radius: 8px; border: 1px solid rgb(127 127 127 / .2); }
.theme-pick .dark i.sw-prev { background: linear-gradient(90deg, #18181a 0 34%, #0e0e0f 34%); }
.theme-pick .light i.sw-prev { background: linear-gradient(90deg, #fbfaf8 0 34%, #eeede9 34%); }
:root[data-theme="light"] .ed-canvas { background-color: #e6e4df; }
:root[data-theme="light"] .ed-canvas::after { background: radial-gradient(ellipse at center, transparent 50%, rgb(0 0 0 / .08)); }
:root[data-theme="light"] .device { box-shadow: 0 0 0 1px #000, 0 30px 70px rgb(0 0 0 / .22), inset 0 0 0 2px #1a1a1c; }

/* ---------- settings sheet, roomy: side nav + every section open ---------- */
.set-back { padding: 32px 24px; }
.set-sheet { width: min(880px, 100%); }
.set-main { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.set-nav { position: sticky; top: 0; align-self: start; display: grid; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); }
.set-nav button { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.set-nav button:hover { background: var(--raise); color: var(--text); }
.set-body { padding: 4px 28px 28px; min-width: 0; }
.set-sec { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.set-sec:last-child { border-bottom: 0; }
.set-sec-head { margin-bottom: 16px; }
.set-sec-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.set-sec-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.set-sec-body { display: grid; gap: 14px; }
.set-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.set-row > div { display: grid; gap: 2px; min-width: 0; }
.set-row b { font-size: 13.5px; font-weight: 600; }
.set-row span { font-size: 12.5px; color: var(--muted); }
.sw.bare { margin: 0; padding: 0; flex: none; }
.set-link { display: flex; gap: 10px; }
.set-link-box { flex: 1; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 4px 0 14px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); }
.set-link-box:focus-within { border-color: var(--coral); }
.set-link-box span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.set-link-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 0 0 1px; font-weight: 700; color: var(--text); outline: none; }
.set-link .tbtn { height: 42px; }
.plan-chip { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--raise-2); color: var(--muted); }
.plan-chip.pro { background: var(--coral-soft); color: var(--coral); }
.set-code { display: grid; gap: 8px; padding-top: 4px; }
.set-code b { font-size: 13.5px; font-weight: 600; }
.set-code-row { display: flex; gap: 8px; max-width: 420px; }
.set-account { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.set-danger { flex: 1; min-width: 220px; }
.set-danger .danger-box { margin-top: 10px; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.lp-fields { display: grid; gap: 4px; min-width: 0; }
.lp-side { display: grid; gap: 8px; position: sticky; top: 12px; }
.lp-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.lp-side .lp-card { margin: 0; }
.set-head { padding: 22px 24px 18px; }
@media (max-width: 860px) {
  .set-main { grid-template-columns: 1fr; }
  .set-nav { display: none; }
  .set-body { padding: 4px 20px 22px; }
  .lp-grid { grid-template-columns: 1fr; }
}

.insp-tab.bell { top: calc(var(--top) + 70px); }

/* settings pages: one section at a time */
.set-nav button { display: flex; align-items: center; gap: 9px; }
.set-nav button .ph { font-size: 16px; }
.set-nav button[aria-current="true"] { background: var(--raise-2); color: var(--text); }
.set-nav button[aria-current="true"] .ph { color: var(--coral); }
.set-body { min-height: 420px; }
.set-sec { border-bottom: 0; animation: fadeIn .2s; }
.set-sec-head h3 { font-size: 18px; letter-spacing: -.015em; }
@media (max-width: 860px) {
  .set-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; position: static; }
  .set-nav button { flex: none; }
}

/* locked TikTok seal in the picker: a small lock on the corner */
.picker button.tt-locked .lock-pin { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--raise-2); border: 1px solid var(--line-2); color: var(--text); }
.picker button.tt-locked .lock-pin .ph { font-size: 10px; }
.picker button.tt-locked:hover .emb { opacity: .8; filter: none; }

/* top bar: the livelinks logo switch with its little note */
.wm-toggle { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: 10px; cursor: pointer; }
.wm-toggle:hover { background: var(--raise); }
.wm-text { display: grid; line-height: 1.15; text-align: right; }
.wm-text b { font-size: 12px; font-weight: 600; }
.wm-text small { font-size: 10.5px; color: var(--faint); }
.wm-switch { position: relative; width: 34px; height: 20px; flex: none; }
.wm-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wm-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--raise-2); border: 1px solid var(--line-2); transition: background .2s; pointer-events: none; }
.wm-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .2s; }
.wm-switch input:checked + i { background: var(--coral); border-color: var(--coral); }
.wm-switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.wm-switch input:focus-visible + i { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (max-width: 1100px) { .wm-text small { display: none; } }
@media (max-width: 760px) { .wm-text { display: none; } }
.wm-text b .pro-tag { font-size: 9px; margin-left: 3px; vertical-align: 1px; }
.wm-toggle.locked .wm-switch { opacity: .55; }

/* badge colour: a brush on each badge tile, and the swatch row */
.mytile .bt { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #34343a; color: var(--muted); display: grid; place-items: center; font-size: 12px; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.mytile:hover .bt, .mytile:focus-within .bt, .mytile .bt[aria-pressed="true"] { opacity: 1; }
.mytile .bt[aria-pressed="true"] { background: var(--coral); color: #1a1a1a; }
.mytile.tinting { border-color: var(--coral); }
@media (hover: none) { .mytile .bt { opacity: 1; } }
.tint-box { margin-top: 14px; }
.tint-scope button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }
.tint-scope button:disabled { opacity: .55; }
.tint-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tint-sw { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c, #888) 30%, #fff), var(--c, #888) 55%, color-mix(in srgb, var(--c, #888) 55%, #000)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.tint-sw[aria-pressed="true"], .tint-sw.pick.on { box-shadow: 0 0 0 2px var(--panel, #161616), 0 0 0 4px var(--text); }
.tint-sw.orig { background: conic-gradient(#f2c46b, #fb9280, #a78bfa, #5ff2e6, #6ee7b7, #f2c46b); }
.tint-sw.same { background: var(--raise-2); }
.tint-sw.same::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1.5px dashed var(--muted); }
.tint-sw.pick { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.tint-sw.pick.on { background: var(--c); }
.tint-sw.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
/* "Promote livelinks": the last row in Platforms */
.lrow.wide.promo { margin-top: 10px; height: 52px; border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); }
.lrow.wide.promo .lg img { width: 22px; height: 22px; }
.lrow.wide.promo .nm { font-weight: 800; }
