/* STIPE Shared UI 1.0.1. Load after legacy CSS; opt in with .st-ui. */
/* The host container owns the background. Cards and dialogs own their surfaces. */
.st-ui { color-scheme: dark; color: var(--st-text); font: var(--st-text-base)/1.6 var(--st-font); isolation: isolate; min-width: 0; text-align: left; }
.st-ui *, .st-ui *::before, .st-ui *::after { box-sizing: border-box; }
.st-ui [hidden] { display: none !important; }
/* Match the specificity of the existing body.dark heading rules. */
body .st-ui h1, body .st-ui h2, body .st-ui h3, body .st-ui p, body .st-ui label, body .st-ui small, body .st-ui strong { font-family: inherit; color: inherit; text-shadow: none; }
.st-ui h1, .st-ui h2, .st-ui h3, .st-ui p { margin: 0; }
body .st-ui h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.04em; font-weight: 650; }
body .st-ui h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
body .st-ui h3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
.st-ui p { font-size: inherit; line-height: inherit; }
.st-ui strong { font-weight: 600; }
.st-ui small { font-size: var(--st-text-xs); }
.st-ui button, .st-ui input, .st-ui select, .st-ui textarea { font: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; }
.st-ui a { color: var(--st-orange); text-decoration: underline; text-underline-offset: 3px; }
.st-ui a:hover { color: var(--st-orange-hover); }
/* The legacy theme suppresses link outlines with !important; restore focus locally. */
.st-ui :focus-visible { outline: 2px solid var(--st-focus) !important; outline-offset: 4px; }
.st-ui .st-container { width: 100%; max-width: 1296px; padding: var(--st-space-6); margin-inline: auto; }
.st-ui .st-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--st-space-5); min-width: 0; }
.st-ui .st-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-3); }
.st-ui .st-between { justify-content: space-between; }
.st-ui .st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--st-space-5); }
.st-ui .st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--st-space-6); align-items: start; }
.st-ui .st-sticky { position: sticky; top: var(--st-sticky-top); max-height: calc(100dvh - var(--st-sticky-top) - 24px); overflow-y: auto; }
.st-ui .st-muted { color: var(--st-muted); }
.st-ui .st-eyebrow { font-size: var(--st-text-xs); color: var(--st-orange); letter-spacing: .12em; font-weight: 600; text-transform: uppercase; }
.st-ui .st-lead { color: var(--st-muted); font-size: var(--st-text-lg); max-width: 64ch; margin-top: var(--st-space-3); }
.st-ui .st-section-head { display: flex; flex-wrap: wrap; gap: var(--st-space-4); align-items: center; justify-content: space-between; }
.st-ui .st-section-head .st-eyebrow { margin-bottom: var(--st-space-2); }
.st-ui .st-divider { border: 0; border-top: 1px solid var(--st-line); margin: var(--st-space-5) 0; }
.st-ui .st-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; }
.st-ui .st-icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; color: currentColor; vertical-align: middle; fill: none; }
.st-ui .st-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--st-space-2); min-height: 44px; padding: 10px 18px; border: 1px solid var(--st-control-line); border-radius: var(--st-radius-sm); background: transparent; color: var(--st-text); font: 600 var(--st-text-base)/1.4 var(--st-font); text-align: center; text-decoration: none; cursor: pointer; box-shadow: none; transition: background var(--st-duration), border-color var(--st-duration), box-shadow var(--st-duration); }
.st-ui .st-btn:hover { color: var(--st-text); background: var(--st-surface-raised); border-color: var(--st-orange); text-decoration: none; }
.st-ui .st-btn--primary { background: var(--st-orange); border-color: var(--st-orange); color: var(--st-orange-ink); }
.st-ui .st-btn--primary:hover { background: var(--st-orange-hover); border-color: var(--st-orange-hover); color: var(--st-orange-ink); box-shadow: var(--st-action-shadow); }
.st-ui .st-btn--quiet { border-color: transparent; color: var(--st-orange); }
.st-ui .st-btn--danger { color: var(--st-danger); border-color: var(--st-danger); background: var(--st-danger-bg); }
.st-ui .st-btn--danger:hover { color: var(--st-danger); border-color: var(--st-danger); background: var(--st-danger-hover); }
.st-ui .st-btn--full { width: 100%; }
.st-ui .st-btn:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.st-ui .st-btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: st-ui-spin 800ms linear infinite; }
.st-ui .st-panel, .st-ui .st-card { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); padding: var(--st-space-5); min-width: 0; }
.st-ui .st-card { display: flex; flex-direction: column; align-items: start; gap: var(--st-space-3); }
.st-ui .st-card > .st-btn:last-child { margin-top: auto; }
.st-ui .st-card--tier { border-color: var(--st-tier-line); background: linear-gradient(145deg, var(--st-tier-surface), var(--st-tier-deep) 75%); }
.st-ui .st-icon-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--st-radius); background: var(--st-orange-soft); color: var(--st-orange); }
.st-ui .st-card__art { width: 90px; height: 90px; object-fit: contain; align-self: center; }
.st-ui .st-world-card { position: relative; overflow: hidden; isolation: isolate; min-height: 330px; justify-content: flex-end; }
.st-ui .st-world-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--st-world-shade), url("art/world.webp") center top/auto 100% no-repeat; opacity: .6; }
.st-ui .st-choice { display: block; position: relative; cursor: pointer; margin: 0; font-weight: 400; min-width: 0; }
.st-ui .st-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-ui .st-choice__body { display: flex; align-items: center; gap: var(--st-space-4); padding: 20px; min-height: 116px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); position: relative; overflow: hidden; }
.st-ui .st-choice__body strong, .st-ui .st-choice__body small { display: block; }
.st-ui .st-choice__body small { color: var(--st-muted); margin-top: var(--st-space-1); }
.st-ui .st-choice__body::after { content: ""; display: block; width: 18px; height: 18px; margin-left: auto; border: 1px solid var(--st-control-line); border-radius: 50%; flex-shrink: 0; }
.st-ui .st-choice > input:checked + .st-choice__body { border-color: var(--st-tier); background: linear-gradient(135deg, var(--st-tier-surface), var(--st-tier-deep)); animation: st-ui-selection 3.2s ease-in-out infinite; }
.st-ui .st-choice > input:checked + .st-choice__body::after { border: 5px solid var(--st-tier); }
.st-ui .st-choice > input:focus-visible + .st-choice__body { outline: 2px solid var(--st-focus); outline-offset: 4px; }
.st-ui .st-choice > input:disabled + .st-choice__body { opacity: .5; cursor: not-allowed; }
.st-ui .st-badge-art { display: inline-block; width: 58px; height: 64px; background: center/contain no-repeat; flex-shrink: 0; }
.st-ui .st-badge-art--budget { background-image: url("art/budget-badge.webp"); }
.st-ui .st-badge-art--premium { background-image: url("art/premium-badge.webp"); }
.st-ui .st-material { display: inline-block; width: 80px; height: 80px; background-image: url("art/materials.webp"); background-size: 400% 400%; background-position: var(--st-art-x) var(--st-art-y-budget); background-repeat: no-repeat; flex-shrink: 0; }
.st-ui .st-material[data-st-art="premium"] { height: 90px; background-image: url("art/premium-materials.webp"); background-size: 400% 355.555556%; background-position: var(--st-art-x) var(--st-art-y-premium); }
.st-ui .st-field { display: grid; gap: var(--st-space-2); min-width: 0; }
.st-ui .st-field > label { margin: 0; font-size: var(--st-text-sm); font-weight: 500; }
.st-ui .st-input { display: block; width: 100%; min-height: 44px; border: 1px solid var(--st-control-line); background: var(--st-input); color: var(--st-text); border-radius: var(--st-radius-sm); padding: 10px 12px; box-shadow: none; }
.st-ui textarea.st-input { resize: vertical; min-height: 110px; }
.st-ui .st-input::placeholder { color: var(--st-muted); opacity: 1; }
.st-ui .st-input:focus { border-color: var(--st-orange); }
.st-ui .st-input[aria-invalid="true"] { border-color: var(--st-danger); }
.st-ui .st-input:disabled { opacity: .55; cursor: not-allowed; }
.st-ui .st-help { font-size: var(--st-text-xs); color: var(--st-muted); }
.st-ui .st-error { font-size: var(--st-text-sm); color: var(--st-danger); }
.st-ui .st-check { display: inline-flex; align-items: center; gap: var(--st-space-3); min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.st-ui .st-check > input { width: 18px; height: 18px; margin: 0; accent-color: var(--st-orange); }
.st-ui .st-switch { display: inline-flex; align-items: center; gap: var(--st-space-3); min-height: 44px; position: relative; cursor: pointer; font-weight: 400; margin: 0; }
.st-ui .st-switch > input { position: absolute; left: 0; width: 44px; height: 28px; opacity: 0; }
.st-ui .st-switch__track { width: 42px; height: 24px; padding: 3px; background: var(--st-surface-raised); border: 1px solid var(--st-control-line); border-radius: 20px; pointer-events: none; flex-shrink: 0; }
.st-ui .st-switch__track::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--st-muted); transition: transform var(--st-duration); }
.st-ui .st-switch > input:checked + .st-switch__track { background: var(--st-orange-soft); border-color: var(--st-orange); }
.st-ui .st-switch > input:checked + .st-switch__track::before { background: var(--st-orange); transform: translateX(18px); }
.st-ui .st-switch > input:focus-visible + .st-switch__track { outline: 2px solid var(--st-focus); outline-offset: 4px; }
.st-ui .st-switch > input:disabled ~ span { opacity: .5; }
.st-ui .st-tabs__list { display: flex; flex-wrap: wrap; gap: var(--st-space-2); border-bottom: 1px solid var(--st-line); padding-bottom: var(--st-space-3); margin-bottom: var(--st-space-5); }
.st-ui .st-tab { color: var(--st-muted); background: transparent; border: 1px solid transparent; border-radius: var(--st-radius-sm); font: inherit; min-height: 44px; padding: 10px 16px; cursor: pointer; }
.st-ui .st-tab:hover { color: var(--st-text); }
.st-ui .st-tab[aria-selected="true"] { color: var(--st-orange); background: var(--st-orange-soft); border-color: var(--st-orange); }
.st-ui .st-disclosure { border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-ui .st-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-3); padding: 18px 20px; list-style: none; cursor: pointer; color: var(--st-text); }
.st-ui .st-disclosure > summary::-webkit-details-marker { display: none; }
.st-ui .st-disclosure > summary::after { content: "+"; color: var(--st-orange); font-size: 20px; }
.st-ui .st-disclosure[open] > summary { border-bottom: 1px solid var(--st-line); }
.st-ui .st-disclosure[open] > summary::after { content: "−"; }
.st-ui .st-disclosure__content { padding: 20px; }
.st-ui .st-notice { padding: 16px 18px; border: 1px solid var(--st-control-line); border-radius: var(--st-radius); background: var(--st-surface-raised); color: var(--st-text); }
.st-ui .st-notice--success { border-color: var(--st-success); color: var(--st-success); background: var(--st-success-bg); }
.st-ui .st-notice--warning { border-color: var(--st-warning); color: var(--st-warning); background: var(--st-warning-bg); }
.st-ui .st-notice--danger { border-color: var(--st-danger); color: var(--st-danger); background: var(--st-danger-bg); }
.st-ui .st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--st-control-line); border-radius: 30px; color: var(--st-muted); font-size: var(--st-text-xs); line-height: 1.5; }
.st-ui .st-pill--success { color: var(--st-success); border-color: var(--st-success); }
.st-ui .st-table-wrap { overflow: auto; border: 1px solid var(--st-line); border-radius: var(--st-radius); }
.st-ui .st-table { width: 100%; border-collapse: collapse; background: var(--st-surface); font: inherit; text-align: left; }
.st-ui .st-table th, .st-ui .st-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--st-line); color: var(--st-text); }
.st-ui .st-table th { background: var(--st-surface-raised); color: var(--st-muted); font-size: var(--st-text-xs); font-weight: 500; white-space: nowrap; }
.st-ui .st-table tr:last-child td { border-bottom: 0; }
.st-ui .st-table td .st-btn { white-space: nowrap; }
.st-ui .st-upload { padding: var(--st-space-6); border: 1px dashed var(--st-control-line); border-radius: var(--st-radius); background: var(--st-input); text-align: center; }
.st-ui .st-upload p { margin: var(--st-space-3) 0; }
.st-ui .st-upload input[type="file"] { max-width: 100%; color: var(--st-muted); }
.st-ui .st-upload input[type="file"]::file-selector-button { padding: 10px 14px; margin-right: 12px; border: 1px solid var(--st-orange); border-radius: var(--st-radius-sm); background: var(--st-orange); color: var(--st-orange-ink); font: inherit; cursor: pointer; }
.st-ui .st-upload[data-st-dragover="true"] { border-color: var(--st-orange); background: var(--st-orange-soft); }
.st-ui .st-progress { display: grid; gap: var(--st-space-2); }
.st-ui .st-progress__track { height: 8px; border-radius: 8px; background: var(--st-line); overflow: hidden; }
.st-ui .st-progress__bar { height: 100%; width: 0; background: var(--st-orange); border-radius: inherit; transition: width var(--st-duration); }
.st-ui .st-progress[aria-busy="true"]:not([data-st-determinate]) .st-progress__bar { width: 35%; animation: st-ui-progress 1.5s ease-in-out infinite; }
.st-ui .st-dialog { color: var(--st-text); background: var(--st-surface); border: 1px solid var(--st-control-line); border-radius: var(--st-radius-lg); padding: var(--st-space-5); width: min(560px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; box-shadow: var(--st-shadow); }
.st-ui .st-dialog::backdrop { background: var(--st-backdrop); }
@keyframes st-ui-spin { to { transform: rotate(360deg); } }
@keyframes st-ui-selection { 0%,100% { box-shadow: 0 0 0 1px var(--st-tier-glow), 0 0 12px var(--st-tier-glow); } 50% { box-shadow: 0 0 0 1px var(--st-tier), 0 0 24px var(--st-tier-glow); } }
@keyframes st-ui-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(390%); } }
@media (max-width: 820px) { .st-ui .st-layout { grid-template-columns: 1fr; } .st-ui .st-sticky { position: static; max-height: none; overflow: visible; } }
@media (max-width: 540px) { .st-ui .st-container { padding: 24px 16px; } .st-ui .st-panel, .st-ui .st-card { padding: 20px; } .st-ui .st-tabs__list { gap: 4px; } .st-ui .st-tab { padding-inline: 10px; } .st-ui .st-choice__body { padding: 16px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .st-ui *, .st-ui *::before, .st-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Named artwork coordinates from the approved checkout; names have no pricing meaning. */
.st-ui .st-material[data-st-material="coal"] { --st-art-x: 0.0%; --st-art-y-budget: 8.5%; --st-art-y-premium: 9.8%; }
.st-ui .st-material[data-st-material="copper"] { --st-art-x: 33.333333333333336%; --st-art-y-budget: 8.5%; --st-art-y-premium: 9.8%; }
.st-ui .st-material[data-st-material="iron"] { --st-art-x: 66.66666666666667%; --st-art-y-budget: 8.5%; --st-art-y-premium: 9.8%; }
.st-ui .st-material[data-st-material="redstone"] { --st-art-x: 100.0%; --st-art-y-budget: 8.5%; --st-art-y-premium: 9.8%; }
.st-ui .st-material[data-st-material="lapis"] { --st-art-x: 0.0%; --st-art-y-budget: 47.5%; --st-art-y-premium: 49.5%; }
.st-ui .st-material[data-st-material="gold"] { --st-art-x: 33.333333333333336%; --st-art-y-budget: 47.5%; --st-art-y-premium: 49.5%; }
.st-ui .st-material[data-st-material="diamond"] { --st-art-x: 66.66666666666667%; --st-art-y-budget: 47.5%; --st-art-y-premium: 49.5%; }
.st-ui .st-material[data-st-material="emerald"] { --st-art-x: 100.0%; --st-art-y-budget: 47.5%; --st-art-y-premium: 49.5%; }
.st-ui .st-material[data-st-material="amethyst"] { --st-art-x: 0.0%; --st-art-y-budget: 84%; --st-art-y-premium: 88%; }
.st-ui .st-material[data-st-material="obsidian"] { --st-art-x: 33.333333333333336%; --st-art-y-budget: 84%; --st-art-y-premium: 88%; }
.st-ui .st-material[data-st-material="netherite"] { --st-art-x: 66.66666666666667%; --st-art-y-budget: 84%; --st-art-y-premium: 88%; }
.st-ui .st-material[data-st-material="beacon"] { --st-art-x: 100.0%; --st-art-y-budget: 84%; --st-art-y-premium: 88%; }
.st-ui .st-grid--badged { gap: 52px 24px; margin-top: 32px; }
.st-ui .st-card--badged { position: relative; padding-top: 42px; }
.st-ui .st-card--badged > .st-badge-art { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); }
