/* WEE by CrewTank — web app styles. Same tokens as the public site. System fonts only. */
:root {
  --orange: #F26B1D; --orange-dark: #C8540F; --orange-text: #B44A0B;
  --charcoal: #2B2D31; --charcoal-deep: #1E1F22; --off-white: #F6F5F2; --white: #FFFFFF;
  --ink: #1E1F22; --ink-soft: #4A4D55; --line: #DEDBD4;
  --ok: #1D6B3E; --ok-bg: #E2F2E8; --warn: #7A4B00; --warn-bg: #FFF1D6; --bad: #A12626; --bad-bg: #FBE4E4;
  --info: #1F4F8A; --info-bg: #E4EEFB; --gray: #4A4D55; --gray-bg: #ECEBE7;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--off-white); overflow-x: hidden; }
a { color: var(--orange-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: 10px 14px; z-index: 20; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

header.top { background: var(--charcoal-deep); color: var(--white); padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand img { height: 30px; width: auto; }
.brand small { display: block; font-weight: 600; font-size: 12px; letter-spacing: .08em; color: #C9CBD1; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #C9CBD1; }
.who select { min-height: 44px; }
nav.tabs { background: var(--charcoal); display: flex; overflow-x: auto; gap: 2px; padding: 0 8px; scrollbar-width: thin; }
nav.tabs a { color: #E6E7EA; text-decoration: none; padding: 0 12px; min-height: 48px; display: flex; align-items: center; white-space: nowrap; border-bottom: 3px solid transparent; font-size: 15px; }
nav.tabs a.on { color: var(--white); border-bottom-color: var(--orange); font-weight: 700; }
nav.tabs .count { background: var(--orange); color: var(--ink); border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 6px; font-weight: 700; }

main { max-width: 900px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 24px; margin: 6px 0 12px; line-height: 1.25; }
h2 { font-size: 19px; margin: 22px 0 8px; }
h3 { font-size: 17px; margin: 12px 0 6px; }
p { margin: 8px 0; }
.muted { color: var(--ink-soft); font-size: 15px; }
.small { font-size: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0 4px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8E8A80; border-radius: 8px; font: inherit; background: var(--white); color: var(--ink);
}
input[type=file] { min-height: 44px; font-size: 15px; max-width: 100%; }
textarea { min-height: 88px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; margin: 4px 0; }
.check input { width: 22px; height: 22px; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 0 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 12px; margin: 12px 0; }
legend { font-weight: 700; padding: 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 9px;
  background: var(--orange); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #FF7F33; }
.btn.sec { background: var(--white); color: var(--ink); border: 2px solid var(--charcoal); }
.btn.dark { background: var(--charcoal); color: var(--white); }
.btn.bad { background: var(--bad); color: var(--white); }
.btn.ok { background: var(--ok); color: var(--white); }
.btn.wide { width: 100%; margin-top: 14px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--gray-bg); color: var(--gray); }
.b-verified, .b-ok, .b-approved, .b-confirmed, .b-in_progress, .b-completed, .b-done { background: var(--ok-bg); color: var(--ok); }
.b-submitted, .b-info, .b-invited, .b-accepted, .b-reviewing, .b-shortlisted, .b-pending { background: var(--info-bg); color: var(--info); }
.b-expired, .b-warn, .b-open, .b-urgent { background: var(--warn-bg); color: var(--warn); }
.b-revoked, .b-bad, .b-rejected, .b-declined, .b-cancelled, .b-suspended { background: var(--bad-bg); color: var(--bad); }
.standin { display: block; background: var(--warn-bg); color: var(--warn); border: 1px solid #E8C47A; border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 15px; margin: 8px 0; }
.standin::before { content: "Stand-in"; display: inline-block; background: var(--warn); color: var(--white); border-radius: 6px; padding: 0 7px; margin-right: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.standin.plain::before { content: none; }

.why { background: #F3F8F4; border-left: 4px solid var(--ok); padding: 6px 10px; font-size: 15px; margin-top: 8px; }
.whynot { background: #FCF4F4; border-left: 4px solid var(--bad); padding: 6px 10px; font-size: 15px; margin-top: 8px; }
.note { background: var(--info-bg); border-left: 4px solid var(--info); padding: 6px 10px; font-size: 15px; margin-top: 8px; }
.why ul, .whynot ul, .note ul { margin: 4px 0; padding-left: 20px; }
.flag { color: var(--warn); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); min-height: 44px; display: block; }
.tile b { display: block; font-size: 28px; color: var(--charcoal-deep); }
.tile span { font-size: 14px; color: var(--ink-soft); }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.list > li:last-child { border-bottom: 0; }
.score { font-size: 28px; font-weight: 800; }
.score small { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.void { text-decoration: line-through; color: var(--ink-soft); }
.phrase { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 640px) { .phrase { grid-template-columns: 1fr 1fr; gap: 12px; } }
.phrase .es { font-weight: 700; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }

#toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--charcoal-deep); color: var(--white);
  padding: 12px 16px; border-radius: 10px; display: none; z-index: 30; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
#toast.bad { background: var(--bad); }
footer.foot { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 18px 16px 28px; border-top: 1px solid var(--line); }
footer.foot a { margin: 0 8px; display: inline-block; min-height: 44px; line-height: 44px; }
.center { text-align: center; }
.signin { max-width: 440px; margin: 24px auto; }
.hidden { display: none !important; }
