
/* Layout: one column of cut-paper cards on a cream page; home = hero + filters + grid, class page = facts, then reviews. Tokens are the KelasKita design system's. */
:root {
  --surface-page: #fff8f1; --surface-card: #ffffff; --surface-peach: #ffe9dc; --surface-butter: #fff4cc;
  --surface-mint: #dff5ec; --surface-sky: #e0f1fb; --ink: #3d2f29; --ink-muted: #6e5d55;
  --border: #ecd9cc; --border-control: #8a776d; --primary: #ff8a65; --primary-hover: #f57750; --on-primary: #3d2f29;
  --accent-mint: #7fd8be; --accent-lilac: #c3aed6; --accent-sky: #8ecae6; --accent-leaf: #b5d98a; --accent-peach: #ffc2a8;
  --accent-butter: #ffd166; --on-accent: #3d2f29; --link: #b84a1f; --focus: #b84a1f; --success: #1f7a5c; --danger: #b3261e;
  --shadow-paper: 3px 3px 0 #ecd9cc;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif; --font-sans: "Nunito", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface-page: #2b2320; --surface-card: #3a302b; --surface-peach: #4a3a33; --surface-butter: #4a4228;
  --surface-mint: #2d4339; --surface-sky: #2e3f4a; --ink: #fbf1e8; --ink-muted: #d6c5ba;
  --border: #5a4a42; --border-control: #a8968b; --primary: #ff9e80; --primary-hover: #ffb39c; --on-primary: #2b2320;
  --on-accent: #2b2320; --link: #ffb08f; --focus: #ffb08f; --success: #7fd8be; --danger: #ffb4a8;
  --shadow-paper: 3px 3px 0 #1a1412; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --surface-page: #2b2320; --surface-card: #3a302b; --surface-peach: #4a3a33; --surface-butter: #4a4228;
  --surface-mint: #2d4339; --surface-sky: #2e3f4a; --ink: #fbf1e8; --ink-muted: #d6c5ba;
  --border: #5a4a42; --border-control: #a8968b; --primary: #ff9e80; --primary-hover: #ffb39c; --on-primary: #2b2320;
  --on-accent: #2b2320; --link: #ffb08f; --focus: #ffb08f; --success: #7fd8be; --danger: #ffb4a8;
  --shadow-paper: 3px 3px 0 #1a1412; color-scheme: dark;
}

/* KelasKita components. Every value comes from tokens.css. */

.kk-root {
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  padding: var(--space-6);
  box-sizing: border-box;
}
.kk-root *, .kk-root *::before, .kk-root *::after { box-sizing: border-box; }
.kk-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.kk-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.kk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.kk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kk-icon { flex: none; display: inline-block; vertical-align: middle; }
.kk-icon--star { fill: var(--accent-butter); stroke: var(--on-accent); stroke-width: 1.5; }
.kk-icon--muted { color: var(--ink-muted); }

:where(.kk-btn, .kk-filter, .kk-search__loc, .kk-card__save, .kk-search__input):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Logo */
.kk-logo { display: inline-flex; align-items: center; gap: var(--space-2); }
.kk-logo__shadow { fill: var(--border); }
.kk-logo__sun { fill: var(--accent-butter); }
.kk-logo__block { fill: var(--primary); }
.kk-logo__dot { fill: var(--accent-mint); }
.kk-logo__k { fill: var(--on-primary); }
.kk-logo__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.kk-logo__kita { color: var(--link); }

/* Button */
.kk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 24px;
  border: 2px solid transparent; border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.kk-btn--sm { font-size: 15px; line-height: 20px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.kk-btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-paper); }
.kk-btn--primary:hover { background: var(--primary-hover); }
.kk-btn--primary:active { transform: translate(3px, 3px); box-shadow: none; }
.kk-btn--secondary { background: var(--surface-card); color: var(--ink); border-color: var(--ink); }
.kk-btn--secondary:hover { background: var(--surface-peach); }
.kk-btn--ghost { background: transparent; color: var(--link); padding-left: var(--space-3); padding-right: var(--space-3); }
.kk-btn--ghost:hover { background: var(--surface-peach); }
.kk-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* Search field */
.kk-search {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface-card); color: var(--ink);
  border: 2px solid var(--border-control); border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  box-shadow: var(--shadow-paper);
  max-width: 640px;
}
.kk-search__icon { color: var(--ink-muted); }
.kk-search__input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-family: var(--font-sans); font-size: 16px; padding: var(--space-2) 0;
  border-radius: var(--radius-sm);
}
.kk-search__input:focus { outline: none; }
.kk-search__input::placeholder { color: var(--ink-muted); opacity: 1; }
.kk-search__input::-webkit-search-cancel-button { display: none; }
.kk-search__loc {
  display: none; align-items: center; gap: var(--space-1);
  border: 0; border-left: 2px solid var(--border); background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-weight: 700; font-size: 14px; line-height: 20px;
  padding: var(--space-2) var(--space-3); cursor: pointer;
}
.kk-search__go { border-radius: var(--radius-pill); box-shadow: none; padding: var(--space-2) var(--space-6); }
@media (min-width: 520px) { .kk-search__loc { display: inline-flex; } }

/* Filter bar */
.kk-filterbar { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-1) var(--space-1) var(--space-2); scrollbar-width: none; }
.kk-filterbar::-webkit-scrollbar { display: none; }
.kk-filter {
  flex: none; display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700;
  color: var(--ink); background: var(--surface-card);
  border: 2px solid var(--border-control); border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3); cursor: pointer;
}
.kk-filter b { font-weight: 800; }
.kk-filter:hover { background: var(--surface-peach); }
.kk-filter.is-active { background: var(--ink); color: var(--surface-card); border-color: var(--ink); }

/* Category chip, badge, rating */
.kk-tone-mint { background: var(--accent-mint); color: var(--on-accent); }
.kk-tone-lilac { background: var(--accent-lilac); color: var(--on-accent); }
.kk-tone-sky { background: var(--accent-sky); color: var(--on-accent); }
.kk-tone-leaf { background: var(--accent-leaf); color: var(--on-accent); }
.kk-tone-peach { background: var(--accent-peach); color: var(--on-accent); }
.kk-chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-sans); font-weight: 700; font-size: 14px; line-height: 20px;
  border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
  width: max-content;
}
.kk-chip--sm { font-size: 12px; line-height: 16px; padding: 2px var(--space-2) 2px 6px; }
.kk-badge {
  display: inline-flex; align-items: center; gap: var(--space-1); vertical-align: middle;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px; line-height: 16px;
  border-radius: var(--radius-pill); padding: 2px var(--space-2) 2px 6px;
}
.kk-badge--verified { background: var(--surface-mint); color: var(--success); }
.kk-badge--featured { background: var(--accent-butter); color: var(--on-accent); }
.kk-badge--new { background: var(--surface-sky); color: var(--ink); }
.kk-rating { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-1); font-size: 14px; line-height: 20px; color: var(--ink); }
.kk-rating__value { font-weight: 800; }
.kk-rating__count { color: var(--ink-muted); }
.kk-stars { display: inline-flex; gap: 2px; }

/* Cards */
.kk-card {
  background: var(--surface-card); color: var(--ink);
  border: 2px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
}
.kk-listing { overflow: hidden; display: flex; flex-direction: column; max-width: 360px; }
.kk-card__media { position: relative; height: 150px; overflow: hidden; display: grid; place-items: center; border-radius: 0; }
.kk-card__img { width: 100%; height: 100%; object-fit: cover; }
.kk-card__glyph { position: relative; color: var(--ink); stroke-width: 1.6; }
.kk-card__cut { position: absolute; width: 96px; height: 96px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: var(--radius-pill); background: var(--surface-card); box-shadow: var(--shadow-paper); }
.kk-card__flag { position: absolute; left: var(--space-3); top: var(--space-3); }
.kk-card__save {
  position: absolute; right: var(--space-3); top: var(--space-3);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--surface-card); color: var(--ink); cursor: pointer;
}
.kk-card__save:hover { background: var(--surface-peach); }
.kk-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.kk-card__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; }
.kk-card__provider { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.kk-card__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; line-height: 20px; }
.kk-card__meta li { display: flex; align-items: center; gap: var(--space-2); }
.kk-card__meta .kk-icon { color: var(--ink-muted); }
.kk-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-3); border-top: 2px dashed var(--border); }
.kk-card__price { white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; }
.kk-card__price small { font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--ink-muted); }

.kk-review { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); max-width: 420px; }
.kk-review__head { display: flex; align-items: center; gap: var(--space-3); }
.kk-review__avatar {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center; background: var(--surface-peach); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
}
.kk-review__who { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; flex: 1; min-width: 0; }
.kk-review__who span { color: var(--ink-muted); }
.kk-review__date { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.kk-review__text { margin: 0; font-size: 16px; line-height: 24px; }
.kk-review__class { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 18px; }

/* Doodles: the only things that move */
.kk-doodle { display: block; flex: none; position: relative; }
.kk-doodle__bob { transform-origin: 60px 104px; animation: kk-bob 2.6s ease-in-out infinite alternate; }
.kk-doodle__wave { transform-box: fill-box; transform-origin: 0% 100%; animation: kk-wave 1.1s ease-in-out infinite alternate; }
.kk-doodle__wave--up { transform-origin: 50% 100%; }
.kk-doodle__wave--tail { transform-origin: 100% 50%; }
.kk-doodle__float { animation: kk-float 1.9s ease-in-out infinite alternate; }
.kk-doodle--still .kk-doodle__bob, .kk-doodle--still .kk-doodle__wave, .kk-doodle--still .kk-doodle__float { animation: none; }
@keyframes kk-bob { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-2px); } }
@keyframes kk-wave { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes kk-float { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.kk-scene { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-paper); }
.kk-scene__slow { animation-duration: 3.2s; }
.kk-scene__spin { transform-box: fill-box; transform-origin: 50% 50%; animation: kk-spin .6s linear infinite; }
.kk-scene__twinkle { animation: kk-twinkle 1.3s ease-in-out infinite alternate; }
.kk-scene__drift { animation: kk-drift 7s ease-in-out infinite alternate; }
.kk-scene__drift--back { animation-direction: alternate-reverse; }
.kk-scene__zoom { animation: kk-zoom 2.2s ease-in-out infinite alternate; }
.kk-doodle--still .kk-scene__spin, .kk-doodle--still .kk-scene__twinkle, .kk-doodle--still .kk-scene__drift, .kk-doodle--still .kk-scene__zoom { animation: none; }
@keyframes kk-spin { to { transform: rotate(360deg); } }
@keyframes kk-twinkle { from { opacity: 1; } to { opacity: .35; } }
@keyframes kk-drift { from { transform: translateX(-10px); } to { transform: translateX(12px); } }
@keyframes kk-zoom { from { transform: translate(-4px, 3px); } to { transform: translate(8px, -5px); } }
@media (prefers-reduced-motion: reduce) {
  .kk-doodle__bob, .kk-doodle__wave, .kk-doodle__float, .kk-scene__spin, .kk-scene__twinkle, .kk-scene__drift, .kk-scene__zoom { animation: none; }
}


*, *::before, *::after { box-sizing: border-box; }
body { background: var(--surface-page); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
:where(a, button, select, input, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4); }
.top a { text-decoration: none; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding-block: var(--space-4) var(--space-8); }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.hero h1 { font-size: 44px; line-height: 52px; }
.hero p { font-size: 18px; line-height: 28px; max-width: 34em; }
.hero .kk-search { max-width: 520px; padding-right: var(--space-4); min-height: 52px; }
.hero__art { max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .hero__art { justify-self: start; }
}
.note { background: var(--surface-butter); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.controls { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-6) var(--space-2); }
.kk-filterbar { margin-inline: -4px; }
.kk-filter { min-height: 44px; }
.selects { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.pick { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 700; font-size: 14px; line-height: 20px; }
.pick select, .field select, .field input, .field textarea {
  font: inherit; font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: var(--surface-card);
  border: 2px solid var(--border-control); border-radius: var(--radius-md); padding: 10px var(--space-3); min-height: 44px; max-width: 100%;
}
.pick select { border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; padding-block: 6px; }
.listhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-4); }
.listhead h2 { font-size: 24px; line-height: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); padding-bottom: var(--space-12); }
a.kk-listing { max-width: none; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
a.kk-listing:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--border); }
.kk-listing .kk-card__foot { margin-top: auto; }
.kk-listing .kk-card__body { flex: 1; }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; padding: var(--space-8) var(--space-4); background: var(--surface-card); border: 2px dashed var(--border); border-radius: var(--radius-lg); }
.empty h3 { font-size: 19px; line-height: 26px; }

/* class page */
.back { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; text-decoration: none; min-height: 44px; }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); padding-bottom: var(--space-12); align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.media { height: 220px; border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-paper); }
.detail h1 { font-size: 32px; line-height: 40px; }
.detail h2 { font-size: 24px; line-height: 32px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.facts div { background: var(--surface-card); border: 2px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.facts dt { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; overflow-wrap: anywhere; }
.elsewhere { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.elsewhere .kk-btn { min-height: 44px; }
.qadd { padding: 0; }
.qadd summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 700; font-size: 14px; color: var(--link); border-radius: var(--radius-md); min-height: 44px; display: flex; align-items: center; }
.kk-review__class { flex-wrap: wrap; }
.owner { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding-top: var(--space-3); border-top: 2px dashed var(--border); }
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); align-items: center; padding: var(--space-4); }
.summary__score { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.summary__score b { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 52px; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px var(--space-2); align-items: center; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.bars i { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--surface-peach); overflow: hidden; }
.bars i b { display: block; height: 100%; background: var(--accent-butter); border-radius: var(--radius-pill); }
.revhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.reviews { display: flex; flex-direction: column; gap: var(--space-4); }
.kk-review { max-width: none; }
.kk-review__text { overflow-wrap: anywhere; white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.linkbtn { border: 0; background: none; padding: var(--space-2); font: inherit; font-size: 14px; font-weight: 700; color: var(--link); cursor: pointer; border-radius: var(--radius-sm); }
.linkbtn.danger { color: var(--danger); }

/* forms */
.form { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.form h2, .form h3 { font-size: 19px; line-height: 26px; }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 14px; line-height: 20px; padding: 0; }
.field textarea { min-height: 120px; resize: vertical; width: 100%; }
.field input, .field select { width: 100%; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 420px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.starpick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { cursor: pointer; padding: 4px; border-radius: var(--radius-sm); color: var(--ink-muted); }
.starpick label svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.starpick input:checked ~ label svg, .starpick label:hover svg, .starpick label:hover ~ label svg { fill: var(--accent-butter); stroke: var(--on-accent); }
.starpick input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice label { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-1) var(--space-3); border: 2px solid var(--border-control); border-radius: var(--radius-pill); background: var(--surface-card); font-weight: 700; font-size: 14px; cursor: pointer; }
.choice input { accent-color: var(--link); }
.msg { font-size: 14px; line-height: 20px; font-weight: 700; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--success); }
dialog { border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-page); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-paper); }
dialog::backdrop { background: rgba(43, 35, 32, .55); }
.foot { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.site-foot { border-top: 2px dashed var(--border); padding-block: var(--space-6); }
@media (prefers-reduced-motion: reduce) { a.kk-listing, .kk-btn { transition: none; } }

/* ---- launch site additions ---- */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.top a { display: inline-flex; }
.summary p { margin: 0; }
.summary > div:last-child { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.elsewhere .kk-btn { min-height: 48px; }
@media (max-width: 420px) { .elsewhere .kk-btn { flex: 1 1 100%; } }
