/* The rental storefront uses its own tokens so operations screens retain their layout. */
:is(.storefront, body:has(.storefront) #dialogs, body:has(.storefront) #toast) {
  --font:"PingFang SC",system-ui,"Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --mono:var(--font);
  --page:#f4f7fc;
  --paper:#f6f8fd;
  --white:#fff;
  --ink:#17263c;
  --sub:#43546b;
  --muted:#52637b;
  --line:#dbe4f2;
  --accent:#2853c5;
  --accent-hot:#1d42a6;
  --accent-pale:#e9efff;
  --dark-text:#fff;
  --blue:#244ba8;
  --blue-pale:#e8efff;
  --focus:#2853c5;
  --radius:17px;
  --shadow:0 10px 32px #233e7620;
  font-family:var(--font);
  color:var(--ink);
}
.storefront {
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
  background:var(--page);
  font-size:15px;
  line-height:1.6;
}
.storefront main {flex:1;min-width:0}
.storefront .wrap {width:min(calc(100% - 64px),1184px)}
.storefront .mono,.storefront .num {font-variant-numeric:tabular-nums;letter-spacing:0}
.storefront .wordmark,.storefront .page-head h1,.storefront .panel h2,.storefront .series-heading h2,
.storefront .series-link h3,.storefront .price-total strong,.storefront .pay-result h2 {letter-spacing:0}
.storefront .wordmark {font-size:21px;font-weight:670}
.storefront .logo {width:39px;height:39px;border-radius:12px;background:var(--accent-pale);color:var(--accent)}
.storefront .store-nav {background:var(--white)}
.storefront .topline {height:auto;min-height:73px;display:grid;grid-template-columns:1fr auto 1fr;gap:18px}
.storefront .navlinks {min-width:0;align-self:center;gap:3px;padding:4px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.storefront .navlinks a {min-height:35px;padding:6px 12px;border:0;border-radius:9px;white-space:nowrap;justify-content:center;font-size:13px;font-weight:560}
.storefront .navlinks a[aria-current=page] {background:var(--white);color:var(--accent);font-weight:660;box-shadow:0 1px 4px #233e7619}
.storefront .navlinks a:hover {color:var(--accent)}
.storefront .navright {justify-self:end}
.storefront .store-footer {background:var(--white);margin-top:38px;padding:16px 0}
.storefront .footer-inner {justify-content:space-between}
.storefront .store-domain {font-weight:690;color:var(--accent)}
.storefront .site-unread {background:var(--accent);color:var(--white)}
.storefront .btn,body:has(.storefront) #dialogs .btn {border-radius:10px;font-weight:620}
.storefront .btn.primary,body:has(.storefront) #dialogs .btn.primary {color:#fff}
.storefront .btn.primary:disabled,body:has(.storefront) #dialogs .btn.primary:disabled {color:var(--muted)}
.storefront .btn.dark,.storefront .tabs button.selected,body:has(.storefront) #dialogs .tabs button.selected {
  background:var(--accent-pale);color:var(--accent-hot);border:1px solid #cad7fb;
}
.storefront .text-link {color:var(--accent-hot);text-decoration-color:#92aaf1}
.storefront .text-link:hover {color:var(--accent)}
.storefront .badge {border-radius:99px;padding:4px 9px;font-weight:650}
.storefront .tabs button {font-weight:600;border-radius:9px}
.storefront :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
body:has(.storefront) #dialogs :is(input,select,textarea) {border-radius:9px}
.storefront .route-content {min-height:0;padding:27px 0 0}
.storefront .page-head {
  align-items:center;min-height:123px;margin:0 0 20px;padding:21px 25px;
  background:linear-gradient(110deg,#edf3ff,#f8faff);border:1px solid var(--line);border-radius:20px;
}
.storefront .page-head h1 {font-size:clamp(29px,3.2vw,42px);font-weight:690;line-height:1.2}
.storefront .page-head p {color:var(--sub);font-size:14px;margin-top:7px}
.storefront .panel {box-shadow:0 3px 12px #243d7406;padding:20px}
.storefront .panel.tight {padding:0}
.storefront .panel h2 {font-weight:680;line-height:1.35}
.storefront .panel .panel-heading {margin-bottom:12px}
.storefront .panel.stack>.panel-heading {margin-bottom:0}
.storefront .panel p.accessory {color:var(--sub)}
.storefront .stack,.storefront .two {gap:14px}
.storefront .split {grid-template-columns:minmax(0,1fr) minmax(260px,318px);gap:16px}
.storefront .table-wrap thead {background:#f0f4fd}
.storefront .table-wrap :is(th,td) {padding:13px 15px}
.storefront .lines>div {padding:9px 0}
.storefront .lines dt {flex:none}
.storefront .empty {background:var(--white);border:1px dashed var(--line);border-radius:var(--radius)}
.storefront .panel .empty {border:0}
.storefront .check-line {font-weight:520}
body:has(.storefront) .modal::backdrop {background:#25385466}
body:has(.storefront) .modal {border-radius:18px}
body:has(.storefront) #toast.toast {background:var(--white);color:var(--accent-hot);border:1px solid var(--line);border-radius:10px}

.storefront .store-home {padding-top:25px}
.storefront .hero {
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:stretch;
  min-height:385px;border:1px solid #d6e2f7;border-radius:25px;
  background:linear-gradient(112deg,#ecf2ff 5%,#f8faff 66%,#e7effe);color:var(--ink)
}
.storefront .hero-copy {align-self:center;padding:37px 0 41px clamp(25px,4vw,61px)}
.storefront .hero h1 {font-size:clamp(40px,5.2vw,75px);font-weight:710;line-height:1.15;letter-spacing:-.018em}
.storefront .hero h1 span {color:var(--accent)}
.storefront .hero p {color:var(--sub);margin-top:15px;font-size:16px}
.storefront .hero .actions {margin-top:19px}
.storefront .hero .btn.secondary {background:var(--white);border-color:#d5e0f6;color:var(--accent-hot)}
.storefront .hero .btn.secondary:hover {background:var(--accent-pale)}
.storefront .hero-media {min-height:0;background:radial-gradient(ellipse at 54% 62%,#d3e2fd 0%,transparent 68%);margin:0 21px 0 2px}
.storefront .hero-media img {inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 15px 17px #294a6a40)}
.storefront .home-announcement {
  border:1px solid var(--line);border-radius:13px;padding:11px 16px;margin:14px 0 0;
  font-size:13px;background:var(--white);
}
.storefront .home-announcement strong {color:var(--accent-hot)}
.storefront .section-space {padding:20px 0 0}
.storefront .series-heading {margin-bottom:10px}
.storefront .series-heading h2 {font-size:22px;font-weight:680}
.storefront .series-board {border:0;border-radius:0;background:none;gap:14px;overflow:visible}
.storefront .series-link {
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;gap:15px;min-height:122px;transition:border-color .16s,background-color .16s;
}
.storefront .series-link:hover {border-color:#aabdf0;background:#fbfcff}
.storefront .series-link h3 {font-size:22px;font-weight:680}
.storefront .series-link p {margin:2px 0 8px;color:var(--sub)}
.storefront .series-link .standout {font-size:21px;letter-spacing:0;font-weight:700;color:var(--accent-hot)}
.storefront .series-art {display:flex;align-items:center;gap:13px}
.storefront .series-photo {position:relative;display:block;width:78px;overflow:hidden}
.storefront .series-photo img {display:block;width:100%;height:auto}
.storefront .series-photo img[hidden] {display:none}
.storefront .series-arrow {display:grid;place-items:center;width:31px;height:31px;background:var(--accent-pale);color:var(--accent);border-radius:50%}

.storefront .rental-filters {display:grid;grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr);gap:19px;margin-bottom:18px}
.storefront .rental-filters h2 {font-size:15px;margin-bottom:8px}
.storefront .rental-filters .duration {margin-top:0}
.storefront .duration button {border-radius:10px;line-height:1.25;min-height:43px}
.storefront .duration button.selected {color:var(--accent-hot);border-color:#9eb5f6}
.storefront .duration button:disabled {background:#f2f5fa;color:var(--muted)}
.storefront .stock-head {display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.storefront .stock-head h2 {font-size:19px;font-weight:680}
.storefront .model-filter .btn {font-size:12px}
.storefront .catalog .panel-heading {margin-bottom:10px}
.storefront .catalog {border-color:#939e98}
.storefront .catalog .panel-heading small {white-space:nowrap;color:var(--blue);background:var(--blue-pale);border-radius:20px;padding:3px 9px}
.storefront .device-row {border:1px solid #e5ecf7;border-radius:10px;padding:9px 11px;margin-top:6px;background:#fbfcff}
.storefront .device-row:first-of-type {margin-top:0}
.storefront .device-row:hover,.storefront .device-row:has(input:checked) {background:var(--accent-pale);border-color:#b6c8f8}
.storefront .device-row .num {color:var(--accent-hot)}
.storefront .store-summary {background:linear-gradient(155deg,#fff 50%,#edf3ff);box-shadow:0 7px 23px #284b8511}
.storefront .price-total strong,.storefront .mobile-quote b {color:var(--accent-hot);font-weight:700;letter-spacing:0}
.storefront .mobile-quote {background:var(--white);color:var(--ink)}

.storefront .auth-shell {
  grid-template-columns:minmax(0,445px) minmax(0,1fr);max-width:1000px;min-height:455px;margin:4px auto;
  border-radius:23px;box-shadow:0 8px 35px #22396a0a;
}
.storefront .auth-form {padding:31px 33px;align-content:center;gap:13px}
.storefront .auth-form h1 {font-size:clamp(28px,3.7vw,39px);line-height:1.22;font-weight:690}
.storefront .auth-form header p {color:var(--sub);margin:6px 0 2px;font-size:14px}
.storefront #registration-status:empty {display:none}
.storefront .auth-aside {
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;
  background:radial-gradient(ellipse at 53% 48%,#cbdcfa,transparent 74%),#f1f5fd;
  border-left:1px solid var(--line);padding:15px 24px;color:var(--ink)
}
.storefront .auth-aside img {height:auto;filter:drop-shadow(0 13px 13px #233a5536)}

.storefront [data-change=payment] {flex:none}
.storefront .radio-choice {border-radius:11px;min-height:56px}
.storefront .radio-choice.checked {border-color:#a2baf6}
.storefront .pay-result {padding:27px 23px}
.storefront .pay-result .lines {width:min(100%,370px)}
.storefront .pay-result .empty {background:var(--white)}
.storefront .pay-result .actions {justify-content:center}
.storefront .payment-states {justify-content:center;margin:15px 0}
.storefront .batch-renew {background:#edf3ff}
.storefront .lease-card h2 {color:var(--sub);font-size:16px}
.storefront .lease-title b {font-size:24px;font-weight:690}
.storefront .lease-count-strip {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--accent-pale);color:var(--accent-hot);border-radius:10px;padding:8px 11px;font-size:13px
}
.storefront .lease-card .lines {margin:0}
.storefront .lease-title+ h2 {margin-top:-5px}
.lease-overview .batch-renew {display:flex;align-items:center;justify-content:space-between;gap:16px}
.lease-overview .batch-renew h2 {font-size:18px;margin:0}
.lease-overview .batch-renew p {font-size:13px;margin:5px 0 0;color:var(--sub)}
.lease-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.lease-grid .lease-card {min-width:0;gap:10px}
.lease-grid .lease-card:has(.lease-footer input:checked) {border-color:var(--accent)}
.lease-grid .lease-title b,.renewal-editor-row h3 {overflow-wrap:anywhere}
.lease-grid .lease-count-strip>span {display:inline-flex;align-items:center;gap:5px}
.lease-grid .lease-count-strip time {font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}
.lease-grid .lease-footer {margin-top:auto;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px 12px}
.lease-grid .lease-footer .check-line {margin:0;font-size:13px}
.lease-copy-tools {display:grid;gap:4px;min-width:0}
.lease-copy-tools :is(p,small) {font-size:12px;color:var(--muted);margin:0}
.lease-copy-tools .actions,.lease-footer .actions {gap:6px}
.storefront .renewal-editor {display:grid;align-content:start;min-width:0;gap:16px}
.renewal-editor-heading,.renewal-editor-row header {display:flex;align-items:center;justify-content:space-between;gap:12px}
.renewal-editor-heading h2,.renewal-editor-row h3 {margin:0}
.renewal-editor-row header>div {min-width:0;overflow-wrap:anywhere}
.renewal-editor-heading>span {color:var(--muted);font-size:13px;white-space:nowrap}
.renewal-bulk {min-width:0;margin:0;padding:0;border:0}
.renewal-bulk legend {padding:0;margin-bottom:7px;font-size:14px;font-weight:650}
.renewal-bulk>div {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.renewal-bulk button {min-height:39px;padding:4px 6px;white-space:nowrap;font:inherit;font-size:13px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:8px;cursor:pointer}
.renewal-bulk button[aria-pressed=true] {background:var(--accent);color:white;border-color:var(--accent);font-weight:650}
.renewal-bulk button:disabled {color:var(--muted);background:var(--paper);opacity:.6;cursor:not-allowed}
.renewal-hint,.renewal-editor-row header p {margin:0;color:var(--muted);font-size:13px}
.renewal-editor-list {display:grid;gap:10px}
.renewal-editor-row {border:1px solid var(--line);border-radius:12px;min-width:0;padding:13px 15px}
.renewal-editor-row h3 {font-size:18px;line-height:1.35}
.renewal-editor-row header p {margin-top:3px}
.renewal-editor-row label {display:grid;gap:4px;min-width:116px;color:var(--sub);font-size:12px}
.renewal-editor-row select {width:100%;min-height:38px;padding:5px 8px;font:inherit;color:var(--ink);background:var(--white)}
.renewal-editor-row dl {display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 20px;margin:11px 0 0;padding-top:10px;border-top:1px solid var(--line)}
.renewal-editor-row dt {margin-bottom:2px;color:var(--muted);font-size:12px}
.renewal-editor-row dd {margin:0;font-size:13px;font-variant-numeric:tabular-nums}
.renewal-line-amount {margin-left:auto;text-align:right}
.renewal-line-amount dd {font-weight:660}
@media(max-width:700px) {
  .lease-grid {grid-template-columns:minmax(0,1fr);gap:10px}
  .lease-overview .batch-renew {align-items:flex-start;flex-direction:column;gap:10px}
  .lease-overview .batch-renew .actions {align-self:flex-end}
  .lease-grid .lease-card {padding:15px}
  .lease-grid .lease-footer .btn,.lease-copy-tools .btn,.lease-grid .lease-footer .check-line {min-height:44px}
  .renewal-bulk>div {grid-template-columns:repeat(3,minmax(0,1fr))}
  .renewal-bulk button,.renewal-editor-row select {min-height:44px}
  .renewal-editor-row {padding:12px}
  .renewal-editor-row header {align-items:flex-start}
  .renewal-editor-row dl {display:grid;gap:5px}
  .renewal-editor-row dl>div {display:flex;align-items:baseline;justify-content:space-between;gap:5px}
  .renewal-line-amount {margin:0}
}
.storefront .orders-list {margin-top:10px}
.storefront .software-filters {justify-content:space-between;padding:8px 10px;background:var(--white);border:1px solid var(--line);border-radius:13px}
.storefront .software-card {display:grid;grid-template-rows:auto 1fr auto;gap:8px;min-height:139px}
.storefront .software-title {display:flex;align-items:center;gap:10px}
.storefront .software-card p {margin:1px 0 2px;color:var(--sub)}
.storefront .software-card .btn {justify-self:start}
.storefront .app-icon {width:44px;height:44px}
.storefront .contact-card {background:linear-gradient(160deg,#fff 25%,#e9f3f0)}
.storefront .contact-name {color:#205b49;font-size:25px;line-height:1.25}

@media(max-width:840px) {
  .storefront .wrap {width:calc(100% - 36px)}
  .storefront .topline {display:flex;min-height:0;gap:0;padding-bottom:8px}
  .storefront .navlinks {flex:auto;width:100%;justify-content:space-between}
  .storefront .navlinks a {padding:6px 9px}
  .storefront .hero {min-height:310px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .storefront .hero h1 {font-size:clamp(38px,6.3vw,61px)}
  .storefront .hero-copy {padding-left:22px}
  .storefront .series-art {gap:8px}
  .storefront .series-photo {width:55px}
  .storefront .split {grid-template-columns:minmax(0,1fr) minmax(220px,255px)}
  .storefront .rental-filters {grid-template-columns:1fr;gap:13px}
  .storefront .auth-form {padding:27px 24px}
}

@media(max-width:610px) {
  .storefront .wrap {width:calc(100% - 24px)}
  .storefront .topline>.wordmark,.storefront .navright {margin-block:7px}
  .storefront .navlinks {gap:1px;padding:3px}
  .storefront .navlinks a {min-height:34px;font-size:12px;padding:6px 7px}
  .storefront .store-home,.storefront .route-content {padding-top:14px}
  .storefront .hero {grid-template-columns:1fr;min-height:0;border-radius:20px}
  .storefront .hero-copy {padding:20px 18px 0}
  .storefront .hero h1 {font-size:clamp(34px,10vw,43px)}
  .storefront .hero p {margin-top:8px;font-size:14px}
  .storefront .hero .actions {margin-top:12px}
  .storefront .hero-media {height:172px;margin:-7px 5px 0}
  .storefront .home-announcement {padding:8px 11px}
  .storefront .series-board {grid-template-columns:minmax(0,1fr);gap:8px}
  .storefront .series-link {min-height:0;padding:12px 14px;grid-template-columns:minmax(0,1fr) auto}
  .storefront .series-link h3 {font-size:17px}
  .storefront .series-link p {font-size:12px}
  .storefront .series-art {gap:7px}
  .storefront .series-arrow {width:25px;height:25px}
  .storefront .page-head {min-height:0;align-items:flex-start;padding:16px;margin-bottom:14px;gap:9px;border-radius:15px}
  .storefront .page-head p {font-size:13px;margin-top:5px}
  .storefront .panel {padding:14px}
  .storefront .split,.storefront .auth-shell {grid-template-columns:minmax(0,1fr)}
  .storefront .stack,.storefront .two {gap:11px}
  .storefront .rental-filters {margin-bottom:13px}
  .storefront .rent-summary .btn.block {display:none}
  .storefront .stock-head {align-items:flex-start;gap:3px}
  .storefront .model-filter .btn {min-height:29px;padding:4px 6px}
  .storefront .device-row .dev-spec {padding-left:24px;font-size:12px}
  .storefront .auth-shell {border-radius:17px}
  .storefront .auth-form {padding:19px}
  .storefront .auth-aside {border:0;border-top:1px solid var(--line);padding:13px}
  .storefront .auth-aside img {width:145px}
  .storefront .pay-result {padding:20px 14px}
  .storefront .software-filters .search {width:100%;max-width:none}
  .storefront .software-card {min-height:0}
  .storefront .store-footer {margin-top:23px}
}

.storefront .store-wordmark {font-size:14px;line-height:1.38;white-space:nowrap}
.storefront .wordmark .logo {flex:none}
.storefront .topline {grid-template-columns:minmax(245px,1fr) auto minmax(116px,1fr)}
.storefront .hero .hero-slogan {
  display:grid;justify-items:start;gap:.05em;font-size:clamp(40px,5.25vw,75px);
  font-family:"Songti SC","Noto Serif CJK SC","Source Han Serif SC",SimSun,serif;font-weight:900;line-height:1.16;letter-spacing:.015em
}
.storefront .hero-slogan span:first-child {color:var(--ink)}
.storefront .hero-slogan span:last-child {color:var(--accent);padding-left:.45em}
@media(max-width:840px) {
  .storefront .topline>.wordmark {flex:1;min-width:0;gap:7px}
  .storefront .navright {margin-left:8px}
  .storefront .store-wordmark {font-size:clamp(10px,3.1vw,12px)}
}
@media(max-width:610px) {
  .storefront .hero .hero-slogan {font-size:clamp(34px,10vw,43px)}
  .storefront .store-nav .logo {width:33px;height:33px}
  .storefront .navright .btn {padding-inline:8px;min-height:36px;font-size:12px}
}

.storefront .app-icon img {max-width:32px;max-height:32px}

.storefront .ai-project-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.storefront .ai-project-card {display:grid;grid-template-rows:auto 1fr auto;gap:9px}
.storefront .ai-project-card p {font-size:14px;color:var(--sub);overflow-wrap:anywhere}
.storefront .ai-project-card h2 {overflow-wrap:anywhere}
.storefront .ai-project-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px}
.storefront .ai-project-footer small {min-width:0;overflow-wrap:anywhere}
@media(max-width:610px) {
  .storefront .ai-project-grid {grid-template-columns:minmax(0,1fr)}
}
.ai-cursor-trail {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:8;
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce) {
  .ai-cursor-trail {display:none}
}

@media (max-width:610px) {
  .storefront .navlinks {display:grid;grid-template-columns:repeat(2,minmax(44px,auto)) repeat(4,minmax(max-content,1fr));gap:0}
  .storefront .navlinks a {min-height:44px;padding-inline:4px}
  .storefront .navright .btn,.storefront .duration button,.storefront .model-filter .btn,
  .storefront .btn.compact,.storefront .tabs button {min-height:44px}
  .storefront .mobile-records tbody td {padding:0}
  .storefront .orders-list .mobile-records tbody td:last-child {grid-column:1/-1}
  .storefront .orders-list .mobile-records tbody td:last-child::before {display:none}
  .storefront .orders-list .mobile-records tbody td:last-child a {width:100%}
  .storefront .stock-head {flex-wrap:wrap}
}

@media (max-width:350px) {
  .storefront .navlinks {grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-height:500px) and (orientation:landscape) {
  .storefront .store-nav {position:static}
}

/* Rent catalog, per-model picker, and checkout panel. */
.rental-catalog {
  padding-block: 22px 24px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.catalog-heading h1 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.055em;
}
.catalog-heading p {margin-top: 5px; color: var(--muted); font-size: 13px}
.catalog-filters {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.catalog-filters a {
  padding: 6px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.5;
  white-space: nowrap;
}
.catalog-filters b {margin-left: 2px; font-size: 10px}
.catalog-filters a[aria-current=page] {background: #203452; color: white}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 23vw, 308px);
  align-items: start;
  gap: 18px;
}
.catalog-models {min-width: 0}
.rental-model-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px}
.rental-model-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 11px 13px 0;
  background: var(--white);
  border: 1px solid #d4dfed;
  border-radius: 13px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rental-model-card:enabled {cursor: pointer}
@media (hover:hover) {
  .rental-model-card:enabled:hover {border-color: #86a0dc}
  .catalog-terms button:enabled:hover {border-color: var(--accent)}
}
.rental-model-card.is-selected {border-color: var(--accent); box-shadow: inset 0 0 0 .5px var(--accent)}
.rental-model-card:disabled {opacity: 1; cursor: default; color: #526479; background: #edf1f6; border-color: #d6dee8}
.catalog-card-top, .catalog-config, .catalog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.catalog-card-top {font-size: 12px; font-weight: 650; color: #475b77}
.catalog-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #216548;
  text-align: right;
}
.catalog-stock::before {content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none}
.unavailable .catalog-stock {color: #5e6c7b}
.catalog-config {margin-block: 6px 0; min-height: 44px}
.catalog-config-copy {min-width: 0; display: grid; gap: 1px}
.catalog-chip {font-size: clamp(19px, 1.85vw, 27px); line-height: 1.13; letter-spacing: -.045em}
.catalog-config-copy small {font-size: 12px; color: #50617a}
.catalog-photo {flex: none; display: grid; width: 32%; max-width: 78px; height: 38px; place-items: center}
.catalog-photo img {width: 100%; height: 100%; min-height: 0; object-fit: contain}
.unavailable .catalog-photo {filter: grayscale(1); opacity: .68}
.catalog-use {align-self: flex-start; margin: 3px 0 8px; font-size: 11px; color: var(--muted)}
.catalog-performance {
  margin: 4px 0 9px;
  color: #a0392a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}
.catalog-card-foot {flex-wrap: wrap; min-height: 35px; margin-top: auto; padding-block: 6px; border-top: 1px solid var(--line)}
.catalog-price {font-size: 17px; line-height: 1.2; letter-spacing: -.035em}
.catalog-card-foot small {font-size: 10px}
.catalog-pick {display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--accent)}
.catalog-estimate {margin-left: auto; font-size: 11px; line-height: 1.35; text-align: right; color: #536274}
.catalog-estimate small {margin-right: 3px}
.catalog-estimate time {white-space: nowrap; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums}
.catalog-caption {margin: 13px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45}

.storefront .catalog-cart {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 22px #2335540c;
  background: var(--white);
}
.catalog-cart-head {display: flex; align-items: center; gap: 8px}
.catalog-cart-head h2 {margin: 0; font-size: 19px; line-height: 1.3}
.catalog-cart-count {
  margin-left: auto;
  border: none;
  border-radius: 20px;
  background: var(--accent-pale);
  color: var(--accent-hot);
  padding: 4px 9px;
  font: 600 12px/1.5 var(--font);
  cursor: pointer;
}
.catalog-cart-count:disabled {cursor: default}
.catalog-term-label {margin-block: 3px -5px; font-size: 12px; font-weight: 650}
.catalog-terms {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px}
.catalog-terms button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 2px;
  color: var(--ink);
  background: var(--white);
  font: 560 12px/1.4 var(--font);
  white-space: nowrap;
  cursor: pointer;
}
.catalog-terms [aria-pressed=true] {background: var(--accent); border-color: var(--accent); color: white}
.catalog-terms button:disabled {background: #eff2f6; color: #728092; border-color: #e0e5eb; cursor: not-allowed}
.catalog-cart-items {max-height: min(32vh, 17rem); overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--line)}
.catalog-cart-items:empty {display: none}
.catalog-cart-line {display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--line)}
.catalog-cart-line:last-child {border-bottom: 0}
.catalog-cart-line > :first-child {min-width: 0; margin-right: auto; overflow-wrap: anywhere}
.catalog-cart-line b, .catalog-devices b {font: 650 13px/1.45 ui-monospace, Menlo, monospace}
.catalog-cart-line small {display: block; font-size: 11px; color: var(--muted)}
.catalog-cart-line button {padding: 4px 6px; min-width: 28px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer}
.catalog-cart-adjustments {font-size: 12px; color: var(--muted)}
.catalog-cart-adjustments:empty {display: none}
.catalog-cart-adjustments p {margin: 0}
.catalog-cart-adjustments .lines > div {padding: 3px 0}
.catalog-pay-row {display: grid; gap: 9px; align-items: center}
.catalog-pay-row .price-total {align-items: baseline; justify-content: space-between; margin: 0; color: var(--muted); font-size: 12px}
.catalog-pay-row .price-total strong {color: var(--ink); font-size: 28px; line-height: 1.1; overflow-wrap: anywhere}
.catalog-pay-row > .btn {width: 100%; min-width: 0}
.rental-catalog > .panel {margin-bottom: 14px}

dialog.catalog-picker {width: min(calc(100% - 28px), 450px)}
.catalog-picker[open] {display: flex; flex-direction: column; max-height: min(36rem, 86dvh)}
.catalog-picker .modal-head {border: 0; padding: 19px 20px 4px; flex: none}
.catalog-picker .modal-head h2 {font-size: 20px; line-height: 1.25}
.catalog-picker h2[tabindex="-1"]:focus {outline: none}
.catalog-picker .modal-head h2 .catalog-dialog-series {display: block; margin-bottom: 4px; font-size: 12px; font-weight: 550; letter-spacing: 0}
.catalog-picker .modal-body {min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 21px 6px; gap: 7px}
.catalog-dialog-desc, .catalog-dialog-series {margin: 0; font-size: 13px; color: var(--muted)}
.catalog-devices {display: grid}
.catalog-devices label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.catalog-devices input {margin: 0; width: 16px; height: 16px}
.catalog-devices b {min-width: 0; overflow-wrap: anywhere}
.catalog-devices small {font-size: 11px; color: var(--muted); text-align: right}
.catalog-picker .modal-foot {padding: 8px 20px 18px; flex: none; border-top: none}
.catalog-picker .modal-foot .btn {width: 100%}

@media (min-width: 761px) and (max-width: 1050px) {
  .catalog-layout {grid-template-columns: minmax(0, 1fr) 245px; gap: 13px}
}
@media (min-width: 761px) and (max-width: 959px) {
  .rental-model-grid {grid-template-columns: repeat(2, minmax(0, 1fr))}
}

@media (max-width: 760px) {
  html:has(.rental-catalog) {scroll-padding-bottom: calc(180px + env(safe-area-inset-bottom))}
  .rental-catalog {padding-block: 4px 8px}
  .catalog-heading {align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 13px}
  .catalog-heading h1 {font-size: 30px}
  .catalog-heading p {display: none}
  .catalog-filters a {padding: 6px 10px}
  .catalog-layout {display: flex; flex-direction: column; gap: 13px}
  .catalog-models, .catalog-cart {width: 100%}
  .rental-model-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px}
  .rental-model-card {padding: 9px 10px 0; border-radius: 11px}
  .catalog-card-top {font-size: 11px; gap: 3px}
  .catalog-stock {font-size: 10px; gap: 3px}
  .catalog-stock::before {width: 5px; height: 5px}
  .catalog-config {margin-top: 4px; min-height: 38px; gap: 4px}
  .catalog-chip {font-size: 18px}
  .catalog-config-copy small {font-size: 11px}
  .catalog-photo {width: 27%; max-width: 60px; height: 28px}
  .catalog-performance {margin: 4px 0 7px; font-size: 12px}
  .catalog-card-foot {min-height: 30px; gap: 3px; padding-block: 5px}
  .catalog-price {font-size: 15px}
  .catalog-pick, .catalog-estimate {font-size: 10px}
  .catalog-estimate time {font-size: 10px}
  .catalog-caption {font-size: 11px; margin-top: 11px}
  .storefront .catalog-cart {
    top: auto;
    bottom: 0;
    z-index: 4;
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px #23355414;
  }
  .catalog-cart-head {grid-column: 1 / -1; gap: 5px}
  .catalog-cart-head h2 {font-size: 14px}
  .catalog-cart-head > svg {width: 16px; height: 16px}
  .catalog-cart-count {padding: 4px 8px}
  .catalog-term-label {grid-column: 1 / -1; font-size: 11px; margin: 0}
  .catalog-terms {grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px}
  .catalog-terms button {min-height: 35px; font-size: 11px}
  .catalog-cart-items {display: none}
  .catalog-cart-adjustments {grid-column: 1 / -1; font-size: 11px}
  .catalog-cart-adjustments .lines {display: flex; flex-wrap: wrap; column-gap: 10px}
  .catalog-cart-adjustments .lines > div {gap: 4px; border: 0; padding: 0}
  .catalog-pay-row {grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px}
  .catalog-pay-row .price-total {justify-content: flex-start; align-items: baseline; gap: 5px}
  .catalog-pay-row .price-total strong {font-size: 24px}
  .catalog-pay-row > .btn {width: auto; padding: 7px 14px; min-height: 40px}
  .catalog-picker .modal-head {padding: 13px 14px 2px}
  .catalog-picker .modal-body {padding: 5px 14px}
  .catalog-picker .modal-foot {padding: 7px 14px 14px}
}
@media (max-width: 370px) {
  .rental-model-card {padding-inline: 7px}
  .catalog-chip {font-size: 16px}
  .catalog-estimate small {display: block}
  .catalog-devices label {grid-template-columns: auto minmax(0, 1fr); row-gap: 0}
  .catalog-devices small {grid-column: 2; text-align: left}
}
@media (min-width: 761px) and (max-height: 500px) and (orientation: landscape) {
  .storefront .catalog-cart {max-height: calc(100dvh - 24px); overflow-y: auto}
}

.storefront .delivery-panel {min-width:0;display:grid;gap:12px;padding:15px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.storefront .delivery-panel p,.storefront .delivery-panel h3 {margin:0}
.storefront .delivery-panel h3 {font-size:15px;line-height:1.45}
.storefront .delivery-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.storefront .delivery-panel .btn {justify-self:start}
.storefront .delivery-panel .delivery-simulated,.storefront .delivery-wait {font-size:12px;color:var(--muted)}
.storefront .delivery-providers {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
.storefront .delivery-provider {min-width:0;display:grid;align-content:start;gap:8px;padding:12px;background:var(--white);border-radius:8px}
.storefront .delivery-provider>strong {color:var(--ink);font-size:14px}
.storefront .delivery-provider dl,.storefront .delivery-provider dd {margin:0}
.storefront .delivery-provider dl {display:grid;gap:5px}
.storefront .delivery-provider dt {font-size:12px;color:var(--muted)}
.storefront .delivery-provider dd {overflow-wrap:anywhere;color:var(--ink);font:600 14px/1.5 ui-monospace,monospace;user-select:all}
.storefront .receipt-delivery {margin-bottom:16px}

/* Live first-day offers */
.promo-zone{margin-top:26px}
.promo-cards{display:grid;gap:12px}
.promo-card,.promo-device{display:flex;align-items:center;gap:20px}
.promo-card{padding:18px 22px;border:1px solid var(--line,#cddaf0);background:#fff;border-radius:14px}
.promo-art{flex:none;display:grid;place-items:center;align-self:stretch;width:clamp(92px,16vw,200px);min-height:90px;background:linear-gradient(130deg,#eaf1fd,#f7faff);border-radius:10px;padding:18px}
.promo-art img{display:block;width:100%;height:86px;object-fit:contain}
.promo-identity,.promo-card-price{min-width:0}
.promo-identity h3,.promo-device h2{margin:5px 0;font-size:clamp(18px,2vw,25px)}
.promo-card p,.promo-device p,.promo-schedule p{margin:3px 0 7px}
.promo-identity small,.promo-flag{color:#275942;font-size:12px}
.promo-card-price{margin-left:auto}.promo-card-price>strong,.promo-lead-price{font-size:clamp(22px,3vw,38px);font-weight:720;letter-spacing:-.035em}
.promo-card-price small,.promo-lead-price small{font-size:13px;letter-spacing:0;font-weight:500}
.promo-card-price p,.promo-tick{font-size:13px;color:#88431e}
.promo-tick{border-radius:8px;padding:9px 12px;background:#fff2e7}
.promo-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.85fr);gap:16px;align-items:start}
.promo-offer{grid-column:2;grid-row:1/4}
.promo-offer>.btn{width:100%}.promo-offer .btn+.btn{margin-top:3px}
.promo-schedule,.promo-rules{grid-column:1}
.promo-schedule ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));list-style:none;padding:0;margin:20px 0 12px}
.promo-schedule li{display:grid;gap:4px;padding:10px 0;border-top:2px solid #c9d6ed;font-variant-numeric:tabular-nums}
.promo-schedule li.current{border-color:#be633b;color:#954722}
.promo-schedule small,.promo-rules p,.promo-renew-note{font-size:13px}
.promo-renew-note{color:#704421;margin:8px 0}
.promo-catalog-links{padding:9px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
@media(max-width:680px){
  .promo-layout{grid-template-columns:minmax(0,1fr);gap:12px}
  .promo-offer,.promo-schedule,.promo-rules{grid-column:auto;grid-row:auto}
  .promo-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px 14px;padding:13px}
  .promo-art{width:78px;min-height:66px;padding:8px}.promo-art img{height:56px}
  .promo-card-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px;margin:0}
  .promo-card-price p{order:3;width:100%;margin:0}.promo-card-price .btn{margin-left:auto}
  .promo-device{gap:14px}
}
.storefront .account-notice {
  max-width: 56rem;
  margin: 0 0 1rem;
  padding: clamp(1rem, 3vw, 1.7rem);
  background: #fffbf3;
  border: 1px solid #e4d2ab;
}
.storefront .account-notice.blocked {
  max-width: 39rem;
  margin: 1rem auto;
  background: #fff8f5;
  border-color: #e1c3b9;
}
.storefront .account-notice h2 { margin: 0; color: #75501e; }
.storefront .account-notice.blocked h2 { color: #943f32; }
.storefront .account-notice p { margin: .7rem 0; line-height: 1.6; }
.storefront .account-notice .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
