@font-face {
  font-family: 'Instrument Serif';
  src: url('/software-store/instrument-serif.woff') format('woff');
  font-display: swap;
}

/* Installer downloads stay inside the Software Store. */
.edition-actions { align-self: start; min-width: 0; }
.edition-installer { margin-top: 1rem; }
.installer-download-form { margin: 0; }
.edition-installer .installer-download-button { width: 100%; }
.installer-release { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; }
.edition-installer .installer-release { margin-top: .75rem; }
.installer-help { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.installer-notes { padding-top: 1rem; border-top: 1px solid var(--line); }
.installer-public-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 2rem; align-items: start; }
.installer-steps ol { padding-left: 1.5rem; }
.installer-steps li { padding: .8rem 0; }
.installer-steps p { color: var(--muted); margin-top: .3rem; }
.installer-admin-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(17rem,1fr); gap: 1.5rem; align-items: start; }
.installer-admin-layout > *, .installer-public-layout > * { min-width: 0; }
.installer-admin-layout .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.installer-total { font-size: 2.5rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.installer-stat-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.installer-stat-pair strong { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.installer-stat-pair span { color: var(--muted); }
.installer-stat-table { width: 100%; border-collapse: collapse; }
.installer-stat-table td, .installer-stat-table th { padding: .65rem 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.installer-stat-table td:last-child, .installer-stat-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.footer-download-link { align-self: start; }
.installer-page .installer-download-button, .installer-order .installer-download-button { max-width: 100%; white-space: normal; }
.installer-download-form[aria-busy=true] button { opacity: .7; }
@media(max-width: 1050px) { .installer-admin-layout { grid-template-columns: 1fr; } }
@media(max-width: 680px) { .installer-public-layout, .installer-admin-layout .form-grid { grid-template-columns: 1fr; } }

:root {
  color-scheme: light;
  --ink: #1f2741;
  --muted: #5f6b8f;
  --green: #2f58cf;
  --green-strong: #2146ac;
  --store-green: #246b58;
  --pale: #edf2ff;
  --line: rgba(108, 126, 202, .22);
  --line-strong: rgba(108, 126, 202, .36);
  --storefront-top: #f8faff;
  --storefront-tint: #e8f0fb;
  --surface: rgba(255, 255, 255, .92);
  --surface-strong: #fff;
  --surface-shadow: 0 18px 42px rgba(86, 106, 190, .13);
  --canvas:
    radial-gradient(circle at 10% 4%, rgba(47, 88, 207, .16), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(47, 88, 207, .14), transparent 36%),
    linear-gradient(135deg, #f7f9ff 0%, #f2f5ff 34%, #ecf1ff 100%);
  --danger: #902e2e;
  font: 16px/1.55 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #eef3ff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
.storefront { background: linear-gradient(180deg, var(--storefront-top) 7rem, var(--storefront-tint) 34rem, #f4f7fc 68rem); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-strong); }
:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1 { font: 400 clamp(3rem, 6vw, 5.2rem)/.99 'Instrument Serif', Georgia, serif; letter-spacing: -.012em; }
h2 { font: 400 clamp(2.2rem, 4.6vw, 3.5rem)/1.04 'Instrument Serif', Georgia, serif; }
h3 { font-size: 1.16rem; }
.store-page-title { font: 780 clamp(2.35rem, 4.5vw, 4rem)/1.04 'DM Sans', 'Segoe UI', sans-serif; letter-spacing: -.045em; }
p + p { margin-top: .7rem; }
nav a { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .63rem 1rem; border: 1px solid var(--green);
  background: var(--green); color: #fff; text-decoration: none; font-weight: 650;
  border-radius: .7rem; cursor: pointer; text-align: center;
  box-shadow: 0 7px 18px rgba(47, 88, 207, .16);
}
button:hover, .button:hover { color: #fff; background: var(--green-strong); }
.secondary { border-color: var(--line-strong); background: #fff; color: var(--green); box-shadow: none; }
.secondary:hover { color: var(--green); background: var(--pale); }
.compact { min-height: 36px; padding: .34rem .72rem; }
button:disabled { opacity: .52; cursor: default; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(2rem, 5vw, 4.3rem); }
.skip { position: absolute; z-index: 5; background: white; padding: .6rem; transform: translateY(-130%); }
.skip:focus { transform: none; }
.store-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 73px; }
.brand, .header-actions, .header-row nav { display: flex; align-items: center; gap: clamp(.65rem, 1.6vw, 1.35rem); }
.brand { flex-shrink: 0; text-decoration: none; color: var(--muted); white-space: nowrap; }
.brand img { width: 136px; }
.brand span { border-left: 1px solid var(--line); padding-left: .75rem; font-size: .8rem; }
.header-row nav a, .header-actions > a { font-size: .88rem; font-weight: 650; white-space: nowrap; }
.header-row a[aria-current="page"] { text-decoration: underline; }
.header-actions > a { text-decoration: none; }
.edition-pill, .pill {
  display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px;
  padding: .28rem .62rem; background: var(--pale); color: var(--green); font-size: .78rem; font-weight: 650;
}
.storefront-header .header-row { min-height: 64px; padding-block: .4rem; gap: .5rem 1.25rem; }
.storefront-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; min-width: 0; }
.storefront-header .brand { gap: .65rem; min-height: 44px; }
.storefront-header .brand[aria-current=page] { text-decoration: none; }
.storefront-header .brand img { width: 124px; }
.storefront-header .brand span { color: var(--ink); font-size: .86rem; font-weight: 620; }
.storefront-header { background: var(--storefront-top); border-bottom-color: transparent; }
.storefront-header .header-row { box-shadow: inset 0 -1px var(--line); }
.storefront-edition { text-decoration: none; white-space: nowrap; }
.storefront-edition:hover { background: #e2e8ff; }
.edition-chevron { width: .38rem; height: .38rem; margin-inline: .12rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.1rem) rotate(45deg); }
.storefront-header .header-actions { order: 0; width: auto; gap: clamp(.6rem, 1.5vw, 1rem); margin-inline-start: auto; }
.storefront-header .header-actions .compact { min-height: 40px; margin-inline-start: 0; }
.storefront-orders { display: inline-flex; align-items: center; min-height: 40px; }
.storefront-account { min-width: 9.25rem; }
.storefront-account-menu { position: relative; min-width: 0; }
.storefront-account-menu summary { max-width: 11rem; font-size: .88rem; list-style: none; }
.storefront-account-menu summary::-webkit-details-marker { display: none; }
.storefront-account-menu summary .edition-chevron { flex: none; }
#store-customer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storefront-account-popover {
  position: absolute; inset-block-start: calc(100% + .45rem); inset-inline-end: 0;
  width: min(15rem, calc(100vw - 2rem)); padding: .75rem; border: 1px solid var(--line);
  border-radius: .8rem; background: var(--surface-strong); box-shadow: var(--surface-shadow);
  overflow-wrap: anywhere; font-size: .88rem;
}
#store-customer-full-name { font-weight: 650; padding: .25rem .45rem .5rem; }
.storefront-account-popover button { width: 100%; justify-content: flex-start; }
.storefront-account-popover .error { margin-top: .5rem; }
.cart-count { min-width: 1.35rem; border-radius: 99px; background: #ffffff26; padding: 0 .3rem; font-size: .74rem; font-variant-numeric: tabular-nums; }
.store-home-lead { background: linear-gradient(180deg, var(--storefront-top), var(--storefront-tint)); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 5vw, 4rem); padding-block: clamp(1.75rem, 4.5vw, 3.8rem); }
#editions { scroll-margin-top: 4.5rem; }
.hero h1 { max-width: 520px; }
.hero p { color: var(--muted); margin: 1.2rem 0 1.6rem; max-width: 42ch; font-size: 1.04rem; }
.hero figure { margin: 0; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--surface-strong); box-shadow: var(--surface-shadow); }
.hero img { width: 100%; height: clamp(220px, 32vw, 395px); object-fit: cover; }
.kicker { color: var(--green-strong); font-size: .76rem; font-weight: 780; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .65rem; }
.hero .kicker { color: var(--green-strong); margin: 0 0 .8rem; }
.intro { max-width: 62ch; color: var(--muted); margin-top: .6rem; }
.edition-chooser { padding-block: clamp(1.5rem, 3.5vw, 3rem); }
.edition-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.125rem, 4vw, 2.125rem);
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: #f3f6fc;
}
.edition-heading { display: grid; gap: .3125rem; }
.edition-heading h2 { font-size: clamp(1.6875rem, 4vw, 2.4375rem); line-height: 1.12; }
.edition-heading p { color: var(--muted); }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.edition-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(1.0625rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .875rem;
  background: var(--surface-strong);
}
.edition-card h3 { padding-bottom: .6875rem; font-size: clamp(1.1875rem, 3vw, 1.4375rem); line-height: 1.2; }
.edition-facts { display: grid; margin: 0; }
.edition-facts > div { display: grid; align-content: start; gap: .125rem; padding-block: .5625rem; border-top: 1px solid var(--line); }
.edition-facts dt { color: var(--muted); font-size: .8125rem; font-weight: 650; }
.edition-facts dd { margin: 0; }
.edition-card .button {
  justify-self: start;
  align-self: end;
  margin-top: .625rem;
  padding: .5rem .8125rem;
  border-radius: .5625rem;
  box-shadow: none;
  font-size: .875rem;
}
@media (min-width: 721px) {
  @supports (grid-template-rows: subgrid) {
    .edition-grid { row-gap: 0; }
    .edition-card { grid-row: span 5; grid-template-rows: subgrid; }
    .edition-facts { grid-row: span 3; grid-template-rows: subgrid; }
  }
}
.store-footer { background: #f2f5fa; border-top: 1px solid var(--line); margin-top: auto; color: var(--muted); }
.store-footer a { color: #3d4c63; text-decoration: underline; text-decoration-color: #7d8ba0; }
.store-footer a:hover, .store-footer a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.footer-row { min-height: 124px; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding-block: 1rem; }
.footer-row strong { color: var(--ink); }
.footer-row p { font-size: .91rem; }
.catalogue-search { margin: 1.45rem 0 .8rem; }
.catalogue-bundles {
  margin-top: clamp(2rem, 4vw, 3.75rem);
  padding: clamp(1.05rem, 3.5vw, 2.8rem);
  border-radius: 1.1rem;
  background: linear-gradient(125deg, #192e60, #284e96);
  color: #fff;
  box-shadow: var(--surface-shadow);
}
.catalogue-bundles h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); line-height: 1.1; letter-spacing: -.035em; }
.catalogue-bundles > p { margin-top: .45rem; color: #e0eaff; }
.catalogue-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: clamp(.55rem, 1.4vw, .9rem);
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.catalogue-bundle-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: start;
  gap: .28rem;
  padding: clamp(.7rem, 1.5vw, 1.05rem);
  border-radius: .75rem;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
}
.catalogue-bundle-link:hover, .catalogue-bundle-link:focus-visible { background: #f0f5ff; color: var(--ink); }
.catalogue-bundle-link:focus-visible { outline-color: #fff; }
.catalogue-bundle-name { font-size: .95rem; line-height: 1.3; }
.catalogue-bundle-terms { width: 100%; margin: .35rem 0 .15rem; font-size: .95rem; }
.catalogue-bundle-terms div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .35rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
.catalogue-bundle-terms dd { margin: 0 0 0 auto; text-align: end; overflow-wrap: anywhere; }
.catalogue-bundle-action { margin-top: auto; padding-top: .55rem; color: var(--green-strong); font-size: .86rem; font-weight: 750; }
.catalogue-bundle-link:hover .catalogue-bundle-action { text-decoration: underline; }
.row { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.45rem; align-items: stretch; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--surface-shadow); }
.card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.module-cover, .tile-image { height: clamp(126px, 12vw, 172px); }
.tile-image { display: grid; align-content: center; justify-items: center; background: #e8eeff; color: #3d56b1; }
.tile-image span { font: 400 3.2rem 'Instrument Serif', Georgia, serif; letter-spacing: -.03em; }
.card:nth-child(3n+2) .tile-image { background: #f5e8d7; color: #82552b; }
.card:nth-child(3n+3) .tile-image { background: #e9f5f1; color: #246b58; }
.card-body, .panel { padding: clamp(1rem, 2vw, 1.4rem); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .72rem; }
.card-body > p { flex: 1; color: var(--muted); }
.card .pill { align-self: flex-start; }
.card .offer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.card .offer-actions > * { min-width: 0; }
.card .offer-actions > a:last-child:not(.button) { grid-column: 1 / -1; padding-block: .35rem; text-align: center; }
.price-row { display: flex; align-items: center; gap: .55rem .8rem; flex-wrap: wrap; }
.price { font-size: 1.28rem; font-weight: 770; }
.term { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }
.note, .error { padding: .8rem 1rem; border-radius: .55rem; background: var(--pale); }
.error { background: #fff0ed; color: var(--danger); }
.status-slot:empty { display: none; }
[data-cart-feedback]:empty { display: block; padding: 0; }
[data-cart-feedback]:not(:empty) { margin-top: .65rem; font-size: .88rem; }
.stack { display: grid; gap: .95rem; }
.flow { display: grid; gap: 1.3rem; margin-top: 1.25rem; }
.details-layout, .cart-layout { display: grid; gap: 1.4rem; align-items: start; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); }
.details-layout > aside { position: sticky; top: 5.6rem; }
.details-layout h2 { font: 780 clamp(1.7rem, 3vw, 2.35rem)/1.08 'DM Sans', 'Segoe UI', sans-serif; letter-spacing: -.035em; }
.cart-edition { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.5rem; }
.cart-edition span { display: block; color: var(--muted); font-size: .85rem; }
.cart-edition h2 { margin-top: .15rem; font-family: inherit; font-size: 1.25rem; font-weight: 750; line-height: 1.2; }
.detail-hero .section { padding-block: clamp(1.8rem, 3.5vw, 3rem); }
.detail-hero h1 { max-width: 18ch; }
.detail-hero .intro { font-size: 1.13rem; }
.crumb { display: inline-block; margin-bottom: 1rem; }
.feature-list { padding-left: 1.3rem; }
.feature-list li { margin-bottom: .45rem; }
.offer-panel { background: var(--pale); color: var(--green); border-radius: .8rem; padding: 1.2rem; }
.offer-panel a:not(.button) { font-weight: 650; }
.receipt { max-width: 880px; }
.receipt-customer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem 1rem; margin: 0; }
.receipt-customer dt { color: var(--muted); font-size: .85rem; }
.receipt-customer dd { margin: .12rem 0 0; font-weight: 650; white-space: pre-line; overflow-wrap: anywhere; }
.receipt-line { display: flex; align-items: start; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding: .75rem 0; overflow-wrap: anywhere; }
.receipt-line .amount { white-space: nowrap; }
.cart-item > div:first-child { min-width: 0; }
.cart-item-actions { display: flex; flex: none; align-items: center; gap: .35rem .8rem; white-space: nowrap; }
.cart-item-rate { font-variant-numeric: tabular-nums; }
.receipt-item-heading { margin-bottom: .45rem; }
.original-price { color: var(--muted); }
.bundle-savings { padding: .5rem .65rem; border-radius: .45rem; background: #e7f3e9; color: #20573b; font-weight: 650; }
.bundle-card { position: relative; }
.bundle-card[id] { scroll-margin-top: 7rem; }
.bundle-card.targeted-bundle { outline: 2px solid var(--green-strong); outline-offset: 4px; }
.bundle-card.recommended { border-color: rgba(47, 88, 207, .58); box-shadow: 0 22px 50px rgba(47, 88, 207, .19); }
.bundle-badge { align-self: flex-start; padding: .3rem .65rem; border-radius: 99px; background: var(--green); color: white; font-size: .76rem; font-weight: 750; }
.bundle-card-saving { color: #16764c !important; font-weight: 750; }
.delete-bundle { color: var(--danger); border-color: #dbb4b7; }
.delete-bundle:hover { color: var(--danger); background: #fff0ed; }
.total-line { border-top: 1px solid var(--line); padding-top: .7rem; font-weight: 760; }
.checkout-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: 0; padding: 0; list-style: none; }
.checkout-progress li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.checkout-progress li::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.checkout-progress li:last-child::after { display: none; }
.checkout-progress span { display: inline-grid; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: white; }
.checkout-progress .active { color: var(--green-strong); }
.checkout-progress .active span, .checkout-progress .complete span { border-color: var(--green); background: var(--green); color: white; }
.checkout-progress .complete::after { background: var(--green); }
.checkout-gate, .account-gate { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--pale); }
.checkout-gate p, .account-gate p { color: var(--muted); }
.enquiry-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.enquiry-summary span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .82rem; }
.enquiry-summary strong { display: block; font-size: 1.15rem; }
.order-status-banner { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; padding: .65rem .85rem; border: 1px solid #b9e1cc; border-radius: .8rem; background: #edf9f2; }
.order-status-banner > div { display: grid; gap: .1rem; }
.order-status-banner span:not(.status-dot) { color: var(--muted); font-size: .75rem; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #1b8a55; box-shadow: 0 0 0 4px rgba(27, 138, 85, .12); }
.order-status-pill { display: inline-flex; padding: .25rem .55rem; border-radius: 99px; background: var(--pale); color: var(--green-strong); font-size: .78rem; font-weight: 700; }
label, legend { font-weight: 650; }
label { display: grid; gap: .3rem; }
input, textarea, select {
  width: 100%; min-width: 0; min-height: 42px; padding: .52rem .62rem; border: 1px solid var(--line-strong);
  border-radius: .7rem; background: white; color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; min-height: 86px; }
select.term-select { width: auto; min-height: 36px; font-size: .85rem; padding-block: .2rem; }
input[type=checkbox] { width: 1.08rem; min-height: 0; accent-color: var(--green); }
.check-label { display: flex; gap: .55rem; align-items: center; }
fieldset { margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; min-width: 0; }
dialog { color: var(--ink); padding: 1.4rem; width: min(560px, calc(100% - 2rem)); max-height: 92dvh; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-strong); box-shadow: 0 28px 70px rgba(31, 39, 65, .24); }
dialog::backdrop { background: rgba(31, 39, 65, .58); backdrop-filter: blur(3px); }
.store-account { --success: #24654a; width: min(540px, calc(100% - 1.5rem)); padding: clamp(1rem, 4vw, 1.6rem); }
.store-account h2 { padding-right: 3rem; font: 780 2rem/1.08 'DM Sans', 'Segoe UI', sans-serif; letter-spacing: -.035em; }
.account-close { position: absolute; inset: .9rem .9rem auto auto; min-width: 36px; font-size: 1.1rem; }
.account-actions { align-items: center; flex-wrap: wrap; }
.account-fields { border: 0; padding: 0; }
.account-fields .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skip-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.account-fields .policy-copy { max-height: 12rem; overflow: auto; margin-top: .4rem; }
.store-account[data-mode=signin] [data-account-view=signup],
.store-account[data-mode=signup] [data-account-view=signin] { display: none; }
.store-account[data-mode=signup] #signupRequestSubmitBtn { position: sticky; bottom: -.25rem; z-index: 1; box-shadow: 0 -10px 20px rgba(255, 255, 255, .92), 0 7px 18px rgba(47, 88, 207, .16); }
body:has(.store-account[open]) { overflow: hidden; }
.module-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; max-height: 45vh; overflow: auto; }
.module-picker .check-label { align-items: start; overflow-wrap: anywhere; }
.module-picker input { flex: none; margin-top: .28rem; }
.picker-in-cart { display: block; width: fit-content; margin-top: .15rem; padding: .05rem .45rem; border-radius: 99px; background: var(--pale); color: var(--muted); font-weight: 650; }
.admin-shell { min-height: 100vh; background: transparent; }
.admin-layout { padding-block: 1.7rem 3rem; display: grid; grid-template-columns: 218px minmax(0,1fr); align-items: start; gap: 1.4rem; }
.admin-sidebar { background: linear-gradient(160deg, #2146ac, #2f78cf); color: white; border-radius: 1rem; padding: 1rem; box-shadow: var(--surface-shadow); }
.admin-sidebar strong { display: block; font-size: .86rem; color: #d4e4d8; padding: .4rem .6rem .9rem; }
.admin-sidebar nav { display: grid; gap: .28rem; }
.admin-sidebar a { display: block; color: white; padding: .55rem .62rem; border-radius: .4rem; font-weight: 650; }
.admin-sidebar a:hover, .admin-sidebar a[aria-current=page] { background: rgba(255, 255, 255, .17); }
.admin-layout h1 { font-size: clamp(2.55rem, 5vw, 3.85rem); }
.admin-layout h2 { font-family: inherit; font-size: 1.35rem; font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .93rem; }
th, td { padding: .64rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: #f5f7ff; font-size: .84rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.form-grid .wide { grid-column: 1 / -1; }
.term-line, .action-line { display: grid; grid-template-columns: minmax(70px,1fr) minmax(100px,1.5fr) auto; gap: .48rem; align-items: end; margin-bottom: .45rem; }
.action-line { grid-template-columns: minmax(100px,1fr) minmax(120px,1.5fr) minmax(80px,.6fr) auto; }
.sign-in-body { min-height: 100vh; display: grid; place-items: center; background: var(--canvas); padding: 1rem; }
.sign-in { width: min(100%, 510px); padding: clamp(1.3rem, 5vw, 2.4rem); display: grid; gap: .9rem; }
.sign-in h1 { font-size: clamp(2.5rem, 6vw, 3.4rem); }
.sign-in form { display: grid; gap: .8rem; }
@media (max-width: 1030px) {
  .header-row { flex-wrap: wrap; padding-block: .6rem; }
  .header-row nav { order: 3; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { gap: .55rem; }
  .header-actions { gap: .56rem; flex-wrap: wrap; }
  .brand img { width: 115px; }
  .hero-layout, .details-layout, .cart-layout, .admin-layout, .edition-grid, .form-grid, .account-fields .form-grid, .enquiry-summary { grid-template-columns: 1fr; }
  .edition-card .button { justify-self: stretch; }
  .cards { grid-template-columns: 1fr; }
  .details-layout > aside { position: static; }
  .checkout-progress { grid-template-columns: repeat(2, 1fr); row-gap: .7rem; }
  .checkout-progress li:nth-child(2)::after { display: none; }
  .hero img { height: 235px; }
  .admin-layout { gap: 1rem; }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: .3rem; }
  .admin-sidebar strong { display: none; }
  .action-line { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 470px) {
  .cards { grid-template-columns: 1fr; }
  .cart-item-actions { flex-direction: column; align-items: flex-end; }
  .header-actions > a, .header-row nav a { font-size: .82rem; }
  .header-actions { width: 100%; }
  .header-actions > a { font-size: .78rem; }
  .header-actions .compact { margin-inline-start: auto; }
  .module-picker { grid-template-columns: 1fr; }
  .admin-sidebar { padding: .55rem; }
}

@media (max-width: 720px) {
  #editions { scroll-margin-top: 7rem; }
  .storefront-header .header-row { gap: .3rem .75rem; padding-block: .35rem .55rem; }
  .storefront-header .brand img { width: 108px; }
  .storefront-header .header-actions { width: 100%; min-width: 0; justify-content: flex-end; gap: .55rem; }
  .storefront-header .header-actions:has(.storefront-account-menu:not([hidden])) { flex-wrap: nowrap; }
  .storefront-header .header-actions > a { font-size: .82rem; }
  .storefront-header .header-actions .compact { padding-inline: .55rem; }
  .storefront-account-menu summary { max-width: min(11rem, 100%); font-size: .82rem; }
  .storefront-account { min-width: 8.15rem; }
}
@media (max-width: 360px) {
  .storefront-header .header-actions:has(.storefront-account-menu:not([hidden])) { column-gap: .35rem; }
  .storefront-header .storefront-account:not([aria-haspopup]) { min-width: 0; }
}

.promo-section { padding-block: clamp(12px, 2vw, 24px); }
.store-promo { padding: clamp(18px, 3vw, 32px); border-radius: 20px; background: linear-gradient(135deg, #1f2f63, #365fc4 65%, #246b58); color: #f7f3e8; box-shadow: var(--surface-shadow); }
.store-promo h2, .store-promo p { color: inherit; margin: 0; overflow-wrap: anywhere; }
.store-promo h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.store-promo.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: 24px; align-items: center; }
.promo-image { display: block; width: 100%; height: clamp(125px, 18vw, 190px); border-radius: 12px; object-fit: cover; }
.module-cover { width: 100%; display: block; object-fit: cover; }
.detail-cover { width: 100%; height: auto; max-height: 380px; display: block; object-fit: contain; border-radius: 12px; }
.media-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.sample-row { display: grid; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sample-list { display: grid; gap: 10px; padding-inline-start: 22px; margin: 0; overflow-wrap: anywhere; }
.video-demo { border: 0; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
.coupon-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.coupon-form label { min-width: 0; flex: 1 1 160px; }
@media (max-width: 640px) {
  .store-promo.has-image { grid-template-columns: 1fr; }
}

.coupon-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .35rem 1rem; padding-block: .5rem; }
.coupon-modules label { white-space: normal; }
.coupon-preview { border: 1px solid var(--line); border-radius: .75rem; padding: .9rem; }
.coupon-preview > summary, #coupon-editor fieldset > details > summary { cursor: pointer; font-weight: 700; }
.coupon-preview > .stack { padding-top: .9rem; }

#information-links { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
#information-links[hidden] { display: none; }
.information-shell { max-width: 62rem; }
.store-payment .payment-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; color: var(--muted); }
.store-payment .payment-amount strong { color: var(--ink); font-size: 1.24rem; }
.payment-options legend { margin-bottom: .45rem; }
.payment-options .check-label { gap: .4rem; padding: .3rem .55rem; min-height: 44px; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface-strong); }
.payment-options input[type="radio"] { flex: none; width: 1rem; height: 1rem; min-height: 0; padding: 0; accent-color: var(--green); }
.payment-options .check-label:has(:checked) { color: var(--green-strong); border-color: var(--green); background: var(--pale); }
.payment-method { display: grid; justify-items: start; gap: .65rem; }
.payment-method .receipt-customer { width: 100%; }
.payment-upi { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.payment-qr { display: block; width: min(170px, 100%); aspect-ratio: 1; object-fit: contain; padding: .45rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.information-page { max-width: 58rem; font-size: 1.02rem; line-height: 1.72; }
.review-label { width: fit-content; padding: .35rem .65rem; border-radius: 99px; background: #fff5de; color: #7a5517; font-size: .78rem; font-weight: 750; }
.policy-copy, .info-contact { white-space: pre-line; overflow-wrap: anywhere; }
.info-contact { font-style: normal; }
.policy-editor { min-height: 10rem; }
