/* Customer-facing layout. */
.customer-site{background:radial-gradient(ellipse at 12% 8%,#fff4d6a6,transparent 46%),linear-gradient(150deg,#fffcf6 40%,#f4f8ff);min-height:100vh}
.customer-site .headinner,.customer-site .foot{width:min(1020px,calc(100% - 64px))}
.customer-site .headinner{min-height:80px}
.customer-site .sitehead{background:#ffffffc9;border-color:#e8edf3}
.customer-site .brand img{width:39px;height:39px}
.customer-site .brand strong{font-size:25px;letter-spacing:.055em}
.customer-site .site-nav{gap:0}
.customer-site .site-nav a{font-size:14px;gap:8px;color:var(--muted)}
.customer-site .site-nav a:hover{color:var(--blue)}
.customer-site .public-main{width:min(908px,calc(100% - 48px));padding-top:36px;padding-bottom:36px;min-height:calc(100vh - 80px)}
.portal-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,580px);gap:28px;align-items:start}
.portal-column{min-width:0}
.operation-guide{background:#ffffffed;border:1px solid #e5e9ee;border-radius:22px;padding:25px 24px 27px;box-shadow:0 9px 28px #19334f06,0 2px 3px #19334f04}
.guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guide-heading h2{font-size:20px;letter-spacing:0}
#guide-toggle{display:none;color:var(--blue);font-size:13px;min-height:32px}
.guide-intro{font-size:14px;color:var(--muted);line-height:1.85;margin-top:10px}
.guide-timeline{list-style:none;margin:23px 0 0;padding:0}
.guide-timeline li{display:grid;grid-template-columns:23px minmax(0,1fr);gap:12px;position:relative;padding-bottom:26px}
.guide-timeline li:last-child{padding-bottom:0}
.guide-timeline li:not(:last-child)::after{content:"";position:absolute;left:10px;top:29px;bottom:5px;width:2px;background:#e9edf4}
.guide-dot{height:22px;width:22px;display:grid;place-items:center;margin-top:1px;border:1.5px solid #d6dfeb;border-radius:50%;background:white;color:#8b9bb1;font-size:11px;line-height:1;font-weight:600}
.guide-timeline h3{font-size:15px;line-height:1.6;font-weight:650}
.guide-timeline p{font-size:13px;color:var(--muted);line-height:1.75;margin-top:3px}
.guide-timeline .current .guide-dot{color:white;background:var(--blue);border-color:var(--blue);box-shadow:0 0 0 4px #e8f1ff}
.guide-timeline .current h3{color:var(--blue)}
.guide-timeline .done .guide-dot{background:#eef5ff;color:var(--blue);border-color:#c9ddfc}
.guide-timeline .done::after{background:#d6e6ff}
.guide-link{display:inline-flex;gap:9px;align-items:center;min-height:34px;padding:4px 12px;margin-top:10px;border:1px solid #d3e3fb;border-radius:20px;color:var(--blue);font-size:12px;font-weight:600;background:#fff}
.guide-link:hover{background:#f2f7ff;border-color:#adcaf7}
.customer-site .service-bar{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;padding:14px 8px;margin:0 0 18px;gap:0;min-height:83px;border:1px solid #dde7f4;border-radius:20px;background:#fff;box-shadow:0 3px 5px #19334f05}
.service-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;line-height:1.5}
.service-stat+.service-stat{border-left:1px solid #e5edf8}
.service-stat strong{font-size:17px;font-weight:700;color:var(--ink)}
.service-stat .stat-label{font-size:12px;color:var(--muted);font-weight:400}
.customer-site .service-state{gap:8px}
.service-state #service-label{font-size:15px;color:#285fb3}
.customer-site .queue-count b{color:var(--ink);font-size:24px;line-height:1.05}
.customer-site .service-eta{grid-column:auto;padding-top:0;border-top:0}
.customer-site .mode{font-size:10px;line-height:1.4;padding:1px 4px;margin-left:2px;border-radius:4px}
.customer-site .workstation{padding:26px 27px 28px;border-radius:23px;border-color:#c7dcf9;box-shadow:0 12px 32px #19334f08,0 2px 3px #19334f03;overflow:visible}
.station-nav{display:grid;grid-template-columns:1.16fr 1.16fr 1fr 1.14fr;align-items:center;padding:4px;margin:0 0 27px;border:1px solid #e9eef5;border-radius:30px;background:#f2f5f9;gap:2px}
.station-nav a{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 3px;min-height:40px;border-radius:24px;white-space:nowrap;color:#63738b;font-size:13px;font-weight:600;transition:background .15s,color .15s}
.station-nav a:hover{color:var(--blue);background:#ffffff91}
.station-nav a[aria-current=page]{background:white;color:var(--blue);box-shadow:0 2px 5px #19334f15,0 1px 2px #19334f08}
.station-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.customer-site .steps{max-width:420px;margin:0 auto 29px;justify-content:space-between;gap:0}
.customer-site .steps li{position:relative;display:flex;flex:1;flex-direction:column;gap:10px;margin:0;font-size:12px}
.customer-site .steps li+li{margin:0;flex:1}
.customer-site .steps li+li:before{position:absolute;flex:none;width:calc(100% - 64px);left:calc(-50% + 32px);top:16px;height:2px;margin:0;background:#e6ecf5}
.customer-site .steps li.done:before,.customer-site .steps li.current:before{background:#c8dcfc}
.customer-site .steps li span{position:relative;z-index:1;width:32px;height:32px;font-size:14px;border-color:#d7e1ee;background:white}
.customer-site .steps li.current span,.customer-site .steps li.done span{background:var(--blue);color:white;border-color:var(--blue)}
.customer-site .steps li b{font-weight:500}
.customer-site .pane{min-height:0}
.customer-site .single-pane{max-width:none;padding:0 0 20px}
.customer-site .section-top{gap:12px;margin-bottom:9px}
.customer-site .section-top label{margin:0;font-size:14px}
.customer-site .section-top h2{font-size:17px;letter-spacing:0}
.customer-site .segmented{border-radius:20px;border:1px solid #e8edf5;padding:3px;background:#f2f5f9}
.customer-site .segmented button{padding:3px 12px;border-radius:20px;font-size:12px}
.customer-site input{min-height:51px;font-size:14px;border-radius:12px}
.customer-site textarea{border-radius:12px}
.customer-site label{font-size:14px}
.customer-site .hint{font-size:12px;line-height:1.75;margin-top:8px}
.customer-site .primary,.customer-site .secondary,.customer-site .quiet{border-radius:26px;font-size:14px;min-height:48px}
.customer-site .primary{background:linear-gradient(110deg,#2364dd,#3c88f6);border-color:#377bec;box-shadow:0 4px 9px #2464dd24}
.customer-site .primary:hover:not(:disabled){background:linear-gradient(110deg,#1c57ca,#2976e7)}
.customer-site .secondary{border-color:#d3dff0;color:var(--ink);box-shadow:0 2px 2px #19334f04}
.customer-site .pane-tools{gap:12px;margin-top:15px;flex-wrap:wrap}
.customer-site .pane-tools .text-button,.customer-site .pane-tools .small{font-size:12px}
.customer-site .product-row{gap:10px;flex-wrap:wrap;margin:0 0 21px;padding-bottom:16px;font-size:13px}
.customer-site .product-badge{font-size:13px;padding:5px 12px}
.customer-site .product-preview{padding:14px 16px;margin:17px 0}
.customer-site .product-preview strong{font-size:17px}
.customer-site .session-label{gap:10px;margin-bottom:9px}
.customer-site .session-label label{font-size:14px}
.customer-site .session-label .text-button{font-size:12px;border:1px solid #d7e5fb;background:#f6faff;padding:3px 12px;min-height:32px;border-radius:20px;text-decoration:none}
.customer-site .session-input{min-height:175px;font-size:13px}
.customer-site .privacy-note{font-size:12px}
.customer-site .form-actions>*{flex:1;min-width:0}
.customer-site .scene{width:90%;max-width:500px;margin:27px auto 0}
.customer-site .foot{padding:23px 0}
.customer-site .result-heading{font-size:26px}
.customer-site .result-art{width:92%;max-width:440px;margin-bottom:18px}
.customer-site .result-subtitle{font-size:14px}
.customer-site .queue-note{font-size:13px;line-height:1.6}
.customer-site .details>div{grid-template-columns:70px minmax(0,1fr);padding:12px 13px;gap:10px}
.customer-site .details dd{flex-wrap:wrap;font-size:13px}
.customer-site .details .mono{font-size:12px}
.customer-site .query-tabs{display:flex;justify-content:center;gap:8px;border:0;margin:0 0 24px;overflow:visible}
.customer-site .query-tabs button{font-size:13px;min-height:36px;border:1px solid #d6e1f0;padding:5px 15px;border-radius:20px;color:var(--muted);white-space:nowrap}
.customer-site .query-tabs button[aria-pressed=true]{border-color:#b6d2fc;background:#edf5ff;color:var(--blue);font-weight:600}
.customer-site .query-form textarea{min-height:112px;font-size:13px}
.customer-site .query-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}
.customer-site .query-controls .primary{min-width:0}
.customer-site .query-list:empty{display:none}
.customer-site .query-card{display:block;padding:13px 15px}
.customer-site .query-card h3{font-size:13px;line-height:1.7}
.customer-site .query-card-actions{justify-content:space-between;margin-top:10px;gap:8px}
.customer-site .operation-note{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:20px}
.customer-site .operation-card .hint{margin:9px 0 0}
.customer-site .operation-card .primary{margin-top:21px}
.customer-site .operation-feedback{padding:14px 16px;border:1px solid #dce8f8;border-radius:12px}
.customer-site .operation-feedback h3{font-size:15px}
.customer-site .operation-feedback p{font-size:13px}
.swap-history{margin-top:22px;padding:17px;border:1px solid #e0e8f3;border-radius:16px}
.swap-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.swap-history-head h3{font-size:13px;font-weight:500;color:var(--muted)}
.swap-history-head .text-button{font-size:12px;border-radius:20px;border:1px solid #e0e7f1;padding:3px 11px;color:var(--muted);background:#f7f9fc;text-decoration:none}
.swap-history .new-code{font-size:15px;font-weight:650;line-height:1.65;margin-bottom:7px}
.swap-history .old-code{font-size:12px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}
.swap-history .old-code span{display:block;font-size:11px}
.swap-history-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:12px 0 17px}
.swap-history-meta .product-badge{font-size:11px;padding:4px 10px}
.swap-history-meta time{font-size:11px;color:var(--muted)}
.customer-site .swap-history .form-actions .primary{margin:0}
.swap-history .form-actions>*{font-size:12px;min-height:40px;padding:9px 12px}
.storage-note{font-size:11px;margin-top:12px}
.subscription-provider{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.availability-note{font-size:12px;line-height:1.8;color:#927127;padding:10px 13px;border:1px solid #f2e1b7;background:#fff9ed;border-radius:10px;margin-bottom:20px}
.subscription-panel textarea{min-height:112px;font-size:13px}
.subscription-panel textarea:disabled{background:#f8fafc;border-color:#dfe6ef;cursor:not-allowed}
.subscription-link{display:inline-block;margin-top:9px;font-size:12px}
.customer-site .batch-intro{font-size:13px;padding:12px 14px;background:#f2f7ff;border:1px solid #dce8fb;border-radius:12px;margin:19px 0}
.customer-site .batch-input{min-height:166px;font-size:12px}
.customer-site .batch-actions{gap:12px}
.customer-site .batch-actions>*{flex:1}
.customer-site .batch-row{align-items:start;flex-wrap:wrap}
.customer-site .batch-row b{font-size:12px}
.customer-site .batch-row p{font-size:12px}
.customer-site .guide-layout{display:block}
.customer-site .guide-toc{position:static;display:flex;flex-direction:row;gap:15px;flex-wrap:wrap;margin-bottom:24px;font-size:12px}
.customer-site .guide-page>h2{font-size:23px;margin-bottom:19px}
.customer-site .guide-section h3{font-size:18px}
.customer-site .guide-section p,.customer-site .guide-section li{font-size:14px}
.customer-site .guide-section:last-child{border:0;padding:0;margin:0}
@media(max-width:820px){
  .customer-site .public-main{width:min(580px,calc(100% - 32px));padding-top:22px}
  .portal-layout{grid-template-columns:minmax(0,1fr);gap:18px}
  .operation-guide{padding:12px 20px;border-radius:17px}
  .guide-heading h2{font-size:15px}
  #guide-toggle{display:flex;gap:7px;align-items:center}
  #guide-toggle[aria-expanded=true] span{transform:rotate(180deg)}
  .guide-content{display:none}
  .guide-content.expanded{display:block;padding-bottom:10px}
  .guide-intro{font-size:13px}
  .guide-intro br{display:none}
  .guide-timeline{margin-top:20px}
  .guide-timeline li{padding-bottom:20px}
}
@media(max-width:680px){
  .customer-site .headinner,.customer-site .foot{width:calc(100% - 36px)}
  .customer-site .headinner{flex-direction:row;min-height:72px;padding:0;gap:16px}
  .customer-site .brand strong{font-size:22px}
  .customer-site .brand img{width:34px;height:34px}
  .customer-site .site-nav{align-self:stretch;min-height:0}
  .customer-site .site-nav a{align-items:center;padding:0;font-size:13px}
  .customer-site .site-nav a[aria-current=page]:after{bottom:15px}
  .customer-site .public-main{min-height:calc(100vh - 72px)}
  .customer-site .service-bar{padding:12px 6px;min-height:78px;border-radius:17px;margin-bottom:15px}
  .service-stat strong{font-size:15px}
  .customer-site .service-state{gap:6px}
  .service-state #service-label{font-size:13px}
  .service-stat .stat-label{font-size:11px}
  .customer-site .queue-count b{font-size:22px}
  .customer-site .workstation{padding:20px 18px 24px;border-radius:20px}
  .station-nav{margin-bottom:25px;padding:4px;gap:1px}
  .station-nav a{font-size:12px;gap:4px;padding:8px 1px;min-height:37px}
  .station-nav svg{width:14px;height:14px}
  .customer-site .single-pane{padding-bottom:6px}
  .customer-site .steps{margin-bottom:24px}
  .customer-site .scene{width:94%;margin-top:24px}
  .customer-site .result-heading{font-size:24px}
  .customer-site .foot{font-size:11px}
}
@media(max-width:380px){
  .customer-site .public-main{width:calc(100% - 24px)}
  .customer-site .workstation{padding-inline:13px}
  .station-nav a{font-size:11px;gap:3px}
  .station-nav svg{width:12px;height:12px}
  .customer-site .mode{font-size:9px;padding-inline:3px}
  .customer-site .details>div{grid-template-columns:58px minmax(0,1fr);gap:7px;padding-inline:10px}
}
