*{
  box-sizing:border-box
}
body{
  margin:0;
  background:#090d15;
  color:#edf2ff;
  font-family:Inter,"Microsoft YaHei",sans-serif
}
button,input,select{
  font:inherit
}
button{
  cursor:pointer
}
.hidden{
  display:none!important
}
.wrap{
  max-width:1440px;
  margin:auto;
  padding:20px 30px
}
.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap
}
.top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px
}
.brand{
  font-weight:900
}
/* Scoped homepage navigation: keep modal headers and quoting layout unchanged. */
#app .wrap > header.top{
  display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;
  padding:18px 20px;border:1px solid #25354a;border-radius:18px;
  background:linear-gradient(120deg,#142032,#101722);box-shadow:0 8px 24px #00000018
}
#app header.top .brand{font-size:18px;letter-spacing:.4px;line-height:1.5}
#app header.top .brand::before{content:"";display:inline-block;width:4px;height:19px;background:#42dba6;border-radius:4px;margin-right:10px;vertical-align:-3px}
#app header.top .top-actions{gap:8px;min-width:0;justify-content:flex-end}
#app header.top .top-actions > .outline{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;font-size:13px;line-height:20px;white-space:nowrap;border-radius:9px;background:#172338;border-color:#30445e;transition:background .15s,border-color .15s}
#app header.top .top-actions > .outline:hover{background:#20334b;border-color:#5b8298;color:#eef9ff}
#app header.top #managePriceTables{border-color:#3c876f;background:#173a30;color:#a7f6d4;font-weight:700}
#app header.top #logoutBtn{background:transparent;color:#95a9c4}
#app header.top #subscriptionBadge{order:10;padding:7px 11px;background:#0e1725;border-color:#2a3a51;font-size:12px;white-space:nowrap}
#app header.top #logoutBtn{order:12}
#app header.top .page-zoom-controls{order:11;margin:0;padding:3px;height:38px;border-radius:9px;background:#0e1725;border-color:#2a3a51}
#app header.top .page-zoom-controls button{height:28px;min-width:25px;padding:0 5px}
#app header.top .page-zoom-controls .page-zoom-value{min-width:42px!important}
#app .wrap > .risk-audio-controls{padding:12px 16px!important;margin-bottom:12px!important;border:1px solid #28423e!important;border-radius:14px;background:linear-gradient(110deg,#112c25,#101a28);gap:12px}
#app .wrap > .risk-audio-controls #riskAudioStatus{flex:1;min-width:180px;font-size:12px;line-height:1.7;color:#a5c0bb}
#app .wrap > .risk-audio-controls .outline{min-height:38px;padding:8px 12px;border-radius:9px;font-size:13px;background:#132a27;border-color:#36564d}
#app .wrap > .risk-audio-controls #riskAudioButton{font-weight:700;color:#a6f1d2;border-color:#408a71}
#app .wrap > .risk-audio-controls #riskAudioButton[aria-pressed="true"]{background:#1e9b70;color:#fff;border-color:#41d6a3}
@media(max-width:1100px){#app .wrap > header.top{grid-template-columns:1fr;gap:14px}#app header.top .top-actions{justify-content:flex-start}}
@media(max-width:520px){#app .wrap > header.top{padding:14px;border-radius:14px}#app header.top .top-actions{gap:7px}#app header.top .top-actions > .outline{font-size:12px;padding:7px 10px;min-height:36px}#app .wrap > .risk-audio-controls{padding:12px!important;gap:10px}#app .wrap > .risk-audio-controls #riskAudioStatus{flex-basis:100%;order:2}#app .wrap > .risk-audio-controls #riskNotifyButton{margin-left:auto}}
.sub{
  font-size:12px;
  color:#8290a8;
  margin-top:4px
}
.badge{
  border:1px solid #3d4d67;
  border-radius:100px;
  padding:8px 12px;
  color:#b9c5d8;
  font-size:13px
}
.card{
  margin-top:18px;
  background:#121824;
  border:1px solid #29364a;
  border-radius:26px;
  overflow:hidden
}
.inner{
  padding:28px
}
.tools{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  background:#0e1420;
  border:1px solid #29364a;
  border-radius:16px;
  padding:12px
}
.tools p{
  margin:0;
  font-size:13px;
  color:#b9c5d8
}
.tools small{
  display:block;
  color:#748096;
  margin-top:4px
}
.tools .speech-hints{
  flex:0 1 420px;
  width:420px;
  max-width:100%;
  min-width:0;
  height:44px;
  overflow:hidden
}
.tools .speech-hints p,.tools .speech-hints small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:20px;
  height:20px
}
.tools .speech-hints.has-technical-contact{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;
  height:auto;min-height:44px;overflow:visible;align-items:center
}
#quoteTechnicalContact{
  grid-column:2;grid-row:1/3;color:#9ac8e2;font-size:14px;
  line-height:1.6;user-select:text
}
@media(max-width:700px){
  .tools .speech-hints.has-technical-contact{grid-template-columns:minmax(0,1fr)}
  #quoteTechnicalContact{grid-column:1;grid-row:auto;margin-top:6px}
}
.primary{
  border:0;
  border-radius:10px;
  padding:10px 15px;
  background:#38d694;
  color:#082016;
  font-weight:900
}
.danger{
  background:#ef4444;
  color:#fff
}
.outline{
  border:1px solid #3a4a61;
  background:transparent;
  color:#d9e2f0;
  border-radius:10px;
  padding:9px 13px
}
.guide-link{
  display:inline-block;
  text-decoration:none
}
.guide-link:hover{
  border-color:#70d6ad;
  color:#91efc5
}
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:22px
}
.chips span{
  font-size:13px;
  padding:6px 10px;
  border-radius:99px;
  background:#1d2635;
  color:#cad4e5
}
.chips #recognitionIndicator{
  border:1px solid #38d694;
  color:#91efc5;
  background:#17382b
}
.chips #recognitionIndicator[data-state="error"]{
  border:1px solid #ef4444;
  color:#ff7373;
  background:#3b1720
}
/* Quiet, aligned quote context: one segmented switch, not nested pills. */
#app .chips{align-items:center;gap:8px 14px;margin:14px 0 22px;min-width:0}
#app .chips .huawei-brand{display:inline-flex;flex:none;align-items:center;gap:2px;padding:3px;background:#0c1723;border:1px solid #2b4053;border-radius:10px;box-sizing:border-box}
#app .chips .huawei-brand button{height:30px;min-width:58px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:#869fb4;font-size:13px;line-height:30px;box-sizing:border-box;transition:background .15s,color .15s}
#app .chips .huawei-brand button:hover{background:#192c3a;color:#dcebf5}
#app .chips .huawei-brand button[aria-pressed=true]{background:#1c5145;color:#a9f5d9;box-shadow:0 1px 3px #0002}
#app .chips .huawei-brand button:focus-visible{outline:2px solid #68e0b6;outline-offset:2px}
#app .chips #recognitionIndicator{display:inline-flex;flex:none;align-items:center;gap:6px;padding:0;height:28px;border:0;border-radius:0;background:none;color:#77dcb1;font-size:12px;line-height:20px}
#app .chips #recognitionIndicator:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
#app .chips #recognitionIndicator[data-state=error]{background:none;border:0;color:#ff9a8b}
#app .chips #phrase{min-width:0;max-width:420px;padding:0;border-radius:0;background:none;color:#b4c6d7;font-size:13px;line-height:22px;overflow-wrap:anywhere}
#app .chips #phrase:empty{display:none}
#app .chips #quoteBrandState{padding:5px 10px;border:1px solid #304b58;border-radius:7px;background:#142b30;color:#a4dbc9;font-size:12px;line-height:20px;flex:none}
#quoteRouteNotice{padding:24px 0;color:#ffbe95;line-height:1.8;font-size:20px}
.quote-routing-blocked #modelName,.quote-routing-blocked #price,.quote-routing-blocked #nonWarrantyPrice,.quote-routing-blocked .matrix,.quote-routing-blocked .matrix+.sub,.quote-routing-blocked #models,.quote-routing-blocked #quoteDeductionSummary{display:none!important}
#app .chips .price-table-date{flex:1 1 360px;min-width:0;margin-left:auto;padding:0 0 0 14px;border:0;border-left:1px solid #304252;border-radius:0;background:none;font-size:12px;font-weight:400;line-height:20px;color:#8fa6b9!important;overflow-wrap:anywhere}
#app .chips .price-table-date.stale{color:#f3b87e!important;border-color:#715336}
@media(max-width:1100px){#app .chips .price-table-date{flex-basis:100%;margin-left:0;padding-left:0;border-left:0}}
@media(max-width:520px){#app .chips{gap:7px 12px;margin:12px 0 16px}#app .chips #phrase{order:3;flex-basis:100%;max-width:none}#app .chips .price-table-date{order:4;font-size:11px;line-height:18px}}
h1{
  font-size:clamp(38px,6vw,74px);
  margin:4px 0 20px;
  letter-spacing:-2px
}
.price{
  display:inline-flex;
  flex-direction:column;
  min-width:350px;
  border:1px solid #ef4444;
  border-radius:18px;
  padding:17px 25px;
  background:linear-gradient(135deg,#451a23,#1f141d);
  color:#ffb3b3;
  animation:pop .35s
}
.price b{
  font-size:clamp(54px,7vw,88px);
  line-height:1;
  color:#ff3d35;
  margin-top:6px
}
.matrix{
  overflow:auto;
  border:1px solid #29364a;
  border-radius:14px;
  margin-top:26px
}
table{
  border-collapse:collapse;
  width:100%;
  min-width:820px
}
th,td{
  border-right:1px solid #29364a;
  border-bottom:1px solid #29364a;
  padding:0
}
th{
  padding:14px;
  text-align:left;
  background:#1a2332;
  color:#c5d0e1
}
td button{
  width:100%;
  border:0;
  background:transparent;
  color:#eef3fd;
  font-weight:900;
  font-size:23px;
  padding:18px;
  position:relative
}
td button:hover{
  background:#47202a
}
.selrow th,.selrow td{
  background:#3b321e
}
.selected{
  background:#3e171d!important;
  color:#ff534e!important;
  box-shadow:inset 0 0 0 1px #ff4545
}
.selected:after{
  content:"当前";
  font-size:10px;
  position:absolute;
  right:7px;
  top:5px
}
.models{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:16px
}
.model{
  border:1px solid #29364a;
  background:#121824;
  color:#eaf0fa;
  border-radius:16px;
  padding:13px;
  text-align:left
}
.model small{
  color:#7e8ba2;
  display:block;
  margin-top:7px
}
.model.active{
  border-color:#ef4444;
  background:#391b24;
  color:#ffc0c0
}
.modal{
  position:fixed;
  inset:0;
  background:#080c13e8;
  display:grid;
  place-items:center;
  padding:18px;
  z-index:5
}
.auth{
  width:min(420px,100%);
  background:#121824;
  border:1px solid #3a4960;
  border-radius:20px;
  padding:26px
}
.auth h2{
  margin:0 0 8px
}
.auth p{
  color:#8d9ab0;
  font-size:14px;
  line-height:1.6
}
.auth input{
  width:100%;
  background:#0a101a;
  border:1px solid #3a4960;
  color:#fff;
  border-radius:10px;
  padding:12px;
  margin-top:10px
}
.auth button{
  margin-top:14px;
  width:100%
}
.auth a{
  color:#72dcff;
  cursor:pointer
}
.msg{
  min-height:20px;
  color:#ff8d8d;
  font-size:13px;
  margin-top:10px
}
.admin{
  position:fixed;
  inset:0;
  background:#080c13ee;
  overflow:auto;
  padding:24px;
  z-index:4
}
.panel{
  max-width:900px;
  margin:auto;
  background:#121824;
  border:1px solid #3a4960;
  border-radius:20px;
  padding:22px
}
@keyframes pop{
  0%{
  opacity:.2;
  transform:scale(.94) translateY(8px)
}
65%{
  transform:scale(1.03)
}
100%{
  opacity:1;
  transform:none
}

}
@media(max-width:700px){
  .wrap{
  padding:16px
}

.inner{
  padding:18px
}
.models{
  grid-template-columns:repeat(2,1fr)
}
.price{
  min-width:100%
}

}

.card{overflow:visible}
.tools{position:sticky;top:0;z-index:3}

/* The model selector cards are hidden at the owner request; voice pricing stays available. */
#models{display:none!important}
