/* =====================================================================
   MANIFESTATION — Premium design system
   Dark, minimal, gold. Vibe: wealth, success, calm power.
   ===================================================================== */

:root {
  /* Palette OCCULT — anthracite profond + or/crème #C5A059 */
  --bg:            #141518;   /* anthracite profond */
  --bg-elev:       #1a1c21;
  --surface:       #1f2128;
  --surface-2:     #272a33;
  --line:          rgba(197,160,89,.12);
  --line-strong:   rgba(197,160,89,.24);

  --text:          #f1ece1;   /* crème */
  --text-soft:     #bdb6a6;
  --text-mut:      #857f70;

  /* Or OCCULT */
  --gold:          #d8b877;   /* highlight */
  --gold-2:        #c5a059;   /* couleur principale de marque */
  --gold-deep:     #9a7b3c;
  --gold-glow:     rgba(197,160,89,.20);

  --good:          #8bb98a;
  --warn:          #d98f6b;

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     26px;

  --shadow:        0 20px 60px -20px rgba(0,0,0,.72);
  --shadow-soft:   0 8px 30px -12px rgba(0,0,0,.55);

  --ease:          cubic-bezier(.16,.84,.44,1);

  /* Cinzel (titres) + Poppins (corps) */
  --title: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(197,160,89,.12), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(154,123,60,.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* iOS safe areas */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    18px
    calc(env(safe-area-inset-bottom) + 96px);
  min-height: 100dvh;
}

::selection { background: var(--gold-glow); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }

/* ---------------------------------------------------------------- Type */
h1,h2,h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; line-height: 1.1; }
.display { font-family: var(--serif); font-weight: 600; }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600;
}
.muted { color: var(--text-mut); }
.soft  { color: var(--text-soft); }
.center { text-align: center; }
.gold  { color: var(--gold); }

/* ---------------------------------------------------------------- Header */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px var(--gold-glow);
}
.brand .mark svg { display:block; }
.brand .name { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.streak-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--gold);
}

/* ---------------------------------------------------------------- Cards */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.card + .card { margin-top: 14px; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Vision hero */
.vision-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 20% -10%, rgba(217,184,118,.16), transparent 60%),
    linear-gradient(180deg, #14141b, #0e0f14);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.vision-hero::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 40%, rgba(217,184,118,.05));
  pointer-events:none;
}
.vision-hero .eyebrow { margin-bottom: 12px; }
.vision-text {
  font-family: var(--sans); font-size: clamp(20px, 5.4vw, 27px);
  line-height: 1.32; color: var(--text); font-weight: 300; letter-spacing: .2px;
}
.vision-text.empty { color: var(--text-mut); font-style: italic; }
.vision-edit {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--text-soft); border-radius: 999px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer; transition: .2s var(--ease);
}
.vision-edit:hover { color: var(--gold); border-color: var(--gold-deep); }

/* Section title */
.section-title { margin: 30px 4px 14px; display:flex; align-items:baseline; justify-content:space-between; }
.section-title h2 { font-size: 22px; }
.section-title .link { font-size: 13px; color: var(--gold-2); cursor: pointer; }

/* ---------------------------------------------------------------- Ritual rows */
.ritual {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: .18s var(--ease);
  width: 100%; text-align: left; color: var(--text);
}
.ritual + .ritual { margin-top: 10px; }
.ritual:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.ritual .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(217,184,118,.22), rgba(217,184,118,.05));
  border: 1px solid var(--line);
}
.ritual .body { flex: 1; min-width: 0; }
.ritual .body .t { font-weight: 600; font-size: 15px; }
.ritual .body .s { font-size: 12.5px; color: var(--text-mut); margin-top: 2px; }
.ritual .chk {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  color: transparent; transition: .2s var(--ease);
}
.ritual.done .chk { background: linear-gradient(145deg,var(--gold),var(--gold-deep)); border-color: transparent; color: #1a1408; }
.ritual.done .body .t { color: var(--text-soft); }

/* Progress ring for the day */
.day-progress { display:flex; align-items:center; gap:16px; }
.ring { --p:0; width:64px; height:64px; flex:0 0 auto; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: url(#goldgrad); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring .pct { font-family: var(--serif); font-size: 22px; }

/* ---------------------------------------------------------------- Auth gate */
#gate {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 24px);
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(197,160,89,.16), transparent 60%),
    var(--bg);
}
.gate-card { width: 100%; max-width: 380px; text-align: center; }
.gate-mark { display:grid; place-items:center; margin-bottom: 14px; filter: drop-shadow(0 6px 20px var(--gold-glow)); }
.gate-title { font-family: var(--title); font-size: 30px; letter-spacing: 3px; color: var(--text); }
.gate-sub { color: var(--text-mut); font-size: 13.5px; margin: 6px 0 24px; }
.gate-tabs { display:flex; gap:6px; background: var(--surface); border:1px solid var(--line); border-radius: 999px; padding:5px; margin-bottom: 18px; }
.gate-tab { flex:1; border:none; background:transparent; color: var(--text-mut); font-weight:600; font-size:14px; padding:10px; border-radius:999px; cursor:pointer; transition:.15s var(--ease); }
.gate-tab.on { background: linear-gradient(145deg,var(--gold),var(--gold-deep)); color:#14100a; }
.gate-card .field { text-align:left; }
.gate-err { background: rgba(217,143,107,.12); border:1px solid var(--warn); color:#e8b49b; border-radius:12px; padding:10px 12px; font-size:13px; margin-bottom:6px; }
.gate-note { color: var(--text-mut); font-size:12.5px; margin-top:16px; }
.gate-load { color: var(--gold-2); font-size:15px; padding: 20px 0; }

/* ---------------------------------------------------------------- Sync dot */
.sync-dot { width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  background: var(--surface); border:1px solid var(--line); }
.sync-dot .d { width:9px; height:9px; border-radius:50%; background: var(--text-mut); transition:.3s var(--ease); }
.sync-dot.online .d   { background: var(--good); box-shadow:0 0 10px var(--good); }
.sync-dot.connecting .d { background: var(--gold); animation: pulse 1.1s infinite; }
.sync-dot.error .d    { background: var(--warn); }
.sync-dot.signed-out .d { background: var(--gold-deep); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---------------------------------------------------------------- Frequency */
.identity-line { margin-top:16px; padding-top:14px; border-top:1px solid var(--line);
  font-family:var(--sans); font-weight:300; font-size:16px; color:var(--text-soft); font-style:italic; }
.freq-scale { display:flex; gap:6px; }
.freq-cell { flex:1; aspect-ratio:1; border-radius:12px; border:1px solid var(--line);
  background: color-mix(in srgb, var(--fc) 16%, var(--surface)); display:grid; place-items:center;
  cursor:pointer; transition:.15s var(--ease); font-size:17px; filter:grayscale(.5) opacity(.65); }
.freq-cell:hover { filter:none; }
.freq-cell.on { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 34%, var(--surface));
  filter:none; transform: translateY(-2px); box-shadow: 0 6px 16px -8px var(--fc); }
.freq-legend { display:flex; justify-content:space-between; font-size:11px; color:var(--text-mut); margin-top:10px; }
.freq-chart { display:flex; align-items:flex-end; gap:4px; height:90px; margin-top:8px; }
.freq-chart .fbar { flex:1; height:100%; display:flex; align-items:flex-end; }
.freq-chart .fill { width:100%; border-radius:4px 4px 2px 2px; transition:height .4s var(--ease); min-height:3px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border: none; border-radius: 999px; padding: 14px 22px;
  cursor: pointer; transition: .18s var(--ease); display:inline-flex;
  align-items:center; justify-content:center; gap:8px;
}
.btn-gold {
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #1a1408; box-shadow: 0 10px 30px -12px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform:none; }
.btn-row { display:flex; gap:10px; }
.btn-row .btn { flex:1; }

/* ---------------------------------------------------------------- Forms */
label.field { display:block; margin-top: 16px; }
label.field .lbl { font-size: 12px; letter-spacing:.06em; text-transform:uppercase; color: var(--text-mut); margin-bottom:7px; display:block; }
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 14px; resize: vertical;
  transition: border-color .18s var(--ease);
}
textarea { min-height: 120px; line-height:1.6; }
textarea:focus, input:focus { outline: none; border-color: var(--gold-deep); }
textarea::placeholder, input::placeholder { color: var(--text-mut); }

.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  padding: 8px 14px; border-radius:999px; font-size:13px; font-weight:600;
  background: var(--surface); border:1px solid var(--line); color: var(--text-soft);
  cursor:pointer; transition:.15s var(--ease);
}
.chip.on { background: var(--gold-glow); border-color: var(--gold-deep); color: var(--gold); }
.chip:hover { border-color: var(--line-strong); }

/* ---------------------------------------------------------------- 369 counter */
.count369 { text-align:center; padding: 8px 0 4px; }
.count369 .num { font-family: var(--serif); font-size: 72px; line-height:1; color: var(--gold); }
.count369 .of  { font-size: 15px; color: var(--text-mut); margin-top: 6px; }
.tap-target {
  margin: 18px auto 6px; width: 190px; height:190px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, rgba(217,184,118,.22), rgba(217,184,118,.03));
  border: 1px solid var(--line-strong); display:grid; place-items:center;
  cursor:pointer; user-select:none; transition: transform .12s var(--ease), box-shadow .2s;
  color: var(--text-soft); font-weight:600; text-align:center; padding: 20px;
}
.tap-target:active { transform: scale(.96); box-shadow: 0 0 0 8px var(--gold-glow); }

/* ---------------------------------------------------------------- Visualization / breathing */
.breath-stage { display:grid; place-items:center; padding: 30px 0; min-height: 320px; }
.breath-orb {
  width: 150px; height:150px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--gold-deep));
  box-shadow: 0 0 60px -6px var(--gold-glow);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breath-orb.in  { transform: scale(1.35); box-shadow: 0 0 90px 4px var(--gold-glow); }
.breath-orb.out { transform: scale(.85); }
.breath-word { margin-top: 26px; font-family: var(--serif); font-size: 26px; color: var(--text); min-height: 34px; }
.viz-prompt { text-align:center; font-family: var(--sans); font-weight:300; font-size: clamp(19px,4.8vw,24px); line-height:1.42; padding: 0 6px; min-height: 90px; }
.timer-big { font-family: var(--serif); font-size: 40px; color: var(--gold); text-align:center; }

/* ---------------------------------------------------------------- EFT tapping */
.eft-body { display:grid; place-items:center; gap: 6px; padding: 10px 0; }
.eft-point {
  font-family: var(--serif); font-size: 26px; color: var(--gold); text-align:center;
}
.eft-phrase { text-align:center; font-size:17px; color: var(--text); padding: 0 8px; line-height:1.5; }
.eft-diagram { width: 130px; height: 170px; }
.eft-dot { fill: var(--surface-2); stroke: var(--line-strong); }
.eft-dot.active { fill: var(--gold); stroke: var(--gold); }
.progress-dots { display:flex; gap:7px; justify-content:center; margin: 14px 0; }
.progress-dots .d { width:8px; height:8px; border-radius:50%; background: var(--surface-2); border:1px solid var(--line); }
.progress-dots .d.on { background: var(--gold); border-color: var(--gold); }

/* ---------------------------------------------------------------- Affirmations */
.affirm-card {
  border-radius: var(--radius-lg); padding: 34px 24px; text-align:center;
  background:
    radial-gradient(500px 250px at 50% 0%, rgba(217,184,118,.14), transparent 60%),
    linear-gradient(180deg,#15151c,#0e0f14);
  border:1px solid var(--line-strong); box-shadow: var(--shadow);
  min-height: 220px; display:grid; place-items:center;
}
.affirm-card .q { font-family: var(--sans); font-weight:300; font-size: clamp(21px,5.6vw,28px); line-height:1.38; letter-spacing:.2px; }
.affirm-list .item {
  display:flex; align-items:center; gap:12px; padding:14px 4px; border-bottom:1px solid var(--line);
}
.affirm-list .item:last-child { border-bottom:none; }
.affirm-list .item .txt { flex:1; font-size:15px; }
.fav-btn { background:none; border:none; cursor:pointer; font-size:18px; color: var(--text-mut); }
.fav-btn.on { color: var(--gold); }

/* ---------------------------------------------------------------- Calendar / progress */
.stat-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.stat {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; text-align:center;
}
.stat .v { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.stat .l { font-size: 11.5px; color: var(--text-mut); text-transform:uppercase; letter-spacing:.08em; margin-top:4px; }
.cal { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; margin-top: 8px; }
.cal .cell { aspect-ratio:1; border-radius:7px; background: var(--surface-2); border:1px solid var(--line); }
.cal .cell.l1 { background: rgba(217,184,118,.28); }
.cal .cell.l2 { background: rgba(217,184,118,.55); }
.cal .cell.l3 { background: var(--gold); }
.cal .cell.today { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.cal-labels { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; font-size:10px; color:var(--text-mut); text-align:center; margin-bottom:4px; }

/* Journal entries */
.entry { padding:14px 0; border-bottom:1px solid var(--line); }
.entry:last-child { border-bottom:none; }
.entry .meta { font-size:12px; color: var(--text-mut); margin-bottom:6px; display:flex; gap:8px; align-items:center;}
.entry .tag { padding:2px 8px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); font-size:11px; color:var(--gold-2);}
.entry .body-txt { font-size:14.5px; color: var(--text-soft); white-space:pre-wrap; }

/* ---------------------------------------------------------------- Bottom nav */
.nav {
  position: fixed; left:0; right:0; bottom:0; z-index: 40;
  background: rgba(11,12,16,.82); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px);
}
.nav-inner { max-width: var(--maxw); margin:0 auto; display:flex; justify-content:space-around; }
.nav a {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding: 6px 4px; color: var(--text-mut); text-decoration:none; font-size:10.5px;
  letter-spacing:.03em; transition:.15s var(--ease); border-radius:12px;
}
.nav a .ni { font-size:20px; line-height:1; }
.nav a.active { color: var(--gold); }

/* ---------------------------------------------------------------- Modal / sheet */
.sheet-backdrop {
  position: fixed; inset:0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  z-index: 60; display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s var(--ease);
}
.sheet-backdrop.open { opacity:1; pointer-events:auto; }
.sheet {
  width:100%; max-width: var(--maxw); background: var(--bg-elev);
  border-radius: 24px 24px 0 0; border:1px solid var(--line); border-bottom:none;
  padding: 22px 20px calc(env(safe-area-inset-bottom) + 22px);
  transform: translateY(20px); transition: transform .3s var(--ease);
  max-height: 90dvh; overflow-y:auto;
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet .grab { width:40px; height:4px; border-radius:2px; background:var(--line-strong); margin:0 auto 16px; }

/* ---------------------------------------------------------------- Utility */
.stack > * + * { margin-top: 14px; }
.row { display:flex; gap:10px; align-items:center; }
.spread { justify-content:space-between; }
.hidden { display:none !important; }
.fade-in { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity:0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.pill-note { font-size:12.5px; color:var(--text-mut); background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.toast {
  position: fixed; left:50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 90px);
  background: var(--surface-2); border:1px solid var(--gold-deep); color: var(--text);
  padding: 12px 18px; border-radius: 999px; font-size:14px; z-index: 80;
  opacity:0; transition:.3s var(--ease); box-shadow: var(--shadow-soft); pointer-events:none;
}
.toast.show { opacity:1; }

.divider { height:1px; background:var(--line); margin: 18px 0; }
.quote { font-family:var(--sans); font-style:italic; color: var(--text-soft); font-size:16px; line-height:1.55; font-weight:300; }
.quote .src { display:block; font-style:normal; font-size:12px; color:var(--text-mut); margin-top:8px; letter-spacing:.05em; }

/* ---------------------------------------------------------------- Désirs (4 étapes) */
.back-link { color: var(--gold-2); font-size: 13px; text-decoration: none; letter-spacing:.04em; }
.icon-btn { background: rgba(255,255,255,.04); border:1px solid var(--line); color: var(--text-soft);
  width:32px; height:32px; border-radius:9px; display:grid; place-items:center; cursor:pointer; transition:.15s var(--ease); flex:0 0 auto; }
.icon-btn:hover { color: var(--gold); border-color: var(--gold-deep); }
.desire-cta { display:flex; align-items:center; justify-content:space-between; gap:14px; text-decoration:none; transition:.18s var(--ease); }
.desire-cta:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.desire .desire-title { font-family: var(--sans); font-weight:600; font-size:16px; line-height:1.3; padding-right:10px; }
.desire.is-done { opacity:.62; }
.desire.is-done .desire-title { text-decoration: line-through; text-decoration-color: var(--gold-deep); }
.desire-steps { display:flex; align-items:center; gap:8px; margin:4px 0 10px; }
.dstep { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-family:var(--title); font-size:12px;
  background: var(--surface-2); border:1px solid var(--line); color: var(--text-mut); }
.dstep.on { background: linear-gradient(145deg,var(--gold),var(--gold-deep)); border-color:transparent; color:#14100a; }
.desire-prog { margin-left:auto; font-size:12px; color: var(--text-mut); }
.desire-line { font-size:13.5px; color: var(--text-soft); margin-top:6px; line-height:1.45; }
.desire-line .k { display:inline-block; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-2); margin-right:8px; }
/* create/edit sheet fields */
.dfield { padding:14px 0; border-bottom:1px solid var(--line); }
.dfield:last-of-type { border-bottom:none; }
.dfield-hd { display:flex; align-items:center; gap:10px; }
.dnum { width:26px; height:26px; border-radius:50%; background: linear-gradient(145deg,var(--gold),var(--gold-deep));
  color:#14100a; font-family:var(--title); font-weight:700; font-size:13px; display:grid; place-items:center; flex:0 0 auto; }
.dfield-label { font-family: var(--title); font-size:16px; letter-spacing:.5px; }
.dfield-hint { font-size:12.5px; color: var(--text-mut); margin:6px 0 8px; line-height:1.45; }

/* ---------------------------------------------------------------- Visualisation (thêta) */
.viz-charge { text-align:center; font-size:13.5px; color: var(--text-soft); background: var(--surface);
  border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:12px; }
.viz-phase { color: var(--gold-2); }

/* ---------------------------------------------------------------- Teachability Index */
.ti-score { text-align:center; margin: 6px 0 14px; }
.ti-score-v { font-family: var(--title); font-size:48px; color: var(--gold); line-height:1; }
.ti-score-l { font-size:15px; color: var(--text-mut); margin-left:2px; }
.ti-axis { margin-top:14px; }
.ti-label { font-size:13px; font-weight:600; letter-spacing:.04em; }
.ti-val { font-family: var(--title); font-size:16px; }
.ti-hint { font-size:12px; color: var(--text-mut); margin-top:4px; line-height:1.4; }
input[type="range"]{ -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px; margin:10px 0 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold)); outline:none; }
input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px; border-radius:50%;
  background: var(--gold); border:2px solid var(--bg-elev); box-shadow:0 2px 8px rgba(0,0,0,.5); cursor:pointer; }
input[type="range"]::-moz-range-thumb{ width:22px; height:22px; border-radius:50%; background: var(--gold);
  border:2px solid var(--bg-elev); box-shadow:0 2px 8px rgba(0,0,0,.5); cursor:pointer; }

/* ---------------------------------------------------------------- Section title ornament */
.section-title h2 { position: relative; }
.section-title h2::after {
  content: "❖"; font-family: var(--sans); font-size: 11px; color: var(--gold-deep);
  margin-left: 10px; vertical-align: middle; opacity: .6;
}
.section-title .link, .section-title .link:hover { text-decoration:none; }

/* ---------------------------------------------------------------- Nav (6 items) */
.nav a { font-size: 10px; }
.nav a .ni { font-size: 18px; }
@media (min-width: 640px) {
  .nav a { font-size:11px; }
  .nav a .ni { font-size:20px; }
}
