/* Application-only visual system. Public site and desktop office are unchanged. */
body.cec-app-mode{--app-paper:#f4f6f8;--app-ink:#0b2d5b;--app-muted:#576b80;--app-line:#e1e7ee;background:var(--app-paper);color:var(--app-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent}
.cec-app-mode #cec-app-toolbar{display:none}
.cec-app-mode .cec-app-connection{position:sticky;top:0;z-index:100;font-size:13px}
.cec-app-mode .ma-auth{max-width:500px;margin:auto;padding:28px 24px max(28px,env(safe-area-inset-bottom));min-height:100dvh;box-sizing:border-box}
.ma-auth-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:34px}
.ma-auth-brand .cec-logo{width:190px;height:auto;mix-blend-mode:multiply}
.ma-auth-brand>span{font-size:11px;font-weight:650;padding:7px 10px;background:#fff;border:1px solid var(--app-line);border-radius:99px;color:#526176}
.ma-auth-card{min-width:0}
.ma-auth-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#deefed;color:#087d73;margin-bottom:24px}
.ma-auth-mark .icon{width:25px;height:25px}
.ma-kicker{display:block;font-size:10px;font-weight:750;line-height:1.5;letter-spacing:.09em;color:#08776c}
.cec-app-mode .ma-auth h1{font:750 clamp(30px,8vw,38px)/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:12px 0 16px;color:#0b2d5b;text-wrap:balance}
.cec-app-mode .ma-auth-intro{font-size:15px;line-height:1.6;color:var(--app-muted);margin:0 0 28px;max-width:38ch}
.ma-auth form>label{display:block;font-size:13px;font-weight:650;margin:18px 0 9px}
.ma-auth .access-field{height:56px;border:1px solid #d9e1e9;background:#fff;border-radius:15px;padding:0 14px;box-shadow:0 2px 5px #0b2d5b03;display:flex;align-items:center;gap:11px}
.ma-auth .access-field:focus-within{border-color:#087d73;box-shadow:0 0 0 3px #087d7315}
.ma-auth .access-field>.icon{position:static;transform:none;width:18px;height:18px;color:#80919f;flex:none}
.ma-auth .access-field input{background:none;border:0;box-shadow:none;outline:0;padding:0;min-width:0;width:100%;height:100%;font-size:16px;color:#0b2d5b}
.ma-auth .access-field input::placeholder{color:#8293a3;opacity:1}
.ma-auth .access-field button{position:static;transform:none;display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;background:none;color:#5b7084}
.ma-auth .access-field button .icon{width:19px;height:19px}
.ma-auth-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 22px}
.ma-auth .ma-auth-options label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px;color:#576b80;cursor:pointer}
.ma-auth .ma-auth-options input{width:18px;height:18px;min-height:18px;padding:0;flex:none;accent-color:#087d73;margin:0}
.ma-auth .text-button{font-size:12px;color:#0b2d5b;font-weight:650;min-height:44px}
body.cec-app-mode .ma-auth .button.ma-auth-submit{height:54px;border-radius:15px;background:#0b2d5b;color:#fff;font-size:15px;box-shadow:0 8px 16px #0b2d5b10;display:flex;justify-content:space-between;width:100%;padding:0 20px;margin-top:8px}
.ma-auth [aria-busy=true] .ma-auth-submit{opacity:.7;cursor:wait}
.ma-auth-register{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:18px;font-size:13px;color:#637689}
.ma-auth-register .text-button{display:flex;align-items:center;gap:8px;font-size:13px}
.ma-auth .cec-friend-entry{margin-top:20px;border:1px solid #dce4eb;border-radius:14px;background:transparent}
.ma-auth .cec-friend-entry summary{font-size:12px;min-height:48px;padding:10px 13px}
.ma-auth .cec-friend-body{padding:4px 14px 18px}
.ma-auth .cec-friend-body p{font-size:13px;line-height:1.6;color:#576b80}
.ma-auth .cec-friend-body input{font-size:16px;background:#fff}
.ma-auth .cec-friend-body .button{font-size:13px}
.ma-auth-footer{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin-top:28px;font-size:11px;line-height:1.6;color:#637689;text-align:center}
.ma-auth-footer .icon{width:13px;height:13px;margin-top:3px}
.ma-context{display:flex;align-items:center;gap:10px;background:#e8f3ef;color:#285c57;padding:13px 15px;border-radius:13px;font-size:13px;line-height:1.5;margin:16px 0}
.ma-context .icon{flex:none;width:18px;height:18px}
.ma-private,.ma-demo{text-align:center;font-size:12px;line-height:1.6;color:#667b8d;margin-top:22px}
.ma-auth-back{display:block;margin:16px auto}
body.cec-app-mode .ma-app{display:block;max-width:680px;margin:0 auto;min-height:100dvh;background:var(--app-paper)}
.ma-header{position:sticky;top:0;z-index:55;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 22px;background:#f4f6f8ed;backdrop-filter:blur(20px);border-bottom:1px solid #e1e7ee80;min-height:74px;box-sizing:border-box}
.ma-header>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.ma-header>div>span{font-size:9px;letter-spacing:.14em;color:#08776c;font-weight:750}
.ma-header strong{font-size:19px;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
.ma-profile-button,.ma-avatar{display:grid;place-items:center;background:#e0edec;color:#0b2d5b;border:1px solid #d3e2df;border-radius:50%;width:40px;height:40px;flex:none;font-size:13px;font-weight:700}
.ma-profile-button{cursor:pointer;min-height:44px;min-width:44px}
.cec-app-mode .ma-app .ma-content{padding:24px 22px calc(100px + env(safe-area-inset-bottom));max-width:none;min-width:0;margin:0}
.ma-tabbar{position:fixed;z-index:70;bottom:0;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:680px;padding:8px 8px max(10px,env(safe-area-inset-bottom));box-sizing:border-box;background:#ffffffef;border-top:1px solid #dce4ec;backdrop-filter:blur(24px);box-shadow:0 -4px 22px #0b2d5b04}
.ma-tabbar>button{min-width:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;padding:4px 1px;color:#6d7e91;font-size:10px;font-weight:600;cursor:pointer;line-height:1.2}
.ma-tabbar>button .icon{width:21px;height:21px}
.ma-tab-icon{position:relative;display:grid;place-items:center;width:48px;height:29px;border-radius:12px;transition:background .18s ease,color .18s ease}
.ma-tabbar>button[aria-current=page]{color:#087d73;font-weight:750}
.ma-tabbar>button[aria-current=page] .ma-tab-icon{background:#e1f2ee}
.ma-tab-icon>b{position:absolute;top:-3px;right:-1px;min-width:16px;padding:2px 4px;border-radius:20px;background:#0b2d5b;border:2px solid #fff;color:#fff;font-size:8px;line-height:1.2}
.ma-greeting{margin:0 0 23px}
.cec-app-mode .ma-greeting h1{font-size:32px;font-weight:750;line-height:1.15;letter-spacing:-.045em;margin:10px 0 9px;color:#0b2d5b}
.ma-greeting-dot{color:#0d9286}
.ma-greeting p{font-size:14px;line-height:1.6;color:#65778a;margin:0}
.ma-focus{position:relative;background:#0b2d5b;border:1px solid #24466e;color:white;border-radius:24px;padding:22px;overflow:hidden;isolation:isolate;box-shadow:0 10px 22px #0b2d5b0b}
.ma-focus-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#ffffff14;color:#82ded0;margin-bottom:16px}
.ma-focus-icon .icon{width:19px;height:19px}
.cec-app-mode .ma-focus h2{font:700 25px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em;color:#fff;max-width:17ch;margin:0 0 10px}
.ma-focus p{font-size:13px;line-height:1.6;color:#dbe6f2;max-width:35ch;margin:0 0 20px}
.ma-focus button{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:46px;padding:11px 14px;border:1px solid #ffffff25;background:#ffffff12;border-radius:12px;color:#fff;font-size:13px;font-weight:650;cursor:pointer}
.ma-focus button .icon{width:16px;height:16px;flex:none}
.ma-focus-orbit{position:absolute;width:210px;height:210px;right:-125px;top:-90px;border:28px solid #14b8a629;border-radius:50%;z-index:-1}
.ma-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 26px}
.ma-stats>button{position:relative;border:1px solid var(--app-line);border-radius:18px;background:white;color:#0b2d5b;display:flex;flex-direction:column;align-items:flex-start;padding:17px 18px;gap:10px;cursor:pointer}
.ma-stats span{font-size:11px;color:#60768a}
.ma-stats strong{font-size:28px;font-weight:750;line-height:1}
.ma-stats .icon{position:absolute;width:12px;height:12px;right:15px;bottom:20px;color:#8092a0}
.ma-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 13px}
.cec-app-mode .ma-section-title h2{font-size:17px;line-height:1.25;letter-spacing:-.02em;margin:0;font-weight:700;color:#0b2d5b}
.ma-section-title>span{font-size:10px;color:#6d7f90;text-align:right}
.ma-section-title>button{display:flex;align-items:center;gap:6px;background:none;border:0;min-height:36px;font-size:11px;color:#087d73;font-weight:650}
.ma-section-title .icon{width:13px;height:13px}
.ma-list{background:white;border:1px solid var(--app-line);border-radius:18px;overflow:hidden}
.ma-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:15px;border:0;border-bottom:1px solid #e9edf1;background:white;min-height:65px;text-decoration:none;color:#0b2d5b;font-size:14px;cursor:pointer;box-sizing:border-box}
.ma-row:last-child{border-bottom:0}
.ma-row>span:not(.ma-row-icon){flex:1;min-width:0;line-height:1.4}
.ma-row strong{display:block;font-size:13px;font-weight:650}
.ma-row small{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#6b7c8e}
.ma-row-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#edf4f4;color:#087d73;flex:none}
.ma-row-icon .icon{width:17px;height:17px}
.ma-row>.icon{width:12px;height:12px;flex:none;color:#91a1af}
.ma-count{font-size:11px;min-width:21px;height:21px;border-radius:20px;display:grid;place-items:center;color:white;background:#087d73;padding:0 4px}
.ma-course-list{display:grid;gap:12px}
.ma-course{display:flex;gap:14px;align-items:center;width:100%;padding:17px;background:white;border:1px solid var(--app-line);border-radius:18px;text-align:left;color:#0b2d5b;cursor:pointer}
.ma-course-icon{display:grid;place-items:center;width:45px;height:58px;background:#eef0f8;color:#344c80;border-radius:12px;flex:none}
.ma-course-icon .icon{width:23px;height:23px}
.ma-course>div{flex:1;min-width:0}
.ma-course>div>span{font-size:9px;color:#687e90;letter-spacing:.03em}
.cec-app-mode .ma-course h3{font-size:15px;font-weight:700;letter-spacing:-.02em;margin:5px 0 11px;line-height:1.3;color:#0b2d5b}
.ma-course small{font-size:10px;color:#687e90}
.ma-course>.icon{width:12px;height:12px;color:#8ba0b2;flex:none}
.ma-progress{height:4px;border-radius:10px;background:#e5efec;overflow:hidden;margin-bottom:6px}
.ma-progress i{display:block;background:#0b9384;height:100%;border-radius:inherit}
.ma-hybrid{margin-top:14px}
.ma-footnote{text-align:center;color:#7a8b9d;font-size:10px;line-height:1.6;margin:28px 8px 0}
.ma-account{display:flex;align-items:center;gap:14px;margin:0 0 24px}
.ma-account .ma-avatar{width:50px;height:50px;font-size:16px}
.cec-app-mode .ma-account h1{font-size:21px;line-height:1.2;letter-spacing:-.025em;margin:0 0 7px;overflow-wrap:anywhere}
.ma-account p{font-size:12px;color:#607589;margin:0}
.ma-menu-group{margin-bottom:24px}
.cec-app-mode .ma-menu-group h2{font-size:10px;color:#6b7e91;letter-spacing:.09em;margin:0 0 9px 12px;line-height:1.5;font-weight:700}
.ma-menu .ma-row{min-height:58px;font-size:13px}
.ma-logout{color:#a43640}
.ma-logout .ma-row-icon{background:#faf0f0;color:#a43640}
.ma-login-install{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px auto 0}
.ma-login-install .icon{width:14px;height:14px}
.cec-native-shell .ma-install,.cec-installed-app .ma-install{display:none}
.cec-app-mode .ma-app .dashboard-footer,.cec-app-mode .ma-app .cec-mobile-dock{display:none}
.cec-app-mode .ma-content .page-heading{display:block;margin:0 0 22px}
.cec-app-mode .ma-content .page-heading .eyebrow{font-size:9px;letter-spacing:.07em;margin-bottom:10px}
.cec-app-mode .ma-content .page-heading h1{font-size:27px;line-height:1.18;letter-spacing:-.035em;margin:0 0 10px;font-weight:750}
.cec-app-mode .ma-content .page-heading p{font-size:13px;line-height:1.65;color:#607589}
.cec-app-mode .ma-content .page-heading>.button{margin-top:14px}
.cec-app-mode .ma-content :is(.panel,.stat-card,.client-quick,.seller-quick-grid>article,.seller-page-card,.course-card,.profile-card){border-color:#e1e7ee;border-radius:18px;box-shadow:none}
.cec-app-mode .ma-content .button{border-radius:12px;min-height:44px;font-size:13px}
.cec-app-mode .ma-content input,.cec-app-mode .ma-content select,.cec-app-mode .ma-content textarea{font-size:16px;border-radius:12px}
.cec-app-mode .ma-content :is(.dashboard-two-columns,.sales-layout,.learning-layout,.settings-grid,.profile-grid){grid-template-columns:1fr}
.cec-app-mode .ma-content .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cec-app-mode .ma-content .stat-card{padding:16px}
.cec-app-mode .ma-content .stat-card>strong{font-size:25px}
.cec-app-mode .ma-content .stat-card>small{font-size:10px}
.cec-app-mode .ma-content .chat-layout{min-height:calc(100dvh - 230px)}
.cec-app-mode :is(button,a,input,select,textarea):focus-visible{outline:3px solid #14b8a6;outline-offset:3px}
.cec-app-mode .ma-auth .access-field input:focus-visible{outline:0}
.cec-app-mode .toast{bottom:calc(88px + env(safe-area-inset-bottom))}
@media(min-width:701px){body.cec-app-mode{background:#e9eef3}.cec-app-mode .ma-auth{padding-top:50px}.cec-app-mode .ma-app{box-shadow:0 0 80px #0b2d5b08}.cec-app-mode .ma-content{min-height:calc(100dvh - 74px)}.ma-focus h2{max-width:24ch}}
@media(max-width:360px){.cec-app-mode .ma-auth{padding-inline:20px}.ma-auth-brand .cec-logo{width:156px}.ma-auth-brand>span{font-size:10px;padding:6px 8px}.ma-auth-options{gap:5px}.ma-auth-options .text-button{font-size:11px}.ma-header{padding-inline:18px}.cec-app-mode .ma-app .ma-content{padding-inline:18px}.ma-focus{padding:20px}.ma-stats>button{padding:16px 14px}.ma-row{gap:10px;padding:13px}.ma-tabbar>button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.ma-tab-icon{transition:none}}
