body{background:#f1f3f6}main{background:#f6f7f9}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #1479ef;outline-offset:3px}input,textarea,select{max-width:100%;min-width:0}button:disabled{opacity:.6;cursor:not-allowed}
.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:80px;padding:2px 0}.mobile-nav svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile-nav small{font-size:12px;line-height:1.3}.mobile-nav a.active svg{stroke-width:2.2}
.auth-card{margin:22px 0;padding:22px 18px;border-radius:14px}.auth-card label{font-size:15px;font-weight:600}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:65px}.password-wrap button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:auto;background:none;color:#1479ef;margin:0;padding:7px 5px;font-size:13px;font-weight:600}
.status-tabs{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin:0 0 13px}.status-tabs::-webkit-scrollbar{display:none}.status-tabs a{flex:none;color:#64748b;padding:7px 12px;border-radius:20px;background:white;border:1px solid #e7ecf3;font-size:12px}.status-tabs a[aria-current]{color:#1479ef;border-color:#9ac8ff;background:#e8f3ff}
.avatar-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:10px 0 18px}.avatar-choice{margin:0!important;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}.avatar-choice img{width:100%;max-width:52px;aspect-ratio:1;border-radius:50%}.avatar-choice input{width:17px;height:17px;accent-color:#1479ef;margin:0}
.copy-row{display:flex;gap:8px;align-items:center}.copy-row input{min-width:0;flex:1}.copy-row button{width:auto;white-space:nowrap;border-radius:8px;padding:11px 13px;font-size:13px}
.inline-status{font-size:13px;color:#476a96;min-height:1.1em}
.chat-view{display:flex;flex-direction:column;min-height:65vh}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-head h2{margin:0}.chat-view .chat{background:#f7f9fc;padding:11px;border-radius:10px;min-height:230px;max-height:55vh;overflow:auto;margin:14px 0}.chat-view .bubble{width:fit-content;max-width:88%;background:#fff;border:1px solid #edf0f5}.chat-view .bubble.mine{margin-left:auto;background:#e3efff;border:0}.chat-view .bubble small{font-size:11px}.chat-view textarea{min-height:78px}.chat-view .muted{font-size:12px}.chat-empty{color:#999;font-size:14px;text-align:center;padding:30px 10px}
.notice-ok{background:#e6f5ec;color:#246f44;padding:12px;border-radius:8px}
.chat-view .bubble p{white-space:pre-wrap;overflow-wrap:anywhere}
.carousel-controls{display:flex;justify-content:flex-end;gap:6px;margin:-7px 0 7px}.carousel-controls button{width:35px;height:35px;margin:0;padding:0;border-radius:9px;background:#fff;color:#1479ef;border:1px solid #e0eaf7;font-size:22px;line-height:1}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* V15: shared visual and accessibility layer. */
:root{--blue:#2563b5;--orange:#a65320;--ink:#202f42;--muted:#576679;--line:#dfe6ed;--surface:#f5f7fa;--radius:14px}
body{background:#e9eef3;color:var(--ink)}
body>main{background:var(--surface);min-height:100dvh;box-shadow:0 0 32px #24344a0a;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
main:not(:has(.mobile-nav,.apply-bottom,.case-bottom)){padding-bottom:32px}
main header{border-color:var(--line);padding-top:env(safe-area-inset-top,0px);height:calc(60px + env(safe-area-inset-top,0px));font-size:21px}
main header>a:last-child{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:10px;font-size:24px}
main h1,main h2,main h3{color:var(--ink);letter-spacing:.01em;overflow-wrap:anywhere}
main h2{font-size:19px;margin:25px 0 12px;line-height:1.4}
main p,main li{line-height:1.7;overflow-wrap:anywhere}
main small,main .muted{color:var(--muted)}
main .card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px #25344a06;padding:18px;min-width:0}
main .card>h2:first-child{margin-top:0}
main label{font-size:14px;color:var(--ink);line-height:1.5}
main input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),main textarea,main select{min-height:46px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;color:var(--ink);font-size:16px;padding:12px}
main input[readonly]{background:#eef2f6;color:#526175}
main input::placeholder,main textarea::placeholder{color:#6c7989}
main input[type=checkbox],main input[type=radio]{accent-color:var(--blue)}
main .button,main form>button:not(.policy-link){border-radius:10px;min-height:46px;font-size:15px;font-weight:600}
main .secondary{background:#edf2f7;color:#315b89;box-shadow:none}
main .orange{background:var(--orange);box-shadow:none}
main .error{background:#fff1f0;color:#9c2929;border:1px solid #efc1bd;border-radius:9px;padding:11px 13px;font-size:14px}
main .error:empty{display:none}
main .hero{background:#364b60;padding:32px 12px 66px}
main .hero h1{color:#fff;font-size:25px;margin:8px 0}
main .hero p{color:#e1e7ed;margin:10px 0}
main .home-intro{margin-top:-40px}
main .home-intro h2{margin:0 0 7px}
main .help{padding:18px 12px;border:1px solid #e3e7eb;background:#f7f8fa;border-radius:12px;color:var(--ink)}
main .help h3{margin:0}
main .help p{color:var(--muted)}
main .refined-services>.card{padding:14px 10px;border-radius:12px}
main .service-icon{background:#e9eff8;color:#325a84;box-shadow:none;border-radius:10px}
main .green-icon{background:#e9f2ed;color:#356653}
main .trust-card{padding:0}
main .trust-copy{background:#f4f6f8;color:var(--ink)}
main .trust-copy strong{color:#3f5369}
main .example-stat-copy{padding:20px 18px}
main .example-stat-copy .example-stat-tag{display:inline-block;padding:6px 10px;border:1px solid #cba765;border-radius:6px;background:#fff5db;color:#70430e;font-size:14px;font-weight:700;margin-bottom:8px}
main .example-stat-copy strong{color:#a87400;font-size:clamp(24px,6vw,30px);font-weight:800;white-space:nowrap}
main .example-stat-copy .example-stat-note{font-size:13px;color:#435267;background:#e8edf2;border:1px solid #cbd5e1;border-radius:8px;padding:10px;margin:14px 0 0;font-weight:600}
main .quote-mark{color:#b8c4d1}
main .trust-features{padding:19px 8px;color:#43566a}
main .news-list{padding:0 14px}
main .news-row{gap:12px;padding:15px 0}
main .news-row h3{color:var(--ink);font-size:15px}
main .mobile-nav{border-color:var(--line);box-shadow:0 -3px 16px #263b4d08}
main .mobile-nav a{min-width:0;flex:1;min-height:44px;color:#566579}
main .mobile-nav a.active{color:var(--blue)}
main .mobile-nav a.active small{color:var(--blue);font-weight:700}
main .auth-card{margin:28px 0;padding:24px 20px}
main .auth-card>p:last-child{text-align:center;margin-bottom:0;font-size:14px}
main .password-wrap button{min-width:48px;min-height:44px;color:var(--blue)}
main .password-wrap input{padding-right:66px!important}
main .status-tabs a{min-height:36px;display:grid;place-items:center}
main .avatar-choice{border:1px solid var(--line);border-radius:10px;padding:8px 3px}
main .avatar-choice:has(input:checked){background:#edf4ff;border-color:#648cbd}
main .my-center .my-balances>div{min-width:0}
main .my-center .my-balances strong{font-size:clamp(15px,4vw,23px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
main .my-center .my-funds{background:#355475;box-shadow:none}
main .my-center .my-identity,main .my-center .my-menu,main .my-center .my-project{border:1px solid var(--line);border-radius:var(--radius)}
main .my-center .my-menu>a{min-height:60px}
main .my-center .my-state{background:#ffffff20;color:#fff}
main .my-center .my-funds h2,main .my-center .my-funds small{color:#fff}
main .my-center .my-funds p{font-size:12px;color:#e8edf3}
main .my-center .my-project-status{background:#eef2f6;color:#40576e}
main .my-center .my-empty{padding:36px 16px;color:var(--muted)}
main .my-settings-head{border-bottom:1px solid var(--line)}
main .my-settings-head a,main .case-top a{min-width:44px;min-height:44px;display:grid;place-items:center}
main .case-detail{background:var(--surface);padding-bottom:40px}
main .case-detail:has(>a.case-bottom){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
main .case-top{border-color:var(--line);font-weight:600}
main .case-brand{margin-bottom:18px;flex-wrap:wrap}
main .case-detail h1{margin:18px 0;line-height:1.5;font-size:22px}
main .case-detail .description,main .case-detail .case-privacy{color:#435267;line-height:1.9}
main .case-detail .case-privacy{padding:14px;border-left:3px solid #8293a8;background:#edf1f5;border-radius:6px}
main .detail-stats{background:#fff;border:1px solid var(--line);border-radius:12px}
main .featured-stats>div{min-width:0}
main .featured-stats strong{color:#455569;font-size:clamp(14px,3.8vw,20px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
main .featured-case{border:1px solid var(--line);border-radius:12px}
main .showcase-tag,main .showcase-detail-tag{white-space:normal;color:#70430e;background:#fff5db;border:1px solid #dabc79;font-size:13px}
main .showcase-caption{color:#435267;font-size:13px}
main .case-trust>span{background:#60778d;border-color:#d7e0e8}
main .case-detail div>.case-bottom{position:static;transform:none;width:auto;max-width:100%;font-size:15px;z-index:auto}
main .case-detail>p:last-child{padding-bottom:8px}
main .apply-shell{background:var(--surface)}
main .apply-shell .apply-card{border:1px solid var(--line);border-radius:14px;box-shadow:none}
main .apply-shell .apply-card h3,main .apply-shell .apply-card label{font-size:15px}
main .apply-shell .apply-card p{color:var(--muted)}
main .apply-shell .apply-steps span{color:#536579;clip-path:none;padding:0}
main .apply-shell .apply-steps .current{background:var(--blue);color:white}
main .apply-shell .apply-steps .done{background:#dce9f7;color:#285582}
main .apply-shell .apply-notice{background:#fff5e4;color:#794b16}
main .apply-shell .apply-bottom{border-top:1px solid var(--line);box-shadow:0 -4px 12px #263b4d08}
main .apply-shell .apply-bottom button{border-radius:10px;font-size:16px;min-height:48px}
main .apply-shell .photo-thumb button{width:30px;height:30px}
main .policy-page .card{line-height:1.9;font-size:15px}
main .policy-page .apply-head span{max-width:calc(100% - 90px);white-space:normal;text-align:center;font-size:15px;line-height:1.3}
main .chat-view{min-height:70vh;padding:14px}
main .chat-view .chat{background:#edf1f5;border:1px solid var(--line);max-height:48dvh;min-height:220px}
main .chat-view .bubble{border-radius:12px;padding:10px 12px}
main .chat-view .bubble.mine{background:#dfedfa;color:#203e5a}
main .chat-view .bubble small{color:#566579}
main .chat-head h2{font-size:18px}
main .chat-head>a{padding:10px 4px}
main .chat-view form{margin-top:auto}
main .chat-view form textarea{min-height:76px}
/* Account pages currently share the same inline-width card wrapper. */
main>.card[style*="max-width:480px"]{margin:18px 0!important;padding:20px 16px!important}
main>.card[style*="max-width:480px"]>h2{padding-bottom:14px;border-bottom:1px solid var(--line)}
main>.card[style*="max-width:480px"]>ul{list-style:none;padding:0;margin:12px 0}
main>.card[style*="max-width:480px"]>ul>li{padding:12px;margin:8px 0;background:#f3f6f9;border:1px solid var(--line);border-radius:10px;font-size:14px}
main>.card[style*="max-width:480px"]>p:last-child{border-top:1px solid var(--line);padding-top:12px;font-size:14px}
main .case-detail .card>h2{font-size:18px}
main .case-detail .card img{max-width:100%!important;height:auto}
@media(max-width:360px){main .refined-services>.card{gap:5px;padding:12px 8px}main .service-icon{width:30px;height:30px;font-size:20px}main .refined-services b{font-size:13px}main .my-center .my-identity{gap:8px;padding:14px 10px}main .my-center .my-avatar{width:48px;height:48px}main .featured-stats small{font-size:11px}main .avatar-picker{gap:5px}}
