/* Packlyn Design Software — design tokens and shared components.
   Navy chrome with Packlyn gold, light work surfaces (light mode) or deep navy surfaces (dark mode). */
:root {
  --chrome: #0b2130; --chrome-2: #0e2838; --chrome-3: #153649; --chrome-hi: #1c4358; --chrome-ink: #eaf1f5; --chrome-muted: #9cb1be; --chrome-line: rgba(255, 255, 255, .08);
  --bg: #edf0f4; --panel: #ffffff; --panel-2: #f5f7f9; --panel-3: #eaeef2; --work: #e6eaef; --hover: #eef2f5; --line: #e1e6eb; --line-2: #cbd4db;
  --ink: #12202a; --ink-2: #34434e; --muted: #687883;
  --gold: #f0b232; --gold-hi: #f8c75a; --gold-dk: #a8730c; --on-gold: #231500; --gold-tint: #fff4dc;
  --gold-grad: linear-gradient(180deg, #fbcd5f 0%, #eda526 100%);
  --navy: #0e2838; --navy-hi: #17394d; --on-navy: #ffffff;
  --teal: #0d7c66; --teal-2: #10a083; --teal-tint: #e2f4ef;
  --sel: #11a38a; --rose: #d6336c; --blue: #2563eb; --danger: #cf3a3a; --warn: #b7791f; --ok: #0d7c66;
  --r-xs: 6px; --r-sm: 8px; --r: 11px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(11, 33, 48, .06), 0 1px 1px rgba(11, 33, 48, .04);
  --sh-2: 0 6px 18px rgba(11, 33, 48, .09), 0 1px 3px rgba(11, 33, 48, .06);
  --pop: 0 18px 50px rgba(8, 24, 36, .22), 0 2px 8px rgba(8, 24, 36, .08);
  --font: 'Poppins', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Manrope', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top-h: 64px; --side-w: 236px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --chrome: #071520; --chrome-2: #0a1b27; --chrome-3: #12293a; --chrome-hi: #193549; --chrome-ink: #e9f0f5; --chrome-muted: #8ea3b1; --chrome-line: rgba(255, 255, 255, .07);
  --bg: #0b1823; --panel: #0f1e2a; --panel-2: #142533; --panel-3: #1a2d3c; --work: #0a1620; --hover: #182b3a; --line: #20364a; --line-2: #2c4559;
  --ink: #e8eff4; --ink-2: #c2cfd8; --muted: #8b9fad;
  --gold: #f2b937; --gold-hi: #f9cd66; --gold-dk: #f2b937; --on-gold: #1f1300; --gold-tint: #2c2412;
  --navy: #e8eff4; --navy-hi: #ffffff; --on-navy: #0b1823;
  --teal: #2fbf9c; --teal-2: #45d3af; --teal-tint: #143a33;
  --sel: #34c6a8; --rose: #ff6b9b; --blue: #7aa2ff; --danger: #ff7a70; --warn: #f1b44c; --ok: #4fd1a3;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3); --sh-2: 0 8px 22px rgba(0, 0, 0, .35);
  --pop: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--chrome); color: var(--ink); font: 500 13px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; user-select: none; overflow: hidden; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { user-select: text; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -.005em; }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pad { padding: 12px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.grow { flex: 1; min-width: 0; }
kbd { font: 600 11px var(--font-ui); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted) 55%, transparent); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; font: 600 13px var(--font); background: var(--panel-2); color: var(--ink); white-space: nowrap; transition: background .14s, border-color .14s, box-shadow .14s, transform .06s; -webkit-app-region: no-drag; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn:hover:not(:disabled) { background: var(--panel-3); }
.btn.primary { background: var(--navy); color: var(--on-navy); }
.btn.primary:hover:not(:disabled) { background: var(--navy-hi); }
.btn.gold { background: var(--gold-grad); color: var(--on-gold); box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .18), 0 2px 8px rgba(232, 160, 30, .25); }
.btn.gold:hover:not(:disabled) { filter: brightness(1.05); background: var(--gold-grad); }
.btn.teal { background: var(--teal); color: #fff; }
.btn.outline { background: var(--panel); border-color: var(--line-2); }
.btn.outline:hover:not(:disabled) { border-color: var(--ink-2); background: var(--panel); }
.btn.ghost { background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 30px; padding: 0 11px; font-size: 12px; border-radius: var(--r-sm); }
.btn.large { min-height: 46px; padding: 0 22px; font-size: 14px; border-radius: 13px; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; color: var(--teal); font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-2); -webkit-app-region: no-drag; transition: background .12s, color .12s; }
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ico { width: 17px; height: 17px; }
.icon-btn.on, .icon-btn.toggle.on { background: var(--teal-tint); color: var(--teal); }

/* ---------- fields ---------- */
.field { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); }
.field:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel) 20%, transparent); }
.field.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
textarea.field { resize: vertical; min-height: 70px; line-height: 1.45; }
select.field { appearance: auto; padding: 0 8px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.fld { display: grid; gap: 5px; min-width: 0; flex: 1; }
.fld > span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.fld > span em { font-style: normal; color: var(--danger); margin-left: 2px; }
.fld > small { color: var(--muted); font-size: 11.5px; }
.fld .err { color: var(--danger); font-size: 11.5px; font-weight: 700; }
.fld select { min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); padding: 0 8px; }
.switch-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; flex-wrap: wrap; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--teal); }
.switch-row > span { flex: 1 1 0; min-width: 0; }
.switch-row small { flex-basis: 100%; padding-left: 25px; color: var(--muted); font-size: 12px; margin-top: -4px; }
input[type=range] { accent-color: var(--gold-dk); }
.sl { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 3px 0; }
.sl input[type=range] { width: 100%; min-width: 0; }
.sl-lbl { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sl-val { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 5px 11px; font-weight: 700; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

/* ---------- chips and swatches ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
/* a sideways-scrolling row (PD.hscroll): fades and an arrow only on the side that has more */
.hs { position: relative; min-width: 0; }
.hs-row { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.hs-row::-webkit-scrollbar { display: none; }
.hs.can-r .hs-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.hs.can-l .hs-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.hs.can-l.can-r .hs-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.hs-btn { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; display: none; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(8, 28, 40, .14); padding: 0; cursor: pointer; }
.hs-btn .ico { width: 16px; height: 16px; }
.hs-btn:hover { border-color: var(--ink-2); }
.hs-btn.prev { left: 0; } .hs-btn.next { right: 0; }
.hs.can-l .hs-btn.prev, .hs.can-r .hs-btn.next { display: grid; }
.chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 5px 13px; font: 600 12px var(--font); color: var(--ink-2); white-space: nowrap; transition: border-color .12s, background .12s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--gold-grad); border-color: transparent; color: var(--on-gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); padding: 0; display: grid; place-items: center; color: var(--ink-2); background-size: cover; transition: transform .1s; }
.sw:hover { transform: scale(1.1); }
.sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--sel); }
.swatches.big .sw { width: 40px; height: 40px; border-radius: 10px; }
.swatches.sq .sw { border-radius: 9px; width: 38px; height: 38px; }
.sw.custom { background: conic-gradient(from 0deg, #e8467c, #f2c14e, #6bcb77, #1fb5a3, #4d96ff, #7b3fe4, #e8467c); color: #fff; }
.sw.custom .ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); width: 16px; height: 16px; }
.sw.more { font-weight: 800; background: var(--panel-2); }
.sw.clear { background: repeating-conic-gradient(#d9dedc 0 25%, #fff 0 50%) 0 0 / 10px 10px; position: relative; overflow: hidden; }
.sw.clear::after { content: ''; position: absolute; width: 130%; height: 2px; background: var(--rose); transform: rotate(-45deg); }

/* ---------- popovers, menus, tips, toasts ---------- */
.popover { position: fixed; z-index: 1000; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--pop); padding: 10px; max-height: min(80vh, 700px); overflow: auto; animation: pop-in .13s ease-out; user-select: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu { display: grid; min-width: 224px; }
.menu-item { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 8px; padding: 7px 9px; text-align: left; font-weight: 600; }
.menu-item:hover:not(:disabled) { background: var(--hover); }
.menu-item .ico { width: 18px; height: 18px; color: var(--muted); }
.menu-item.danger { color: var(--danger); } .menu-item.danger .ico { color: var(--danger); }
.menu-item kbd { justify-self: end; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-head { font-size: 11px; font-weight: 800; color: var(--muted); padding: 6px 9px 2px; text-transform: none; }
.tip { position: fixed; z-index: 2000; background: #0d1f2b; color: #f1f6f9; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
#toasts { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 580px; background: #0d1f2b; color: #f1f6f9; border-radius: 13px; padding: 11px 15px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); font-weight: 600; animation: toast-in .2s ease-out; }
.toast.warn { background: #3d2b06; } .toast.error { background: #4c1414; } .toast.ok { background: #0b3b2f; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
.toast-act { border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- modals ---------- */
.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(5, 16, 24, .5); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.modal-back.out { opacity: 0; transition: .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); color: var(--ink); border-radius: 20px; box-shadow: 0 34px 90px rgba(0, 0, 0, .35); max-width: 100%; max-height: calc(100vh - 48px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; user-select: text; border: 1px solid var(--line); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { transform: translateY(8px) scale(.985); opacity: .6; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 8px; }
.modal-head h2 { margin: 0; font: 600 21px/1.25 var(--font); }
.modal-sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.modal-body { padding: 8px 24px 18px; overflow: auto; }
.modal-body p { line-height: 1.55; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 24px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.modal-foot .spacer { flex: 1; }
.prog { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .2s; }
.empty { padding: 22px 10px; color: var(--muted); text-align: center; grid-column: 1 / -1; }
.empty .ico { width: 34px; height: 34px; color: var(--line-2); margin-bottom: 6px; }
.empty p { margin: 4px 0 10px; }
.loading { padding: 18px; color: var(--muted); grid-column: 1 / -1; text-align: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(100deg, var(--panel-3) 30%, var(--panel-2) 50%, var(--panel-3) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px var(--font); border-radius: 999px; padding: 2px 8px; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--gold-grad); color: var(--on-gold); }
.badge.ok { background: var(--teal-tint); color: var(--teal); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }

/* ---------- download, checks ---------- */
.dl-cols { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-top: 10px; }
.fmt-list { display: grid; gap: 6px; align-content: start; }
.fmt { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; cursor: pointer; position: relative; transition: border-color .12s, background .12s; }
.fmt:hover { border-color: var(--line-2); }
.fmt input { position: absolute; opacity: 0; }
.fmt.on { border-color: var(--gold); background: var(--gold-tint); }
.fmt-name { font: 600 13px var(--font); display: flex; gap: 8px; align-items: center; }
.fmt-name em { font-style: normal; font-size: 10.5px; background: var(--gold-grad); color: var(--on-gold); border-radius: 999px; padding: 1px 7px; }
.fmt-note { font-size: 12px; color: var(--muted); }
.dl-side { display: grid; gap: 12px; align-content: start; }
.dl-opts { display: grid; gap: 10px; }
.dl-info { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 9px; padding: 8px 10px; margin: 0; }
.checks { border-radius: 13px; padding: 10px 12px; font-size: 12.5px; }
.checks.ok { display: flex; gap: 8px; align-items: center; background: var(--teal-tint); color: var(--teal); font-weight: 700; }
.checks.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.checks.bad { background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); }
.checks-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.checks-head .btn { margin-left: auto; }
.checks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checks li > span { flex: 1 1 260px; }
.checks li.error > span::before { content: '●'; color: var(--danger); margin-right: 6px; }
.checks li.warn > span::before { content: '●'; color: var(--warn); margin-right: 6px; }
.size-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.size-opt { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-weight: 600; }
.size-opt.on { border-color: var(--gold); background: var(--gold-tint); }
.size-opt input { accent-color: var(--gold-dk); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.key-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 5px 0; }
.about-body { text-align: left; }
.about-logo { width: 240px; display: block; margin: 0 auto 10px; }
.credits { padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- colour picker, font browser, effects, looks ---------- */
.cp { width: 276px; display: grid; gap: 10px; }
.cp-tabs { width: 100%; } .cp-tabs button { flex: 1; }
.cp-sv { position: relative; height: 150px; border-radius: 11px; cursor: crosshair; }
.cp-sv i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); pointer-events: none; }
.cp-sliders { display: grid; gap: 8px; }
.cp-hue, .cp-alpha { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 999px; }
.cp-hue { background: linear-gradient(90deg, red, #ff0, lime, cyan, blue, #f0f, red); }
.cp-hue::-webkit-slider-thumb, .cp-alpha::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.cp-hexrow { display: flex; align-items: center; gap: 8px; }
.cp-hex { font-family: ui-monospace, monospace; text-transform: lowercase; }
.cp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cp-nums label { display: grid; gap: 2px; font-size: 10px; font-weight: 800; color: var(--muted); text-align: center; }
.cp-nums input { width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 2px; text-align: center; background: var(--panel); font-size: 11.5px; }
.cp-row { display: grid; gap: 5px; }
.cp-lbl { font-size: 11px; font-weight: 800; color: var(--muted); }
.cp .sw { width: 22px; height: 22px; }
.cp-grad { display: none; gap: 10px; }
.cp.is-grad .cp-grad { display: grid; }
.cp-gprev { height: 34px; border-radius: 9px; border: 1px solid var(--line); }
.cp-gstops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cp-stop { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.cp-stop.on { box-shadow: 0 0 0 2px var(--sel); }
.cp-stop.add { background: var(--panel-2); font-weight: 800; }
.cp-harm { display: grid; gap: 4px; }
.cp-harm-row { display: flex; align-items: center; gap: 6px; }
.cp-harm-row span { font-size: 10.5px; font-weight: 700; color: var(--muted); width: 74px; }
.font-pop { width: 330px; display: grid; gap: 8px; }
.font-list { max-height: 400px; overflow: auto; display: grid; margin: 0 -4px; align-content: start; }
.font-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; font-size: 18px; text-align: left; }
.font-item small { font: 600 10.5px var(--font-ui); color: var(--muted); }
.font-item:hover { background: var(--hover); }
.font-item.on { background: var(--gold-tint); }
.font-item .fav { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--line-2); }
.font-item .fav.on, .font-item .fav:hover { color: var(--gold); }
.font-item .fav .ico { width: 15px; height: 15px; }
.font-group { font: 800 10.5px var(--font-ui); color: var(--muted); padding: 8px 10px 2px; }
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fx { display: grid; gap: 4px; justify-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 8px 2px 6px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); transition: border-color .12s; }
.fx:hover { border-color: var(--line-2); }
.fx.on { border-color: var(--gold); background: var(--gold-tint); }
.fx-demo { font: 800 22px/1 'Poppins', sans-serif; color: #1b2a26; }
.fx-shadow { text-shadow: 2px 3px 4px rgba(0, 0, 0, .4); }
.fx-lift { text-shadow: 0 4px 9px rgba(0, 0, 0, .35); }
.fx-outline { -webkit-text-stroke: 1px #1b2a26; color: #e8ad22; }
.fx-hollow { -webkit-text-stroke: 1.2px #1b2a26; color: transparent; }
.fx-glow { color: #fff; text-shadow: 0 0 6px #ff4fd8, 0 0 12px #ff4fd8; }
.fx-neon { color: #fff; text-shadow: 0 0 4px #3df5ff, 0 0 10px #3df5ff; }
.fx-highlight { background: #ffe066; padding: 0 3px; }
.fx-echo { text-shadow: 3px 3px 0 rgba(27, 42, 38, .35); }
.fx-splice { color: #fff; -webkit-text-stroke: 1px #1b2a26; text-shadow: 3px 3px 0 #e8ad22; }
.fx-retro { color: #e8467c; text-shadow: 2px 2px 0 #1fb5a3, 4px 4px 0 #1b2a26; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.look { display: grid; gap: 3px; justify-items: center; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 3px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.look canvas { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: var(--work); }
.look.on { border-color: var(--gold); background: var(--gold-tint); }
.fb-pop { width: 300px; padding: 4px; }
.fb-pop-title { font: 600 13px var(--font); margin: 2px 0 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }

/* Print With Packlyn: the bleed is always included (shown ticked, can't be changed) */
.switch-row.qw-bleed { cursor: default; margin-top: 6px; }
.switch-row.qw-bleed input { opacity: 1; }
/* Forgot Password Or Username: the two choices side by side */
.ws-seg { display: flex; width: 100%; margin: 2px 0 12px; }
.ws-seg button { flex: 1; padding: 8px 11px; font-size: 13px; }
