/* Seven Tree matte UI, shared by Access, Academy and Billing.
   Every rule is scoped to .stm-ui so the theme and other plugins stay untouched. */
:root{color-scheme:dark}
.stm-ui{
  --ease-out:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1);--ease-spring:cubic-bezier(.34,1.56,.64,1);
  --raise:10px 10px 24px rgba(0,0,0,.55),-8px -8px 20px rgba(255,255,255,.028);
  --raise-sm:6px 6px 14px rgba(0,0,0,.5),-5px -5px 12px rgba(255,255,255,.026);
  --well:inset 5px 5px 12px rgba(0,0,0,.6),inset -4px -4px 10px rgba(255,255,255,.03);
  --well-sm:inset 3px 3px 7px rgba(0,0,0,.6),inset -2px -2px 6px rgba(255,255,255,.03);
  --y:#ffcb14;--y-dim:#8a6d00;--bad:#e0806c;
  background:#212121 !important;color:#d6d6d6 !important;
  font-family:'Raleway',system-ui,sans-serif !important;font-size:17px;line-height:1.55;
  -webkit-font-smoothing:antialiased;box-sizing:border-box;position:relative;
  padding:clamp(28px,5vw,64px) clamp(16px,4vw,48px);border-radius:0;
}
.stm-ui *,.stm-ui *::before,.stm-ui *::after{box-sizing:border-box}
.stm-ui a{color:#ffcb14 !important;text-decoration:none !important}
.stm-ui a:hover{color:#ffe07a !important}
.stm-ui h1,.stm-ui h2,.stm-ui h3,.stm-ui h4{font-family:'Raleway',system-ui,sans-serif !important;color:#f2f2f2 !important;margin:0 !important;padding:0 !important;letter-spacing:-.02em;line-height:1.1;text-transform:none !important;background:none !important;border:0 !important}
.stm-ui h1{font-size:clamp(34px,4vw,54px) !important;font-weight:800 !important}
.stm-ui h2{font-size:clamp(26px,3vw,36px) !important;font-weight:800 !important}
.stm-ui h3{font-size:22px !important;font-weight:800 !important}
.stm-ui h1 em,.stm-ui h2 em{font-style:normal !important;color:#ffcb14 !important}
.stm-ui p{margin:0 0 1em !important;color:#d6d6d6 !important}
.stm-ui .stm-wrap{max-width:1240px;margin:0 auto}
.stm-ui .stm-mono,.stm-ui .stm-eyebrow{font-family:'JetBrains Mono',ui-monospace,monospace !important;letter-spacing:.12em;text-transform:uppercase;font-size:12px;color:#a8a8a8 !important}
.stm-ui .stm-eyebrow{display:inline-flex;align-items:center;gap:10px;background:#1d1d1d !important;box-shadow:var(--well-sm);border-radius:20px;padding:7px 14px;margin-bottom:18px}
.stm-ui .stm-muted{color:#8c8c8c !important}

/* surfaces */
.stm-ui .stm-panel{background:linear-gradient(150deg,#262626,#1f1f1f) !important;box-shadow:var(--raise);border-radius:30px;padding:clamp(22px,3vw,40px);border:0 !important}
.stm-ui .stm-card{background:linear-gradient(150deg,#262626,#202020) !important;box-shadow:var(--raise-sm);border-radius:22px;padding:22px;border:0 !important;min-width:0}
.stm-ui .stm-well{background:#1d1d1d !important;box-shadow:var(--well-sm);border-radius:16px;padding:16px}

/* LEDs */
.stm-ui .stm-led{width:8px;height:8px;border-radius:50%;background:#333 !important;display:inline-block;flex:none;transition:background .3s var(--ease-out),box-shadow .3s var(--ease-out)}
.stm-ui .stm-led.on{background:#ffcb14 !important;box-shadow:0 0 8px #ffcb14}
.stm-ui .stm-led.bad{background:#e0806c !important;box-shadow:0 0 8px #e0806c}
.stm-ui .stm-led.pulse{animation:stmPulse 1.6s var(--ease-io) infinite}
@keyframes stmPulse{0%,100%{box-shadow:0 0 3px #ffcb14;opacity:.6}50%{box-shadow:0 0 10px #ffcb14;opacity:1}}

/* buttons */
.stm-ui .stm-btn{appearance:none;border:0 !important;cursor:pointer;display:inline-flex !important;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 10px 0 26px !important;border-radius:999px !important;background:#ffcb14 !important;color:#1b1b1b !important;font:800 14px/1 'Raleway',system-ui,sans-serif !important;letter-spacing:.06em !important;text-transform:uppercase !important;box-shadow:var(--raise-sm);transition:transform .14s var(--ease-out),filter .2s;text-decoration:none !important;width:auto}
.stm-ui .stm-btn:hover{filter:brightness(1.05);color:#1b1b1b !important}
.stm-ui .stm-btn:active{transform:scale(.97)}
.stm-ui .stm-btn .stm-arrow{width:32px;height:32px;border-radius:50%;background:#1b1b1b !important;display:grid;place-items:center;transition:transform .3s var(--ease-out)}
.stm-ui .stm-btn .stm-arrow svg{width:14px;height:14px;fill:#ffcb14}
.stm-ui .stm-btn:hover .stm-arrow{transform:translateX(3px)}
.stm-ui .stm-btn.ghost{background:#262626 !important;color:#d6d6d6 !important}
.stm-ui .stm-btn.ghost .stm-arrow{background:#1d1d1d !important}
.stm-ui .stm-btn.wide{width:100%}
.stm-ui .stm-btn[disabled],.stm-ui .stm-btn.is-off{background:#262626 !important;color:#777 !important;box-shadow:var(--well-sm);cursor:not-allowed}

/* chips */
.stm-ui .stm-chip{display:inline-flex;align-items:center;gap:8px;font:500 11.5px/1 'JetBrains Mono',ui-monospace,monospace !important;letter-spacing:.1em;text-transform:uppercase;color:#bdbdbd !important;background:#1d1d1d !important;box-shadow:var(--well-sm);padding:8px 12px;border-radius:12px;white-space:nowrap}

/* fields */
.stm-ui label.stm-field{display:grid !important;gap:8px;margin:0 0 16px !important;letter-spacing:normal !important}
.stm-ui label.stm-field span{font:500 11.5px/1 'JetBrains Mono',ui-monospace,monospace !important;letter-spacing:.12em !important;text-transform:uppercase !important;color:#a8a8a8 !important}
.stm-ui input.stm-input,.stm-ui textarea.stm-input{display:block !important;width:100% !important;max-width:none !important;margin:0 !important;float:none !important;height:auto !important;min-height:52px;font-family:'Raleway',system-ui,sans-serif !important;font-size:16px !important;line-height:1.4 !important;letter-spacing:normal !important;text-transform:none !important;padding:14px 18px !important;border:0 !important;border-radius:14px !important;background:#1d1d1d !important;color:#f2f2f2 !important;-webkit-text-fill-color:#f2f2f2 !important;box-shadow:var(--well-sm) !important;outline:none !important;transition:box-shadow .2s}
.stm-ui input.stm-input:focus,.stm-ui textarea.stm-input:focus{box-shadow:var(--well-sm),0 0 0 2px rgba(255,203,20,.45) !important}
.stm-ui input.stm-input:-webkit-autofill{-webkit-box-shadow:inset 0 0 0 100px #1d1d1d !important;-webkit-text-fill-color:#f2f2f2 !important}
.stm-ui .stm-hp{position:absolute !important;left:-9999px !important;width:1px !important;height:1px !important;overflow:hidden !important}
.stm-ui .stm-msg{min-height:22px;font-size:14px;color:#ffb3a6 !important}
.stm-ui .stm-msg.ok{color:#ffcb14 !important}

/* rocker (segmented) */
.stm-ui .stm-rocker{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;position:relative;background:#1d1d1d !important;box-shadow:var(--well-sm);border-radius:16px;padding:5px;user-select:none}
.stm-ui .stm-rocker button{position:relative;z-index:1;appearance:none;border:0 !important;background:none !important;color:#8c8c8c !important;font:600 12px/1 'JetBrains Mono',ui-monospace,monospace !important;letter-spacing:.12em;text-transform:uppercase;padding:13px 18px !important;cursor:pointer;transition:color .25s;border-radius:12px;box-shadow:none !important;min-height:0}
.stm-ui .stm-rocker button[aria-pressed="true"]{color:#1b1b1b !important}
.stm-ui .stm-rocker .stm-cap{position:absolute;top:5px;bottom:5px;left:5px;border-radius:12px;background:#ffcb14 !important;box-shadow:0 0 12px rgba(255,203,20,.25);transition:transform .35s var(--ease-spring),width .35s var(--ease-out)}

/* toggle switch with tally lamp */
.stm-ui .stm-toggle{display:flex;align-items:center;gap:16px;cursor:pointer;padding:12px 14px;border-radius:16px;transition:background .2s;user-select:none}
.stm-ui .stm-toggle:hover{background:rgba(255,255,255,.015) !important}
.stm-ui .stm-toggle .stm-sw{position:relative;width:30px;height:48px;border-radius:10px;background:#1a1a1a !important;box-shadow:var(--well-sm);flex:none}
.stm-ui .stm-toggle .stm-sw i{position:absolute;left:4px;right:4px;top:4px;height:22px;border-radius:7px;background:linear-gradient(180deg,#3a3a3a,#262626) !important;box-shadow:0 3px 6px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08);transition:transform .22s var(--ease-spring)}
.stm-ui .stm-toggle.on .stm-sw i{transform:translateY(18px);background:linear-gradient(180deg,#ffd84d,#e0b000) !important}
.stm-ui .stm-toggle .stm-tally{width:10px;height:10px;border-radius:50%;background:#2c2c2c !important;flex:none;box-shadow:var(--well-sm);transition:all .3s var(--ease-out)}
.stm-ui .stm-toggle.on .stm-tally{background:#ffcb14 !important;box-shadow:0 0 10px #ffcb14}
.stm-ui .stm-toggle .stm-tlabel{color:#d6d6d6 !important;font-size:16px;line-height:1.4;transition:color .3s}
.stm-ui .stm-toggle.on .stm-tlabel{color:#8c8c8c !important;text-decoration:line-through;text-decoration-color:rgba(255,203,20,.5)}

/* VU meter */
.stm-ui .stm-vu{display:grid;grid-template-columns:repeat(24,1fr);gap:3px;align-items:end;height:30px}
.stm-ui .stm-vu i{display:block;border-radius:2px;background:#2a2a2a !important;height:100%;transition:background .25s var(--ease-out),box-shadow .25s}
.stm-ui .stm-vu i.lit{background:#ffcb14 !important;box-shadow:0 0 6px rgba(255,203,20,.45)}
.stm-ui .stm-vu i.lit.hot{background:#ffe07a !important}

/* engraved shutter for locked things */
.stm-ui .stm-engrave{fill:#1a1a1a;filter:drop-shadow(0 1.2px 0 rgba(255,255,255,.075)) drop-shadow(0 -1px 0 rgba(0,0,0,.65))}

/* reveal */
.stm-ui .stm-rv{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
.stm-ui .stm-rv.in{opacity:1;transform:none}

/* grid helpers */
.stm-ui .stm-grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.stm-ui .stm-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stm-ui .stm-sr{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:760px){.stm-ui{font-size:16px}.stm-ui .stm-panel{border-radius:24px}}
