.st {
  --st-paper: #f7f7f0;
  --st-card: #fffefa;
  --st-wash: #edf3e9;
  --st-ink: #18342b;
  --st-muted: #425d52;
  --st-line: #ccd9cd;
  --st-accent: #165c49;
  --st-on-accent: #fff;
  --st-focus: #846316;

  --st-deep: #123b31;
  --st-mint: #d8f6b3;
  position: relative;
  background: var(--st-paper);
  color: var(--st-ink);
  isolation: isolate;
}

[data-theme="dark"] .st {
  --st-paper: #111d1a;
  --st-card: #192a25;
  --st-wash: #152420;
  --st-ink: #eef9f2;
  --st-muted: #bdcfc5;
  --st-line: #435e53;
  --st-accent: #bde9b0;
  --st-on-accent: #123b31;
  --st-focus: #ffe19b;

}

.st h1, .st h2, .st h3 { color: inherit; }
.st h1 { font-size: clamp(2.55rem, 6vw, 5rem); line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
.st h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.048em; text-wrap: balance; }
.st h3 { font-size: clamp(1.2rem, 2.25vw, 1.52rem); letter-spacing: -.035em; }
.st p { margin: 0; }
.st .site-container { max-width: 1184px; }
.st :is(a, button, input, select):focus-visible { outline: 3px solid var(--st-focus); outline-offset: 4px; }
.st [hidden] { display: none; }
.st-skip { position: fixed; z-index: 110; top: .5rem; left: .5rem; transform: translateY(-150%); }
.st-skip:focus { transform: none; background: var(--theme-surface); color: var(--theme-text); padding: .6rem 1rem; outline: 2px solid currentColor; }
.st-hero, .st-section { padding-block: clamp(2.75rem, 6.25vw, 5rem); }
.st-hero {
  background: radial-gradient(ellipse at 80% 0%, var(--st-wash), transparent 70%), var(--st-paper);
  border-bottom: 1px solid var(--st-line);
}
.st-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.8rem, 5vw, 4.25rem); align-items: center; }
.st-section { scroll-margin-top: 1rem; }
.st-section--wash { background: var(--st-wash); border-block: 1px solid var(--st-line); }
.st .st-kicker {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  color: var(--st-accent); font: 600 .76rem/1.4 var(--theme-font-mono);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: .8rem;
}
.st-dot { width: .62rem; height: .62rem; border-radius: 50%; background: currentColor; }
.st .st-lede { color: var(--st-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; margin-block: 1.15rem 0; }
.st-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.st .st-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 44px;
  background: var(--st-card); color: var(--st-ink); border: 1px solid var(--st-line); border-radius: .64rem;
  padding: .65rem 1rem; font-size: .94rem; font-weight: 700; line-height: 1.4; text-align: center;
  text-decoration: none;
}
.st .st-button:hover { border-color: var(--st-accent); text-decoration: underline; text-underline-offset: .2em; }
.st .st-button--primary { background: var(--st-accent); color: var(--st-on-accent); border-color: var(--st-accent); }
.st .st-note { margin-top: 1rem; max-width: 72ch; color: var(--st-muted); font-size: .92rem; }
.st .st-text-link { color: var(--st-accent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.st .st-text-link:hover { text-decoration-thickness: .15em; }
.st-back { display: inline-block; padding-block: .55rem; margin: -.65rem 0 1.15rem; }
.st-return { display: inline-block; padding-block: .55rem; margin-top: 1.2rem; }

.st-hero-board {
  --st-focus: #f8e4ad;
  color: #fff;
  background: linear-gradient(125deg, #214e40, var(--st-deep) 75%);
  border-radius: 1.35rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px), linear-gradient(125deg, #214e40, var(--st-deep) 75%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 0 16px 32px #0b3d2a20;
}
.st-board-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; color: var(--st-mint); font: 500 .74rem/1.35 var(--theme-font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }

.st .st-case-title { color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.st-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-block: 1.25rem; }
.st-metrics > div { background: #ffffff10; border: 1px solid #ffffff35; border-radius: .65rem; padding: .65rem; }
.st-metrics dt { color: #dcf2e8; font-size: .78rem; }
.st-metrics dd { font: 500 clamp(.95rem, 2.1vw, 1.4rem)/1.3 var(--theme-font-mono); }
.st .st-case-note { margin-bottom: .5rem; font-size: .92rem; }
.st .st-board-link { display: inline-block; color: var(--st-mint); padding-block: .55rem; font-weight: 700; font-size: .93rem; text-decoration: underline; text-underline-offset: .2em; }

.st-heading { margin-bottom: 1.55rem; max-width: 48rem; }
.st-heading > p:not(.st-kicker) { margin-top: .8rem; color: var(--st-muted); max-width: 67ch; }
.st-grid { display: grid; gap: clamp(.9rem, 2vw, 1.45rem); }
.st-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-card { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; border: 1px solid var(--st-line); border-radius: 1.15rem; padding: clamp(1.2rem, 3vw, 1.85rem); background: var(--st-card); }
.st-card p { color: var(--st-muted); }
.st-pill { color: var(--st-ink); background: var(--st-wash); border: 1px solid var(--st-line); border-radius: 999px; padding: .22rem .55rem; font-size: .77rem; font-weight: 700; }
.st-step { color: var(--st-accent); font: 500 .87rem/1.4 var(--theme-font-mono); border-bottom: 2px solid currentColor; padding-bottom: .32rem; }
.st-steps { list-style: none; }
.st-callout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-top: clamp(1.4rem, 4vw, 2.6rem); padding: clamp(1.25rem, 4vw, 2.3rem); border: 1px solid var(--st-line); background: var(--st-card); border-radius: 1.15rem; align-items: start; }
.st-callout div:first-child { flex: 1 1 14rem; }
.st-callout div:last-child { flex: 2 1 26rem; color: var(--st-muted); }
.st-callout div:last-child p + p { margin-top: .7rem; }
.st-preview { background: var(--st-card); border: 1px solid var(--st-line); border-radius: 1.15rem; padding: .7rem; }
.st-preview-image { display: block; border-radius: .72rem; overflow: hidden; border: 1px solid var(--st-line); background: #f5f7ef; }
.st-preview-image:hover { border-color: var(--st-accent); }
.st-preview-image img { width: 100%; height: auto; }
.st-preview figcaption { padding: .9rem .6rem .45rem; }
.st-preview figcaption p { color: var(--st-muted); margin-top: .35rem; font-size: .93rem; }
.st code { overflow-wrap: anywhere; }

.st-intro, .st-detail { padding-block: clamp(2rem, 5vw, 3.8rem); }
.st-intro { padding-block: clamp(1.9rem, 3.5vw, 2.75rem); }
.st-intro h1 { max-width: 21ch; font-size: clamp(2.45rem, 5vw, 4rem); }
.st-intro-grid, .st-request { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem 2rem; }
.st-intro-grid > div:first-child { flex: 1 1 29rem; }
.st-intro-links { max-width: 19rem; }
.st-catalog { padding-top: clamp(1.65rem, 3vw, 2.3rem); }
.st-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); gap: .85rem; max-width: 44rem; }
.st-filters label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 700; }
.st-filters :is(input, select), .st-update input[type="email"] {
  width: 100%; min-width: 0; min-height: 44px; font: inherit; font-size: 1rem; font-weight: 400;
  border: 1px solid var(--st-muted); border-radius: .64rem; background: var(--st-card); color: var(--st-ink); padding: .55rem .7rem;
  color-scheme: light;
}
[data-theme="dark"] :is(.st-filters :is(input, select), .st-update input[type="email"]) { color-scheme: dark; }
.st-filters input::placeholder { color: var(--st-muted); opacity: 1; }
.st .st-results:not(:empty) { margin-block: .9rem; color: var(--st-muted); font-size: .88rem; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.35rem); }
.st-market-card { display: block; position: relative; padding: 0; }
.st-market-card:hover, .st-market-card:focus-within { border-color: var(--st-accent); box-shadow: 0 6px 20px #15382b18; }
.st-cover {
  --cover-paper: #dceee3;
  --cover-ink: #164e3e;
  display: grid; place-items: center; width: 100%; min-height: 7.5rem; padding: 1rem;
  background: repeating-linear-gradient(135deg, transparent 0 13px, #fff6 13px 14px), var(--cover-paper);
  color: var(--cover-ink); border-radius: 1.08rem 1.08rem 0 0;
  text-align: center; font: 700 clamp(.85rem, 1.4vw, 1.06rem)/1.25 var(--theme-font-mono);
}
.st-cover span { display: inline-block; padding: .65em .9em; border-radius: .65rem; background: #fff; border: 1px solid currentColor; box-shadow: .26rem .26rem 0 currentColor; }
.st-cover b { font-size: 1.15em; }
.st-cover--factory { --cover-paper: #ebe0f4; --cover-ink: #593479; }
.st-cover--floor { --cover-paper: #dfeafa; --cover-ink: #234d80; }
.st-cover--cancel { --cover-paper: #f8e9cb; --cover-ink: #704710; }
.st-cover--inter { --cover-paper: #dceef0; --cover-ink: #235761; }
.st-cover--jacket { --cover-paper: #f4e8d2; --cover-ink: #684514; }
.st-cover--detail { min-height: clamp(8rem, 20vw, 15rem); border-radius: 1.15rem; font-size: clamp(1.15rem, 2.6vw, 2rem); }
.st-card-copy { padding: 1rem; }
.st .st-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; font-size: .85rem; }
.st-card-copy h3 { margin: .55rem 0 .45rem; }
.st-card-copy h3 a { color: var(--st-accent); text-decoration: underline; text-underline-offset: .2em; }
.st-card-copy h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 1.15rem; }
.st-card-copy h3 a:focus-visible { outline: none; }
.st-card-copy h3 a:focus-visible::after { outline: 3px solid var(--st-focus); outline-offset: 4px; }
.st-card-copy > p:last-child { font-size: .94rem; }
.st-download-list { display: grid; gap: .4rem; list-style: none; }
.st-download-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .75rem; border-radius: .65rem; border: 1px solid var(--st-line); background: var(--st-card); }
.st .st-download-status:not(:empty) { margin-top: .65rem; color: var(--st-muted); }
.st-update { margin-top: 1rem; max-width: 38rem; }
.st-update h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.st-update form { width: 100%; }
.st-update label { display: block; font-weight: 700; margin-bottom: .35rem; }
.st-update button { cursor: pointer; }
.st-update .st-actions { margin-top: .8rem; }
.st-stats-table { width: 100%; max-width: 36rem; border-collapse: collapse; }
.st-stats-table caption { text-align: left; color: var(--st-muted); padding-bottom: .5rem; }
.st-stats-table :is(th, td) { padding: .55rem .65rem; border-bottom: 1px solid var(--st-line); text-align: left; white-space: normal; }
.st-stats-table thead th { position: static; font: inherit; font-weight: 700; letter-spacing: normal; text-transform: none; color: inherit; }
.st-stats-table thead th, .st-stats-table tfoot, .st-stats-table th[scope="rowgroup"] { background: var(--st-wash); }
.st-stats-table :is(td, th[scope="col"]:last-child) { text-align: right; font-variant-numeric: tabular-nums; }
.st-request { align-items: center; }
.st-request p { margin-top: .5rem; color: var(--st-muted); max-width: 61ch; }

@media (max-width: 1060px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 760px) {
  .st-hero-grid, .st-grid--3 { grid-template-columns: 1fr; }
  .st-hero-board { max-width: 34rem; }
}
@media (max-width: 600px) {
  .st-grid--2, .st-cards, .st-filters { grid-template-columns: 1fr; }
  .st .site-container { padding-inline: 18px; }
  .st-actions .st-button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.st) { scroll-behavior: auto; }
  .st a { transition: none; }
}
