:root{--bg:#f5f7f9;--ink:#182d32;--muted:#748389;--accent:#137b70;--accent-light:#e8f3ef;--line:#e6ecec;--red:#b34e47;--white:#fff;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;line-height:1.65}*{box-sizing:border-box}body{margin:0;background:var(--bg)}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button{border:1px solid var(--line);border-radius:9px;padding:9px 15px;background:white;color:var(--ink);cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#f0f5f3}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #78b9a9;outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:white}.primary:hover{background:#0c655b}.danger{color:var(--red)}.text-button,.quiet{background:transparent;border:0;padding:4px 0}.muted{color:var(--muted)}.small,small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:650}.brand{font-size:26px;font-weight:750;text-decoration:none;color:var(--ink);letter-spacing:-1px;display:inline-flex;align-items:center;gap:8px}.brand span{font-size:12px;letter-spacing:1px;border-radius:7px;background:var(--accent);color:white;padding:2px 6px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.7px;line-height:1.35;margin-bottom:0}h2{font-size:17px;letter-spacing:-.2px;margin-bottom:12px}h3{font-size:15px}p{margin-bottom:16px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:550;margin:0 0 17px}input,textarea,select{width:100%;background:#fff;border:1px solid #dce4e2;border-radius:9px;padding:11px 12px;color:var(--ink);font-size:14px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #137b7012}textarea{resize:vertical}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);box-shadow:none;flex-shrink:0}.checkbox-label{flex-direction:row;align-items:center;font-size:14px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{padding:48px 10%;background:#e7f1ed;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:760px}.auth-story:after{content:"";position:absolute;width:500px;height:500px;bottom:-230px;right:-160px;border-radius:50%;border:1px solid #cadfd6;box-shadow:0 0 0 60px #d9e9e040,0 0 0 120px #d9e9e030}.story-copy{z-index:1;max-width:450px}.story-copy h1{font-size:48px;line-height:1.45;margin:20px 0;letter-spacing:-2px}.story-copy p{max-width:340px;color:#607c72;font-size:16px}.auth-story small{color:#5e7c72;z-index:1}.auth-panel{display:flex;justify-content:center;align-items:center;background:white;padding:48px 36px}.auth-card{width:100%;max-width:370px}.auth-card h2{font-size:29px;margin:12px 0}.auth-card form{margin-top:30px}.auth-card .primary{width:100%;margin-top:5px;padding:12px}.auth-note{margin-top:34px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px}.sound-wave{display:flex;align-items:center;gap:7px;height:90px;margin-top:35px}.sound-wave i{display:block;width:7px;height:20px;border-radius:8px;background:#5c9c85}.sound-wave i:nth-child(2n){height:40px}.sound-wave i:nth-child(3n){height:62px}.sound-wave i:nth-child(5){height:78px;background:var(--accent)}.error{color:var(--red);font-size:13px;margin-top:14px}.workspace{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;position:sticky;top:0;background:#fff;border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column}.workspace-caption{font-size:11px;color:var(--muted);margin-top:8px}.sidebar nav{display:flex;flex-direction:column;gap:7px;margin-top:45px}.sidebar nav button{display:flex;align-items:center;gap:14px;border:0;text-align:left;background:transparent;padding:12px 15px;color:#667b7f;font-size:13px}.sidebar nav button span{font-size:18px;width:20px;text-align:center}.sidebar nav button.active{background:var(--accent-light);color:var(--accent);font-weight:650}.sidebar-bottom{margin-top:auto;padding-top:36px}.sidebar-bottom>button{display:block;margin:20px 0 13px;background:none;border:0;padding:0;color:var(--muted);font-size:12px}.environment{font-size:11px;border:1px solid #d6e8e0;background:#f2f8f5;border-radius:6px;padding:4px 8px;color:var(--accent)}.user-line{display:flex;align-items:center;gap:9px;font-size:12px;border-top:1px solid var(--line);padding-top:20px}.avatar{height:30px;width:30px;border-radius:50%;background:#ecf0f2;display:grid;place-items:center;font-weight:650}.user-line .quiet{margin-left:auto;font-size:11px;color:var(--muted)}.main{padding:37px 42px 20px;max-width:1550px;width:100%;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:18px}.page-header .eyebrow{color:var(--muted);font-size:10px;letter-spacing:1px;margin-bottom:8px}.badge{font-size:11px;border-radius:6px;background:#edf2f3;color:#657a7d;padding:5px 9px;white-space:nowrap}.badge.green{background:#e7f4ec;color:#277a54}.badge.orange{background:#fff1de;color:#9b6b21}.welcome-card{display:flex;justify-content:space-between;align-items:center;border-radius:var(--radius);padding:32px 37px;background:#e6f0eb;min-height:240px;overflow:hidden;position:relative;margin-bottom:24px}.welcome-card h2{font-size:25px;font-weight:650;letter-spacing:-.7px;margin:12px 0}.welcome-card p{color:#6d857d;font-size:13px}.welcome-card button{font-size:12px;padding:9px 16px}.welcome-card button span{margin-left:17px}.speaker-art{width:230px;height:175px;position:relative;margin-right:25px}.speaker-orb{position:absolute;width:100px;height:135px;border-radius:45px 45px 35px 35px;background:radial-gradient(ellipse at 35% 20%,#fff,#edf5f0 60%,#c8ddd2);left:60px;top:12px;box-shadow:14px 20px 25px #65897720,inset -2px -1px 3px #86b29a40;transform:rotate(-10deg)}.speaker-orb:after{content:"";position:absolute;left:13px;right:13px;top:25px;height:5px;background:#79b9a1;border-radius:50%;box-shadow:0 0 12px #57a88270}.speaker-art>span{position:absolute;border:1px solid #bfd7ca80;border-radius:50%;width:180px;height:60px;bottom:7px;left:24px;transform:rotate(-10deg)}.speaker-art>span:nth-of-type(2){width:220px;height:80px;left:4px;bottom:-3px}.speaker-art>span:nth-of-type(3){width:260px;height:100px;left:-16px;bottom:-13px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px 23px}.metric-label{font-size:12px;color:var(--muted);margin-bottom:12px}.metric-value{font-size:29px;font-weight:650;letter-spacing:-1px;line-height:1.2}.metric-value small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:6px}.metric-note{font-size:11px;color:var(--muted);margin-top:10px}.two-column{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px 26px;margin-bottom:23px;min-width:0}.card.soft{background:#f0f5f2;border-color:#e0eae3}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.card-heading h2{margin:0}.card-heading p{margin:8px 0 0}.card-heading>.muted{font-size:11px}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.daily-chart{display:flex;gap:10px;align-items:flex-end;height:145px;margin:16px 0 10px}.chart-day{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;font-size:10px;color:var(--muted)}.chart-day progress{appearance:none;transform:rotate(-90deg);width:85px;height:17px;margin:38px -30px;border:0;border-radius:4px;overflow:hidden;background:#f0f5f2}.chart-day progress::-webkit-progress-bar{background:#f0f5f2}.chart-day progress::-webkit-progress-value{background:#92bba9}.chart-day progress::-moz-progress-bar{background:#92bba9}.chart-day b{font-weight:500;font-size:11px;color:#5d8273}.device-mini{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.device-mini:last-child{border-bottom:0}.device-icon{width:38px;height:42px;border-radius:10px;background:#f2f6f4;display:grid;place-items:center;color:var(--accent);font-size:23px}.device-mini .badge{margin-left:auto}.device-mini strong{font-size:12px;font-weight:550}.device-mini small{display:block;color:var(--muted);font-size:10px}.tip{background:#f7f9f8;border-radius:8px;font-size:11px;color:#74857e;padding:13px 15px;margin-top:18px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{font-weight:500;font-size:10px;letter-spacing:.2px;color:var(--muted);padding:10px 12px;background:#f8faf9}td{padding:13px 12px;border-bottom:1px solid #eff3f2}tbody tr:last-child td{border-bottom:0}.empty{padding:40px 16px;text-align:center;color:#93a19e;font-size:13px}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions.compact{margin-bottom:18px}.actions.compact button{font-size:11px;padding:5px 10px}.device-row{display:flex;align-items:center;gap:16px;padding:19px 4px;border-bottom:1px solid var(--line)}.device-row label{flex-direction:row;align-items:center;gap:15px;margin:0;flex:1;font-weight:400}.device-row .device-description{display:flex;flex-direction:column;font-size:13px;gap:4px;overflow-wrap:anywhere}.device-row .device-description small{font-size:11px;color:var(--muted)}.device-row button{font-size:11px;padding:5px 10px}.steps{padding-left:20px;color:#526e64;font-size:13px;line-height:2.3}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.history-entry{border-top:1px solid var(--line);padding:20px 0}.history-meta{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:11px;margin-bottom:14px}.history-meta button{margin-left:auto}.history-entry h3,.history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;font-weight:400}.history-entry h3{font-weight:600}.history-entry p{color:#5c7371;margin-bottom:0}.debug-card{max-width:900px}.debug-messages{min-height:230px;max-height:500px;overflow-y:auto;padding:5px 0 20px}.message{padding:15px 18px;border-radius:12px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:90%;background:#f4f7f6}.message.user{margin-left:auto;background:#e6f1eb}.message.error{background:#fff1ed}.message small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.debug-messages .empty{padding-top:80px}.section-note{padding:14px 18px;border:1px solid #dce9e1;background:#eef5f0;color:#628070;font-size:12px;border-radius:9px;margin-bottom:20px}.invite-result{background:#f3f8f5;padding:18px;border-radius:10px;margin-bottom:20px;display:flex;align-items:center;gap:12px}.invite-result label{flex:1;margin:0}.narrow{max-width:650px}.footer{display:flex;justify-content:space-between;font-size:10px;color:#9aa6a3;padding:12px 0;gap:16px}.toast{position:fixed;left:50%;top:22px;transform:translateX(-50%);background:#21483d;color:white;border-radius:9px;padding:12px 22px;z-index:20;box-shadow:0 6px 25px #12352825;max-width:min(90vw,600px);font-size:13px}dialog{border:1px solid var(--line);border-radius:16px;max-width:430px;width:90%;padding:27px;color:var(--ink)}dialog::backdrop{background:#17352c66}dialog .actions{justify-content:flex-end;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(min-width:1500px){.main{padding:45px 65px}}@media(max-width:1100px){.workspace{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:28px 17px}.main{padding:30px 25px}.metrics{gap:12px}.metric{padding:18px}.two-column{grid-template-columns:1fr}.speaker-art{margin-right:0;transform:scale(.85)}.card{padding:22px}.story-copy h1{font-size:39px}}@media(max-width:720px){.auth-layout{grid-template-columns:1fr}.auth-story{min-height:280px;padding:25px 30px}.story-copy h1{font-size:29px;margin:14px 0}.story-copy p{font-size:13px}.sound-wave,.auth-story small{display:none}.auth-panel{padding:40px 25px}.workspace{display:block}.sidebar{height:auto;position:static;padding:17px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:22px}.workspace-caption{display:none}.sidebar nav{margin:16px -5px 0;flex-direction:row;overflow:auto;gap:4px}.sidebar nav button{padding:7px 10px;font-size:12px;white-space:nowrap}.sidebar nav button span{display:none}.sidebar-bottom{padding-top:15px;display:flex;align-items:center;gap:15px}.sidebar-bottom>button{margin:0;font-size:11px}.user-line{border:0;padding:0;margin-left:auto}.avatar{display:none}.user-line #username{max-width:85px;overflow:hidden}.main{padding:25px 18px}.page-header{margin-bottom:22px}.page-header h1{font-size:26px}.page-header .badge{font-size:10px}.welcome-card{padding:27px;min-height:210px}.welcome-card h2{font-size:22px}.speaker-art{display:none}.metrics{grid-template-columns:1fr 1fr;gap:12px}.metric{padding:17px}.metric-value{font-size:25px}.card{padding:20px}.card-heading{align-items:flex-start;flex-wrap:wrap}.card-heading p{font-size:12px}.card-footer{align-items:flex-start;flex-direction:column;gap:14px}.card-footer button{width:100%}.form-grid{gap:0 12px}.footer{flex-direction:column;gap:4px}.device-row{gap:9px}.device-row label{gap:10px}.invite-result{display:block}.invite-result button{margin-top:12px}.environment{font-size:9px}.history-meta{flex-wrap:wrap}.device-row .badge{font-size:9px}}

/* Live history prepends preserve the visible record explicitly. */
#history-list{overflow-anchor:none}
#usage-ranking-card{overflow-anchor:none}.ranking-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px 18px}.ranking-filters>label{flex:1;min-width:150px}.ranking-filters .checkbox-label{flex:1.3;min-width:210px;padding-bottom:10px}.ranking-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.ranking-pagination button{font-size:12px}.ranking-pagination .actions{flex-wrap:nowrap}#ranking-rows .badge{display:inline-block;margin:2px 0}@media(max-width:720px){.ranking-filters>label{min-width:120px}.ranking-pagination{flex-wrap:wrap}#ranking-metrics .metric{padding:12px}#ranking-metrics .metric-value{font-size:21px}}

.connected-account{padding:20px 0 8px}.connected-identity{display:flex;align-items:center;gap:15px;margin-bottom:22px}.connected-icon{background:#e7f4ec;color:#277a54;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-size:24px}.connected-identity strong{font-size:20px;display:block;letter-spacing:1px}.connected-identity .small{display:block;margin-top:3px}

#change-email-form{margin-top:20px}#security-sessions p,#security-trusted p{overflow-wrap:anywhere}#view-account h3{margin-top:24px}

.memory-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.memory-summary dt{color:var(--muted)}.memory-summary dd{margin:0;font-weight:600}.rule-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.rule-row p{overflow-wrap:anywhere;margin:8px 0}.rule-row .badge{margin-left:10px}#fallback-rule-form{margin-top:24px}@media(max-width:720px){.rule-row{display:block}.rule-row .actions{margin-top:12px}}

.dialogue-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}#prefix-form .card-footer{margin-top:0;padding:0;border:0;margin-bottom:16px;flex-direction:row} @media(max-width:900px){.dialogue-top{grid-template-columns:1fr;gap:0}}

.admin-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:22px;padding:3px 2px 10px}.admin-tabs button{white-space:nowrap;flex-shrink:0}.admin-tabs [aria-selected=true]{background:var(--accent);color:white;border-color:var(--accent)}.model-service-row{padding:16px 0;border-bottom:1px solid var(--line)}.model-service-row p{margin:6px 0;overflow-wrap:anywhere}#model-service-form{margin-top:24px}#model-service-form .actions{margin-bottom:18px}

.xiaomi-password-help{margin:-7px 0 18px}.xiaomi-password-help summary{color:var(--accent);cursor:pointer;font-size:12px;text-align:right}.xiaomi-password-help .tip{margin-top:10px;font-size:12px;color:var(--ink);overflow-wrap:anywhere}.xiaomi-password-help h3{font-size:14px;margin-bottom:10px}.xiaomi-password-help p{margin-bottom:12px}.xiaomi-password-help p:last-child{margin:12px 0 0}.xiaomi-password-help a{color:var(--accent);text-underline-offset:3px}.xiaomi-password-help summary:focus-visible{outline:3px solid #78b9a9;outline-offset:3px;border-radius:3px}
.billing-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.billing-plan{display:flex;flex-direction:column}.billing-plan button{margin-top:auto}.billing-price{font-size:30px;font-weight:650;margin:8px 0 20px}.billing-price small{font-size:13px;font-weight:400}.billing-copy{white-space:pre-wrap;overflow-wrap:anywhere}#payment-dialog{max-width:480px}#payment-dialog button{margin-top:12px}#payment-detail,#payment-order-state,#billing-support{overflow-wrap:anywhere}.payment-qr{display:block;width:min(100%,260px);height:auto;margin:16px auto}.payment-qr[hidden]{display:none}#payment-purchase-terms{max-height:180px;overflow:auto;padding:14px;background:#f3f7f5;border-radius:8px;margin-bottom:18px}#billing-settings-form{margin-top:20px}#billing-plan-form{margin-top:24px}

.model-account-links a{color:var(--accent);text-underline-offset:3px;display:inline-block}

.speech-diagnostic{min-width:150px;max-width:300px;white-space:normal;overflow-wrap:anywhere;margin:6px 0 0}

.connected-icon.warning{background:#fff1df;color:#a46513}

/* Service identity stays visible on both desktop and mobile. */
.service-identity{font-size:13px;font-weight:600;line-height:1.7;color:#34594c;letter-spacing:.3px}
.story-copy .service-identity{color:#34594c;font-size:13px;max-width:none}
.sidebar-identity{display:flex;flex-direction:column;font-size:12px;margin:12px 0 0}
.welcome-card>div:first-child{flex:1;min-width:0;max-width:620px}
.welcome-card .service-identity{font-size:13px;color:#34594c;margin:0 0 12px}
.welcome-card .speaker-art{flex-shrink:0}
.device-eligibility{background:#f2f7f4}
.device-eligibility p{font-size:14px;line-height:1.8;margin:12px 0 0;color:#496358}
@media(max-width:720px){.sidebar-identity{margin:8px 0 0;flex-direction:row;flex-wrap:wrap;gap:0 12px}.welcome-card .service-identity,.story-copy .service-identity{font-size:12px}.story-copy{margin-top:20px}.device-eligibility p{font-size:13px}}

/* Help pages and voluntary support feedback share the existing visual system. */
a.button{display:inline-block;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 16px;font-size:13px;background:white}
.auth-note a,.help-shell a:not(.brand):not(.button){color:var(--accent);text-underline-offset:3px}
.help-shell{max-width:1000px;margin:auto;padding:32px 24px;min-height:100vh}
.help-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:42px}
.help-header .service-identity{margin:8px 0 0;font-size:12px}
.help-intro h1{font-size:32px;margin:12px 0}.help-intro{margin-bottom:28px}
.faq-card details{border-top:1px solid var(--line);padding:18px 0}.faq-card details:last-child{padding-bottom:0}
.faq-card summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.7}.faq-card details p{font-size:14px;line-height:1.9;color:#496358;margin:14px 0 0}
.help-shell :focus-visible,.support-workspace :focus-visible,.feedback-handle :focus-visible{outline:3px solid #78b9a9;outline-offset:3px}
.support-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;font-size:12px}
.feedback-ticket{border-top:1px solid var(--line);padding:22px 0}.feedback-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#526f68;font-size:12px}
.feedback-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}
.feedback-reply{background:#edf5f1;border-radius:8px;padding:15px;margin:14px 0}.feedback-reply strong{font-size:13px}
.feedback-reply p{margin:8px 0 0}.feedback-handle{margin-top:18px;max-width:700px}.support-filter{max-width:230px}
#feedback-submit-result,#feedback-list-message,#admin-feedback-message{font-size:13px;color:#496358;overflow-wrap:anywhere}
@media(max-width:720px){.help-shell{padding:22px 18px}.help-header{margin-bottom:30px;align-items:flex-start}.help-header .brand{font-size:22px}.help-header .service-identity{font-size:11px}.help-header .button{white-space:nowrap;padding:8px 12px}.help-intro h1{font-size:27px}.support-pagination{flex-wrap:wrap}.faq-card summary{font-size:14px}.faq-card details p,.feedback-content{font-size:13px}}

.binding-result{background:#fff3e7;border:1px solid #ead2b8;color:#75451b;margin:16px 0}.binding-result p{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}

.icp-footer { padding: 16px; text-align: center; font-size: 12px; }
.icp-footer a { color: #52666b; text-decoration: underline; }
.auth-layout:not([hidden]) { min-height: calc(100dvh - 44px); margin-bottom: 44px; }
.auth-layout:not([hidden]) ~ .icp-footer {
  position: fixed;
  inset: auto 0 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 2;
}
