/* ===========================================================================
   Brand+ — admin styles (dark)
   ======================================================================== */
:root {
  --bm-bg: #0b0d10;
  --bm-topbar: #07080a;
  --bm-accent: #8cb5cb;
  --bm-accent-ink: #082230;
  --ink: #e8eaee;
  --muted: #98a0ac;
  --line: #262c35;
  --line-strong: #353d49;
  --bg: #0b0d10;
  --card: #161a20;
  --card-2: #1d232b;
  --radius: 12px;
  --danger: #f0616a;
  --ok: #46d18a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bm-accent); }
h1, h2, h3 { letter-spacing: -.01em; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600;
  font-size: .9rem; line-height: 1.1; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--bm-accent); color: var(--bm-accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card-2); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #242b34; border-color: var(--line-strong); }
.btn-danger { background: transparent; border-color: #5a2a30; color: var(--danger); }
.btn-danger:hover { background: #2a1518; }
.btn-sm { padding: .4rem .65rem; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Top bar -------------------------------------------------------------- */
.topbar { background: var(--bm-topbar); border-bottom: 1px solid var(--line); }
.topbar__inner {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem 1.5rem; position: relative;
}
.topbar__search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 34vw); margin: 0; }
.topbar__search input { width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; color: var(--ink); font: inherit; font-size: .9rem; }
.topbar__search input::placeholder { color: #6b727d; }
.topbar__search input:focus { outline: 2px solid var(--bm-accent); outline-offset: 0; border-color: var(--bm-accent); }
@media (max-width: 980px) { .topbar__search { display: none; } }
.topbar__brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; margin-right: auto; letter-spacing: -.02em; }
.topbar__brand span { color: var(--bm-accent); }
.topbar__nav { display: flex; gap: 1.25rem; }
.topbar__nav a { color: #aeb4bd; text-decoration: none; font-size: .9rem; font-weight: 500; }
.topbar__nav a:hover { color: #fff; }
.topbar__nav a.is-active { color: var(--bm-accent); }
.topbar__user { display: flex; align-items: center; gap: .85rem; font-size: .85rem; color: var(--muted); }
.topbar__user a { color: #cdd2da; text-decoration: none; font-weight: 500; }
.topbar__user a:hover { color: #fff; }
.topbar__user form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.linkbtn:hover { color: #fff; }

/* --- Layout --------------------------------------------------------------- */
.container { max-width: 1160px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.container--narrow { max-width: 760px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.backlink { display: inline-block; color: var(--muted); text-decoration: none; font-size: .85rem; margin-bottom: .75rem; }
.backlink:hover { color: var(--ink); }

/* --- Flash ---------------------------------------------------------------- */
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; border: 1px solid; }
.flash--success { background: #10241a; border-color: #1d4733; color: #7ee0aa; }
.flash--error { background: #2a1518; border-color: #5a2a30; color: #f6929a; }
.flash--info { background: #13212e; border-color: #284055; color: #9fc7dd; }

/* --- Cards / tables ------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card--pad { padding: 1.25rem 1.35rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--card-2); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
code { background: var(--card-2); padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge--pub { background: #10241a; color: #7ee0aa; }
.badge--draft { background: #21262e; color: #aab1bc; }
.badge--admin { background: #221a33; color: #c4b1f0; }
.badge--team { background: #13212e; color: #9fc7dd; }
.badge--user { background: #21262e; color: #aab1bc; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field > label:not(.switch) { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field > label.switch { margin-bottom: .35rem; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], textarea, select {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--card-2); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #6b727d; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--bm-accent); outline-offset: 0; border-color: var(--bm-accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.inline-fields { display: flex; gap: .5rem; align-items: center; }

.colourpick { display: flex; gap: .5rem; align-items: center; }
.colourpick input[type=color] { width: 46px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); cursor: pointer; flex: none; }

/* --- Toggle switch -------------------------------------------------------- */
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 42px; height: 24px; border-radius: 999px; background: #3a424d; position: relative; transition: .15s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + .switch__track { background: var(--bm-accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--bm-accent); outline-offset: 2px; }

/* --- Editor --------------------------------------------------------------- */
.editor { display: flex; flex-direction: column; }
.editor__assets { order: 1; }   /* files first */
.editor__form { order: 2; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; margin-bottom: 1.5rem; }
.panel > h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.panel__hint { color: var(--muted); font-size: .82rem; margin: 0 0 1rem; }

/* --- Dropzone + asset list ------------------------------------------------ */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: 12px; padding: 1.5rem; text-align: center;
  color: var(--muted); cursor: pointer; transition: .15s; background: var(--card-2); margin-bottom: 1rem;
}
.dropzone.is-over { border-color: var(--bm-accent); background: #18222b; color: var(--ink); }
.dropzone strong { color: var(--ink); }
.dropzone input { display: none; }

.asset { display: flex; align-items: center; gap: .85rem; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); margin-bottom: .6rem; }
.asset.dragging { opacity: .4; }
.asset__handle { cursor: grab; color: #6b727d; font-size: 1.1rem; flex: none; user-select: none; }
.asset__thumb { width: 54px; height: 54px; border-radius: 8px; background: #0e1216; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.asset__thumb img { max-width: 100%; max-height: 100%; }
.asset__body { flex: 1; min-width: 0; }
.asset__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset__meta { color: var(--muted); font-size: .78rem; }
.asset__controls { display: flex; align-items: center; gap: .4rem; flex: none; }
.asset__controls select { width: auto; padding: .35rem .5rem; font-size: .8rem; }

/* --- Colour + font rows --------------------------------------------------- */
.crow { display: grid; grid-template-columns: 44px 1.3fr 1fr 1fr 1fr 42px 92px auto; gap: .5rem; align-items: center; margin-bottom: .55rem; }
/* Column labels above the palette rows. */
.crow--head { margin-bottom: .35rem; }
.crow--head span { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
/* "Show in Colour-in-use" toggle. */
.cshow { display: grid; place-items: center; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); cursor: pointer; }
.cshow input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--bm-accent); }
.crow input, .crow select { padding: .5rem .55rem; font-size: .85rem; }

/* Per-colour logo colour-way: a mini preview of the logo on that colour. */
.clogo { position: relative; height: 40px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.clogo__img { max-width: 78%; max-height: 70%; object-fit: contain; }
.clogo__pick { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: transparent; cursor: pointer; font-size: .72rem; }
.clogo[data-has="0"] .clogo__pick { background: var(--card-2); color: var(--muted); }
.clogo:hover .clogo__pick { background: rgba(0, 0, 0, .55); color: #fff; }
.clogo__clear { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 1; padding: 0; border-radius: 5px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; display: none; }
.clogo[data-has="1"]:hover .clogo__clear { display: block; }
.crow__chip { width: 44px; height: 40px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; padding: 0; background: var(--card-2); }
@media (max-width: 720px) {
  .crow { grid-template-columns: 44px 1fr 1fr; }
  .crow--head { display: none; }   /* labels only make sense on the wide grid */
}

.font-block { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.font-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.iconbtn { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.iconbtn:hover { color: var(--danger); border-color: #5a2a30; background: #2a1518; }

/* --- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: #f4f5f7; color: #0b0d10; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #f0616a; color: #fff; }

/* --- Auth ----------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #12171d 0%, var(--bm-bg) 60%); padding: 2rem; }
.auth__card { width: 100%; max-width: 23rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2.25rem; }
.auth__brand { font-weight: 700; font-size: 1.3rem; margin: 0 0 .15rem; letter-spacing: -.02em; }
.auth__brand span { color: var(--bm-accent); }
.auth__sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.auth .btn-primary { width: 100%; justify-content: center; padding: .75rem; }
.auth__err { background: #2a1518; border: 1px solid #5a2a30; color: #f6929a; font-size: .85rem; padding: .6rem .75rem; border-radius: 8px; margin-bottom: 1rem; }

/* --- Brand gallery (dashboard) ------------------------------------------- */
.gallery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.gallery-head h1 { font-size: 1.7rem; font-weight: 600; margin: 0 0 .3rem; }
.gallery-search { display: block; background: transparent; border: 0; color: var(--ink); font-size: 1.4rem; font-weight: 300; padding: 0; width: min(460px, 46vw); }
.gallery-search::placeholder { color: #5b626c; }
.gallery-search:focus { outline: none; }
.gallery-head__right { display: flex; align-items: center; gap: 1rem; padding-top: .5rem; flex-wrap: wrap; }
.gallery-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.gallery-sort { width: auto; background: transparent; border: 0; color: var(--ink); font-size: .85rem; cursor: pointer; padding: .2rem; }
.viewtoggle { display: flex; gap: .25rem; }
.viewtoggle button { background: transparent; border: 0; color: var(--muted); width: 32px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; }
.viewtoggle button.is-active { color: var(--ink); background: var(--card-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.9rem 1.5rem; }
.pcard { display: block; }
.pcard__coverlink { display: block; text-decoration: none; }
.pcard__cover { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center; padding: 2.2rem; border: 1px solid var(--line); transition: border-color .15s ease; }
.pcard__coverlink:hover .pcard__cover { border-color: var(--line-strong); }
.pcard__cover img { max-width: 74%; max-height: 60%; width: auto; height: auto; object-fit: contain; margin: auto; }
/* Logo with a baked-in background → fill the tile so its background reads as
   the tile colour, instead of a small boxed logo floating on the brand colour. */
.pcard__cover--fill { padding: 0; }
.pcard__cover--fill img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.pcard__mark { font-size: 2.6rem; font-weight: 700; }
.pcard__meta { padding: .85rem .15rem 0; }
.pcard__title { display: flex; align-items: center; gap: .55rem; position: relative; }
.pcard__title .dot { width: .5rem; height: .5rem; border-radius: 50%; flex: none; }
.dot--pub { background: #46d18a; } .dot--draft { background: #5b626c; }
.pcard__name { font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name:hover { color: #fff; }
.pcard__menu { margin-left: auto; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 .25rem; border-radius: 6px; flex: none; }
.pcard__menu:hover { color: var(--ink); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.pcard__live { color: var(--bm-accent); text-decoration: none; font-weight: 600; }
.pcard__live:hover { text-decoration: underline; }
.pmenu { position: absolute; right: 0; top: calc(100% + .3rem); background: #1e242c; border: 1px solid var(--line-strong); border-radius: 10px; padding: .35rem; min-width: 170px; z-index: 30; box-shadow: 0 16px 36px -14px rgba(0,0,0,.7); display: none; }
.pmenu.is-open { display: block; }
.pmenu a, .pmenu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: .86rem; padding: .5rem .6rem; border-radius: 7px; cursor: pointer; text-decoration: none; }
.pmenu a:hover, .pmenu button:hover { background: var(--card-2); }
.pmenu button.danger { color: var(--danger); }
.pmenu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem .2rem; }
.pmenu form { margin: 0; }

.gallery--list { grid-template-columns: 1fr; gap: .6rem; }
.gallery--list .pcard { display: flex; align-items: center; gap: 1.1rem; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem .6rem .6rem; background: var(--card); }
.gallery--list .pcard__coverlink { flex: none; }
.gallery--list .pcard__cover { width: 120px; aspect-ratio: 16 / 10; padding: .9rem; border-radius: 9px; }
.gallery--list .pcard__cover img { max-width: 85%; max-height: 78%; }
.gallery--list .pcard__meta { padding: 0; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery--list .pcard__foot { margin-top: 0; gap: .6rem; }
@media (max-width: 560px) { .gallery--list .pcard__foot span:first-child { display: none; } }

/* --- Responsive tweaks --------------------------------------------------- */
@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; gap: .55rem 1rem; padding: .7rem 1rem; }
  .topbar__nav { order: 3; width: 100%; gap: 1.1rem; }
  .container { padding: 1.5rem 1rem 3rem; }
  .gallery-head__left { width: 100%; }
  .gallery-search { width: 100%; font-size: 1.2rem; }
  .gallery-head__right { width: 100%; justify-content: space-between; padding-top: .25rem; }
  .gallery { gap: 1.4rem 1rem; }
  .row2 { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 40px 1fr 1fr; }
}

/* --- Visible-sections toggle grid (details form) ------------------------- */
.section-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem .9rem; }
.section-toggles .switch { margin: .15rem 0; }

/* --- Per-logo "Download pack" control (inside an asset row) --------------- */
.asset__dl { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.asset__dl-has { font-size: .78rem; }
.asset__dl[data-has="1"] .js-dl { display: none; }
.asset__dl[data-has="0"] .js-dl-has,
.asset__dl[data-has="0"] .js-dl-clear { display: none; }

/* --- Header image (hero) panel ------------------------------------------- */
.hero-field { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.hero-field:first-of-type { border-top: 0; }
.hero-field > label { width: 100%; font-weight: 600; font-size: .85rem; }
.hero-preview { width: 96px; height: 60px; border-radius: 8px; background: #0e1216; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.hero-preview img { max-width: 100%; max-height: 100%; object-fit: cover; }
.hero-field[data-has="0"] .js-hero-clear { display: none; }

/* --- Uploaded logo-pack file --------------------------------------------- */
.pack-field { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pack-has { font-size: .82rem; flex: 1; min-width: 140px; }
.pack-field[data-has="0"] .js-pack-clear { display: none; }

/* --- Colour in use: curated approved / not-approved sets ------------------ */
.cu-group { margin-bottom: 1.25rem; }
.cu-group__head { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.cu-group__head--ok { color: #35b37e; }
.cu-group__head--no { color: var(--danger, #e5484d); }
.cu-list:empty { border: 1px dashed var(--line); border-radius: 10px; padding: .85rem; margin-bottom: .55rem; }
.cu-list:empty::before { content: "No colours yet."; color: var(--muted); font-size: .82rem; }
.curow { display: grid; grid-template-columns: 44px 1.2fr 1fr 1.1fr 92px auto; gap: .5rem; align-items: center; margin-bottom: .55rem; }
.curow input, .curow select { padding: .5rem .55rem; font-size: .85rem; }
.curow select { min-width: 0; }
@media (max-width: 720px) { .curow { grid-template-columns: 44px 1fr 1fr; } }

/* --- Palette: PMS coated / uncoated pair in one cell ---------------------- */
.pms-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.pms-pair input { min-width: 0; }

/* --- Expanded palette editor --------------------------------------------- */
.eprow { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin-bottom: .6rem; background: var(--card-2); }
.eprow__top { display: flex; gap: .5rem; align-items: center; margin-bottom: .55rem; }
.eprow__top input { font-weight: 600; }
.epsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.epcell { border: 1px solid var(--line); border-radius: 8px; padding: .4rem; display: flex; flex-direction: column; gap: .3rem; background: var(--card); }
.epcell__k { font-size: .72rem; font-weight: 700; color: var(--muted); }
.epcell__sw { height: 26px; border-radius: 5px; border: 1px solid var(--line); }
.epcell input { padding: .35rem .4rem; font-size: .78rem; }
@media (max-width: 900px) { .epsteps { grid-template-columns: repeat(2, 1fr); } }

/* --- Logo row: display name + optional card background -------------------- */
.asset__namerow { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.asset__namerow .asset__label { flex: 1; min-width: 0; }
.asset__bg { display: inline-flex; align-items: center; gap: .3rem; flex: none; padding: .15rem .3rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); cursor: pointer; }
.asset__bg-k { font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.asset__bg input[type=color] { width: 28px; height: 26px; padding: 1px; border: 1px solid var(--line); border-radius: 5px; background: none; cursor: pointer; }
.asset__bg .iconbtn { width: 24px; height: 24px; }

/* --- "Type on brand colours" panel ---------------------------------------- */
.tp-group { margin-bottom: 1rem; }
.tp-h { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
.tp-h--rec { color: var(--ok); }
.tp-h--avoid { color: var(--danger); }
.tprow { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; flex-wrap: wrap; }
.tprow select { flex: 1; min-width: 130px; padding: .45rem .5rem; font-size: .84rem; }
.tp-sw { flex: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.tp-sw span { font-size: .95rem; font-weight: 800; }
.tp-on { color: var(--muted); font-size: .8rem; flex: none; }
.tp-chip { font-size: .74rem; font-weight: 600; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.tp-chip:empty { display: none; }
.tp-chip--good { background: #10241a; color: #7ee0aa; }
.tp-chip--mid { background: #2b2412; color: #e8c56a; }
.tp-chip--bad { background: #2a1518; color: #f6929a; }
.tprow.is-bad select { border-color: #5a2a30; }
