/* Wekoodo Demo Store — the FluteCommerce design canvas's styles as a stylesheet (spec §5, amended It. 8).
   Tokens verbatim from the canvas: #fafafa ground, #111 ink and accent, #e4e4e4 rules, Space Grotesk body,
   Trigonix display. The only brand change is the Wekoodo mark in place of the Flute logo. */

@font-face { font-family: 'Trigonix'; src: url('/assets/fonts/Trigonix-Variable.woff2') format('woff2-variations'); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --ground: #fafafa; --ink: #111111; --accent: #111111; --text: #3a3a3a; --muted: #666666; --subtle: #9a9a9a;
  --rule: #e4e4e4; --rule-strong: #d4d4d4; --rule-light: #c4c4c4; --tile: #f0f0f0; --tag-off: #ebebeb; --tag-off-text: #8c8c8c;
  --card: #ffffff; --input: #fdfcfa; --danger: #b42318; --radius: 8px; --radius-lg: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* wins over every display: flex/grid/inline-flex below */
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #444444; text-decoration: underline; }
input, select, button, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--tile); padding: 1px 5px; border-radius: 4px; }
address { font-style: normal; }
.display { font-family: 'Trigonix', 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--subtle); }
.accent { color: var(--accent); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--subtle); margin: 0; }
.amt, .tag-amt, .cart-line-total, .summary-row span:last-child, .receipt-amt, .receipt-total { font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.site-main { flex: 1; padding-top: 32px; padding-bottom: 32px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); }
.site-header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 28px; width: 28px; }
.brand-name { font-family: 'Trigonix', 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--muted); }
.site-nav a.is-active { color: var(--ink); }
.pricing-switch-wrap { display: flex; align-items: center; gap: 10px; }
.pricing-switch-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--subtle); }
.pricing-switch { display: flex; background: var(--tile); border-radius: 999px; padding: 3px; }
.pricing-switch button { padding: 5px 14px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); }
.pricing-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
html[data-mode="card"] .ms-card, html[data-mode="cash"] .ms-cash { background: var(--accent); color: #fff; }
.cart-link { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.cart-badge { background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 6px; }
.site-footer { background: #111111; color: #b0b0b0; margin-top: 48px; }
.site-footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: 'Trigonix', 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.footer-brand-accent { color: #b0b0b0; }
.footer-cols { display: flex; gap: 40px; font-size: 14px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-head { color: #fff; font-weight: 700; }
.footer-note { font-size: 13px; align-self: flex-end; }
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .site-header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 12px 20px; }
  .site-nav { order: 3; width: 100%; gap: 18px; }
}

/* ---------- headings, disclosure, buttons, inputs ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1, .page-title { font-size: 40px; margin: 0; }
.page-title { margin-bottom: 24px; }
.page-head-tools { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.select { border: 1px solid var(--rule-strong); background: #fff; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: var(--ink); }
.disclosure { background: #fff; border: 1px solid var(--rule); border-left: 3px solid #111111; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.disclosure-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.disclosure-copy { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.disclosure-compact { padding: 14px 18px; margin: 0; }
.disclosure-compact .disclosure-title { font-size: 13.5px; }
.disclosure-compact .disclosure-copy { font-size: 13px; }
.disclosure-inline { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.btn-primary, .btn-secondary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: var(--radius); font-size: 16px; font-weight: 700; letter-spacing: 0.3px; border: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.92); color: #fff; text-decoration: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--rule-strong); }
.btn-outline { background: none; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.input { height: 46px; width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0 14px; font-size: 15px; background: var(--input); }
.input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-city { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 14px; margin: 0; }
.link-muted { border: 0; background: none; padding: 0; font-size: 13px; color: var(--subtle); text-align: left; }
.link-muted:hover { color: var(--ink); text-decoration: underline; }
.empty-state { text-align: center; padding: 64px 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state p { font-size: 18px; margin: 0; }
.empty-state-page h1 { font-size: 40px; margin: 0; color: var(--ink); }

/* ---------- the dual-price tags ---------- */
.price-tags { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 5px 6px 5px 14px; border: 0; border-radius: 4px; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); background: var(--tag-off); color: var(--tag-off-text); text-align: left; }
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: #fafafa; flex-shrink: 0; }
.tag-body { display: flex; flex-direction: column; gap: 1px; }
.tag-body-inline { flex-direction: row; align-items: baseline; gap: 6px; }
.tag-label { font-size: 8px; font-weight: 700; letter-spacing: 0.5px; }
.tag-amt { font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag-was { font-size: 9px; text-decoration: line-through; opacity: 0.65; white-space: nowrap; }
html[data-mode="cash"] .tag-cash, html[data-mode="card"] .tag-card { background: var(--accent); color: #fff; }
.price-tags-sm .tag { padding: 3px 8px 3px 13px; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); }
.price-tags-sm .tag-dot { width: 4px; height: 4px; }
.price-tags-sm .tag-amt { font-size: 12px; }
.price-tags-lg { display: inline-flex; gap: 10px; }
.price-tags-lg .tag { padding: 12px 18px 12px 28px; gap: 10px; border-radius: 8px; clip-path: polygon(19px 0, 100% 0, 100% 100%, 19px 100%, 0 50%); }
.price-tags-lg .tag-dot { width: 8px; height: 8px; }
.price-tags-lg .tag-label { font-size: 10px; letter-spacing: 1px; }
.price-tags-lg .tag-amt { font-size: 24px; line-height: 1.1; }
.price-tags-lg .tag-was { font-size: 14px; }
html[data-mode="card"] .when-cash { display: none !important; }
html[data-mode="cash"] .when-card { display: none !important; }

/* ---------- category ---------- */
.catalog { display: flex; gap: 40px; align-items: flex-start; }
.filters { width: 210px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.filter-option, .filter-static label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; color: var(--text); }
.filter-static { display: flex; flex-direction: column; gap: 8px; }
.filter-static label { cursor: default; }
.filter-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox { width: 16px; height: 16px; border: 1.5px solid var(--rule-light); border-radius: 4px; background: #fff; flex-shrink: 0; }
.filter-option input:checked + .checkbox { background: var(--accent); border-color: var(--accent); }
.filter-option input:focus-visible + .checkbox { outline: 2px solid var(--ink); outline-offset: 1px; }
.filter-count { color: var(--subtle); font-size: 13px; margin-left: auto; }
.product-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #999999; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.product-card[hidden] { display: none; }
.product-card-image { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; background-color: var(--tile); background-size: cover; background-position: center; }
.sale-badge { position: absolute; top: 10px; left: 10px; background: #111111; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 5px 9px; border-radius: 4px; }
.sale-badge-inline { position: static; padding: 4px 8px; }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.product-card-meta { display: flex; justify-content: space-between; align-items: baseline; }
.product-card-category { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtle); }
.product-card-rating { font-size: 13px; color: var(--accent); }
.product-card-name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.product-card-tags { margin-top: 6px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .catalog { flex-direction: column; } .filters { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 20px; } .product-grid { grid-template-columns: 1fr; } }

/* ---------- product ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb-sep { margin: 0 8px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-image { aspect-ratio: 1; width: 100%; border-radius: 12px; border: 1px solid var(--rule); background-color: var(--tile); background-size: cover; background-position: center; }
.product-thumbs { display: flex; gap: 12px; }
.product-thumb { width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--rule); opacity: 0.75; background-color: var(--tile); background-size: cover; background-position: center; }
.product-thumb.is-active { border: 2px solid var(--accent); opacity: 1; }
.product-info { display: flex; flex-direction: column; gap: 18px; }
.product-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.product-category { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.product-title { font-size: 38px; margin: 0 0 8px; line-height: 1.15; }
.product-rating-line { font-size: 14px; color: var(--muted); }
.option-groups { display: flex; flex-direction: column; gap: 14px; }
.option-group { display: flex; flex-direction: column; gap: 8px; }
.option-head { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.option-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--rule-strong); background: #fff; color: var(--text); border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: baseline; }
.chip:hover { border-color: #999999; }
.chip.is-selected { border-color: var(--accent); background: #f5f5f5; color: var(--ink); }
.chip-delta { font-size: 12px; color: var(--subtle); }
.chip.is-selected .chip-delta { color: var(--muted); }
.product-description { font-size: 15.5px; line-height: 1.65; color: var(--text); margin: 0; }
.spec-rows { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.spec-rows > div { display: flex; gap: 8px; }
.spec-rows span { color: var(--muted); width: 120px; flex-shrink: 0; }
.spec-rows strong { font-weight: 500; }
.add-row { display: flex; gap: 14px; align-items: stretch; margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff; }
.stepper button { width: 42px; height: 48px; border: 0; background: none; font-size: 18px; color: var(--muted); }
.stepper input, .stepper span { width: 44px; text-align: center; font-size: 16px; font-weight: 600; border: 0; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm button { width: 36px; height: 40px; font-size: 16px; }
.stepper-sm span { width: 28px; font-size: 15px; }
.add-button { flex: 1; }
.product-footnote { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } .product-title { font-size: 30px; } }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cart-line-image { width: 96px; height: 96px; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--rule); background-color: var(--tile); background-size: cover; background-position: center; }
.cart-line-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { font-size: 16px; font-weight: 500; }
.cart-line-category { font-size: 13px; color: var(--muted); }
.cart-line-variant { font-size: 13px; font-weight: 500; }
.cart-line-variant:empty { display: none; }
.cart-line-tags { display: flex; gap: 5px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.cart-line-each { font-size: 12px; color: var(--subtle); }
.cart-line-total { width: 100px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 16px; font-weight: 700; }
.cart-line-was { font-size: 12.5px; color: var(--subtle); text-decoration: line-through; font-weight: 400; }
.continue-link { display: inline-block; margin-top: 20px; font-size: 14.5px; color: var(--accent); font-weight: 500; }
.summary-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.summary-sticky { position: sticky; top: 24px; }
.summary-title { font-size: 18px; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text); }
.summary-muted { font-size: 14.5px; color: var(--muted); }
.summary-secondary { font-size: 13px; color: var(--subtle); }
.summary-total { border-top: 1px solid var(--rule); padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--ink); }
.summary-side-label { font-size: 12px; font-weight: 400; color: var(--subtle); }
.summary-alt, .summary-rule { font-size: 12.5px; color: var(--subtle); margin: 0; line-height: 1.5; }
.summary-secure { font-size: 12.5px; color: var(--subtle); text-align: center; margin: 0; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text); }
.summary-line-amt { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.summary-block { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.summary-block .summary-total { border-top: 0; padding-top: 4px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .summary-sticky { position: static; } }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 32px; margin: 0; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel-title { font-size: 17px; font-weight: 700; }
.panel-note { font-size: 13px; color: var(--subtle); margin: 0; }
.method { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--rule-strong); background: #fff; border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.method input { position: absolute; opacity: 0; width: 0; height: 0; }
.method.is-selected { border-color: var(--accent); background: #f5f5f5; }
.method.is-disabled { cursor: not-allowed; opacity: 0.6; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.method.is-selected .radio { border-color: var(--accent); }
.radio-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.method.is-selected .radio-dot { background: var(--accent); }
.method-text { flex: 1; display: flex; flex-direction: column; }
.method-label { font-size: 15px; font-weight: 700; }
.method-desc { font-size: 13px; color: var(--muted); }
.card-panel { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.payment-hint { font-size: 14px; color: var(--muted); margin: 0; }
.payment-mount { min-height: 0; }
.payment-mount[aria-busy="true"] { opacity: 0.6; }
/* The Bridge inside the Credit Card panel: the demo draws the summary, the method choice and the Place Order
   button itself (design canvas) and its own hint + error messages, so the Bridge's own copies of those and its
   status line are hidden; only its secure-field host (and the 3-DS line, unused on the Flute path) remain. */
.card-panel .wk-bridge { display: grid; gap: 12px; }
.card-panel .wk-bridge-summary, .card-panel .wk-bridge-methods, .card-panel .wk-bridge-price, .card-panel .wk-bridge-submit, .card-panel .wk-bridge-status { display: none; }
.card-panel .wk-bridge-secure-host { min-height: 48px; }
.card-panel .wk-bridge-3ds { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } .grid-city { grid-template-columns: 1fr; } }

/* ---------- order / thank you ---------- */
.thanks { max-width: 560px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.thanks-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.thanks-mark-failed { background: var(--danger); }
.thanks-mark-pending_payment { background: var(--subtle); }
.thanks-title { font-size: 44px; margin: 0; line-height: 1.1; }
.thanks-lede { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; }
.thanks-note { font-size: 13px; color: var(--subtle); margin: 0; }
.receipt { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px 28px; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.receipt-muted { color: var(--muted); }
.receipt-amt { white-space: nowrap; }
.receipt-total { border-top: 1px solid var(--rule); padding-top: 10px; display: flex; justify-content: space-between; font-size: 15.5px; font-weight: 700; }
.receipt-total-alt { border-top: 0; padding-top: 0; font-weight: 500; color: var(--muted); font-size: 14px; }
.receipt-method { font-size: 13px; color: var(--muted); }
.receipt-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 14px; color: var(--text); }
.receipt-head { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 600px) { .receipt-details { grid-template-columns: 1fr; } .thanks-title { font-size: 32px; } }

/* ---------- the Hub trace (spec §6.5) ---------- */
.hub-trace { width: 100%; text-align: left; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #fff; font-size: 13px; margin-top: 12px; }
.hub-trace-summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.hub-trace-body { padding: 0 16px 16px; }
.trace-flags { margin: 8px 0 12px; padding-left: 18px; color: var(--danger); }
.trace-heading { margin: 20px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.trace-grid { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 16px; margin: 8px 0 0; }
.trace-grid dt { color: var(--muted); }
.trace-grid dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.trace-list { list-style: none; margin: 8px 0 0; padding: 0; }
.trace-list > li { padding: 10px 0; border-top: 1px solid var(--rule); }
.trace-raw summary { cursor: pointer; color: var(--muted); margin-top: 4px; }
.trace-raw pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--tile); padding: 10px; border-radius: 6px; font-size: 11.5px; margin: 6px 0 0; }
.text-subtle { color: var(--subtle); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }
