@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-SemiBold.ttf'); font-weight: 600; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-Bold.ttf'); font-weight: 700; }
@font-face { font-family: 'Bungee'; src: url('/fonts/Bungee-Regular.ttf'); }
@font-face { font-family: 'DynaPuff'; src: url('/fonts/DynaPuff-Bold.ttf'); font-weight: 700; }

:root {
  --cherry: #C4362B; --cherry-deep: #A22A21; --hero-red: #B20925;
  --cream: #F4ECE1; --cream-2: #FBF6EE; --teal: #2E7A6F; --teal-deep: #215A52;
  --mustard: #F0C548; --ink: #2B2320; --muted: #7A6F64;
  --line: rgba(43, 35, 32, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Figtree', system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--cream); }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.display { font-family: 'DynaPuff', system-ui, sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.label { font-family: 'Bungee', system-ui, sans-serif; font-size: 11px; letter-spacing: .05em; color: var(--teal); text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; border-radius: 100px;
  font-family: 'Bungee', system-ui, sans-serif; font-size: 13px; padding: 12px 20px; background: var(--mustard); color: var(--cherry-deep);
  box-shadow: 0 3px 0 var(--cherry-deep); transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cherry-deep); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.teal { background: var(--teal); color: var(--cream); box-shadow: 0 3px 0 var(--teal-deep); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: none; border: 2px solid var(--teal); padding: 10px 18px; }
.btn.danger { background: var(--cherry); color: var(--cream); box-shadow: 0 3px 0 var(--cherry-deep); }
.btn.small { font-size: 11px; padding: 8px 14px; }
.btn.block { display: flex; width: 100%; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--cherry); font-weight: 700; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid rgba(43, 35, 32, .28); background: var(--cream-2); outline: none; }
.input:focus { border-color: var(--teal); }
textarea.input { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* surfaces */
.card { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; }
.card + .card { margin-top: 16px; }
.note { border-radius: 14px; padding: 11px 14px; font-weight: 700; font-size: 14px; }
.note.ok { background: var(--teal); color: var(--cream); }
.note.bad { background: rgba(196, 54, 43, .1); border: 1.5px solid var(--cherry); color: var(--cherry-deep); }
.pill { display: inline-block; font-family: 'Bungee', system-ui, sans-serif; font-size: 9.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: 100px; background: var(--teal); color: var(--cream); white-space: nowrap; }
.pill.active { background: var(--cherry); }
.pill.ready { background: var(--mustard); color: var(--cherry-deep); }
.pill.off { background: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: 'Bungee', system-ui, sans-serif; font-size: 10px; letter-spacing: .05em; color: var(--teal); text-transform: uppercase; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(240, 197, 72, .18); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--hero-red); }
.login .card { width: 100%; max-width: 380px; }
.login img { display: block; width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: #fff; }
.login h1 { text-align: center; color: var(--cherry); font-size: 24px; margin-bottom: 18px; }
