/* Scope the approved visual redesign to account and lesson directory pages. */
body[data-conan-polish="mine"] #header,body[data-conan-polish="services"] #header{display:none}
body[data-conan-polish="mine"] #app,body[data-conan-polish="services"] #app{padding:0!important}
body[data-conan-polish="mine"] .phone,body[data-conan-polish="services"] .phone{background:#f6f7f9;padding-top:0}
.cp-page{color:#172b49;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.5;padding-bottom:76px}
.cp-page h1,.cp-page h2,.cp-page p{margin:0}
.cp-page button{font:inherit;color:inherit;cursor:pointer}
.cp-page button:focus-visible{outline:3px solid #a17a00;outline-offset:3px}
.cp-page svg{width:24px;height:24px;flex-shrink:0;stroke-width:1.7}
.cp-account-head,.cp-directory-head{position:relative;background:radial-gradient(ellipse at 100% 20%,#fff3b4 0,transparent 62%),linear-gradient(120deg,#ffdf3b,#fff3a5);overflow:hidden}
.cp-account-head:before,.cp-directory-head:before{content:"";position:absolute;width:320px;height:320px;border:40px solid #fff5bf65;border-radius:50%;right:-140px;top:-150px;pointer-events:none}
.cp-account-head{padding:29px 18px 48px;display:flex;align-items:center;gap:12px;min-height:154px}
.cp-avatar{display:grid;place-items:center;width:60px;height:60px;flex-shrink:0;border-radius:50%;background:#fff;color:#8a94a8;box-shadow:0 1px 0 #fff8}
.cp-avatar svg{width:36px;height:36px}
.cp-identity{min-width:0;flex:1}
.cp-identity h1{font-size:24px;font-weight:750;letter-spacing:-.5px;line-height:1.3;overflow-wrap:anywhere}
.cp-identity p{font-size:12px;color:#606778;margin-top:7px;overflow-wrap:anywhere}
.cp-checkin{display:flex;align-items:center;gap:5px;position:relative;flex-shrink:0;padding:9px 10px;border-radius:24px;border:1px solid #fff7;background:#fff9dcaa;font-size:12px!important;font-weight:600!important;min-height:39px}
.cp-checkin svg{width:18px;height:18px}.cp-checkin svg:last-child{width:12px}
.cp-account-body{padding:0 14px;position:relative;margin-top:-24px}
.cp-card{border-radius:20px;background:#fff;border:1px solid #edf0f4;margin:0 0 12px;padding:17px 16px;box-shadow:0 5px 18px #20385803}
.cp-card h2{font-size:18px;font-weight:750;line-height:1.4}
.cp-wallet{padding-top:17px}
.cp-wallet-main{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:10px 0 16px}
.cp-balance{display:flex;align-items:baseline;gap:6px;min-width:0}
.cp-balance strong{font-size:50px;font-weight:800;letter-spacing:-1.8px;line-height:1.1;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cp-balance span{font-size:14px}
.cp-balance .cp-balance-pending{font-size:22px;letter-spacing:0;line-height:1.4}
.cp-charge{display:flex;align-items:center;justify-content:center;gap:3px;padding:10px 15px;flex-shrink:0;border-radius:24px;background:linear-gradient(135deg,#ffe76c,#ffdc32);font-size:14px!important;font-weight:650!important;border:0;min-height:42px}
.cp-charge svg{width:15px;height:15px}
.cp-wallet-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #edf0f4;padding:14px 0 12px}
.cp-wallet-stats>div{text-align:center;display:flex;flex-direction:column;gap:5px;min-width:0}
.cp-wallet-stats>div+div{border-left:1px solid #e9edf2}
.cp-wallet-stats span{font-size:12px;color:#66748b}
.cp-wallet-stats strong{font-size:23px;font-weight:750;line-height:1.25;font-variant-numeric:tabular-nums}
.cp-wallet-tip{display:flex;align-items:center;gap:7px;color:#8892a3;font-size:11px;padding-top:5px;line-height:1.7}
.cp-wallet-tip svg{width:15px;height:15px}
.cp-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:16px}
.cp-record{display:flex;flex-direction:column;align-items:center;gap:9px;background:none;border:0;min-height:87px;position:relative;font-size:14px!important;padding:0 4px}
.cp-record+.cp-record:before{content:"";position:absolute;left:0;top:10px;width:1px;height:45px;background:#edf0f4}
.cp-shortcut-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:15px;background:linear-gradient(135deg,#fff7d6,#fff1b9)}
.cp-shortcut-icon svg{width:28px;height:28px}
.cp-invite{display:flex;align-items:center;width:100%;border:0;border-radius:18px;background:linear-gradient(120deg,#fff1b4,#fff7db);padding:15px;margin:0 0 12px;min-height:85px;text-align:left;gap:12px}
.cp-gift{display:grid;place-items:center;width:47px;height:47px;border-radius:13px;color:#dd8a24;background:#ffe6a3;transform:rotate(-8deg)}
.cp-gift svg{width:34px;height:34px}
.cp-invite-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.cp-invite-copy strong{font-size:18px;font-weight:750}.cp-invite-copy small{font-size:12px;color:#807449}
.cp-invite>svg{width:18px;height:18px}
.cp-tools{padding-bottom:2px}
.cp-tools h2{margin-bottom:6px}
.cp-link{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;text-align:left;min-height:55px;padding:14px 0;font-size:15px!important}
.cp-link+.cp-link{border-top:1px solid #edf0f4}
.cp-link>span{display:flex;align-items:center;gap:12px}.cp-link>svg{color:#8c96a6;width:17px}
.cp-logout{width:100%;min-height:49px;border:1px solid #edf0f4;border-radius:17px;background:#fff;font-size:15px!important;margin-top:1px}
.cp-directory-head{padding:24px 19px 17px}
.cp-brand{position:relative;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.cp-brand svg{width:24px;height:24px}
.cp-directory-head h1{position:relative;font-size:35px;font-weight:800;letter-spacing:-1.5px;margin-top:10px;line-height:1.25}
.cp-directory-head>p{position:relative;font-size:14px;margin-top:8px;color:#475971}
.cp-search{position:relative;display:flex;align-items:center;gap:9px;background:#fff;border-radius:30px;padding:5px 5px 5px 14px;margin:19px 0 0;min-height:48px;border:1px solid #fff;box-shadow:0 3px 8px #826c0010}
.cp-search-symbol{display:block;position:relative;width:17px;height:17px;flex-shrink:0;border:2px solid #708098;border-radius:50%;margin-right:4px}
.cp-search-symbol:after{content:"";position:absolute;right:-6px;bottom:-4px;background:#708098;width:7px;height:2px;transform:rotate(45deg)}
.cp-search-symbol svg{display:none}
.cp-search input{border:0;background:transparent;min-width:0;width:100%;font:inherit;font-size:14px;color:#172b49;padding:5px 0;outline:none}
.cp-search:focus-within{outline:3px solid #ab8500;outline-offset:2px}
.cp-search button{flex-shrink:0;background:linear-gradient(135deg,#ffe769,#ffdc33);border:0;border-radius:24px;padding:8px 19px;min-height:37px;font-size:14px;font-weight:650}
.cp-services>.yu-services{padding:0 10px 14px}
.cp-services .yu-directory{grid-template-columns:100px minmax(0,1fr);border:0;border-radius:20px;margin-top:15px;min-height:555px;background:#eef1f5;overflow:hidden}
.cp-services .yu-sidebar{padding:12px 0;background:#eef1f5;gap:3px;min-width:0}
.cp-services .yu-sidebar button{min-height:58px;padding:12px 8px;gap:7px;font-size:12px;color:#738198;border:0;border-radius:12px 0 0 12px;line-height:1.5}
.cp-services .yu-sidebar button>span{flex-shrink:0}
.cp-services .yu-sidebar svg{width:18px;height:18px}
.cp-services .yu-sidebar button[aria-pressed="true"]{background:linear-gradient(90deg,#fff3bf,#fff9e4);color:#172b49;font-weight:750}
.cp-services .yu-sidebar button[aria-pressed="true"]:before{background:#ffd519;height:28px}
.cp-services .yu-directory-content{padding:17px 11px 18px;background:#fff;border-radius:20px 0 0 20px;min-width:0}
.cp-services .yu-group-head{display:flex;align-items:center;justify-content:space-between;gap:5px}
.cp-services .yu-group-head h2{font-size:21px;color:#172b49;line-height:1.3;font-weight:750}
.cp-services .yu-group-head small{font-size:10px;color:#93a0b2;white-space:nowrap}
.cp-services .yu-group-note{font-size:11px;color:#8b97aa;margin:6px 0 15px}
.cp-services .yu-item-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.cp-services .yu-item-grid .cp-topic{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:113px;padding:12px 5px;border:1px solid #e9edf3;border-radius:15px;background:#fff;text-align:center;color:#172b49;transition:background .15s,border-color .15s}
.cp-services .yu-item-grid .cp-topic:active{background:#fff9e7;border-color:#e7d077}
.cp-topic-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:linear-gradient(135deg,#fff8dc,#fff0b4)}
.cp-topic-icon svg{width:25px;height:25px}
.cp-topic-copy{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%}
.cp-topic-copy strong{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.cp-topic-copy small{font-size:10px;color:#96a0b1;line-height:1.5}
.cp-services .yu-group+.yu-group{margin-top:22px}
.cp-reminder{display:flex;align-items:flex-start;gap:8px;background:#fff8db;border-radius:14px;padding:12px 10px;margin:18px 0 10px;color:#625532}
.cp-reminder>svg{width:22px;height:22px;color:#88712a;margin-top:2px}
.cp-reminder>div{min-width:0;display:flex;flex-direction:column;gap:5px}
.cp-reminder strong{font-size:11px;line-height:1.7;font-weight:600}
.cp-reminder span{font-size:10px;color:#9b8b5e;line-height:1.7}
.cp-directory-help{width:100%;display:flex;align-items:center;justify-content:space-between;gap:4px;border:1px solid #e9edf3;border-radius:13px;padding:12px 9px;text-align:left;background:#fff;font-size:11px!important;line-height:1.7}
.cp-directory-help>span{display:flex;align-items:center;gap:6px}
.cp-directory-help svg{width:17px;height:17px}.cp-directory-help>svg{width:12px}
body[data-conan-polish="mine"] #bottom,body[data-conan-polish="services"] #bottom{padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e9edf2;background:#fff}
body[data-conan-polish="mine"] .nav-item,body[data-conan-polish="services"] .nav-item{gap:3px;font-size:12px;color:#8b95a6;min-height:48px}
body[data-conan-polish="mine"] .nav-item svg,body[data-conan-polish="services"] .nav-item svg{padding:5px;width:34px;height:34px;box-sizing:content-box}
body[data-conan-polish="mine"] .nav-item.active,body[data-conan-polish="services"] .nav-item.active{color:#172b49}
body[data-conan-polish="mine"] .nav-item.active svg,body[data-conan-polish="services"] .nav-item.active svg{border-radius:50%;background:linear-gradient(135deg,#ffe981,#ffdc38);stroke:#172b49;fill:none}
/* Original support button and unread indicator stay above the bottom navigation. */
body[data-conan-polish="mine"] .float-support,body[data-conan-polish="services"] .float-support{display:flex!important;visibility:visible!important;opacity:1;z-index:35;bottom:calc(96px + env(safe-area-inset-bottom));background:#ffe133;color:#463d17}
@media(max-width:370px){
 .cp-account-head{padding-left:13px;padding-right:13px;gap:9px}.cp-avatar{width:47px;height:47px}.cp-identity h1{font-size:20px}.cp-identity p{font-size:10px}.cp-checkin{padding:8px 7px;font-size:10px!important;gap:3px}.cp-checkin svg{width:15px;height:15px}.cp-checkin svg:last-child{display:none}
 .cp-account-body{padding:0 10px}.cp-card{padding:16px 13px}.cp-balance strong{font-size:43px}.cp-charge{padding:9px 11px;font-size:12px!important}.cp-wallet-stats span{font-size:11px}
 .cp-services>.yu-services{padding-left:7px;padding-right:7px}.cp-services .yu-directory{grid-template-columns:82px minmax(0,1fr)}.cp-services .yu-sidebar button{font-size:11px;padding:12px 5px;gap:4px}.cp-services .yu-sidebar svg{width:15px;height:15px}.cp-services .yu-directory-content{padding:16px 8px}.cp-services .yu-group-head h2{font-size:19px}.cp-services .yu-item-grid{gap:6px}.cp-services .yu-item-grid .cp-topic{min-height:111px;padding:10px 3px}.cp-topic-copy strong{font-size:12px}.cp-directory-help{font-size:10px!important}
}
@media(min-width:430px){.cp-services .yu-item-grid .cp-topic{flex-direction:row;text-align:left;padding:14px 9px;gap:8px;min-height:95px}.cp-topic-icon{width:37px;height:37px;flex-shrink:0}.cp-topic-copy{width:auto}.cp-topic-copy strong{font-size:13px}.cp-services .yu-directory{grid-template-columns:105px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.cp-topic{transition:none!important}}

/* CONAN-DIRECTORY-HIDE-GRAY-V1 */
.cp-services .yu-group-note,
.cp-services .cp-topic-copy small { display: none !important; }
