/* E-KORONER PWA v2 | phone-first shell on all screens, including desktop browsers */
:root{--teal:#009f93;--teal-dark:#00887e;--navy:#092a51;--ink:#173653;--light:#f6fbfc;--line:#e1ecf1;--shadow:0 4px 18px rgba(13,61,85,.055);--radius:19px;scroll-padding-top:90px}
html{min-height:100%;background:#eaf5f7}
body.ek-v2{min-height:100dvh;margin:0;background:radial-gradient(circle at 16% 10%,#d9f4f1 0,transparent 31%),radial-gradient(circle at 91% 80%,#e3eefa 0,transparent 34%),#eaf3f7;color:var(--ink);line-height:1.55}
.ek-v2 .phone-shell{max-width:448px;width:100%;margin:0 auto;min-height:100dvh;position:relative;display:flex;flex-direction:column;background:#f8fbfd;box-shadow:0 18px 80px rgba(13,64,84,.21);isolation:isolate}
.ek-v2 .mobile-app-header{height:72px;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 19px;background:#fff;border-bottom:1px solid #e7eff1;position:sticky;top:0;z-index:40;padding-top:max(10px,env(safe-area-inset-top));box-sizing:content-box;height:52px;min-height:52px}
.ek-v2 .header-identity{display:flex;align-items:center;gap:10px;min-width:0;color:var(--navy)}
.ek-v2 .brand-heart{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#effcfb;flex-shrink:0}
.ek-v2 .brand-heart img{width:37px;height:37px;object-fit:contain}
.ek-v2 .header-identity strong{display:block;color:#092c4e;font-size:15px;font-weight:900;line-height:1.2;letter-spacing:-.03em}
.ek-v2 .header-identity small{display:block;font-size:10px;color:#678195;margin-top:3px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.ek-v2 .header-profile{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#fff;background:linear-gradient(145deg,#14bbaa,#007d85);font-weight:850;flex-shrink:0;box-shadow:0 3px 12px #14ad9826}
.ek-v2 .header-action{font-size:12px;white-space:nowrap;border:1px solid #bce9e1;border-radius:12px;color:#007e7b;background:#eafaf6;padding:8px 12px;font-weight:850}
.ek-v2 .phone-content{padding:20px 17px calc(106px + env(safe-area-inset-bottom));max-width:none;width:100%;margin:0;min-width:0;flex:1;overflow:visible}
.ek-v2 .phone-tabbar{position:fixed;z-index:60;bottom:0;left:50%;right:auto;transform:translateX(-50%);display:flex;width:min(100%,448px);min-height:72px;height:auto;margin:0;align-items:center;justify-content:space-between;gap:1px;padding:6px 8px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2edf2;box-shadow:0 -8px 28px #133c5614}
.ek-v2 .phone-tabbar .nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;gap:3px;padding:7px 0;min-width:0;border-radius:13px;font-size:10px;font-weight:750;color:#8798a7;line-height:1.15;letter-spacing:-.02em;background:transparent}
.ek-v2 .phone-tabbar .nav-item .nav-icon{font-size:24px;font-weight:500;width:34px;height:29px;line-height:1}
.ek-v2 .phone-tabbar .nav-item.active{color:#008d82;background:transparent}
.ek-v2 .phone-tabbar .nav-item.active .nav-icon{background:#dbf7f0;color:#008c82;border-radius:10px;font-weight:850}
.ek-v2 .phone-tabbar .nav-item:focus-visible,.ek-v2 a:focus-visible,.ek-v2 button:focus-visible{outline:3px solid #55b8ca;outline-offset:2px}
.ek-v2 .public-tabbar{justify-content:space-around}
.ek-v2 .phone-desktop-hint{position:fixed;top:45%;left:calc(50% + 265px);max-width:195px;color:#4b7890;display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:12px}
.ek-v2 .phone-desktop-hint strong{font-size:14px;color:#0b385e}
.ek-v2 .hint-mark{display:grid;place-items:center;background:#fff;color:#00a28e;width:52px;height:52px;border-radius:17px;font-size:26px;box-shadow:0 8px 30px #346c8c26}
/* Page headings and cards */
.ek-v2 h1,.ek-v2 h2,.ek-v2 h3,.ek-v2 h4{color:#09294e}
.ek-v2 .eyebrow{font-size:10px;letter-spacing:1.05px;margin-bottom:6px}
.ek-v2 .page-heading{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:18px}
.ek-v2 .page-heading>div{min-width:0}
.ek-v2 .page-heading h1{font-size:25px;line-height:1.2;letter-spacing:-.035em;margin:0 0 6px}
.ek-v2 .page-heading p{font-size:12px;line-height:1.55;color:#73899b}
.ek-v2 .page-heading>.btn{width:100%;min-height:43px}
.ek-v2 .panel{padding:19px 17px;border-radius:18px;border:1px solid #e7eef1;box-shadow:0 5px 19px #2b71900a;min-width:0}
.ek-v2 .panel h3{font-size:15px;letter-spacing:-.02em}
.ek-v2 .panel-heading{margin-bottom:14px;align-items:center}
.ek-v2 .panel-heading h3{font-size:15px}
.ek-v2 .panel-heading p{font-size:11px}
.ek-v2 .btn{border-radius:12px;min-height:43px;font-size:12px;padding:10px 14px;white-space:normal}
.ek-v2 .btn.primary{background:linear-gradient(105deg,#00a89c,#008f8b);box-shadow:0 5px 16px #00b19d22}
.ek-v2 .alert{font-size:12px}
/* Dashboard */
.ek-v2 .dashboard-hero{min-height:0;padding:21px 18px;gap:8px;margin:0 0 14px;border-radius:20px;align-items:center;background:linear-gradient(125deg,#006b75,#06b69e)}
.ek-v2 .dashboard-hero h2{font-size:19px;line-height:1.32;margin:8px 0}
.ek-v2 .dashboard-hero p{font-size:11px;line-height:1.5;margin:0 0 12px;max-width:250px}
.ek-v2 .dashboard-hero>img{width:71px;height:81px;margin:0;filter:drop-shadow(0 3px 10px #015c65a4)}
.ek-v2 .hero-kicker{font-size:8px;letter-spacing:1px}
.ek-v2 .hero-link{font-size:10px}
.ek-v2 .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}
.ek-v2 .stat-card{padding:14px 11px;border-radius:15px;min-width:0;gap:9px;box-shadow:none;align-items:flex-start}
.ek-v2 .stat-icon{min-width:35px;width:35px;height:35px;border-radius:11px;font-size:19px}
.ek-v2 .stat-card b{font-size:24px;line-height:1.15;margin:2px 0 4px}
.ek-v2 .stat-card span:not(.stat-icon){font-size:10px;display:block;line-height:1.4}
.ek-v2 .dashboard-grid{display:flex;flex-direction:column;gap:14px}
.ek-v2 .shortcut-grid{display:grid;grid-template-columns:1fr;gap:8px}
.ek-v2 .shortcut{border:1px solid #e7eff2;background:#fff;padding:10px 10px;border-radius:13px;min-height:68px}
.ek-v2 .shortcut-icon{width:43px;height:43px}
.ek-v2 .shortcut b{font-size:12px}
.ek-v2 .shortcut small{font-size:10px;line-height:1.5}
.ek-v2 .recent-item{gap:9px}
.ek-v2 .recent-item .risk-chip{font-size:9px;max-width:124px;text-align:center;white-space:normal}
/* Stages and forms */
.ek-v2 .steps{width:100%;max-width:none;gap:5px;margin:0 0 15px}
.ek-v2 .steps span{padding:9px 4px;border-radius:8px;font-size:10px;line-height:1.4}
.ek-v2 .form-container{display:block}
.ek-v2 .form-container>.panel{width:100%}
.ek-v2 .info-panel{margin-top:14px;display:block;padding:17px 19px;border-radius:15px;font-size:11px}
.ek-v2 .info-panel h3{font-size:15px}
.ek-v2 .form-stack{gap:17px;margin-top:19px}
.ek-v2 .form-stack label:not(.check-line),.ek-v2 .followup-form label{font-size:12px;gap:7px}
.ek-v2 .form-stack label small{font-size:10px}
.ek-v2 .form-stack input:not([type=checkbox]):not([type=radio]),.ek-v2 .form-stack select,.ek-v2 .form-stack textarea,.ek-v2 .followup-form input,.ek-v2 .followup-form select,.ek-v2 .followup-form textarea,.ek-v2 .searchbar input{min-height:48px;border-radius:12px;padding:11px 13px;font-size:16px;max-width:100%;min-width:0}
.ek-v2 .form-stack textarea{min-height:105px}
.ek-v2 .two-col{grid-template-columns:1fr 1fr;gap:10px}
.ek-v2 .two-col>*{min-width:0}
.ek-v2 .check-line{font-size:11px;line-height:1.55;border:1px solid #e4f0f3}
.ek-v2 .check-line input{width:19px;height:19px}
.ek-v2 .searchbar{display:flex;flex-direction:row;gap:8px}
.ek-v2 .searchbar input{flex:1;min-width:0}
.ek-v2 .searchbar button{min-width:63px;padding:8px}
.ek-v2 .participant-tag{max-width:100%;gap:9px}
.ek-v2 .participant-tag small{font-size:10px}
.ek-v2 .followup-form{grid-template-columns:1fr;gap:11px}
.ek-v2 .narrow-panel{max-width:none}
/* Tables become thumb-friendly stacked lists on all screen widths, powered by accessible enhancement. */
.ek-v2 .table-scroll{overflow-x:auto;max-width:100%;border-radius:12px}
.ek-v2 table{font-size:12px}
.ek-v2 table td,.ek-v2 table th{padding:11px 8px}
.ek-v2 table.v2-card-list{border:0;display:block;width:100%;min-width:0}
.ek-v2 .v2-card-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ek-v2 .v2-card-list tbody{display:flex;flex-direction:column;gap:11px}
.ek-v2 .v2-card-list tr{display:block;border:1px solid #e2edf2;border-radius:14px;padding:9px 12px;background:#fff;box-shadow:0 2px 9px #246a9a08}
.ek-v2 .v2-card-list td{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 2px;text-align:right;border:0;border-bottom:1px solid #f1f5f8;white-space:normal;word-break:break-word;line-height:1.5}
.ek-v2 .v2-card-list td:last-child{border-bottom:0}
.ek-v2 .v2-card-list td::before{content:attr(data-label);display:block;font-size:10px;font-weight:800;color:#8292a5;max-width:45%;text-align:left;flex-shrink:0}
.ek-v2 .v2-card-list td b,.ek-v2 .v2-card-list td strong{font-size:12px}
.ek-v2 .v2-card-list td .table-sub{font-size:10px;line-height:1.3}
.ek-v2 .v2-card-list td.actions{display:flex;justify-content:flex-end;gap:14px}
.ek-v2 .v2-card-list td.actions::before{margin-right:auto}
.ek-v2 .v2-card-list a{font-weight:800}
.ek-v2 .v2-card-list td form{margin:0}
.ek-v2 .v2-card-list .reset-details{max-width:100%;min-width:0}
.ek-v2 .v2-card-list .reset-form{flex-wrap:wrap;justify-content:flex-end}
.ek-v2 .v2-card-list .reset-form input{min-width:0;width:100%}
.ek-v2 .user-admin-grid{display:flex;flex-direction:column;gap:14px}
/* Results */
.ek-v2 .result-grid{display:flex;flex-direction:column;gap:14px}
.ek-v2 .result-card{padding:22px 13px;border-radius:18px}
.ek-v2 .result-card strong{font-size:42px}
.ek-v2 .recommendation-grid{display:flex;flex-direction:column;gap:12px}
.ek-v2 .recommendation{padding:15px;align-items:flex-start}
.ek-v2 .risk-chip{white-space:normal}
/* Education */
.ek-v2 .education-hero{border-radius:18px;padding:19px;min-height:0;gap:10px}
.ek-v2 .education-hero h2{font-size:20px}
.ek-v2 .education-hero p{font-size:11px}
.ek-v2 .education-hero img{width:67px;margin:0}
.ek-v2 .education-grid{display:grid;grid-template-columns:1fr;gap:11px}
.ek-v2 .edu-card{padding:18px 17px;border-radius:16px;box-shadow:none}
.ek-v2 .edu-card h3{font-size:15px}
.ek-v2 .edu-card p{font-size:12px}
.ek-v2 .edu-icon{margin-bottom:8px;width:39px;height:39px;font-size:23px}
/* Splash, onboarding and login are also true mobile screens */
.ek-v2 .splash{position:relative;min-height:calc(100dvh - 168px);padding:28px 15px 25px;border-radius:23px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#f7ffff 58%,#e4fafb 100%);box-shadow:none}
.ek-v2 .hero-logo{z-index:2;text-align:center}
.ek-v2 .hero-logo img{width:92px;height:92px}
.ek-v2 .hero-logo h1{font-size:31px;margin:5px 0 0;color:#062f57}
.ek-v2 .hero-logo p{font-size:12px;max-width:260px;margin:auto}
.ek-v2 .landscape{pointer-events:none}
.ek-v2 .hero-cta{z-index:2;position:relative;padding:0 3px;text-align:center}
.ek-v2 .hero-cta h2{font-size:23px;line-height:1.25;margin:13px 0 10px}
.ek-v2 .hero-cta p{font-size:12px;line-height:1.6}
.ek-v2 .hero-cta .pill{font-size:9px;line-height:1.5;padding:8px 10px;white-space:normal}
.ek-v2 .hero-cta .button-row{flex-direction:column;align-items:stretch;gap:8px}
.ek-v2 .hero-cta .button-row .btn{width:100%;min-height:46px}
.ek-v2 .onboarding{display:block;max-width:none;margin:0}
.ek-v2 .onboarding-visual{min-height:235px;border-radius:23px 23px 0 0;display:flex;justify-content:center;gap:10px;padding:15px;overflow:hidden}
.ek-v2 .onboarding-visual img{width:85px;max-width:30%}
.ek-v2 .health-illustration{font-size:65px}
.ek-v2 .onboarding-info{padding:24px 20px;border-radius:0 0 23px 23px}
.ek-v2 .onboarding-info h1{font-size:26px}
.ek-v2 .onboarding-info>p{font-size:12px;line-height:1.6}
.ek-v2 .feature-list>div{padding:10px 0}
.ek-v2 .onboarding-info .button-row{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.ek-v2 .onboarding-info .button-row a{width:100%}
.ek-v2 .login-section{display:block;margin:0;max-width:none}
.ek-v2 .login-aside{display:block;background:linear-gradient(130deg,#e5faf8,#f0fbff);padding:19px 18px;border-radius:19px;margin-bottom:15px}
.ek-v2 .login-aside h1{font-size:20px;line-height:1.3;margin:5px 0}
.ek-v2 .login-aside p{font-size:11px;line-height:1.55;margin:0}
.ek-v2 .login-graphic{display:none}
.ek-v2 .login-panel{padding:22px 19px}
.ek-v2 .login-panel h2{font-size:21px}
.ek-v2 .auth-hint{font-size:11px;line-height:1.55}
.ek-v2 .ghost-install{display:flex;width:100%;margin:12px auto 0;align-items:center;justify-content:center;border:0;background:transparent;color:#07877f;font-size:12px;font-weight:800;padding:9px;border-radius:12px}
.ek-v2 .ghost-install:hover{background:#e8faf5}
/* More page */
.ek-v2 .more-profile{background:linear-gradient(110deg,#00767c,#02b3a0);border-radius:20px;padding:22px 17px;display:flex;gap:13px;align-items:center;color:#fff;margin-bottom:16px;position:relative;overflow:hidden}
.ek-v2 .more-profile:after{content:"";position:absolute;right:-45px;top:-75px;width:190px;height:190px;border-radius:50%;border:1px solid #ffffff22;pointer-events:none}
.ek-v2 .profile-circle{height:54px;width:54px;flex-shrink:0;display:grid;place-items:center;background:#ffffffdb;border-radius:18px;color:#007f78;font-size:25px;font-weight:900}
.ek-v2 .more-profile small{color:#bef8f1;letter-spacing:.07em;font-size:9px;font-weight:850}
.ek-v2 .more-profile h1{color:#fff;margin:3px 0;font-size:19px;overflow-wrap:anywhere}
.ek-v2 .more-profile p{margin:0;font-size:11px;color:#dafaf7}
.ek-v2 .more-panel{margin-bottom:13px}
.ek-v2 .more-panel>h3{margin-bottom:14px}
.ek-v2 .more-links{display:flex;flex-direction:column}
.ek-v2 .more-links>a{display:flex;gap:11px;align-items:center;border-bottom:1px solid #eef3f6;padding:11px 0;color:#163450}
.ek-v2 .more-links>a:last-child{border-bottom:0;padding-bottom:2px}
.ek-v2 .more-links>a>span:nth-child(2){flex:1;min-width:0}
.ek-v2 .more-links b,.ek-v2 .more-links small{display:block}
.ek-v2 .more-links b{font-size:12px}
.ek-v2 .more-links small{font-size:10px;color:#8697a8;margin-top:2px}
.ek-v2 .more-links em{font-style:normal;font-size:24px;font-weight:450;color:#8ca9b6}
.ek-v2 .more-icon{flex-shrink:0;width:41px;height:41px;display:grid;place-items:center;border-radius:12px;font-size:23px}
.ek-v2 .more-icon.mint{background:#e1f8f4;color:#0e9f86}
.ek-v2 .more-icon.orange{background:#fff2e4;color:#ed9828}
.ek-v2 .more-icon.blue{background:#e7f1ff;color:#377bd5}
.ek-v2 .more-icon.purple{background:#f0eaff;color:#9461d5}
.ek-v2 .more-icon.pink{background:#ffedf0;color:#ed6d81}
.ek-v2 .pwa-feature{margin-bottom:12px;background:linear-gradient(140deg,#effaf9,#fff)}
.ek-v2 .pwa-feature h3{margin:8px 0}
.ek-v2 .pwa-feature p{font-size:11px;color:#657e92;line-height:1.6}
.ek-v2 .pwa-badge{font-size:9px;color:#007f75;background:#d6f7ee;padding:5px 10px;border-radius:100px;font-weight:900}
.ek-v2 .logout-panel{padding:0}
.ek-v2 .logout-wide{display:block;width:100%;border:0;background:transparent;padding:16px;color:#b94d51;font-size:13px;font-weight:850}
.ek-v2 .disclaimer-inline{text-align:center;color:#8297a6;font-size:10px;margin:14px 0 0}
/* PWA installation dialog */
.ek-v2 .install-dialog[hidden]{display:none}
.ek-v2 .install-dialog{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px}
.ek-v2 .install-backdrop{position:absolute;inset:0;background:#073448aa}
.ek-v2 .install-dialog-card{position:relative;width:min(100%,390px);padding:25px;border-radius:23px;background:#fff;text-align:center;box-shadow:0 16px 70px #0b273155}
.ek-v2 .install-dialog-card>img{width:72px;height:72px;border-radius:18px}
.ek-v2 .install-dialog-card h2{margin:9px 0;font-size:21px}
.ek-v2 .install-dialog-card p{font-size:12px;line-height:1.7;color:#536d82}
.ek-v2 .install-close{position:absolute;top:12px;right:15px;background:#f2f6f8;border:0;border-radius:50%;height:30px;width:30px;font-size:19px}
/* setup page in the same phone interface */
.ek-v2.auth-page .auth-wrap{max-width:448px;min-height:100dvh;background:#f8fbfd;box-shadow:0 18px 80px #0e40552c;margin:0 auto;padding:34px 18px}
.ek-v2.auth-page .auth-wrap .brand-large{margin-bottom:22px}
.ek-v2.auth-page .auth-wrap .form-stack input{min-height:48px;font-size:16px}
@media(max-width:960px){.ek-v2 .phone-desktop-hint{display:none}}
@media(max-width:480px){html{background:#f8fbfd}.ek-v2 .phone-shell{box-shadow:none;min-height:100dvh}.ek-v2 .phone-content{padding:18px 15px calc(105px + env(safe-area-inset-bottom))}.ek-v2 .dashboard-hero>img{width:65px}.ek-v2 .more-profile{padding:18px 15px}}
@media(max-width:350px){.ek-v2 .phone-tabbar .nav-item{font-size:9px}.ek-v2 .phone-content{padding-left:11px;padding-right:11px}.ek-v2 .two-col{grid-template-columns:1fr}.ek-v2 .dashboard-hero>img{width:52px}.ek-v2 .stats{gap:7px}.ek-v2 .stat-card{padding:11px 7px}}
@media(prefers-reduced-motion:reduce){.ek-v2 *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

.ek-v2 .network-banner{background:#fff2d6;color:#895500;border:1px solid #ffe0a3;padding:11px 13px;margin-bottom:15px;border-radius:12px;font-weight:750;font-size:11px;line-height:1.5}
.ek-v2 .network-banner[hidden]{display:none}
