:root {
  --bg: #080808;
  --panel: #131313;
  --panel-2: #1b1b1b;
  --line: #2c2c2c;
  --text: #eceef2;
  --muted: #9aa1ad;
  --accent: #ff0013;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 0, 19, 0.16);
  --good: #3ecf8e;
  --warn: #f5c451;
  --bad: #ff6b6b;
  --blue: #5aa9ff;
  --radius: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 500px at 50% -200px, rgba(255, 0, 19, 0.16), transparent 70%), var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; }
h1 { font-size: 28px; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.92); backdrop-filter: blur(8px); box-shadow: 0 2px 0 var(--accent);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8d, var(--accent) 45%, #7a0009 100%); box-shadow: 0 0 18px rgba(255,0,19,.6); }
.brand-logo { height: 46px; width: auto; display: block; }
.hero-logo { max-width: 340px; width: 70%; height: auto; margin: 0 auto 18px; display: block; }
.topbar nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 80px; }
.narrow { max-width: 760px; }

/* cards & forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 680px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #d7dae0; }
label .opt { color: var(--muted); font-weight: 400; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=file] { color: var(--muted); font: inherit; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer; font-size: 13.5px; user-select: none;
}
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #ff9a9d; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }

.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: #3c414c; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

.alert { padding: 12px 14px; border-radius: 9px; border: 1px solid; margin-bottom: 14px; font-size: 14px; }
.alert.err { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); color: #ffb3b3; }
.alert.info { border-color: rgba(90,169,255,.35); background: rgba(90,169,255,.08); color: #bcdcff; }
.alert.ok { border-color: rgba(62,207,142,.35); background: rgba(62,207,142,.08); color: #a9f0cf; }
.alert.warn { border-color: rgba(245,196,81,.35); background: rgba(245,196,81,.08); color: #ffe39e; }

/* stepper */
.steps { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.steps li { list-style: none; flex: 1; min-width: 120px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.steps li.done { color: var(--text); border-color: #7a0009; }
.steps li.cur { color: var(--text); border-color: var(--accent); font-weight: 600; }
.steps { padding: 0; }

/* availability grid */
.avail-grid { display: grid; grid-template-columns: 120px repeat(7, 1fr); gap: 5px; user-select: none; touch-action: none; }
.ag-day { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.ag-block { font-size: 12.5px; display: flex; flex-direction: column; justify-content: center; }
.ag-block span { color: var(--muted); font-size: 11.5px; }
.ag-cell { height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); cursor: default; padding: 0; }
.avail-grid.editable .ag-cell { cursor: pointer; }
.avail-grid.editable .ag-cell:hover { border-color: #4a505d; }
.ag-cell.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(255,80,80,.35) inset; }
.ag-cell[disabled] { opacity: 1; }
@media (max-width: 560px) { .avail-grid { grid-template-columns: 78px repeat(7, 1fr); gap: 3px; } .ag-block span { display: none; } .ag-cell { height: 36px; } }

.mini-avail { display: grid; grid-template-columns: repeat(7, 7px); gap: 2px; }
.mini-avail i { width: 7px; height: 7px; border-radius: 2px; background: #2a2e36; display: block; }
.mini-avail i.on { background: var(--accent); }

/* ICA */
.ica-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 26px !important; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--text); border-color: var(--accent); }

/* pills */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #2a2e36; color: #cfd3da; white-space: nowrap; }
.pill.new { background: rgba(90,169,255,.15); color: #9ccbff; }
.pill.interviewing { background: rgba(176,132,255,.16); color: #cdb3ff; }
.pill.approved { background: rgba(62,207,142,.15); color: #8de8bd; }
.pill.active { background: rgba(255,0,19,.18); color: #ff9a9d; }
.pill.contractor { background: rgba(62,207,142,.28); color: #c3ffe2; }
.pill.inactive, .pill.declined { background: #24272d; color: #8a909a; }
.pill.full { background: rgba(62,207,142,.15); color: #8de8bd; }
.pill.partial { background: rgba(245,196,81,.15); color: #ffe39e; }
.pill.none { background: #24272d; color: #8a909a; }
.pill.mine { background: var(--accent); color: var(--accent-ink); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--panel); font-weight: 700; position: sticky; top: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #181b21; }
tbody tr:last-child td { border-bottom: 0; }
.ok-mark { color: var(--good); font-weight: 700; }
.no-mark { color: #5d636e; }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } }

/* coverage heatmap */
.coverage { display: grid; grid-template-columns: 110px repeat(7, 1fr); gap: 4px; }
.coverage .cv { height: 36px; border-radius: 7px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; cursor: pointer; background: var(--panel-2); color: var(--muted); }
.coverage .cv.sel { outline: 2px solid #fff; }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 41; overflow-y: auto; padding: 22px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-size: 14px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }

/* shifts */
.shift { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.shift.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.shift-head { display: flex; gap: 14px; align-items: flex-start; }
.date-badge { min-width: 58px; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; }
.date-badge .m { font-size: 11px; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.date-badge .d { font-size: 22px; font-weight: 800; line-height: 1.1; }
.date-badge .w { font-size: 11px; color: var(--muted); }
.shift-meta { color: var(--muted); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.cand { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cand .name { font-weight: 600; min-width: 160px; }
.cand .spacer { flex: 1; }
.progress { height: 6px; background: #2a2e36; border-radius: 99px; overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; }
.progress > i { display: block; height: 100%; background: var(--good); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* landing */
.hero { text-align: center; padding: 50px 10px 30px; }
.hero h1 { font-size: 38px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.choice:hover { border-color: var(--accent); transform: translateY(-2px); }
.choice h3 { color: var(--accent); }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: #23262d; border: 1px solid var(--line); padding: 11px 16px; border-radius: 10px; z-index: 60; font-weight: 600; font-size: 14px; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: rgba(255,107,107,.5); color: #ffb3b3; }

@media print { .topbar, .tabs, .btn { display: none !important; } body { background: #fff; color: #000; } }

@media (max-width: 560px) {
  .topbar { padding: 12px 14px; }
  .brand-name { font-size: 14px; }
  #who { display: none; }
  .shift-head { flex-wrap: wrap; }
  .shift-head > div:last-child { width: 100%; }
  .shift-head > div:last-child .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}

/* Arizona Stage red & black accents */
.btn.primary { box-shadow: 0 4px 18px rgba(255,0,19,.28); }
.btn.primary:hover { background: #d60010; border-color: #d60010; filter: none; }
.choice h3 { color: #ff4a50; }
a { color: #ff4a50; }
.hero h1 { text-transform: uppercase; letter-spacing: .02em; }
.hero h1 span { color: var(--accent); }
.date-badge .m { color: #ff4a50; }

/* agreement */
.ica-doc { background: #fff; color: #16161a; border-radius: 10px; padding: 22px 22px 18px; max-height: 460px; overflow-y: auto; border-top: 5px solid var(--accent); font-size: 14.5px; line-height: 1.55; }
.ica-doc h3 { font-size: 19px; text-align: center; margin-bottom: 12px; color: #16161a; }
.ica-terms { display: grid; gap: 11px; }
.ica-terms p, .ica-parties { margin: 0; }
.ica-parties { color: #4b4852; margin-bottom: 12px; }
.ica-parties b { color: #16161a; }
.ica-name { color: #b5221d; border-bottom: 1.5px solid #b5221d; padding: 0 2px; }
.ica-name.empty { color: #888; font-weight: 400; font-style: italic; border-bottom-style: dashed; }
.ica-services { border: 1.5px solid #16161a; padding: 9px 11px; }
.ica-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; border: 1.5px solid #ddd; padding: 11px; }
.ica-tier { display: flex; gap: 8px; align-items: center; color: #777; font-size: 13.5px; }
.ica-tier .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #888; flex: none; }
.ica-tier.on { color: #16161a; font-weight: 700; }
.ica-tier.on .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 0 45%, transparent 50%); }
.ica-lock { font-size: 12px; color: #777; margin-top: 4px; }
@media (max-width: 480px) { .ica-tiers { grid-template-columns: 1fr; } .ica-doc { padding: 16px; } }
.pad-wrap { position: relative; background: #fff; border: 2px dashed #777; border-radius: 10px; touch-action: none; }
.pad-wrap.bad { border-color: var(--bad); }
.sigpad { display: block; width: 100%; height: 170px; cursor: crosshair; }
.pad-hint { position: absolute; left: 14px; bottom: 10px; color: #888; font-size: 13px; pointer-events: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; flex: none; }
.placement-cta { background: var(--panel-2); border: 1px solid var(--accent); border-radius: 12px; padding: 18px; margin: 18px auto; max-width: 460px; }

/* placement */
.pl-grid { display: grid; gap: 2px; }
.pl-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pl-label { font-size: 14px; }
.pl-opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pl-opts .chip span { padding: 6px 10px; font-size: 12.5px; }
@media (max-width: 760px) { .pl-row { grid-template-columns: 1fr; } .pl-opts { justify-content: flex-start; } }
.lvl { display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 800; background: #2a2a2a; color: #ddd; }
.lvl.l1 { background: #3a2a10; color: #ffcf80; } .lvl.l2 { background: #10304a; color: #9ccbff; } .lvl.l3 { background: #0f3d2a; color: #8de8bd; }
.score-bar { height: 8px; background: #2a2a2a; border-radius: 99px; overflow: hidden; }
.score-bar > i { display: block; height: 100%; background: var(--accent); }
.score-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; margin: 6px 0; }

.ica-terms ol, .ica-terms ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

.pl-missing { background: rgba(255,0,19,.08); border-radius: 8px; box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }

.pill.skill { background: rgba(90,169,255,.16); color: #9ccbff; vertical-align: middle; }
.log-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.log-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0; }
.log-row input { width: 120px; }

.checklist { display: grid; gap: 8px; }
input.tiny { width: 108px; padding: 5px 6px; font-size: 13px; }
.fb-block { border-top: 1px solid var(--line); padding: 14px 0; }
.fb-block h3 { margin: 0 0 6px; }


/* Teams */
.lvl { white-space: nowrap; }
.lvl.l1 { background: #3a2a10; color: #ffcf80; }
.lvl.l2 { background: #10304a; color: #9ccbff; }
.lvl.l3 { background: #2e1f47; color: #d2b8ff; }
.lvl.lgreen { background: #0f3d2a; color: #8de8bd; }
.lvl.lred { background: #4a1014; color: #ff9aa0; }
.lvl.lgold { background: #463712; color: #ffd966; }
tr.group-row td { background: #121418; padding: 10px 12px; border-top: 2px solid var(--line, #2a2e36); cursor: default; }
tr.group-row .lvl { font-size: 13px; padding: 3px 10px; margin-right: 6px; }
.notify-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-bottom: 14px; border: 1px dashed var(--line, #2a2e36); border-radius: 10px; }
.notify-box select { width: auto; min-width: 260px; }
.notify-box select:disabled { opacity: .5; }
.notify-box .small { flex-basis: 100%; }

/* Paid contractors */
.pill.connecteam { background: rgba(120,140,255,.22); color: #c9d2ff; }
tr.total-row td { border-top: 2px solid var(--line, #2a2e36); cursor: default; }
.cica-text { max-height: 420px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line, #2a2e36); border-radius: 10px; background: #0d0f12; font-size: 14px; line-height: 1.6; }
.cica-text p { margin: 0 0 10px; }
.cica-box { margin: 0 0 12px 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.03); }
.cica-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 0 0 6px 14px; }
.cica-tier { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line, #2a2e36); border-radius: 8px; opacity: .55; font-size: 13px; }
.cica-tier .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.cica-tier.on { opacity: 1; border-color: var(--accent); color: #fff; font-weight: 700; }
.cica-tier.on .dot { background: var(--accent); border-color: var(--accent); }
.pay-big { font-size: 34px; font-weight: 800; }

/* ============================================================
   Cream content panels
   The page frame (header, background, tabs, titles) stays black;
   cards, tables, shift cards, the profile drawer and agreements
   use a warm cream surface with dark text so they're easier to read.
   ============================================================ */
.card, .shift, .table-wrap, .drawer, .choice, .cica-text, .empty {
  --panel: #fbf6ea;
  --panel-2: #f3ecdc;
  --line: #e2d8c3;
  --text: #1f1b16;
  --muted: #6e665a;
  --good: #13824f;
  --warn: #9a6400;
  --bad: #c62828;
  --blue: #1d5fa8;
  --accent-soft: rgba(255, 0, 19, 0.10);
  color: var(--text);
}
.card, .shift, .drawer, .choice { background: var(--panel); border-color: var(--line); }
.table-wrap { background: var(--panel); }
.empty { background: var(--panel); }
.card input, .card select, .card textarea,
.drawer input, .drawer select, .drawer textarea,
.shift input, .shift select, .table-wrap input, .table-wrap select { background: #fffdf8; color: var(--text); border-color: #d9cdb4; }
.card input:disabled, .drawer input:disabled { background: #f1eadb; color: var(--muted); }
.card .chip span, .drawer .chip span, .shift .chip span { background: #f3ecdc; color: var(--text); border-color: #d9cdb4; }
.card .chip input:checked + span, .drawer .chip input:checked + span, .shift .chip input:checked + span { background: rgba(255,0,19,.10); border-color: var(--accent); color: #b0000d; }
.card .btn:not(.primary), .drawer .btn:not(.primary), .shift .btn:not(.primary), .table-wrap .btn:not(.primary) { color: var(--text); border-color: #d9cdb4; }
.card .btn.danger, .drawer .btn.danger, .shift .btn.danger, .table-wrap .btn.danger { color: var(--bad); }
.card .btn.ghost, .drawer .btn.ghost, .shift .btn.ghost, .table-wrap .btn.ghost { background: transparent; }
.card .btn:not(.primary):hover, .drawer .btn:not(.primary):hover, .shift .btn:not(.primary):hover, .table-wrap .btn:not(.primary):hover { background: #ece3cf; }

/* tables */
.table-wrap th { background: #f3ecdc; color: var(--muted); }
.table-wrap td { border-color: var(--line); }
.table-wrap tbody tr:hover { background: #f3ebda; }
.table-wrap tr.group-row td { background: #efe5cf; border-top-color: #d9cdb4; }
.table-wrap tr.total-row td { border-top-color: #d9cdb4; }

/* status pills on cream */
.card .pill, .shift .pill, .table-wrap .pill, .drawer .pill { background: #ebe3d2; color: #4a443b; }
:is(.card, .shift, .table-wrap, .drawer) .pill.new, :is(.card, .shift, .table-wrap, .drawer) .pill.skill { background: #dceafb; color: #1d4f8a; }
:is(.card, .shift, .table-wrap, .drawer) .pill.interviewing { background: #ece2fb; color: #5b3a99; }
:is(.card, .shift, .table-wrap, .drawer) .pill.approved, :is(.card, .shift, .table-wrap, .drawer) .pill.full { background: #d8f1e4; color: #136c43; }
:is(.card, .shift, .table-wrap, .drawer) .pill.active { background: #ffe0e2; color: #b0000d; }
:is(.card, .shift, .table-wrap, .drawer) .pill.contractor { background: #c9ecd9; color: #0e5c38; }
:is(.card, .shift, .table-wrap, .drawer) .pill.connecteam { background: #e2e6ff; color: #3a45a8; }
:is(.card, .shift, .table-wrap, .drawer) .pill.inactive, :is(.card, .shift, .table-wrap, .drawer) .pill.declined, :is(.card, .shift, .table-wrap, .drawer) .pill.none { background: #ece6da; color: #7a7366; }
:is(.card, .shift, .table-wrap, .drawer) .pill.partial { background: #fbefcf; color: #8a5a00; }
:is(.card, .shift, .table-wrap, .drawer) .pill.mine { background: var(--accent); color: #fff; }

/* team badges on cream */
:is(.card, .shift, .table-wrap, .drawer) .lvl { background: #ebe3d2; color: #4a443b; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.l1 { background: #fbe5c2; color: #8a5300; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.l2 { background: #dceafb; color: #1d4f8a; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.l3 { background: #ebe1fb; color: #5b3a99; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.lgreen { background: #d8f1e4; color: #136c43; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.lred { background: #ffdfe1; color: #b0000d; }
:is(.card, .shift, .table-wrap, .drawer) .lvl.lgold { background: #fbefc4; color: #7a5d00; }

/* alerts on cream */
:is(.card, .drawer) .alert.err { background: #fde8e8; border-color: #f2b8b8; color: #9b1c1c; }
:is(.card, .drawer) .alert.info { background: #e4eefb; border-color: #b9d2f2; color: #1d4f8a; }
:is(.card, .drawer) .alert.ok { background: #e2f5ea; border-color: #b4e2c7; color: #136c43; }
:is(.card, .drawer) .alert.warn { background: #fdf3d6; border-color: #efd793; color: #7a5200; }

/* bits and pieces */
:is(.card, .shift, .drawer) .date-badge { background: #fffdf8; border-color: var(--line); }
:is(.card, .shift, .table-wrap, .drawer) .progress, :is(.card, .drawer) .score-bar { background: #e3d9c4; }
:is(.card, .table-wrap, .drawer) .mini-avail i { background: #e3d9c4; }
:is(.card, .table-wrap, .drawer) .mini-avail i.on { background: var(--accent); }
:is(.card, .drawer) .ag-cell { background: #fffdf8; border-color: #d9cdb4; }
:is(.card, .drawer) .ag-cell.on { background: var(--accent); border-color: var(--accent); }
:is(.card, .drawer) .coverage .cv { color: #4a443b; border-color: #d9cdb4; }
:is(.card, .drawer) .pre { background: #fffdf8; border-color: var(--line); }
.cica-text { background: #fffdf8; }
.cica-box { background: rgba(0,0,0,.03); }
.cica-tier { border-color: #d9cdb4; }
.cica-tier.on { color: #1f1b16; background: rgba(255,0,19,.06); }
.choice:hover { border-color: var(--accent); }
.choice h2, .choice h3 { color: var(--text); }
.placement-cta { background: #fbf6ea; color: #1f1b16; }
:is(.card, .shift, .table-wrap, .drawer, .choice) label { color: #3d372f; }
:is(.card, .shift, .table-wrap, .drawer, .choice) label .opt { color: var(--muted); }
:is(.card, .drawer) .section-title { color: #7a6f60; }
:is(.card, .drawer) ::placeholder { color: #a39a8b; }

/* Home page cards: red gradient */
.choice-grid .choice {
  background: linear-gradient(145deg, #ff2a3a 0%, #d0000f 55%, #8c000a 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(255,0,19,.18);
  color: #fff;
}
.choice-grid .choice h3 { color: #fff; }
.choice-grid .choice p, .choice-grid .choice .muted { color: rgba(255,255,255,.88); }
.choice-grid .choice:hover { border-color: rgba(255,255,255,.5); box-shadow: 0 14px 34px rgba(255,0,19,.32); transform: translateY(-3px); }
.choice-grid .choice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Projects / events */
.project { margin-bottom: 18px; border: 1px solid #3a1418; border-left: 4px solid var(--accent); border-radius: 14px; background: linear-gradient(180deg, rgba(255,0,19,.08), rgba(255,0,19,.02)); padding: 16px 16px 6px; }
.project-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.project-head h2 { color: #fff; }
.project-head .shift-meta { color: #d6d0c4; }
.project-head .progress { background: rgba(255,255,255,.18); }
.project-shifts .shift { margin-bottom: 10px; }
.crew-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 10px; background: #f3ecdc; border: 1px solid var(--line); border-radius: 10px; }
.crew-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #d9cdb4; font-weight: 600; font-size: 13px; }
.pshift { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f6efe0; }
.pshift-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr .6fr auto; gap: 10px; align-items: end; }
.pshift-grid .field { margin: 0; }
.pshift-grid .r-remove { margin-bottom: 4px; }
.chips.sm .chip span { padding: 3px 9px; font-size: 12px; }
.chips.sm { margin-top: 8px; }
@media (max-width: 760px) { .pshift-grid { grid-template-columns: 1fr 1fr; } .pshift-grid .r-remove { grid-column: span 2; } }

/* Time clock (contractors) */
.clock-card { text-align: center; padding: 22px 18px; }
.clock-card .clock-status { font-weight: 800; font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.clock-card .field { text-align: left; max-width: 420px; margin-left: auto !important; margin-right: auto !important; }
.clock-card .clock-time { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -.02em; }
.clock-btn { display: block; width: 100%; max-width: 420px; margin: 14px auto 0; padding: 18px; font-size: 20px; font-weight: 800; border-radius: 14px; border: none; color: #fff !important; }
.clock-btn.in { background: #138a55 !important; box-shadow: 0 8px 20px rgba(19,138,85,.3); }
.clock-btn.out { background: var(--accent) !important; box-shadow: 0 8px 20px rgba(255,0,19,.3); }
.clock-btn:disabled { opacity: .6; }
.clock-card.on { border: 2px solid #138a55; }
.clock-dot { width: 12px; height: 12px; border-radius: 50%; background: #13a35f; box-shadow: 0 0 0 0 rgba(19,163,95,.6); animation: clockpulse 1.6s infinite; }
@keyframes clockpulse { 0% { box-shadow: 0 0 0 0 rgba(19,163,95,.6); } 70% { box-shadow: 0 0 0 10px rgba(19,163,95,0); } 100% { box-shadow: 0 0 0 0 rgba(19,163,95,0); } }
@media (prefers-reduced-motion: reduce) { .clock-dot { animation: none; } }
.clock-break { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.clock-break input { width: 90px; text-align: center; }
.install-tip { border-left: 4px solid var(--accent); }

/* Timesheet drawer */
.drawer.wide { width: min(980px, 100vw); }
.ts-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f3ecdc; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.ts-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ts-tiles > div { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ts-big { font-size: 26px; font-weight: 800; }
.ts-table input[type=time] { width: 112px; padding: 6px; }
.ts-table input[type=number] { padding: 6px; }
.ts-table td.nowrap { white-space: nowrap; }
.ts-table td.nowrap .btn { margin-left: 4px; }
#hTotals tr[data-ts], #payRows tr[data-id] { cursor: pointer; }

/* ---------- Forms, directory, photos & videos, announcements ---------- */
.form-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.form-pick { --panel: #fbf6ea; --line: #e2d8c3; --muted: #6e665a; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: #1f1b16; cursor: pointer; font: inherit; }
.form-pick:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form-pick strong { display: block; margin-bottom: 2px; }
.form-pick .muted { color: var(--muted); display: block; }
.fp-icon { font-size: 22px; line-height: 1; flex: none; }
.form-row, .doc-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-row:first-child, .doc-row:first-of-type { border-top: 0; }
.doc-icon { font-size: 20px; flex: none; }
.form-card.urgent { border-left: 4px solid var(--bad); }
.form-card.flash, .flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 96px; height: 96px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #e9e1cf; cursor: pointer; }
.thumb img, .media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
img.no-thumb { visibility: hidden; }
.media-group { margin-bottom: 16px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.media-tile { margin: 0; }
.media-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #e9e1cf; cursor: pointer; }
.media-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.media-tile figcaption { margin-top: 6px; }
.announce { margin-bottom: 10px; }
.announce.pinned { border-left: 4px solid var(--accent); }
#announcements .announce { padding: 14px 16px; }
.sig-choices { display: grid; gap: 8px; }
.sig-choice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--panel); }
.sig-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sig-choice img { height: 46px; max-width: 180px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px 8px; border: 1px solid var(--line); }
.sig-choice span { flex: 1; }
