/* mopal: a quiet white workbench (after isocons.app): a grotesk for reading, monospace for codes and labels,
   brand blue for action. A palette's own title, mood and previews are set in a pairing that fits its feeling. */
:root {
  --blue: #0737D1;
  --blue-ink: #052A9F;
  --blue-soft: #EAF0FD;
  --blue-line: #C9D7FA;
  --logo-a: #0737D1;
  --logo-b: #FF6B9A;
  --logo-face: #FFFFFF;
  --page: #FFFFFF;
  --card: #FFFFFF;
  --soft: #F6F7F9;
  --ink: #15171C;
  --muted: #7E8391;
  --line: #ECEDF1;
  --green: #2FA866;
  --green-soft: #E7F6EE;
  --radius: 18px;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 10px 30px rgba(21, 23, 28, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- header ---------- */
.top { padding: clamp(20px, 3vw, 40px) clamp(16px, 5vw, 96px) 0; display: grid; gap: clamp(18px, 3vw, 36px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-word { font: 500 clamp(30px, 4vw, 42px)/1 var(--mono); letter-spacing: .02em; }
/* The mark: a living gradient that spins and drifts through hues, with the wink on top. */
@property --logo-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.logo-mark {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 6px 18px -6px rgba(122, 92, 255, .55);
  animation: logo-in .9s cubic-bezier(.2, .9, .25, 1.2) both;
  transition: transform .25s;
}
.logo-face { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgba(20, 10, 60, .35)); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo:hover .logo-mark::before { animation-duration: 2s, 14s; }
@keyframes logo-spin { to { --logo-turn: 360deg; } }
@keyframes logo-hue { to { filter: blur(5px) saturate(1.2) hue-rotate(60deg); } }
@keyframes logo-in {
  0% { opacity: 0; transform: scale(.4) rotate(-90deg); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-mark::before { animation: none; }
}
.version { font: 500 12px/1 var(--mono); color: var(--green); background: var(--green-soft); border: 1.5px solid #9ED9B7; border-radius: 999px; padding: 5px 9px; }
.top-links { display: flex; gap: 20px; }
.link-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 0; font-weight: 500; letter-spacing: .02em; }
.link-btn:hover { color: var(--blue); }
.tagline { margin: 0; color: var(--muted); font-size: 16px; letter-spacing: .01em; }
.tagline b { color: var(--ink); font-weight: 500; }
.tag-swatch { display: inline-flex; vertical-align: -2px; margin-left: 6px; }
.tag-swatch i { width: 10px; height: 16px; }
.tag-swatch i:nth-child(1) { background: var(--logo-a); border-radius: 3px 0 0 3px; }
.tag-swatch i:nth-child(2) { background: #F5C518; }
.tag-swatch i:nth-child(3) { background: var(--logo-b); border-radius: 0 3px 3px 0; }
.makers { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: default; font-weight: 500; letter-spacing: .02em; }
/* The creator's photo; the blue E shows until the photo loads, or if it's missing. */
.avatar {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--page); background: var(--blue); box-shadow: 0 0 0 1.5px var(--blue-line), 0 4px 12px -4px rgba(7, 55, 209, .5);
  color: #fff; font: 600 15px/1 var(--mono); transition: transform .2s, box-shadow .2s;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.makers:hover .avatar, .makers:focus-visible .avatar { transform: scale(1.06); box-shadow: 0 0 0 2px var(--blue), 0 6px 16px -4px rgba(7, 55, 209, .55); }
/* Hovering the photo reveals the full name in a small card under it. */
.maker-card {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 20; display: grid; gap: 4px; min-width: 220px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow), 0 16px 40px -12px rgba(21, 23, 28, .18);
  text-align: left; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s, transform .18s, visibility 0s .18s; pointer-events: none;
}
.maker-card::before { content: ''; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.makers:hover .maker-card, .makers:focus-visible .maker-card { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.maker-card-name { font: 600 18px/1.2 var(--sans); letter-spacing: 0; color: var(--ink); }
.maker-card-sub { font: 400 13px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
/* The mark: a living gradient that spins and drifts through hues. */
.logo-mark::before {
  content: ''; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%),
    conic-gradient(from var(--logo-turn), #FF3D7F, #FF8A3D, #FFC93D, #3DDC97, #2EC5FF, #5B5CFF, #B44DFF, #FF3D7F);
  filter: blur(5px) saturate(1.2);
  animation: logo-spin 6s linear infinite, logo-hue 14s ease-in-out infinite alternate;
}

/* ---------- app shell: carded sidebar on the left, output on the right ---------- */
.app { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 2.5vw, 40px); align-items: start; padding: clamp(20px, 3vw, 40px) clamp(16px, 5vw, 96px) 80px; }
.side { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; max-height: calc(100vh - 40px); overflow-y: auto; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.side-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 16px 8px 14px; font-weight: 500; color: #A9ADB8; border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: .02em; }
.side-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--blue); }
.side-pane { display: grid; gap: 22px; padding: 20px; }
.side-pane[hidden] { display: none; }
.field { display: grid; gap: 10px; }
.field-row { display: flex; gap: 8px; }
.field-row .btn { flex: 1; }
.field-label { font-weight: 500; font-size: 15px; letter-spacing: .01em; }

.ask { display: grid; gap: 10px; }
.ask textarea {
  width: 100%; min-height: 92px; resize: none; border: 1px solid var(--line); border-radius: 14px; background: var(--soft);
  padding: 12px 14px; font: 400 15px/1.5 var(--sans); color: var(--ink); outline: none; transition: border-color .15s, background .15s;
}
.ask #notes { min-height: 64px; font-size: 14px; }
.field-label-sub { margin-top: 4px; }
.field-label span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.ask textarea:focus { border-color: var(--blue-line); background: var(--card); }
.ask textarea::placeholder { color: #A9ADB8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 5px 10px; font-size: 13px; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }

/* segmented control, like the Left / Top / Right picker */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.seg button { border: 0; border-radius: 10px; background: var(--blue-soft); color: #3D4A6B; padding: 9px 6px; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.seg button:hover { background: var(--blue); color: #fff; }

.export-list { display: grid; gap: 6px; }
.export-item { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 11px 14px; transition: border-color .15s, background .15s; width: 100%; }
.export-item span { font-weight: 500; }
.export-item small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-item:hover { border-color: var(--blue-line); background: var(--blue-soft); }

/* floating actions, bottom right */
.fabs { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; z-index: 5; }
.fab { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .15s, background .15s; }
.fab:hover { transform: translateY(-2px); background: #000; }
.fab:active { transform: scale(.96); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 500; letter-spacing: .02em; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn:disabled { opacity: .85; cursor: progress; }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 18px; font-weight: 500; letter-spacing: .02em; transition: border-color .15s; white-space: nowrap; }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.btn-outline:disabled { opacity: .4; cursor: default; }
.btn-sm-outline { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 500; transition: all .15s; white-space: nowrap; }
.chip-btn:hover:not(:disabled) { border-color: var(--ink); }
.chip-btn:disabled { opacity: .4; cursor: default; }

/* ---------- result ---------- */
.result { --f-head: var(--sans); --w-head: 600; --f-body: var(--sans); display: grid; gap: 22px; align-content: start; min-width: 0; transition: opacity .2s; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.result-bar .kicker { margin: 0; min-width: 0; }
.result.is-loading:not(.is-first) > * { opacity: .55; transition: opacity .2s; }
.result.is-first > * { visibility: hidden; }
.result.is-empty > :not(.empty), .result:not(.is-empty) > .empty { display: none; }
.empty { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: min(640px, calc(100vh - 220px)); padding: 48px 24px; text-align: center; border: 1.5px dashed #DADDE4; border-radius: var(--radius); color: var(--muted); }
.empty-mark { color: #C3C7D1; margin-bottom: 8px; }
.empty-h { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.empty-p { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.55; }
.empty-swatches { display: flex; gap: 6px; margin-top: 18px; }
.empty-swatches span { width: 40px; height: 56px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
body.no-kit .fabs { display: none; }
.seg button:disabled, .export-item:disabled, .link-btn:disabled { opacity: .45; cursor: default; }
.result.is-first { position: relative; min-height: 420px; }
.result.is-first::before {
  content: 'Mixing colours…'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius);
  color: var(--muted); font-weight: 500;
  background: linear-gradient(100deg, #EEF0F4 30%, #F8F9FB 50%, #EEF0F4 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

.result-head { margin: 0 0 4px; }
.kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kit-title { margin: 0; font-family: var(--f-head); font-weight: var(--w-head); font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
.kit-mood { margin: 10px 0 0; max-width: 64ch; font-family: var(--f-body); font-size: 17px; color: var(--muted); }
.kit-type { margin: 12px 0 0; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kit-type b { font-weight: 500; color: var(--ink); }

.swatches { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); height: clamp(220px, 30vw, 340px); border-radius: var(--radius); overflow: hidden; }
.swatch { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; transition: flex .2s; min-width: 0; }
.swatch-tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.swatch:hover .swatch-tools, .swatch:focus-within .swatch-tools, .swatch.is-locked .swatch-tools { opacity: 1; }
.swatch.is-locked .swatch-tools label { opacity: 0; }
.swatch.is-locked:hover .swatch-tools label { opacity: 1; }
.icon-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; backdrop-filter: blur(4px); }
.icon-btn:hover { background: rgba(255,255,255,.32); }
.icon-btn input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.swatch-hex { align-self: flex-start; border: 0; background: none; padding: 0; font: 500 clamp(15px, 1.7vw, 21px)/1.2 var(--mono); letter-spacing: .02em; text-align: left; }
.swatch-hex:hover { text-decoration: underline; text-underline-offset: 3px; }
.swatch-name { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch-role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-top: 2px; }


.kit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.panel-h { margin: 0 0 16px; font: 500 15px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-row .panel-h { margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.why-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.why-row:first-child { border-top: 0; padding-top: 0; }
.why-chip { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-top: 2px; }
.why-text { font-size: 14px; line-height: 1.45; }
.why-text strong { font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.why-meta { color: var(--muted); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.why-text p { margin: 3px 0 0; color: var(--ink); font-family: var(--f-body); font-size: 15px; }
.why-copy { padding: 4px 12px; font-size: 13px; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { aspect-ratio: 1; border-radius: 14px; }


.cpair { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cpair:first-child { border-top: 0; padding-top: 0; }
.cpair-chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cpair-label { font-size: 13px; font-weight: 500; line-height: 1.3; }
.cpair-label small { display: block; font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 12px; }
.cpair-score { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.cpair-score.ok { background: #E3F4E8; color: #1D6B3A; }
.cpair-score.bad { background: #FCE6E3; color: #A3271A; }
.chip-fix { padding: 4px 12px; border-color: var(--blue); color: var(--blue); }

/* ---------- preview ---------- */
.panel-preview { padding: 0; overflow: hidden; }
.preview-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 14px 0 14px; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected=true] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.preview { padding: 14px; font-family: var(--f-body); }
.preview h4 { margin: 0; font-family: var(--f-head); font-weight: var(--w-head); }
.mk-tile { border-radius: 14px; overflow: hidden; position: relative; transition: background .25s; }

.lockup { display: inline-flex; align-items: center; gap: 12px; }
.wordmark { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: -.01em; line-height: 1; }
.lockup-lg .wordmark { font-size: clamp(30px, 4vw, 46px); }
.lockup-sm { gap: 8px; }
.lockup-sm .wordmark { font-size: 20px; }
.lockup svg { flex: none; }

/* brand */
.mk-brand { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.mk-hero { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 230px; padding: 32px; }
.mk-tagline { margin: 0; max-width: 420px; font-size: 15px; opacity: .8; }
.mk-reverse { display: grid; place-items: center; min-height: 150px; padding: 20px; }
.mk-icons { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 20px; }
.app-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.mk-cards { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 28px 20px; flex-wrap: wrap; }
.biz-card { width: 230px; aspect-ratio: 1.75; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.biz-card:first-child { transform: rotate(-3deg); }
.biz-back { display: grid; place-items: center; transform: rotate(2deg); }
.biz-lines { display: grid; font-size: 12px; line-height: 1.35; }
.biz-lines strong { font-size: 14px; }
.biz-muted { opacity: .7; }

/* product */
.mk-product { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.mk-pack { grid-row: span 2; display: grid; place-items: center; padding: 16px; min-height: 340px; }
.pack { width: 100%; max-width: 340px; height: auto; }
.pack-name { font-family: var(--f-head); font-weight: var(--w-head); }
.mk-phone-wrap { display: grid; place-items: center; padding: 18px 0 0; overflow: hidden; }
.phone { width: 150px; height: 230px; border-radius: 22px 22px 0 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 -4px 20px rgba(0,0,0,.18); border: 4px solid rgba(0,0,0,.85); border-bottom: 0; }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-dot { width: 18px; height: 18px; border-radius: 50%; }
.phone-h { font-size: 17px; }
.phone-card { border-radius: 10px; padding: 10px; display: grid; gap: 3px; font-size: 11px; line-height: 1.25; }
.phone-card strong { font-size: 12px; }
.phone-pill { justify-self: start; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.phone-muted { opacity: .7; }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone-row span { aspect-ratio: 1; border-radius: 8px; }
.phone-btn { border: 0; border-radius: 99px; padding: 7px; font-size: 11px; font-weight: 700; }
.mk-poster { padding: 18px; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.poster-shape { position: absolute; width: 110px; height: 110px; border-radius: 50%; top: -24px; right: -18px; }
.poster-shape2 { position: absolute; width: 70px; height: 70px; top: 40px; right: 56px; border-radius: 6px; transform: rotate(18deg); opacity: .95; }
.poster-kicker { position: relative; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.poster-h { position: relative; font-size: 28px; line-height: 1; overflow-wrap: anywhere; }
.poster-foot { position: relative; font-size: 11px; opacity: .7; }

/* website */
.mk-web { border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); transition: background .25s; }
.web-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(0,0,0,.06); font: 12px var(--sans); }
.web-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.18); }
.web-chrome span { margin-left: 12px; padding: 2px 12px; border-radius: 99px; background: rgba(255,255,255,.5); color: #333; }
.web-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.web-links { display: flex; gap: 18px; font-size: 14px; opacity: .85; }
.web-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 24px 24px 32px; align-items: center; }
.web-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.web-h { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; margin-bottom: 12px !important; overflow-wrap: anywhere; }
.web-p { margin: 0 0 18px; font-size: 15px; opacity: .8; }
.web-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.web-btns button { border: 0; border-radius: 99px; padding: 10px 18px; font: 600 14px var(--f-body); }
.web-btns .ghost { background: none; border: 1.5px solid; }
.web-card { border-radius: 14px; padding: 12px; display: grid; gap: 4px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.web-card-img { height: 110px; border-radius: 10px; margin-bottom: 6px; }
.web-card strong { font-size: 15px; }
.web-meter { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); margin-top: 6px; overflow: hidden; }
.web-meter i { display: block; height: 100%; width: 62%; border-radius: inherit; }


.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .2s; z-index: 10; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .seg { grid-template-columns: repeat(4, 1fr); }
  .result-bar .btn-outline { display: none; }
}
@media (max-width: 640px) {
  .swatches { grid-template-columns: 1fr; height: auto; }
  .swatch { min-height: 76px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "hex tools" "name tools" "role tools"; align-content: center; padding: 12px 14px; }
  .swatch-hex { grid-area: hex; }
  .swatch-name { grid-area: name; }
  .swatch-role { grid-area: role; }
  .swatch-tools { position: static; grid-area: tools; opacity: 1; align-self: center; }
  .swatch.is-locked .swatch-tools label { opacity: 1; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-brand, .mk-product { grid-template-columns: 1fr; }
  .mk-pack { grid-row: auto; min-height: 0; }
  .mk-hero { padding: 24px; min-height: 190px; }
  .web-hero { grid-template-columns: 1fr; }
  .web-links { display: none; }
  .seg { grid-template-columns: 1fr 1fr; }
  .fab { width: 48px; height: 48px; }
  .makers-label { font-size: 14px; }
  .cpair { grid-template-columns: auto 1fr auto; }
  .chip-fix { grid-column: 2 / -1; justify-self: start; }
}
@media (hover: none) { .swatch-tools { opacity: 1; } .swatch.is-locked .swatch-tools label { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.btn-dark:disabled { opacity: .3; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .logo-mark::before { animation: none; }
}

/* Type roles: buttons, tabs and short labels speak in mono; anything you read as a sentence is in the grotesk. */
.btn, .btn-outline, .chip-btn, .link-btn, .chip, .seg button, .side-tabs button, .tabs button,
.field-label, .export-item span, .why-text strong, .cpair-label, .cpair-score, .makers-label, .empty-h, .toast {
  font-family: var(--mono);
}
.field-label span, .export-item small { font-family: var(--sans); }
