/* The Gulf Chronicle — Partner Media Site (docs/design/main.pen + demo.pen).
 * Paper tokens only. Cabinet indigo tokens are not used here.
 * Widget slots are host chrome; the live card is Shadow DOM from widget.js.
 */

:root {
  --gc-paper: #f3eee4;
  --gc-ink: #161412;
  --gc-muted: #6a645a;
  --gc-rule: #d6cfc2;
  --gc-accent: #b42318;
  --gc-masthead: #111111;
  --gc-masthead-fg: #f3eee4;
  --gc-footer-rule: #2a2622;
  --gc-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --gc-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gc-gutter: 80px;
  --gc-sidebar: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--gc-paper);
}

body.gc-body {
  margin: 0;
  background: var(--gc-paper);
  color: var(--gc-ink);
  font-family: var(--gc-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gc-accent);
}

.gc-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 36px;
  padding: 0 var(--gc-gutter);
  background: var(--gc-masthead);
  color: var(--gc-masthead-fg);
  overflow: hidden;
}

.gc-ticker-items {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.gc-live {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  background: var(--gc-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1;
  flex: 0 0 auto;
}

.gc-tick {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}

.gc-tick-name {
  font-weight: 500;
  color: var(--gc-masthead-fg);
}

.gc-tick-meta {
  font-weight: 600;
  color: var(--gc-accent);
}

.gc-ticker-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-masthead-fg);
  flex: 0 0 auto;
}

.gc-ticker-more svg {
  width: 14px;
  height: 14px;
}

.gc-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--gc-gutter) 20px;
}

.gc-wordmark {
  margin: 0;
  font-family: var(--gc-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--gc-ink);
}

.gc-wordmark a:hover {
  color: var(--gc-ink);
}

.gc-tagline {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--gc-muted);
}

.gc-issue {
  text-align: right;
  flex: 0 0 auto;
}

.gc-issue-date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-ink);
}

.gc-issue-no {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--gc-muted);
}

.gc-sections {
  border-top: 1px solid var(--gc-ink);
  border-bottom: 2px solid var(--gc-ink);
  padding: 0 var(--gc-gutter);
}

.gc-sections-list {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-sections a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gc-ink);
}

.gc-sections a.is-active,
.gc-sections a[aria-current="page"] {
  font-weight: 700;
  color: var(--gc-accent);
}

.gc-headline {
  padding: 40px var(--gc-gutter) 36px;
}

.gc-kicker {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gc-accent);
}

.gc-hed {
  margin: 0;
  max-width: 1100px;
  font-family: var(--gc-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.08;
  color: var(--gc-ink);
}

.gc-dek {
  margin: 20px 0 0;
  max-width: 920px;
  font-family: var(--gc-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--gc-ink);
}

.gc-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 8px;
  font-size: 13px;
}

.gc-byline-author {
  font-weight: 600;
  color: var(--gc-ink);
}

.gc-byline-meta {
  color: var(--gc-muted);
}

.gc-hero {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  background: #c8c2b6;
}

.gc-hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 10px var(--gc-gutter) 8px;
}

.gc-hero-caption p {
  margin: 0;
  font-size: 12px;
  color: var(--gc-muted);
}

.gc-hero-credit {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gc-muted);
  text-transform: uppercase;
}

.gc-article {
  display: flex;
  gap: 64px;
  padding: 40px var(--gc-gutter) 56px;
}

.gc-story {
  flex: 1;
  min-width: 0;
}

.gc-story p,
.gc-story li {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gc-ink);
}

.gc-story p:last-child,
.gc-story .gc-tags {
  margin-bottom: 0;
}

.gc-story h2 {
  margin: 8px 0 22px;
  font-family: var(--gc-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gc-ink);
}

.gc-quote {
  margin: 8px 0 22px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gc-accent);
}

.gc-quote p {
  margin: 0 0 10px;
  font-family: var(--gc-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.gc-quote footer {
  font-family: var(--gc-sans);
  font-size: 13px;
  color: var(--gc-muted);
}

.gc-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
}

.gc-embed prediction-widget {
  display: block;
  width: 360px;
  max-width: 100%;
  min-height: 120px;
}

.gc-embed figcaption,
.gc-embed-caption {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  color: var(--gc-muted);
  text-align: center;
}

.gc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.gc-tag {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--gc-rule);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gc-ink);
}

.gc-sidebar {
  width: var(--gc-sidebar);
  flex: 0 0 var(--gc-sidebar);
}

.gc-side-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--gc-accent);
}

.gc-standings {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.gc-standings li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 36px;
  padding: 0 4px;
  border-bottom: 1px solid var(--gc-rule);
  font-size: 14px;
}

.gc-standings-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-standings-pos {
  font-weight: 600;
  color: var(--gc-muted);
  width: 1.2em;
}

.gc-standings li:first-child .gc-standings-pos,
.gc-standings li.is-accent .gc-standings-pos {
  color: var(--gc-accent);
}

.gc-standings-club {
  font-weight: 500;
}

.gc-standings li:first-child .gc-standings-club,
.gc-standings li.is-accent .gc-standings-club {
  font-weight: 700;
}

.gc-standings-pts {
  font-weight: 600;
}

.gc-more {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.gc-more a {
  display: block;
}

.gc-more-title {
  margin: 0 0 6px;
  font-family: var(--gc-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gc-ink);
}

.gc-more a:hover .gc-more-title {
  color: var(--gc-accent);
}

.gc-more-meta {
  margin: 0;
  font-size: 12px;
  color: var(--gc-muted);
}

.gc-home {
  padding: 40px var(--gc-gutter) 56px;
}

.gc-home-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px 64px;
}

.gc-feature-hed {
  margin: 0 0 16px;
  font-family: var(--gc-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.gc-feature-dek {
  margin: 0 0 16px;
  font-family: var(--gc-display);
  font-size: 20px;
  line-height: 1.35;
}

.gc-feature-meta {
  margin: 0;
  font-size: 13px;
  color: var(--gc-muted);
}

.gc-feature-img {
  display: block;
  width: 100%;
  height: 280px;
  margin: 20px 0 0;
  object-fit: cover;
  background: #c8c2b6;
}

.gc-rail-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-rail-list li {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gc-rule);
}

.gc-rail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gc-footer {
  padding: 40px var(--gc-gutter) 36px;
  background: var(--gc-masthead);
  color: var(--gc-masthead-fg);
}

.gc-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.gc-footer-wordmark {
  margin: 0;
  font-family: var(--gc-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.gc-footer-about {
  margin: 8px 0 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gc-rule);
}

.gc-footer-nav {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--gc-masthead-fg);
}

.gc-footer-rule {
  height: 1px;
  margin: 28px 0;
  background: var(--gc-footer-rule);
}

.gc-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--gc-rule);
}

.gc-footer-bottom p {
  margin: 0;
}

/* Quark2 leftovers when this sheet is concatenated into custom.css */
.navbar,
#header,
#footer,
.mobile-menu,
#body-wrapper > .container > .breadcrumbs {
  display: none !important;
}

body:not(.gc-body) {
  background: var(--gc-paper);
}

.widget-mockup-page {
  padding: 40px var(--gc-gutter) 56px;
}

.widget-mockup-lede {
  color: var(--gc-muted);
  max-width: 52rem;
}

@media (max-width: 960px) {
  :root {
    --gc-gutter: 20px;
  }

  .gc-wordmark {
    font-size: 32px;
  }

  .gc-hed,
  .gc-feature-hed {
    font-size: 32px;
  }

  .gc-dek {
    font-size: 18px;
  }

  .gc-hero {
    height: 220px;
  }

  .gc-article,
  .gc-home-grid,
  .gc-footer-top,
  .gc-footer-bottom,
  .gc-hero-caption,
  .gc-masthead {
    display: flex;
    flex-direction: column;
  }

  .gc-issue,
  .gc-footer-nav {
    text-align: left;
  }

  .gc-sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .gc-sections-list {
    gap: 16px;
    overflow-x: auto;
  }

  .gc-ticker-items .gc-tick:nth-child(n + 4),
  .gc-ticker-more {
    display: none;
  }
}

/*
 * Quark2 leftovers only. Visual system lives in chronicle.css
 * (The Gulf Chronicle / Partner Media Site). init.sh concatenates
 * chronicle.css + this file + widget-mockup.css into custom.css.
 */

/* Copied from apps/widget/src/styles.css (canvas Frame tokens) for static Grav mockups.
 * :host omitted — these cards are light-DOM, not the widget custom element.
 */
.widget {
  --accent-color: #2778c1;
  --bg-elevated: #fcfcfc;
  --text-primary: #141414;
  --text-secondary: #141414bd;
  --text-tertiary: #14141499;
  --text-on-accent: #fcfcfc;
  --stroke-tertiary: #14141414;
  --stroke-secondary: #1414141f;
  --fill-tertiary: #14141414;
  --fill-quaternary: #1414140f;
  --badge-open: #007041;
  --badge-resolved: #14141499;
  --badge-void: #14141499;
  --badge-closed: #14141499;
  --badge-disputed: #c93714;
  --tone-green: #007041;
  --tone-red: #be1744;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke-tertiary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget *,
.widget *::before,
.widget *::after {
  box-sizing: border-box;
}

.widget-theme-dark {
  --accent-color: #599ce7;
  --bg-elevated: #181818;
  --text-primary: #f0f0f0;
  --text-secondary: #f0f0f0bd;
  --text-tertiary: #f0f0f099;
  --text-on-accent: #191c22;
  --stroke-tertiary: #f0f0f014;
  --stroke-secondary: #f0f0f01f;
  --fill-tertiary: #f0f0f014;
  --fill-quaternary: #f0f0f00f;
  --badge-open: #3fa266;
  --badge-resolved: #f0f0f099;
  --badge-void: #f0f0f099;
  --badge-closed: #f0f0f099;
  --badge-disputed: #dd7f76;
  --tone-green: #3fa266;
  --tone-red: #fc6b83;
}

.widget-loading,
.widget-error {
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
}

.widget-error {
  background: var(--fill-quaternary);
  border: 1px solid var(--tone-red);
  border-radius: 8px;
  color: var(--tone-red);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--stroke-tertiary);
  border-top-color: var(--accent-color);
  border-radius: 999px;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.widget-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.widget-badge-open { color: var(--badge-open); }
.widget-badge-resolved { color: var(--badge-resolved); }
.widget-badge-void { color: var(--badge-void); }
.widget-badge-closed { color: var(--badge-closed); }
.widget-badge-disputed { color: var(--badge-disputed); }

.widget-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: currentColor;
}

.widget-venue {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
}

.widget-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  color: var(--text-primary);
}

.widget-divider {
  height: 1px;
  background: var(--stroke-tertiary);
}

.outcomes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outcome {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--outcome-color, var(--accent-color));
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--text-primary);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.outcome.selected {
  background: var(--fill-quaternary);
}

.outcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.outcome-title {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
}

.outcome-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.outcome-pct {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}

.outcome-price {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--outcome-color, var(--accent-color));
}

.outcome-bar {
  height: 6px;
  background: var(--fill-tertiary);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.outcome-bar-fill {
  height: 100%;
  background: var(--outcome-color, var(--accent-color));
  border-radius: 999px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--stroke-tertiary);
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  margin: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  appearance: none;
}

.auth-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.auth-form,
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group input,
.custom-amount input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-group input:focus,
.custom-amount input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.auth-error,
.panel-error {
  background: var(--fill-quaternary);
  border: 1px solid var(--tone-red);
  color: var(--tone-red);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: 1px solid transparent;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--stroke-tertiary);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.panel-heading {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin: 0;
}

.panel-copy {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  margin: 0;
}

.outcome-chip {
  padding: 8px;
  border-radius: 8px;
  background: var(--fill-quaternary);
}

.kv-box {
  padding: 10px;
  border-radius: 6px;
  background: var(--fill-quaternary);
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
}

.kv-label {
  color: var(--text-secondary);
}

.kv-value {
  font-weight: 600;
}

.presets {
  display: flex;
  gap: 8px;
}

.preset-btn {
  flex: 1;
  padding: 8px 0;
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  appearance: none;
}

.preset-btn.active {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border-color: var(--accent-color);
}

.receipt {
  padding: 12px;
  border-radius: 6px;
  background: var(--fill-tertiary);
  border: 1px solid var(--stroke-tertiary);
}

.receipt-title {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12px;
  line-height: 16px;
}

.receipt-row span:first-child {
  color: var(--text-secondary);
}

.receipt-row .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.receipt-divider {
  height: 1px;
  background: var(--stroke-tertiary);
}

.receipt-total span:first-child {
  font-weight: 600;
}

.receipt-total .mono {
  font-weight: 600;
}

.loss-box {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--tone-red);
  background: var(--fill-quaternary);
  text-align: center;
}

.loss-box strong {
  display: block;
  color: var(--tone-red);
  font-size: 18px;
}

.loss-box p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}

.processing-inline {
  padding: 20px;
  text-align: center;
}

.deposit-address {
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  background: var(--fill-tertiary);
}

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

.deposit-qr {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  display: block;
  border-radius: 6px;
  background: #fff;
}

.deposit-address-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 16px;
  word-break: break-all;
  min-width: 0;
}

.wait-box {
  padding: 10px;
  border-radius: 6px;
  background: var(--fill-quaternary);
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}

.tone-green { color: var(--tone-green); }
.tone-red { color: var(--tone-red); }

.tone-blue { color: #2778c1; }
.oc-red { --outcome-color: #be1744; }
.oc-blue { --outcome-color: #2778c1; }
.oc-green { --outcome-color: #007041; }
.chip-red { border: 1px solid #be1744; }
.chip-blue { border: 1px solid #2778c1; }
.bar-58 { width: 58%; }
.bar-41 { width: 41%; }
.bar-1 { width: 1%; }

.widget {
  color-scheme: light;
  flex: 0 0 auto;
}

.widget .widget-title,
.widget .panel-heading,
.widget .panel-copy,
.widget .loss-note {
  font-family: inherit;
  letter-spacing: normal;
}

.widget input,
.widget input[type="email"],
.widget input[type="password"],
.widget input[type="number"] {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 10px 12px;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  box-shadow: none;
  color-scheme: light;
}

.widget .loss-box .loss-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}

.deposit-qr-mark {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
}

.deposit-qr-mark span {
  background: var(--fill-tertiary);
}

.deposit-qr-mark .on {
  background: var(--text-primary);
}

.deposit-hint {
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.widget .amount-label {
  margin-bottom: 6px;
}

.widget .amount-field {
  margin-top: 8px;
}

.widget .auth-tab,
.widget .preset-btn {
  text-align: center;
}

/* Gallery (labels are not the widget card; Fiscal Wire chrome wraps the page). */
#body-wrapper > .container:has(.widget-mockup-page) > .content-item {
  max-width: 1200px;
}

.widget-mockup-lede {
  color: var(--q2-text-muted, #898989);
  max-width: 52rem;
}

.widget-mockup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 32px 24px;
  justify-content: center;
  margin-top: 2rem;
}

.mockup-item {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  background: #2778c1;
  color: #fcfcfc;
  flex: 0 0 auto;
}

.mockup-item-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.mockup-item-desc {
  font-size: 12px;
  line-height: 16px;
  color: var(--q2-text-muted, #14141499);
}

:root[data-theme="dark"] .mockup-item-title {
  color: var(--q2-text-strong, #f0f0f0);
}
