/* Shared visual system: native controls and scrolling retain their behavior. */
:root,.coach-app{
 --accent:#e81135;--accent-hover:#c9092b;--accent-soft:#fff0f3;--accent-ink:#b9082b;
 --ink:#1d1d1f;--muted:#62636b;--line:#e3e4e9;--bg:#f5f5f7;--white:#fff;
 --surface-subtle:#eeeef2;--radius:22px;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
 font-optical-sizing:auto;
}
body{background:var(--bg);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3{letter-spacing:-.035em;line-height:1.15;text-wrap:balance}
p{line-height:1.55}
button,a,input,select,textarea{touch-action:manipulation}
button,.btn{font-weight:600;letter-spacing:-.015em}
.btn{border-radius:14px;min-height:44px;padding:.75rem 1rem;box-shadow:none}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 12px #e8113517}
.btn.ghost{background:#fff;border-color:var(--line)}
.compact-profile .ficha-avatar-panel>.btn.ghost,.ficha-avatar-panel>.btn.ghost{background:#303238;color:#fff;border-color:#656870;min-height:44px}
.ficha-avatar-panel>.btn.ghost:hover{background:#42454c}
button:enabled:active,.btn:active{filter:brightness(.92);transition:none}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #1769cf;outline-offset:3px}
input:not([type=checkbox]):not([type=radio]),select,textarea{
 border-radius:13px;background:#f9f9fb;border-color:#d9dae1;min-height:44px;font-size:1rem;
}
input:focus,select:focus,textarea:focus{border-color:#878b96}
label{font-weight:600}
.field{gap:.5rem;margin-bottom:1.125rem}
.pill{border-radius:999px;font-size:.75rem;letter-spacing:.01em;padding:.3rem .65rem}
.card,.coach-card,.coach-kpi,.membership-plan,.compact-profile-data,.compact-profile-history,
.compact-profile-details,.compact-profile-identity,.product-suggestions{
 border:1px solid #e5e5eb;border-radius:22px;background:#fff;box-shadow:0 4px 20px #1d1d1f04;
}
.pagehead{gap:1rem;margin-bottom:1.5rem}
.pagehead h1,.coach-app .pagehead h1{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.045em}
.pagehead p{color:var(--muted);font-size:.9375rem;max-width:65ch}
.eyebrow{font-size:.6875rem;letter-spacing:.1em;font-weight:700}
.topbar,.coach-app .topbar,.public-top{
 background:rgba(245,245,247,.88);backdrop-filter:blur(24px) saturate(150%);
 -webkit-backdrop-filter:blur(24px) saturate(150%);border-bottom:1px solid #dcdde366;
}
.coach-app .sidebar{background:linear-gradient(155deg,#232327,#111114 75%);border-right:1px solid #ffffff12}
.coach-app .sidebar .brand{margin-bottom:2rem}
.coach-app .sidebar .nav{gap:.35rem}
.coach-app .sidebar .nav button{border-radius:13px;min-height:48px;font-size:.875rem}
.coach-app .sidebar .nav button.active{background:#e81135;box-shadow:0 5px 18px #0002}
.coach-app .coach-kpis{gap:1rem;margin-bottom:1.25rem}
.coach-app .coach-kpi{padding:1.25rem;min-height:160px}
.coach-kpi strong{font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.coach-app .coach-workspace,.coach-app .coach-commerce{gap:1.25rem}
.coach-app .coach-card{padding:1.25rem}
.coach-section-title h2{font-size:1.125rem}
.coach-student-row{border-radius:13px;padding:.75rem .5rem}
.coach-student-row:hover{background:#f6f6f9}
.coach-filters{gap:4px;background:#eeeef2;border-radius:10px;padding:3px;max-width:max-content}
.coach-filters button{border:0;border-radius:8px;background:transparent}
.coach-filters button.active{background:#fff!important;color:var(--ink)!important;box-shadow:0 1px 4px #0002}
.coach-dossier{border-radius:24px;border-color:#e5e5eb;box-shadow:0 8px 36px #1d1d1f06}
.coach-dossier-header{padding:1rem 1.25rem}
.coach-dossier-person h2{font-size:1.5rem;letter-spacing:-.04em}
.coach-dossier-tabs button{min-height:48px;font-size:.875rem}
.coach-dossier-panel{padding:1.25rem}
.coach-fact,.coach-contact-summary,.coach-tab-card{border-radius:16px;border-color:#e4e5eb}
.coach-fact{background:#fafafc;padding:1rem}
.coach-fact strong{font-size:1.0625rem}
.coach-full-avatar{border-radius:18px;background:#eeeef3}
.coach-dossier-footer{background:rgba(255,255,255,.93);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.compact-profile-overview,.compact-profile-services{gap:1.25rem}
.compact-profile-data,.compact-profile-history,.compact-profile-details,.compact-profile-identity{padding:1.25rem}
.compact-profile-identity{background:#fff7f9}
.ficha-avatar-panel{border-radius:24px;background:linear-gradient(145deg,#29292d,#151518)}
.store-hero{border-radius:24px;background:linear-gradient(130deg,#25252a,#121215);padding:2rem}
.store-hero h2{font-size:clamp(1.6rem,3vw,2.25rem);letter-spacing:-.04em}
.store-search input{background:#fff;border-radius:16px;min-height:50px}
.store-categories button{border-radius:999px;min-height:44px}
.store-grid{gap:1.125rem}
.store-card{border-radius:22px;border-color:#e3e4ea;overflow:hidden;background:#fff}
.store-card-info{padding:1rem}
.store-card-info h3{line-height:1.25;letter-spacing:-.025em}
.store-card .btn{border-radius:12px}
.store-guide-redesign{background:#fff;border-radius:24px;padding:1.5rem}
.store-guide-symbol{border-radius:14px;background:#fff0f3}
.store-guide-steps{gap:1.5rem}
.membership-plan{padding:1.5rem}
.membership-plan h2{font-size:1.5rem}
.membership-plan.premium{border-color:#d9b58b;background:linear-gradient(130deg,#fff,#fff9f0)}
.week-toolbar{gap:1rem}
.week-day{border-radius:16px}
.week-hero{border-radius:24px;background:linear-gradient(120deg,#fff9fb,#fce3eb);border-color:#efd6df}
.week-hero h2{font-size:clamp(1.6rem,3vw,2.5rem);letter-spacing:-.045em;line-height:1.1}
.week-hero-content{padding:1.5rem}
.week-hero-actions .primary{border-radius:14px}
.week-hero-content>p:not(.week-date){font-size:.8125rem}
.week-notes,.week-progress,.week-next{border-radius:18px}
.mode-layout,.mode-exercise,.mode-media{border-radius:20px}
.chat-main .chat-conversation,.chat-inbox{border-radius:22px;border-color:#e3e4eb}
.chat-main .chat-messages{background:#f5f5f8}
.chat-message{border-radius:17px;line-height:1.5}
.chat-main .chat-message.own{background:#e81135}
.chat-main .chat-compose textarea{background:#f4f4f7;border-radius:16px}
.chat-main .chat-compose .btn{border-radius:14px}
.chat-main .chat-thread-header h2{letter-spacing:-.025em}
.public-nav{gap:.5rem}
.public-nav .btn{border-radius:999px}
dialog{
 border:1px solid #ffffffb3;border-radius:26px;background:#fff;padding:1.5rem;
 box-shadow:0 24px 100px #0003;max-height:calc(100dvh - 2rem);overscroll-behavior:contain;
}
dialog::backdrop{background:#16162066;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modalhead{margin-bottom:1.5rem;gap:1rem}
.modalhead h2{font-size:1.5rem;letter-spacing:-.04em}
.modalhead>.btn{border-radius:50%;padding:.65rem;min-width:44px}
.modalfoot{gap:.75rem;padding-top:1rem;margin-top:1.25rem}
#toast{border-radius:16px;box-shadow:0 8px 35px #0002}
@media(min-width:768px){
 .coach-app .main{padding-bottom:2rem}
 .coach-app .topbar{margin-bottom:2rem}
 .public-top{border-radius:0 0 22px 22px}
}
@media(max-width:767px){
 .coach-app .main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 .coach-app .main.chat-main{padding-bottom:var(--chat-bottom-space,calc(100px + env(safe-area-inset-bottom)))}
 .coach-app .topbar{background:rgba(245,245,247,.88);border:0;margin-bottom:1rem}
 .coach-app .coach-card{padding:1rem}
 .coach-app .coach-kpis{gap:.75rem}
 .coach-app .coach-kpi{padding:1rem;min-height:124px;border-radius:18px}
 .coach-app .coach-kpi strong{font-size:2rem}
 .coach-app .coach-workspace,.coach-app .coach-commerce{gap:1rem}
 .bottomnav,.coach-app .coach-bottomnav{
  left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));height:70px;
  padding:5px 6px;border-radius:24px;border:1px solid #fff9;
  background:rgba(255,255,255,.91);backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);box-shadow:0 6px 28px #17172418;
 }
 .bottomnav button,.coach-app .coach-bottomnav button{border-radius:17px;font-size:.625rem;min-height:54px}
 .bottomnav button.active,.coach-app .coach-bottomnav button.active{background:#fff0f3;color:#b9082b}
 .coach-dossier{border-radius:0;box-shadow:none}
 .coach-dossier-panel{padding:1rem}
 .coach-fact{padding:.75rem}
 .coach-dossier-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e3e4eb}
 .store-grid{gap:.75rem}
 .store-card{border-radius:18px}
 .store-card-info{padding:.75rem}
 .store-card-info h3{font-size:.9375rem}
 .store-card .btn{font-size:.8125rem;padding:.65rem .5rem}
 .store-hero,.store-guide-redesign{padding:1.25rem;border-radius:22px}
 .week-hero,.coach-dossier .week-hero{border-radius:22px}
 .week-hero-content{padding:1rem;background:transparent}
 .week-hero h2{font-size:1.75rem}
 .week-hero-actions .primary,.week-hero-actions .ghost{min-height:46px;font-size:.875rem;border-radius:13px}
 .week-hero-badges>span{font-size:.75rem;padding:.45rem .65rem}
 .compact-profile-data,.compact-profile-history,.compact-profile-details,.compact-profile-identity{padding:1rem}
 dialog{width:calc(100% - 1rem);padding:1.25rem;border-radius:24px;max-height:calc(100dvh - 1.5rem)}
 .modalhead h2{font-size:1.375rem}
 .modalfoot .btn{flex:1;justify-content:center;min-width:0}
 .chat-keyboard-open .coach-app .main.chat-main{padding-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
@media(prefers-reduced-transparency:reduce){
 .topbar,.coach-app .topbar,.public-top,.bottomnav,.coach-app .coach-bottomnav,.coach-dossier-footer{
  background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:#161620a6}
}
@media(prefers-contrast:more){
 :root,.coach-app{--muted:#42434b;--line:#868894}
 .card,.coach-card,.coach-kpi,.coach-fact,.store-card,.membership-plan,dialog{border-color:#868894}
 .topbar,.coach-app .topbar,.bottomnav,.coach-app .coach-bottomnav,.coach-dossier-footer{background:#fff;border-color:#868894;backdrop-filter:none}
}
/* Search fields sit on one solid surface, rather than layered input fills. */
.coach-search input,.coach-global-search input,.store-search input{background:transparent;border:0;box-shadow:none}
.coach-search,.coach-global-search{background:#eeeef2;border-radius:13px}
.coach-filters button{min-height:44px}
@media(max-width:767px){.bottomnav button,.coach-app .coach-bottomnav button{font-size:.6875rem}}
