/* =====================================================================
   WTC Studio Tools — shared design system
   Build: 2026-06-12-design-v1
   =====================================================================

   This stylesheet is the single source of truth for the operator +
   cerologist UI shell. Pages declare their structure in HTML; visual
   treatment lives here.

   Conventions:
     - Design tokens at top as CSS variables.
     - Layout primitives next (.app-bg, .page, .topbar, .section).
     - Reusable components after that (.card, .btn, .pill, .table…).
     - Page-specific overrides land in inline <style> blocks on the
       page itself, scoped under a page-id class to avoid leaking.

   Color principle: peach gradient bg, white surface cards with a soft
   peach shadow, dark-brown ink for text. Status colors stay restrained
   (no rainbow — only success-green, warn-amber, error-red, info-blue).
   ===================================================================== */

/* -----------------------------------------------------------------------
   Tokens
   ----------------------------------------------------------------------- */
:root {
  /* Brand */
  --peach:        #FF8C42;
  --peach-dark:   #E5762E;
  --peach-soft:   #FFE3CC;
  --peach-tint:   #FFF1E6;

  /* Background gradient stops */
  --bg-grad-1:    #FFF1E6;
  --bg-grad-2:    #FFD5B0;

  /* Surfaces */
  --card:         #FFFFFF;
  --card-soft:    #FFF8F2;

  /* Text */
  --ink:          #2C1810;
  --ink-soft:     #6E5A4A;
  --ink-mute:     #B7A492;

  /* Lines */
  --line:         rgba(44,24,16,0.08);
  --line-strong:  rgba(44,24,16,0.16);

  /* Status (used in pills, tile borders, panel heads) */
  --ok:           #1E7A3E;
  --ok-soft:      rgba(30,122,62,0.08);
  --ok-line:      rgba(30,122,62,0.25);
  --warn:         #B5701B;
  --warn-soft:    rgba(181,112,27,0.10);
  --warn-line:    rgba(181,112,27,0.30);
  --err:          #C03A1A;
  --err-soft:     rgba(192,58,26,0.08);
  --err-line:     rgba(192,58,26,0.25);
  --info:         #2C6FB0;
  --info-soft:    rgba(44,111,176,0.08);
  --info-line:    rgba(44,111,176,0.22);

  /* Shadows */
  --shadow-sm:    0 4px 12px rgba(229,118,46,0.10);
  --shadow:       0 12px 32px rgba(229,118,46,0.18);
  --shadow-lg:    0 18px 40px rgba(229,118,46,0.22);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;

  /* Spacing scale (4px base) */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-7:  2rem;
  --s-8:  2.5rem;
  --s-9:  3rem;

  /* Type scale */
  --t-xs:  0.72rem;
  --t-sm:  0.82rem;
  --t-md:  0.92rem;
  --t-lg:  1.05rem;
  --t-xl:  1.25rem;
  --t-2xl: 1.5rem;
  --t-3xl: 1.85rem;

  /* Container widths */
  --w-narrow: 480px;
  --w-content: 1100px;

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                "Segoe UI", Roboto, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* -----------------------------------------------------------------------
   Reset / base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  font-size: var(--t-md);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--peach-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

/* -----------------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------------- */
.page {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: var(--s-6) var(--s-4) var(--s-9);
}
.page.narrow { max-width: var(--w-narrow); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.topbar .brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600;
}
.topbar .brand .mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--peach-dark));
  color: #fff; font-weight: 700; font-size: 0.95rem;
}
.topbar .brand .title { font-size: var(--t-lg); }
.topbar .brand .meta  { display: block; color: var(--ink-soft);
                        font-size: var(--t-xs); font-weight: 400;
                        margin-top: 2px; }
.topbar .nav { display: flex; gap: var(--s-5); align-items: center; }
.topbar .nav a {
  font-size: var(--t-sm); font-weight: 600; color: var(--peach-dark);
}
.topbar .nav a.btn { color: #fff; }

.section { margin-bottom: var(--s-7); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.section-head h2 {
  margin: 0;
  font-size: var(--t-xl); font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head .lede {
  color: var(--ink-soft); font-size: var(--t-sm);
}

/* -----------------------------------------------------------------------
   Card surface
   ----------------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow);
  padding: var(--s-6);
}
.card.flat { box-shadow: var(--shadow-sm); }
.card.lg   { padding: var(--s-7); }
.card.sm   { padding: var(--s-4); border-radius: var(--r-xl); }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.card-title { font-weight: 600; font-size: var(--t-lg); }
.card-sub   { color: var(--ink-soft); font-size: var(--t-sm); margin-top: 2px; }

/* -----------------------------------------------------------------------
   Buttons + pill buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.25rem;
  border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--peach), var(--peach-dark));
  color: #fff;
  font: 600 var(--t-md) var(--font-stack);
  cursor: pointer;
  transition: transform .08s ease, opacity .12s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { opacity: 0.95; box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.lg { padding: 0.95rem 1.5rem; font-size: var(--t-lg); border-radius: var(--r-lg); }
.btn.sm { padding: 0.45rem 0.85rem; font-size: var(--t-sm); }
.btn.ghost {
  background: transparent; color: var(--peach-dark);
  border: 1.5px solid var(--line-strong);
}
.btn.ghost:hover { background: rgba(255,140,66,0.06); }
.btn.danger {
  background: linear-gradient(135deg, #D85B3A, var(--err));
}
.btn.neutral {
  background: var(--card-soft); color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.neutral:hover { background: var(--peach-tint); }
.btn.icon { padding: 0.45rem 0.6rem; font-size: var(--t-sm); }

/* Tiny row-action (table cell icons) */
.row-action {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink-soft);
  font-size: var(--t-md); cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.row-action:hover { background: var(--peach-tint); color: var(--peach-dark);
                    border-color: var(--peach-soft); }
.row-action.danger:hover { background: var(--err-soft); color: var(--err);
                           border-color: var(--err-line); }
.row-action + .row-action { margin-left: var(--s-1); }

/* -----------------------------------------------------------------------
   Pills + badges
   ----------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--peach-tint); color: var(--ink-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.good   { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.pill.warn   { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill.bad    { background: var(--err-soft);  color: var(--err);  border-color: var(--err-line); }
.pill.info   { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.pill.accent { background: linear-gradient(135deg, var(--peach), var(--peach-dark));
               color: #fff; border-color: transparent; }
.pill.plain  { background: transparent; color: var(--ink-soft); }

/* -----------------------------------------------------------------------
   Tables
   ----------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg);
              border: 1px solid var(--line); background: var(--card); }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.tbl th, .tbl td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl thead th {
  background: var(--peach-tint);
  color: var(--ink-soft);
  font-weight: 700; font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; z-index: 1;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(255,243,228,0.55); }
.tbl td.right, .tbl th.right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.center, .tbl th.center { text-align: center; }
.tbl td.muted { color: var(--ink-soft); }
.tbl td.actions { text-align: right; white-space: nowrap; }
.tbl tr.exp-row > td { padding: 0; background: var(--card-soft); }
.tbl tr.exp-row .exp-inner { padding: var(--s-4); }

/* -----------------------------------------------------------------------
   Form controls
   ----------------------------------------------------------------------- */
.field { margin-bottom: var(--s-4); }
label.field-label {
  display: block;
  font-size: var(--t-xs); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
input[type="text"], input[type="password"], input[type="number"],
input[type="email"], select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--card-soft); color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--peach);
  background: var(--card);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E5A4A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.25rem;
}
textarea { resize: vertical; min-height: 80px; }

/* -----------------------------------------------------------------------
   PIN-pad components (login/setup_pin)
   ----------------------------------------------------------------------- */
.dots { display: flex; justify-content: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.dot  { width: 14px; height: 14px; border-radius: 50%;
        background: transparent; border: 2px solid var(--line);
        transition: all 0.15s ease; }
.dot.filled { background: var(--peach); border-color: var(--peach); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.key {
  aspect-ratio: 1.6 / 1; border: none; border-radius: var(--r-lg);
  background: var(--peach-tint); color: var(--ink);
  font: 500 1.5rem var(--font-stack); cursor: pointer;
  transition: transform .08s ease, background .12s ease;
  -webkit-user-select: none; user-select: none;
}
.key:hover  { background: var(--peach-soft); }
.key:active { transform: scale(0.96); background: #FFD5B0; }
.key.action { background: transparent; color: var(--peach-dark);
              font-size: var(--t-md); font-weight: 600; }
.key.action:hover { background: rgba(255,140,66,0.08); }

/* -----------------------------------------------------------------------
   Tiles (KPI / segment movement)
   ----------------------------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.tile {
  background: var(--card); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-2);
  border-top: 4px solid var(--peach-soft);
  transition: transform .12s ease, box-shadow .15s ease;
  position: relative;
}
.tile.pos { border-top-color: var(--ok); }
.tile.neg { border-top-color: var(--err); }
.tile.neu { border-top-color: var(--ink-mute); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .label    { font-size: var(--t-xs); color: var(--ink-soft);
                  text-transform: uppercase; letter-spacing: 0.08em;
                  font-weight: 700; }
.tile .value    { font-size: var(--t-3xl); font-weight: 700; line-height: 1.1;
                  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile .sub      { font-size: var(--t-xs); color: var(--ink-soft); }
.tile .ledger   { display: flex; gap: var(--s-3); font-size: var(--t-xs);
                  color: var(--ink-soft); flex-wrap: wrap; }
.tile .ledger .ok-flag  { color: var(--ok);  font-weight: 600; }
.tile .ledger .bad-flag { color: var(--err); font-weight: 600; }
.tile .ledger .net-flag { color: var(--ink); font-weight: 700; }

/* -----------------------------------------------------------------------
   Drop zone (upload page)
   ----------------------------------------------------------------------- */
.dropzone {
  background: var(--card);
  border: 2px dashed var(--peach-soft);
  border-radius: var(--r-2xl);
  padding: var(--s-9) var(--s-6);
  text-align: center;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  cursor: pointer;
  position: relative;
}
.dropzone:hover, .dropzone:focus { border-color: var(--peach);
                                   background: var(--card-soft); }
.dropzone.drag { border-color: var(--peach-dark); background: var(--peach-tint);
                 transform: scale(1.01); }
.dropzone .dz-icon {
  width: 64px; height: 64px; margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--peach-dark));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow);
}
.dropzone .dz-title { font-size: var(--t-xl); font-weight: 600; }
.dropzone .dz-sub   { color: var(--ink-soft); font-size: var(--t-sm);
                      margin-top: var(--s-1); }
.dropzone input[type="file"] { display: none; }

/* -----------------------------------------------------------------------
   Window toggle (segmented control)
   ----------------------------------------------------------------------- */
.win-toggle {
  display: inline-flex;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.win-toggle button {
  border: none; background: transparent;
  padding: 0.4rem 0.95rem;
  font: 600 var(--t-sm) var(--font-stack); color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.win-toggle button:hover { color: var(--ink); }
.win-toggle button.active {
  background: linear-gradient(135deg, var(--peach), var(--peach-dark));
  color: #fff;
}

/* -----------------------------------------------------------------------
   Empty states + error blocks
   ----------------------------------------------------------------------- */
.empty {
  text-align: center; color: var(--ink-soft);
  padding: var(--s-7) var(--s-4);
  font-size: var(--t-sm);
}
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  border: 1px solid var(--line);
  background: var(--card-soft);
  color: var(--ink);
}
.alert.bad  { background: var(--err-soft);  color: var(--err);  border-color: var(--err-line); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.alert.good { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.alert.info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }

/* -----------------------------------------------------------------------
   Modal
   ----------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(44,24,16,0.42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--card); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6);
  width: min(440px, calc(100% - 2rem));
}
.modal-box h3 { margin: 0 0 var(--s-3); font-size: var(--t-lg); }
.modal-box .modal-actions {
  display: flex; gap: var(--s-2); justify-content: flex-end;
  margin-top: var(--s-5);
}

/* -----------------------------------------------------------------------
   Toast
   ----------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-size: var(--t-sm); font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
  max-width: 92vw;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--ok); }
.toast.error   { background: var(--err); }

/* -----------------------------------------------------------------------
   Utility
   ----------------------------------------------------------------------- */
.muted     { color: var(--ink-soft); }
.mute-mute { color: var(--ink-mute); }
.right     { text-align: right; }
.center    { text-align: center; }
.nowrap    { white-space: nowrap; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); }
.mt-1{margin-top:var(--s-1)}.mt-2{margin-top:var(--s-2)}.mt-3{margin-top:var(--s-3)}
.mt-4{margin-top:var(--s-4)}.mt-5{margin-top:var(--s-5)}.mt-6{margin-top:var(--s-6)}
.spacer { flex: 1 1 auto; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* -----------------------------------------------------------------------
   Shared runtime (app.js) — loading bar, session banner, toast action,
   nav active state, skeleton shimmer, focus visibility
   ----------------------------------------------------------------------- */
#wtc-loading-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--peach-dark), var(--peach));
  background-size: 200% 100%;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
  z-index: 90;
}
#wtc-loading-bar.on {
  opacity: 1;
  animation: wtc-bar-slide 1.1s linear infinite;
}
@keyframes wtc-bar-slide {
  from { background-position: 0% 0; }
  to   { background-position: -200% 0; }
}

#wtc-session-banner {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-4);
  padding: 0.7rem 1rem;
  background: var(--err); color: #fff;
  font-size: var(--t-sm); font-weight: 600;
  z-index: 95;
  box-shadow: var(--shadow);
}
#wtc-session-banner button {
  border: none; border-radius: var(--r-sm);
  padding: 0.35rem 0.9rem;
  background: #fff; color: var(--err);
  font: 700 var(--t-sm) var(--font-stack);
  cursor: pointer;
}

.toast .toast-act {
  border: none; border-radius: var(--r-sm);
  margin-left: 0.85rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font: 700 var(--t-sm) var(--font-stack);
  cursor: pointer;
  text-decoration: underline;
}
.toast .toast-act:hover { background: rgba(255,255,255,0.3); }

.topbar .nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--peach-dark);
  padding-bottom: 2px;
}

.skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--peach-tint) 25%,
              var(--peach-soft) 50%, var(--peach-tint) 75%);
  background-size: 200% 100%;
  animation: wtc-skel 1.2s ease-in-out infinite;
}
@keyframes wtc-skel {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

:focus-visible {
  outline: 2px solid var(--peach-dark);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
/* iPad landscape/portrait (769–1024px): let narrow pages breathe and
   keep modals off the screen edges. */
@media (min-width: 769px) and (max-width: 1024px) {
  .page.narrow { max-width: 560px; }
  .modal-box { width: min(480px, calc(100% - 3rem)); }
}
/* Tablet portrait and down */
@media (max-width: 768px) {
  .modal-box { width: min(90vw, 440px); }
}
@media (max-width: 720px) {
  .page { padding: var(--s-4) var(--s-3) var(--s-7); }
  .card { padding: var(--s-5); border-radius: var(--r-xl); }
  .topbar { flex-wrap: wrap; }
  .topbar .nav { width: 100%; justify-content: flex-end; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 0.6rem 0.55rem; font-size: var(--t-xs); }
  /* Taller PIN keys on small phones — thumb-sized targets. */
  .key { aspect-ratio: 1.35 / 1; font-size: 1.6rem; }
  .key.action { font-size: var(--t-md); }
}

/* Touch devices: bump the smallest tap targets toward the 44px floor. */
@media (pointer: coarse) {
  .row-action { width: 38px; height: 38px; }
  .btn.sm { padding: 0.55rem 0.95rem; }
  .win-toggle button { padding: 0.55rem 1.05rem; }
}

/* Horizontal-scroll affordance: fading edge shadows that appear only
   when there is more table off-screen (scroll-linked, pure CSS). */
.table-wrap {
  background:
    linear-gradient(to right, var(--card) 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), var(--card) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(44,24,16,0.14), rgba(44,24,16,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(44,24,16,0.14), rgba(44,24,16,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
