/* Local preview: Untitled UI's open-source surfaces and controls, with the
   storefront's existing layout, reading scale and original brand artwork.
   Upstream/license: frontend/admin-untitled/UPSTREAM.json, LICENSE-UNTITLED-UI. */
html.store-untitled {
  font-size: 18px;
  --background: #f7f8fa;
  --foreground: #202a31;
  --surface: #fff;
  --surface-foreground: #202a31;
  --muted: #52616b;
  --accent: #235d83;
  --accent-foreground: #fff;
  --accent-soft: #eaf1f7;
  --accent-soft-foreground: #1e5275;
  --default: #f5f5f5;
  --default-foreground: #414651;
  --border: #dfe5e9;
  --separator: #e7ebee;
  --field-background: #fff;
  --field-border: #d5d7da;
  --field-placeholder: #717680;
  --surface-shadow: 0 1px 2px #0a0d120d;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --danger-soft-foreground: #b42318;
}
.store-untitled body { line-height: 1.6; }
.store-untitled :is(h1,h2,h3) { color: var(--foreground); letter-spacing: -.025em; }
.store-untitled :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #5796ba; outline-offset: 3px; }
.store-untitled :is(.button,.toggle-button) {
  min-height: 48px; border-radius: 8px; padding: 11px 18px;
  font-size: 18px; font-weight: 600; line-height: 26px;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.store-untitled .button--primary {
  background: var(--accent); color: #fff; border: 1px solid #1e5275;
  box-shadow: 0 1px 2px #0a0d120d, 0 -2px 0 #0a0d1214 inset, 0 0 0 1px #fff2 inset;
}
.store-untitled .button--primary:hover:not(:disabled) { background: #1e5275; }
.store-untitled .button--secondary {
  border: 1px solid var(--field-border); background: var(--surface); color: var(--default-foreground);
  box-shadow: 0 1px 2px #0a0d120d, 0 -2px 0 #0a0d1208 inset;
}
.store-untitled .button--secondary:hover:not(:disabled) { background: var(--default); }
.store-untitled .button--ghost { color: var(--default-foreground); }
.store-untitled :is(.input,.textarea,.select__trigger) {
  border: 1px solid var(--field-border); border-radius: 8px; background: var(--field-background);
  box-shadow: 0 1px 2px #0a0d120d; min-height: 48px; font-size: 18px;
}
.store-untitled .nav-item { border-radius: 8px; font-weight: 500; color: #414651; }
.store-untitled .nav-item .icon { color: #717680; }
.store-untitled .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.store-untitled .nav-item.active .icon { color: var(--accent); }
.store-untitled .topbar { background: var(--surface); border-color: var(--border); }
.store-untitled .breadcrumbs { color: var(--foreground); font-size: 22px; font-weight: 600; }
.store-untitled .avatar { border: 1px solid #d5e3ed; }
.store-untitled :is(.card:not(.card--transparent),.catalog-purchase-card,.settings-card) {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.store-untitled .catalog-shelf-grid { gap: 24px; }
.store-untitled .catalog-shelf .catalog-purchase-card { padding: 26px; }
.store-untitled .catalog-shelf .catalog-card-identity { gap: 20px; min-height: 132px; padding-bottom: 24px; margin-bottom: 22px; align-items: center; }
.store-untitled .catalog-shelf .catalog-card-identity>img { width: 88px; height: 102px; border-radius: 0; }
.store-untitled .catalog-card-identity h2 { font-size: 26px; line-height: 1.35; font-weight: 650; }
.store-untitled .catalog-card-identity p { font-size: 18px; line-height: 1.5; margin-top: 6px; }
.store-untitled .product-manual-link { font-size: 16px; min-height: 36px; text-underline-offset: 4px; margin-top: 4px; }
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) {
  min-height: 60px; padding: 5px 12px; border: 1px solid transparent; border-radius: 8px;
  gap: 14px; background: transparent;
}
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice { grid-template-columns: 20px minmax(76px,1fr) auto; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice input { grid-column: 1; grid-row: 1; justify-self: start; width: 20px; height: 20px; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-term { grid-column: 2; grid-row: 1; font-size: 18px; font-weight: 600; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-price { grid-column: 3; grid-row: 1; gap: 5px; justify-content: flex-end; white-space: nowrap; }
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-price strong,.period-mix-info strong) { font-size: 18px; line-height: 27px; font-weight: 600; }
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-price>span,.period-mix-info>span) { font-size: 16px; line-height: 27px; }
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice:hover,.period-mix-row:hover) { background: var(--default); }
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice:has(input:checked),.period-mix-row.is-selected) { border-color: #c3d8e7; background: var(--accent-soft); }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-list { gap: 4px; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-row { grid-template-columns: minmax(0,1fr) 132px; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info { gap: 12px; min-width: 0; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info label { min-width: 76px; font-size: 18px; font-weight: 600; line-height: 27px; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-stepper input { font-size: 18px; }
.store-untitled .period-stepper { gap: 0; }
.store-untitled .period-stepper button { border-radius: 8px; color: var(--accent); border-color: var(--field-border); box-shadow: 0 1px 2px #0a0d120d; }
.store-untitled .catalog-selection-summary { margin-bottom: 20px; }
.store-untitled .catalog-selection-summary strong { font-size: 38px; line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
.store-untitled .catalog-selection-summary>div>span { font-size: 16px; }
.store-untitled .catalog-duration-toggle { border-radius: 8px; font-size: 16px; min-height: 40px; padding: 8px 12px; color: var(--accent); box-shadow: 0 1px 2px #0a0d120d; }
.store-untitled .catalog-shelf .catalog-contact { display: block; padding-top: 24px; margin-top: 24px; text-align: center; }
.store-untitled .catalog-contact img { width: 180px; height: 180px; margin: 0 auto; border-radius: 0; }
.store-untitled .catalog-contact figcaption { margin-top: 16px; gap: 6px; }
.store-untitled .catalog-contact figcaption strong { font-size: 18px; }
.store-untitled .catalog-contact figcaption span { font-size: 16px; }
.store-untitled .cart-add-status:empty { margin: 0; min-height: 0; }
.store-untitled :is(.cart-select-all,.cart-product-card,.cart-summary) { border-radius: 14px; }
.store-untitled .cart-remove-link { border-radius: 8px; }
.store-untitled table th { background: var(--background); font-size: 16px; font-weight: 500; color: var(--muted); }
.store-untitled table td { font-size: 18px; border-color: var(--border); }
.store-untitled :is(.chip,.settings-bound) { border-radius: 6px; font-size: 16px; font-weight: 500; }
.store-untitled .chip--success { background: #ecfdf3; color: #067647; border: 1px solid #abeec6; }
.store-untitled :is(.settings-card-heading h2,.panel>h2) { font-size: 24px; font-weight: 600; }
.store-untitled .settings-logout { border-color: #fecdca; background: #fff; color: #b42318; }
.store-untitled .footer { color: #717680; font-size: 16px; border-color: var(--border); }
.store-untitled .legal-links { font-size: 16px; }
.store-untitled .legal-links a { color: #717680; }
.store-untitled main:has(>.catalog-shelf)>.footer { margin-top: 16px; }
@media(min-width:1600px) { .store-untitled .catalog-shelf .catalog-card-identity>img { width: 112px; height: 130px; } .store-untitled .catalog-card-identity h2 { font-size: 28px; } .store-untitled .catalog-shelf .catalog-card-identity { min-height: 154px; } }
@media(max-width:700px) { .store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { min-height: 68px; } .store-untitled .catalog-shelf .catalog-purchase-card { padding: 22px; } .store-untitled .catalog-card-identity h2 { font-size: 25px; } .store-untitled .catalog-shelf .catalog-card-identity { gap: 16px; min-height: 124px; } .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice { grid-template-columns: 20px minmax(0,1fr) auto; grid-template-rows: auto; gap: 10px; } .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice input { align-self: center; } .store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info { min-width: 0; flex-wrap: wrap; gap: 0 8px; } .store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info label { min-width: 0; } .store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info>span { white-space: normal; } }
@media(max-width:400px) { .store-untitled .catalog-shelf .catalog-purchase-card { padding: 16px; } .store-untitled .catalog-card-identity h2 { font-size: 22px; } .store-untitled .catalog-shelf .catalog-card-identity { gap: 12px; } .store-untitled .catalog-card-identity p { font-size: 16px; } .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-price>span { font-size: 14px; } }
@media(prefers-reduced-motion:reduce) { .store-untitled * { transition: none !important; scroll-behavior: auto !important; } }

/* A desktop shelf should use the available screen before asking for scrolling.
   Keep the reading and artwork sizes; compress spacing and summary layout. */
@media(min-width:1400px) {
  .store-untitled main:has(>.catalog-shelf) { padding-top: 24px; }
  .store-untitled .catalog-shelf .catalog-purchase-card { padding-block: 20px; }
  .store-untitled .catalog-shelf .catalog-card-identity { min-height: 0; padding-bottom: 12px; margin-bottom: 12px; }
  .store-untitled .catalog-shelf .catalog-plan-list { margin-bottom: 12px; }
  .store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { min-height: 56px; }
  .store-untitled .catalog-card-purchase { padding-top: 12px; }
  .store-untitled .catalog-selection-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 20px 50px; align-items: center; gap: 0 12px; margin-bottom: 12px; }
  html.store-untitled .catalog-purchase-card .catalog-selection-summary:has(.catalog-duration-toggle)>p { grid-column: 1; grid-row: 1; min-height: 20px; padding: 0; margin: 0; display: block; }
  .store-untitled .catalog-selection-summary>div { grid-column: 1; grid-row: 2; }
  .store-untitled .catalog-duration-toggle { position: static; grid-column: 2; grid-row: 1/3; min-height: 44px; align-self: center; }
  .store-untitled .catalog-shelf .catalog-contact { padding-top: 16px; margin-top: 16px; }
  .store-untitled .catalog-contact figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
  .store-untitled main:has(>.catalog-shelf)>.footer { padding-block: 12px; }
}

/* Both duration modes share the same term / price / control columns. */
.store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { grid-template-columns: 76px minmax(0,1fr) 132px; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-term { grid-column: 1; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-price { grid-column: 2; justify-content: flex-start; }
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice input { grid-column: 3; justify-self: end; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info { grid-column: 1/3; display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: baseline; gap: 14px; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info label { grid-column: 1; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info>span { grid-column: 2; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-stepper { grid-column: 3; }
@media(min-width:1400px) {
  .store-untitled main:has(>.catalog-shelf) { max-width: none; padding-inline: 24px; }
  .store-untitled .catalog-shelf { max-width: none; }
  .store-untitled main:has(>.orders-page) { max-width: none; padding-inline: 24px; }
  .store-untitled main:has(.cart-config-layout) { padding-top: 24px; }
  .store-untitled .cart-item-fields .purchase-quantity { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 0; }
  .store-untitled .cart-item-fields .purchase-quantity label { margin-bottom: 0; }
  .store-untitled .cart-item-fields .purchase-quantity input { width: 120px; }
  .store-untitled .catalog-shelf { flex: 1; display: flex; flex-direction: column; }
  .store-untitled .catalog-shelf-grid { flex: 1; }
  .store-untitled .catalog-purchase-form>[data-catalog-single] { flex: 1; justify-content: space-between; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix] { flex: 1; display: flex; flex-direction: column; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix]>.period-mix { flex: 1; display: flex; flex-direction: column; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix] .period-mix-list { flex: 1; align-content: space-between; }
  .store-untitled .catalog-card-purchase { margin-top: 0; }
}
@media(max-width:700px) {
  .store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { grid-template-columns: minmax(0,1fr) 132px; grid-template-rows: auto auto; gap: 0 12px; align-content: center; }
  .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-term { grid-column: 1; grid-row: 1; }
  .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-price { grid-column: 1; grid-row: 2; }
  .store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-choice input { grid-column: 2; grid-row: 1/3; align-self: center; }
  .store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info { grid-column: 1; grid-row: 1/3; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .store-untitled .catalog-shelf .catalog-purchase-card .period-stepper { grid-column: 2; grid-row: 1/3; align-self: center; }
}

/* Match the supplied production reference: fixed plan rhythm and a calm QR area. */
@media(min-width:1400px) {
  .store-untitled main:has(>.catalog-shelf) { max-width: 1600px; padding-inline: 40px; }
  .store-untitled .catalog-shelf { max-width: 1440px; flex: 1; display: flex; flex-direction: column; }
  .store-untitled .catalog-shelf-grid { flex: 1; }
  .store-untitled .catalog-shelf .catalog-card-identity { flex: none; }
  .store-untitled .catalog-purchase-form>[data-catalog-single] { flex: none; justify-content: initial; }
  .store-untitled .catalog-purchase-form>[data-catalog-single]>.catalog-plan-choice { flex: none; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix] { flex: none; display: block; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix]>.period-mix { flex: none; display: block; }
  .store-untitled .catalog-purchase-form>[data-catalog-mix] .period-mix-list { flex: none; grid-auto-rows: var(--catalog-row); align-content: initial; }
  .store-untitled .catalog-card-purchase { flex: 1 0 auto; margin-top: 0; justify-content: initial; }
  .store-untitled .catalog-contact figcaption { margin-top: 8px; }
  .store-untitled .cart-item-fields .purchase-quantity { flex-direction: row; }
  .store-untitled .orders-page .orders-table td { padding-block: 14px; }
  .store-untitled main>.footer { padding-block: 12px; }
}

/* Preserve the production catalog composition, including stacked QR captions. */
@media(min-width:1400px) {
  .store-untitled .catalog-shelf { --catalog-space: clamp(10px, calc(10px + (100dvh - 1080px) * .075), 16px); --catalog-row: 56px; }
  .store-untitled main:has(>.catalog-shelf) { padding-top: 20px; }
  .store-untitled .catalog-shelf .catalog-card-identity { gap: 24px; padding-inline: 8px; padding-bottom: var(--catalog-space); margin-bottom: var(--catalog-space); }
  .store-untitled .catalog-shelf .product-manual-link { font-size: 18px; }
  .store-untitled .catalog-shelf .catalog-purchase-card { border-radius: 16px; box-shadow: none; }
  .store-untitled .catalog-shelf .catalog-card-identity>img { width: 96px; height: 112px; }
  .store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { min-height: var(--catalog-row); }
  .store-untitled .catalog-shelf .catalog-plan-list { margin-bottom: var(--catalog-space); }
  .store-untitled .catalog-card-purchase { padding-top: var(--catalog-space); }
  .store-untitled .catalog-selection-summary { grid-template-rows: 36px 56px; margin-bottom: var(--catalog-space); }
  .store-untitled .catalog-duration-toggle { grid-row: 1; }
  .store-untitled .catalog-shelf .catalog-contact { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: var(--catalog-space); margin-top: var(--catalog-space); }
  .store-untitled .catalog-shelf .catalog-purchase-card :is(.catalog-plan-choice,.period-mix-row) { border-radius: 12px; }
  .store-untitled .catalog-cart-button { min-height: 54px; box-shadow: none; font-weight: 500; }
  .store-untitled .catalog-contact figcaption { display: grid; gap: 4px; margin-top: 12px; }
  .store-untitled main:has(>.catalog-shelf)>.footer { padding-block: 8px; }
}
.store-untitled .catalog-shelf .catalog-purchase-card .catalog-plan-term { line-height: 27px; }
.store-untitled .catalog-shelf .catalog-purchase-card .period-mix-info>span { display: inline-flex; align-items: baseline; gap: 5px; line-height: 27px; }
