:root{
  --bg:#e9edf3;--card:#fff;--text:#1a1f2b;--sub:#5b6472;--muted:#9aa3b2;--line:#e8ebf1;
  --blue:#2563eb;--blue-ink:#1d4ed8;--blue-soft:#eef3fe;
  --green-ink:#0f7a52;--green-soft:#e9f6ef;
  --amber-ink:#9a6700;--amber-soft:#fcf2dd;
  --red-ink:#c2362f;--red-soft:#fdecea;
  --r:14px;--r-md:16px;--r-lg:20px;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Segoe UI","Malgun Gothic",sans-serif;
  color:var(--text);-webkit-font-smoothing:antialiased}
.phone{width:390px;height:824px;background:#f6f8fb;border-radius:46px;border:9px solid #11151f;
  box-shadow:0 30px 70px rgba(20,28,46,.22);overflow:hidden;position:relative}
.screen{height:100%;overflow-y:auto;padding:14px 20px 92px;scrollbar-width:none}
.screen::-webkit-scrollbar{display:none}
.status{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:13px;padding:4px 4px 16px;color:var(--text)}
.signal{display:flex;gap:6px;align-items:center;color:var(--text)}
.signal i{font-size:15px}
.pill-signal{display:none}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px;min-width:0}
.brand{display:flex;align-items:center;gap:9px;flex:none;min-width:0}
.logo{width:32px;height:32px;border-radius:9px;background:var(--blue);
  display:grid;place-items:center;color:#fff;font-weight:600;font-size:16px}
.brand strong{font-size:19px;font-weight:600;letter-spacing:-.3px}
.lang{display:flex;gap:4px;flex:0 1 auto;min-width:0}
.lang button{border:1px solid var(--line);background:#fff;width:34px;height:32px;border-radius:9px;
  font-size:11px;font-weight:600;cursor:pointer;color:var(--sub)}
.lang button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.lang select{border:1px solid var(--line);background:#fff;height:34px;border-radius:10px;
  font-size:13px;font-weight:500;cursor:pointer;color:var(--text);padding:0 32px 0 12px;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa3b2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;max-width:108px}
.hero{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 20px;margin-bottom:18px}
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:var(--blue-soft);color:var(--blue-ink);
  padding:7px 12px;border-radius:999px;font-size:12px;font-weight:500;margin-bottom:15px}
.hero-badge i{font-size:14px}
.hero h1{margin:0;font-size:25px;font-weight:600;line-height:1.28;letter-spacing:-.6px}
.hero p{margin:12px 0 20px;color:var(--sub);font-size:14px;line-height:1.6}
.primary-btn{width:100%;border:0;border-radius:var(--r);background:#11151f;color:#fff;padding:15px 18px;
  font-size:15px;font-weight:600;letter-spacing:-.2px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;transition:opacity .15s ease,transform .12s ease}
.primary-btn i{font-size:18px}
.primary-btn:active{transform:scale(.985)}
.primary-btn:hover{opacity:.92}
.ghost-btn{background:#fff;color:var(--text);border:1px solid var(--line)}
.ghost-btn:hover{background:#f6f8fb;opacity:1}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}
.section-title h2{margin:0;font-size:17px;font-weight:600;letter-spacing:-.3px;display:flex;align-items:center;gap:7px}
.section-title h2 i{font-size:18px;color:var(--blue)}
.section-title span{color:var(--blue);font-size:13px;font-weight:500}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.quick-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:16px;min-height:120px}
.quick-card .emoji{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px}
.quick-card .emoji i{font-size:21px}
.quick-card strong{display:block;font-size:15px;font-weight:600;letter-spacing:-.3px;margin-bottom:4px}
.quick-card p{margin:0;color:var(--sub);font-size:12px;line-height:1.45}
.soft-blue{background:var(--blue-soft);color:var(--blue-ink)}
.soft-green{background:var(--green-soft);color:var(--green-ink)}
.soft-orange{background:var(--amber-soft);color:var(--amber-ink)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:18px;margin-bottom:12px}
label{display:block;font-size:12px;color:var(--sub);margin:10px 0 4px;font-weight:500}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:var(--r);
  font-size:14px;font-family:inherit;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
textarea{min-height:60px;resize:vertical}
.frow{display:flex;gap:10px}.frow>div{flex:1}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
.chip-sel{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font-size:12px;
  font-weight:500;cursor:pointer;color:var(--sub)}
.chip-sel.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.upload-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.upload-row:last-child{border-bottom:0;padding-bottom:0}
.upload-left{display:flex;align-items:center;gap:12px;min-width:0}
.file-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:none}
.file-icon i{font-size:20px}
.upload-left strong{display:block;font-size:14px;font-weight:600;letter-spacing:-.2px}
.upload-left span{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.upload-actions{display:flex;gap:6px;flex:none}
.upload-chip{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:999px;padding:8px 13px;font-size:12px;
  font-weight:500;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.upload-chip i{font-size:15px}
.upload-chip.cam{padding:8px 10px}
.upload-chip.done{background:var(--green-soft);color:var(--green-ink);border-color:transparent}
details.numbox{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:4px 18px;margin-bottom:12px}
details.numbox summary{list-style:none;cursor:pointer;font-size:15px;font-weight:600;padding:14px 0;letter-spacing:-.2px}
details.numbox summary::-webkit-details-marker{display:none}
.progress-card{background:#11151f;color:#fff;border-radius:var(--r-lg);padding:22px;margin-bottom:16px}
.progress-card h2{margin:0 0 8px;font-size:19px;font-weight:600;letter-spacing:-.3px}
.progress-card p{color:#aeb6c4;margin:0 0 16px;font-size:13px;line-height:1.5}
.bar{width:100%;height:8px;background:rgba(255,255,255,.14);border-radius:999px;overflow:hidden;margin:16px 0 10px}
.bar span{display:block;height:100%;width:0%;border-radius:999px;background:#3b82f6;transition:width .5s ease}
.step-list{margin-top:14px}
.step{display:flex;align-items:center;gap:10px;padding:8px 0;color:#8a93a4;font-size:13px;font-weight:500}
.step .dot{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.1);display:grid;place-items:center;font-size:12px}
.step.active{color:#fff}
.step.active .dot{background:var(--blue);color:#fff}
.result-hero{background:var(--blue-soft);border:1px solid #dbe7fd;border-radius:var(--r-lg);padding:20px;margin-bottom:14px}
.result-hero span.tagp{display:inline-flex;align-items:center;gap:6px;background:#fff;padding:6px 11px;border-radius:999px;
  color:var(--blue-ink);font-size:12px;font-weight:500;margin-bottom:14px}
.result-hero h2{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--blue-ink);letter-spacing:-.3px;line-height:1.35}
.money{font-size:32px;font-weight:600;color:var(--blue-ink);letter-spacing:-.8px;margin:2px 0}
.result-hero p{color:#3f5b86;margin:8px 0 0;font-size:12px;line-height:1.55}
.mini-table{width:100%;border-collapse:collapse;margin-top:2px}
.mini-table tr{border-bottom:1px solid var(--line)}
.mini-table tr:last-child{border-bottom:0}
.mini-table td{padding:12px 0;font-size:14px;color:var(--sub)}
.mini-table td:last-child{text-align:right;font-weight:600;color:var(--text)}
.need{color:var(--red-ink);font-size:11px;font-weight:500;display:block;margin-top:2px}
.tag{display:inline-flex;align-items:center;gap:4px;font-size:11px;border-radius:999px;padding:5px 9px;font-weight:500}
.timeline{position:relative;padding-left:20px;margin-top:4px}
.timeline::before{content:"";position:absolute;left:5px;top:5px;bottom:5px;width:2px;background:var(--line)}
.timeline-item{position:relative;padding:0 0 16px 8px}
.timeline-item:last-child{padding-bottom:0}
.timeline-item::before{content:"";position:absolute;left:-19px;top:4px;width:11px;height:11px;border-radius:50%;
  background:var(--blue);border:2px solid #fff;box-shadow:0 0 0 2px var(--blue-soft)}
.timeline-item strong{display:block;font-size:12px;font-weight:500;color:var(--blue-ink);margin-bottom:3px}
.timeline-item p{margin:0;font-size:13px;line-height:1.5;color:var(--text)}
.chat-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:16px;margin-bottom:14px}
.chat-bubble{padding:12px 14px;border-radius:16px;font-size:14px;line-height:1.55;margin:9px 0}
.chat-bubble.user{background:var(--blue);color:#fff;margin-left:38px;border-bottom-right-radius:5px}
.chat-bubble.bot{background:#f3f5f9;color:var(--text);margin-right:22px;border-bottom-left-radius:5px}
.chat-list{min-height:240px}
.chat-list.empty{min-height:0}
.chat-meta{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.chat-meta span{background:var(--blue-soft);color:var(--blue-ink);border-radius:999px;padding:4px 9px;font-size:10px;font-weight:500}
.next-actions{margin:8px 0 2px;padding-left:18px;color:var(--sub);font-size:13px;line-height:1.5}
.rag-sources{margin:8px 0 2px;padding-left:18px;color:var(--muted);font-size:11px;line-height:1.5}
.chat-disclaimer{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.5}
.quick-chat{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.quick-chat button{border:1px solid var(--line);background:#fff;color:var(--sub);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:500;cursor:pointer}
.quick-chat button:hover{background:#f6f8fb}
.chat-form{display:flex;gap:8px;align-items:end;margin-top:12px}
.chat-form textarea{min-height:44px;max-height:120px;border-radius:14px;flex:1}
.chat-form button{width:46px;height:44px;border:0;border-radius:50%;background:var(--blue);color:#fff;font-size:18px;cursor:pointer;flex:none;display:grid;place-items:center}
.chat-form button i{font-size:18px}
.chat-form button:disabled{background:#c7cdd8;cursor:default}
.bottom-nav{position:absolute;left:0;right:0;bottom:0;height:72px;background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:8px 10px 12px;z-index:10}
.nav-item{border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;cursor:pointer}
.nav-item .nav-icon{font-size:21px;display:grid;place-items:center}
.nav-item .nav-icon i{font-size:21px}
.nav-item.active{color:var(--blue)}
.page{display:none}
.page.active{display:block;animation:fadeUp .22s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.floating-scan{width:66px;height:66px;border-radius:22px;background:var(--blue);
  display:grid;place-items:center;color:#fff;margin:18px auto 6px;animation:float 2.3s ease-in-out infinite}
.floating-scan i{font-size:30px}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.flow-steps{display:flex;gap:6px;margin-bottom:14px}
.fstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);font-size:11px;font-weight:500}
.fstep b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eef1f6;color:var(--muted);font-size:12px;font-weight:600}
.fstep.on{color:var(--blue)}
.fstep.on b{background:var(--blue);color:#fff}
.fstep.done b{background:var(--green-ink);color:#fff}
.notice{display:flex;gap:8px;align-items:flex-start;background:var(--amber-soft);color:var(--amber-ink);border-radius:var(--r);padding:12px 14px;font-size:12px;line-height:1.5;font-weight:500;margin-top:14px}
.notice i{font-size:16px;flex:none;margin-top:1px}
.small-muted{font-size:12px;color:var(--muted);line-height:1.5;margin-top:8px}
.muted{color:var(--muted)}
.home-title{margin:6px 0 10px;font-size:23px;font-weight:600;line-height:1.3;letter-spacing:-.5px}
.home-sub{color:var(--sub);font-size:14px;line-height:1.6;margin:0 0 22px}
.steps3{display:flex;align-items:center;gap:6px;margin-bottom:22px}
.s3{flex:1;text-align:center}
.s3-ic{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 0;margin-bottom:7px;display:grid;place-items:center}
.s3-ic i{font-size:22px;color:var(--blue)}
.s3 span{font-size:11px;color:var(--sub);font-weight:500}
.s3-sep{color:var(--muted);font-size:16px;flex:none}
.trust-line{display:flex;align-items:center;gap:6px;justify-content:center;font-size:11px;color:var(--muted);margin:14px 0 0;line-height:1.5;text-align:center}
.trust-line i{font-size:14px;flex:none}
.logo-img{width:30px;height:30px;display:block;border-radius:8px}
.up-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:14px}
.up-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:15px 14px;cursor:pointer;min-height:116px;transition:border-color .15s}
.up-card:hover{border-color:var(--blue)}
.up-card strong{display:block;font-size:14px;font-weight:600;margin:10px 0 3px;letter-spacing:-.2px}
.up-state{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted)}
.up-state i{font-size:13px}
.up-state.done{color:var(--green-ink);font-weight:500}
.up-card .need{display:block;margin-top:3px;font-size:11px}
.toast{position:absolute;left:16px;right:16px;bottom:84px;background:#11151f;color:#fff;padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.4;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;z-index:50;pointer-events:none}
.toast.show{opacity:.96;transform:translateY(0)}

/* === 실기기(모바일): 폰 프레임 대신 풀스크린 + 노치/상태바 safe-area === */
@media (max-width:480px){
  body{display:block;background:#f6f8fb}
  .phone{width:100%;height:100vh;height:100dvh;border:0;border-radius:0;box-shadow:none;background:#f6f8fb}
  .status{display:none}
  .topbar{margin-top:6px}
  .screen{padding-top:max(14px,env(safe-area-inset-top));padding-bottom:calc(94px + env(safe-area-inset-bottom))}
  .bottom-nav{height:auto;min-height:72px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(90px + env(safe-area-inset-bottom))}
}

/* ===== GPS 온오프 토글 카드 ===== */
.gps-toggle-card{display:flex;align-items:center;justify-content:space-between;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-md);
  padding:14px 16px;margin-bottom:18px;gap:12px;transition:border-color .2s,background .2s}
.gps-toggle-card.on{border-color:#10b981;background:#f0fdf7}
.gps-toggle-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.gps-toggle-icon{width:40px;height:40px;border-radius:12px;background:var(--blue-soft);
  display:grid;place-items:center;flex:none;transition:background .2s}
.gps-toggle-icon i{font-size:20px;color:var(--blue);transition:color .2s}
.gps-toggle-card.on .gps-toggle-icon{background:#dcfce7}
.gps-toggle-card.on .gps-toggle-icon i{color:#10b981}
.gps-toggle-title{font-size:14px;font-weight:600;letter-spacing:-.2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gps-toggle-sub{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.4}
.gps-toggle-btn{flex:none;border:0;border-radius:999px;padding:9px 16px;
  font-size:13px;font-weight:600;cursor:pointer;background:#11151f;color:#fff;
  transition:background .2s,opacity .2s,transform .12s;white-space:nowrap}
.gps-toggle-btn:active{transform:scale(.96)}
.gps-toggle-btn:disabled{opacity:.35;cursor:default}
.gps-toggle-btn.on{background:#10b981}
.gps-ping-dot{display:inline-block;width:7px;height:7px;border-radius:50%;
  background:#10b981;margin-right:5px;vertical-align:middle;
  animation:gpsBlink 1.4s ease-in-out infinite}
@keyframes gpsBlink{0%,100%{opacity:1}50%{opacity:.25}}

/* 소셜 로그인 */
.topbar .auth{display:flex;align-items:center;gap:6px;margin-left:0;flex:none}
.auth-btn{border:0;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.auth-kakao{background:#FEE500;color:#191600}
.auth-out{background:#eef0f3;color:#444}
.auth-name{font-size:12px;font-weight:600;color:#222;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* 로그인 페이지 */
.auth-login{background:var(--bada-primary,#1b3bdb);color:#fff}
.auth-avatar{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#e6efff;color:#1b3bdb;font-size:11px;margin-right:5px}
.login-wrap{display:flex;flex-direction:column;align-items:center;padding:18px 8px 24px;text-align:center}
.login-brand{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:22px}
.login-logo{width:60px;height:60px;border-radius:16px;background:#e6efff;display:flex;align-items:center;justify-content:center}
.login-logo i{font-size:30px;color:#1b3bdb}
.login-brand-name{font-size:19px;font-weight:700;letter-spacing:.5px}
.login-title{font-size:20px;font-weight:700;line-height:1.4;margin:0 0 8px}
.login-sub{font-size:13px;color:#666;line-height:1.6;margin:0 0 22px}
.social-btn{width:100%;max-width:300px;height:48px;border:0;border-radius:12px;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;cursor:pointer}
.social-btn i{font-size:20px}
.social-kakao{background:#FEE500;color:#191600}
.social-naver{background:#03C75A;color:#fff}
.naver-n{font-weight:800;font-size:17px}
.social-google{background:#fff;color:#222;border:1px solid #dadce0}
.login-guest{margin:12px 0 20px}
.login-guest span{font-size:13px;color:#666;text-decoration:underline;cursor:pointer}
.login-terms{font-size:11px;color:#999;line-height:1.6;margin:0 0 14px}
.login-disclaimer{display:flex;align-items:center;gap:5px;font-size:11px;color:#999;padding-top:12px;border-top:1px solid #eee}
/* Community */
.community-hero{position:relative;overflow:hidden;border:1px solid rgba(37,99,235,.13);border-radius:24px;padding:17px 16px 16px;margin:2px 0 13px;background:linear-gradient(145deg,#fff 0%,#f7faff 52%,#f4fbf8 100%);box-shadow:0 16px 34px rgba(35,57,91,.09)}
.community-hero:before{content:"";position:absolute;right:-42px;top:-54px;width:142px;height:142px;border-radius:48px;background:linear-gradient(145deg,rgba(37,99,235,.11),rgba(15,159,130,.07));transform:rotate(18deg)}
.community-hero:after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(37,99,235,.18),transparent)}
.community-hero-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;font-size:12px;font-weight:800;color:var(--blue)}
.community-hero-top span{display:inline-flex;align-items:center;gap:6px;background:rgba(239,246,255,.82);border:1px solid rgba(37,99,235,.1);border-radius:999px;padding:6px 9px}
.community-hero-top b{display:none}
.community-hero-top b i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 5px rgba(16,185,129,.12)}
.community-hero h1{position:relative;z-index:1;margin:0;font-size:23px;line-height:1.22;font-weight:850;color:#0f172a;letter-spacing:-.45px}
.community-hero p{position:relative;z-index:1;margin:9px 0 14px;color:#5b6676;font-size:12.5px;line-height:1.55;max-width:94%}
.community-search{position:relative;z-index:1;height:46px;border:1px solid rgba(203,213,225,.72);background:rgba(255,255,255,.9);border-radius:18px;display:grid;grid-template-columns:34px 1fr 30px;align-items:center;gap:6px;padding:5px 7px 5px 6px;color:#8a94a6;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 22px rgba(35,57,91,.07)}
.community-search:focus-within{border-color:rgba(37,99,235,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 0 0 4px rgba(37,99,235,.08),0 12px 24px rgba(35,57,91,.1);background:#fff}
.community-search-icon{width:32px;height:32px;border-radius:13px;display:grid;place-items:center;background:#f1f6ff;color:#2563eb;font-size:17px}
.community-search-field{min-width:0;width:100%!important;height:100%!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#111827!important;font-size:14px!important;font-weight:650!important;padding:0!important;margin:0!important;border-radius:0!important}
.community-search-field::placeholder{color:#9aa4b2;font-weight:650}
.community-search-clear{all:unset;width:28px;height:28px;border-radius:50%;background:#eef2f7;color:#64748b;display:none;place-items:center;cursor:pointer;text-align:center}
.community-search-clear.show{display:grid}
.community-search-clear:active{transform:scale(.94)}
.community-stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.community-stats div{background:rgba(255,255,255,.78);border:1px solid rgba(226,232,240,.86);border-radius:13px;padding:8px 7px;text-align:center}
.community-stats strong{display:block;color:#111827;font-size:15px;font-weight:800}
.community-stats span{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:600}
.community-tabs{display:flex;gap:8px;overflow-x:auto;padding:1px 0 12px;margin:0 -2px;scrollbar-width:none}
.community-tabs::-webkit-scrollbar{display:none}
.community-tabs button{flex:none;border:1px solid var(--line);background:rgba(255,255,255,.92);color:#5d6978;border-radius:999px;padding:8px 12px;font-size:11.5px;font-weight:750;display:inline-flex;align-items:center;gap:5px;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.035);transition:background .18s,border-color .18s,color .18s,transform .12s}
.community-tabs button:active{transform:scale(.96)}
.community-tabs button.on{background:#111827;color:#fff;border-color:#111827;box-shadow:0 8px 18px rgba(17,24,39,.16)}
.community-hot{padding:13px;margin-bottom:12px}
.community-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.community-card-title h2{margin:0;display:flex;align-items:center;gap:6px;font-size:15px;font-weight:750;letter-spacing:0;color:#111827}
.community-card-title h2 i{color:#ef4444}
.community-card-title button{border:0;background:#f3f6fb;color:#516173;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}
.community-hot-list{display:flex;flex-direction:column;gap:8px}
.community-hot-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;border:1px solid #edf0f5;background:#fbfcfe;border-radius:12px;padding:9px 10px;cursor:pointer}
.community-hot-rank{width:22px;height:22px;border-radius:8px;background:#e8f1ff;color:var(--blue);display:grid;place-items:center;font-size:11px;font-weight:800}
.community-hot-title{min-width:0;color:#1f2937;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-hot-meta{color:#9aa3af;font-size:11px;font-weight:700}
.community-compose-entry{width:100%;border:1px solid #e3e9f3;background:#fff;border-radius:18px;padding:11px 13px;margin-bottom:13px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.045);transition:transform .12s,border-color .18s}
.community-compose-entry:active{transform:scale(.985)}
.community-compose-entry span:nth-child(2){font-size:13px;font-weight:700;color:#334155;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-compose-entry i{font-size:20px;color:#2563eb}
.community-avatar{width:32px;height:32px;border-radius:12px;display:grid;place-items:center;background:#eef6ff;color:var(--blue);font-size:11px;font-weight:800;flex:none}
.community-avatar.me{background:#111827;color:#fff}
.community-feed{display:flex;flex-direction:column;gap:13px}
.community-empty{border:1px dashed #cbd5e1;border-radius:18px;padding:26px 16px;text-align:center;background:#fff;color:#64748b;font-size:13px;line-height:1.55}
.community-empty i{display:block;font-size:28px;color:#94a3b8;margin-bottom:8px}
.community-post{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 10px 26px rgba(15,23,42,.05);animation:communityIn .24s ease both}
@keyframes communityIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.community-post-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.community-post-author{min-width:0;flex:1}
.community-post-author strong{display:block;color:#111827;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-post-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:2px;color:#97a2b0;font-size:10px;font-weight:700}
.community-badge{display:inline-flex;align-items:center;gap:3px;border-radius:999px;padding:3px 7px;background:#eef6ff;color:var(--blue);font-size:10px;font-weight:800}
.community-badge.warn{background:#fff7ed;color:#c2410c}
.community-post-title{margin:0 0 7px;color:#111827;font-size:15px;font-weight:800;line-height:1.38;letter-spacing:0}
.community-post-body{color:#344054;font-size:13px;line-height:1.64;white-space:pre-wrap;word-break:break-word}
.community-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.community-tags span{background:#f3f6fb;color:#64748b;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700}
.community-actions{display:flex;align-items:center;gap:7px 6px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px solid #eef2f7}
.community-action{border:0;background:#f7f9fc;color:#526071;border-radius:999px;min-height:34px;max-width:100%;padding:7px 9px;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
.community-action.primary{background:#eaf3ff;color:var(--blue)}
.community-action.danger{margin-left:0;width:34px;justify-content:center;padding-left:0;padding-right:0;background:#fff1f2;color:#e11d48}
.community-action.owner-danger{background:#fff1f2;color:#e11d48}
.community-load-comments{width:100%;border:0;background:transparent;color:#526071;font-size:12px;font-weight:800;text-align:left;padding:9px 3px 1px;cursor:pointer}
.community-translation{display:none;margin-top:10px;border-left:3px solid #60a5fa;background:#f8fbff;border-radius:12px;padding:10px 11px;color:#344054;font-size:12px;line-height:1.58;white-space:pre-wrap}
.community-translation.show{display:block}
.community-comments{margin-top:10px;background:#f8fafc;border-radius:14px;padding:4px 10px}
.community-comment{padding:9px 0;border-bottom:1px solid #edf1f6}
.community-comment:last-child{border-bottom:0}
.community-comment-meta{display:flex;align-items:center;gap:6px;color:#98a2b3;font-size:10px;font-weight:800;margin-bottom:4px}
.community-comment-body{color:#465568;font-size:12px;line-height:1.54;white-space:pre-wrap;word-break:break-word}
.community-comment-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.community-comment-form{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:10px}
.community-comment-form input{height:38px;border:1px solid var(--line);border-radius:999px;padding:0 13px;font-size:12px;min-width:0}
.community-comment-form button{border:0;background:#111827;color:#fff;border-radius:999px;padding:0 12px;font-size:12px;font-weight:800;cursor:pointer}
.community-sheet{position:fixed;inset:0;background:rgba(15,23,42,.28);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;z-index:90;transition:opacity .2s}
.community-sheet.show{opacity:1;pointer-events:auto}
.community-sheet-panel{width:min(390px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:9px 18px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(15,23,42,.24);transform:translateY(18px);transition:transform .22s}
.community-sheet.show .community-sheet-panel{transform:translateY(0)}
.community-grabber{width:44px;height:4px;border-radius:999px;background:#d6dbe5;margin:3px auto 14px}
.community-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.community-sheet-head h2{margin:0;font-size:18px;font-weight:800;color:#111827;letter-spacing:0}
.community-sheet-head button{width:34px;height:34px;border:0;border-radius:50%;background:#f3f6fb;color:#475569;display:grid;place-items:center;cursor:pointer}
.community-board-picks{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
.community-board-picks button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px;font-size:12px;font-weight:800;color:#526071;cursor:pointer}
.community-board-picks button.on{border-color:#111827;background:#111827;color:#fff}
.community-sheet input,.community-sheet textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;font-size:13px;margin-bottom:9px;background:#fbfcff;color:#111827}
.community-sheet textarea{min-height:132px;resize:none;line-height:1.55}
.community-safe-result{display:flex;gap:8px;align-items:flex-start;background:#f0fdf4;color:#047857;border-radius:14px;padding:11px 12px;font-size:12px;line-height:1.5;font-weight:700;margin:2px 0 12px}
.community-safe-result.warn{background:#fff7ed;color:#c2410c}
.community-safe-result.block{background:#fff1f2;color:#be123c}
.community-safe-result i{font-size:17px;flex:none;margin-top:1px}
.community-sheet-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px}
.community-sheet-actions .ghost-btn{margin:0;background:#f3f6fb;color:#334155;border:0}
.community-sheet-actions .primary-btn,.community-sheet-actions .ghost-btn{min-height:48px}
.community-loading{display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:13px;padding:24px 0}
.community-loading i{animation:communitySpin .9s linear infinite}
@keyframes communitySpin{to{transform:rotate(360deg)}}
@media (max-width:480px){
  .community-sheet-panel{width:100%;border-radius:22px 22px 0 0}
  .community-compose-entry span:nth-child(2){white-space:normal;line-height:1.35}
  .community-hero{padding:16px 15px 15px;margin-top:0;border-radius:22px}
  .community-hero:before{right:-58px;top:-62px}
  .community-hero h1{font-size:22px}
  .community-hero p{font-size:12.5px;margin-bottom:13px}
  .community-tabs{padding-bottom:10px}
  .community-search{height:46px}
}
@media (max-width:380px){
  .screen{padding-left:18px;padding-right:18px}
  .lang select{max-width:96px;padding-left:10px;padding-right:26px}
  .auth-name{max-width:58px}
  .auth-btn{padding:6px 9px}
}
