:root {
    --ink: #183434;
    --ink-deep: #102a2a;
    --ink-soft: #496262;
    --mist: #f2f5f2;
    --paper: #fbfcfa;
    --white: #ffffff;
    --line: #dce5df;
    --coral: #ee765c;
    --coral-soft: #fff0eb;
    --blue: #5d7f91;
    --blue-soft: #eaf1f3;
    --gold: #e9aa49;
    --gold-soft: #fff5df;
    --green: #477d6b;
    --shadow: 0 18px 55px rgba(24, 52, 52, .08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-body: "Segoe UI", Arial, sans-serif;
    --font-heading: "Segoe UI", Arial, sans-serif;
}

/* Intendance des quatre ressources */
.info-button{font-weight:900;color:var(--gold, #b78742)}
.resource-page-header{align-items:flex-end}
.resource-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.resource-period-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.resource-period-bar label{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:.74rem;font-weight:800;color:var(--ink-soft)}
.resource-period-bar input{width:auto;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
.resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.resource-card{position:relative;overflow:hidden;min-height:250px;padding:21px;border:1px solid var(--line);border-radius:24px;background:var(--white);box-shadow:var(--shadow);display:flex;flex-direction:column}
.resource-card::after{content:"";position:absolute;width:110px;height:110px;border-radius:999px;right:-42px;top:-42px;background:var(--resource-tint)}
.resource-time{--resource-accent:#477f78;--resource-tint:rgba(71,127,120,.13)}
.resource-money{--resource-accent:#b78742;--resource-tint:rgba(183,135,66,.14)}
.resource-energy{--resource-accent:#c36d58;--resource-tint:rgba(195,109,88,.13)}
.resource-environment{--resource-accent:#6d7194;--resource-tint:rgba(109,113,148,.13)}
.resource-card-head{display:flex;align-items:center;gap:11px;position:relative;z-index:1}
.resource-card-head>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--resource-tint);color:var(--resource-accent);font-size:1.18rem;font-weight:900}
.resource-card-head .eyebrow{margin:0 0 2px}.resource-card-head h2{font-size:1rem;margin:0}
.resource-stat{margin:25px 0 13px;display:flex;flex-direction:column;gap:3px}.resource-stat strong{font-family:var(--font-heading);font-size:1.65rem;color:var(--resource-accent)}.resource-stat small{color:var(--ink-soft)}
.resource-card>p{margin:0 0 18px;color:var(--ink-soft);font-size:.84rem;line-height:1.6;flex:1}.resource-card .text-button{align-self:flex-start}
.resource-card-action{display:inline-flex;align-items:center;min-height:42px;padding:8px 0;text-decoration:none}
.resource-pulse{margin:26px 0 32px}.resource-pulse>header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:12px}.resource-pulse h2{margin:2px 0 0;font-size:1.18rem}.resource-pulse>header .text-button{flex:0 0 auto}.resource-pulse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.resource-pulse-item{--resource-accent:var(--green);--resource-tint:rgba(71,125,107,.1);min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);padding:14px;text-align:left;text-decoration:none;cursor:pointer}.resource-pulse-item>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--resource-tint);color:var(--resource-accent);font-weight:900}.resource-pulse-item small{color:var(--ink-soft);font-size:.68rem;font-weight:750}.resource-pulse-item strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.resource-pulse-item.resource-money{--resource-accent:#b78742;--resource-tint:rgba(183,135,66,.12)}.resource-pulse-item.resource-energy{--resource-accent:#c36d58;--resource-tint:rgba(195,109,88,.11)}.resource-pulse-item.resource-environment{--resource-accent:#6d7194;--resource-tint:rgba(109,113,148,.11)}
.resource-grid{transition:opacity .18s ease}
.resource-grid[aria-busy="true"]{opacity:.56;pointer-events:none}
.resource-lower-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px;content-visibility:auto;contain-intrinsic-size:600px}
@media (hover:hover) and (pointer:fine){.resource-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.resource-card:hover{transform:translateY(-3px);box-shadow:0 22px 55px rgba(16,42,42,.12);border-color:rgba(71,125,107,.28)}}
.resource-action-list{display:grid;gap:8px;margin-top:14px}
.resource-action-row{width:100%;display:grid;grid-template-columns:90px 1fr auto;gap:13px;align-items:center;text-align:left;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);cursor:pointer}
.resource-action-row:hover,.resource-action-row:focus-visible{border-color:var(--blue);transform:translateY(-1px)}
.resource-action-row>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:4px}.resource-action-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-action-row small,.resource-action-date{color:var(--ink-soft);font-size:.73rem}.resource-action-row i{font-size:1.3rem;color:var(--ink-soft)}
.resource-empty{padding:28px 16px;text-align:center;border:1px dashed var(--line);border-radius:17px;color:var(--ink-soft)}.resource-empty>span{font-size:1.5rem;color:var(--gold)}.resource-empty p{max-width:470px;margin:8px auto 14px;line-height:1.55}
.resource-review{display:flex;flex-direction:column}.resource-review h3{margin-top:4px}.resource-review label{display:grid;gap:6px;margin-top:12px;font-size:.78rem;font-weight:800}.resource-review textarea{resize:vertical;min-height:68px}
.resource-entry-dialog{width:min(760px,calc(100vw - 24px))}.resource-form-section details{margin:18px 0 4px;padding:12px;border:1px solid var(--line);border-radius:14px}.resource-form-section summary{cursor:pointer;font-weight:850;color:var(--blue)}.resource-form-section details .form-grid{margin-top:14px}.health-disclaimer{padding:10px 12px;border-radius:12px;background:rgba(183,135,66,.1);color:var(--ink-soft);font-size:.75rem;line-height:1.5}
.four-resources-article section{scroll-margin-top:20px}
.four-resources-article section+section{padding-top:28px;margin-top:28px;border-top:1px solid var(--line)}
.four-resources-dialog-fallback{display:none}
.four-resources-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:0;flex:1}
#fourResourcesDialog{width:min(1120px,calc(100vw - 24px));max-width:none;height:min(88vh,900px);padding:0;border:0;border-radius:26px;background:var(--white);color:var(--ink);box-shadow:0 30px 100px rgba(0,0,0,.35)}
#fourResourcesDialog[open]{display:flex;flex-direction:column}
#fourResourcesDialog::backdrop{background:rgba(10,24,25,.72);backdrop-filter:blur(5px)}
.four-resources-dialog .four-resources-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.four-resources-article{overflow:auto;padding:30px 42px 60px;scroll-behavior:smooth}
.founding-visual{margin:0 0 30px;padding:12px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.founding-visual img{display:block;width:100%;height:auto;border-radius:14px}
.founding-visual figcaption{padding:10px 8px 2px;text-align:center;color:var(--ink-soft);font-size:.78rem;line-height:1.5}
.four-resources-layout>nav{overflow:auto;padding:24px 18px;border-right:1px solid var(--line);background:var(--paper)}
.four-resources-layout>nav strong{display:block;margin:0 9px 12px;font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:var(--ink-soft)}
.four-resources-layout>nav a{display:block;padding:8px 9px;border-radius:9px;color:var(--ink-soft);font-size:.75rem;line-height:1.35;text-decoration:none}.four-resources-layout>nav a:hover,.four-resources-layout>nav a:focus{background:var(--white);color:var(--ink)}
#fourResourcesDialog .four-resources-shell>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 26px;border-bottom:1px solid var(--line)}
#fourResourcesDialog .four-resources-shell>header h2{margin:2px 0 5px;font-size:1.35rem}#fourResourcesDialog .four-resources-shell>header p:last-child{margin:0;color:var(--ink-soft);font-size:.83rem}
.four-resources-article h3{font-family:var(--font-heading);font-size:1.4rem;margin:0 0 15px}.four-resources-article p{font-size:.94rem;line-height:1.85;color:var(--ink-soft);margin:0 0 13px}
.four-resources-article blockquote,.founding-example{margin:18px 0 0;padding:16px 18px;border-radius:15px;background:rgba(71,127,120,.1);border-left:3px solid var(--green);font-size:.86rem;line-height:1.6}.four-resources-article blockquote strong,.founding-example strong{display:block;margin-bottom:4px;color:var(--green)}.founding-example{background:rgba(183,135,66,.1);border-color:var(--gold)}.founding-example strong{color:var(--gold)}.founding-example p{margin:0;font-size:.86rem}

@media (max-width:1100px){.resource-grid,.resource-pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.resource-page-header{align-items:flex-start}.resource-header-actions{justify-content:flex-start}.resource-grid,.resource-lower-grid{grid-template-columns:1fr}.resource-card{min-height:220px}.resource-period-bar label{width:100%;margin-left:0;justify-content:space-between}.four-resources-layout{grid-template-columns:1fr}.four-resources-layout>nav{display:flex;gap:5px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px}.four-resources-layout>nav strong{display:none}.four-resources-layout>nav a{flex:0 0 170px}.four-resources-article{padding:24px 20px 50px}#fourResourcesDialog .four-resources-shell>header{padding:18px}#fourResourcesDialog .four-resources-shell>header h2{font-size:1.05rem}.resource-action-row{grid-template-columns:1fr auto}.resource-action-date{grid-column:1/-1}.mobile-bottom-nav{overflow-x:auto;justify-content:flex-start}.mobile-bottom-nav>button{min-width:62px;flex:1 0 62px}}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; text-rendering: optimizeLegibility; animation: page-enter .45s cubic-bezier(.22, 1, .36, 1) both; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(238,118,92,.25); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 268px; display: flex; flex-direction: column; padding: 28px 18px 18px; overflow-y: auto; background: var(--ink-deep); color: #e7efeb; transition: transform .38s cubic-bezier(.22, 1, .36, 1); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; padding: 0 10px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; display: inline-block; overflow: hidden; border: 2px solid rgba(255,255,255,.96); border-radius: 15px; background: #f7faf7 url("icons/life-manager-wellbeing-192.png") center/108% 108% no-repeat; box-shadow: 0 0 0 3px rgba(30,211,224,.13), 0 8px 22px rgba(5,25,24,.24); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.08); }
.brand-mark i { display: none; }
.brand > span:not(.brand-mark) { display: block; }
.brand strong, .brand small { display: block; line-height: 1; letter-spacing: .16em; }
.brand strong { font: 800 17px/1 var(--font-heading); }
.brand small { margin-top: 5px; color: #91aaa5; font-size: 8px; font-weight: 700; }
.brand-wordmark { position: relative; display: inline-grid !important; grid-template-columns: auto auto; align-items: baseline; column-gap: .28em; row-gap: 5px; padding: 3px 0 9px; font-family: var(--font-heading); font-size: 21px; line-height: 1; letter-spacing: -.045em; }
.brand-wordmark::after { content: ""; position: absolute; bottom: 0; left: 0; width: 42px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--gold)); }
.brand-wordmark__life { color: currentColor; font-weight: 550; }
.brand-wordmark__manager { color: #b57928; font-weight: 850; }
.brand-wordmark small { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 8px; font-weight: 800; line-height: 1; letter-spacing: .16em; text-transform: uppercase; }
.sidebar .brand-wordmark__manager { color: #f2bb67; }
.sidebar .brand-wordmark small { color: #91aaa5; }
.sidebar-brand { margin-bottom: 24px; }

.sidebar-context { margin: 25px 7px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); padding: 11px 13px; }
.sidebar-context span, .sidebar-context strong { display: block; }
.sidebar-context span { color: #6f8984; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-context strong { margin-top: 3px; color: #dbe7e3; font-size: 12px; font-weight: 600; }
.main-nav { margin-top: 0; }
.nav-label { margin: 0 10px 12px; color: #6f8984; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 22px; }
.nav-item { position: relative; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 13px; background: transparent; color: #9eb1ae; padding: 7px 10px; margin: 2px 0; cursor: pointer; text-align: left; text-decoration: none; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.09); }
.nav-item-focus { border: 1px solid rgba(238,118,92,.13); background: linear-gradient(90deg, rgba(238,118,92,.1), rgba(255,255,255,.025)); }
.nav-item-focus .nav-icon { color: #ff987f; }
.nav-icon { flex: 0 0 25px; display: grid; place-items: center; width: 25px; font-size: 18px; }
.nav-copy { min-width: 0; flex: 1; }
.nav-copy strong, .nav-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-copy strong { color: inherit; font-size: 13px; font-weight: 650; }
.nav-copy small { margin-top: 1px; color: #6f8984; font-size: 9.5px; font-weight: 500; }
.nav-item:hover .nav-copy small, .nav-item.is-active .nav-copy small { color: #91aaa5; }
.nav-count { flex: 0 0 auto; border-radius: 999px; background: rgba(255,255,255,.08); color: #dce8e4; padding: 4px 7px; font-size: 9px; font-weight: 800; }
.active-pip { position: absolute; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(238,118,92,.13); }
.sidebar-bottom { margin-top: 24px; }
.quiet-link { width: 100%; display: flex; gap: 10px; border: 0; background: none; color: #9eb1ae; padding: 12px; cursor: pointer; }
.quiet-link:hover { color: #fff; }
.pwa-install-button { align-items: center; border-radius: 11px; background: rgba(238,118,92,.1); color: #ffd0c4; font-weight: 750; }
.pwa-install-button:hover { background: rgba(238,118,92,.18); color: #fff; }
.pwa-install-button[hidden] { display: none; }
.pwa-install-button[data-install-state="pending"] > span:first-child { animation: install-pulse 1.1s ease-in-out infinite; }
.pwa-install-button[data-install-state="ready"] { background: rgba(121,184,155,.15); color: #bce6d2; }
.pwa-install-button[data-install-state="error"] { background: rgba(238,118,92,.12); color: #ffc2b3; }
.pwa-install-button[data-install-state="pending"], .mobile-install-button[data-install-state="pending"] { cursor: pointer; opacity: .78; }
.pwa-install-button[data-install-state="error"]:disabled, .mobile-install-button[data-install-state="error"]:disabled { cursor: not-allowed; opacity: .62; }
@keyframes install-pulse { 50% { opacity: .4; transform: translateY(2px); } }
.mobile-topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-install-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(238,118,92,.28); border-radius: 11px; background: rgba(238,118,92,.1); color: var(--coral); font-size: 20px; font-weight: 850; cursor: pointer; }
.mobile-install-button[hidden] { display: none; }
.profile { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.1); color: inherit; text-decoration: none; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; font: 700 14px var(--font-heading); }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 14px; }
.profile small { color: #78908c; font-size: 11px; }
.profile-more { color: #78908c; letter-spacing: 2px; }

.main-content { margin-left: 268px; min-height: 100vh; padding: 44px clamp(28px, 5vw, 78px) 72px; transition: margin-left .38s cubic-bezier(.22, 1, .36, 1); }
.view { display: none; width: min(1180px, 100%); margin: 0 auto; }
.view.is-visible { display: block; }
.view.is-visible > * { animation: content-rise .48s cubic-bezier(.22, 1, .36, 1) both; }
.view.is-visible > *:nth-child(2) { animation-delay: .04s; }
.view.is-visible > *:nth-child(3) { animation-delay: .08s; }
.view.is-visible > *:nth-child(4) { animation-delay: .12s; }
.view.is-visible > *:nth-child(5) { animation-delay: .16s; }
@keyframes page-enter { from { opacity: 0; } }
@keyframes content-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes soft-pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 4px 0 4px; font: 700 clamp(29px, 3vw, 40px)/1.15 var(--font-heading); letter-spacing: -.04em; }
.page-header h1 span { color: var(--coral); }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.date-line { margin: 3px 0 0; color: #728685; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 19px; }
.theme-toggle-icon { display: inline-grid; place-items: center; min-width: 18px; }
.primary-button, .secondary-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { border: 1px solid var(--ink-deep); background: var(--ink-deep); color: white; box-shadow: 0 8px 18px rgba(16,42,42,.12); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(16,42,42,.17); }
.primary-button.compact { min-height: 43px; font-size: 14px; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.secondary-button:hover { background: var(--mist); }
.wide { width: 100%; }

.now-question { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 0 0 22px; }
.now-question span { height: 1px; background: var(--line); }
.now-question p { margin: 0; color: #78908c; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ritual-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: -12px 0 26px; border: 1px solid #d8e3de; border-radius: 20px; background: linear-gradient(120deg, #fff 0%, #f3f7f4 100%); padding: 18px 20px; box-shadow: 0 12px 35px rgba(24,52,52,.055); }
.ritual-card::after { content: ""; position: absolute; right: -48px; top: -70px; width: 150px; height: 150px; border: 1px solid rgba(93,127,145,.12); border-radius: 50%; pointer-events: none; }
.ritual-card.is-due { border-color: #efc277; background: linear-gradient(120deg, #fffaf0, #fff4dd); }
.ritual-card.is-complete { border-color: #c9dfd4; background: linear-gradient(120deg, #f7fbf8, #eaf4ef); }
.ritual-card.is-morning-missed:not(.is-due) { border-color: #ead7b2; }
.ritual-card-symbol { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--ink-deep); color: #fff; font-size: 23px; box-shadow: 0 8px 20px rgba(16,42,42,.15); }
.ritual-card.is-due .ritual-card-symbol { background: var(--gold); }
.ritual-card.is-complete .ritual-card-symbol { background: var(--green); }
.ritual-card-copy { position: relative; z-index: 1; min-width: 0; }
.ritual-card-copy h2 { margin: 3px 0 3px; font: 700 20px var(--font-heading); letter-spacing: -.025em; }
.ritual-card-copy > p:last-of-type { margin: 0; color: #718481; font-size: 12px; }
.ritual-card-action { position: relative; z-index: 1; display: grid; justify-items: end; gap: 8px; }
.ritual-streak { color: #7d8f8a; font-size: 10px; font-weight: 800; }
.ritual-nav-count.is-done { background: rgba(94,157,126,.2); color: #bde0ce; }
.current-card { position: relative; overflow: hidden; min-height: 290px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; border-radius: 26px; background: var(--ink-deep); color: #fff; box-shadow: var(--shadow); }
.current-card::before, .current-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.current-card::before { width: 440px; height: 440px; right: -230px; top: -210px; }
.current-card::after { width: 300px; height: 300px; right: -150px; top: -145px; }
.current-copy { position: relative; z-index: 1; padding: clamp(34px, 5vw, 60px); }
.session-topline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sphere-badge, .live-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sphere-badge { background: rgba(255,255,255,.09); color: #d9e4e1; }
.sphere-badge i, .live-badge i { width: 6px; height: 6px; border-radius: 50%; }
.sphere-badge i { background: var(--coral); }
.live-badge { color: #a7bdb8; }
.live-badge i { background: #71bd96; box-shadow: 0 0 0 4px rgba(113,189,150,.12); animation: pulse 1.9s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(113,189,150,0); } }
.role-line { margin: 37px 0 7px; color: #89a19d; font-size: 13px; }
.current-card h2 { max-width: 660px; margin: 0; font: 700 clamp(25px, 3.2vw, 42px)/1.15 var(--font-heading); letter-spacing: -.04em; }
.fruit-block { display: flex; gap: 12px; align-items: flex-start; margin-top: 35px; }
.fruit-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(238,118,92,.13); color: var(--coral); }
.fruit-block small, .fruit-block strong { display: block; }
.fruit-block small { color: #829b97; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fruit-block strong { margin-top: 4px; color: #dbe7e3; font-size: 14px; font-weight: 500; }
.time-panel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid rgba(255,255,255,.1); padding: 30px; }
.timer-ring { --progress: 65%; position: relative; width: 156px; height: 156px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) var(--progress), rgba(255,255,255,.09) 0); }
.timer-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-deep); }
.timer-ring div { position: relative; z-index: 1; text-align: center; }
.timer-ring strong, .timer-ring small { display: block; }
.timer-ring strong { font: 700 29px var(--font-heading); letter-spacing: -.05em; }
.timer-ring small { color: #89a19d; font-size: 11px; }
.time-panel > p { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: #8fa5a1; font-size: 12px; }
.time-panel > p i { width: 24px; height: 1px; background: #516865; }
.action-row { display: flex; justify-content: flex-end; gap: 10px; margin: -23px 34px 0 0; position: relative; z-index: 2; }
.action-row button { min-width: 125px; }
.finish-button { background: var(--coral); border-color: var(--coral); box-shadow: 0 8px 18px rgba(238,118,92,.24); }
.finish-button:hover { box-shadow: 0 12px 26px rgba(238,118,92,.3); }

.focus-overview { margin-top: 38px; overflow: hidden; border: 1px solid #d9e4de; border-radius: 22px; background: linear-gradient(135deg, #fff 0%, #f7faf7 62%, #fff3ed 150%); box-shadow: 0 12px 36px rgba(24,52,52,.045); }
.focus-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e8eeea; padding: 19px 23px; }
.focus-heading { display: flex; align-items: center; gap: 13px; }
.focus-heading h2 { margin: 2px 0 0; font: 700 21px var(--font-heading); letter-spacing: -.025em; }
.focus-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--coral-soft); color: var(--coral); font-size: 21px; }
.focus-open-link { min-height: 38px; padding-inline: 14px; font-size: 12px; text-decoration: none; }
.focus-overview-body { display: grid; grid-template-columns: 128px minmax(180px, .72fr) minmax(310px, 1.28fr); gap: 23px; align-items: center; padding: 22px 23px 24px; }
.focus-score { --focus-progress: 0%; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) var(--focus-progress), #e7ede9 0); }
.focus-score::before { content: ""; grid-area: 1/1; width: 88px; height: 88px; border-radius: 50%; background: #fff; }
.focus-score > div { z-index: 1; grid-area: 1/1; text-align: center; }
.focus-score strong, .focus-score small { display: block; }
.focus-score strong { font: 750 23px var(--font-heading); letter-spacing: -.04em; }
.focus-score small { color: #83938f; font-size: 9px; }
.focus-intention { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #e4ebe7; padding-right: 22px; }
.focus-intention small { color: #93a19e; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.focus-intention p { margin: 8px 0 0; color: #405957; font-size: 13px; line-height: 1.65; white-space: pre-line; }
.focus-task-list { display: grid; gap: 6px; }
.focus-task { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 41px; border-radius: 10px; padding: 6px 8px; cursor: pointer; transition: background .2s ease; }
.focus-task:hover { background: #f0f5f1; }
.focus-task input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.focus-task-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid #bdcbc5; border-radius: 6px; color: transparent; font-size: 10px; }
.focus-task input:checked + .focus-task-check { border-color: var(--green); background: var(--green); color: #fff; }
.focus-task-copy { min-width: 0; }
.focus-task-copy strong, .focus-task-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-task-copy strong { font-size: 12px; font-weight: 650; }
.focus-task-copy small { margin-top: 2px; color: #91a09c; font-size: 9px; }
.focus-task.is-done .focus-task-copy strong { color: #92a09d; text-decoration: line-through; }
.focus-empty-link { display: flex; align-items: center; justify-content: space-between; border: 1px dashed #cbd8d1; border-radius: 12px; color: var(--blue); padding: 14px; font-size: 12px; font-weight: 700; text-decoration: none; }
.focus-empty-copy { margin: 0; color: #83938f; font-size: 12px; }
.focus-overview.is-empty .focus-score { background: conic-gradient(#dce5df 0 360deg); }


.dashboard-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; margin-top: 42px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); padding: 24px; box-shadow: 0 10px 35px rgba(24,52,52,.04); }
.panel-heading { display: flex; align-items: center; gap: 14px; }
.panel-heading h3, .review-form h3 { margin: 3px 0 0; font: 700 20px var(--font-heading); letter-spacing: -.02em; }
.panel-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; }
.panel-icon.coral { background: var(--coral-soft); color: var(--coral); }
.panel-icon.blue { background: var(--blue-soft); color: var(--blue); }
.resume-panel blockquote { position: relative; margin: 25px 0 19px; padding: 18px 20px 18px 23px; border-left: 3px solid var(--coral); background: linear-gradient(90deg, var(--coral-soft), transparent); color: #49605e; font-size: 15px; font-style: italic; line-height: 1.65; }
.text-button { border: 0; background: none; color: var(--blue); padding: 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.text-button span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; background: var(--blue-soft); }
.priority-heading { justify-content: space-between; }
.count-badge { border-radius: 999px; background: var(--mist); padding: 6px 10px; color: #6f8381; font-size: 11px; font-weight: 700; }
.priority-list { margin-top: 18px; }
.priority-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1ee; }
.priority-item:last-child { border-bottom: 0; }
.priority-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.priority-check { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; border: 1.5px solid #c7d2cd; border-radius: 6px; color: transparent; cursor: pointer; }
.priority-item input:checked + .priority-check { background: var(--green); border-color: var(--green); color: white; }
.priority-item input:checked ~ span:last-child { color: #94a19e; text-decoration: line-through; }
.priority-item span:last-child { font-size: 14px; }
.posture-section { margin-top: 50px; }
.section-title-row { display: flex; align-items: center; gap: 20px; }
.section-title-row span { flex: 1; height: 1px; background: var(--line); }
.posture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 17px; }
.posture-card { position: relative; min-height: 150px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: rgba(255,255,255,.55); }
.posture-number { position: absolute; top: 12px; right: 15px; color: #e2e8e4; font: 800 24px var(--font-heading); }
.posture-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.posture-card:nth-child(2) .posture-symbol { background: var(--coral-soft); color: var(--coral); }
.posture-card:nth-child(3) .posture-symbol { background: var(--gold-soft); color: var(--gold); }
.posture-card h3 { margin: 1px 0 7px; font: 700 16px var(--font-heading); }
.posture-card p { margin: 0; color: #718481; font-size: 13px; line-height: 1.6; }

.inner-header { margin-bottom: 30px; }
.sphere-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sphere-card { min-width: 0; min-height: 310px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 2vw, 27px); background: #fff; transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, border-color .32s ease; }
.sphere-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sphere-card-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.sphere-card.coral .sphere-card-icon { background: var(--coral-soft); color: var(--coral); }
.sphere-card.gold .sphere-card-icon { background: var(--gold-soft); color: var(--gold); }
.sphere-card h2 { min-width: 0; margin: 25px 0 4px; font: 700 20px var(--font-heading); overflow-wrap: anywhere; }
.sphere-card > p { margin: 0; color: #7b8d89; font-size: 13px; }
.sphere-meta { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
.sphere-meta span { min-width: 0; padding: 11px 7px; border-radius: 10px; background: var(--mist); text-align: center; }
.sphere-meta strong, .sphere-meta small { display: block; }
.sphere-meta strong { font-size: 16px; }
.sphere-meta small { color: #82928f; font-size: 10px; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.sphere-meta .focus-sphere-stat { background: var(--coral-soft); }
.sphere-meta .focus-sphere-stat strong { color: #a95644; }
.sphere-next { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf1ee; }
.sphere-next small, .sphere-next strong { display: block; }
.sphere-next small { color: #98a6a3; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sphere-next strong { min-width: 0; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.role-chip { max-width: 100%; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: var(--mist); color: #607571; padding: 6px 9px; font-size: 11px; overflow-wrap: anywhere; }
.role-chip.is-custom { cursor: pointer; }
.role-chip.is-custom:hover { background: var(--coral-soft); color: #9a4d3e; }
.role-chip.is-custom span { color: #9aaaa6; font-size: 12px; }
.sphere-card-action { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); padding: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.sphere-card-action:hover { background: var(--blue-soft); }
.attention-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 24px; border: 1px solid #efdfbe; border-radius: 18px; padding: 22px; background: #fffaf0; }
.attention-card > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 25px; }
.attention-card h3 { margin: 3px 0 3px; font-size: 15px; }
.attention-card.is-balanced { border-color: #cfe0d7; background: #f5faf7; }
.attention-card.is-balanced > span { background: #e5f2eb; color: var(--green); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 14px; color: #728481; font-size: 13px; font-weight: 600; cursor: pointer; }
.filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.responsibility-list { display: grid; gap: 10px; }
.responsibility-row { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 19px 22px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.responsibility-row:hover { transform: translateY(-1px); border-color: #cbd8d1; box-shadow: 0 12px 30px rgba(24,52,52,.05); }
.status-line { width: 4px; height: 42px; border-radius: 99px; background: var(--green); }
.responsibility-row[data-status="attention"] .status-line { background: var(--coral); }
.responsibility-row h3 { margin: 2px 0; font-size: 15px; }
.responsibility-row p { margin: 0; color: #81918e; font-size: 12px; }
.responsibility-row .resume-mini { max-width: 310px; padding-left: 20px; border-left: 1px solid var(--line); color: #677b77; font-size: 13px; }
.responsibility-row .resume-mini small { display: block; color: #9aa7a4; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.row-action { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #728582; cursor: pointer; transition: .2s; }
.row-action:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.row-actions { display: flex; gap: 7px; }
.row-actions .row-action { text-decoration: none; }
.focus-row-action { color: var(--coral); }
.focus-row-action:hover { border-color: #f1c0b4; background: var(--coral-soft); color: #b55f4c; }

.review-status { border-radius: 999px; background: var(--gold-soft); color: #98722f; padding: 8px 13px; font-size: 12px; font-weight: 700; }
.review-status.is-closed { background: #eaf4ef; color: var(--green); }
.ritual-control-card { display: grid; grid-template-columns: minmax(0, 1fr) auto 155px auto; align-items: center; gap: 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; }
.ritual-control-card h2 { margin: 2px 0; font: 700 19px var(--font-heading); }
.ritual-control-card > div:first-child > p:last-child { margin: 0; color: #7d8e8a; font-size: 11px; }
.ritual-control-card label { display: grid; gap: 5px; color: #667b76; font-size: 10px; font-weight: 800; }
.ritual-control-card input { min-height: 42px; background: #f8faf8; }
.ritual-control-streak { display: grid; min-width: 92px; justify-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 20px; }
.ritual-control-streak strong { color: var(--coral); font: 750 28px var(--font-heading); }
.ritual-control-streak span { color: #899993; font-size: 9px; text-align: center; }
#enableReviewNotification.is-enabled { border-color: #c6ddd2; background: #eff7f2; color: var(--green); }
.review-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.review-stats article { display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 13px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.review-stats article > span { grid-row: 1/3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.review-stats strong { font: 700 22px var(--font-heading); }
.review-stats small { color: #859490; }
.focus-review-card { margin-bottom: 20px; }
.focus-review-card .panel-heading { align-items: center; }
.focus-review-link { margin-left: auto; text-decoration: none; }
.focus-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.focus-review-item { min-height: 92px; border-radius: 13px; background: #f5f8f5; padding: 14px 16px; }
.focus-review-item small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.focus-review-item p { margin: 7px 0 0; color: #4d6461; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.focus-review-item.is-empty p { color: #94a19e; font-style: italic; }
.focus-journal-history { display: grid; gap: 10px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.focus-journal-history h4 { margin: 0 0 2px; font-size: 13px; }
.focus-journal-entry { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 13px 15px; }
.focus-journal-entry > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focus-journal-entry > header strong { font-size: 12px; text-transform: capitalize; }
.focus-journal-entry > header span { border-radius: 999px; background: var(--blue-soft); color: var(--blue); padding: 4px 7px; font-size: 9px; font-weight: 800; }
.focus-journal-entry > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.focus-journal-entry p { margin: 0; color: #4d6461; font-size: 11px; line-height: 1.5; white-space: pre-line; }
.focus-journal-entry p small { display: block; margin-bottom: 3px; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.evening-plan-card { margin-bottom: 20px; }
.evening-plan-heading { align-items: center; }
.plan-status { margin-left: auto; border-radius: 999px; background: var(--gold-soft); color: #8d6829; padding: 7px 11px; font-size: 10px; font-weight: 800; }
.plan-status.is-ready { background: #e7f3ec; color: var(--green); }
.evening-plan-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; border-radius: 16px; background: #f5f8f6; padding: 16px; }
.evening-plan-form label { display: grid; gap: 6px; color: #536a66; font-size: 11px; font-weight: 750; }
.evening-plan-form input, .evening-plan-form select { min-width: 0; background: #fff; }
.evening-plan-form .plan-title-field { grid-column: span 2; }
.evening-plan-form > button { min-height: 44px; }
.evening-plan-list { display: grid; gap: 8px; margin-top: 16px; }
.evening-plan-empty { border: 1px dashed #ccd9d3; border-radius: 13px; color: #84948f; padding: 18px; font-size: 12px; text-align: center; }
.evening-plan-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 12px 14px; }
.evening-plan-item > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 850; }
.evening-plan-item strong, .evening-plan-item small { display: block; }
.evening-plan-item strong { font-size: 13px; }
.evening-plan-item small { margin-top: 2px; color: #849590; font-size: 10px; }
.plan-item-status { border-radius: 999px; background: var(--mist); color: #6d817d; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.plan-item-status.is-executed { background: #e7f3ec; color: var(--green); }
.plan-remove { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #9a6258; cursor: pointer; }
.evening-plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.evening-plan-actions p { margin: 0; color: #718481; font-size: 12px; }
.evening-plan-actions button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.timeline { margin-top: 25px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 15px; padding-bottom: 24px; }
.timeline-item::before { content: ""; position: absolute; left: 25px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-time { padding-top: 3px; color: #84938f; font-size: 11px; }
.timeline-item h4 { margin: 0; font-size: 14px; }
.timeline-item p { margin: 3px 0 0; color: #7d8e8a; font-size: 12px; }
.empty-state { padding: 35px 0; color: #80918d; text-align: center; }
.review-form label, .auth-form label { display: grid; gap: 7px; margin-top: 18px; color: #4f6763; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cfdad5; border-radius: 11px; background: #fbfcfa; color: var(--ink); padding: 11px 12px; transition: .2s; }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); background: #fff; outline: 3px solid rgba(93,127,145,.1); }
.review-form button { margin-top: 22px; }

.app-dialog { width: min(680px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow-y: auto; border: 0; border-radius: 24px; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(12,34,34,.26); }
.app-dialog::backdrop { background: rgba(10,30,30,.58); backdrop-filter: blur(5px); }
.app-dialog[open] { animation: soft-pop .34s cubic-bezier(.22, 1, .36, 1) both; }
.app-dialog[open]::backdrop { animation: backdrop-in .28s ease both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.app-dialog form { position: relative; padding: clamp(25px, 5vw, 42px); }
.app-dialog h2 { margin: 5px 0 5px; font: 700 28px var(--font-heading); letter-spacing: -.03em; }
.dialog-intro { margin: 0 0 25px; color: #768885; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mist); color: #6a7e7a; cursor: pointer; font-size: 24px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label, .form-grid fieldset { display: grid; gap: 7px; margin: 0; border: 0; padding: 0; color: #506763; font-size: 12px; font-weight: 700; }
.form-grid .full { grid-column: 1/-1; }
.form-grid fieldset { grid-template-columns: repeat(3, 1fr); }
.form-grid legend { grid-column: 1/-1; margin-bottom: 7px; }
.offering-note { display: flex; gap: 13px; margin: 22px 0; border-radius: 13px; background: var(--gold-soft); padding: 15px; }
.offering-note > span { color: var(--gold); }
.offering-note p { margin: 0; color: #7c6946; font-size: 12px; }
.offering-note strong { display: block; margin-bottom: 2px; color: #6b5939; }
.transition-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 17px 0; }
.transition-step > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.transition-step label { color: #4f6662; font-size: 13px; font-weight: 700; }
.transition-step textarea, .transition-step select { margin-top: 7px; }
.small-dialog { width: min(480px, calc(100vw - 30px)); }
.small-dialog textarea { margin: 20px 0; }
.onboarding-dialog { width: min(820px, calc(100vw - 30px)); }
.onboarding-dialog form { padding: clamp(28px, 5vw, 48px); }
.onboarding-dialog h2 { max-width: 620px; font-size: clamp(27px, 4vw, 40px); }
.onboarding-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; }
.onboarding-tools article { border: 1px solid var(--line); border-radius: 16px; background: #f8faf8; padding: 18px; }
.onboarding-tools article > span { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; background: var(--ink-deep); color: #fff; font-size: 11px; font-weight: 800; }
.onboarding-tools article:nth-child(2) > span { background: var(--coral); }
.onboarding-tools article:nth-child(3) > span { background: var(--blue); }
.onboarding-tools strong, .onboarding-tools p { display: block; }
.onboarding-tools p { margin: 5px 0 0; color: #768985; font-size: 12px; }
.context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 13px 13px}
.context-grid>label,.context-grid>fieldset{min-width:0;margin:0;border:0;border-radius:13px;background:var(--mist);padding:12px;color:#536a66;font-size:10px;font-weight:800}
.context-grid>label{display:grid;align-content:start;gap:7px}.context-grid select{width:100%;min-width:0}.context-grid>label>small{color:var(--ink-soft);font-size:9px;font-weight:500;line-height:1.4}
.context-grid fieldset{display:grid;gap:6px}.context-grid legend{padding:0 0 7px}.context-grid fieldset label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;cursor:pointer}.context-grid input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--blue)}
.onboarding-settings { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: stretch; }
.onboarding-settings > label, .onboarding-settings fieldset { margin: 0; border: 0; border-radius: 15px; background: var(--mist); padding: 15px; color: #536a66; font-size: 11px; font-weight: 800; }
.onboarding-settings > label { display: grid; gap: 8px; }
.onboarding-settings fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.onboarding-settings legend { padding: 0 0 8px; }
.onboarding-settings fieldset label { display: flex; align-items: center; gap: 8px; border-radius: 11px; background: #fff; padding: 10px; cursor: pointer; }
.onboarding-settings fieldset span strong, .onboarding-settings fieldset span small { display: block; }
.onboarding-settings fieldset span small { color: #8b9a96; font-size: 9px; font-weight: 500; }
.onboarding-privacy { margin: 18px 0; color: #67807a; font-size: 11px; text-align: center; }
.dialog-field { display: grid; gap: 7px; margin: 17px 0; color: #506763; font-size: 12px; font-weight: 700; }
.dialog-action-pair { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; }
.danger-text-button { margin-right: auto; border: 0; background: none; color: #b65543; padding: 10px 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.danger-text-button:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 11px; min-width: 280px; border-radius: 14px; background: var(--ink-deep); color: #fff; padding: 14px 17px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green); }
.toast p { margin: 0; font-size: 13px; }
.ritual-celebration[hidden] { display: none; }
.ritual-celebration { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; overflow: hidden; background: rgba(9,30,29,.68); opacity: 0; backdrop-filter: blur(8px); transition: opacity .35s ease; cursor: pointer; }
.ritual-celebration.is-visible { opacity: 1; }
.celebration-glow { position: absolute; width: min(620px, 86vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233,170,73,.3), rgba(238,118,92,.08) 38%, transparent 70%); animation: celebration-pulse 1.8s ease-in-out infinite; }
.celebration-card { position: relative; width: min(470px, calc(100vw - 36px)); border: 1px solid rgba(255,255,255,.18); border-radius: 27px; background: #fff; padding: 42px 34px; text-align: center; box-shadow: 0 35px 100px rgba(0,0,0,.28); transform: translateY(20px) scale(.94); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.ritual-celebration.is-visible .celebration-card { transform: translateY(0) scale(1); }
.celebration-card > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #e9f4ee; color: var(--green); font-size: 25px; }
.celebration-card h2 { margin: 6px 0 8px; font: 750 34px var(--font-heading); letter-spacing: -.04em; }
.celebration-card > p:last-child { margin: 0 auto; max-width: 330px; color: #718481; font-size: 13px; }
.celebration-spark { position: absolute; color: #ffd486; font-size: 27px; animation: celebration-float 1.8s ease-in-out infinite alternate; }
.celebration-spark.one { left: 18%; top: 22%; }
.celebration-spark.two { right: 18%; top: 30%; animation-delay: -.7s; }
.celebration-spark.three { left: 27%; bottom: 18%; animation-delay: -1.1s; }
@keyframes celebration-pulse { 50% { transform: scale(1.08); opacity: .72; } }
@keyframes celebration-float { to { transform: translateY(-20px) rotate(18deg) scale(1.25); } }

.mobile-menu, .mobile-topbar, .sidebar-backdrop { display: none; }
.mobile-bottom-nav { display: none; }
body.focus-mode .sidebar { transform: translateX(-100%); }
body.focus-mode .main-content { margin-left: 0; }
body.focus-mode .mobile-menu { display: block; }
body.mode-essential .posture-section, body.mode-essential .resume-panel, body.mode-essential .guided-copy { display: none; }
body.mode-essential .dashboard-grid { grid-template-columns: 1fr; }

.auth-page { min-height: 100vh; background: radial-gradient(circle at 18% 5%, #315d57 0, var(--ink-deep) 42%, #091c1b 100%); }
.auth-shell { width: min(1180px, calc(100% - 40px)); min-height: min(760px, calc(100vh - 48px)); display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(390px, .86fr); margin: 24px auto; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; overflow: hidden; background: var(--white); box-shadow: 0 35px 110px rgba(0,0,0,.28); }
.auth-story { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: clamp(34px, 5vw, 66px); background: linear-gradient(145deg, rgba(9,34,32,.96), rgba(24,62,56,.96)); color: #edf6f1; }
.auth-story::before { content: ""; position: absolute; width: 420px; height: 420px; right: -210px; top: -190px; border: 1px solid rgba(121,184,155,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(121,184,155,.035), 0 0 0 145px rgba(238,118,92,.025); }
.auth-home-brand { position: relative; z-index: 1; width: max-content; padding: 0; color: #fff; }
.auth-home-brand .brand-wordmark { font-size: 27px; }
.auth-story-body { position: relative; z-index: 1; width: 100%; max-width: 650px; min-width: 0; margin: auto 0; padding: 54px 0 38px; }
.auth-story h1 { max-width: 620px; margin: 0; font: 760 clamp(44px, 5.3vw, 76px)/.98 var(--font-heading); letter-spacing: -.065em; overflow-wrap: anywhere; }
.auth-story h1 span { display: block; color: #f29a83; }
.auth-form-wrap { min-width: 0; display: grid; place-items: center; background: var(--white); padding: clamp(26px, 4vw, 58px); }
.auth-form { width: min(410px, 100%); }
.auth-form h2 { margin: 0 0 26px; font: 750 clamp(28px, 3vw, 39px)/1.08 var(--font-heading); letter-spacing: -.045em; }
.auth-form .primary-button { margin-top: 24px; }
.auth-install-button { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 36px; border: 1px solid rgba(121,184,155,.44); border-radius: 13px; background: rgba(121,184,155,.11); color: #cde8dc; padding: 13px 16px; font: 780 13px/1.25 var(--font-body); cursor: pointer; }
.auth-install-button:hover { border-color: rgba(121,184,155,.75); background: rgba(121,184,155,.18); color: #fff; }
.auth-install-button[data-install-state="ready"] { background: rgba(121,184,155,.16); color: #e0f2e9; }
.auth-install-button[data-install-state="error"] { border-color: rgba(238,118,92,.34); background: rgba(238,118,92,.1); color: #ffc2b3; }
.auth-switch { text-align: center; font-size: 13px; }
.auth-switch a { color: var(--coral); font-weight: 700; }
.auth-privacy-link { display: block; width: max-content; margin: 18px auto 0; color: #778985; font-size: 12px; text-decoration: none; }
.auth-privacy-link:hover { color: var(--ink); text-decoration: underline; }
.form-error { margin: 18px 0; border-radius: 10px; background: var(--coral-soft); color: #9a4d3e; padding: 12px; font-size: 13px; }

.admin-page { min-height: 100vh; background: var(--paper); }
.admin-shell { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 70px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 70px; }
.admin-header-actions { display: flex; align-items: center; gap: 9px; }
.admin-brand { color: var(--ink); }
.admin-header .secondary-button { color: var(--ink); text-decoration: none; }
.admin-count { min-width: 125px; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 13px 18px; text-align: center; }
.admin-count strong, .admin-count span { display: block; }
.admin-count strong { font-size: 24px; line-height: 1.1; }
.admin-count span { color: #7e8f8c; font-size: 11px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 20px; align-items: start; }
.admin-message { margin: -12px 0 20px; border-radius: 12px; padding: 13px 16px; font-size: 13px; font-weight: 600; }
.admin-message.success { background: #eaf4ef; color: var(--green); }
.admin-message.error { background: var(--coral-soft); color: #9a4d3e; }
.users-table-wrap { margin-top: 23px; overflow-x: auto; }
.users-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.users-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #8a9a96; font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.users-table td { padding: 15px 12px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.users-table tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 11px; }
.user-cell strong, .user-cell small { display: block; }
.user-cell strong { font-size: 13px; }
.user-cell small { color: #8a9996; font-size: 11px; }
.inline-form { margin: 0; }
.role-form { display: flex; align-items: center; gap: 8px; }
.inline-form select { width: auto; min-width: 128px; padding: 7px 9px; font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 700; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; }
.status-badge.active { background: #eaf4ef; color: var(--green); }
.status-badge.active i { background: var(--green); }
.status-badge.inactive { background: #eef0ef; color: #7e8c89; }
.status-badge.inactive i { background: #93a09d; }
.table-action { border: 0; background: none; color: var(--coral); padding: 6px 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.table-action:disabled { color: #b4bfbc; cursor: not-allowed; }
.create-user-panel h3 { margin: 4px 0; font-size: 21px; }
.create-user-panel > p:not(.eyebrow) { margin: 0 0 20px; color: #7d8e8a; font-size: 13px; }
.create-user-panel label { display: grid; gap: 6px; margin: 14px 0; color: #536a66; font-size: 12px; font-weight: 700; }
.create-user-panel button { margin-top: 8px; }
.account-shell { width: min(1180px, calc(100% - 40px)); }
.back-short { display: none; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 8vw, 100px); align-items: center; min-height: 560px; }
.account-message { margin-bottom: 18px; }
.account-profile-row { margin: 38px 0; }
.account-promise { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 20px; }
.account-promise > span { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 20px; }
.account-promise strong { display: block; }
.account-promise p { margin: 4px 0 0; color: #7d8e8a; font-size: 12px; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 18px; align-items: stretch; padding-bottom: 70px; }
.account-settings-grid .panel { height: 100%; }
.account-settings-grid .account-form { display: flex; flex-direction: column; }
.account-settings-grid .account-form button { margin-top: auto; }
.privacy-panel h2 { margin: 5px 0; font-size: 24px; }
.privacy-panel ul { display: grid; gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.privacy-panel li { position: relative; color: #617773; padding-left: 23px; font-size: 12px; }
.privacy-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.privacy-panel small { display: block; margin-top: 12px; color: #8a9995; font-size: 9px; line-height: 1.5; text-align: center; }
.privacy-panel .secondary-button + .secondary-button { margin-top: 10px; }
.danger-zone { border-color: rgba(190,70,60,.28); }
.danger-zone .eyebrow, .danger-zone h2 { color: #a8473f; }
.danger-zone .secondary-button { border-color: rgba(190,70,60,.35); color: #a8473f; }
.privacy-document { max-width: 860px; margin-bottom: 70px; }
.privacy-document h2 { margin: 30px 0 8px; font-size: 21px; }
.privacy-document h2:first-child { margin-top: 0; }
.privacy-document p { max-width: 72ch; color: #617773; line-height: 1.75; }
.admin-audit-panel { margin: 22px 0 70px; }
.system-admin-shell { width: min(1320px, calc(100% - 40px)); }
.system-admin-shell .admin-header { margin-bottom: 46px; }
.admin-hero { align-items: center; margin-bottom: 22px; }
.system-health-summary { min-width: 205px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 14px 17px; }
.system-health-summary > i { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(121,184,155,.13); background: var(--green); }
.system-health-summary.warning > i { background: var(--gold); box-shadow: 0 0 0 5px rgba(242,185,93,.14); }
.system-health-summary.critical > i { background: var(--coral); box-shadow: 0 0 0 5px rgba(255,139,112,.14); }
.system-health-summary strong, .system-health-summary small { display: block; }
.system-health-summary strong { font-size: 13px; }
.system-health-summary small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.admin-section-nav { position: sticky; top: 10px; z-index: 5; display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 0 34px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--white) 92%, transparent); box-shadow: 0 10px 28px rgba(16,42,42,.08); padding: 6px; backdrop-filter: blur(12px); overflow-x: auto; }
.admin-section-nav a { min-height: 36px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--ink-soft); padding: 0 13px; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.admin-section-nav a:hover { background: var(--mist); color: var(--ink); }
.admin-section { scroll-margin-top: 78px; margin-bottom: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; }
.section-heading > span { color: var(--ink-soft); font-size: 11px; }
.health-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.health-card { min-height: 142px; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); padding: 18px; }
.health-indicator { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); }
.health-card.warning .health-indicator { background: var(--gold); }
.health-card.critical .health-indicator { background: var(--coral); }
.health-card small, .health-card strong { display: block; }
.health-card small { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.health-card strong { margin-top: 12px; font-size: 18px; }
.health-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.system-admin-page .admin-layout { grid-template-columns: minmax(0, 2fr) minmax(285px, .65fr); }
.system-admin-page .admin-users-panel { padding: 12px 14px 18px; }
.system-admin-page .users-table { min-width: 900px; }
.support-action { color: var(--blue); white-space: nowrap; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-health-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.module-health-card h3 { margin: 18px 0 4px; font-size: 22px; }
.module-health-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.module-health-meta { display: grid; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.module-health-meta strong { font-size: 24px; line-height: 1; }
.module-health-meta small, .module-health-meta time { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.support-card { min-height: 178px; }
.support-card > strong { display: block; color: var(--ink); font-size: 30px; line-height: 1; }
.support-card > span { display: block; margin-top: 9px; font-size: 13px; font-weight: 800; }
.support-card p { margin: 18px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.system-admin-page .admin-audit-panel { margin-top: 0; }

/* Console d’administration */
.system-admin-page { background: #f4f7f4; }
.admin-console { min-height: 100vh; }
.admin-console-sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 278px; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, #0b2422, #0a1c1a); color: #e8f1ed; padding: 28px 18px 18px; box-shadow: 18px 0 60px rgba(8,28,26,.08); }
.admin-sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 7px 27px; }
.admin-console-brand { color: #fff; padding: 0; }
.admin-console-brand .brand-wordmark { font-size: 21px; }
.admin-sidebar-close { display: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; }
.admin-console-nav { display: grid; gap: 5px; }
.admin-console-nav a { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; border-radius: 13px; color: #9eb2ac; padding: 10px 11px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.admin-console-nav a > span { grid-row: 1/3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.055); color: #b5c8c1; font-size: 17px; }
.admin-console-nav a strong { min-width: 0; color: inherit; font-size: 12px; line-height: 1.25; }
.admin-console-nav a small { min-width: 0; margin-top: 2px; overflow: hidden; color: #718b83; font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.admin-console-nav a:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.admin-console-nav a.is-active { background: rgba(121,184,155,.14); color: #fff; }
.admin-console-nav a.is-active > span { background: rgba(121,184,155,.18); color: #bce6d2; }
.admin-sidebar-status { display: flex; align-items: center; gap: 10px; margin: auto 6px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); padding: 12px; }
.admin-sidebar-status > i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #79b89b; box-shadow: 0 0 0 5px rgba(121,184,155,.11); }
.admin-sidebar-status.warning > i { background: var(--gold); box-shadow: 0 0 0 5px rgba(242,185,93,.11); }
.admin-sidebar-status.critical > i { background: var(--coral); box-shadow: 0 0 0 5px rgba(255,139,112,.11); }
.admin-sidebar-status strong, .admin-sidebar-status small { display: block; }
.admin-sidebar-status strong { color: #e9f3ef; font-size: 10px; }
.admin-sidebar-status small { margin-top: 2px; color: #789087; font-size: 8px; }
.admin-sidebar-account { display: grid; grid-template-columns: 36px minmax(0,1fr) 28px; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); padding: 15px 7px 2px; }
.admin-sidebar-account > span:nth-child(2) { min-width: 0; }
.admin-sidebar-account strong, .admin-sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-account strong { color: #edf5f1; font-size: 11px; }
.admin-sidebar-account small { color: #738d84; font-size: 8px; }
.admin-sidebar-account > a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #9db1aa; text-decoration: none; }
.admin-sidebar-account > a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-sidebar-backdrop { display: none; }
.admin-console-main { min-width: 0; min-height: 100vh; margin-left: 278px; }
.admin-console-topbar { position: sticky; z-index: 20; top: 0; height: 82px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid rgba(220,229,223,.84); background: rgba(251,252,250,.9); padding: 0 clamp(24px, 4vw, 56px); backdrop-filter: blur(18px); }
.admin-console-topbar > div:nth-child(2) p { margin: 0; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-console-topbar h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.025em; }
.admin-menu-toggle { display: none; min-height: 40px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); padding: 0 12px; cursor: pointer; }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-topbar-actions > a, .admin-theme-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); padding: 0 13px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.admin-theme-button { width: 38px; padding: 0; color: var(--gold); font-size: 17px; }
.admin-console-content { width: min(1480px, 100%); margin: 0 auto; padding: 36px clamp(24px, 4vw, 56px) 80px; }
.admin-console-content > .admin-message { margin: 0 0 20px; }
.admin-console-content .admin-section { margin-bottom: 58px; scroll-margin-top: 105px; }
.admin-console-content .section-heading { align-items: flex-end; }
.admin-console-content .section-heading h2, .admin-console-content .section-heading h3 { margin: 2px 0 0; letter-spacing: -.03em; }
.admin-console-content .section-heading h3 { font-size: 20px; }
.admin-welcome { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.admin-welcome h2 { margin: 5px 0 7px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; }
.admin-welcome > div:first-child > p:last-child { max-width: 620px; margin: 0; color: var(--ink-soft); }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.admin-kpi { min-width: 0; display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 13px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: 0 12px 34px rgba(20,52,48,.045); padding: 18px; }
.admin-kpi-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: rgba(71,125,107,.1); color: var(--green); font-size: 20px; font-weight: 850; }
.admin-kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }
.admin-kpi-icon.gold { background: var(--gold-soft); color: var(--gold); }
.admin-kpi-icon.coral { background: var(--coral-soft); color: var(--coral); }
.admin-kpi small, .admin-kpi strong { display: block; }
.admin-kpi small { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.admin-kpi strong { margin-top: 3px; font-size: 28px; line-height: 1.1; }
.admin-kpi p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 16px; }
.admin-activity-panel, .admin-platform-snapshot { min-height: 310px; }
.admin-activity-chart { height: 205px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: end; gap: clamp(7px, 1.7vw, 20px); margin-top: 22px; }
.admin-activity-day { height: 100%; display: grid; grid-template-rows: minmax(0,1fr) auto auto; justify-items: center; gap: 5px; }
.admin-activity-day > div { width: 100%; height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line); }
.admin-activity-day i { width: min(15px, 32%); min-height: 0; border-radius: 6px 6px 2px 2px; background: var(--green); transition: height .35s ease; }
.admin-activity-day i.refused { background: var(--coral); }
.admin-activity-day strong { font-size: 11px; }
.admin-activity-day small { color: var(--ink-soft); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.legend-dot { width: 7px; height: 7px; display: inline-block; margin: 0 3px 0 8px; border-radius: 50%; background: var(--green); }
.legend-dot.refused { background: var(--coral); }
.admin-platform-snapshot dl { display: grid; margin: 10px 0 0; }
.admin-platform-snapshot dl > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.admin-platform-snapshot dl > div:last-child { border-bottom: 0; }
.admin-platform-snapshot dt { color: var(--ink-soft); font-size: 11px; }
.admin-platform-snapshot dd { margin: 0; font-size: 11px; font-weight: 850; text-align: right; }
.admin-console-content .health-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.admin-console-content .health-card { min-height: 150px; background: var(--white); box-shadow: 0 10px 30px rgba(20,52,48,.035); }
.module-adoption { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; margin-top: 22px; }
.module-adoption > span { height: 5px; overflow: hidden; border-radius: 99px; background: var(--mist); }
.module-adoption > span i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--green),#8cc9ad); }
.module-adoption small { color: var(--ink-soft); font-size: 9px; }
.admin-users-layout { grid-template-columns: minmax(0,2.25fr) minmax(280px,.65fr) !important; align-items: start; }
.admin-approval-panel { margin-bottom: 18px; }
.admin-approval-list { display: grid; gap: 12px; }
.admin-approval-list article { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(220px,.8fr) minmax(300px,1.25fr); align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: color-mix(in srgb,var(--white) 78%,var(--gold-soft)); }
.admin-approval-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-approval-identity > span:last-child { min-width: 0; }
.admin-approval-identity strong, .admin-approval-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-approval-identity small, .admin-approval-facts { color: var(--ink-soft); font-size: 10px; }
.admin-approval-facts { display: grid; gap: 5px; }
.admin-approval-form { display: grid; gap: 8px; }
.admin-approval-form label, .admin-note-create label, .admin-note-edit label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.admin-approval-form textarea, .admin-note-create textarea, .admin-note-edit textarea { min-height: 70px; resize: vertical; }
.admin-approval-form > div { display: flex; gap: 8px; }
.danger-button { border-color: color-mix(in srgb,var(--coral) 45%,var(--line)); color: var(--coral); }
.admin-no-action { color: var(--ink-soft); font-size: 10px; }
.admin-user-tools { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.admin-user-tools label { width: min(390px,100%); display: grid; gap: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.admin-user-tools input { min-height: 42px; background: var(--white); }
.admin-user-tools > span { color: var(--ink-soft); font-size: 10px; }
.admin-console-content .admin-users-panel { min-width: 0; padding: 8px 13px 14px; }
.admin-console-content .admin-users-table { min-width: 980px; }
.admin-last-seen strong, .admin-last-seen small { display: block; white-space: nowrap; }
.admin-last-seen strong { font-size: 10px; }
.admin-last-seen small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; }
.status-badge.warning { background: var(--gold-soft); color: #986914; }
.status-badge.warning i { background: var(--gold); }
.admin-users-table td[data-label="Statut"] .status-badge + .status-badge { margin-top: 5px; }
.admin-row-actions { display: flex; align-items: center; gap: 13px; }
.admin-row-actions form { margin: 0; }
.admin-user-empty { padding: 30px; color: var(--ink-soft); font-size: 12px; text-align: center; }
.admin-notes-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.6fr); align-items: start; gap: 18px; }
.admin-note-create { position: sticky; top: 94px; }
.admin-note-create form, .admin-note-edit { display: grid; gap: 13px; margin-top: 18px; }
.admin-note-create input, .admin-note-create textarea, .admin-note-create select, .admin-note-edit input, .admin-note-edit textarea, .admin-note-edit select, .admin-approval-form textarea { width: 100%; }
.admin-note-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.admin-note-edit .admin-note-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-notes-list { display: grid; gap: 13px; }
.admin-note-card { position: relative; overflow: hidden; }
.admin-note-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.admin-note-card.priority-high::before { background: var(--gold); }
.admin-note-card.priority-critical::before { background: var(--coral); }
.admin-note-card.priority-low::before { background: var(--green); }
.admin-note-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-note-card h3 { margin: 5px 0 0; font-size: 17px; }
.admin-note-category { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.admin-note-card > p { margin: 16px 0 10px; line-height: 1.7; }
.admin-note-card > small { color: var(--ink-soft); font-size: 9px; }
.admin-note-card details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-note-card summary { cursor: pointer; color: var(--green); font-size: 10px; font-weight: 850; }
.admin-note-archive { margin-top: 9px; }
.admin-support-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.admin-support-queue { margin-top: 16px; }
.admin-support-list { display: grid; }
.admin-support-list article { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.admin-support-list article:last-child { border-bottom: 0; }
.admin-support-list article > div { min-width: 0; }
.admin-support-list article > div > strong, .admin-support-list article > div > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-list article > div > strong { font-size: 12px; }
.admin-support-list article > div > small { color: var(--ink-soft); font-size: 10px; }
.admin-support-list article p { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0; }
.admin-support-list article p span { border-radius: 99px; background: var(--coral-soft); color: var(--coral); padding: 3px 7px; font-size: 8px; font-weight: 750; }
.admin-calm-state { display: grid; justify-items: center; padding: 30px 20px; text-align: center; }
.admin-calm-state > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(71,125,107,.1); color: var(--green); font-weight: 900; }
.admin-calm-state strong { margin-top: 11px; }
.admin-calm-state p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.admin-console-content .admin-audit-panel { margin: 0; padding: 8px 14px 14px; }
.admin-audit-table { min-width: 760px; }
.admin-audit-table td strong { font-size: 11px; }

html[data-theme="dark"] .admin-console-topbar { border-color: rgba(42,60,55,.88); background: rgba(8,18,15,.9); }
html[data-theme="dark"] .system-admin-page { background: var(--paper); }
html[data-theme="dark"] .admin-kpi, html[data-theme="dark"] .admin-console-content .health-card { background: var(--white); }

@media (max-width: 1220px) {
    .admin-console-sidebar { width: 248px; }
    .admin-console-main { margin-left: 248px; }
    .admin-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-console-content .health-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-support-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-users-layout { grid-template-columns: 1fr !important; }
    .create-user-panel { max-width: 520px; }
    .admin-approval-list article { grid-template-columns: minmax(190px,.7fr) minmax(280px,1.3fr); }
    .admin-approval-facts { grid-column: 1; }
    .admin-approval-form { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 900px) {
    body.admin-menu-open { overflow: hidden; }
    .admin-console-sidebar { width: min(286px,calc(100vw - 48px)); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 25px 0 70px rgba(0,0,0,.28); }
    body.admin-menu-open .admin-console-sidebar { transform: translateX(0); }
    .admin-sidebar-close { display: grid; place-items: center; }
    .admin-sidebar-backdrop { position: fixed; z-index: 35; inset: 0; border: 0; background: rgba(7,22,20,.46); backdrop-filter: blur(3px); }
    body.admin-menu-open .admin-sidebar-backdrop { display: block; }
    .admin-console-main { margin-left: 0; }
    .admin-menu-toggle { display: inline-flex; }
    .admin-console-topbar { padding-inline: 18px; }
    .admin-overview-grid { grid-template-columns: 1fr; }
    .admin-platform-snapshot { min-height: 0; }
    .module-health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-notes-layout { grid-template-columns: 1fr; }
    .admin-note-create { position: static; }
}

@media (max-width: 620px) {
    .admin-console-topbar { height: 70px; gap: 10px; padding-inline: 12px; }
    .admin-console-topbar > div:nth-child(2) p { display: none; }
    .admin-console-topbar h1 { font-size: 16px; }
    .admin-menu-toggle { width: 40px; padding: 0; justify-content: center; }
    .admin-menu-toggle > span:last-child, .admin-topbar-actions > a { display: none; }
    .admin-console-content { padding: 24px 14px 55px; }
    .admin-console-content .admin-section { margin-bottom: 45px; scroll-margin-top: 84px; }
    .admin-welcome { align-items: flex-start; flex-direction: column; gap: 18px; }
    .admin-welcome h2 { font-size: 34px; }
    .system-health-summary { width: 100%; }
    .admin-kpi-grid, .admin-console-content .health-grid, .module-health-grid, .admin-support-stats { grid-template-columns: 1fr; }
    .admin-kpi { padding: 16px; }
    .admin-activity-panel { min-height: 280px; padding-inline: 16px; }
    .admin-activity-chart { height: 175px; gap: 6px; }
    .admin-activity-panel .section-heading > span { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .admin-user-tools { align-items: stretch; flex-direction: column; }
    .admin-user-tools > span { align-self: flex-end; }
    .admin-support-list article { grid-template-columns: 38px minmax(0,1fr); }
    .admin-support-list article form { grid-column: 2; }
    .admin-support-list article form button { width: 100%; }
    .admin-console-content .users-table-wrap { overflow: visible; }
    .system-admin-page .admin-users-table, .system-admin-page .admin-audit-table, .admin-users-table tbody, .admin-audit-table tbody { width: 100%; min-width: 0; display: block; }
    .admin-users-table thead, .admin-audit-table thead { display: none; }
    .admin-users-table tr, .admin-audit-table tr { display: grid; gap: 0; margin: 8px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 8px 13px; }
    .admin-users-table td, .admin-audit-table td { display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 11px 0; }
    .admin-users-table td:last-child, .admin-audit-table td:last-child { border-bottom: 0; }
    .admin-users-table td::before, .admin-audit-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
    .admin-users-table td > *, .admin-audit-table td > * { min-width: 0; }
    .admin-row-actions { flex-wrap: wrap; }
    .create-user-panel { max-width: none; }
    .admin-approval-list article { grid-template-columns: 1fr; }
    .admin-approval-facts, .admin-approval-form { grid-column: auto; grid-row: auto; }
    .admin-note-fields, .admin-note-edit .admin-note-fields { grid-template-columns: 1fr; }
    .admin-note-card > header { flex-direction: column; }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e6f0ec;
    --ink-deep: #071411;
    --ink-soft: #a5b8b2;
    --mist: #172522;
    --paper: #08120f;
    --white: #101d1a;
    --line: #2a3c37;
    --coral: #ff8b70;
    --coral-soft: rgba(255, 139, 112, .12);
    --blue: #8eb8c9;
    --blue-soft: rgba(142, 184, 201, .12);
    --gold: #f2b95d;
    --gold-soft: rgba(242, 185, 93, .13);
    --green: #79b89b;
    --shadow: 0 22px 65px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .admin-page,
html[data-theme="dark"] .auth-page { background: radial-gradient(circle at 82% -10%, #152824 0, #0b1714 31%, var(--paper) 67%); color: var(--ink); }
html[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #071310, #091916); border-right: 1px solid rgba(121,184,155,.08); }
html[data-theme="dark"] .page-header h1 span { color: var(--coral); }
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .sphere-card,
html[data-theme="dark"] .responsibility-row,
html[data-theme="dark"] .row-action,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .ritual-control-card,
html[data-theme="dark"] .review-stats article,
html[data-theme="dark"] .evening-plan-item,
html[data-theme="dark"] .plan-remove,
html[data-theme="dark"] .resource-pulse-item,
html[data-theme="dark"] .account-promise,
html[data-theme="dark"] .admin-count { background: rgba(16,29,26,.96); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .panel,
html[data-theme="dark"] .sphere-card,
html[data-theme="dark"] .responsibility-row,
html[data-theme="dark"] .ritual-control-card { box-shadow: 0 14px 42px rgba(0,0,0,.18); }
html[data-theme="dark"] .secondary-button:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .focus-task:hover { background: #1b2b27; }
html[data-theme="dark"] .primary-button { border-color: #42665a; background: linear-gradient(135deg, #25473e, #17362e); box-shadow: 0 9px 24px rgba(0,0,0,.24); }
html[data-theme="dark"] .primary-button:hover { box-shadow: 0 13px 30px rgba(0,0,0,.32); }
html[data-theme="dark"] .filter-chip.is-active { border-color: var(--coral); background: var(--coral); color: #1a0c08; }
html[data-theme="dark"] .ritual-card { border-color: #2c443c; background: linear-gradient(120deg, #13231f, #0d1b18); box-shadow: 0 16px 45px rgba(0,0,0,.2); }
html[data-theme="dark"] .ritual-card.is-due { border-color: rgba(242,185,93,.48); background: linear-gradient(120deg, #2b2417, #1e1b12); }
html[data-theme="dark"] .ritual-card.is-complete { border-color: rgba(121,184,155,.42); background: linear-gradient(120deg, #142820, #102019); }
html[data-theme="dark"] .current-card { background: radial-gradient(circle at 92% 0, #18342d, #091612 58%); border: 1px solid rgba(121,184,155,.12); }
html[data-theme="dark"] .focus-overview { border-color: #2c413b; background: linear-gradient(135deg, #101f1b, #0d1a17 64%, #251711 150%); box-shadow: 0 14px 42px rgba(0,0,0,.18); }
html[data-theme="dark"] .focus-score { background: conic-gradient(var(--coral) var(--focus-progress), #263833 0); }
html[data-theme="dark"] .focus-score::before { background: #0f1d1a; }
html[data-theme="dark"] .posture-card { background: rgba(16,29,26,.7); }
html[data-theme="dark"] .attention-card { border-color: rgba(242,185,93,.35); background: rgba(242,185,93,.08); }
html[data-theme="dark"] .attention-card.is-balanced { border-color: rgba(121,184,155,.35); background: rgba(121,184,155,.08); }
html[data-theme="dark"] .focus-review-item,
html[data-theme="dark"] .focus-journal-entry,
html[data-theme="dark"] .evening-plan-form,
html[data-theme="dark"] .onboarding-tools article { background: #14231f; }
html[data-theme="dark"] .context-grid>label,html[data-theme="dark"] .context-grid>fieldset{background:#15241f;color:#afc0ba}
html[data-theme="dark"] .evening-plan-empty { border-color: #344a43; color: #91a49e; }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select { border-color: #354a44; background: #0b1714; color: var(--ink); }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { border-color: var(--blue); background: #101f1b; outline-color: rgba(142,184,201,.14); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #657b74; }
html[data-theme="dark"] .app-dialog { background: #101d1a; color: var(--ink); border: 1px solid #2c403a; }
html[data-theme="dark"] .dialog-close { background: #1c2c28; color: #a9bbb5; }
html[data-theme="dark"] .onboarding-settings > label,
html[data-theme="dark"] .onboarding-settings fieldset { background: #15241f; color: #afc0ba; }
html[data-theme="dark"] .onboarding-settings fieldset label { background: #0c1916; }
html[data-theme="dark"] .offering-note { background: rgba(242,185,93,.1); }
html[data-theme="dark"] .celebration-card { background: #10201b; border-color: #365047; }
html[data-theme="dark"] .celebration-card > span { background: rgba(121,184,155,.14); }
html[data-theme="dark"] .review-status.is-closed,
html[data-theme="dark"] .plan-status.is-ready,
html[data-theme="dark"] .plan-item-status.is-executed,
html[data-theme="dark"] .admin-message.success,
html[data-theme="dark"] .status-badge.active { background: rgba(121,184,155,.13); color: #9bd0b7; }
html[data-theme="dark"] .form-error,
html[data-theme="dark"] .admin-message.error { background: rgba(255,139,112,.12); color: #ffad99; }
html[data-theme="dark"] .admin-message,
html[data-theme="dark"] .admin-table-wrap { border-color: var(--line); }
html[data-theme="dark"] .mobile-topbar { border-color: rgba(42,60,55,.9); background: rgba(8,18,15,.9); }
html[data-theme="dark"] .mobile-brand { color: var(--ink); }
html[data-theme="dark"] .mobile-bottom-nav { border-color: rgba(42,60,55,.95); background: rgba(12,25,21,.94); box-shadow: 0 16px 45px rgba(0,0,0,.35); }
html[data-theme="dark"] .mobile-bottom-nav > button.is-active { color: var(--ink); background: #1a2a26; }
html[data-theme="dark"] .date-line,
html[data-theme="dark"] .evening-plan-actions p,
html[data-theme="dark"] .focus-intention p,
html[data-theme="dark"] .posture-card p,
html[data-theme="dark"] .sphere-card > p,
html[data-theme="dark"] .dialog-intro,
html[data-theme="dark"] .account-promise p,
html[data-theme="dark"] .privacy-panel li { color: #9aada7; }
html[data-theme="dark"] .privacy-document p { color: #9aada7; }
html[data-theme="dark"] .danger-zone { border-color: rgba(238,118,92,.34); }
html[data-theme="dark"] .auth-form-wrap { background: radial-gradient(circle at 70% 10%, #152722, #0a1512 68%); }
html[data-theme="dark"] .auth-story { background: linear-gradient(155deg, #071310, #10251f); }
html[data-theme="dark"] .auth-form { color: var(--ink); }
html[data-theme="dark"] .auth-install-button { border-color: rgba(121,184,155,.34); background: rgba(121,184,155,.1); color: #bce6d2; }
html[data-theme="dark"] .auth-install-button:hover { background: rgba(121,184,155,.18); color: #e5f4ec; }
html[data-theme="dark"] .theme-toggle { color: var(--gold); }
html[data-theme="dark"] * { scrollbar-color: #385249 #0b1714; }
.account-intro h1 { margin: 10px 0 3px; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.05em; }
.account-intro > p:not(.eyebrow) { margin: 0 0 20px; color: #7d8e8a; }
.role-pill { display: inline-flex; border-radius: 999px; background: var(--blue-soft); color: var(--blue); padding: 7px 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.logout-link { display: block; width: max-content; margin-top: 35px; color: var(--coral); font-size: 13px; font-weight: 700; text-decoration: none; }
.account-form h2 { margin: 5px 0; font-size: 24px; }
.account-form > p:not(.eyebrow) { margin: 0 0 20px; color: #7d8e8a; font-size: 13px; }
.account-form label { display: grid; gap: 6px; margin: 15px 0; color: #536a66; font-size: 12px; font-weight: 700; }
.account-context-block{margin:2px 0 22px;border:1px solid var(--line);border-radius:17px;background:var(--mist);padding:12px}
.account-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.account-context-grid>label:last-child{grid-column:1/-1}
.account-form .account-context-grid>label,.account-form .account-context-grid>fieldset{margin:0;background:var(--white)}
.account-form .account-context-grid fieldset label{display:flex;margin:0;font-size:10px}
.account-subheading{margin:2px 0 3px;padding-top:18px;border-top:1px solid var(--line);font-size:17px}
.account-form button { margin-top: 10px; }

@media (max-width: 1280px) and (min-width: 1051px) {
    .sphere-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
    .sidebar { width: 228px; padding-inline: 13px; }
    .main-content { margin-left: 228px; padding-left: 30px; padding-right: 30px; }
    .current-card { grid-template-columns: 1fr 235px; }
    .current-copy { padding: 38px; }
    .focus-overview-body { grid-template-columns: 112px 1fr; }
    .focus-task-list { grid-column: 1/-1; border-top: 1px solid #e4ebe7; padding-top: 12px; }
    .focus-intention { border-right: 0; padding-right: 0; }
    .evening-plan-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ritual-control-card { grid-template-columns: minmax(0, 1fr) auto 150px; }
    .ritual-control-card > button { grid-column: 1/-1; width: 100%; }
    .posture-grid, .sphere-grid { grid-template-columns: 1fr; }
    .posture-card { min-height: 120px; }
    .admin-layout { grid-template-columns: 1fr; }
    .health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr; min-height: 0; }
    .account-settings-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
}

@media (max-width: 780px) {
    body.menu-open { overflow: hidden; }
    .sidebar { z-index: 30; width: 286px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(8,28,28,.2); }
    .sidebar.is-open { transform: translateX(0); }
    .mobile-topbar { position: fixed; z-index: 19; inset: 0 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 68px; border-bottom: 1px solid rgba(220,229,223,.82); background: rgba(251,252,250,.92); box-shadow: 0 8px 28px rgba(24,52,52,.04); backdrop-filter: blur(16px); }
    .mobile-theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; margin-right: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--gold); cursor: pointer; }
    .mobile-brand { margin-left: 0; padding: 0; color: var(--ink-deep); }
    .mobile-brand .brand-wordmark { font-size: 19px; }
    .mobile-brand strong { font-size: 14px; }
    .mobile-brand small { font-size: 7px; }
    .mobile-menu { position: fixed; z-index: 32; top: 13px; left: 13px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--ink-deep); color: #fff; box-shadow: var(--shadow); font-size: 20px; line-height: 1; transition: left .25s ease, background .2s ease, box-shadow .2s ease; }
    .sidebar.is-open + .mobile-menu { left: 228px; background: rgba(255,255,255,.1); box-shadow: none; }
    .sidebar-backdrop { position: fixed; z-index: 29; inset: 0; border: 0; background: rgba(8,28,28,.38); backdrop-filter: blur(2px); }
    .sidebar.is-open ~ .sidebar-backdrop { display: block; }
    .main-content { margin-left: 0; padding: 84px 16px calc(100px + env(safe-area-inset-bottom)); }
    .page-header { align-items: flex-end; margin-bottom: 22px; }
    .header-actions { display: none; }
    .now-question { margin-bottom: 17px; }
    .ritual-card { grid-template-columns: auto minmax(0, 1fr); margin-top: 0; padding: 17px; }
    .ritual-card-action { grid-column: 1/-1; width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
    .ritual-card-action button { justify-self: end; }
    .current-card { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
    .current-copy { padding: 26px 22px; }
    .role-line { margin-top: 24px; }
    .fruit-block { margin-top: 24px; }
    .time-panel { flex-direction: row; justify-content: flex-start; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; padding: 18px 22px; }
    .timer-ring { width: 86px; height: 86px; }
    .timer-ring strong { font-size: 21px; }
    .time-panel > p { margin: 0; }
    .action-row { margin: 12px 0 0; }
    .action-row button { flex: 1; min-width: 0; }
    .focus-overview { margin-top: 26px; }
    .focus-overview-body { grid-template-columns: 92px 1fr; gap: 16px; padding: 19px; }
    .focus-score { width: 84px; height: 84px; }
    .focus-score::before { width: 70px; height: 70px; }
    .focus-score strong { font-size: 20px; }
    .dashboard-grid, .review-layout { grid-template-columns: 1fr; }
    .posture-grid, .sphere-grid { grid-template-columns: 1fr; }
    .attention-card { grid-template-columns: auto 1fr; }
    .attention-card button { grid-column: 1/-1; }
    .review-stats { grid-template-columns: 1fr 1fr; }
    .ritual-control-card { grid-template-columns: 1fr 130px; }
    .ritual-control-card label { grid-column: 1; }
    .ritual-control-card > button { grid-column: 2; align-self: end; width: auto; }
    .focus-review-grid { grid-template-columns: 1fr; }
    .focus-journal-entry > div { grid-template-columns: 1fr; }
    .responsibility-row { grid-template-columns: 7px 1fr auto; }
    .responsibility-row .resume-mini { grid-column: 2; max-width: none; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .responsibility-row .row-actions { grid-column: 3; grid-row: 1; }
    .mobile-bottom-nav { position: fixed; z-index: 18; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; overflow: visible; border: 1px solid rgba(220,229,223,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 16px 45px rgba(16,42,42,.17); backdrop-filter: blur(16px); padding: 5px; }
    .mobile-bottom-nav > button { min-width: 0; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 13px; background: transparent; color: #859793; cursor: pointer; }
    .mobile-bottom-nav > button > span { font-size: 18px; line-height: 1; }
    .mobile-bottom-nav > button > small { font-size: 9px; font-weight: 700; }
    .mobile-bottom-nav > button.is-active { color: var(--ink); background: var(--mist); }
    .mobile-bottom-nav .mobile-new-time { width: 52px; height: 52px; justify-self: center; transform: translateY(-15px); border-radius: 17px; background: var(--coral); color: #fff; box-shadow: 0 10px 25px rgba(238,118,92,.35); }
    .mobile-bottom-nav .mobile-new-time > span { font-size: 26px; }
    .auth-shell { width: min(720px, calc(100% - 28px)); min-height: 0; grid-template-columns: 1fr; margin: 14px auto; }
    .auth-story { min-height: 590px; padding: 38px; }
    .auth-story-body { padding: 52px 0 36px; }
    .auth-form-wrap { padding: 50px 38px; }
    .onboarding-tools { grid-template-columns: 1fr; }
    .context-grid { grid-template-columns: 1fr; }
    .onboarding-settings { grid-template-columns: 1fr; }
    .account-profile-row { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 28px 0; }
    .account-settings-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-grid { grid-template-columns: 1fr; }
    .module-health-grid { grid-template-columns: 1fr; }
    .system-admin-page .page-header { align-items: flex-start; }
    .account-profile-row > *, .account-settings-grid > .panel { min-width: 0; }
    .account-context-grid { grid-template-columns: 1fr; }
    .account-context-grid > label:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
    .page-header { display: block; }
    .header-actions { margin-top: 18px; }
    .primary-button.compact { width: 100%; }
    .now-question { grid-template-columns: 22px 1fr 22px; gap: 10px; text-align: center; }
    .ritual-card { grid-template-columns: 1fr; text-align: center; }
    .ritual-card-symbol { margin: 0 auto; }
    .ritual-card-action { display: grid; grid-template-columns: 1fr; justify-items: center; }
    .ritual-card-action button { width: 100%; justify-self: stretch; }
    .resource-pulse { margin-block: 22px 28px; }
    .resource-pulse > header { align-items: center; }
    .resource-pulse > header .eyebrow { display: none; }
    .resource-pulse h2 { font-size: 1.05rem; }
    .resource-pulse-item { padding: 12px; }
    .current-card h2 { font-size: 27px; }
    .time-panel { justify-content: center; }
    .action-row { flex-direction: row; }
    .action-row button { min-height: 43px; padding-inline: 12px; font-size: 13px; }
    .focus-overview-head { align-items: flex-start; padding: 17px; }
    .focus-open-link { width: auto; min-width: 0; padding-inline: 13px; color: var(--ink); }
    .focus-overview-body { grid-template-columns: 1fr; }
    .focus-score { justify-self: center; }
    .focus-intention { text-align: center; }
    .focus-task-list { grid-column: auto; }
    .review-stats { grid-template-columns: 1fr; }
    .ritual-control-card { grid-template-columns: 1fr; text-align: center; }
    .ritual-control-streak { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
    .ritual-control-card label, .ritual-control-card > button { grid-column: auto; }
    .ritual-control-card > button { width: 100%; }
    .focus-review-card .panel-heading { flex-wrap: wrap; }
    .focus-review-link { width: 100%; margin: 8px 0 0 54px; }
    .evening-plan-heading { flex-wrap: wrap; }
    .plan-status { margin-left: 54px; }
    .evening-plan-form { grid-template-columns: 1fr; }
    .evening-plan-form .plan-title-field { grid-column: auto; }
    .evening-plan-item { grid-template-columns: auto minmax(0, 1fr) auto; }
    .evening-plan-item .plan-item-status { grid-column: 2; }
    .evening-plan-actions { align-items: stretch; flex-direction: column; }
    .evening-plan-actions button { width: 100%; }
    .panel { padding: 22px; }
    .posture-card { grid-template-columns: 38px 1fr; padding: 20px; }
    .form-grid, .form-grid fieldset { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .app-dialog form { padding-top: 38px; }
    .onboarding-settings fieldset { grid-template-columns: 1fr; }
    .toast { left: 16px; right: 16px; bottom: 16px; min-width: 0; }
    .mobile-bottom-nav ~ .toast { bottom: 92px; }
    .dialog-action-pair { align-items: stretch; flex-direction: column-reverse; }
    .dialog-action-pair .primary-button { width: 100%; }
    .danger-text-button { margin: 0; }
    .admin-page { overflow-x: hidden; }
    .auth-shell { width: 100%; min-height: 100svh; display: block; margin: 0; border: 0; border-radius: 0; background: var(--white); box-shadow: none; }
    .auth-story { min-height: 0; padding: max(28px, env(safe-area-inset-top)) 20px 34px; }
    .auth-story::before { width: 270px; height: 270px; right: -155px; top: -120px; }
    .auth-home-brand .brand-wordmark { font-size: 23px; }
    .auth-story-body { width: calc(100vw - 40px); max-width: calc(100vw - 40px); padding: 52px 0 28px; }
    .auth-story h1 { font-size: clamp(39px, 12vw, 54px); }
    .auth-story h1, .auth-story h1 span { width: 100%; max-width: 100%; }
    .auth-install-button { max-width: 100%; margin-top: 30px; }
    .auth-form-wrap { min-height: 0; align-items: start; padding: 42px 20px max(30px, env(safe-area-inset-bottom)); }
    .auth-form { min-height: 0; }
    .auth-form h2 { font-size: 30px; }
    .admin-shell { width: calc(100vw - 20px); max-width: calc(100vw - 20px); padding: 12px 0 max(40px, env(safe-area-inset-bottom)); }
    .admin-header { gap: 10px; margin-bottom: 30px; }
    .admin-header-actions { gap: 5px; }
    .admin-header-actions .secondary-button { padding-inline: 9px; }
    .admin-header .secondary-button { min-height: 42px; padding: 0 12px; font-size: 12px; }
    .admin-header .back-long { display: none; }
    .admin-header .back-short { display: inline; }
    .admin-brand { margin: 0; }
    .admin-brand strong { font-size: 14px; }
    .account-profile-row, .account-settings-grid { width: 100%; max-width: 100%; }
    .account-profile-row { gap: 16px; margin: 18px 0 22px; }
    .account-intro { min-width: 0; }
    .account-intro h1 { max-width: 100%; margin-top: 7px; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
    .account-intro > p:not(.eyebrow) { max-width: 100%; margin-bottom: 14px; font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
    .logout-link { margin-top: 22px; }
    .account-promise { display: block; width: 100%; max-width: 100%; padding: 16px; }
    .account-promise > span { width: 38px; height: 38px; margin-bottom: 12px; }
    .account-promise strong, .account-promise p { max-width: 100%; overflow-wrap: anywhere; }
    .account-promise p { line-height: 1.55; }
    .account-settings-grid { gap: 12px; padding-bottom: 35px; }
    .account-settings-grid .panel { height: auto; padding: 18px; }
    .account-form h2, .privacy-panel h2 { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
    .account-form > p:not(.eyebrow) { margin-bottom: 16px; line-height: 1.55; }
    .account-context-block { margin-bottom: 18px; border: 0; background: transparent; padding: 0; }
    .account-context-grid { gap: 8px; }
    .account-form .account-context-grid > label, .account-form .account-context-grid > fieldset { border: 1px solid var(--line); padding: 11px; }
    .account-form .account-context-grid fieldset label { min-height: 36px; }
    .account-form label { min-width: 0; margin: 12px 0; }
    .account-form input:not([type="checkbox"]):not([type="radio"]), .account-form select { width: 100%; min-width: 0; }
    .account-form button, .account-form .wide, .privacy-panel .wide { width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.3; }
    .account-subheading { font-size: 16px; }
    .privacy-panel ul { margin: 17px 0; }
    .privacy-panel li { line-height: 1.45; }
    .privacy-panel small { font-size: 10px; }
    .account-message { margin-bottom: 14px; font-size: 12px; line-height: 1.45; }
    .admin-page .page-header { display: flex; align-items: center; }
    .system-admin-page .page-header { display: grid; align-items: start; }
    .system-health-summary { width: 100%; margin-top: 10px; }
    .admin-section-nav { width: 100%; margin-bottom: 26px; }
    .health-grid { grid-template-columns: 1fr; }
    .health-card { min-height: 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (max-width: 350px) {
    .main-content { padding-inline: 12px; }
    .mobile-bottom-nav { left: 5px; right: 5px; }
    .mobile-bottom-nav > button > small { font-size: 8px; }
    .action-row { flex-direction: column; }
    .account-settings-grid .panel { padding: 15px; }
    .account-context-block { margin-inline: -2px; }
    .admin-header .secondary-button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) { animation: .16s ease both fade-away; }
    ::view-transition-new(root) { animation: .3s cubic-bezier(.22, 1, .36, 1) both fade-arrive; }
    @keyframes fade-away { to { opacity: .25; } }
    @keyframes fade-arrive { from { opacity: .35; transform: translateY(4px); } }
}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #e67a65;outline-offset:3px}:where(button,.btn,.button){min-height:44px}button:disabled{cursor:wait;opacity:.68;transform:none!important}@media(max-width:680px){input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px}}@media(pointer:coarse){.resource-card-action,.filter-chip,.mobile-bottom-nav button{min-height:44px}}

/* Principe directeur */
.sidebar-utility-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 5px; }
.principle-button, .theme-utility-button { min-width: 0; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; padding: 0 10px; cursor: pointer; font-size: 10px; font-weight: 850; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.principle-button { border: 1px solid rgba(255,222,139,.58); background: linear-gradient(145deg, #f2c96f, #b8862f); color: #211707; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 22px rgba(184,134,47,.22); }
.principle-button:hover { transform: translateY(-1px); border-color: #ffe3a2; background: linear-gradient(145deg, #f8d887, #c49137); box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 11px 26px rgba(184,134,47,.3); }
.principle-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.principle-button svg circle:last-child { fill: currentColor; stroke: none; }
.theme-utility-button { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); color: #b7c7c2; }
.theme-utility-button:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #fff; transform: translateY(-1px); }
.principle-button-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; }

#fourResourcesDialog { width: min(1180px, calc(100vw - 24px)); height: min(92dvh, 940px); border: 1px solid rgba(183,135,66,.28); border-radius: 28px; overflow: hidden; }
#fourResourcesDialog .principle-dialog-header { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) 38px; align-items: center; gap: 18px; padding: 24px 28px; border-bottom: 0; background: radial-gradient(circle at 12% 0, rgba(242,201,111,.25), transparent 32%), linear-gradient(135deg, #102d29, #0a1e1b); color: #f3f7f5; }
.principle-dialog-header .eyebrow { color: #e8c36c; }
#fourResourcesDialog .principle-dialog-header h2 { margin: 3px 0 6px; color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.035em; }
#fourResourcesDialog .principle-dialog-header p:last-of-type { max-width: 760px; margin: 0; color: #b8c9c3; font-size: .88rem; line-height: 1.55; }
.principle-dialog-emblem { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,224,145,.42); border-radius: 18px; background: linear-gradient(145deg, rgba(249,215,133,.22), rgba(183,135,66,.1)); color: #f1c96f; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.principle-dialog-emblem svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.principle-dialog-emblem svg circle:last-child { fill: currentColor; stroke: none; }
.principle-dialog-header .dialog-close { position: static; align-self: start; width: 38px; height: 38px; background: rgba(255,255,255,.08); color: #d8e4df; }
.principle-dialog-header .dialog-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.principle-revelation { display: grid; grid-template-columns: repeat(3, minmax(0,1fr) auto) minmax(0,1fr); align-items: center; gap: 10px; padding: 15px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(242,201,111,.09), rgba(121,184,155,.05)); }
.principle-revelation > div { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); column-gap: 9px; align-items: center; }
.principle-revelation span { grid-row: 1/3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(183,135,66,.14); color: var(--gold); font-size: .62rem; font-weight: 900; }
.principle-revelation strong { font-size: .76rem; line-height: 1.15; }
.principle-revelation small { min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: .61rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.principle-revelation > i { color: rgba(183,135,66,.6); font-style: normal; }
#fourResourcesDialog .four-resources-layout { grid-template-columns: 255px minmax(0,1fr); }
#fourResourcesDialog .four-resources-layout > nav { padding: 20px 14px; }
#fourResourcesDialog .four-resources-layout > nav a { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 7px; align-items: start; padding: 8px 9px; }
#fourResourcesDialog .four-resources-layout > nav a span { color: var(--gold); font-size: .62rem; font-weight: 900; line-height: 1.8; }
.principle-essence { margin-bottom: 28px; padding: clamp(22px, 4vw, 36px); border: 1px solid rgba(183,135,66,.2); border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(242,201,111,.16), transparent 38%), var(--paper); }
.four-resources-article .principle-essence h3 { margin: 4px 0 12px; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.035em; }
.principle-essence > p:not(.eyebrow) { max-width: 760px; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.principle-resource-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.principle-resource-strip span { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--white); padding: 10px; color: var(--ink-soft); text-align: center; font-size: .7rem; font-weight: 800; }
.four-resources-article .principle-essence blockquote { border-left-color: var(--gold); background: rgba(183,135,66,.1); }
.four-resources-article .principle-essence blockquote strong { color: var(--gold); }
html[data-theme="dark"] .principle-revelation { background: linear-gradient(90deg, rgba(242,201,111,.08), rgba(121,184,155,.04)); }
html[data-theme="dark"] .principle-resource-strip span { background: #14231f; }
html[data-theme="dark"] #fourResourcesDialog { background: #101d1a; border-color: rgba(242,201,111,.22); }

@media (max-width: 760px) {
    #fourResourcesDialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 20px; }
    #fourResourcesDialog .principle-dialog-header { grid-template-columns: 42px minmax(0,1fr) 34px; gap: 11px; padding: 16px; }
    .principle-dialog-emblem { width: 42px; height: 42px; border-radius: 13px; }
    .principle-dialog-emblem svg { width: 27px; height: 27px; }
    #fourResourcesDialog .principle-dialog-header h2 { font-size: 1.1rem; }
    #fourResourcesDialog .principle-dialog-header p:last-of-type { display: none; }
    .principle-dialog-header .dialog-close { width: 34px; height: 34px; }
    .principle-revelation { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 11px 14px; }
    .principle-revelation > i { display: none; }
    .principle-revelation small { white-space: normal; }
    #fourResourcesDialog .four-resources-layout { grid-template-columns: 1fr; }
    #fourResourcesDialog .four-resources-layout > nav { padding: 8px; }
    #fourResourcesDialog .four-resources-layout > nav a { flex-basis: 160px; }
    .principle-resource-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .four-resources-article .principle-essence { padding: 20px; }
}

/* Mesure d'impact administrateur */
.admin-impact { min-width: 0; display: grid; gap: 20px; }
.admin-impact > * { min-width: 0; }
.admin-impact-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border: 1px solid rgba(121,184,155,.2); border-radius: 22px; background: radial-gradient(circle at 88% 0, rgba(242,185,93,.14), transparent 34%), linear-gradient(135deg, #102f2b, #0c2421); color: #fff; padding: clamp(24px, 4vw, 38px); box-shadow: 0 18px 45px rgba(10,38,34,.12); }
.admin-impact-hero h2 { margin: 6px 0 9px; color: #fff; font: 700 clamp(28px, 4vw, 42px)/1.08 var(--font-heading); letter-spacing: -.04em; }
.admin-impact-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: #b9cbc5; font-size: .93rem; line-height: 1.65; }
.admin-impact-hero .eyebrow { color: #e8c36c; }
.impact-privacy-badge { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.075); color: #dce9e5; padding: 9px 13px; font-size: .78rem; font-weight: 800; }
.admin-impact-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.admin-impact-kpi { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; align-items: start; border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 19px; box-shadow: 0 12px 32px rgba(15,45,39,.055); }
.admin-impact-kpi small, .admin-impact-adoption-grid small, .impact-stat-list small { display: block; color: var(--ink-soft); font-size: .76rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.admin-impact-kpi strong { display: block; margin-top: 4px; font: 800 1.75rem/1 var(--font-heading); letter-spacing: -.04em; }
.admin-impact-kpi p, .admin-impact-adoption-grid p { margin: 9px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.admin-impact-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 16px; }
.admin-impact-layout > .panel, .admin-impact-history, .admin-impact-cohorts { padding: clamp(20px, 3vw, 28px); }
.impact-stat-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.impact-stat-list > div { min-width: 0; background: var(--white); padding: 17px; }
.impact-stat-list > div:last-child { grid-column: 1/-1; }
.impact-stat-list strong { display: block; margin-top: 7px; font: 800 1.7rem/1 var(--font-heading); }
.impact-stat-list span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .78rem; }
.impact-funnel-list { display: grid; gap: 14px; margin-top: 20px; }
.impact-funnel-list header { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.impact-funnel-list header span { min-width: 0; }
.impact-funnel-list strong, .impact-funnel-list small { display: block; }
.impact-funnel-list strong { font-size: .86rem; }
.impact-funnel-list small { margin-top: 2px; color: var(--ink-soft); font-size: .72rem; }
.impact-funnel-list b { font: 800 1rem var(--font-heading); }
.impact-progress { height: 7px; display: block; overflow: hidden; margin-top: 7px; border-radius: 999px; background: var(--mist); }
.impact-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #3e826e, #79b89b); }
.impact-week-chart { height: 220px; display: grid; grid-template-columns: repeat(8,minmax(44px,1fr)); align-items: end; gap: clamp(6px,1.5vw,18px); margin-top: 18px; }
.impact-week-chart > div { min-width: 0; display: grid; grid-template-rows: 145px auto auto auto; justify-items: center; gap: 3px; }
.impact-week-bar { width: min(28px,70%); height: 145px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, rgba(121,184,155,.08), rgba(121,184,155,.18)); }
.impact-week-bar i { width: 100%; display: block; border-radius: inherit; background: linear-gradient(180deg, #79b89b, #397562); box-shadow: 0 8px 18px rgba(57,117,98,.18); }
.impact-week-chart strong { font-size: .85rem; }
.impact-week-chart small { color: var(--ink-soft); font-size: .72rem; }
.impact-week-chart em { overflow: hidden; color: var(--ink-soft); font-size: .66rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.admin-impact-adoption-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.admin-impact-adoption-grid > article { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; padding: 20px; }
.admin-impact-adoption-grid strong { display: block; margin-top: 4px; font: 800 1.35rem/1.15 var(--font-heading); }
.admin-impact-cohorts .users-table-wrap { margin-top: 18px; }
.admin-impact-cohorts table { min-width: 620px; }
.admin-impact-cohorts td strong { display: block; }
.impact-table-detail { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .72rem; }
.impact-pending { display: inline-flex; border-radius: 999px; background: var(--mist); color: var(--ink-soft); padding: 5px 9px; font-size: .72rem; font-weight: 750; }
.admin-impact-privacy { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; align-items: start; border: 1px solid rgba(121,184,155,.24); border-radius: 17px; background: rgba(121,184,155,.08); padding: 18px 20px; }
.admin-impact-privacy > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(121,184,155,.15); color: var(--green); font-size: 1.05rem; }
.admin-impact-privacy strong { display: block; font-size: .9rem; }
.admin-impact-privacy p { margin: 5px 0 0; color: var(--ink-soft); font-size: .79rem; line-height: 1.6; }
html[data-theme="dark"] .admin-impact-hero { border-color: rgba(121,184,155,.18); background: radial-gradient(circle at 88% 0, rgba(242,185,93,.12), transparent 34%), linear-gradient(135deg, #0c2420, #071713); }
html[data-theme="dark"] .admin-impact-kpi, html[data-theme="dark"] .impact-stat-list > div { background: var(--white); }
html[data-theme="dark"] .impact-progress { background: #21342e; }

@media (max-width: 1180px) {
    .admin-impact-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-impact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .admin-impact-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
    .admin-impact-hero h2 { font-size: 30px; }
    .impact-privacy-badge { white-space: normal; }
    .admin-impact-kpi-grid, .admin-impact-adoption-grid { grid-template-columns: 1fr; }
    .impact-week-chart { gap: 5px; overflow-x: auto; }
    .impact-week-chart > div { min-width: 38px; }
    .impact-week-chart em { display: none; }
    .admin-console-content .admin-impact-cohorts .users-table-wrap { overflow: visible; }
    .system-admin-page .admin-impact-cohorts .users-table, .admin-impact-cohorts tbody { width: 100%; min-width: 0; display: block; }
    .admin-impact-cohorts thead { display: none; }
    .admin-impact-cohorts tr { display: grid; margin: 8px 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 8px 13px; }
    .admin-impact-cohorts td { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 0; }
    .admin-impact-cohorts td:last-child { border-bottom: 0; }
    .admin-impact-cohorts td::before { content: attr(data-label); color: var(--ink-soft); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
}
@media (max-width: 430px) {
    .impact-stat-list { grid-template-columns: 1fr; }
    .impact-stat-list > div:last-child { grid-column: auto; }
    .admin-impact-kpi { grid-template-columns: 40px minmax(0,1fr); padding: 16px; }
}

/* Finition d'interface — commandes et fenêtres */
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.primary-button, .secondary-button, .icon-button, .text-button, .danger-text-button, .dialog-close { font-family: inherit; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 13px; font-size: .9rem; line-height: 1.2; }
.primary-button:active, .secondary-button:active, .icon-button:active { transform: translateY(0) scale(.985); }
.primary-button:disabled, .secondary-button:disabled { box-shadow: none; }
.icon-button { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 13px; color: var(--ink); }
.icon-button .ui-icon { width: 21px; height: 21px; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 2px; font-size: .875rem; line-height: 1.25; text-decoration: none; }
.quiet-link { min-height: 44px; align-items: center; border-radius: 11px; font-size: .875rem; font-weight: 700; }
.quiet-link:hover { background: rgba(255,255,255,.055); }
.quiet-link .ui-icon { width: 18px; height: 18px; color: #b7c8c3; }
.dialog-close { top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--mist); color: var(--ink-soft); font-size: 1rem; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.dialog-close:hover { border-color: #c6d5d0; background: #e6eeea; color: var(--ink); transform: translateY(-1px); }
.dialog-close .ui-icon { width: 20px; height: 20px; }
.app-dialog { width: min(660px, calc(100vw - 28px)); border: 1px solid rgba(16,42,42,.1); border-radius: 25px; background: var(--white); }
.app-dialog form { padding: clamp(30px, 5vw, 42px); padding-top: clamp(34px, 5vw, 44px); }
.app-dialog form > h2:first-of-type { max-width: calc(100% - 54px); margin-top: 0; }
.app-dialog h2 { margin-bottom: 9px; font-size: clamp(1.55rem, 4vw, 1.85rem); line-height: 1.15; }
.dialog-intro { max-width: 570px; margin-bottom: 22px; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.app-dialog label, .dialog-field, .app-dialog legend { color: var(--ink); font-size: .875rem; font-weight: 750; line-height: 1.35; }
.app-dialog input, .app-dialog select, .app-dialog textarea { margin-top: 7px; font-size: 1rem; }
.app-dialog textarea { line-height: 1.5; }
.app-dialog fieldset { border-color: var(--line); }
.dialog-action-pair { gap: 12px; padding-top: 2px; }
.danger-text-button { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(182,85,67,.3); border-radius: 12px; background: rgba(182,85,67,.06); padding: 0 15px; font-size: .85rem; text-decoration: none; }
.danger-text-button:hover { border-color: rgba(182,85,67,.5); background: rgba(182,85,67,.11); text-decoration: none; }
.transition-step { align-items: start; }
.transition-step > span { margin-top: 2px; }
.health-disclaimer { font-size: .8rem; line-height: 1.55; }
html[data-theme="dark"] .dialog-close { border-color: #30443d; background: #21352f; color: #c0d0ca; }
html[data-theme="dark"] .dialog-close:hover { border-color: #496159; background: #29423a; color: #fff; }

@media (max-width: 680px) {
    .app-dialog { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); border-radius: 20px; }
    .app-dialog form { padding: 30px 20px max(24px, env(safe-area-inset-bottom)); }
    .app-dialog form > h2:first-of-type { max-width: calc(100% - 48px); }
    .dialog-close { top: 15px; right: 15px; }
    .dialog-intro { margin-bottom: 19px; }
    .dialog-action-pair { gap: 9px; }
    .danger-text-button { justify-content: center; }
}

/* Finition des accès, comptes et outils d'administration */
.auth-install-button { min-height: 48px; font-size: .9rem; }
.auth-install-button svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-form label, .account-form label, .create-user-panel label { font-size: .875rem; line-height: 1.35; }
.auth-form input, .account-form input, .account-form select, .create-user-panel input, .create-user-panel select { font-size: 1rem; }
.logout-link { min-height: 44px; display: inline-flex; align-items: center; }
.admin-console-nav a { min-height: 52px; grid-template-rows: 1fr; padding-block: 9px; }
.admin-console-nav a > span { grid-row: 1; }
.admin-console-nav a strong { font-size: .84rem; }
.admin-console-nav a small { display: none; }
.admin-sidebar-status strong, .admin-sidebar-account strong { font-size: .75rem; }
.admin-sidebar-status small, .admin-sidebar-account small { font-size: .68rem; line-height: 1.35; }
.admin-sidebar-account { grid-template-columns: 36px minmax(0,1fr) 44px; }
.admin-console-topbar > div:nth-child(2) p { display: none; }
.admin-sidebar-close, .admin-theme-button { width: 44px; height: 44px; min-height: 44px; }
.admin-sidebar-close svg, .admin-theme-button svg, .admin-menu-toggle svg, .admin-sidebar-account > a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-menu-toggle { min-height: 44px; font-size: .84rem; font-weight: 800; }
.admin-topbar-actions > a { min-height: 44px; font-size: .8rem; }
.admin-sidebar-account > a { width: 44px; height: 44px; }
.admin-user-tools label { font-size: .75rem; }
.admin-user-tools input { min-height: 44px; font-size: 1rem; }
.table-action { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 0 12px; font-size: .8rem; }
.table-action:hover { border-color: rgba(238,118,92,.45); background: var(--mist); }
.table-action:disabled { background: var(--mist); }
.mobile-theme-toggle, .mobile-menu { width: 44px; height: 44px; min-height: 44px; }

@media (max-width: 760px) {
    .admin-console-nav a { min-height: 56px; }
    .admin-sidebar-close { display: grid; }
}
