/* Portal Synergia — phone-first, Regina Maria layout in Synergia's colours.
   Tokens: teal identifies, green acts (synergia.ro). Light default, dark by
   data-theme=dark or the system when data-theme=auto. */
:root {
  --bg: #f1f4f4; --card: #ffffff; --ink: #12201f; --ink-2: #4a5c5a; --ink-3: #5f716f; --line: #dfe7e6;
  --teal: #2b6d68; --teal-deep: #1f5551; --teal-soft: #e4f0ef; --teal-text: #1f5551;
  --green: #4a7a0a; --green-soft: #eaf4dc; --gold: #f7b603; --gold-soft: #fff4d1; --gold-text: #5b4300;
  --red: #b42318; --red-soft: #fbe9e7; --chip: #e8eeee; --tab: #ffffff;
  --shadow: 0 1px 2px rgba(18,32,31,.06), 0 8px 24px -18px rgba(18,32,31,.25);
  color-scheme: light;
}
[data-theme="dark"] { --bg: #0f1716; --card: #182221; --ink: #e8efee; --ink-2: #a9b8b6; --ink-3: #8fa09e; --line: #26332f;
  --teal: #1f5551; --teal-deep: #163f3c; --teal-soft: #17302d; --teal-text: #8fd3cc;
  --green: #6cac1c; --green-soft: #1d2a12; --gold-soft: #2e2609; --gold-text: #f0d27a;
  --red: #f0857a; --red-soft: #33191a; --chip: #223030; --tab: #182221; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] { --bg: #0f1716; --card: #182221; --ink: #e8efee; --ink-2: #a9b8b6; --ink-3: #8fa09e; --line: #26332f;
    --teal: #1f5551; --teal-deep: #163f3c; --teal-soft: #17302d; --teal-text: #8fd3cc;
    --green: #6cac1c; --green-soft: #1d2a12; --gold-soft: #2e2609; --gold-text: #f0d27a;
    --red: #f0857a; --red-soft: #33191a; --chip: #223030; --tab: #182221; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 16px/1.5 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 600; }
h1.serif { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.greet h1.serif { font-size: 32px; }
h2 { font-size: 18px; }
p { margin: 0; }
ul { margin: 0; padding-left: 18px; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 500; }
.muted { color: var(--ink-3); } .small { font-size: 13.5px; } .lg { font-size: 18px; } .strong { font-weight: 600; } .center { text-align: center; }
.up { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.grow { flex: 1; } .col { display: flex; flex-direction: column; line-height: 1.25; } .col small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 12px; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.line { height: 1px; background: var(--line); } .mt { margin-top: 6px; }
.inline { display: inline; }
.link { color: var(--teal-text); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--teal); color: #fff; }
.wordmark { display: flex; align-items: center; gap: 10px; padding-left: 4px; font-weight: 700; font-size: 17px; color: #fff; }
.wordmark .mark { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #2b6d68; display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-size: 20px; font-weight: 600; }
.ttl { flex: 1; text-align: center; font-weight: 600; font-size: 17px; }
.iconbtn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; }
.iconbtn svg, .tab svg, .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 20px; height: 20px; flex-shrink: 0; } .ic.big { width: 40px; height: 40px; color: var(--ink-3); } .ic.teal { color: var(--teal-text); }
.me { display: flex; align-items: center; gap: 8px; color: #fff; }
.me-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; } .me-text b { font-size: 13px; } .me-text small { font-size: 10px; opacity: .85; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #65bdc2; color: #0e3055; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.sm { width: 34px; height: 34px; background: var(--teal-soft); color: var(--teal-text); font-size: 12px; } .avatar.lg { width: 52px; height: 52px; font-size: 18px; }

/* main */
.main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 24px; max-width: 640px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .main { max-width: 760px; } }
.flash .msg { padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-text); font-weight: 600; font-size: 14px; }
.flash .msg.error { background: var(--red-soft); color: var(--red); } .flash .msg.info { background: var(--chip); color: var(--ink-2); }
.ver { font-size: 11px; color: var(--ink-3); text-align: center; padding-top: 8px; } .ver a { text-decoration: underline; }

/* cards */
.card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.row { flex-direction: row; } .card.soft { background: var(--teal-soft); box-shadow: none; color: var(--teal-text); }
.card.teal-bg { background: var(--teal); color: #fff; box-shadow: none; } .card.teal-bg .small { opacity: .92; }
.card.empty { padding: 28px 20px; gap: 6px; } .card.pad { padding: 28px 20px; }
.card.note { flex-direction: row; align-items: flex-start; gap: 12px; box-shadow: none; background: var(--teal-soft); color: var(--teal-text); font-size: 13.5px; line-height: 1.4; }
.card.note svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.note.gold { background: var(--gold-soft); color: var(--gold-text); }
.card.note a { text-decoration: underline; }
.danger-border { border: 1.5px solid var(--red); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; } .kv span { color: var(--ink-3); } .kv b { text-align: right; }
.list { display: flex; flex-direction: column; } .list > * { padding: 9px 0; border-bottom: 1px solid var(--line); } .list > *:last-child { border-bottom: 0; }
.chips { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; min-width: 150px; flex-shrink: 0; }
.chip span { display: flex; flex-direction: column; line-height: 1.15; } .chip b { font-size: 20px; } .chip small { color: var(--ink-3); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-teal { background: var(--teal-soft); color: var(--teal-text); } .b-green { background: var(--green-soft); color: var(--green); }
.b-grey { background: var(--chip); color: var(--ink-2); } .b-red { background: var(--red-soft); color: var(--red); } .b-gold { background: var(--gold-soft); color: var(--gold-text); }
.meter { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.tile { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu { padding: 0; overflow: hidden; gap: 0; } .menu > a, .menu-btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.menu > :last-child, .menu form:last-child .menu-btn { border-bottom: 0; }
.circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; } .circle svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circle.ok { background: var(--green-soft); color: var(--green); } .circle.warn { background: var(--gold-soft); color: var(--gold-text); }
.grid4 { display: grid; grid-template-columns: 56px minmax(0,1fr) 34px 78px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.grid4.head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-bottom-width: 1.5px; } .grid4:last-child { border-bottom: 0; } .c { text-align: center; } .r { text-align: right; }
.prose { font-size: 15px; line-height: 1.55; } .prose img { max-width: 100%; }
.changelog { white-space: pre-wrap; font: 13.5px/1.5 "DM Sans", system-ui, sans-serif; margin: 0; }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; color: var(--ink); background: var(--chip); }
.btn.primary { background: var(--green); color: #fff; } .btn.teal { background: var(--teal); color: #fff; } .btn.ghost { background: var(--chip); }
.btn.danger { background: var(--red-soft); color: var(--red); } .btn.line { background: transparent; color: var(--teal-text); border: 1.5px solid var(--teal); min-height: 44px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; } .btn .ic { color: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; width: 100%; }
.input.sm { min-height: 40px; width: auto; } .err { color: var(--red); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; } .check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--teal); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--chip); }
.segbtn { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.segbtn.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.slot { min-height: 56px; width: 100%; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; align-items: center; justify-content: center; gap: 2px; }
.slot small { font-size: 11px; font-weight: 500; opacity: .8; } .slot.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* login */
.hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 0 6px; text-align: center; }
.logo-big { width: 64px; height: 64px; border-radius: 18px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 8px; }
.hero p { max-width: 280px; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; border-top: 1px solid var(--line); background: var(--tab); padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tab.on { color: var(--teal-text); }
@media (min-width: 900px) { .tabbar { max-width: 760px; margin: 0 auto; border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: 0; } }
.htmx-request .segbtn { opacity: .6; }

/* --- v0.2: the mirror's freshness line and the requests ---------------------- */
.fresh { display: flex; justify-content: center; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-top: 18px; }
.fresh button.link { background: none; border: 0; font: inherit; color: var(--teal-text); text-decoration: underline; cursor: pointer; padding: 6px; }
.badge.b-pending { background: var(--gold-soft); color: var(--gold-text); }
.req { display: flex; flex-direction: column; gap: 4px; }
.req .when { font-size: 12.5px; color: var(--ink-3); }

/* Abonamente (apps/shop) — the cards of synergia.ro/abonamente, in the Portal */
.chips { gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip small { font-size: 12px; opacity: .65; } .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ab-grid { display: grid; gap: 14px; } @media (min-width: 640px) { .ab-grid { grid-template-columns: 1fr 1fr; } }
.ab-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(14,48,85,.13); transition: transform .15s, box-shadow .15s; }
.ab-card:not(.static):hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(14,48,85,.2); }
.ab-top { background: #2b6d68; color: #fff; padding: 22px 22px 22px; }
.ab-cat { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #d9ecec; }
.ab-top h1, .ab-top h2 { margin-top: 8px; font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: 25px; line-height: 1.15; color: #fff; }
.ab-top p { margin-top: 4px; font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.75); }
.ab-price { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; }
.ab-price .dim { font-size: 13px; color: rgba(255,255,255,.72); } .ab-price s { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75); }
.ab-price .up { font-weight: 700; letter-spacing: 1px; color: #fff; } .ab-price .big { font-size: 28px; line-height: 1; font-weight: 700; }
.ab-pill { display: inline-block; border-radius: 20px; background: #f7b603; color: #272727; padding: 3px 11px; font-size: 11px; font-weight: 700; }
.ab-pct { display: inline-block; border-radius: 20px; background: rgba(255,255,255,.16); color: #fff; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.ab-bottom { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; background: #eef6f6; color: #272727; }
[data-theme="dark"] .ab-bottom { background: #1c2b2a; color: var(--ink); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .ab-bottom { background: #1c2b2a; color: var(--ink); } }
.ab-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ab-feats li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: #5c5c5c; }
[data-theme="dark"] .ab-feats li { color: var(--ink-2); } .ab-feats.dark li { font-size: 15.5px; color: var(--ink); }
.ab-feats li::before { content: ""; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #68a919; }
.ab-feats li::after { content: ""; position: absolute; top: 7px; left: 5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ab-more { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #2b6d68; } [data-theme="dark"] .ab-more { color: var(--teal-text); }
.ab-cta { min-height: 54px; border-radius: 50px; font-size: 14px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; box-shadow: 0 6px 16px rgba(108,172,28,.3); }
.ic.big.ok { color: var(--green); } .ic.big.bad { color: var(--red); }

/* Raportează o problemă (apps/bugs): the 🐞 of Nexus, above the tab bar */
.bugbtn { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--ink-2); box-shadow: 0 2px 10px rgba(18,32,31,.22); display: flex; align-items: center; justify-content: center; padding: 0; }
.bugbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .bugbtn { right: calc(50% - 380px + 14px); } }
.dlg { border: 0; border-radius: 18px; padding: 18px; width: min(92vw, 480px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dlg::backdrop { background: rgba(18,32,31,.55); }
.dlg .iconbtn.dark { color: var(--ink-2); width: 36px; height: 36px; }
.bug-shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--chip); min-height: 32px; display: flex; align-items: center; justify-content: center; }
.bug-shot img { display: block; width: 100%; max-height: 220px; object-fit: contain; object-position: top; }
.input.area { min-height: 96px; padding: 10px 14px; resize: vertical; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 7; background: var(--teal); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }

/* --- Forma ta (apps/forma): the participant's screens ------------------- */
.stages { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; } .stages::-webkit-scrollbar { display: none; }
.stages span { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--chip); color: var(--ink-3); }
.stages span.done { background: var(--green-soft); color: var(--green); } .stages span.now { background: var(--teal); color: #fff; }
.task { display: flex; gap: 12px; align-items: flex-start; } .task .tile { flex-shrink: 0; }
.task b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }
.keymsg { font-family: "Fraunces", Georgia, serif; font-size: 20px; line-height: 1.3; }
.scores3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.score { border-radius: 12px; padding: 12px 10px; text-align: center; background: var(--chip); }
.score b { display: block; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; } .score small { font-size: 12px; color: var(--ink-3); }
.score.low { background: var(--gold-soft); color: var(--gold-text); } .score.high { background: var(--green-soft); color: var(--green); }
.score .delta { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating label { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; cursor: pointer; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.rating-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 200px; }
.yn label { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; }
.yn input { position: absolute; opacity: 0; width: 0; height: 0; }
.yn label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.qcard .qt { font-weight: 600; font-size: 16px; } .qcard .qx { font-size: 15px; line-height: 1.45; } .qcard .qd { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opts label { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-weight: 500; cursor: pointer; font-size: 15px; line-height: 1.3; }
.opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.opts label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.opts label b { font-variant-numeric: tabular-nums; min-width: 16px; }
.opts.row3 { flex-direction: row; } .opts.row3 label { flex: 1; justify-content: center; padding: 8px 6px; font-size: 14px; text-align: center; }
.range { width: 100%; accent-color: var(--teal); }
.weekcard h3 { margin: 0; font-size: 16px; }
.days .grid4 { grid-template-columns: 62px minmax(0, 1fr) 96px; }
.gatecard { display: flex; gap: 12px; align-items: center; }
.safety { background: var(--red-soft); color: var(--ink); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.safety h1 { font-size: 22px; } .safety .btn.danger { background: var(--red); color: #fff; }
.tab.program svg { stroke-width: 1.8; }

/* --- Forma ta: the staff screens (apps/forma/views_staff.py) — wider, table-friendly */
.main.wide { max-width: 1100px; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.page-head h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; }
.page-head .sub, .sub { color: var(--ink-3); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.sub a, .card a.link2 { color: var(--teal-text); font-weight: 600; }
.hint { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.mt2 { margin-top: 12px; } .right { text-align: right; } .mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t .row-link { font-weight: 600; color: var(--teal-text); }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--chip); color: var(--ink-2); }
.pill.ok { background: var(--green-soft); color: var(--green); } .pill.warn { background: var(--gold-soft); color: var(--gold-text); }
.pill.bad { background: var(--red-soft); color: var(--red); } .pill.info { background: var(--teal-soft); color: var(--teal-text); } .pill.neutral { background: var(--chip); color: var(--ink-3); }
a.pill { margin: 2px 4px 2px 0; }
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; margin: 6px 0; background: var(--chip); }
.alert strong { display: block; } .alert.ok { background: var(--green-soft); color: var(--green); } .alert.warn { background: var(--gold-soft); color: var(--gold-text); } .alert.bad { background: var(--red-soft); color: var(--red); }
.alert a { text-decoration: underline; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; } @media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }
.field .errorlist { list-style: none; padding: 0; margin: 0; color: var(--red); font-size: 13px; }
.field select.input, select.input { appearance: auto; }
.input.sm { min-height: 40px; width: auto; font-size: 14px; }
.split { display: grid; gap: 14px; } .split > * { min-width: 0; }
.t.cmp td { overflow-wrap: anywhere; } @media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.gatepill { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 4px; background: var(--chip); vertical-align: middle; }
.gatepill.verde { background: var(--green); } .gatepill.galben { background: var(--gold); } .gatepill.posibil_rosu, .gatepill.rosu { background: var(--red); }
.pillars { display: grid; gap: 12px; } @media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pillar h3 { margin: 0; font-size: 17px; } .pillar .row { justify-content: space-between; flex-wrap: wrap; } .pillar .big { font-size: 22px; }
.pillar .btn { min-height: 40px; font-size: 14px; padding: 0 12px; } .pillar .btn.disabled { opacity: .5; pointer-events: none; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.t-accounts .row-link { word-break: break-all; }
.wkcards { display: grid; gap: 10px; } @media (min-width: 720px) { .wkcards { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1000px) { .wkcards { grid-template-columns: repeat(4, 1fr); } }
.wkcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.wkcard h4 { margin: 0; font-size: 15px; } .wkcard .theme { color: var(--ink-3); font-size: 12.5px; }
.wkcard .nums { display: flex; gap: 12px; } .wkcard .nums b { font-size: 18px; } .wkcard .nums small { color: var(--ink-3); }
.wkcard .btn { min-height: 38px; font-size: 13.5px; align-self: flex-start; }
table.loggrid { border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
table.loggrid th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.loggrid td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: center; } table.loggrid td.l { text-align: left; }
table.loggrid tr.wk td { text-align: left; font-weight: 600; background: var(--teal-soft); color: var(--teal-text); }
table.loggrid tr.today td { background: var(--gold-soft); } table.loggrid td.sc { font-weight: 700; }
table.loggrid a { color: var(--teal-text); font-weight: 600; }
.mode { padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; } .mode.progres { background: var(--green-soft); color: var(--green); } .mode.standard { background: var(--teal-soft); color: var(--teal-text); } .mode.usoara { background: var(--gold-soft); color: var(--gold-text); }
.gate-q { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gate-q .qt { font-weight: 600; } .gate-q .qx { font-size: 14.5px; line-height: 1.45; } .gate-q .qd { font-size: 13px; color: var(--ink-3); }
.gate-q .opts { flex-direction: row; flex-wrap: wrap; } .gate-q .opts label { flex: 0 1 auto; min-height: 40px; padding: 6px 12px; font-size: 14px; }
.scale { display: flex; flex-direction: column; gap: 4px; }
.scale label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.scale label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; } .scale input { width: 16px; height: 16px; margin-top: 2px; }
.extras { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.extras label { display: flex; flex-direction: column; gap: 3px; } .extras input { width: 90px; min-height: 36px; padding: 0 8px; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; background: var(--card); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile.p, .tile.a, .tile.g, .tile.n { display: block; width: auto; height: auto; border-radius: 12px; padding: 10px 12px; background: var(--chip); }
.tile .t-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); } .tile .t-v { font-size: 24px; font-weight: 700; line-height: 1.1; } .tile .t-v small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 4px; } .tile .t-s { font-size: 12px; margin-top: 2px; }
.tile.p { background: var(--teal-soft); } .tile.a { background: var(--gold-soft); } .tile.g { background: var(--green-soft); }
details summary { cursor: pointer; }
.staff-nav { display: flex; gap: 8px; flex-wrap: wrap; }
body.staff .main { max-width: 1100px; }
@media (min-width: 900px) { body.staff .tabbar { max-width: 1100px; } body.staff .bugbtn { right: 14px; } }
.dlg .seg .segbtn { position: relative; cursor: pointer; font-size: 13px; padding: 9px 4px; }
.dlg .seg .segbtn input { position: absolute; opacity: 0; width: 0; height: 0; }
.dlg .seg .segbtn:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* --- admin.portal (apps/adminportal) --------------------------------------------- */
body.adm { padding-bottom: 0; }
.adm-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 10px 16px; background: var(--teal); color: #fff; }
.adm-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.adm-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.85); }
.adm-nav a.on, .adm-nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.adm-nav .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #f7b603; color: #272727; font-size: 12px; text-align: center; }
.adm-me { display: flex; align-items: center; gap: 10px; } .adm-me .btn { min-height: 34px; background: rgba(255,255,255,.16); color: #fff; }
.main.adm-main { max-width: 1180px; }
.adm-login { max-width: 420px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 14px; }
.filters { gap: 8px; } .filters .input.sm { min-width: 140px; }
a.tile.p, a.tile.a, a.tile.g, a.tile.n { color: inherit; }
table.t tr.grp td { background: var(--teal-soft); color: var(--teal-text); }
table.t tr.grp .btn { margin-left: 10px; min-height: 30px; font-size: 12.5px; }
table.diff td { word-break: break-word; } table.diff tr.chg td { background: var(--gold-soft); } table.diff tr.chg td:first-child { font-weight: 700; }
.input.grow { flex: 1; min-width: 180px; }
.card.soft.preview { color: var(--ink); background: var(--card); border: 1.5px dashed var(--line); }
@media (max-width: 760px) {
  .adm-top { gap: 8px 12px; }
  .adm-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav a { white-space: nowrap; }
  .adm-me { margin-left: auto; } .adm-me .small { display: none; }
  .hide-p { display: none; }
  table.diff td:first-child { min-width: 96px; }
}
/* Forma ta v0.5 — Inițial / Actual / Țintă bars (SVG), the team leaderboard, the report table. */
.sbars { display: flex; flex-direction: column; gap: 12px; }
.sb-total { display: flex; align-items: center; gap: 12px; }
.sb-total b { font-family: Fraunces, Georgia, serif; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-total small { color: var(--ink-3); font-size: 14px; margin-left: 2px; }
.sb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.sb-nums { display: flex; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.sb-nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-nums .tg b { color: var(--gold-text); }
.sb-bar { display: block; width: 100%; height: 14px; margin-top: 4px; }
.sb-track { fill: var(--chip); } .sb-fill { fill: var(--teal); } .sb-init { fill: var(--ink-3); } .sb-target { fill: var(--gold); }
[data-theme="dark"] .sb-fill { fill: var(--teal-text); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .sb-fill { fill: var(--teal-text); } }
.sb-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.sb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.lg-fill { background: var(--teal); } .lg-init { background: var(--ink-3); width: 3px !important; } .lg-target { background: var(--gold); width: 4px !important; }
.lb { display: flex; flex-direction: column; gap: 8px; }
table.lbt, table.iat { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.lbt th, table.iat th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; padding: 4px 3px; border-bottom: 1px solid var(--line); }
table.lbt td, table.iat td { text-align: center; padding: 7px 3px; border-bottom: 1px solid var(--line); }
table.lbt .l, table.iat .l { text-align: left; }
table.lbt tr.mine td { background: var(--teal-soft); color: var(--teal-text); font-weight: 600; }
table.iat tr.tot td { border-bottom: 0; border-top: 2px solid var(--line); }
table.iat { margin-bottom: 14px; }
.check-mob { min-width: 180px; }
.mt-s { margin-top: 6px; }
.rating.r6 { grid-template-columns: repeat(6, 1fr); }
.perm { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--teal-soft); color: var(--teal-text); }
.perm.limitat { background: var(--chip); color: var(--ink-2); } .perm.pauza { background: var(--chip); color: var(--ink-2); border: 1px dashed var(--ink-3); }
.levers { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.pstates .kv { align-items: center; }
ul.checklist { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
ul.checklist li::before { content: "•"; display: inline-block; width: 18px; font-weight: 700; }
ul.checklist li.ok::before { content: "✓"; color: var(--green); } ul.checklist li.no::before { content: "!"; color: var(--red); } ul.checklist li.na::before { content: "·"; color: var(--ink-3); }
.gate-q.halted { opacity: .45; }
.opts.control { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; flex-wrap: wrap; }
.card.case h3 { margin: 14px 0 6px; font-size: 15px; }
.case .split .kv { gap: 10px; }
.rating.r11 { grid-template-columns: repeat(11, 1fr); gap: 3px; } .rating.r11 label { min-height: 44px; font-size: 15px; }
.tile.num { font-weight: 700; color: var(--teal-text); }
table.lbt { table-layout: fixed; } table.lbt th:first-child, table.lbt td:first-child { width: 26px; }
table.lbt th:nth-child(2), table.lbt td:nth-child(2) { width: 30%; overflow-wrap: anywhere; }

/* --- Forma ta v0.7 — the patient side, redesigned (phone first, 390 px) -----------------
   One fixed colour per pillar across the app: Minte = Synergia teal, Energie = green,
   Corp = violet. No red for a low value on the patient side. Contrast checked (WCAG AA,
   text on card) in light and dark: minte 6.0 / 8.0, energie 5.9 / 8.3, corp 6.6 / 7.3. */
:root { --minte: #2b6d68; --minte-soft: #e4f0ef; --energie: #44700a; --energie-soft: #eaf4dc;
  --corp: #5a4bc0; --corp-soft: #ecebfb; --ring-track: #e3eaea; }
[data-theme="dark"] { --minte: #6cc4bc; --minte-soft: #17302d; --energie: #92c94b; --energie-soft: #1d2a12;
  --corp: #ada2ff; --corp-soft: #25223f; --ring-track: #26332f; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --minte: #6cc4bc; --minte-soft: #17302d;
  --energie: #92c94b; --energie-soft: #1d2a12; --corp: #ada2ff; --corp-soft: #25223f; --ring-track: #26332f; } }
.pl-minte { --pc: var(--minte); --pc-soft: var(--minte-soft); }
.pl-energie { --pc: var(--energie); --pc-soft: var(--energie-soft); }
.pl-corp { --pc: var(--corp); --pc-soft: var(--corp-soft); }
.pc { color: var(--pc); } .pc-bg { background: var(--pc-soft); color: var(--pc); }
.ft-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ft-tile { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--pc-soft, var(--teal-soft)); color: var(--pc, var(--teal-text)); }
.ft-date { font-size: 13.5px; color: var(--ink-3); }
.ft-h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.15; margin: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.sec-h h2 { font-size: 18px; } .sec-h .muted { font-size: 13px; }
.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; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* hero: the single next action */
.hero-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--teal); color: #fff; box-shadow: 0 14px 30px -18px rgba(18,32,31,.55); }
.hero-card.pl-energie { background: #3f6a09; } .hero-card.pl-corp { background: #4d3fb0; } .hero-card.pl-minte { background: var(--teal); }
.hero-card.calm { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.hero-card .hc-top { display: flex; gap: 14px; align-items: flex-start; }
.hero-card .hc-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card.calm .hc-ic { background: var(--teal-soft); color: var(--teal-text); }
.hero-card .hc-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-card .hc-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero-card .hc-t { font-family: "Fraunces", Georgia, serif; font-size: 23px; line-height: 1.2; margin-top: 2px; }
.hero-card .hc-s { font-size: 14px; opacity: .9; margin-top: 4px; line-height: 1.35; }
.hero-card .hc-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: #fff; color: #12201f; font-weight: 700; font-size: 16px; }
.hero-card.calm .hc-go { background: var(--green); color: #fff; }
.hero-card .hc-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the 4-step progress bar and the week */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps4 li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.steps4 li i { display: block; height: 6px; border-radius: 999px; background: var(--chip); }
.steps4 li.done i { background: var(--green); } .steps4 li.now i { background: var(--teal); } .steps4 li.now { color: var(--ink); }
[data-theme="dark"] .steps4 li.now i { background: var(--teal-text); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .steps4 li.now i { background: var(--teal-text); } }
.weekrow { display: flex; align-items: center; gap: 14px; }
.ring { display: block; flex-shrink: 0; } .ring .rt { fill: none; stroke: var(--ring-track); } .ring .rv { fill: none; stroke: var(--teal); stroke-linecap: round; }
[data-theme="dark"] .ring .rv { stroke: var(--teal-text); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .ring .rv { stroke: var(--teal-text); } }
.ring text { fill: var(--ink); font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.ring .rs { font-size: 11px; font-weight: 600; fill: var(--ink-3); }
.dots7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; flex: 1; list-style: none; padding: 0; margin: 0; }
.dots7 li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.dots7 li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: block; }
.dots7 li.done i { background: var(--teal); border-color: var(--teal); } .dots7 li.partial i { border-color: var(--teal); background: var(--teal-soft); }
.dots7 li.today { color: var(--ink); } .dots7 li.today i { box-shadow: 0 0 0 3px var(--gold-soft); } .dots7 li.future i { border-style: dashed; }
[data-theme="dark"] .dots7 li.done i { background: var(--teal-text); border-color: var(--teal-text); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .dots7 li.done i { background: var(--teal-text); border-color: var(--teal-text); } }

/* today's three tasks */
.tasks3 { display: flex; flex-direction: column; gap: 10px; }
.taskc { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--pc); }
.taskc .tk-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.taskc .tk-l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--pc); }
.taskc .tk-t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.taskc .tk-w { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.taskc .tk-lv { font-size: 13px; color: var(--ink-2); } .taskc .tk-lv b { color: var(--pc); font-weight: 600; }
.taskc form { flex-shrink: 0; }
.tick { min-width: 72px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--pc); background: transparent; color: var(--pc); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; }
.tick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick.on { background: var(--pc); color: var(--card); }
.taskc.done .tk-t { color: var(--ink-2); }

/* message of the week, levers, motivation */
.msgc { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.msgc .who { display: flex; gap: 12px; align-items: center; }
.initials { width: 42px; height: 42px; border-radius: 50%; background: var(--pc-soft, var(--teal-soft)); color: var(--pc, var(--teal-text)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.msgc .txt { font-family: "Fraunces", Georgia, serif; font-size: 18px; line-height: 1.4; }
.msgc .new { margin-left: auto; }
.levers2 { display: flex; flex-direction: column; gap: 8px; }
.levers2 .lv { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.35; }
.levers2 .lv i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex-shrink: 0; transform: translateY(1px); }
.levers2 .lv b { color: var(--pc); font-weight: 700; min-width: 64px; }
.motiv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.motiv > div { background: var(--card); border-radius: 14px; padding: 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.motiv b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; } .motiv small { font-size: 12px; color: var(--ink-3); line-height: 1.25; }
.motiv svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.week { background: var(--gold-soft); color: var(--gold-text); } .badge.week.off { background: var(--chip); color: var(--ink-3); }

/* score summary on the home */
.minis { display: flex; align-items: center; gap: 14px; }
.minis .mn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; }
.minis .mn div { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border-top: 4px solid var(--pc); padding-top: 6px; }
.minis .mn b { font-size: 20px; font-variant-numeric: tabular-nums; } .minis .mn small { font-size: 12px; color: var(--ink-3); }

/* questionnaire list (Evaluare) */
.qlist { display: flex; flex-direction: column; gap: 8px; }
.qitem { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); min-height: 64px; }
.qitem .qi-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .qitem .qi-b b { font-size: 15px; } .qitem .qi-b small { color: var(--ink-3); font-size: 13px; }
.qitem .meter { height: 6px; margin-top: 4px; } .qitem .meter i { background: var(--pc, var(--teal)); }

/* one-question screens (questionnaires, check-in) */
.step-top { display: flex; flex-direction: column; gap: 8px; }
.step-top .st-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.segbar { display: grid; gap: 4px; } .segbar.n6 { grid-template-columns: repeat(6, 1fr); }
.segbar i { height: 6px; border-radius: 999px; background: var(--chip); display: block; } .segbar i.done { background: var(--teal); } .segbar i.now { background: var(--gold); }
[data-theme="dark"] .segbar i.done { background: var(--teal-text); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .segbar i.done { background: var(--teal-text); } }
.pbar { height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; } .pbar i { display: block; height: 100%; background: var(--pc, var(--teal)); border-radius: 999px; }
.q-sec { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pc, var(--teal-text)); }
.q-title { font-family: "Fraunces", Georgia, serif; font-size: 24px; line-height: 1.25; margin: 0; }
.q-text { font-size: 17px; line-height: 1.5; }
.why { background: var(--chip); border-radius: 12px; padding: 0 14px; font-size: 14.5px; line-height: 1.45; }
.why summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-text); list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.why[open] summary::before { content: "−"; } .why p { padding-bottom: 12px; color: var(--ink-2); }
.answers { display: flex; flex-direction: column; gap: 10px; }
.answers.row3 { display: grid; grid-template-columns: 1fr 1fr; } .answers.row3 .ans:last-child { grid-column: 1 / -1; }
.ans { min-height: 60px; width: 100%; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 10px 16px; text-align: left; }
.ans.center { justify-content: center; text-align: center; }
.ans .n { width: 34px; height: 34px; border-radius: 50%; background: var(--chip); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ans .w { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ans.desc { font-size: 15.5px; font-weight: 500; line-height: 1.35; align-items: flex-start; } .ans.desc .n { margin-top: -2px; }
.ans:hover { border-color: var(--teal); } .ans.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-text); } .ans.on .n { background: var(--teal); color: #fff; }
.ans:active { transform: scale(.99); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; }
.step-nav a, .step-nav .link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-text); }
.step-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toggles { display: flex; flex-direction: column; gap: 8px; }
.tgl { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--pc); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; }
.tgl .box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tgl:has(input:checked) { border-color: var(--pc); background: var(--pc-soft); } .tgl:has(input:checked) .box { background: var(--pc); color: var(--card); }
.tgl:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.tgl small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.mob { display: flex; flex-direction: column; gap: 8px; } .mob .val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.range.big { height: 44px; }

/* the check-in result */
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gauges > div { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card); border-radius: 14px; padding: 12px 6px 10px; box-shadow: var(--shadow); }
.gauge { display: block; width: 100%; max-width: 96px; height: auto; } .gauge .gt { fill: none; stroke: var(--ring-track); } .gauge .gv { fill: none; stroke: var(--pc); stroke-linecap: round; }
.gauges b { font-size: 24px; line-height: 1; margin-top: -14px; font-variant-numeric: tabular-nums; } .gauges small { font-size: 12.5px; color: var(--pc); font-weight: 700; }
.streak { display: flex; align-items: center; gap: 12px; background: var(--gold-soft); color: var(--gold-text); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.streak svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* charts (scores, report) */
.chartc { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); border-top: 5px solid var(--pc); }
.chartc .ch-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chartc .ch-h b { font-size: 18px; color: var(--pc); } .chartc .ch-h span { font-size: 13px; color: var(--ink-3); }
.chartc .ch-h .ch-v { font-size: 26px; color: var(--ink); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lc { display: block; width: 100%; height: auto; overflow: visible; }
.lc .grid { stroke: var(--line); stroke-width: 1; } .lc .gl { fill: var(--ink-3); font-size: 10px; font-family: "DM Sans", system-ui, sans-serif; }
.lc .wk { stroke: var(--line); stroke-dasharray: 2 3; }
.lc .base { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; } .lc .tgt { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 3; }
.lc .ln { fill: none; stroke: var(--pc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lc .dt { fill: var(--pc); } .lc .last { fill: var(--card); stroke: var(--pc); stroke-width: 2.5; }
.lc .lbl { font-size: 10px; font-weight: 700; font-family: "DM Sans", system-ui, sans-serif; } .lc .lbl.b { fill: var(--ink-3); } .lc .lbl.t { fill: var(--gold-text); }
.bc { display: block; width: 100%; max-width: 280px; height: auto; } .bc .bar { fill: var(--pc); opacity: .85; } .bc .bar.empty { fill: var(--chip); opacity: 1; }
.bc .bv { font-size: 12px; font-weight: 700; fill: var(--ink); text-anchor: middle; font-family: "DM Sans", system-ui, sans-serif; } .bc .bl { font-size: 11px; fill: var(--ink-3); text-anchor: middle; font-family: "DM Sans", system-ui, sans-serif; }
.bc .axis { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--pc); }
.legend i.b { border-top: 2px dashed var(--ink-3); } .legend i.t { border-top: 2px dotted var(--gold); }
.totalc { display: flex; align-items: center; gap: 16px; }
.totalc .tc-b { display: flex; flex-direction: column; gap: 3px; }

/* report: Înainte și acum */
.cmp { display: flex; flex-direction: column; gap: 8px; }
.cmp .cr { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.cmp .cr span { color: var(--ink-3); } .cmp .cr b { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.hb { height: 12px; border-radius: 999px; background: var(--chip); overflow: hidden; display: block; }
.hb i { display: block; height: 100%; border-radius: 999px; }
.hb.i i { background: var(--ink-3); opacity: .55; } .hb.n i { background: var(--pc); } .hb.t i { background: transparent; border: 2px dashed var(--gold); height: 12px; box-sizing: border-box; }
.rings2 { display: flex; justify-content: space-around; gap: 10px; text-align: center; }
.rings2 > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.helped { display: flex; gap: 14px; align-items: flex-start; }
.trend { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.trend th { font-size: 12px; color: var(--ink-3); font-weight: 600; text-align: center; padding: 4px; border-bottom: 1px solid var(--line); }
.trend td { text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); } .trend td:first-child, .trend th:first-child { text-align: left; }
.choices2 { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* intro: the illustrated story */
.story { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.storyc { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.storyc svg.ill { width: 88px; height: 88px; display: block; }
.storyc .sn { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); }
.storyc h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.25; } .storyc p { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ill .bg { fill: var(--teal-soft); } .ill .a { fill: var(--minte); } .ill .b { fill: var(--energie); } .ill .c { fill: var(--corp); }
.ill .s { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .ill .w { fill: var(--card); }
.teamc { display: grid; grid-template-columns: 1fr; gap: 8px; }
.teamc .tm { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.teamc .tm b { display: block; font-size: 15.5px; } .teamc .tm small { color: var(--ink-3); font-size: 13px; line-height: 1.3; display: block; }
.teamc .tm .pc-l { color: var(--pc); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-size: 14.5px; line-height: 1.45; }
.consent input { width: 26px; height: 26px; margin: 0; flex-shrink: 0; accent-color: var(--teal); }
.consent:has(input:checked) { border-color: var(--teal); }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 14px; }
.ft-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--chip); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ft-note svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ft-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ft-links a { display: flex; gap: 10px; align-items: center; min-height: 56px; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; line-height: 1.25; }
.ft-links a small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.ft-links a svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
@media (min-width: 720px) {
  .teamc { grid-template-columns: repeat(3, 1fr); }
  .story { display: grid; grid-template-columns: 1fr 1fr; }
  .choices2 { grid-template-columns: 1fr 1fr; }
  .ft-links { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { .ans, .tick, .tgl { transition: background .12s, border-color .12s, transform .08s; } }
.hbs { display: block; width: 100%; height: 12px; } .hbs .tr { fill: var(--chip); }
.hbs.i .v { fill: var(--ink-3); opacity: .6; } .hbs.n .v { fill: var(--pc); } .hbs.t .v { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 3; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { padding: 0; }
.card.rings2 { flex-direction: row; } .rings2 b { color: var(--ink); font-size: 14px; }
.card.minis { flex-direction: row; }
/* v0.7: the big green button in dark mode reads dark on green (white on #6cac1c is 2.8:1, dark is 6.5:1) */
[data-theme="dark"] .btn.primary.big, [data-theme="dark"] .hero-card.calm .hc-go { color: #0f1716; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .btn.primary.big, [data-theme="auto"] .hero-card.calm .hc-go { color: #0f1716; } }
.card.totalc { flex-direction: row; }
.card.helped { flex-direction: row; }
