/* midorimax platform kit — generated by scripts/build-platform-kit.mjs; do not edit by hand. */
/*
  ============================================================
  MIDORIMAX THEMES  (v6 — precision)
  ============================================================
  Reference family (Muhammad's picks): Linear, Vercel, Supabase,
  Raycast, Cursor. The formula those share:
    - NEUTRAL backgrounds — near-black in dark, near-white in
      light. Never tinted, never murky. Precision lives in gray.
    - ONE exact accent color per theme. Color is a scalpel,
      not a bucket of paint.
    - Hairline borders, small radii, quiet shadows, subtle glow.

  Two user choices, combining freely:
    THEME = which accent (green · sakura · violet · navy · mono)
    MODE  = light / dark / follow-the-device

  Each line holds both modes:  --bg: light-dark(<light>, <dark>);
  ============================================================
*/

:root { color-scheme: light dark; }
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }

/* ---------- Shared precision constants ---------- */
:root {
  --radius: 10px;
  --radius-sm: 8px;

  --shadow-a: light-dark(rgba(10, 12, 10, 0.05), rgba(0, 0, 0, 0.35));
  --shadow-b: light-dark(rgba(10, 12, 10, 0.07), rgba(0, 0, 0, 0.45));
  --shadow-1: 0 1px 2px var(--shadow-a), 0 4px 12px var(--shadow-b);
  --shadow-2: 0 2px 4px var(--shadow-a), 0 12px 32px var(--shadow-b);

  --glass: light-dark(rgba(255, 255, 255, 0.72), rgba(14, 15, 14, 0.62));
  --glass-line: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));

  --glow: #00FF00; /* brand green — decoration only, tiny doses */
}

/*
  The neutral chassis is IDENTICAL for every theme — that's the
  Linear/Vercel discipline. Themes change the accent, not the world.
*/
:root, [data-theme="sakura"], [data-theme="violet"], [data-theme="navy"], [data-theme="mono"] {
  --bg:        light-dark(#FAFAF9, #0B0C0B);
  --surface:   light-dark(#FFFFFF, #141514);
  --ink:       light-dark(#161816, #EDEEEC);
  --ink-soft:  light-dark(#5F665F, #9BA19B);
  --line:      light-dark(#E6E7E4, #252725);
}

/* ---------- GREEN (default) — the Supabase move ---------- */
:root {
  /* Light accent is deliberately deep: at #0C8A50 the small overline
     text measured 4.22:1 and white-on-green measured 4.41:1 — both
     just under the 4.5 minimum. #0A7A47 lifts them to 5.2 and 5.4. */
  --accent:    light-dark(#0A7A47, #3ECF8E);
  --accent-ink:light-dark(#FFFFFF, #04150C);
  --pop:       light-dark(#10B981, #3ECF8E);
  --pop-2:     light-dark(#65A30D, #A3E635);
  --pop-ink:   #04150C;
  --scene:     light-dark(rgba(16, 185, 129, 0.10), rgba(62, 207, 142, 0.09));
}

/* ---------- SAKURA ---------- */
[data-theme="sakura"] {
  --accent:    light-dark(#DB2777, #F472B6);
  --accent-ink:light-dark(#FFFFFF, #2E0616);
  --pop:       light-dark(#EC4899, #F472B6);
  --pop-2:     light-dark(#FB7185, #FDA4AF);
  --pop-ink:   #2E0616;
  --scene:     light-dark(rgba(236, 72, 153, 0.09), rgba(244, 114, 182, 0.08));
}

/* ---------- VIOLET ---------- */
[data-theme="violet"] {
  --accent:    light-dark(#7C3AED, #A78BFA);
  --accent-ink:light-dark(#FFFFFF, #170B33);
  --pop:       light-dark(#8B5CF6, #A78BFA);
  --pop-2:     light-dark(#C084FC, #D8B4FE);
  --pop-ink:   #170B33;
  --scene:     light-dark(rgba(139, 92, 246, 0.09), rgba(167, 139, 250, 0.08));
}

/* ---------- NAVY ---------- */
[data-theme="navy"] {
  --accent:    light-dark(#2563EB, #60A5FA);
  --accent-ink:light-dark(#FFFFFF, #071B38);
  --pop:       light-dark(#3B82F6, #60A5FA);
  --pop-2:     light-dark(#06B6D4, #67E8F9);
  --pop-ink:   #071B38;
  --scene:     light-dark(rgba(59, 130, 246, 0.09), rgba(96, 165, 250, 0.08));
}

/* ---------- MONO ---------- */
[data-theme="mono"] {
  --accent:    light-dark(#161816, #EDEEEC);
  --accent-ink:light-dark(#FFFFFF, #161816);
  --pop:       light-dark(#161816, #EDEEEC);
  --pop-2:     light-dark(#5F665F, #B9BEB8);
  --pop-ink:   light-dark(#FFFFFF, #161816);
  --scene:     light-dark(rgba(22, 24, 22, 0.05), rgba(237, 238, 236, 0.05));
}

/* Legacy halo tokens kept as aliases of the single scene light. */
:root, [data-theme="sakura"], [data-theme="violet"], [data-theme="navy"], [data-theme="mono"] {
  --halo-1: var(--scene);
  --halo-2: var(--scene);
}

/* ---------- from components.css, the rules the header, footer and settings use ---------- */
.mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--radius-sm); 
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  touch-action: manipulation; 
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease,
    background-color 200ms ease, border-color 200ms ease;
}
@media (pointer: coarse) {
.mx-btn { min-height: 44px; }
}
.mx-btn svg { transition: transform 200ms ease; }
.mx-btn:hover svg { transform: translateX(3px); }
.mx-btn:hover { transform: translateY(-1px); }
.mx-btn:active { transform: translateY(0) scale(0.98); }
.mx-btn:focus-visible,
.mx-seg-item:focus-visible,
.mx-swatch:focus-visible,
.mx-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.mx-btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
  
  box-shadow: var(--shadow-1), 0 0 28px -6px color-mix(in srgb, var(--pop) 65%, transparent);
}
.mx-btn-solid:hover {
  box-shadow: var(--shadow-2), 0 0 36px -4px color-mix(in srgb, var(--pop) 80%, transparent);
  filter: brightness(1.06);
}
.mx-btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.mx-btn-ghost:hover { border-color: var(--accent); }
.mx-glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);

}
.mx-text-pop { color: var(--accent); }
.mx-header {
  position: sticky;
  top: var(--mx-head-top);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  min-height: var(--mx-head-h);
  margin: 12px auto 0;
  padding: 6px 7px 6px 18px;
}
.mx-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3);
}
.mx-header .mx-btn, .mx-header .mx-lang-btn { border-radius: 999px; }
.mx-header .mx-btn { min-height: 40px; }
.mx-wordmark {
  font-family: var(--font-heading), Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mx-wordmark-x { font-weight: 800; }
.mx-wordmark-app { font-size: 14px; color: var(--ink-soft); margin-left: 8px; font-weight: 500; }
.mx-header-nav { display: flex; gap: 2px; }
.mx-header-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.mx-header-link:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.mx-header-tools { display: flex; align-items: center; gap: 6px; }
.mx-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.mx-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
.mx-header-nav:not(:has(.mx-header-ic)), .mx-desktop-only { display: none; }
.mx-burger { display: inline-flex; }
}
.mx-mobilemenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 14px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100dvh - var(--mx-head-top) - var(--mx-head-h) - 28px);
  overflow-y: auto;
}
.mx-mobilemenu nav { display: flex; flex-direction: column; }
.mx-mobilemenu nav a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mx-mobilemenu-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 10px;
}
.mx-mobilemenu-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-mobilemenu-cta { margin-top: 20px; width: 100%; }
.mx-footer { margin-top: 40px; background: var(--surface); }
.mx-footer-line { height: 1px; background: var(--line); }
.mx-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
.mx-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
.mx-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.mx-footer-social { display: inline-flex; align-items: center; gap: 8px; }
.mx-footer-signature {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
  user-select: none;
}
.mx-footer-signature span {
  display: block;
  font-size: clamp(64px, 15vw, 190px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
}
.mx-footer-signature em { font-style: normal; -webkit-text-stroke: 1px var(--accent); }
.mx-footer-quote { font-size: 14.5px; color: var(--ink-soft); margin: 10px 0 6px; max-width: 34ch; }
.mx-footer-built { font-size: 13px; color: var(--ink-soft); }
.mx-footer-col h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.mx-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mx-footer-col li, .mx-footer-col a { font-size: 14.5px; color: var(--ink); text-decoration: none; }
.mx-footer-col a:hover { color: var(--accent); }
.mx-footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.mx-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 11px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.mx-lang-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.mx-lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
.mx-lang-btn { min-height: 44px; }
}
.mx-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mx-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  min-height: 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color 120ms ease;
}
.mx-lang-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mx-lang-item.is-on { color: var(--accent); font-weight: 600; }
.mx-lang-item > svg:last-child { margin-left: auto; }
.mx-lang-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  min-width: 22px;
}
.mx-lang-item.is-on .mx-lang-code { color: var(--accent); }
.mx-overlay { position: fixed; inset: 0; z-index: 49; }
.mx-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: min(76vh, 560px);
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.mx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 15px;
}
.mx-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 8px;
}
.mx-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;             
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.mx-seg-item.is-on {
  background: linear-gradient(135deg, var(--pop), var(--pop-2));
  color: var(--pop-ink);
  border-color: transparent;
}
.mx-swatch-row { display: flex; gap: 10px; }
.mx-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
}
.mx-swatch::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}
.mx-swatch.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.mx-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;             
  margin-top: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
}
.mx-toggle.is-on { border-color: var(--accent); color: var(--accent); }
.mx-toggle > svg:last-child { margin-left: auto; }
.mx-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:root[data-fontsize="lg"] body { zoom: 1.15; }
:root[data-fontsize="xl"] body { zoom: 1.3; }
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root[data-contrast="high"] {
  --ink: light-dark(#000000, #FFFFFF);
  --ink-soft: light-dark(#1F1F1F, #EDEDED);
  --line: light-dark(#4A4A4A, #B9B9B9);
}
:root[data-contrast="high"] .mx-glass,
:root[data-contrast="high"] .mx-header::before {
  background: var(--surface);
  backdrop-filter: none;

}
:root[data-contrast="high"] .mx-text-pop,
:root[data-contrast="high"] .mx-text-multi {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
}
.mx-btn-danger {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.mx-btn-danger:hover { filter: brightness(1.08); }
.mx-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mx-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease;
}
.mx-avatar-btn:hover { border-color: var(--accent); }
.mx-avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse) {
.mx-avatar-btn { width: 44px; height: 44px; }
}
.mx-avatar-initial {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mx-profile {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: 330px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  max-height: min(80dvh, 640px);
}
.mx-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.mx-profile-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
}
.mx-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-profile-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mx-profile-id b { font-size: 15px; font-weight: 600; }
.mx-profile-id em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mx-profile-id small { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.mx-profile-scroll { overflow-y: auto; padding: 4px 18px 8px; }
.mx-profile-foot { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.mx-profile-saved {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--accent);
  margin: 10px 0 0;
}
.mx-toggle-hint { font-style: normal; font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.mx-toggle-danger { border-color: color-mix(in srgb, #DC2626 40%, var(--line)); }
.mx-toggle-danger:hover { border-color: #DC2626; color: #DC2626; }
.mx-danger-box {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #DC2626;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #DC2626 8%, transparent);
}
.mx-danger-box b { font-size: 14px; color: #DC2626; display: block; margin-bottom: 5px; }
.mx-danger-box p { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.5; }
.mx-danger-actions { display: flex; gap: 8px; }
.mx-danger-actions .mx-btn { flex: 1; min-height: 38px; font-size: 13px; padding: 8px 12px; }
.mx-switcher {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: min(70dvh, 460px);
  overflow-y: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.mx-switcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mx-switcher-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 150ms ease;
}
.mx-switcher-tile:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mx-switcher-tile.is-here { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.mx-switcher-icon {
  display: inline-flex;
  padding: 9px;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}
.mx-switcher-name { font-size: 12px; font-weight: 500; text-align: center; }
.mx-switcher-soon {
  position: absolute;
  top: 5px; right: 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.mx-menu {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 100;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mx-menu-right { right: 0; }
.mx-menu-left { left: 0; }
.mx-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  min-height: 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.mx-menu-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mx-menu-item.is-on { color: var(--accent); font-weight: 600; }
.mx-menu-item.is-danger { color: #DC2626; }
.mx-menu-icon { display: inline-flex; color: var(--ink-soft); }
.mx-menu-item.is-on .mx-menu-icon { color: var(--accent); }
.mx-btn.is-done { color: var(--accent); border-color: var(--accent); }
.mx-kbd-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 10px 8px 12px;
  min-height: 36px;
  gap: 9px;
}
.mx-kbd-hint kbd {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  padding: 2px 6px;
  
  min-width: 3.6em; text-align: center;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
@media (max-width: 1000px) {
.mx-kbd-hint { display: none; }
}
.mx-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
}
.mx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-switcher-tile.is-soon,
.mx-palette-row.is-soon {
  cursor: default;
  opacity: .55;
}
.mx-switcher-tile.is-soon:hover,
.mx-palette-row.is-soon:hover { background: transparent; }
.mx-switcher-tile.is-soon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-hint-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  color: var(--ink-soft); background: none; cursor: help;
}
.mx-hint-btn:hover, .mx-hint-btn.is-open { color: var(--accent); }
.mx-hint-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: none) {
.mx-hint-btn { width: 26px; height: 26px; }
}
@media print {
.mx-header, .mx-footer, .mx-scene, .mx-window-chrome,
  .mx-lifenav, .mx-rev-print, .mx-rev-spans, .mx-w-add,
  .mx-skill-under, .mx-meal-add { display: none !important; }
}
.mx-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.mx-seg-a {
  padding: 4px 9px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.mx-seg-a.is-on { background: var(--accent); color: var(--accent-ink); }
.mx-seg-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-header-nav { display: inline-flex; gap: 2px; }
.mx-header-nav a {
  padding: 9px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); transition: background .12s ease, color .12s ease;
}
.mx-header-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.mx-header-nav a[data-here] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mx-header-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-btn-quietdanger {
  background: var(--surface);
  border-color: color-mix(in srgb, #c0392b 40%, var(--line));
  color: #c0392b;
}
.mx-btn-quietdanger:hover { background: color-mix(in srgb, #c0392b 8%, var(--surface)); }
.mx-header-link { display: inline-flex; align-items: center; gap: 7px; }
.mx-header-ic { display: inline-grid; place-items: center; }
@media (max-width: 759px) {
.mx-header { flex-wrap: wrap; row-gap: 8px; }
.mx-header:has(.mx-header-ic)::before { border-radius: 26px; }
.mx-header-nav {
    order: 3; flex-basis: 100%; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
.mx-header-nav::-webkit-scrollbar { display: none; }
.mx-header-nav a { white-space: nowrap; }
}
.mx-menu-btn { padding: 9px 12px; min-height: 40px; }
.mx-menu-pop { display: grid; min-width: 170px; margin: -6px; }
.mx-appname-rest { color: var(--accent); font-weight: 700; }
.mx-wordmark-app { color: var(--ink); }
.mx-wordmark-app .mx-appname-rest { font-weight: 600; }
@media (max-width: 759px) {
.mx-header-nav:has(.mx-header-ic) { display: flex; padding: 3px; overflow: visible; }
.mx-header-nav a {
    flex: 1 1 0; min-width: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 2px; font-size: 11px; line-height: 1.1; white-space: nowrap;
  }
.mx-header-nav .mx-header-ic svg { width: 16px; height: 16px; }
}
@media print {
.mx-help, .mx-menu-btn, .mx-header-nav, .mx-dash-acts, .mx-td-add, .mx-td-details, .mx-td-hint,
  .mx-qn-act, .mx-mood-noteact, .mx-lf-tabs, .mx-lf-moreword, .mx-start, .mx-dcard-pill, .mx-card-more,
  .mx-fr-go, .mx-fr-lens, .mx-fr-what, .mx-popover { display: none !important; }
}
@media (pointer: coarse) {
.mx-meal-add, .mx-hint-btn, .mx-cw-plus, .mx-cw-addbtn, .mx-cw-caledit, .mx-files-x, .mx-c2-pencil, .mx-all-plus, .mx-menu-btn { min-width: 32px; min-height: 32px; }
.mx-lists-row, .mx-c2-chip, .mx-seg-item, .mx-lang-item { min-height: 40px; }
}
.mx-switcher-more { width: 100%; margin-top: 6px; padding: 9px 10px; border-radius: 9px; border: 1px dashed var(--line); background: none; color: var(--ink-soft); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mx-switcher-more:hover { color: var(--ink); border-color: var(--ink-soft); }
.mx-switcher-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
.mx-w-pip, .mx-meal-add, .mx-hint-btn, .mx-hb-dot { position: relative; }
.mx-meal-add::after, .mx-hint-btn::after, .mx-hb-dot::after { content: ""; position: absolute; inset: -6px; }
button.mx-dcard-right, a.mx-dcard-right, .mx-w-areaname, .mx-footer-social a { min-height: 32px; min-width: 32px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) {
.mx-footer-social, .mx-footer-col li a, .mx-appcard-open, .mx-card-more, .mx-all-title,
  .mx-cw-ics a, .mx-cw-ics label, .mx-cw-ics button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}
.mx-prof-row { margin: 6px 0 4px; }
.mx-prof-row .mx-input, .mx-prof-row select.mx-input { width: 100%; font-size: 14px; padding: 9px 10px; }
.mx-prof-hint { margin: 4px 0 10px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.mx-prof-list { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.mx-prof-list li { display: flex; align-items: center; gap: 7px; }
.mx-prof-list li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); flex: none; }
.mx-prof-note { margin: 0; padding: 8px 16px 0; font-size: 12.5px; color: var(--accent); }
.mx-toggle-stack { display: flex; flex-direction: column; align-items: flex-start; }
.mx-profile { width: min(320px, calc(100vw - 24px)); }
.mx-profile-head { gap: 9px; padding: 12px 14px 10px; }
.mx-profile-head b { font-size: 13px; }
.mx-profile-head em, .mx-profile-head small { font-size: 11px; }
.mx-profile-avatar, .mx-profile-avatar img { width: 34px; height: 34px; }
.mx-profile-scroll { padding: 2px 14px 6px; }
.mx-profile-foot { padding: 9px 14px 11px; }
.mx-profile .mx-panel-label { gap: 5px; margin: 11px 0 4px; font-size: 10px; letter-spacing: .08em; }
.mx-profile .mx-panel-label:first-child { margin-top: 5px; }
.mx-profile .mx-panel-label svg { opacity: .7; }
.mx-profile .mx-seg { gap: 4px; flex-wrap: nowrap; }
.mx-profile .mx-seg-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-profile .mx-seg-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mx-profile .mx-seg-item {
  min-height: 28px; padding: 4px 5px; font-size: 11px; gap: 3px;
  justify-content: center; white-space: nowrap; overflow: hidden;
}
.mx-profile .mx-seg-item svg { flex: none; }
.mx-profile .mx-swatch-row { gap: 6px; }
.mx-profile .mx-swatch { width: 21px; height: 21px; border-width: 1.5px; }
.mx-toggle-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.mx-toggle-pair .mx-toggle { margin-top: 0; }
.mx-profile .mx-toggle {
  min-height: 30px; padding: 5px 7px; font-size: 11px; gap: 5px; margin-top: 4px;
  justify-content: flex-start; text-align: left;
}
.mx-profile .mx-toggle svg { flex: none; }
.mx-toggle-hint { font-size: 10.5px; }
.mx-prof-row { margin: 3px 0 2px; }
.mx-prof-row .mx-input, .mx-prof-row select.mx-input { padding: 6px 8px; font-size: 12.5px; }
.mx-prof-hint { margin: 2px 0 5px; font-size: 11px; }
.mx-prof-list { gap: 2px; margin: 2px 0 5px; font-size: 11.5px; }
.mx-prof-note { padding: 5px 14px 0; font-size: 11.5px; }
.mx-profile .mx-hint-btn { width: 15px; height: 15px; font-size: 10px; }
@media (pointer: coarse) {
.mx-profile .mx-seg-item { min-height: 34px; }
.mx-profile .mx-toggle { min-height: 34px; }
.mx-prof-row .mx-input, .mx-prof-row select.mx-input { padding: 8px 9px; }
}
.mx-btn.is-on { border-color: var(--accent); color: var(--accent); }
.mx-panel-label { font-size: 12.5px; }
.mx-profile-app { display: grid; gap: 6px; margin: 10px 0 4px; }
.mx-profile-app .mx-btn { width: 100%; justify-content: flex-start; }
.mx-btn.mx-btn-sm { min-height: 34px; padding: 7px 12px; font-size: 13px; gap: 6px; }
@media (pointer: coarse) {
.mx-btn.mx-btn-sm { min-height: 40px; }
}
.mx-btn.mx-btn-ghost.is-on { border-color: var(--accent); color: var(--accent); }

/* ---------- the kit's own glue ---------- */
.mx-kit [hidden] { display: none !important; }
.mx-kit-rel { position: relative; display: inline-flex; }
.mx-kit-head, .mx-kit-foot { font-size: 16px; line-height: 1.5; }
.mx-kit-head .mx-header { font-family: inherit; }
.mx-kit-grid { padding: 10px 11px; min-height: 40px; min-width: 40px; }
.mx-kit-settings { padding: 10px 13px; min-height: 44px; min-width: 44px; }
.mx-kit-close { padding: 10px; min-height: 44px; min-width: 44px; }
.mx-kit-cta { margin-left: 4px; }
.mx-kit-head .mx-header-nav { flex-wrap: nowrap; }
.mx-kit-foot .mx-footer { margin-top: 48px; }
/* A wordmark never breaks in two; a long page list folds into the menu button early. */
.mx-kit-head .mx-wordmark { white-space: nowrap; }
@media (max-width: 1040px) {
  .mx-kit-head .mx-header-nav { display: none; }
  .mx-kit-head .mx-burger { display: inline-flex; }
}
/*
  Above the page. A host page may lift all of body's children to
  z-index 1 (MidorCyber does, for its halo), which would put the hero
  over a menu that drops below the bar and the overlay over the menu
  itself. The head sits above both: the overlay is 90, the panels
  inside the head keep their own 100.
*/
.mx-kit-head { position: relative; z-index: 95; }
