/* Ironpeak: tokens and pieces every page shares (sheet, drawer, toast,
   fields, pills, avatars). Page layouts live in style.css (member app),
   site.css (public site) and desk.css (front desk). */
@font-face { font-family: "Oswald"; src: url(fonts/oswald-var-latin.woff2) format("woff2"); font-weight: 200 700; font-display: block; }
@font-face { font-family: "Inter"; src: url(fonts/inter-var-latin.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
:root {
  --bg: #f3f4f0; --s1: #ffffff; --s2: #eceee7; --line: #e2e4dd; --line2: #cfd3c9;
  --tx: #121418; --mu: #5c626a; --mu2: #9aa098;
  --volt: #d4ff3a; --volt-ink: #0d1000; --volt-tx: #4a6600; --volt-soft: rgba(196, 240, 30, .26);
  --ok: #1f9d5c; --ok-tx: #157a45; --warn: #f57a2a; --warn-tx: #b0501a; --bad-tx: #b42318; --info-tx: #2456a6;
  --r: 14px; --r-s: 10px;
  --disp: "Oswald", "Arial Narrow", sans-serif; --ui: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--tx); }
body { font: 14px/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--volt-tx); outline-offset: 2px; }
.eyebrow { font: 600 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* avatars: photo or initials */
.av-i { border-radius: 50%; object-fit: cover; flex: none; }
.av-m { display: inline-grid !important; place-items: center; flex-direction: row !important; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: .02em; line-height: 1; flex: none; }

/* pills */
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--s2); color: var(--mu); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: rgba(31,157,92,.12); color: var(--ok-tx); }
.st.warn { background: rgba(245,122,42,.14); color: var(--warn-tx); }
.st.bad { background: rgba(180,35,24,.1); color: var(--bad-tx); }
.st.info { background: rgba(36,86,166,.1); color: var(--info-tx); }
.st.volt { background: var(--volt); color: var(--volt-ink); }

/* buttons + fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.btn.volt { background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 0 0 1px rgba(90,125,0,.22); }
.btn.dark { background: var(--tx); color: #fff; }
.btn.line { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--mu2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--mu); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--s1); font-size: 15px; }
.fld textarea { min-height: 76px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--volt-tx); outline-offset: -1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg-w { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mu); font-size: 13px; font-weight: 500; background: var(--s1); }
.chip.on { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.chip b { font-weight: 700; margin-left: 4px; }

/* sheet: right panel on desktop, bottom sheet on phones */
.ov { position: fixed; inset: 0; z-index: 70; background: rgba(12, 14, 10, .42); display: none; }
.ov.on { display: block; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--s1); padding: 24px 24px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; box-shadow: -24px 0 60px rgba(0,0,0,.18); }
.sheet h2 { font: 600 24px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .01em; padding-right: 48px; }
.sheet .sub { color: var(--mu); margin-top: -8px; }
.sh-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px; font-size: 26px; line-height: 1; color: var(--mu); }
.sh-x:hover { background: var(--s2); }
.sh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sh-acts .btn { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--mu); }
.kv dd { font-weight: 600; }
@media (max-width: 760px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; padding: 20px 16px 24px; }
  .row2 { grid-template-columns: 1fr; }
}

/* toast */
.toast { position: fixed; left: 50%; top: 18px; z-index: 80; transform: translate(-50%, -12px); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--tx); color: #fff; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* drawer (phones) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(12, 14, 10, .42); display: none; }
.scrim.on { display: block; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); align-items: center; justify-content: center; flex: none; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--tx); position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  [data-drawer] { position: fixed !important; top: 0; left: 0; bottom: 0; z-index: 65; width: min(300px, 84vw); height: 100dvh !important; display: flex !important; flex-direction: column; overflow-y: auto; transform: translateX(-104%); transition: transform .22s ease-out; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  [data-drawer].open { transform: none; }
}

/* the example's other views */
.views { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--mu); }
.views a { text-decoration: underline; text-underline-offset: 2px; color: var(--tx); font-weight: 500; }

/* the scripted callout when something arrives from another page */
.callout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--volt-soft); box-shadow: inset 0 0 0 1px #b9d94a; font-size: 13.5px; }
.callout b { font-weight: 700; }
.callout .x { margin-left: auto; width: 36px; height: 36px; border-radius: 8px; font-size: 20px; color: var(--mu); flex: none; }
.mb-chat { --mb-accent: #4a6600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
*, *::before, *::after { font-style: normal !important; }
