:root {
  --bg: #f4efe6;            /* pierre de Jérusalem */
  --bg-2: #ebe3d5;
  --surface: #fffdf8;
  --text: #1e2430;
  --muted: #6b6558;
  --line: #d9cfbd;
  --gold: #a87b2c;
  --gold-soft: #e9d7b0;
  --ok: #2f7d4f;
  --ok-soft: #d6ecdc;
  --warn: #9a5a12;
  --warn-soft: #f6e5cc;
  --dial: #fffaf0;
  --dial-ring: #e4d8c2;
  --shadow: 0 10px 30px rgba(60, 45, 20, .12);
  --radius: 18px;
  --on-accent: #fffaf0;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a2b;
    --bg-2: #13223a;
    --surface: #172840;
    --text: #efe8da;
    --muted: #a3a9b6;
    --line: #2a3d5a;
    --gold: #d9b56a;
    --gold-soft: #3d3522;
    --ok: #6fd39a;
    --ok-soft: #173b2a;
    --warn: #f0b867;
    --warn-soft: #3a2c16;
    --dial: #13233a;
    --dial-ring: #2b4163;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a2b; --bg-2: #13223a; --surface: #172840; --text: #efe8da; --muted: #a3a9b6;
  --line: #2a3d5a; --gold: #d9b56a; --gold-soft: #3d3522; --ok: #6fd39a; --ok-soft: #173b2a;
  --warn: #f0b867; --warn-soft: #3a2c16; --dial: #13233a; --dial-ring: #2b4163;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 50% 0%, var(--bg-2), var(--bg) 70%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding: var(--safe-area-inset-top, env(safe-area-inset-top)) var(--safe-area-inset-right, env(safe-area-inset-right)) var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) var(--safe-area-inset-left, env(safe-area-inset-left));
}
[dir="rtl"] body { font-family: var(--serif), var(--font); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Barre du haut ---------- */
.topbar {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 560px; margin: 0 auto; padding: 10px 16px 0;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-he { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1; }
.brand-name { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; gap: 6px; }
.lang-menu { position: relative; }
.lang-pop {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 50;
  min-width: 150px; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.lang-pop button {
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  text-align: start; font: 500 15px var(--font);
}
.lang-pop button[lang="he"] { font-family: var(--serif); font-size: 17px; }
.lang-pop button[aria-checked="true"] { background: var(--gold-soft); font-weight: 600; }
.lang-pop button:hover, .lang-pop button:focus-visible { background: var(--bg-2); outline: none; }
.icon-btn {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--serif); font-weight: 700; font-size: 15px;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:focus-visible, .primary-btn:focus-visible, .ghost-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Contenu ---------- */
.main {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 4px 16px 16px;
  /* Occupe toute la hauteur : la boussole se centre dans l'espace libre,
     la barre d'infos et les boutons restent en bas */
  display: flex; flex-direction: column;
}

.rule { text-align: center; padding: 6px 0 0; }
.rule-zone { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 600; min-height: 20px; }
[dir="rtl"] .rule-zone { letter-spacing: 0; font-size: 15px; }
.rule-title { margin: 2px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 5.4vw, 25px); line-height: 1.2; text-wrap: balance; }

/* ---------- Boussole ---------- */
/* Tout doit tenir sur un écran : le cadran prend la hauteur restante */
.compass-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 12px; }
body { --chrome: 350px; }
body.has-start { --chrome: 405px; }
.compass {
  position: relative; aspect-ratio: 1;
  width: min(90vw, 400px, calc(100vh - var(--chrome)));
  width: min(90vw, 400px, calc(100dvh - var(--chrome)));
  min-width: 160px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.compass[data-state="aligned"] { box-shadow: 0 0 0 6px var(--ok-soft), 0 0 50px var(--ok-soft), var(--shadow); }
/* Le cadran tourne : on le découpe en cercle pour qu'il ne crée pas de défilement horizontal */
.dial-clip { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.dial { width: 100%; height: 100%; display: block; will-change: transform; }
.dial-ring { fill: var(--dial); stroke: var(--dial-ring); stroke-width: 2; }
.dial-inner { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.tick { stroke: var(--muted); stroke-width: 1.2; opacity: .55; }
.tick-major { stroke: var(--text); stroke-width: 2; opacity: .8; }
.card { font: 600 17px var(--font); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.card-n { fill: #c0392b; font-weight: 700; }
[dir="rtl"] .card { font-family: var(--serif); font-size: 16px; }

.target-arrow { fill: var(--gold); }
.compass[data-state="aligned"] .target-arrow { fill: var(--ok); }

.lubber {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 16px solid var(--text);
}
.compass[data-state="aligned"] .lubber { border-top-color: var(--ok); }

.center {
  position: absolute; inset: 31%;
  display: grid; place-content: center; text-align: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
}
.center-deg { font: 700 clamp(28px, 8vw, 38px)/1 var(--font); font-variant-numeric: tabular-nums; }
.center-sub { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 1em; }
.compass[data-state="aligned"] .center { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.compass[data-state="idle"] .center-deg { color: var(--muted); }
/* Aligné : une coche seule, centrée dans le cercle */
.center-check { display: none; width: 58%; height: auto; margin: auto; }
.center-check path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.compass[data-state="aligned"] .center { place-content: stretch; display: flex; }
.compass[data-state="aligned"] .center-deg,
.compass[data-state="aligned"] .center-sub { display: none; }
.compass[data-state="aligned"] .center-check { display: block; }

.guidance { margin: 10px 0 0; min-height: 22px; font-weight: 600; font-size: 16px; text-align: center; }
.compass[data-state="aligned"] + .guidance { color: var(--ok); }

.primary-btn {
  margin-top: 8px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--gold); color: #1a1408; font-weight: 600; font-size: 16px;
  box-shadow: 0 6px 18px rgba(168, 123, 44, .35);
}
.primary-btn:active { transform: translateY(1px); }

/* ---------- Barre d'infos compacte ---------- */
.stats {
  display: flex; margin-top: 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.stat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-label { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .stat-label { letter-spacing: 0; font-size: 12px; }
.stat-value { font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat-note { display: none; }

/* ---------- Avertissements ---------- */
.notices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.notices:empty { display: none; }
.notice { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; border: 1px solid transparent; }
.notice-action {
  display: block; margin-top: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; font-weight: 600; font-size: 14px;
}
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-info { background: var(--gold-soft); color: var(--text); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }

.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ghost-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: transparent; font-weight: 500; font-size: 14px;
}
.ghost-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ghost-btn[aria-busy="true"] { opacity: .65; }
.ghost-btn[aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.location-line.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { color: var(--gold); } }
.location-line { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Feuilles modales ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 14, 22, .45);
  opacity: 0; transition: opacity .2s;
}
.sheet.open { opacity: 1; }
.sheet-panel {
  width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto;
  background: var(--surface); color: var(--text);
  border-radius: 22px 22px 0 0; padding: 8px 18px calc(22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)));
  transform: translateY(24px); transition: transform .2s;
}
.sheet.open .sheet-panel { transform: none; }
.sheet-full { height: 88dvh; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 8px 0; z-index: 2; }
.sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.sheet-hint { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }

.map { flex: 1; min-height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--gold); }
.lg-rh { border-top: 2px dashed var(--muted); }
.map-gc { stroke: var(--gold); }
.map-target span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 4px, #fff 4.5px 7px, var(--gold) 7.5px);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.map-rh { stroke: #6b7280; }
.map-target span, .map-user span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.map-target svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.map-user span { background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .4); }

.field { border: 0; margin: 0 0 18px; padding: 0; }
.field legend, .field-label { display: flex; justify-content: space-between; width: 100%; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field > small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.choice input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.switch input { width: 20px; height: 20px; accent-color: var(--gold); }

.prose { font-size: 15px; line-height: 1.6; }
.prose h3 { font-family: var(--serif); font-size: 18px; margin: 20px 0 6px; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin: 4px 0; }
.prose .src { color: var(--muted); font-size: 13px; }
.prose .muted { color: var(--muted); font-style: italic; }

@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-panel, .compass { transition: none; }
}

/* =====================================================================
   Style « Moderne » — inspiré de hora-crm.io : noir profond, verre, dégradé
   bleu ciel → blanc, libellés en mono majuscules. Activé par data-style="modern".
   ===================================================================== */
:root[data-style="modern"] {
  --bg: #000000;
  --bg-2: #0a0b0e;
  --surface: #0c0d10;                    /* opaque : feuilles, menus */
  --glass: rgba(255, 255, 255, .05);     /* cartes translucides */
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --gold: #5ab0f2;                       /* accent */
  --gold-soft: rgba(90, 176, 242, .12);
  --grad: linear-gradient(100deg, #50c3ff, #bae2ee 55%, #ffffff);
  --on-accent: #000000;
  --ok: #6ee7b7;
  --ok-soft: rgba(110, 231, 183, .14);
  --warn: #fcd34d;
  --warn-soft: rgba(252, 211, 77, .1);
  --dial: #060608;
  --dial-ring: rgba(255, 255, 255, .12);
  --north: #ff7a7a;
  --shadow: none;
  --font: 'Geist', 'Heebo', -apple-system, system-ui, sans-serif;
  --serif: var(--font);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

[data-style="modern"] body {
  background:
    radial-gradient(70% 45% at 50% 42%, rgba(30, 98, 184, .30), rgba(30, 98, 184, 0) 70%),
    radial-gradient(90% 30% at 50% 110%, rgba(46, 134, 226, .22), rgba(46, 134, 226, 0) 70%),
    #000;
  background-attachment: fixed;
}
[data-style="modern"][dir="rtl"] body { font-family: var(--font); }

/* Texte en dégradé (comme les accents de Hora) */
[data-style="modern"] .center-deg,
[data-style="modern"] .primary-btn {
  background-image: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Libellés techniques en mono majuscules */
[data-style="modern"] .rule-zone,
[data-style="modern"] .stat-label,
[data-style="modern"] .primary-btn,
[data-style="modern"] .ghost-btn,
[data-style="modern"] .notice-action,
[data-style="modern"] .icon-btn,
[data-style="modern"] .field legend,
[data-style="modern"] .field-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
[data-style="modern"][dir="rtl"] .rule-zone,
[data-style="modern"][dir="rtl"] .stat-label,
[data-style="modern"][dir="rtl"] .primary-btn,
[data-style="modern"][dir="rtl"] .ghost-btn,
[data-style="modern"][dir="rtl"] .notice-action,
[data-style="modern"][dir="rtl"] .field legend,
[data-style="modern"][dir="rtl"] .field-label { font-family: var(--font); letter-spacing: 0; }

/* En-tête */
.brand-logo { display: none; }
[data-style="modern"] .brand { align-items: center; gap: 10px; }
[data-style="modern"] .brand-logo { display: block; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-strong); }
[data-style="modern"] .brand-he { display: none; }
[data-style="modern"] .brand-name { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; text-transform: none; color: var(--text); }
[data-style="modern"] .icon-btn {
  min-width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass); color: var(--text);
  font-size: 12px; font-weight: 600;
}
[data-style="modern"] .lang-pop { border-radius: 20px; border-color: var(--line-strong); }
[data-style="modern"] .lang-pop button { color: var(--text); }
[data-style="modern"] .lang-pop button[lang="he"] { font-family: var(--font); font-size: 15px; }

/* Règle */
[data-style="modern"] .rule { padding-top: 10px; }
[data-style="modern"] .rule-zone {
  display: inline-block; min-height: 0; padding: 4px 11px; border-radius: 999px;
  background: var(--gold-soft); color: #a6dcfa; border: 1px solid rgba(90, 176, 242, .28);
  font-size: 10.5px; font-weight: 600;
}
[data-style="modern"] .rule-zone:empty { display: none; }
[data-style="modern"] .rule-title {
  margin-top: 8px; font-weight: 400; letter-spacing: -0.03em;
  font-size: clamp(20px, 5.6vw, 26px); line-height: 1.15;
}

/* Boussole */
[data-style="modern"] .compass-wrap { padding-top: 18px; }
[data-style="modern"] .compass { box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(46, 134, 226, .18); transition: box-shadow .3s; }
[data-style="modern"] .compass[data-state="aligned"] { box-shadow: 0 0 0 1px var(--ok), 0 0 90px rgba(110, 231, 183, .28); }
[data-style="modern"] .dial-ring { stroke-width: 1; }
[data-style="modern"] .compass[data-state="aligned"] .dial-ring { stroke: var(--ok); stroke-width: 2.5; }
[data-style="modern"] .dial-inner { display: none; }
[data-style="modern"] .tick { stroke: #fff; stroke-width: 1; opacity: .2; }
[data-style="modern"] .tick-major { stroke: #fff; stroke-width: 1.6; opacity: .55; stroke-linecap: round; }
[data-style="modern"] .card { font: 500 12px var(--mono); fill: var(--muted); letter-spacing: .04em; }
[data-style="modern"] .card-n { fill: var(--north); font-weight: 600; }
[data-style="modern"][dir="rtl"] .card { font-family: var(--font); font-size: 13px; }
[data-style="modern"] .target-arrow { fill: url(#accent-grad); }
[data-style="modern"] .compass[data-state="aligned"] .target-arrow { fill: var(--ok); }
[data-style="modern"] .lubber {
  top: -7px; width: 4px; height: 20px; border: 0; border-radius: 999px; background: #fff;
}
[data-style="modern"] .compass[data-state="aligned"] .lubber { background: var(--ok); }
[data-style="modern"] .center { inset: 29%; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
[data-style="modern"] .center-deg { font-weight: 400; font-size: clamp(34px, 10vw, 46px); letter-spacing: -0.04em; }
[data-style="modern"] .center-sub { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--faint); }
[data-style="modern"] .compass[data-state="aligned"] .center { background: var(--ok-soft); border-color: rgba(110, 231, 183, .4); color: var(--ok); }
[data-style="modern"] .guidance { font-size: 16px; font-weight: 400; letter-spacing: -0.01em; margin-top: 12px; color: var(--muted); }
[data-style="modern"] .compass[data-state="aligned"] + .guidance { color: var(--ok); }

[data-style="modern"] .primary-btn {
  width: 100%; height: 48px; margin-top: 10px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-strong); background-color: var(--glass);
  font-size: 12.5px; font-weight: 600; box-shadow: none;
}

/* Barre d'infos */
[data-style="modern"] .stats { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); }
[data-style="modern"] .stat + .stat { border-inline-start-color: var(--line); }
[data-style="modern"] .stat-label { font-size: 9.5px; font-weight: 500; color: var(--faint); }
[data-style="modern"][dir="rtl"] .stat-label { font-size: 11px; }
[data-style="modern"] .stat-value { font-weight: 500; letter-spacing: -0.02em; }

/* Avertissements et actions */
[data-style="modern"] .notice { border-radius: 20px; border: 1px solid var(--line); padding: 12px 16px; }
[data-style="modern"] .notice-info { background: var(--glass); color: var(--muted); }
[data-style="modern"] .notice-action { border: 1px solid var(--line-strong); background: var(--glass); color: var(--text); font-size: 11.5px; }
[data-style="modern"] .ghost-btn {
  height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--glass); color: var(--text); font-size: 11.5px; font-weight: 600;
}
[data-style="modern"] .location-line { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }

/* Feuilles */
[data-style="modern"] .sheet { background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-style="modern"] .sheet-panel { border-radius: 28px 28px 0 0; padding-top: 14px; border: 1px solid var(--line); border-bottom: 0; }
[data-style="modern"] .sheet-panel::before {
  content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 999px; background: var(--line-strong);
}
[data-style="modern"] .sheet-head h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.03em; }
[data-style="modern"] .field legend, [data-style="modern"] .field-label { font-size: 11px; color: var(--faint); font-weight: 500; }
[data-style="modern"] .choice { border-radius: 20px; border-color: var(--line); background: var(--glass); }
[data-style="modern"] .choice:has(input:checked) { border-color: rgba(90, 176, 242, .5); background: var(--gold-soft); }
[data-style="modern"] .choice strong { font-weight: 500; }
[data-style="modern"] .choice small, [data-style="modern"] .field > small { color: var(--muted); }
[data-style="modern"] .prose { color: var(--muted); }
[data-style="modern"] .prose strong, [data-style="modern"] .prose h3 { color: var(--text); }
[data-style="modern"] .prose h3 { font-weight: 400; letter-spacing: -0.02em; font-size: 19px; }
[data-style="modern"] .map { border-radius: 20px; }
@media (min-width: 640px) {
  [data-style="modern"] .sheet-panel { border-radius: 28px; border-bottom: 1px solid var(--line); }
}
