/* ==========================================================================
   Fit4Success Portal – coach area, client portal, login
   Brand: ink #0B0D10 · navy #274C77 · blue #6096BA · accent #589EF4 · light #E7ECEF
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #0B0D10;
	--ink-2: #151A21;
	--ink-3: #222934;
	--navy: #274C77;
	--navy-2: #1D3A5C;
	--blue: #6096BA;
	--accent: #589EF4;
	--light: #E7ECEF;
	--bg: #F3F5F7;
	--surface: #FFFFFF;
	--line: #E2E7EB;
	--line-2: #CFD7DE;
	--text: #0B0D10;
	--text-2: #39414B;
	--muted: #5E6670;
	--ok: #23784A;
	--ok-bg: #E4F3EA;
	--warn: #9A6412;
	--warn-bg: #FCF1DC;
	--bad: #B93A30;
	--bad-bg: #FBE9E7;
	/* session types */
	--t-training: #274C77;
	--t-call: #4F86B0;
	--t-analyse: #7C5CC4;
	--t-bia: #C77D1A;
	--t-checkin: #23784A;
	--t-event: #0B0D10;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(11, 13, 16, .04), 0 10px 30px -12px rgba(11, 13, 16, .12);
	--shadow-lg: 0 24px 60px -20px rgba(11, 13, 16, .35);
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Raleway", "Montserrat", system-ui, sans-serif;
	--sidebar: 264px;
	--focus: 0 0 0 3px rgba(88, 158, 244, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.f4s { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }
small { font-size: .82em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { flex: none; width: 20px; height: 20px; }
.icon.inline { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.accent { color: var(--navy); font-weight: 600; }
.d-block { display: block; }
.grow { flex: 1 1 auto; min-width: 0; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ Buttons */
.btn { --b: var(--surface); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .62em 1.1em; border-radius: 999px; border: 1px solid var(--line-2); background: var(--b); color: var(--c); font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--ink); color: var(--c); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --b: var(--navy); --c: #fff; border-color: var(--navy); }
.btn-primary:hover { --b: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 8px 20px -10px rgba(39, 76, 119, .8); }
.btn-success { --b: var(--ok); --c: #fff; border-color: var(--ok); }
.btn-success:hover { --b: #1B5F3A; border-color: #1B5F3A; }
.btn-danger { --b: var(--bad); --c: #fff; border-color: var(--bad); }
.btn-danger:hover { --b: #962E26; border-color: #962E26; }
.btn-ghost { --b: transparent; border-color: transparent; }
.btn-ghost:hover { --b: var(--light); border-color: transparent; }
.btn-ghost.danger, .danger { --c: var(--bad); }
.btn-light { --b: #fff; --c: var(--ink); border-color: #fff; }
.btn-light:hover { --b: var(--light); border-color: var(--light); }
.btn-outline-light { --b: transparent; --c: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { --b: rgba(255, 255, 255, .12); border-color: #fff; --c: #fff; }
.btn-sm { padding: .45em .85em; font-size: .84rem; }
.btn-lg { padding: .85em 1.4em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; text-decoration: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--light); color: var(--ink); }
.icon-btn-dark { color: rgba(255, 255, 255, .75); }
.icon-btn-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.link { font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3em; }
.link-light { color: #fff; }
.link-light:hover { color: var(--accent); }

/* ------------------------------------------------------------------- Pills */
.pill { display: inline-flex; align-items: center; gap: .3em; padding: .2em .65em; border-radius: 999px; background: var(--light); color: var(--text-2); font-size: .75rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.pill-aktiv, .pill-confirmed, .pill-done { background: var(--ok-bg); color: var(--ok); }
.pill-pausiert, .pill-requested, .pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-archiviert, .pill-cancelled, .pill-declined { background: #EEF0F2; color: var(--muted); }
.pill-new { background: var(--accent); color: #fff; }
.pill-pinned { background: var(--ink); color: #fff; }
.pill-personal { background: #E8EFF7; color: var(--navy); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }

/* ------------------------------------------------------------------- Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 16px; }
.card-dark { background: var(--ink); color: rgba(255, 255, 255, .85); border-color: var(--ink); }
.card-dark h2, .card-dark h3 { color: #fff; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.span-all { grid-column: 1 / -1; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--line-2); }
.empty p { margin: 0; max-width: 42ch; }

/* ----------------------------------------------------------------- Page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .lead { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--muted); }

/* --------------------------------------------------------------------- Flash */
.flashes { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .92rem; animation: drop .3s ease-out; }
.flash span { flex: 1; }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-warning { background: var(--warn-bg); color: var(--warn); }
.flash-close { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ===================================================================== COACH */
.coach-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: rgba(255, 255, 255, .7); padding: 26px 16px 18px; overflow-y: auto; }
.sidebar-logo { padding: 0 10px 22px; }
.sidebar-logo img { width: 164px; height: auto; }
.sidebar-label { margin: 14px 12px 8px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: rgba(88, 158, 244, .14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav a.active .icon { color: var(--accent); }
.side-nav.small a { font-size: .86rem; padding: 8px 12px; }
.side-bottom { margin-top: auto; padding-top: 20px; }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user .icon-btn { color: rgba(255, 255, 255, .6); }
.side-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-user-name { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.side-user-name strong { color: #fff; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-name small { color: rgba(255, 255, 255, .45); }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; flex: none; }
.avatar-light { background: rgba(255, 255, 255, .12); }
.avatar-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
.avatar-xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; background: linear-gradient(135deg, var(--navy), var(--accent)); }

.coach-main { min-width: 0; display: flex; flex-direction: column; }
.coach-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(243, 245, 247, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.menu-toggle, .top-logo { display: none; }
.top-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; }
.top-search .icon { position: absolute; left: 14px; color: var(--muted); width: 18px; }
.top-search input { width: 100%; padding: .62em 1em .62em 2.6em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.top-actions { margin-left: auto; display: flex; gap: 10px; }
.coach-content { padding: 30px 32px 60px; max-width: 1360px; width: 100%; }
.sidebar-backdrop { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; display: grid; gap: 2px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); color: var(--ink); }
.stat strong { font-family: var(--display); font-size: 2rem; line-height: 1.1; margin-top: 10px; }
.stat small { color: var(--muted); font-weight: 600; }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #EAF1F8; color: var(--navy); }
.stat-alert .stat-icon { background: var(--warn-bg); color: var(--warn); }
.stat-alert strong { color: var(--warn); }

.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list.compact > li { padding: 9px 0; }
.list strong { display: block; font-size: .93rem; }
.list small { display: block; color: var(--muted); }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-day { margin: 18px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agenda-day:first-child { margin-top: 0; }
.agenda-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--tc, var(--navy)); }
.agenda-time { display: grid; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; min-width: 52px; }
.agenda-time small { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: .72rem; }
.agenda-main { flex: 1; min-width: 0; }
.agenda-main strong, .agenda-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-main small { color: var(--muted); }
.type-training { --tc: var(--t-training); }
.type-call { --tc: var(--t-call); }
.type-analyse { --tc: var(--t-analyse); }
.type-bia { --tc: var(--t-bia); }
.type-checkin { --tc: var(--t-checkin); }
.type-event { --tc: var(--t-event); }

.request { align-items: flex-start !important; flex-wrap: wrap; }
.request > div:first-child { flex: 1 1 220px; }
.request q { display: block; margin-top: 6px; font-size: .86rem; color: var(--text-2); font-style: italic; }
.request-actions { display: flex; gap: 6px; }
.request-actions form { margin: 0; }
.mail-row { gap: 10px !important; }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.mail-dot.fail { background: var(--bad); }
.mail-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.segmented a { padding: .45em .95em; border-radius: 999px; font-weight: 600; font-size: .86rem; text-decoration: none; color: var(--text-2); }
.segmented a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.segmented a.active { background: var(--ink); color: #fff; }
.segmented a.active span { color: rgba(255, 255, 255, .6); }
.search-inline { position: relative; display: flex; align-items: center; margin-left: auto; }
.search-inline .icon { position: absolute; left: 12px; width: 17px; color: var(--muted); pointer-events: none; }
.search-inline input { padding: .55em 1em .55em 2.4em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-width: 240px; }
.select-inline select { padding: .55em 2.2em .55em 1em; border: 1px solid var(--line); border-radius: 999px; background-color: var(--surface); }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.client-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.client-card:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--ink); }
.client-card-main { display: grid; gap: 2px; min-width: 0; }
.client-card-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.client-card-meta { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--text-2); }
.client-card-meta .icon { color: var(--blue); }

.client-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.client-head-main { flex: 1 1 280px; min-width: 0; }
.client-head .contact { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; font-size: .88rem; }
.client-head .contact a { text-decoration: none; font-weight: 600; }
.client-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

.session-row { gap: 14px !important; }
.session-row.status-cancelled strong, .session-row.status-declined strong { text-decoration: line-through; color: var(--muted); }
.sessions.past .session-row { opacity: .75; }
.date-badge { display: grid; place-items: center; width: 50px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--tc, var(--navy)) 10%, white); color: var(--tc, var(--navy)); flex: none; line-height: 1; border: 1px solid color-mix(in srgb, var(--tc, var(--navy)) 18%, white); }
.date-badge b { font-family: var(--display); font-size: 1.3rem; }
.date-badge small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: inherit; }
.status-requested .date-badge { border-style: dashed; }
.row-actions { display: flex; gap: 2px; }
.row-actions form { margin: 0; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-item { border-top: 1px solid var(--line); }
.file-item:first-child { border-top: 0; }
.file-item summary { display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; list-style: none; border-radius: 12px; }
.file-item summary::-webkit-details-marker { display: none; }
.file-item summary:hover { background: var(--bg); }
.file-item small { display: block; color: var(--muted); }
.file-item.is-hidden .file-icon { opacity: .45; }
.file-edit { padding: 6px 4px 18px 56px; display: grid; gap: 10px; }
.file-delete { margin: 0; }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #EAF1F8; color: var(--navy); flex: none; }
.cat-trainingsplan { background: #E8EFF7; color: var(--t-training); }
.cat-ernaehrung { background: #E4F3EA; color: var(--t-checkin); }
.cat-analyse { background: #EFEAFA; color: var(--t-analyse); }
.cat-video { background: #FBEAE8; color: var(--bad); }
.cat-wissen { background: #FCF1DC; color: var(--t-bia); }
.cat-rechnung, .cat-sonstiges { background: var(--light); color: var(--text-2); }
.file-mini { gap: 10px !important; }
.file-mini .icon { color: var(--blue); }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th small { text-transform: none; letter-spacing: 0; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { width: 1%; }
.table form { margin: 0; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 18px; font-size: .92rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.facts-light dt { color: rgba(255, 255, 255, .5); }
.facts-light dd { color: #fff; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.inline-actions input[type=text] { padding: .55em .9em; border: 1px solid var(--line-2); border-radius: 999px; }
.danger-zone { border-color: #F2C9C4; }
.danger-zone h2 { color: var(--bad); }
.news-row { align-items: flex-start !important; }
.prose { color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }
.prose.small { font-size: .88rem; margin-top: 6px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--tc); }
.legend i.ev-type-training { --tc: var(--t-training); } .legend i.ev-type-call { --tc: var(--t-call); } .legend i.ev-type-analyse { --tc: var(--t-analyse); }
.legend i.ev-type-bia { --tc: var(--t-bia); } .legend i.ev-type-checkin { --tc: var(--t-checkin); } .legend i.ev-type-event { --tc: var(--t-event); }
.legend i.legend-requested { background: repeating-linear-gradient(45deg, var(--warn-bg), var(--warn-bg) 3px, #fff 3px, #fff 6px); border: 1px dashed var(--warn); }

/* --------------------------------------------------------------------- Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field > legend { font-size: .8rem; font-weight: 700; color: var(--text-2); padding: 0; }
.field > span small, .field > legend small { font-weight: 500; color: var(--muted); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { width: 100%; padding: .7em .9em; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field input:disabled { background: var(--bg); color: var(--muted); }
.field.internal textarea { background: #FFFBEF; border-color: #EBDDB5; }
.field .hint { color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6670' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.4em !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-section { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; }
.form-section:first-child { margin-top: 0; padding-top: 0; border: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.check span { display: grid; font-size: .9rem; }
.check small { color: var(--muted); }
.radio { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500 !important; color: var(--text) !important; }
.radio input { accent-color: var(--navy); }
.scope { padding: 12px 14px; background: #EEF4FB; border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.scope legend { float: left; width: 100%; margin-bottom: 2px; }
.recipients { display: flex; flex-wrap: wrap; gap: 8px; }
.recipients legend { width: 100%; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .4em .85em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; font-weight: 600; cursor: pointer; background: var(--surface); text-decoration: none; color: var(--text-2); }
.chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { accent-color: var(--accent); margin: 0; }
.chip span { color: var(--muted); font-weight: 500; }
.chip-all { border-style: dashed; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: var(--radius); text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: #EEF5FE; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 30px; height: 30px; color: var(--blue); }
.dropzone small { color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin: 10px 0; }
.copy-row input { flex: 1; min-width: 0; padding: .45em .8em; border: 1px solid var(--line-2); border-radius: 10px; font-size: .8rem; background: var(--bg); }

/* -------------------------------------------------------------------- Dialog */
.dialog { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--text); }
.dialog::backdrop { background: rgba(11, 13, 16, .55); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog-card { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.2rem; }
.dialog-body { padding: 20px 22px; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.dialog-foot-left { margin-right: auto; display: flex; gap: 4px; }
.ev-when, .ev-where { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ev-note { white-space: pre-line; color: var(--text-2); background: var(--bg); padding: 12px 14px; border-radius: 12px; }
.ev-note:empty { display: none; }

/* ==================================================================== PORTAL */
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--accent); color: #fff; font-size: .88rem; text-align: center; }
.preview-bar a { color: #fff; font-weight: 700; }
.portal-top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.portal-top-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.portal-logo img { width: 148px; height: auto; }
.portal-nav { display: flex; gap: 4px; flex: 1; }
.portal-nav a { display: inline-flex; align-items: center; padding: .55em 1em; border-radius: 999px; color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.portal-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.portal-nav a.active { color: var(--ink); background: #fff; }
.portal-user { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.portal-content { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; }
.portal-footer { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 24px; font-size: .8rem; color: var(--muted); }
.portal-footer a { color: var(--muted); }
.tabbar { display: none; }

.portal-greeting { margin-bottom: 18px; }
.portal-greeting p { margin: 6px 0 0; color: var(--muted); }
.portal-greeting strong { color: var(--ink); }

.hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 340px; padding: 36px; margin-bottom: 24px; border-radius: 28px; overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; box-shadow: var(--shadow-lg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center 30% / cover no-repeat; opacity: .55; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 13, 16, .96) 0%, rgba(11, 13, 16, .82) 45%, rgba(39, 76, 119, .45) 100%); }
.hero-content { max-width: 620px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: .35em .9em .35em .7em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(88, 158, 244, .25); }
.live-dot.is-live { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .3); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
.hero-title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; margin-bottom: 20px; }
.hero-when { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.hero-date { display: grid; place-items: center; width: 76px; height: 82px; border-radius: 20px; background: #fff; color: var(--ink); line-height: 1; flex: none; }
.hero-date b { font-family: var(--display); font-size: 2.1rem; }
.hero-date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.hero-meta { display: grid; gap: 4px; }
.hero-meta strong { font-size: 1.15rem; }
.hero-meta span { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-weight: 500; }
.hero-note { max-width: 52ch; margin: 0 0 18px; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown { display: flex; gap: 10px; flex: none; }
.countdown div { display: grid; place-items: center; width: 78px; padding: 14px 6px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.countdown b { font-family: var(--display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.hero.type-analyse::after { background: linear-gradient(100deg, rgba(11, 13, 16, .96) 0%, rgba(11, 13, 16, .82) 45%, rgba(124, 92, 196, .45) 100%); }
.hero.type-event::after { background: linear-gradient(100deg, rgba(11, 13, 16, .96) 0%, rgba(11, 13, 16, .8) 45%, rgba(88, 158, 244, .5) 100%); }
.hero-empty { min-height: 260px; }

.portal-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.portal-grid-cal { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); }
.file-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .15s; }
.file-tile:hover { background: var(--bg); color: var(--ink); }
.file-tile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tile small { color: var(--muted); }
.news-mini a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.news-mini a:hover strong { color: var(--navy); }
.news-mini .excerpt { color: var(--text-2); font-size: .88rem; }
.news-mini > li { display: block !important; }
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; counter-reset: p; }
.phases li { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: .86rem; color: rgba(255, 255, 255, .55); }
.phases li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); font-size: .75rem; }
.phases li.done span { background: rgba(88, 158, 244, .25); border-color: transparent; color: #fff; }
.phases li.current { background: var(--accent); color: #fff; }
.phases li.current span { background: #fff; color: var(--ink); border-color: #fff; }
.focus { white-space: pre-line; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.mini-metrics div { display: grid; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.mini-metrics small { color: rgba(255, 255, 255, .55); font-weight: 600; }
.mini-metrics b { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.mini-metrics em { font-style: normal; font-size: .78rem; color: var(--accent); font-weight: 600; }

.chips-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.file-group { margin-bottom: 28px; scroll-margin-top: 90px; }
.file-group h2 { margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.file-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.file-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.file-card.is-new { border-color: color-mix(in srgb, var(--accent) 50%, white); }
.file-card:target { box-shadow: var(--focus), var(--shadow); }
.file-card h3 { font-size: 1rem; }
.file-card p { margin: 6px 0 0; font-size: .88rem; color: var(--text-2); }
.file-card small { display: block; margin-top: 8px; color: var(--muted); }
.file-card-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }

.news-feed { display: grid; gap: 16px; max-width: 760px; }
.news-card { scroll-margin-top: 90px; }
.news-card.is-unread { border-left: 4px solid var(--accent); }
.news-card.is-pinned { background: linear-gradient(180deg, #F5F9FE, #fff); }
.news-card header { margin-bottom: 10px; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: .8rem; color: var(--muted); }
.news-card h2 { font-size: 1.3rem; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { display: grid; gap: 2px; padding: 18px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy); }
.metric-label { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.metric-value small { font-size: .9rem; color: var(--muted); }
.metric-delta { font-weight: 700; font-size: .88rem; }
.metric-delta small { font-weight: 500; color: var(--muted); }
.metric-good { color: var(--ok); }
.metric-bad { color: var(--warn); }
.spark { width: 100%; height: 56px; margin-top: 10px; overflow: visible; }

/* ---------------------------------------------------------------- Calendar */
.calendar-card { padding: 18px; }
.f4s-calendar { --fc-border-color: var(--line); --fc-today-bg-color: #F0F6FE; --fc-page-bg-color: #fff; --fc-neutral-bg-color: var(--bg); --fc-event-border-color: transparent; --fc-now-indicator-color: var(--bad); --fc-small-font-size: .78rem; font-size: .86rem; }
.f4s-calendar .fc-daygrid-day-frame { min-height: 92px; }
.f4s-calendar .fc-toolbar { flex-wrap: wrap; gap: 10px; }
.f4s-calendar .fc-toolbar-title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.f4s-calendar .fc-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px !important; padding: .42em .9em; font-weight: 600; font-size: .84rem; text-transform: none; box-shadow: none !important; margin-left: 4px !important; }
.f4s-calendar .fc-button:hover { background: var(--light); color: var(--ink); border-color: var(--line-2); }
.f4s-calendar .fc-button-primary:not(:disabled).fc-button-active, .f4s-calendar .fc-button-primary:not(:disabled):active { background: var(--ink); color: #fff; border-color: var(--ink); }
.f4s-calendar .fc-button:disabled { opacity: .45; }
.f4s-calendar .fc-col-header-cell-cushion, .f4s-calendar .fc-daygrid-day-number { color: var(--text-2); text-decoration: none; font-weight: 600; }
.f4s-calendar .fc-col-header-cell { padding: 6px 0; background: var(--bg); }
.f4s-calendar .fc-scrollgrid { border-radius: 14px; overflow: hidden; }
.f4s-calendar .fc-event { --tc: var(--t-training); background: var(--tc); border-radius: 8px; padding: 2px 4px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.f4s-calendar .fc-event .fc-event-main { color: #fff; }
.f4s-calendar .fc-daygrid-dot-event { background: transparent; box-shadow: none; }
.f4s-calendar .fc-daygrid-block-event { margin: 1px 3px 2px !important; padding: 3px 6px; }
.f4s-calendar .fc-daygrid-block-event .fc-event-main-frame { display: block; white-space: normal; line-height: 1.25; font-size: .76rem; }
.f4s-calendar .fc-daygrid-block-event .fc-event-time { display: block; font-weight: 700; opacity: .85; }
.f4s-calendar .fc-daygrid-block-event .fc-event-title { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.f4s-calendar .fc-daygrid-dot-event .fc-event-title { font-weight: 600; }
.f4s-calendar .fc-daygrid-event-dot { border-color: var(--tc); }
.f4s-calendar .fc-list-event-dot { border-color: var(--tc); }
.f4s-calendar .fc-list-event { background: transparent; box-shadow: none; }
.f4s-calendar .fc-list-day-cushion { background: var(--bg); }
.ev-type-training { --tc: var(--t-training) !important; } .ev-type-call { --tc: var(--t-call) !important; } .ev-type-analyse { --tc: var(--t-analyse) !important; }
.ev-type-bia { --tc: var(--t-bia) !important; } .ev-type-checkin { --tc: var(--t-checkin) !important; } .ev-type-event { --tc: var(--t-event) !important; }
.f4s-calendar .ev-status-requested { background: repeating-linear-gradient(45deg, var(--warn-bg), var(--warn-bg) 6px, #FFF8EA 6px, #FFF8EA 12px) !important; border: 1px dashed var(--warn) !important; }
.f4s-calendar .ev-status-requested .fc-event-main { color: var(--warn) !important; }
.f4s-calendar .ev-status-cancelled, .f4s-calendar .ev-status-declined { opacity: .45; text-decoration: line-through; }
.f4s-calendar .ev-status-done { opacity: .7; }
.f4s-calendar .ev-group { box-shadow: inset 0 0 0 2px var(--accent); }
.f4s-calendar .fc-timegrid-slot { height: 2.4em; }
.f4s-calendar .fc-highlight { background: rgba(88, 158, 244, .18); }

/* ===================================================================== AUTH */
body.auth { background: var(--surface); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover; opacity: .55; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(11, 13, 16, .55), rgba(11, 13, 16, .92) 70%), linear-gradient(0deg, rgba(39, 76, 119, .35), transparent); }
.auth-logo img { width: 180px; height: auto; }
.auth-claim h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; margin: 8px 0 16px; }
.auth-claim h2 span { color: var(--accent); }
.auth-claim p { max-width: 40ch; color: rgba(255, 255, 255, .8); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .lead { color: var(--muted); margin: 8px 0 22px; }
.auth-card .flash { margin-bottom: 16px; }
.auth-logo-mobile { display: none; margin-bottom: 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs button { border: 0; background: transparent; padding: .55em .5em; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--muted); }
.auth-tabs button.active { background: var(--ink); color: #fff; }
.auth-form { display: grid; gap: 14px; }
.auth-form .muted { margin: 0; }
.auth-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #EAF1F8; color: var(--navy); margin-bottom: 18px; }
.auth-icon .icon { width: 28px; height: 28px; }
.auth-foot { margin-top: 22px; font-size: .82rem; color: var(--muted); }
.auth-foot a { color: var(--muted); }

.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: drop .2s ease-out; }
.toast.error { background: var(--bad); }

/* ================================================================ Responsive */
@media (max-width: 1100px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-2, .grid-wide-left, .portal-grid, .portal-grid-cal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.coach-shell { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s ease; }
	.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
	.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(11, 13, 16, .5); }
	.menu-toggle, .top-logo { display: inline-grid; }
	.top-logo img { width: 112px; height: auto; }
	.coach-top { padding: 10px 16px; gap: 8px; }
	.top-search { display: none; }
	.coach-content { padding: 22px 16px 60px; }
	.auth-shell { grid-template-columns: minmax(0, 1fr); }
	.auth-visual { display: none; }
	.auth-logo-mobile { display: block; }
}
@media (max-width: 760px) {
	body.f4s { font-size: 14.5px; }
	.portal-top-inner { padding: 12px 16px; }
	.portal-nav { display: none; }
	.portal-content { padding: 20px 16px 110px; }
	.portal-footer { padding-bottom: 100px; }
	.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; padding: 6px; border-radius: 22px; background: rgba(11, 13, 16, .94); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); }
	.tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; border-radius: 16px; color: rgba(255, 255, 255, .55); text-decoration: none; font-size: .66rem; font-weight: 600; }
	.tabbar a.active { color: #fff; background: rgba(255, 255, 255, .1); }
	.tabbar a.active .icon { color: var(--accent); }
	.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
	.hero { flex-direction: column; align-items: stretch; padding: 24px 20px; min-height: 0; border-radius: 22px; }
	.hero-when { gap: 14px; }
	.hero-date { width: 64px; height: 70px; border-radius: 16px; }
	.hero-date b { font-size: 1.7rem; }
	.countdown { justify-content: stretch; }
	.countdown div { flex: 1; width: auto; padding: 10px 4px; }
	.countdown b { font-size: 1.5rem; }
	.hero-actions .btn { flex: 1 1 auto; }
	.form-grid { grid-template-columns: minmax(0, 1fr); }
	.stats { gap: 10px; }
	.stat { padding: 14px; }
	.stat strong { font-size: 1.6rem; }
	.page-head { margin-bottom: 18px; }
	.search-inline { margin-left: 0; width: 100%; }
	.search-inline input { min-width: 0; width: 100%; }
	.client-grid, .file-cards { grid-template-columns: minmax(0, 1fr); }
	.card { padding: 18px; border-radius: 16px; }
	.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; }
	.dialog-card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
	.f4s-calendar { min-height: 0; }
	.f4s-calendar .fc-toolbar-title { font-size: 1.05rem; }
	.f4s-calendar .fc-header-toolbar { flex-direction: column; align-items: stretch; }
	.f4s-calendar .fc-toolbar-chunk { display: flex; justify-content: space-between; }
	.client-head { align-items: flex-start; }
	.file-edit { padding-left: 4px; }
	.phases li { padding: 10px 8px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
