/* The storefront and the operations console share type, controls and price hierarchy. */
:root {
  --blue:#334fd8; --line:#dce0e6; --muted:#56606d; --pale:#eff1fb; --radius:18px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:#f5f5f3; color:#1a1e24;
}
.top {background:#fbfbfa;border-color:#dddfdf}
.top-inner,main {max-width:1312px;padding-inline:clamp(20px,4.4vw,64px)}
.top-inner {min-height:74px;column-gap:32px}
main {padding-top:26px}
.brand {color:#181d24;font-size:18px;letter-spacing:-.04em}
.brand-icon {position:relative;background:#1e2634;width:34px;height:34px;border-radius:11px;box-shadow:inset 0 0 0 1px #ffffff25}
.brand-icon::before,.brand-icon::after {content:"";position:absolute;width:8px;height:16px;transform:skewY(-24deg);border-radius:2px;background:#fff;top:8px;left:8px}
.brand-icon::after {left:18px;top:10px;background:#b4c3ff}
.top-right {margin-left:auto}
.top .demo-tag {color:#57616f;background:#eceef0;font-weight:550}
.top .switch {color:#424d5c}
.nav {gap:3px;padding:0}
.nav-btn {min-height:38px;padding:8px 15px;color:#535d69;font-size:14px}
.nav-btn.active {color:#181d24;background:#e9ebee}
.hero {min-height:clamp(304px,29vw,396px);border-radius:22px;background:#15191e;isolation:isolate}
.hero::before {position:absolute;inset:0;content:"";z-index:-1;background:linear-gradient(90deg,#10141afd 0%,#12171dd9 28%,transparent 57%),url("/hero-studio.jpg") center 50% / cover no-repeat}
.hero-inner {width:47%;padding:42px 0 42px clamp(26px,4vw,60px)}
.hero h1 {color:#fff;font-size:clamp(36px,4.8vw,66px);font-weight:720;line-height:1.1;letter-spacing:-.06em}
.hero p {color:#d1d6dc;font-size:15px;max-width:260px;margin:15px 0 25px}
.hero-links {gap:9px}
.hero-links button {border-radius:30px;padding:10px 17px;min-height:42px}
.hero-links .primary {background:#fff;color:#171d24}
.hero-links .outline {background:#242d36;color:#f4f6fa;border-color:#69737e}
.hero-links span {margin-left:6px}
.hero-phone,.hero-scooter {display:none}
.section {padding-top:32px;scroll-margin-top:15px}
.section-top h1,.section-top h2 {color:#1c2128;font-weight:700}
.section-top h2 {font-size:27px}
.section .chips {gap:6px;margin:0 0 18px}
.chip,.grade-option {border-radius:11px;border-color:#d7dbe1;background:#fff;color:#3a4554}
.chip {border-radius:25px;min-height:36px;padding:6px 16px}
.chip.selected {background:#252b34;border-color:#252b34;color:white}
.grade-option.chosen {background:#eef1ff;border-color:#8c9ce7;color:#263e9c}
.grid {gap:18px}
.product,.panel,.device-table {border-color:#dee1e4;box-shadow:0 2px 5px #1a253204}
.product {position:relative;display:flex;flex-direction:column}
.product-cover {position:relative;background:radial-gradient(ellipse at 45% 34%,#fbfaf9 12%,#e5e6e5);height:clamp(160px,15vw,206px)}
.product-cover.ev {background:radial-gradient(ellipse at 45% 34%,#f7f9fa 12%,#e1e6e8)}
.product-cover img {height:83%}
.product-cover .actual {height:100%;max-height:100%;width:100%;object-fit:contain}
.stock-count {position:absolute;top:12px;left:12px;background:#fffe;color:#34483f;padding:4px 9px;border-radius:18px;font-size:11px;line-height:1.4;font-weight:600}
.stock-count::before {content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#3c8660;vertical-align:2px;margin-right:5px}
.empty-stock::before {background:#81848d}
.product-copy {padding:18px 20px;display:flex;flex:1;flex-direction:column;align-items:start}
.product-copy h3 {font-size:21px;letter-spacing:-.035em}
.price {color:#1d2432;font-variant-numeric:tabular-nums;letter-spacing:-.055em}
.product .price {margin-top:14px}
.product-copy small {font-size:12px}
.product-btn {margin-top:13px;display:flex;align-items:center;justify-content:space-between;background:#f3f4f6;border:0;color:#293343}
.primary {background:var(--blue);box-shadow:0 2px 3px #27399514}
.detail {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.gallery {padding:0}
.gallery-stage {height:clamp(280px,34vw,470px);background:radial-gradient(ellipse at 45% 35%,#fff,#e1e5e7)}
.gallery-caption {border:1px solid #e0e3e8;color:#364254}
.device-detail,.edit-panel,.document,.review-panel {padding:clamp(18px,2.4vw,35px)}
.device-detail h1 {font-size:clamp(26px,3vw,40px)}
.live-deposit {background:#f5f6fa;border-color:#dce1ec}
.deposit-amount {color:#293a8a}
.quote-box[data-live-quote] {background:#232c39;color:#d9e0eb;padding:18px 20px;min-height:142px}
.quote-box .price,.quote-box strong {color:white}
.quote-box .price span,.quote-box .quote-demo,.quote-box .quote-status,.quote-box .pending-price,.quote-box small {color:#c6d0e2}
.quote-box .price {font-size:38px}
.quote-line {margin-top:7px}
.facts div,.review-device {background:#f3f4f6}
.section-top .plain,.back {color:#43516a}
.staff-app {background:#f4f5f7}
.staff-app main {display:grid;grid-template-columns:156px minmax(0,1fr);gap:24px;align-items:start}
.staff-app .nav {flex-direction:column;flex-wrap:nowrap;position:sticky;top:20px;min-height:clamp(350px,45dvh,480px);border:1px solid #dee1e4;border-radius:16px;padding:8px;background:#fff}
.staff-app .nav-btn {position:relative;color:#49576a;text-align:left;padding:12px 15px;border-radius:9px}
.staff-app .nav-btn:hover:not(.active) {background:#f4f6fa}
.staff-app .nav-btn.active {background:#edf1ff;color:#2945a4}
.staff-app .nav-btn.active::before {content:"";position:absolute;left:5px;top:11px;bottom:11px;width:3px;border-radius:3px;background:#4259cf}
.view {min-width:0}
.inventory-totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;background:white;border:1px solid var(--line);border-radius:16px;padding:16px 0}
.inventory-totals div {padding:0 clamp(12px,2vw,26px)}
.inventory-totals div+div {border-left:1px solid var(--line)}
.inventory-totals dt {color:var(--muted);font-size:13px}
.inventory-totals dd {margin:4px 0 0;font-size:30px;line-height:1.1;font-weight:650;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.inventory-totals dd small {font-size:12px;font-weight:450}
.device-head {background:#eef0f3}
.device-row {background:white}
.device-rent {width:min(100%,8em);font-size:14px;line-height:1.35;font-variant-numeric:tabular-nums}
.device-rent div {display:grid;grid-template-columns:2.75em minmax(0,1fr);gap:6px}
.device-rent dt {white-space:nowrap;color:var(--muted)}
.device-rent dd {margin:0;text-align:right;white-space:nowrap;font-weight:650;color:#243b6b}
.device-name img {border-radius:9px;background:#f2f3f4}
.device-name {min-width:0}
.device-actions {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.inventory-source {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.inventory-source small {display:block;margin-top:2px}
.device-row .device-actions {justify-content:flex-start;flex-wrap:nowrap}
.device-row .device-actions button {min-height:36px;padding:6px 10px}
.device-identity {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.showcase-editor [hidden] {display:none}
.inspection-editor-hint {font-size:13px;margin-bottom:10px}
.device-save {position:sticky;bottom:0;z-index:2;margin-top:18px;padding:10px 0 max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.edit-panel fieldset {padding-top:14px;border-top:1px solid var(--line)}
.edit-panel legend {color:#253149;font-size:17px}
.staff-app .login-panel {margin:24px auto}
.media-add {border:1px dashed #93a2b9;background:#f4f6fa;color:#374c6a}
@media(min-width:1000px){.gallery {position:sticky;top:18px}}
@media(max-width:1020px){
  .staff-app main {display:block}
  .staff-app .nav {position:static;display:flex;flex-direction:row;flex-wrap:wrap;width:fit-content;min-height:0;margin-bottom:18px;padding:4px}
  .staff-app .nav-btn {padding:8px 12px}
  .staff-app .nav-btn.active::before {display:none}
}
.shop-app .support-nav {color:#2945a4}
.support-editor {max-width:640px;padding:clamp(18px,3vw,30px)}
.support-editor form {display:grid;gap:14px;margin-top:18px}
.support-preview {display:grid;place-items:center;min-height:192px;padding:12px;border:1px solid #e1e5ee;border-radius:14px;background:#f8f9fc}
.support-preview img {width:min(192px,100%);aspect-ratio:1;object-fit:contain;background:#fff}
.support-controls {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.support-editor input[type=file] {max-width:100%;min-width:0}
.support-controls button {min-height:40px}
.support-dialog {width:min(365px,calc(100% - 32px));max-height:calc(100dvh - 30px);padding:18px;border:1px solid #dce1e9;border-radius:18px;background:#fff;color:#202a3b;box-shadow:0 18px 52px #172b4929}
.support-dialog::backdrop {background:#16233d60}
.support-dialog h2 {font-size:21px}
.support-dialog img {width:min(226px,100%);margin:0 auto;aspect-ratio:1;object-fit:contain}
.support-dialog p {text-align:center;margin:10px 0}
.support-download {display:block;width:fit-content;margin:0 auto;padding:7px 10px;color:#2945a4;font-weight:600}
@media(max-width:710px){
  .staff-app .section-top:has(.device-actions) {align-items:flex-start;flex-direction:column}
  .device-row .device-actions {justify-content:flex-end;align-self:end}
  .top-inner {flex-wrap:wrap;min-height:58px;gap:10px;padding:12px 16px}
  .shop-app .nav {order:3;width:100%;border-top:1px solid #e1e4e6;padding-top:7px}
  .shop-app .nav-btn {min-height:32px;padding:5px 12px}
  main {padding:15px 14px 36px}
  .hero {min-height:256px;border-radius:17px;align-items:flex-end}
  .hero-inner {width:71%;padding:22px 0 22px 19px}
  .hero h1 {font-size:clamp(29px,6vw,40px)}
  .hero::before {background-position:center,64% center;background-image:linear-gradient(90deg,#10151af5 0%,#12171db3 30%,#13192019 66%),url("/hero-studio.jpg")}
  .hero p {max-width:185px;font-size:13px;margin:10px 0 14px}
  .hero-links {gap:6px}
  .hero-links button {min-height:36px;font-size:12px;padding:7px 11px}
  .section {padding-top:24px}
  .section-top h2 {font-size:22px}
  .section .chips {flex-wrap:nowrap;overflow:auto;margin-bottom:12px;padding:2px 0 5px}
  .section .chip {padding:5px 13px}
  .grid {gap:10px}
  .product-cover {height:clamp(118px,33vw,187px)}
  .product-copy {padding:12px}
  .product-copy h3 {font-size:17px}
  .product-copy p,.product-copy small {font-size:12px}
  .product .price {font-size:25px;margin-top:9px}
  .product-btn {font-size:12px;padding:8px;min-height:36px}
  .stock-count {top:7px;left:7px;font-size:10px}
  .detail {grid-template-columns:1fr;gap:12px}
  .gallery-stage {height:230px}
  .inventory-totals {padding:12px 0}
  .inventory-totals dd {font-size:23px}
  .top-right {gap:8px}
}
@media(prefers-reduced-motion:no-preference){
  button,a.switch,.product {transition:background-color .16s,color .16s,border-color .16s,box-shadow .18s,transform .16s}
  button:active:not(:disabled) {transform:scale(.985)}
  .product-cover img {transition:transform .28s ease-out}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .product:hover {box-shadow:0 9px 24px #14243c12}
  .product-cover:hover img {transform:scale(1.035)}
  .device-row:hover {background:#fafbfc}
}
.product-cover,.product-cover.ev,.gallery-stage {background:#f1f1f1}
.product-cover img:not(.actual),.gallery-stage img:not(.actual) {width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:710px) {
  .hero {min-height:237px;align-items:start;background:#101215}
  .hero-inner {width:90%;padding:20px}
  .hero p {margin:8px 0 14px;max-width:none}
  .hero::before {background-image:linear-gradient(100deg,#101215 6%,#101215bd 30%,transparent 66%),url("/hero-studio.jpg");background-size:100% 100%,auto 64%;background-position:center,right bottom;background-repeat:no-repeat}
}
.product-cover {display:block;overflow:hidden;flex:none}
.product-cover img {position:absolute;inset:0;margin:auto;pointer-events:none}
@media(max-width:710px) {
  .hero::before {mask-image:linear-gradient(to top,black 0 53%,transparent 73%)}
}

.scheme-sheet {--scheme-line:#d9dce1;--scheme-muted:#686e76;background:white;border:1px solid #e0e2e5;border-radius:4px;color:#30343b;font-size:14px;min-width:0}
.scheme-heading {display:flex;align-items:center;gap:12px;padding:19px clamp(15px,2.5vw,32px);border-bottom:1px solid #e6e7ea}
.scheme-heading h1 {font-size:21px;font-weight:650;letter-spacing:0}
.scheme-heading>span {font-size:12px;color:#566a5c}
.scheme-editor {padding-top:13px}
.scheme-line {display:grid;grid-template-columns:100px minmax(0,1fr);align-items:baseline;column-gap:16px;padding:10px clamp(15px,2.5vw,32px);margin:0;min-width:0}
.scheme-label {font:inherit;font-weight:550;text-align:right;line-height:1.6;margin:0}
.scheme-body {min-width:0}
.scheme-formula p {color:#363b43;font-weight:550;line-height:1.65}
.scheme-formula small,.scheme-hint {display:block;font-size:12px;color:var(--scheme-muted);line-height:1.65}
.scheme-formula small {margin-top:3px}
.scheme-hint {margin:7px 0 0}
.scheme-terms {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.scheme-sheet .scheme-terms label,.scheme-save label {display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap;font-weight:400}
.scheme-terms input,.scheme-save input {width:15px;height:15px;margin:0;accent-color:#2585e8}
.scheme-parent {display:flex;align-items:flex-start;gap:10px}
.scheme-parent+.scheme-parent {margin-top:10px}
.scheme-threshold,.scheme-rate,.scheme-commission,.scheme-flat-row {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.scheme-threshold {padding-top:9px;flex-shrink:0;gap:4px}
.scheme-sheet .scheme-number {display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:450;white-space:nowrap}
.scheme-input-unit {display:inline-flex;align-items:center;gap:4px}
.scheme-input-unit>span {font-size:12px;color:#646a73}
.scheme-sheet .scheme-number input {font:inherit;font-size:14px;line-height:1.3;background:#fff;border:1px solid var(--scheme-line);border-radius:3px;color:#343b44;height:32px;padding:4px 7px;width:80px}
.scheme-threshold .scheme-input-unit input {width:46px}
.scheme-child-list {border:1px solid var(--scheme-line);padding:7px 10px;background:#fdfdfd;min-width:0;flex:1}
.scheme-child-list .scheme-number input {width:58px}
.scheme-rate+.scheme-rate,.scheme-commission+.scheme-commission,.scheme-flat-row+.scheme-flat-row {margin-top:7px}
.scheme-rate+.scheme-rate {border-top:1px solid #eceef0;padding-top:7px}
.scheme-number input:focus {border-color:#71a6e2;outline-offset:1px}
.rule-buttons {display:inline-flex;align-items:center;gap:2px}
.rule-button {width:25px;min-height:28px;height:28px;padding:0;display:inline-grid;place-items:center;border:0;background:transparent;border-radius:3px}
.rule-button span {background:#2487e9;color:white;font:650 15px/17px Arial,sans-serif;border-radius:50%;width:17px;height:17px;text-align:center}
.rule-button[data-remove-rule] span {background:#e05959}
.scheme-empty-add {display:none;align-items:center;gap:4px;color:#46525e;font-size:13px}
.scheme-empty-add:only-child {display:flex}
.scheme-trial {border-top:1px solid #e7e8eb;margin-top:12px;padding-top:16px;padding-bottom:22px}
.scheme-preview-fields {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.scheme-preview-button {border:1px solid #bfcce0;color:#3065a7;background:white;font-size:13px;min-height:32px;padding:4px 12px;border-radius:3px}
.scheme-result:not([hidden]) {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;padding:8px 12px;background:#f2f6fb;font-variant-numeric:tabular-nums;margin-top:10px}
.scheme-result strong {font-size:20px;color:#234775}
.scheme-result span {font-size:13px;color:#4e6179}
.scheme-save {position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:20px;border-top:1px solid #e2e4e7;padding:12px clamp(15px,2.5vw,32px) max(12px,env(safe-area-inset-bottom));background:white;box-shadow:0 -2px 8px #1c232a07}
.scheme-save button {background:#dd631d;color:#fff;min-height:36px;border-radius:4px;padding:6px 22px}
.scheme-line[hidden] {display:none}
@media(max-width:860px) {
  .scheme-line {grid-template-columns:88px minmax(0,1fr);column-gap:12px}
  .scheme-parent {flex-direction:column;align-items:stretch;gap:4px}
  .scheme-threshold {padding-top:0}
}
@media(max-width:580px) {
  .scheme-line {display:block;padding:11px 14px}
  .scheme-heading {padding:14px}
  .scheme-editor {padding-top:2px}
  .scheme-label {text-align:left;font-size:14px;font-weight:650;margin-bottom:6px}
  .scheme-terms {gap:9px 14px}
  .scheme-rate,.scheme-commission,.scheme-flat-row {gap:6px 9px}
  .scheme-commission,.scheme-flat-row {padding-bottom:6px}
  .scheme-commission+.scheme-commission,.scheme-flat-row+.scheme-flat-row {border-top:1px solid #eceef0;padding-top:6px}
  .scheme-sheet .scheme-number {gap:4px}
  .scheme-sheet .scheme-number input {width:62px}
  .scheme-child-list {padding:7px}
  .scheme-child-list .scheme-number input {width:53px}
  .scheme-save {justify-content:space-between;padding-inline:14px}
  .scheme-trial {padding-bottom:16px}
}
.scheme-editor fieldset.scheme-line {border:0;margin:0}
.scheme-unit-field {display:inline-flex;align-items:center;gap:2px}

.picker-label {display:grid;gap:6px;min-width:0;font-weight:600}
.picker-field {display:inline-flex;max-width:100%;min-width:0}
.picker-field select[hidden] {display:none}
.picker-trigger {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:44px;border:1px solid #c9d5e6;border-radius:9px;padding:7px 11px;background:#fff;color:#18263c;text-align:left;font:inherit}
.picker-trigger span {overflow:hidden;text-overflow:ellipsis}
.picker-trigger i {width:7px;height:7px;flex:none;border-top:1.5px solid #647698;border-right:1.5px solid #647698;transform:rotate(45deg)}
.scheme-sheet .picker-trigger {min-height:32px;font-size:14px;border-color:var(--scheme-line);border-radius:4px;padding:4px 8px}
.scheme-mode-choice {width:152px}
.scheme-unit-choice {width:54px}
.scheme-trial .picker-field {min-width:76px}
.choice-dialog {width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #fff;border-radius:24px;background:#f9fbff;color:#1d3050;box-shadow:0 24px 65px #162d5438;overscroll-behavior:contain}
.choice-dialog::backdrop {background:#24365336;backdrop-filter:blur(5px)}
.choice-panel {padding:17px}
.choice-panel header {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding-left:5px}
.choice-panel h2 {font-size:20px;line-height:1.25}
.choice-close {display:grid;place-items:center;width:35px;min-height:35px;padding:0;border-radius:50%;font:400 23px/1 Arial,sans-serif;background:#e8edf6;color:#4c6186}
.choice-list {display:grid;gap:5px;max-height:min(57dvh,410px);overflow:auto;padding:3px;overscroll-behavior:contain}
.choice-option {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:9px 12px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#fff;border:1px solid #e7edf7;color:#304663}
.choice-option[aria-pressed=true] {background:#e8eeff;border-color:#cbd8fc;color:#2449a3}
@media(prefers-reduced-motion:no-preference) {
  .choice-dialog[open] {animation:choice-in .2s cubic-bezier(.15,.7,.25,1) both}
  .choice-dialog[open]::backdrop {animation:choice-mask-in .16s ease-out both}
}
@keyframes choice-in {from {opacity:0;transform:translateY(8px) scale(.975)}}
@keyframes choice-mask-in {from {opacity:0}}

.checkout-card {margin:18px 0;padding:16px;background:#f5f6fa;border:1px solid #e1e4ec;border-radius:14px}
.checkout-card h2,.agreement-dialog h2 {font-size:18px;letter-spacing:-.02em}
.delivery-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.delivery-wide {grid-column:1/-1}
.delivery-grid label,.agreement-editor label {display:grid;gap:6px}
.delivery-grid input {width:100%;min-width:0;background:#fff}
.checkout-footer {margin-top:18px;border-top:1px solid #e3e6ee;padding-top:14px}
.checkout-cta {display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:12px}
.checkout-cta>div {display:grid;color:#56606d;font-size:13px}
.checkout-cta strong,.cashier-head strong {color:#172139;font-size:29px;font-variant-numeric:tabular-nums;line-height:1.15}
.checkout-cta .primary {min-height:45px}
.agreement-consent {display:flex;align-items:center;flex-wrap:wrap;gap:4px;color:#454e5d;font-size:14px}
.agreement-consent label {display:inline-flex;align-items:center;gap:6px;font-weight:500}
.agreement-consent input {width:17px;height:17px;accent-color:var(--blue)}
.agreement-link {display:inline;padding:0;border:0;background:transparent;color:#334fb4;text-align:left;white-space:normal;overflow-wrap:anywhere;font:inherit;min-height:32px}
.agreement-link:hover {text-decoration:underline}
.agreement-dialog {border:0;border-radius:18px;padding:20px;width:min(580px,calc(100% - 30px));max-height:min(80dvh,700px);color:#1a1e24;box-shadow:0 18px 50px #18233930}
.agreement-dialog::backdrop {background:#191f32a0}
.agreement-dialog .section-top {gap:10px;align-items:flex-start}
.agreement-copy {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px;margin-top:12px}
.agreement-editor {padding:clamp(17px,3vw,30px);max-width:760px}
.agreement-editor form {display:grid;gap:14px;margin-top:18px}
.agreement-editor textarea {width:100%;border:1px solid #c5d1e3;border-radius:10px;padding:10px 12px;font:inherit;line-height:1.65;resize:vertical}
.agreement-editor .primary {justify-self:start}
.cashier-head {display:grid;justify-items:center;gap:6px;padding:4px 8px 22px;margin-bottom:16px;border-bottom:1px solid #e3e6ee;text-align:center}
.cashier-head h1 {font-size:24px}
.cashier-head p,.cashier-head span,.cashier-note {font-size:13px;color:#56606d}
.cashier-head span {margin-top:12px}
.cashier-head strong {font-size:44px}
.cashier-methods {display:grid;gap:10px;margin:14px 0;border:0;padding:0}
.cashier-methods legend {margin-bottom:8px;font-weight:650}
.cashier-method {display:flex;align-items:center;gap:12px;min-height:56px;padding:9px 12px;border:1px solid #dce1eb;border-radius:12px;background:#fafbfe;cursor:pointer}
.cashier-method:has(input:checked) {border-color:#6f83d5;background:#f0f2ff}
.cashier-method input {margin-left:auto;width:18px;height:18px;accent-color:var(--blue)}
.pay-icon {display:grid;place-items:center;width:33px;height:33px;border-radius:10px;color:#fff;font-size:15px}
.pay-icon.wechat {background:#16804b}
.pay-icon.alipay {background:#166fd4}
.cashier-note {margin:14px 0 8px}
.cashier-cancel {display:block;margin:12px auto 0}
@media(max-width:380px) {
  .delivery-grid {grid-template-columns:minmax(0,1fr)}
  .checkout-cta {align-items:stretch;flex-direction:column}
}

.handling-modes {border:0;padding:0;margin:12px 0 0;display:flex;flex-wrap:wrap;gap:10px 18px}
.handling-modes legend {font-size:13px;color:#56606d;margin-bottom:6px}
.handling-modes label {display:flex;align-items:center;gap:6px;cursor:pointer}
.handling-modes input {width:auto;margin:0}

.catalog-actual-media {margin:14px 0;display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.catalog-actual-media h3 {grid-column:1/-1}.catalog-actual-media img,.catalog-actual-media video {width:100%;max-height:300px;object-fit:contain;background:#f7f7f7;border-radius:8px}.catalog-fulfillment form {display:grid;gap:8px;margin:12px 0}.catalog-source-field {display:grid;gap:6px;margin:8px 0}

/* Round 2 — a dedicated sign-in experience, shared dashboard surfaces. */
body.auth-mode {background:#f4f6fb}
.auth-screen {min-height:100vh;min-height:100dvh;padding:28px 20px 38px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;background:radial-gradient(ellipse at 50% 12%,#e5edff 0%,#f5f7fb 50%,#f5f7fb 100%)}
.auth-brand {display:flex;gap:11px;align-items:center;font-weight:800;font-size:20px;color:#1c2a42}
.auth-brand .brand-icon {width:38px;height:38px}
.auth-brand .demo-tag {font-weight:650}
.auth-card {width:min(100%,430px);border:1px solid #dbe3ef;border-radius:24px;background:#fff;padding:36px 34px 26px;box-shadow:0 18px 65px #233b7820}
.auth-kicker {font-size:12px;letter-spacing:.08em;color:#3856a8;font-weight:750;margin-bottom:9px}
.auth-card h1{font-size:29px;line-height:1.25;letter-spacing:-.03em;color:#18283d}
.auth-card>p{font-size:14px;color:#64738a;margin:12px 0 24px}
.auth-card .auth-form{display:grid;gap:16px}
.auth-card .auth-form label{font-size:14px;gap:8px}
.auth-form input:not([type=checkbox]){height:49px;border-radius:12px;border-color:#d0daea;background:#fbfcfe;padding:10px 13px}
.auth-form .primary{height:48px;margin:3px 0 0;border-radius:12px;box-shadow:0 5px 13px #264acd22}
.auth-demo-note{color:#536582;padding:11px 13px;background:#f0f5ff;border:1px solid #dce6fb;border-radius:10px;font-size:12px;line-height:1.7}
.auth-foot{font-size:12px;color:#8390a3;text-align:center;margin-top:24px;line-height:1.5}
.device-management .device-head,.device-management .device-row{grid-template-columns:minmax(0,2fr) minmax(100px,.85fr) minmax(95px,.75fr) minmax(125px,1fr)}
.device-state{font-size:13px;display:inline-block;padding:4px 10px;border-radius:20px;background:#eceff4;color:#5c6676;white-space:nowrap;font-weight:650}
.device-state.ready{background:#e9f6ee;color:#21663d}.device-state.held{background:#fff1dd;color:#876416}
.device-cost-note{font-size:13px;padding:12px 14px;background:#f3f6fd;border-radius:12px;margin:10px 0 18px}
.staff-app .scheme-sheet{padding:22px;border-radius:16px;border:1px solid var(--line);font-size:14px;background:#fff;--scheme-line:#d5deea}
.scheme-page-title h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.035em}
.scheme-page-title .badge{font-size:12px}
.staff-app .scheme-editor{padding:0}
.staff-app .scheme-line{padding:16px 0;grid-template-columns:minmax(92px,120px) minmax(0,1fr);column-gap:16px;border-bottom:1px solid #edf0f5}
.staff-app .scheme-label{text-align:left;color:#334359;font-size:14px;font-weight:700}
.staff-app .scheme-child-list{border-radius:12px;background:#f8fafd;padding:12px;min-width:0}
.staff-app .scheme-sheet .scheme-number input{border-radius:9px;height:39px;background:#fff}
.staff-app .scheme-trial{background:#f3f6fc;border:0;border-radius:12px;padding:16px;margin:16px 0}
.staff-app .scheme-save{position:static;border:0;box-shadow:none;padding:12px 0 0;justify-content:space-between;flex-wrap:wrap}
.staff-app .scheme-save button{background:var(--blue);min-height:42px;border-radius:10px;padding:10px 22px}
.staff-app .scheme-preview-button{border-radius:10px;min-height:38px}
@media(max-width:760px){
 .auth-screen{padding:24px 18px;gap:20px;justify-content:center}
 .auth-card{padding:27px 22px 21px;border-radius:20px}
 .auth-card h1{font-size:26px}
 .device-management .device-head{display:none}
 .device-management .device-row{grid-template-columns:1fr 1fr;gap:12px;padding:14px}
 .device-management .device-name{grid-column:1/-1}
 .device-management .device-actions{grid-column:1/-1;justify-content:flex-end}
 .device-management .mobile-label{display:block;margin-bottom:4px}
 .staff-app .scheme-sheet{padding:16px 12px}
 .staff-app .scheme-line{grid-template-columns:minmax(0,1fr);gap:9px}
 .staff-app .scheme-label{text-align:left;padding:0}
 .staff-app .scheme-parent{flex-wrap:wrap}
 .staff-app .scheme-child-list{flex-basis:100%}
 .staff-app .scheme-save{padding:8px 0 0;gap:10px}
}
