/* ==========================================================================
   青云洲 CyanArk · Studio Atelier Editorial Design System
   Shared by Customer Center (/account/*) and Commerce Administration
   Strict CSP Compliant · Zero External Fonts · Bespoke Architectural UI
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-deep: #eae4d7;
  --sheet: #fbf9f4;
  --sheet-elevated: #ffffff;
  --ink: #142220;
  --ink-soft: #263835;
  --muted: #52635e;
  --rule: #c8cfc6;
  --rule-strong: #9aa69c;
  --teal: #0f5e54;
  --teal-dark: #0a423b;
  --teal-tint: #e3ede9;
  --red: #9e3b24;
  --red-tint: #f9ebe6;
  --gold: #8c6722;
  --gold-tint: #f8f0dc;
  --soft: #e6ebe2;
  --navy: #142220;
  --mint: #d7e8d4;
  --line: #c8cfc6;
  --white: #fbf9f4;
  --body-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --heading-font: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", SimSun, Georgia, serif;
  --mono-font: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 2px 8px rgba(20, 34, 32, 0.04);
  --shadow-md: 0 10px 28px rgba(20, 34, 32, 0.06);
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(15, 94, 84, 0.06), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(158, 59, 36, 0.04), transparent 32%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--red);
}

button, input, select, textarea {
  font: inherit;
  font-family: var(--body-font);
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}

h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  font-family: var(--body-font);
  font-weight: 650;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

p, .muted, small, .intro, .support, footer, .meta {
  color: var(--muted);
}

small {
  font-size: 12px;
}

h1, h2, h3, p, span, a, label {
  overflow-wrap: anywhere;
}

/* Top Atelier Status Bar */
.topline {
  background: var(--ink);
  color: #d6dfd9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 32px;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topline #mode {
  font-family: var(--mono-font);
  color: var(--mint);
  font-size: 11px;
}

/* Main Architectural Split Shell */
.layout {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: calc(100vh - 38px);
}

/* Left Studio Rail */
.rail {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(251, 249, 244, 0.72) 0%, rgba(234, 228, 215, 0.45) 100%);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-decoration: none;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}

.brand:hover {
  color: var(--teal);
}

.brand .mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--sheet);
  width: 38px;
  height: 40px;
  border-radius: 4px;
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 3px 3px 0 var(--teal);
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 6px;
}

.rail nav {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.rail nav a {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-radius: 4px;
  border-left: 3px solid transparent;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rail nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.rail nav a.active,
.admin-nav a.active {
  background: var(--sheet-elevated);
  color: var(--ink);
  border-left-color: var(--red);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.rail nav span {
  font-family: var(--mono-font);
  font-size: 10.5px;
  color: var(--muted);
  opacity: 0.7;
}

.rail nav a.active span {
  color: var(--red);
  opacity: 1;
}

.rail-foot {
  font-size: 11.5px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.rail-foot p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.rail-foot a {
  font-weight: 600;
  text-decoration: none;
}

/* Content Area */
.content {
  min-width: 0;
  padding: 0 44px 36px;
  display: flex;
  flex-direction: column;
}

.pagebar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 32px;
  padding: 12px 0;
  font-size: 13px;
}

.pagebar #crumb {
  font-family: var(--mono-font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.pagebar > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.pagebar > a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-tint);
}

.pagebar #identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pagebar #identity a {
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
}

.pagebar #identity a:last-child {
  background: var(--teal);
  color: #fff;
}

.pagebar #identity a:last-child:hover {
  background: var(--ink);
}

.pagebar button {
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 12.5px;
  min-height: 34px;
}

.pagebar button:hover {
  background: var(--red-tint);
  border-color: var(--red);
  color: var(--red);
}

/* Editorial Headings & Kickers */
.kicker {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--red);
}

.lead {
  max-width: 820px;
  font-size: 15.5px;
  margin-bottom: 26px;
  color: var(--muted);
}

/* Panels & Cards */
.panel, .item, .card {
  border: 1px solid var(--rule);
  background: var(--sheet);
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 22px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel.dark {
  background: linear-gradient(135deg, #142220 0%, #1c3330 100%);
  color: var(--sheet);
  border-color: #142220;
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.panel.dark h1,
.panel.dark h2,
.panel.dark h3 {
  color: #ffffff;
}

.panel.dark p {
  color: #c6d4cf;
}

.panel.dark .kicker {
  color: var(--mint);
}

.panel.dark .kicker::before {
  background: var(--mint);
}

.panel.dark .tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
  border-color: rgba(255, 255, 255, 0.24);
}

/* Grid Systems */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid .panel {
  margin: 0;
}

.metric {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--teal);
}

.metric b {
  font-family: var(--heading-font);
  font-size: 36px;
  color: var(--teal);
  display: block;
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* Buttons & Controls */
.button,
button,
button.primary {
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: var(--teal);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.button:hover,
button:hover:not(:disabled),
button.primary:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.button.secondary,
button.secondary {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  min-height: 44px;
  font-size: 14px;
}

.button.secondary:hover,
button.secondary:hover:not(:disabled) {
  background: var(--soft);
  color: var(--ink);
}

.panel.dark .button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.panel.dark .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button.small,
button.small {
  font-size: 12.5px;
  min-height: 36px;
  padding: 6px 14px;
}

.button.danger,
button.danger {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

/* Status Tags & Notices */
.tag {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--teal-tint);
  color: var(--teal);
  white-space: normal;
  overflow-wrap: anywhere;
}

.tag.warn {
  background: var(--gold-tint);
  border-color: #d6be86;
  color: var(--gold);
}

.notice {
  padding: 15px 18px;
  border: 1px solid #d6be86;
  border-left: 4px solid var(--gold);
  background: var(--gold-tint);
  border-radius: 4px;
  font-size: 13.5px;
  color: #634812;
  margin-bottom: 22px;
  white-space: pre-wrap;
}

.notice.error {
  color: #7d2719;
  background: var(--red-tint);
  border-color: #deb0a3;
  border-left-color: var(--red);
}

.empty {
  padding: 32px;
  border: 1px dashed var(--rule-strong);
  border-radius: 6px;
  background: rgba(251, 249, 244, 0.6);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0;
}

/* Forms & Inputs */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.field input,
.field textarea,
.field select,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--sheet-elevated);
  border-radius: 4px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 94, 84, 0.12);
}

textarea,
.field textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 12.5px;
}

.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.formwrap {
  max-width: 720px;
}

.formwrap .panel {
  padding: 30px;
}

.formwrap .actions {
  margin-top: 24px;
}

.help {
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Lists & Items */
.list {
  display: grid;
  gap: 15px;
}

.item {
  padding: 22px 24px;
}

.item h3 {
  margin-bottom: 6px;
}

.item .meta {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 14px;
}

.amount {
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.code {
  font-family: var(--mono-font);
  font-size: 12px;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 3px;
}

.spacer {
  height: 22px;
}

.sectiontitle {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.95;
}

.qr {
  width: 240px;
  max-width: 100%;
  background: var(--sheet-elevated);
  padding: 15px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

/* Tables */
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--sheet-elevated);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
  min-width: 600px;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 650;
}

td {
  overflow-wrap: anywhere;
  max-width: 320px;
}

.admin-nav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.admin-nav a {
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

/* Step List */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.step-list > div {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.step-list strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.step-list small {
  display: block;
  margin-top: 5px;
}

.step-n {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.wide {
  grid-column: 1 / -1;
}

.actions {
  margin-top: 22px;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}

.payment-view {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 22px;
}

.payment-view:empty {
  display: none;
}

.key-panel,
.action-panel {
  border: 2px solid var(--teal);
  background: var(--soft);
}

.key-panel textarea {
  min-height: 95px;
  overflow-wrap: anywhere;
  background: var(--sheet-elevated);
}

.key-panel .help {
  max-width: 760px;
}

.notice-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
}

.notice-choice input {
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}

.notice-choice input:disabled {
  cursor: wait;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.api-scopes {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px;
  min-inline-size: 0;
}

.api-scopes legend {
  font-size: 13px;
  font-weight: 650;
  max-width: 100%;
}

.api-scopes .check {
  margin: 7px 0;
  flex-wrap: wrap;
  align-items: center;
}

.api-scopes .check input {
  min-height: 0;
  padding: 0;
  margin-top: 0;
  accent-color: var(--teal);
}

.api-scopes .check .code {
  font-size: 11px;
}

#api-client-editor .field {
  margin-bottom: 16px;
}

#api-client-editor .fields .field {
  margin-bottom: 0;
}

.sensitive-output {
  display: inline-block;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: var(--sheet-elevated);
  font: 700 clamp(20px, 4vw, 28px)/1.35 var(--mono-font);
  color: var(--ink);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Atelier Catalog & Storefront Enhancements (Plans & Login Showcase)
   ========================================================================== */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
}

.catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-pill {
  appearance: none;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 34px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-pill:hover:not(:disabled) {
  background: var(--teal-tint);
  border-color: var(--teal);
  color: var(--teal);
}

.catalog-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.catalog-search {
  flex: 1 1 220px;
  max-width: 320px;
}

.catalog-search input {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-top: 3px solid var(--ink);
  background: var(--sheet-elevated);
}

.offer-card.is-direct {
  border-top-color: var(--teal);
}

.offer-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft);
}

.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.offer-badge {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--ink-soft);
}

.offer-badge.direct {
  background: var(--teal-tint);
  color: var(--teal);
}

.offer-badge.book {
  background: var(--gold-tint);
  color: var(--gold);
}

.offer-price-box {
  text-align: right;
  flex-shrink: 0;
}

.offer-price {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.offer-unit {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.offer-specs {
  display: grid;
  gap: 7px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 4px;
  border: 1px solid var(--rule);
  font-size: 12.5px;
}

.offer-spec-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  line-height: 1.55;
}

.offer-spec-key {
  font-weight: 700;
  color: var(--ink);
}

.offer-spec-val {
  color: var(--muted);
}

.offer-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

.assurance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.assurance-item {
  padding: 14px 16px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.assurance-item strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}

.assurance-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* Cart & Checkout */
.cart-lines {
  display: grid;
  gap: 10px;
  margin-block: 14px;
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-block: 10px;
  overflow-wrap: anywhere;
}

.cart-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-actions button {
  min-width: 44px;
  min-height: 44px;
}

.cart-quantity {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.cart-add-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.cart-add-quantity input {
  width: 78px;
  min-height: 36px;
  padding: 5px 8px;
}

#checkout-quote {
  padding: 16px;
  margin-block: 14px;
  border: 1px solid var(--teal);
  background: var(--teal-tint);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

#checkout-quote p {
  margin-block: 6px;
  color: var(--ink);
}

.checkout-details, #details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Footer & Compliance */
footer {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: auto;
  line-height: 1.9;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.icp-registration {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.skip {
  position: absolute;
  left: -10000px;
}

.skip:focus {
  left: 20px;
  top: 10px;
  background: var(--sheet-elevated);
  color: var(--ink);
  padding: 12px 16px;
  z-index: 100;
  border: 2px solid var(--red);
}

/* Independent Administration Header Compatibility */
body > header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

body > header strong {
  font-family: var(--heading-font);
  font-size: 23px;
}

body > header span {
  color: var(--muted);
}

.detail {
  background: var(--soft);
  border-radius: 4px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .rail {
    padding: 28px 18px;
  }
  .content {
    padding: 0 28px 24px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid .panel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .assurance-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topline {
    padding: 8px 16px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .layout {
    display: block;
  }
  .rail {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .brand {
    font-size: 20px;
    padding-bottom: 14px;
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    margin-top: 14px;
    gap: 8px;
    padding-bottom: 4px;
  }
  .rail nav a {
    white-space: nowrap;
    padding: 8px 12px;
    gap: 8px;
    font-size: 12.5px;
    flex-shrink: 0;
    min-height: 40px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .rail nav a.active {
    border-bottom-color: var(--red);
  }
  .rail nav span,
  .rail-foot {
    display: none;
  }
  .content {
    padding: 0 18px 24px;
  }
  .pagebar {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    padding-block: 12px;
    margin-bottom: 24px;
    font-size: 12px;
  }
  .pagebar #identity {
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel, .formwrap .panel, .card {
    padding: 20px;
  }
  .panel.dark {
    padding: 24px;
  }
  .grid, .grid.two, .assurance-strip {
    grid-template-columns: 1fr;
  }
  .grid .panel:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .split {
    flex-direction: column;
    gap: 10px;
  }
  .metric b {
    font-size: 28px;
  }
  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .step-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 19px;
  }
  .amount {
    font-size: 21px;
  }
  .cart-line {
    display: grid;
  }
  .cart-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, html {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
