:root{--blue:#2868f4;--blue-2:#174ec8;--ink:#13213a;--muted:#718096;--line:#e4eaf3;--bg:#f4f7fc;--card:#fff;--teal:#058b91;--green:#159965;--amber:#ca7a11;--nav:72px;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0;overflow:hidden;background:#e9eef6;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input,textarea,select{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed}svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.eyebrow{margin:0 0 4px;color:#7e8ca2;font-size:12px;font-weight:800;letter-spacing:.08em}
.app-shell{position:relative;width:min(100%,500px);height:100dvh;margin:auto;overflow:hidden;background:var(--bg);box-shadow:0 0 60px rgba(30,54,90,.16)}
.page{display:none;position:absolute;inset:0 0 calc(var(--nav) + var(--safe));overflow:hidden}.page.active{display:block}

/* Orders and map placeholder */
.orders-page{background:#eaf0f8}.map-header{position:absolute;z-index:20;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(17px + env(safe-area-inset-top,0px)) 18px 34px;background:linear-gradient(180deg,rgba(247,250,255,.98),rgba(247,250,255,.8) 68%,transparent);pointer-events:none}.map-header>*{pointer-events:auto}.map-header h1{margin:0;font-size:27px;letter-spacing:-.04em}.icon-button{display:grid;place-items:center;width:43px;height:43px;color:var(--blue);background:#fff;border-radius:15px;box-shadow:0 8px 22px rgba(37,70,120,.14)}.icon-button svg{width:20px;height:20px}.icon-button.is-disabled{color:#9aa6b6;background:#f4f6f9;box-shadow:none}.map-wrap{position:absolute;inset:0;background-color:#e8eef7;background-image:linear-gradient(rgba(255,255,255,.5) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.5) 1px,transparent 1px);background-size:34px 34px}.map-placeholder{position:absolute;top:28%;left:50%;width:min(78%,310px);padding:22px 18px;text-align:center;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.88);border-radius:23px;box-shadow:0 16px 38px rgba(47,70,105,.09);transform:translate(-50%,-50%);backdrop-filter:blur(10px)}.map-placeholder-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 12px;color:#7890b8;background:#edf2fa;border-radius:16px}.map-placeholder-icon svg{width:25px;height:25px}.map-placeholder strong{display:block;font-size:16px}.map-placeholder p{margin:7px 0 0;color:#7d899b;font-size:12px;line-height:1.55}.map-service-chip{position:absolute;top:178px;left:16px;display:flex;align-items:center;gap:7px;padding:9px 12px;color:#7c6752;background:rgba(255,247,235,.94);border:1px solid #f5dfbd;border-radius:13px;font-size:12px;font-weight:700}.map-service-chip i{width:7px;height:7px;background:#d89236;border-radius:50%}
.order-panel{--sheet-top:44%;position:absolute;z-index:30;top:var(--sheet-top);bottom:0;left:0;right:0;display:flex;flex-direction:column;background:rgba(249,251,255,.99);border-radius:25px 25px 0 0;box-shadow:0 -12px 35px rgba(24,53,96,.17);will-change:top;transition:top .34s cubic-bezier(.22,.8,.25,1),border-radius .2s;overflow:hidden}.order-panel.dragging{transition:none}.order-panel[data-snap="expanded"]{border-radius:0;box-shadow:none}.order-panel[data-snap="collapsed"] .panel-content{visibility:hidden;pointer-events:none}.panel-drag{flex:none;width:100%;height:61px;padding:0 16px;color:var(--ink);background:transparent;touch-action:none;user-select:none}.order-panel[data-snap="collapsed"] .panel-drag{height:78px}.grabber{display:block;width:46px;height:5px;margin:8px auto 7px;background:#b7c3d3;border-radius:99px}.panel-peek{display:flex;align-items:center;justify-content:space-between}.panel-peek b{font-size:17px}.panel-peek small{color:#7e8b9e;font-size:12px}.panel-content{display:flex;flex:1;min-height:0;flex-direction:column;padding:0 16px}.panel-title{display:flex;align-items:end;justify-content:space-between;margin:1px 0 11px}.panel-title h2{margin:0;font-size:21px;line-height:1}.panel-title>span{color:#8b97a8;font-size:11px}.filters{display:flex;flex:none;gap:7px;overflow-x:auto;padding:0 0 11px;scrollbar-width:none}.filters::-webkit-scrollbar,.order-list::-webkit-scrollbar{display:none}.filters button{flex:none;padding:7px 12px;color:#68778d;background:#fff;border:1px solid var(--line);border-radius:99px;font-size:12px}.filters button.active{color:#fff;background:var(--ink);border-color:var(--ink)}.order-list{flex:1;min-height:0;overflow-y:auto;padding-bottom:24px;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y}.order-card{display:block;width:100%;margin-bottom:10px;padding:14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 7px 18px rgba(34,66,111,.065);transition:border-color .2s,box-shadow .2s,transform .2s}.order-card:active{transform:scale(.99)}.order-card.focused{border-color:#75a1ff;box-shadow:0 0 0 4px rgba(47,109,246,.12),0 10px 22px rgba(34,66,111,.1)}.order-card.female{background:linear-gradient(145deg,#fff,#fff6f8)}.order-card.male{background:linear-gradient(145deg,#fff,#f2f7ff)}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.card-head h3{margin:0;font-size:16px;line-height:1.35}.price{flex:none;color:var(--teal);font-size:16px;font-weight:850}.card-meta{display:flex;gap:6px;margin:7px 0;color:#7b8798;font-size:12px}.tag-row{display:flex;gap:6px;flex-wrap:wrap}.tag{padding:4px 7px;color:#566a82;background:rgba(255,255,255,.82);border:1px solid #e3e9f1;border-radius:6px;font-size:11px}.tag.warn{color:#9b6113;background:#fff7e9;border-color:#f7dfb8}.card-location{display:flex;align-items:center;gap:5px;margin-top:10px;padding-top:9px;border-top:1px solid #edf1f6;color:#68778d;font-size:12px}.card-location svg{width:14px;height:14px;color:var(--blue)}.location-pending{margin-left:auto;color:#9aa4b3;font-size:10px}.empty{padding:34px 15px;text-align:center;color:#8995a8}.empty h3{margin-bottom:6px;color:#314159}

#mapArea .tutor-map-scale{display:none!important}
#mapArea .tutor-map-logo{position:absolute!important;top:140px!important;right:auto!important;bottom:auto!important;left:12px!important;z-index:18!important;transform:none!important}
#mapArea .tutor-map-logo>*{pointer-events:auto}
/* 自绘的地图缩放按钮：比 SDK 默认的白色大方块小一圈，并且挪到「城市」按钮下方，
   不再互相压住。层级 1099 —— 高于 SDK 的 z-index:1000 覆盖层（否则点不动），
   低于订单抽屉 1100（抽屉全屏时自动被盖住）。 */
.tutor-map-zoom{position:absolute;z-index:1099;top:152px;right:14px;display:flex;flex-direction:column;gap:8px}
.tutor-map-zoom button{display:grid;place-items:center;width:34px;height:34px;color:#334a66;background:rgba(255,255,255,.95);border:1px solid rgba(217,226,238,.96);border-radius:11px;box-shadow:0 6px 16px rgba(37,70,120,.12);font-size:17px;font-weight:700;line-height:1;backdrop-filter:blur(10px)}
.tutor-map-zoom button:active{color:var(--blue);background:#eef3fb}
/* 地图 SDK 会生成一层覆盖整块地图的 z-index:1000 容器，会把抽屉的点击事件全部吃掉，
   所以抽屉的层级必须高于它，否则收起后拖不起来。 */
.order-panel{z-index:1100}

/* TeachGPT */
.teach-page{background:linear-gradient(180deg,#edf3ff 0,#f7f9fd 235px)}.teach-topbar{display:flex;align-items:center;gap:11px;padding:calc(21px + env(safe-area-inset-top,0px)) 18px 15px}.teach-topbar h1{margin:0;font-size:25px;letter-spacing:-.03em}.bot-icon{display:grid;place-items:center;flex:0 0 47px;height:47px;color:#fff;background:linear-gradient(145deg,var(--blue),#6357e9);border-radius:15px;box-shadow:0 9px 20px rgba(47,109,246,.2)}.bot-icon svg{width:25px;height:25px}.clear-button{margin-left:auto;padding:8px;color:#6f7d91;background:transparent;font-size:13px}.ai-connection{display:flex;align-items:center;gap:7px;margin:0 18px 12px;padding:10px 12px;color:#167653;background:#eaf8f2;border:1px solid #d1eee1;border-radius:13px;font-size:12px;font-weight:700}.ai-connection i{width:7px;height:7px;background:#20a96e;border-radius:50%}.ai-connection.checking{color:#6f7e92;background:#f0f3f7;border-color:#e3e8ef}.ai-connection.checking i{background:#8e9bad}.ai-connection.offline{color:#9a631c;background:#fff5e5;border-color:#f6dfba}.ai-connection.offline i{background:#d9953a}.teach-workspace{position:absolute;inset:115px 0 72px;overflow-y:auto;padding:18px;scrollbar-width:none}.teach-intro{text-align:center}.teach-orbit{display:grid;place-items:center;width:82px;height:82px;margin:10px auto 17px;background:radial-gradient(circle,#fff 37%,transparent 38%),conic-gradient(from 45deg,#2868f4,#7366f0,#1ab3a4,#2868f4);border-radius:50%;box-shadow:0 14px 34px rgba(47,91,190,.16)}.teach-orbit span{display:grid;place-items:center;width:46px;height:46px;color:#fff;background:linear-gradient(145deg,#2868f4,#6257e7);border-radius:15px;font-weight:900}.teach-intro h2{margin:0 0 8px;font-size:21px}.teach-intro>p{max-width:360px;margin:0 auto 19px;color:#748196;font-size:13px;line-height:1.65}.prompt-examples{display:grid;gap:9px;text-align:left}.prompt-examples button{display:block;width:100%;padding:13px 14px;color:var(--ink);background:#fff;border:1px solid #e0e7f1;border-radius:15px;box-shadow:0 6px 16px rgba(41,68,107,.05)}.prompt-examples button:active{background:#f3f7ff}.prompt-examples span,.prompt-examples b{display:block}.prompt-examples span{margin-bottom:5px;color:#6c83aa;font-size:10px;font-weight:750}.prompt-examples b{font-size:13px}.chat:empty{display:none}.message{display:flex;align-items:flex-end;gap:8px;margin:11px 0}.message p{max-width:83%;margin:0;padding:12px 14px;color:#304159;background:#fff;border:1px solid #e5eaf3;border-radius:17px 17px 17px 5px;box-shadow:0 5px 14px rgba(35,66,111,.06);font-size:14px;line-height:1.55}.avatar-small{display:grid;place-items:center;flex:0 0 30px;height:30px;color:#fff;background:linear-gradient(145deg,#2868f4,#6257e7);border-radius:10px;font-size:12px;font-weight:850}.message.user{justify-content:flex-end}.message.user p{color:#fff;background:var(--blue);border:0;border-radius:17px 17px 5px 17px}.result-card{display:block;width:calc(100% - 38px);margin:8px 0 9px 38px;padding:12px;text-align:left;background:#fff;border:1px solid #e4eaf3;border-radius:15px;box-shadow:0 6px 15px rgba(35,66,111,.06)}.result-card span{display:flex;justify-content:space-between;gap:8px}.result-card h3{margin:0;font-size:14px}.result-card strong{color:var(--teal);font-size:13px}.result-card p{margin:7px 0 0;color:#7c899a;font-size:11px}.result-reasons{line-height:1.5}.typing{display:flex;gap:4px;padding:7px}.typing i{width:6px;height:6px;background:#91a0b5;border-radius:50%;animation:bounce 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes bounce{50%{transform:translateY(-4px);opacity:.5}}.composer{position:absolute;left:14px;right:14px;bottom:10px;display:flex;gap:7px;padding:6px;background:#fff;border:1px solid #dfe6ef;border-radius:17px;box-shadow:0 10px 27px rgba(32,61,105,.12)}.composer input{flex:1;min-width:0;height:41px;padding:0 9px;border:0;outline:0;color:var(--ink);background:transparent;font-size:14px}.composer button{display:grid;place-items:center;width:41px;height:41px;color:#fff;background:var(--blue);border-radius:12px}.composer button:disabled{color:#a3adbb;background:#e9edf3}.composer svg{width:19px;height:19px}

/* Profile and registration */
.profile-page{background:linear-gradient(180deg,#eaf1ff 0,#f7f9fd 245px)}.profile-heading{padding:calc(25px + env(safe-area-inset-top,0px)) 20px 14px}.profile-heading h1{margin:0;font-size:29px;letter-spacing:-.04em}.profile-scroll{height:calc(100% - 94px);overflow-y:auto;padding:0 16px 30px;scrollbar-width:none}.unregistered-card{margin-top:22px;padding:30px 22px;text-align:center;background:#fff;border:1px solid #e4eaf3;border-radius:24px;box-shadow:0 14px 34px rgba(34,66,111,.08)}.unregistered-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;color:#446fca;background:#eaf1ff;border-radius:23px}.unregistered-icon svg{width:32px;height:32px}.unregistered-card h2{margin-bottom:9px;font-size:21px}.unregistered-card p{margin:0 0 21px;color:#748196;font-size:13px;line-height:1.65}.primary-button{width:100%;height:48px;color:#fff;background:var(--blue);border-radius:14px;font-weight:800;box-shadow:0 9px 20px rgba(40,104,244,.2)}.local-note{display:block;margin-top:12px;color:#929dad;font-size:10px}.registration-card{padding:18px;background:#fff;border:1px solid #e4eaf3;border-radius:22px;box-shadow:0 10px 26px rgba(34,66,111,.07)}.registration-card h2{margin-bottom:6px;font-size:19px}.registration-card>p{margin-bottom:16px;color:#7a8799;font-size:12px}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 9px}.profile-form label{color:#6f7d91;font-size:11px;font-weight:700}.profile-form label.wide{grid-column:1/-1}.profile-form input,.profile-form select{width:100%;height:42px;margin-top:5px;padding:0 11px;color:#23334b;background:#f7f9fc;border:1px solid #dfe6ef;border-radius:11px;outline:0;font-size:13px}.profile-form input:focus,.profile-form select:focus{border-color:#91b1fb;box-shadow:0 0 0 3px #eef4ff}.form-actions{display:flex;grid-column:1/-1;gap:9px;margin-top:4px}.form-actions button{flex:1;height:44px;border-radius:12px;font-weight:800}.form-actions .secondary{color:#64738a;background:#eef2f7}.form-actions .save{color:#fff;background:var(--blue)}.identity-card{display:flex;align-items:center;gap:14px;padding:18px;color:#fff;background:linear-gradient(145deg,#2868f4,#4e7df0 55%,#625fe1);border-radius:22px;box-shadow:0 15px 28px rgba(47,109,246,.22)}.profile-avatar{display:grid;place-items:center;flex:0 0 59px;height:59px;color:#2e62cc;background:#fff;border-radius:20px;font-size:23px;font-weight:850}.identity-card h2{margin:0 0 5px;font-size:20px}.identity-card p{margin:0 0 8px;color:rgba(255,255,255,.82);font-size:12px}.identity-card span{padding:4px 7px;color:#eafff5;background:rgba(20,108,82,.35);border:1px solid rgba(255,255,255,.18);border-radius:99px;font-size:10px}.profile-actions{display:flex;justify-content:flex-end;margin:10px 2px}.profile-actions button{padding:7px 10px;color:var(--blue);background:#eaf1ff;border-radius:9px;font-size:11px;font-weight:750}.info-card{padding:6px 16px;background:#fff;border:1px solid #e6ebf3;border-radius:20px;box-shadow:0 8px 22px rgba(35,67,113,.06)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;padding:14px 0 7px}.section-heading h2{margin:0;font-size:16px}.section-heading span{color:#9ba6b5;font-size:10px}.info-row{display:flex;align-items:center;min-height:67px;border-bottom:1px solid #edf1f6}.info-row:last-child{border-bottom:0}.info-icon{display:grid;place-items:center;flex:0 0 35px;height:35px;margin-right:11px;border-radius:11px}.info-icon svg{width:18px;height:18px}.info-icon.blue{color:#2868f4;background:#eaf1ff}.info-icon.violet{color:#735ad9;background:#f0edff}.info-icon.coral{color:#e65f70;background:#fff0f2}.info-icon.teal{color:#0d9ba4;background:#e9faf9}.info-icon.amber{color:#d48718;background:#fff6e6}.info-row small{display:block;margin-bottom:4px;color:#8c98a9;font-size:11px}.info-row strong{font-size:14px}

/* Admin */
.admin-page{background:linear-gradient(180deg,#eaf1ff 0,#f6f8fc 260px)}.admin-header{display:flex;align-items:center;justify-content:space-between;padding:calc(24px + env(safe-area-inset-top,0px)) 18px 14px}.admin-header h1{margin:0;font-size:28px;letter-spacing:-.04em}.admin-badge{padding:7px 10px;color:#2859c3;background:#fff;border:1px solid #d8e4fb;border-radius:99px;font-size:11px;font-weight:750}.admin-scroll{height:calc(100% - 94px);overflow-y:auto;padding:0 15px 34px;scrollbar-width:none}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.admin-stats div{display:flex;flex-direction:column;gap:4px;padding:13px 11px;background:rgba(255,255,255,.9);border:1px solid #e0e8f5;border-radius:15px}.admin-stats strong{color:var(--blue);font-size:22px}.admin-stats span{color:#8390a3;font-size:10px}.admin-card{margin-bottom:12px;padding:16px;background:#fff;border:1px solid #e5ebf4;border-radius:19px;box-shadow:0 8px 22px rgba(35,67,113,.06)}.admin-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.admin-kicker{display:block;margin-bottom:3px;color:#8b97a9;font-size:10px;font-weight:700}.admin-card h2,.review-heading h2{margin:0;font-size:17px}.admin-card>p{margin:10px 0 13px;color:#6c7a8f;font-size:12px;line-height:1.6}.source-status{display:flex;align-items:center;gap:5px;padding:6px 8px;color:#11865a;background:#eaf8f2;border-radius:99px;font-size:10px;font-weight:700}.source-status.pending{color:#96601b;background:#fff2de}.source-status i{width:6px;height:6px;background:#20ac70;border-radius:50%}.source-status.pending i{background:#d8953b}.source-status b{font:inherit}.source-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.source-option{padding:11px;color:#8490a1;background:#f6f8fb;border:1px solid #e8edf4;border-radius:12px}.source-option.active{color:#285bc6;background:#eef4ff;border-color:#bdd1ff}.source-option strong,.source-option span{display:block}.source-option strong{margin-bottom:4px;font-size:12px}.source-option span{font-size:10px}.input-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.input-heading label{font-size:13px;font-weight:750}.input-heading div{display:flex;gap:9px}.input-heading button{padding:4px;color:var(--blue);background:transparent;font-size:11px}.import-card textarea{width:100%;height:160px;padding:12px;resize:none;color:#2e3d53;background:#f6f8fb;border:1px solid #dfe6ef;border-radius:12px;outline:0;font-size:13px;line-height:1.6}.textarea-foot{display:flex;justify-content:space-between;margin:7px 2px 12px;color:#99a4b4;font-size:10px}.recognize-button,.import-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:46px;color:#fff;background:var(--blue);border-radius:13px;font-size:13px;font-weight:800}.recognize-button:disabled{color:#8c97a7;background:#e8edf3}.recognize-button svg{width:18px;height:18px}.recognition-section[hidden]{display:none}.review-heading{display:flex;align-items:end;justify-content:space-between;margin:3px 3px 10px}.review-heading>span{color:#7e8b9f;font-size:11px}.review-card{margin-bottom:10px;padding:14px;background:#fff;border:1px solid #dfe7f3;border-radius:17px}.review-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.confidence{padding:4px 7px;color:#11865a;background:#eaf8f2;border-radius:7px;font-size:9px}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.review-grid label{color:#7e899b;font-size:9px}.review-grid input{width:100%;height:36px;margin-top:4px;padding:0 9px;color:#27364d;background:#f6f8fb;border:1px solid #e2e8f0;border-radius:9px;font-size:11px}.review-grid label.wide{grid-column:1/-1}.raw-preview{max-height:72px;margin-top:9px;padding:9px;overflow:hidden;white-space:pre-line;color:#7b8798;background:#f7f9fc;border-radius:9px;font-size:9px;line-height:1.45}.import-button{margin:12px 0 5px;background:#17243a}.safety-card{display:flex;gap:11px;align-items:flex-start;background:#f9fbff}.safety-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;color:#315fc5;background:#eaf1ff;border-radius:11px}.safety-icon svg{width:18px;height:18px}.safety-card h2{font-size:13px}.safety-card p{margin:5px 0 0;color:#748196;font-size:10px;line-height:1.55}

/* Shared navigation and detail */
.bottom-nav{position:absolute;z-index:1000;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);height:calc(var(--nav) + var(--safe));padding:8px 10px var(--safe);background:rgba(255,255,255,.96);border-top:1px solid rgba(222,228,238,.9);box-shadow:0 -9px 24px rgba(27,52,88,.06);backdrop-filter:blur(16px)}.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#9aa5b4;background:transparent;font-size:11px;font-weight:700}.nav-item svg{width:22px;height:22px}.nav-item.active{color:var(--blue)}.nav-item.active:before{content:"";position:absolute;top:-8px;width:30px;height:3px;background:var(--blue);border-radius:0 0 5px 5px}.backdrop{position:fixed;z-index:1500;inset:0;background:rgba(14,25,44,.4);backdrop-filter:blur(2px)}.backdrop[hidden],.detail-sheet[hidden]{display:none}.detail-sheet{position:fixed;z-index:1600;left:50%;bottom:0;width:min(100%,500px);max-height:86dvh;overflow-y:auto;padding:10px 20px calc(20px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:27px 27px 0 0;box-shadow:0 -20px 50px rgba(17,36,68,.25);transform:translateX(-50%)}.detail-handle{width:40px;height:5px;margin:0 auto 18px;background:#d3dae5;border-radius:99px}.detail-close{position:absolute;top:19px;right:18px;display:grid;place-items:center;width:35px;height:35px;color:#657286;background:#f0f3f7;border-radius:12px;font-size:21px}.detail-sheet h2{padding-right:45px;margin:0 0 7px;font-size:22px}.detail-price{color:var(--teal);font-size:19px;font-weight:850}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 14px}.detail-box{padding:12px;background:#f5f7fb;border-radius:12px}.detail-box span{display:block;margin-bottom:4px;color:#8995a7;font-size:10px}.detail-box strong{font-size:13px}.detail-section{margin:13px 0;padding:14px;color:#5f6e82;background:#f6f8fb;border-radius:14px;font-size:13px;line-height:1.65}.original-info{white-space:pre-line}.copy-button{position:sticky;bottom:-20px;width:100%;height:49px;margin-top:8px;color:#fff;background:var(--blue);border-radius:14px;font-weight:800}.toast{position:fixed;z-index:2100;left:50%;bottom:94px;max-width:calc(100% - 40px);padding:10px 15px;color:#fff;background:rgba(20,31,50,.92);border-radius:11px;opacity:0;transform:translate(-50%,20px);transition:.22s;pointer-events:none;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}

.commute-module{margin:0 0 20px}.commute-map{position:relative;height:230px;overflow:hidden;background:linear-gradient(135deg,#eef3f7,#e3ebf1);border:1px solid #dce5ec;border-radius:20px}.commute-map-grid{position:absolute;inset:-30px;background-image:linear-gradient(28deg,transparent 47%,rgba(255,255,255,.92) 48%,rgba(255,255,255,.92) 52%,transparent 53%),linear-gradient(92deg,transparent 47%,rgba(255,255,255,.75) 48%,rgba(255,255,255,.75) 52%,transparent 53%);background-size:94px 76px;opacity:.78;transform:rotate(-7deg)}.commute-map:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,255,255,.08),rgba(226,236,243,.16));pointer-events:none}.commute-map-tabs{position:absolute;z-index:2;top:12px;left:50%;display:flex;padding:4px;background:rgba(255,255,255,.92);border:1px solid rgba(218,226,234,.85);border-radius:13px;box-shadow:0 7px 20px rgba(46,67,89,.12);transform:translateX(-50%);backdrop-filter:blur(10px)}.commute-map-tabs button{min-width:74px;height:35px;padding:0 13px;color:#758398;background:transparent;border-radius:10px;font-size:13px;font-weight:750}.commute-map-tabs button.active{color:#1e3046;background:#fff;box-shadow:0 3px 10px rgba(33,53,77,.1)}.commute-route{position:absolute;z-index:1;top:70px;right:52px;bottom:54px;left:52px}.commute-route span{position:absolute;top:18px;right:17px;bottom:18px;left:17px;border-left:5px dashed #8ba2b4;border-bottom:5px dashed #8ba2b4;border-radius:0 0 0 45px;opacity:.66}.commute-route i{position:absolute;z-index:2;display:grid;place-items:center;width:34px;height:34px;color:#fff;border:4px solid rgba(255,255,255,.9);border-radius:50%;box-shadow:0 5px 14px rgba(33,54,79,.2);font-size:11px;font-style:normal;font-weight:900}.route-start{top:0;left:0;background:#14a9a6}.route-end{right:0;bottom:0;background:#f05b6b}.commute-map-status{position:absolute;z-index:2;right:12px;bottom:12px;left:12px;display:flex;align-items:center;gap:9px;padding:10px 12px;color:#56677a;background:rgba(255,255,255,.9);border:1px solid rgba(217,226,234,.9);border-radius:13px;backdrop-filter:blur(9px)}.commute-map-status svg{flex:0 0 22px;width:22px;color:#517087}.commute-map-status strong,.commute-map-status span{display:block}.commute-map-status strong{color:#26384e;font-size:13px}.commute-map-status span{margin-top:2px;font-size:11px}.commute-card{position:relative;z-index:3;margin:-1px 7px 0;padding:15px 14px 14px;background:#fff;border:1px solid #dfe7ef;border-radius:0 0 18px 18px;box-shadow:0 12px 28px rgba(37,57,82,.08)}.commute-addresses{padding:2px 3px 12px}.commute-addresses>div{display:flex;align-items:center;gap:10px;min-width:0}.commute-addresses>div+div{margin-top:12px}.commute-addresses i{flex:0 0 9px;width:9px;height:9px;border-radius:50%}.start-dot{background:#14aaa6}.end-dot{background:#f05b6b}.commute-addresses span{min-width:0}.commute-addresses small,.commute-addresses strong{display:block}.commute-addresses small{margin-bottom:2px;color:#8b97a7;font-size:10px}.commute-addresses strong{overflow:hidden;color:#2b3a50;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.commute-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:12px 0;border-top:1px solid #edf1f5}.commute-modes button{display:flex;align-items:center;justify-content:center;gap:5px;height:39px;color:#768396;background:#f3f5f8;border-radius:11px;font-size:12px;font-weight:750}.commute-modes button svg{width:17px;height:17px}.commute-modes button.active{color:#fff;background:#14a9a6;box-shadow:0 7px 15px rgba(20,169,166,.2)}.commute-result{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:2px;padding:13px 14px;background:#f6fafb;border:1px solid #cce6e5;border-radius:13px}.commute-result small,.commute-result strong,.commute-result p{display:block}.commute-result small{color:#748294;font-size:10px}.commute-result strong{margin-top:3px;color:#148e8c;font-size:19px}.commute-result p{margin:3px 0 0;color:#96a1af;font-size:10px;line-height:1.4}.commute-navigate{flex:0 0 auto;height:37px;padding:0 15px;color:#148e8c;background:#fff;border:1px solid #30aaa7;border-radius:99px;font-size:12px;font-weight:800}.retry-orders{margin-top:12px;padding:9px 14px;color:#fff;background:var(--blue);border-radius:10px;font-size:12px;font-weight:800}
.city-picker-button{position:absolute;z-index:1099;top:105px;right:16px;display:flex;align-items:center;gap:6px;max-width:150px;height:37px;padding:0 10px;color:#334a66;background:rgba(255,255,255,.95);border:1px solid rgba(217,226,238,.96);border-radius:12px;box-shadow:0 7px 18px rgba(37,70,120,.11);font-size:12px;font-weight:800;backdrop-filter:blur(10px)}.city-picker-button>svg:first-child{flex:0 0 15px;width:15px;color:var(--blue)}.city-picker-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.city-chevron{flex:0 0 12px;width:12px;color:#8c98a8}.filter-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-bottom:12px}.filter-entry-grid>button{display:flex;align-items:center;justify-content:space-between;min-width:0;height:57px;padding:0 13px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:14px;text-align:left;box-shadow:0 5px 13px rgba(35,65,105,.04)}.filter-entry-grid span,.filter-entry-grid small,.filter-entry-grid strong{display:block;min-width:0}.filter-entry-grid small{margin-bottom:4px;color:#8b97a8;font-size:10px}.filter-entry-grid strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.filter-entry-grid svg{flex:0 0 16px;width:16px;color:#9aa5b4}.filter-page{position:absolute;z-index:1400;inset:0;display:flex;flex-direction:column;background:#f7f9fc}.filter-page[hidden]{display:none}.filter-page-header{display:grid;grid-template-columns:42px 1fr 48px;align-items:center;gap:9px;padding:calc(15px + env(safe-area-inset-top,0px)) 16px 13px;background:#fff;border-bottom:1px solid #e6ebf2}.filter-page-header>button:first-child{display:grid;place-items:center;width:40px;height:40px;color:#45556c;background:#f1f4f8;border-radius:12px}.filter-page-header>button:first-child svg{width:20px}.filter-page-header h2{margin:0;font-size:20px}.filter-page-header .eyebrow{margin-bottom:3px}.filter-clear{height:38px;color:var(--blue);background:transparent;font-size:13px;font-weight:800}.filter-page-body{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 100px}.filter-page-body>p{margin:0 2px 14px;color:#7e8b9e;font-size:12px;line-height:1.6}.filter-options{display:grid;gap:9px}.filter-option{display:flex;align-items:center;justify-content:space-between;width:100%;height:55px;padding:0 15px;color:#37475d;background:#fff;border:1px solid #e1e7ef;border-radius:14px;text-align:left}.filter-option>span{display:flex;align-items:center;gap:11px}.filter-option i{display:block;width:9px;height:9px;background:#d1d8e2;border-radius:50%}.filter-option strong{font-size:14px}.filter-option>svg{width:20px;color:transparent}.filter-option.selected{color:#205bcf;background:#f2f6ff;border-color:#9ebaf6;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.filter-option.selected i{background:var(--blue)}.filter-option.selected>svg{color:var(--blue)}.filter-empty{padding:58px 20px;text-align:center;color:#8995a8}.filter-empty h3{margin:0 0 7px;color:#35455c;font-size:16px}.filter-empty p{margin:0;font-size:12px}.filter-page-footer{position:absolute;right:0;bottom:0;left:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.95);border-top:1px solid #e3e8ef;backdrop-filter:blur(12px)}.filter-page-footer button{width:100%;height:48px;color:#fff;background:var(--blue);border-radius:14px;font-size:14px;font-weight:850}
@media(min-width:700px){body{padding:22px}.app-shell{height:calc(100dvh - 44px);border-radius:30px}.bottom-nav{border-radius:0 0 30px 30px}.detail-sheet{bottom:22px;border-radius:27px}.filter-page{border-radius:30px}}
@media(max-height:700px){.map-placeholder{top:25%}.teach-workspace{inset:106px 0 68px}.profile-scroll,.admin-scroll{height:calc(100% - 83px)}}
/* WorkBuddy account flow */
.auth-sheet{position:fixed;inset:0;z-index:2200;background:rgba(10,24,48,.52);display:flex;align-items:flex-end;justify-content:center;padding:18px;backdrop-filter:blur(10px)}
.auth-sheet[hidden]{display:none}.auth-sheet-card{position:relative;width:min(100%,460px);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;padding:28px 22px calc(24px + env(safe-area-inset-bottom));box-shadow:0 28px 70px rgba(18,42,84,.28)}
.auth-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:50%;background:#f1f5fb;color:#596982;font-size:25px}.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:20px}.auth-brand>span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#2f6df6;color:#fff;font-weight:800;font-size:20px}.auth-brand h2{margin:2px 0 0;font-size:24px;color:#10213d}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#f2f5fa;border-radius:14px;margin-bottom:20px}.auth-tabs button{border-radius:11px;padding:11px;background:transparent;color:#78879d;font-size:15px;font-weight:700}.auth-tabs button.active{background:#fff;color:#1c5fe8;box-shadow:0 4px 14px rgba(39,72,121,.1)}
.auth-form{display:grid;gap:14px}.auth-form[hidden]{display:none}.auth-form label{display:grid;gap:7px;color:#51617a;font-size:14px;font-weight:700}.auth-form input{width:100%;height:48px;border:1px solid #dce4f0;border-radius:13px;padding:0 14px;color:#152844;background:#fbfcff;outline:none}.auth-form input:focus{border-color:#4d80f4;box-shadow:0 0 0 3px rgba(47,109,246,.1)}
.auth-primary{height:50px;border-radius:14px;background:#2f6df6;color:#fff;font-size:16px;font-weight:800;box-shadow:0 10px 24px rgba(47,109,246,.22)}.auth-link{background:transparent;color:#2f6df6;font-size:14px}.auth-code-row{display:grid;grid-template-columns:1fr 108px;align-items:end;gap:10px}.auth-code-button{height:48px;border:1px solid #bed0f5;border-radius:13px;background:#eef4ff;color:#215bcf;font-weight:700}.auth-feedback{min-height:22px;margin:14px 0 0;text-align:center;color:#c94d5e;font-size:14px}.auth-feedback.ok{color:#16845b}
.empty-profile{margin-top:22px;padding:30px 22px;text-align:center;background:#fff;border:1px solid #e4eaf3;border-radius:24px;box-shadow:0 14px 34px rgba(34,66,111,.08)}.empty-avatar{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;color:#446fca;background:#eaf1ff;border-radius:23px}.empty-avatar svg{width:32px;height:32px}.empty-profile h2{margin-bottom:9px;font-size:21px}.empty-profile p{margin:0 0 21px;color:#748196;font-size:13px;line-height:1.65}.empty-profile>button:first-of-type{width:100%;height:48px;color:#fff;background:var(--blue);border-radius:14px;font-weight:800}.empty-profile .profile-login-link{display:block;margin:13px auto 0;background:transparent;color:#2f6df6}.profile-actions{gap:10px}.profile-actions button{flex:1}.profile-logout{margin-top:12px;background:transparent;color:#74849b}.profile-start{width:100%;height:46px;margin-top:16px;color:#fff;background:var(--blue);border-radius:13px;font-weight:800}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* v7 — compact WeChat mini-program inspired visual system */
:root{--blue:#1677ff;--blue-2:#0c63e7;--ink:#172338;--muted:#8b96a7;--line:#e8edf5;--bg:#f3f7ff;--card:#fff;--teal:#10aaa8;--nav:78px}
html,body{background:#edf2f9;color:var(--ink)}
.app-shell{max-width:520px;background:var(--bg);box-shadow:0 18px 70px rgba(35,63,108,.13)}
.page{inset:0 0 calc(var(--nav) + var(--safe))}
.eyebrow{color:#8793a4;font-size:11px;letter-spacing:.06em}

/* White mini-program title bars */
.map-header,.teach-topbar,.profile-heading{position:absolute;z-index:1200;top:0;right:0;left:0;height:76px;padding:calc(15px + env(safe-area-inset-top,0px)) 18px 12px;background:#fff;border-bottom:1px solid #edf0f5;box-shadow:none}
.map-header{z-index:1050;display:flex;align-items:center;justify-content:center;pointer-events:none}
.map-header>div{pointer-events:none;text-align:center}.map-header .eyebrow{display:none}
.map-header h1,.teach-topbar h1,.profile-heading h1{margin:0;color:#111827;font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.2}
.teach-topbar{display:flex;align-items:center;justify-content:center}
.profile-heading{display:flex;align-items:center;justify-content:center}.profile-heading .eyebrow{display:none}

/* Orders and map */
.orders-page{background:#eaf1f9}
.map-wrap{inset:76px 0 0;background-color:#e8eef5;background-size:36px 36px}
.icon-button{position:absolute;top:90px;right:14px;display:grid;width:42px;height:42px;color:var(--blue);background:#fff;border:1px solid #e5ebf4;border-radius:21px;box-shadow:0 7px 20px rgba(28,64,116,.16);pointer-events:auto}
.icon-button.is-disabled{color:#9ba7b7;background:rgba(255,255,255,.94)}
.city-picker-button{top:16px;right:auto;left:14px;max-width:170px;height:38px;padding:0 13px;color:#41536b;background:rgba(255,255,255,.94);border:0;border-radius:19px;box-shadow:0 6px 18px rgba(31,62,108,.14)}
.city-picker-button>svg:first-child{color:#ff4967}.city-chevron{color:#a1abba}
.map-service-chip{top:64px;left:14px;padding:8px 12px;color:#536175;background:rgba(40,49,66,.72);border:0;border-radius:18px;color:#fff;box-shadow:0 5px 14px rgba(21,37,63,.12);backdrop-filter:blur(10px)}
.map-service-chip i{background:#7ee0ae}
.map-placeholder{top:38%;width:min(76%,320px);padding:20px;background:rgba(255,255,255,.9);border:0;border-radius:22px;box-shadow:0 12px 32px rgba(44,74,117,.11)}
.map-placeholder-icon{color:var(--blue);background:#edf4ff}
#mapArea .tutor-map-logo{top:108px!important;left:14px!important}
.tutor-map-zoom{top:68px;right:14px;gap:7px}
.tutor-map-zoom button{width:36px;height:36px;border:0;border-radius:18px;box-shadow:0 5px 16px rgba(35,66,109,.14)}
.order-panel{z-index:1100;background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -9px 28px rgba(36,61,101,.14)}
.order-panel[data-snap="expanded"]{border-radius:0;box-shadow:none}
.panel-drag{height:62px;padding:0 18px}.order-panel[data-snap="collapsed"] .panel-drag{height:78px}
.grabber{width:48px;height:5px;margin:9px auto 9px;background:#c9d2df}
.panel-peek b{font-size:18px}.panel-peek small{color:#919baa;font-size:13px}
.panel-content{padding:0 18px}.panel-title{margin:2px 0 14px}.panel-title .eyebrow{display:none}.panel-title h2{font-size:20px}.panel-title>span{font-size:12px}
.filter-entry-grid{gap:10px;padding-bottom:14px}
.filter-entry-grid>button{height:54px;padding:0 14px;background:#f1f6ff;border:0;border-radius:13px;box-shadow:none}
.filter-entry-grid small{color:#8a96a8;font-size:11px}.filter-entry-grid strong{color:#2f6fcf;font-size:14px}.filter-entry-grid svg{color:#8fa5c2}
.order-list{padding-bottom:26px}
.order-card{margin-bottom:12px;padding:17px 16px;background:#fff;border:1px solid #edf0f5;border-radius:20px;box-shadow:0 7px 24px rgba(47,76,119,.07)}
.card-head h3{font-size:18px}.price{color:var(--teal);font-size:18px}
.card-meta{margin:9px 0;color:#7d899a;font-size:13px;line-height:1.55}
.tag-row{gap:7px}.tag{padding:5px 9px;color:#4f78ad;background:#eff5ff;border:0;border-radius:8px;font-size:12px}.tag.warn{color:#a56a12;background:#fff5df}
.card-location{margin-top:12px;padding-top:11px;color:#7d899a;font-size:13px}.card-location svg{color:#ff4b69}
.empty{padding:46px 15px}.empty h3{font-size:17px}

/* TeachGPT */
.teach-page{background:#f3f7ff}
.ai-connection{position:absolute;z-index:5;top:88px;right:16px;margin:0;padding:7px 10px;background:rgba(232,248,240,.96);border:0;border-radius:18px;font-size:11px;box-shadow:0 5px 15px rgba(32,79,76,.06)}
.ai-connection.checking,.ai-connection.offline{color:#7b8797;background:#fff;border:1px solid #e8edf4}
.teach-workspace{position:absolute;inset:76px 0 76px;display:flex;min-height:0;flex-direction:column;overflow-y:auto;padding:26px 18px 20px;scrollbar-width:none}
.teach-workspace::-webkit-scrollbar{display:none}
.teach-intro{flex:none;padding:0;text-align:left;background:transparent;border:0;box-shadow:none}
.teach-brand-row{display:flex;align-items:center;gap:13px;padding-right:0}
.bot-icon{display:grid;place-items:center;flex:0 0 54px;height:54px;color:#fff;background:linear-gradient(145deg,#1587ff,#3475f2);border-radius:17px;box-shadow:0 9px 22px rgba(22,119,255,.24)}
.bot-icon svg{width:29px;height:29px}
.teach-brand-copy{min-width:0;flex:1}.teach-brand-copy h2{margin:0 0 3px;color:#101827;font-size:24px}.teach-brand-copy p{margin:0;color:#7e8999;font-size:14px}
.clear-button{flex:none;margin:0;padding:9px 12px;color:#7e8998;background:#fff;border:1px solid #edf0f5;border-radius:18px;font-size:12px;box-shadow:0 4px 14px rgba(35,62,102,.05)}
.teach-guidance{margin-top:20px;padding:16px;color:#2269bd;background:#e7f1ff;border-radius:15px;font-size:15px;font-weight:650;line-height:1.65}
.teach-orbit{display:none}
.prompt-examples{display:grid;grid-template-columns:1fr;gap:9px;margin-top:15px}
.prompt-examples button{padding:13px 14px;text-align:left;background:#fff;border:1px solid #e7ecf3;border-radius:14px;box-shadow:0 5px 16px rgba(43,73,115,.045)}
.prompt-examples button span{display:block;margin-bottom:4px;color:#8e99a8;font-size:11px}.prompt-examples button b{color:#35455b;font-size:14px;font-weight:600}
.chat{flex:none;padding:12px 0 4px}
.message{margin:8px 0}.message p{font-size:14px;line-height:1.65}.message.user p{background:var(--blue);border-radius:18px 18px 4px 18px}.message.ai p{background:#fff;border:1px solid #e8edf4;border-radius:4px 18px 18px 18px;box-shadow:0 5px 18px rgba(45,73,113,.06)}
.avatar-small{background:linear-gradient(145deg,#1687ff,#3474ef)}
.result-card{border:1px solid #e8edf4;border-radius:17px;box-shadow:0 6px 20px rgba(45,73,113,.06)}
.composer{position:absolute;z-index:10;right:0;bottom:0;left:0;display:grid;grid-template-columns:1fr 74px;gap:10px;height:76px;padding:11px 16px;background:#fff;border-top:1px solid #edf0f5;box-shadow:none}
.composer input{height:52px;padding:0 17px;background:#f3f6fb;border:0;border-radius:26px;font-size:15px}
.composer button{width:74px;height:52px;color:#fff;background:var(--blue);border-radius:26px;box-shadow:none}
.composer button svg{width:22px}.composer button:disabled{background:#b9c4d3}

/* Profile */
.profile-page{background:#f3f7ff}
.profile-scroll{height:100%;padding:76px 16px 30px;overflow-y:auto;scrollbar-width:none}
.profile-scroll::-webkit-scrollbar{display:none}
.identity-card{position:relative;display:flex;align-items:center;gap:16px;margin:0 -16px 20px;padding:32px 22px 34px;color:#fff;background:linear-gradient(135deg,#1479ff 0%,#3f86fa 100%);border-radius:0 0 28px 28px;box-shadow:0 12px 26px rgba(25,117,242,.18)}
.profile-avatar{flex:0 0 68px;height:68px;color:#1677ef;background:#fff;border-radius:50%;font-size:27px}
.identity-copy{min-width:0;flex:1}.identity-card h2{margin:0 0 7px;font-size:22px}.identity-card p{overflow:hidden;margin:0;color:rgba(255,255,255,.82);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.identity-card span{display:inline-block;margin-top:9px;padding:4px 8px;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:10px;font-size:10px}
.identity-edit{flex:none;padding:9px 13px;color:#1c72de;background:#fff;border-radius:18px;font-size:12px;font-weight:750;box-shadow:0 5px 15px rgba(20,72,145,.12)}
.info-card{padding:6px 20px;background:#fff;border:0;border-radius:22px;box-shadow:0 7px 24px rgba(48,76,116,.055)}
.section-heading{display:none}
.info-row{position:relative;display:flex;align-items:center;min-height:69px;border-bottom:1px solid #f0f2f6}
.info-row:last-child{border-bottom:0}.info-icon{display:none}
.info-row>div{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-width:0;padding-right:18px}
.info-row small{flex:none;margin:0;color:#29364a;font-size:14px}.info-row strong{overflow:hidden;color:#9099a7;font-size:14px;font-weight:450;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.info-chevron{position:absolute;right:0;color:#c4cbd5;font-size:24px;font-weight:300;line-height:1}
.profile-logout{display:block;width:100%;height:46px;margin:16px 0 2px;color:#7e8999;background:#fff;border-radius:15px;font-size:14px;box-shadow:0 5px 18px rgba(45,73,113,.045)}
.empty-profile,.registration-card{margin-top:20px;background:#fff;border:0;border-radius:22px;box-shadow:0 8px 26px rgba(43,72,113,.07)}
.guest-profile-note{display:block;width:100%;margin:14px 0 0;padding:11px 14px;color:#8a6d1f;background:#fff8e6;border:1px solid #f3dfa8;border-radius:14px;font-size:12px;line-height:1.65;text-align:left}
.empty-profile{padding:34px 24px}.empty-avatar{color:#fff;background:linear-gradient(145deg,#1587ff,#3475f2);border-radius:50%}
.empty-profile>button:first-of-type,.profile-start{background:var(--blue);border-radius:22px;box-shadow:none}
.profile-form input,.profile-form select{background:#f7f9fc;border:1px solid #e6ebf2;border-radius:12px}.form-actions .save{background:var(--blue);border-radius:12px}

/* Navigation, sheets and forms */
.bottom-nav{height:calc(var(--nav) + var(--safe));padding:8px 10px var(--safe);background:#fff;border-top:1px solid #edf0f5;box-shadow:0 -5px 18px rgba(38,66,107,.045);backdrop-filter:none}
.nav-item{gap:5px;color:#9ca5b2;font-size:12px;font-weight:500}.nav-item svg{width:25px;height:25px;stroke-width:1.75}.nav-item.active{color:var(--blue);font-weight:650}.nav-item.active:before{display:none}
.detail-sheet{border-radius:28px 28px 0 0}.detail-box,.detail-section{background:#f5f8fc}.detail-price{color:var(--teal)}
.filter-page{background:#f3f7ff}.filter-page-header{min-height:76px;border-color:#edf0f5}.filter-option{border:0;border-radius:15px;box-shadow:0 5px 18px rgba(45,73,113,.045)}.filter-option.selected{background:#edf4ff;border:0;box-shadow:0 0 0 1px #9fc1fa}.filter-page-footer button{background:var(--blue);border-radius:24px}
.auth-sheet-card{border-radius:28px}.auth-tabs button.active{color:var(--blue)}.auth-primary{background:var(--blue);border-radius:24px;box-shadow:none}
.toast{bottom:104px;border-radius:18px}

@media(min-width:700px){body{padding:22px}.app-shell{height:calc(100dvh - 44px);border-radius:30px}.map-header,.teach-topbar,.profile-heading{border-radius:30px 30px 0 0}.bottom-nav{border-radius:0 0 30px 30px}.identity-card{margin-top:0}.detail-sheet{bottom:22px}}
@media(max-height:700px){.map-header,.teach-topbar,.profile-heading{height:66px}.map-wrap{top:66px}.icon-button{top:78px}.teach-workspace{inset:66px 0 70px;padding-top:18px}.profile-scroll{padding-top:66px}.teach-guidance{margin-top:14px}.prompt-examples{margin-top:10px}.prompt-examples button{padding:10px 12px}}

/* v8 — map cleanup, location picker and chat avatars */
.tutor-map-zoom,.tmap-scale-control,.tmap-zoom-control,[class*="tmap-rotate"]{display:none!important}
.commute-map .tutor-map-logo,.location-picker-map .tutor-map-logo{position:absolute!important;right:auto!important;bottom:5px!important;left:8px!important;top:auto!important;transform:scale(.82)!important;transform-origin:left bottom!important}

/* AI status sits in the title bar, beside the centered title. */
.teach-page>.ai-connection{z-index:1300;top:20px;right:16px;left:auto;margin:0;max-width:155px;padding:7px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.teach-page>.ai-connection span{overflow:hidden;text-overflow:ellipsis}

/* Chat avatars align with the top edge of their bubbles. */
.message{align-items:flex-start}
.message.user{align-items:flex-start}
.avatar-small{margin-top:1px;border-radius:11px}
.bot-avatar{color:#1677ff;background:#eaf3ff;border:1px solid #cfe2ff;font-size:17px;box-shadow:0 4px 12px rgba(22,119,255,.12)}
.user-avatar{color:#fff;background:linear-gradient(145deg,#273d63,#53719f);font-size:13px}

/* Order details close by pulling the sheet down from scrollTop 0. */
.detail-sheet{overscroll-behavior:contain;transition:transform .24s ease-out}
.detail-sheet.dragging{transition:none;user-select:none}
.detail-sheet.closing{transform:translate(-50%,100%)}
.detail-handle{position:relative;width:100%;height:26px;margin:-4px 0 8px;background:transparent;touch-action:none;cursor:grab}
.detail-handle:before{content:"";position:absolute;top:8px;left:50%;width:48px;height:5px;background:#c9d2df;border-radius:99px;transform:translateX(-50%)}
.detail-handle:active{cursor:grabbing}
.detail-close{display:none!important}
.detail-sheet h2{padding-right:0}
.commute-navigate:disabled{color:#9aa6b5;background:#f1f4f7;border-color:#dfe5ec;cursor:not-allowed}

/* Profile rows remain compact buttons; the address row opens positioning tools. */
.info-row{width:100%;padding:0;color:inherit;background:transparent;text-align:left}
.info-row .info-row-copy{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-width:0;padding-right:18px}
.info-row .info-row-copy small{flex:none;margin:0;color:#29364a;font-size:14px}
.info-row .info-row-copy strong{overflow:hidden;color:#9099a7;font-size:14px;font-weight:450;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.address-field{gap:8px}
.location-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:2px}
.location-form-actions button{display:flex;align-items:center;justify-content:center;gap:6px;height:42px;color:#2269cf;background:#edf4ff;border:1px solid #d6e5ff;border-radius:12px;font-size:13px;font-weight:700}
.location-form-actions svg{width:17px;height:17px}

/* Full-screen address picker */
.location-picker{position:absolute;z-index:2400;inset:0;display:flex;flex-direction:column;background:#f3f7ff}
.location-picker[hidden]{display:none}
.location-picker-header{position:relative;z-index:5;display:grid;grid-template-columns:44px 1fr 52px;align-items:center;gap:8px;height:76px;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 10px;background:#fff;border-bottom:1px solid #edf0f5}
.location-picker-header h2{margin:0;text-align:center;font-size:19px}
.location-picker-header button:first-child{display:grid;place-items:center;width:40px;height:40px;color:#4d5c71;background:#f2f5f9;border-radius:20px}
.location-picker-header button:first-child svg{width:20px}
.location-picker-header button:last-child{height:38px;color:#fff;background:var(--blue);border-radius:19px;font-size:13px;font-weight:750}
.location-picker-header button:last-child:disabled{color:#a0aaba;background:#e8edf4}
.location-picker-map{position:relative;z-index:1;isolation:isolate;flex:1;min-height:0;background:#e7edf5}
.location-picker-card{position:absolute;z-index:4;right:14px;bottom:18px;left:14px;display:flex;align-items:center;gap:14px;padding:16px;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,241,.9);border-radius:20px;box-shadow:0 12px 35px rgba(31,59,100,.16);backdrop-filter:blur(12px)}
.location-picker-card>div{min-width:0;flex:1}.location-picker-card small,.location-picker-card strong,.location-picker-card span{display:block}
.location-picker-card small{margin-bottom:4px;color:#909bab;font-size:11px}.location-picker-card strong{overflow:hidden;color:#26364c;font-size:15px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.location-picker-card span{margin-top:4px;color:#8b96a6;font-size:11px}
.location-picker-card button{display:flex;align-items:center;justify-content:center;gap:5px;flex:0 0 92px;height:42px;color:#fff;background:var(--blue);border-radius:21px;font-size:12px;font-weight:750}
.location-picker-card button:disabled{background:#aeb9c9}.location-picker-card button svg{width:17px;height:17px}

@media(max-width:390px){.teach-page>.ai-connection{right:8px;max-width:122px;padding-right:8px;padding-left:8px;font-size:10px}.location-picker-card{align-items:stretch;flex-direction:column}.location-picker-card button{width:100%;flex-basis:42px}}

/* v9 — saved-position maps and address search */
.address-picker-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:50px;padding:10px 13px;color:#2b3a50;background:#f7f9fc;border:1px solid #e0e7f0;border-radius:13px;text-align:left}
.address-picker-button span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.address-picker-button svg{flex:0 0 20px;width:20px;color:#2477ed}
.profile-form input[readonly]{color:#738197;background:#f3f6fa;cursor:default}
.address-picker-hint{margin-top:5px;color:#8c98a8;font-size:11px;line-height:1.45}

.location-search{position:relative;z-index:20;display:flex;align-items:center;gap:9px;flex:0 0 48px;margin:11px 14px;padding:0 12px;background:#fff;border:1px solid #dfe7f1;border-radius:15px;box-shadow:0 8px 22px rgba(31,59,100,.1)}
.location-search>svg{flex:0 0 19px;width:19px;color:#728198}
.location-search input{flex:1;min-width:0;height:46px;padding:0;border:0;outline:0;color:#26364c;background:transparent;font-size:14px}
.location-search button{display:grid;place-items:center;width:28px;height:28px;color:#8d98a8;background:#f0f3f7;border-radius:14px;font-size:17px}
.location-search-results{position:absolute;z-index:21;top:135px;right:14px;left:14px;max-height:min(46dvh,390px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;pointer-events:auto;padding:6px;background:#fff;border:1px solid #dfe7f1;border-radius:16px;box-shadow:0 16px 40px rgba(24,51,91,.2)}
.location-search-results[hidden]{display:none}
.location-search-result{position:relative;z-index:1;display:flex;align-items:flex-start;gap:10px;width:100%;padding:11px 10px;color:#26364c;background:transparent;border-radius:11px;text-align:left;pointer-events:auto;touch-action:manipulation}
.location-search-result:hover,.location-search-result:active{background:#eef5ff}
.location-search-result>svg{flex:0 0 20px;width:20px;margin-top:2px;color:#f05b6b}
.location-search-result>span{min-width:0}.location-search-result strong,.location-search-result small{display:block}
.location-search-result strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.location-search-result small{margin-top:4px;color:#8793a4;font-size:11px;line-height:1.35}
.location-search-state{padding:15px 12px;color:#8793a4;font-size:12px;text-align:center}

/* v12 — personalized order ranking and non-click-through address results */
.tag.special{color:#a14212;background:#fff1e8;border-color:#ffd4bd;font-weight:750}
.location-distance{margin-left:auto;color:#1677ef;font-size:10px;white-space:nowrap}
.filter-entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tag.online{color:#087b58;background:#e4f7ef;border-color:#c7ecdf}

/* v13：订单卡片内的腾讯地图路线与换乘步骤 */
.order-result{margin-bottom:12px}.order-result .order-card{margin-bottom:0}
.order-route-inline{margin-top:-1px;padding:14px 14px 16px;color:#17243a;background:#fff;border:1px solid #dfe8f5;border-top:1px dashed #cbd8e9;border-radius:0 0 18px 18px;box-shadow:0 10px 24px rgba(34,62,103,.08)}
.route-inline-head,.route-inline-summary,.route-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.route-inline-head strong{font-size:14px}.route-inline-head span,.route-inline-summary span{color:#8492a6;font-size:11px}
.route-mode-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0;padding:4px;border-radius:12px;background:#f2f6fc}.route-mode-tabs button{min-height:34px;border:0;border-radius:9px;color:#68778d;background:transparent;font-weight:700}.route-mode-tabs button.active{color:#1677ff;background:#fff;box-shadow:0 3px 10px rgba(39,80,137,.12)}
.route-inline-loading,.route-inline-error{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 12px;border-radius:12px;background:#f6f9fd}.route-inline-loading i{width:18px;height:18px;flex:0 0 auto;border:2px solid #cbd9ec;border-top-color:#1677ff;border-radius:50%;animation:route-spin .8s linear infinite}.route-inline-loading span,.route-inline-error span{color:#66768c;font-size:12px}.route-inline-error{align-items:flex-start;flex-direction:column;gap:3px;color:#b43c4d;background:#fff2f4}
.route-inline-summary{align-items:flex-start;padding:10px 12px;border-radius:12px;background:#eef6ff}.route-inline-summary strong{color:#1268d6;font-size:14px}.route-inline-summary span{white-space:nowrap}
.route-inline-steps{display:grid;gap:0;margin:10px 0 2px;padding:0;list-style:none}.route-inline-steps li{position:relative;display:flex;gap:10px;padding:7px 2px}.route-inline-steps li:not(:last-child)::after{content:"";position:absolute;left:11px;top:29px;bottom:-5px;width:1px;background:#d3dfef}.route-inline-steps li>i{z-index:1;display:grid;place-items:center;width:22px;height:22px;flex:0 0 auto;border-radius:50%;color:#1677ff;background:#eaf3ff;font-size:11px;font-style:normal;font-weight:800}.route-inline-steps li>span{display:grid;gap:2px}.route-inline-steps strong{font-size:13px;font-weight:700}.route-inline-steps small,.route-inline-empty{color:#7b899d;font-size:11px;line-height:1.5}.route-inline-empty{margin:10px 2px}
.route-inline-actions{margin-top:12px}.route-inline-actions button{flex:1;min-height:38px;border:1px solid #d8e3f2;border-radius:11px;color:#53657c;background:#fff;font-weight:700}.route-inline-actions button.primary{border-color:#1677ff;color:#fff;background:#1677ff}
@keyframes route-spin{to{transform:rotate(360deg)}}

/* Readable cards: give long prices, schedules and addresses their own space. */
.order-card{padding:18px 17px;border-color:#e5ebf3;border-radius:18px;box-shadow:0 4px 16px rgba(38,63,97,.045);color:var(--ink)}
.order-card:hover{border-color:#c4d5ef}
.order-card:focus-visible,.result-card:focus-visible{outline:3px solid #93b8ff;outline-offset:2px}
.card-head,.result-card .result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.card-head h3,.result-head h3{flex:1;min-width:0;margin:0;color:#182c48;font-size:17px;line-height:1.55;overflow-wrap:anywhere;word-break:normal}
.order-number,.result-card .order-number{display:block;flex:none;padding-top:4px;color:#8795a9;font-size:11px;font-weight:500;line-height:1.5;white-space:nowrap}
.card-pay,.result-card .card-pay{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:baseline;gap:9px;margin:10px 0 13px;padding:10px 12px;background:#f1f9f8;border-radius:10px}
.card-pay small{color:#63827f;font-size:12px;line-height:1.7;white-space:nowrap}
.card-pay .price,.result-card .card-pay strong{min-width:0;color:#087d77;font-size:16px;font-weight:750;line-height:1.65;overflow-wrap:anywhere;word-break:normal}
.card-meta{display:flex;align-items:flex-start;gap:8px;margin:0;color:#65758b;font-size:12px;line-height:1.8}
.card-meta svg,.card-location svg{width:15px;height:15px;flex:0 0 15px;margin-top:3px;color:#8d9cb0}
.card-meta>span{min-width:0;overflow-wrap:anywhere;word-break:normal}
.order-card .tag-row{gap:6px;margin-top:11px}
.order-card .tag{max-width:100%;padding:4px 8px;font-size:11px;line-height:1.6;overflow-wrap:anywhere;word-break:normal}
.order-card .card-location{display:grid;grid-template-columns:15px minmax(0,1fr);align-items:start;gap:5px 8px;margin-top:13px;padding-top:11px;color:#65758b;font-size:12px;line-height:1.8}
.location-copy{min-width:0;overflow-wrap:anywhere;word-break:normal}
.order-card .location-distance,.order-card .location-pending{grid-column:2;margin-left:0;color:#7a8ca3;font-size:11px;line-height:1.6;white-space:normal}
.result-card{padding:15px;border-radius:16px;border-color:#e1e9f2;box-shadow:0 4px 15px rgba(38,63,97,.04)}
.result-card .result-head h3{font-size:15px}
.result-card .card-pay{margin:10px 0}
.result-card .card-pay strong{font-size:14px}
.result-card p{overflow-wrap:anywhere;word-break:normal;line-height:1.8}
.result-card .result-match{display:inline-block;margin:0;padding:3px 8px;color:#3675ba;background:#eef5ff;border-radius:6px;font-size:11px}
.result-card .result-location{margin-top:9px;color:#65758b;font-size:12px}
.result-card .result-reasons{margin-top:9px;padding-top:9px;border-top:1px solid #edf1f6;color:#78869b}
.message p{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.teach-topbar{justify-content:flex-start;gap:12px}
.teach-topbar h1{flex:none}
.teach-topbar .clear-button{padding:7px 9px;font-size:11px;line-height:1.5}
.message.streaming p::after{content:"";display:inline-block;width:5px;height:13px;margin-left:4px;vertical-align:-1px;background:#6c93c5;animation:search-cursor 1s steps(2,end) infinite}
@keyframes search-cursor{50%{opacity:0}}
.detail-box{min-width:0;line-height:1.7}.detail-box strong,.detail-price,.detail-sheet h2{overflow-wrap:anywhere}
@media(max-width:360px){.panel-content{padding:0 12px}.order-card{padding:15px 13px}.card-head h3{font-size:16px}.card-pay .price{font-size:15px}.result-card{width:100%;margin-left:0}.filter-entry-grid{gap:6px}.filter-entry-grid>button{padding:0 9px}}
@media(prefers-reduced-motion:reduce){.message.streaming p::after{animation:none}}
.teach-results{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}
.teach-results .result-card{flex-shrink:0;min-width:0}
.teach-more{align-self:center;margin:4px 0 16px;padding:10px 18px;border:1px solid #dbe6f3;border-radius:12px;background:#f6f9ff;color:#3264a8;line-height:1.5;font-size:13px;white-space:normal}
.recommendation-hint{margin:-2px 0 12px;color:#78869b;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.card-recommendation{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;margin-top:9px;color:#3d7b69;font-size:11px;line-height:1.6;text-align:left}
.card-recommendation b{flex:none;padding:3px 8px;border-radius:6px;background:#eaf6f0;font-size:11px;white-space:nowrap}
.card-recommendation>span{min-width:0;overflow-wrap:anywhere}
.card-recommendation.muted{color:#8390a1}.card-recommendation.muted b{color:#748296;background:#f0f3f7}

/* Product sharing and feedback. */
.map-header-actions{display:flex;align-items:center;gap:8px}.product-share-button{display:flex;align-items:center;gap:5px;border:1px solid #dce7fa;border-radius:12px;padding:8px 12px;background:#fff;color:#2f6df6;white-space:nowrap;font-size:12px}.product-share-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.product-dialog[hidden]{display:none!important}.product-dialog{position:fixed;inset:0;z-index:130;display:grid;place-items:center;background:#192b4766;padding:18px}.product-dialog>div{position:relative;width:min(460px,100%);padding:24px;background:#fff;border-radius:20px;max-height:90dvh;overflow:auto;box-shadow:0 15px 60px #15284a30}.product-dialog h2{font-size:20px;margin:0 0 12px}.product-dialog p,.product-dialog label{font-size:13px;line-height:1.7;color:#556781}.product-dialog-close{position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;background:#eef3fa;color:#677b95;font-size:22px}.product-dialog textarea,.product-dialog input[readonly]{width:100%;padding:10px;margin:7px 0 14px;border:1px solid #dce5f0;border-radius:10px;font:inherit;box-sizing:border-box}.nps-scores{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:3px}.nps-scores label{position:relative;cursor:pointer}.nps-scores input{position:absolute;opacity:0}.nps-scores span{display:grid;place-items:center;height:34px;border:1px solid #dfe6f1;border-radius:7px;background:#f6f9fd;font-size:12px}.nps-scores input:checked+span{background:#2f6df6;color:#fff;border-color:#2f6df6}.nps-scores input:focus-visible+span{outline:2px solid #2f6df6;outline-offset:2px}.nps-hints{display:flex;justify-content:space-between;font-size:10px;color:#94a0b2;margin:6px 0 16px}#productFeedbackButton{background:#eaf1ff;color:#2f6df6;border-radius:9px;padding:8px 12px;font-size:12px;margin-top:10px}@media(max-width:380px){.product-dialog>div{padding:20px 14px}.product-share-button{padding:7px 9px}}

.map-header .map-header-actions{position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:auto}.product-share-button{pointer-events:auto}.product-dialog{z-index:4000}.profile-heading #productFeedbackButton{position:absolute;right:16px;top:50%;transform:translateY(-50%);margin:0}

.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.favorites-page{overflow:auto;padding:20px 18px calc(var(--nav) + var(--safe) + 24px)}
.favorites-page .profile-heading{padding:6px 0 16px}
.favorites-list{display:grid;gap:10px}
.favorite-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #e6ebf3;border-radius:13px;background:#fff}
.favorite-row button:first-child{text-align:left;min-width:0}
.favorite-row button:first-child span{display:block;color:#516178;font-size:.8rem;margin-top:4px;overflow-wrap:anywhere}
.favorite-row button:last-child,.detail-favorite,.favorites-retry,.favorites-login{padding:8px 12px;border-radius:8px;background:#fff4c7;color:#654400;font-weight:700}
.detail-favorite[aria-pressed="true"]{background:#facc15;color:#422b02}
.detail-favorite:focus-visible,.favorite-row button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

.online-filter-shortcut{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:34px;margin:4px 0 8px;padding:5px 11px;color:#204e9f;background:#eef4ff;border:1px solid #d7e5ff;border-radius:999px;font-size:.8rem;font-weight:700}
.online-filter-shortcut[aria-pressed="true"]{color:#fff;background:#2563eb;border-color:#2563eb}
.online-filter-shortcut:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

.qualification-note{margin:5px 0 9px;color:#475569;font-size:.8rem}
