:root {
  /* Wright State palette */
  --green: #006a4d;        /* primary */
  --green-dark: #00543b;
  --green-tint: rgba(0, 106, 77, .10);
  --green-range: #b6e0cb;
  --gold: #f2a900;         /* accent */
  --gold-soft: #ffd35c;

  --bg: #f2f5f3;
  --panel: #ffffff;
  --panel2: #eef3f0;
  --line: #dce5e0;
  --text: #16241e;
  --muted: #5c6f67;
  --green-status: #1c8a55;
  --red: #c0392b;
  --amber: #b7791f;
  --shadow: 0 1px 2px rgba(16, 36, 30, .04), 0 6px 20px rgba(16, 36, 30, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  /* Layered texture: faint diagonal weave + a soft gold glow over the green gradient. */
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 14% 0%, rgba(242, 169, 0, .14), transparent 55%),
    linear-gradient(100deg, var(--green-dark), var(--green));
  border-bottom: 3px solid var(--gold);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.logo-cartoon { height: 50px; width: 50px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); border: 2px solid rgba(255, 255, 255, .7); }
.brand h1 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.tag { margin: 0; color: rgba(255, 255, 255, .8); font-size: .8rem; }
.userbox { font-size: .9rem; color: rgba(255, 255, 255, .85); display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.userbox b { color: #fff; }
/* Narrow screens (phones/tablets): keep the header tidy and never clip Sign out. */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: .7rem .9rem; gap: .5rem .75rem; }
  .brand { gap: .55rem; }
  .logo-cartoon { height: 40px; width: 40px; }
  .brand h1 { font-size: 1.05rem; }
  .tag { display: none; }
  .userbox { font-size: .82rem; gap: .5rem; }
}
/* ⚙️ Settings button in the top bar (the old Setup tab lives here now). */
.iconbtn {
  margin: 0; padding: .32rem .5rem; font-size: 1rem; line-height: 1; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4);
  color: #fff; border-radius: 9px;
}
.iconbtn:hover { background: rgba(255, 255, 255, .26); }
.iconbtn.active { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

.view { max-width: 880px; margin: 1.5rem auto; padding: 0 1rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.step-label { margin: 1.5rem 0 .6rem; font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--green); }
.step-label:first-of-type { margin-top: .4rem; }
/* Bigger explanation text under the steps. */
.card .hint, .ltype-hint, .psych-pick .hint, .onservice { font-size: .92rem; line-height: 1.55; }
#tab-request .card > .muted { font-size: .95rem; line-height: 1.55; }
/* Admin "preview as a resident" banner on the New request tab. */
.preview-bar { margin: 0 0 1rem; padding: .7rem .9rem; background: #fff8ec; border: 1px solid #f3e2c0; border-left: 4px solid var(--amber); border-radius: 12px; }
.preview-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.preview-eye { font-weight: 800; color: var(--amber); font-size: .9rem; }
.preview-pick { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .82rem; font-weight: 700; color: var(--text); }
.preview-pick select { width: auto; min-width: 12rem; margin: 0; }
.preview-note { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
/* Each step on the request form sits in its own clearly-shaded panel so the
   sections read as distinct (white cards-within-cards on a soft green wash). */
.step-section { background: var(--green-tint); border: 1px solid #cfe0d7; border-radius: 14px; padding: .15rem 1.1rem 1.15rem; margin: 0 0 1rem; }
.step-section .step-label { margin-top: .95rem; }
.step-section .step-label:first-child { margin-top: .85rem; }
code { background: var(--panel2); padding: .1rem .35rem; border-radius: 4px; color: var(--green-dark); font-size: .85em; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.35rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 .4rem; font-size: 1.1rem; letter-spacing: -.01em; }
.card > .muted:first-of-type { margin-top: 0; }

label { display: block; margin: .65rem 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
label.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; }
input, select, textarea {
  width: 100%; margin-top: .3rem; padding: .6rem .75rem;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-size: .9rem; font-family: inherit; font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
label.row input[type=checkbox] { width: auto; }
label.row select, label.row input { width: 60%; margin-top: 0; }
textarea { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn {
  margin-top: .85rem; padding: .6rem 1.15rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  cursor: pointer; font-size: .9rem; font-weight: 600;
}
.btn:hover { border-color: var(--green); color: var(--green); }
.btn.primary { background: var(--green); border: 1px solid var(--green); color: #fff; box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:disabled, .btn.primary:disabled { background: var(--panel2); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }

/* Leave-type selector */
.leavetypes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; align-items: center; }
.ltype {
  margin: 0; padding: .5rem .95rem; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: .85rem; font-weight: 700; cursor: pointer;
}
.ltype:hover { border-color: var(--green); color: var(--green); }
.ltype.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: var(--shadow); }
.ltype-hint { flex-basis: 100%; margin: .35rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ltype-pill { font-weight: 800; color: var(--green-dark); }

/* Approver email needed (e.g. VA supervisors not yet on file) */
.needemail { margin: .9rem 0 .2rem; padding: .85rem 1rem; background: #eef5fb; border: 1px solid #cfe0f0; border-left: 4px solid var(--green); border-radius: 12px; }
.needemail .step-label { margin: 0 0 .25rem; color: var(--green-dark); }
.needemail .nemail { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 0; font-weight: 600; }
.needemail .nemail span { min-width: 140px; }
.needemail .nemail input { margin: 0; }

/* Exception request (restricted-period leave) */
.exception { margin: .9rem 0 .2rem; padding: .9rem 1rem; background: #fff8ec; border: 1px solid #f3e2c0; border-radius: 12px; }
.exception .exc-check { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; color: var(--amber); font-size: .88rem; }
.exception .exc-check input { width: auto; margin: 0; }
.exception .hint { margin: .45rem 0 .5rem; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.exception textarea { font-family: inherit; font-size: .88rem; }
.exc-note { font-size: .82rem; color: var(--amber); font-weight: 600; margin: .4rem 0 .2rem; }

/* Policy flags on a request card */
.flags { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0 .2rem; }
.flag { font-size: .8rem; line-height: 1.4; padding: .35rem .6rem; border-radius: 8px; }
.flag.warn { background: #fff8ec; color: var(--amber); border: 1px solid #f3e2c0; }
.flag.block { background: #fbe7e4; color: var(--red); border: 1px solid #f3cfca; }

/* Psychotherapy coverage step */
.psych-na { margin: .3rem 0; padding: .65rem .85rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .85rem; }
.psych-pick { margin: .3rem 0 0; }
.psych-pick .hint { font-size: .8rem; color: var(--muted); margin: .1rem 0 .4rem; line-height: 1.45; }

/* Gentle no-PHI hint next to the reason field */
.reason-hint { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.login-err { max-width: 460px; margin: 0 auto 1rem; background: #fbe7e4; color: var(--red); border: 1px solid #f3cfca; border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; font-weight: 600; text-align: center; }
.gbtn.google { justify-content: center; background: #fff; border: 1px solid var(--green); color: var(--green-dark); font-weight: 700; text-decoration: none; }
.gbtn.google:hover { background: var(--green-tint); }

/* Login */
.login { display: grid; place-items: center; min-height: 60vh; }
.login-card { max-width: 460px; }
.login-buttons { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.gbtn {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
  background: #fff; color: var(--text); border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
  font-weight: 600; font-size: .9rem; text-align: left;
}
.gbtn:hover { border-color: var(--green); background: var(--green-tint); }
.gbtn .role { margin-left: auto; font-size: .68rem; color: var(--green-dark); background: var(--gold-soft); padding: .12rem .5rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* Leave balance tracker */
.balancebar { margin-bottom: 1.1rem; }
/* Top panel: 2×2 balance cards (left) with the pace chart squished beside them (right). */
.topgrid { display: grid; grid-template-columns: minmax(250px, 330px) 1fr; gap: 1rem; align-items: start; }
.topcards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.topchart { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.topchart .pace { font-size: .8rem; padding: .5rem .7rem; margin-bottom: .5rem; }
.topchart .chart { border: none; }
.topchart .chart-legend { font-size: .7rem; gap: .7rem; margin-top: .4rem; }
/* Reserve a little room above the cards for the APA speech bubble. */
.balancebar:has(.apa-bubble) .topgrid,
.balancebar:has(.pending-bubble) .topgrid { margin-top: 1.9rem; }
@media (max-width: 760px) { .topgrid { grid-template-columns: 1fr; } }
.bal-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.bal-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.bal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); border-top: 4px solid var(--line); }
.bal-num { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.bal-of { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: .15rem; }
.bal-label { margin-top: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.bal.ok { border-top-color: var(--green-status); }
.bal.ok .bal-num { color: var(--green-status); }
.bal.low { border-top-color: var(--amber); }
.bal.low .bal-num { color: var(--amber); }
.bal.none { border-top-color: var(--red); }
.bal.none .bal-num { color: var(--red); }
.bal.flat { border-top-color: var(--line); }
.bal.flat .bal-num { color: var(--text); }
@media (max-width: 640px) { .bal-cards { grid-template-columns: repeat(2, 1fr); } .bal-num { font-size: 2rem; } }
/* Call-load tracker (reuses balance card styling) */
.bal-cards.three { grid-template-columns: repeat(3, 1fr); }
.callcard .bal-num { color: var(--text); }
.callcard .callcmp { margin-top: .35rem; font-size: .74rem; color: var(--muted); }
.callcard.over { border-top-color: var(--amber); } .callcard.over .bal-num, .callcard.over .callcmp b { color: var(--amber); }
.callcard.under { border-top-color: var(--green-status); } .callcard.under .bal-num, .callcard.under .callcmp b { color: var(--green-status); }
.callcard.even { border-top-color: var(--line); }
@media (max-width: 640px) { .bal-cards.three { grid-template-columns: 1fr; } }

/* APA nudge speech bubble on the educational card */
.bal.has-bubble { position: relative; overflow: visible; }
.apa-bubble {
  position: absolute; left: 50%; right: auto; transform: translateX(-50%);
  width: max-content; max-width: 88vw; bottom: calc(100% + 7px); z-index: 5;
  background: var(--green-dark); color: #fff; font-size: .66rem; line-height: 1.25;
  font-weight: 600; padding: .3rem .6rem; border-radius: 9px; box-shadow: var(--shadow);
  text-align: center; white-space: nowrap;
}
.apa-bubble b { color: var(--gold-soft); }
.apa-bubble::before {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--green-dark);
}
/* Amber "pending approval" speech bubble — same shape as the APA one. */
.pending-bubble {
  position: absolute; left: 50%; right: auto; transform: translateX(-50%);
  width: max-content; max-width: 88vw; bottom: calc(100% + 7px); z-index: 6;
  background: var(--amber); color: #3a2a00; font-size: .66rem; line-height: 1.25;
  font-weight: 700; padding: .3rem .6rem; border-radius: 9px; box-shadow: var(--shadow);
  text-align: center; white-space: nowrap;
}
.pending-bubble b { font-weight: 800; }
.pending-bubble::before {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--amber);
}

/* Leave timeline chart */
#leaveChart { margin-top: .4rem; }
.chart { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.chart .ax { font-size: 10px; fill: var(--muted); font-family: inherit; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
.chart-legend .sw { display: inline-block; width: 16px; height: 10px; margin-right: .3rem; vertical-align: middle; border-radius: 2px; }
.chart-legend .sw.line { background: var(--green-status); height: 3px; }
.chart-legend .sw.dash { background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 7px); height: 3px; }
.chart-legend .sw.sick { background: #c0392b; }
.chart-legend .sw.personal { background: #6b5b95; }
.pace { font-size: .9rem; line-height: 1.5; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.pace.neutral { background: var(--green-tint); color: var(--green-dark); }
.pace.ontrack { background: #e3f5ec; color: var(--green-status); border: 1px solid #b6e0cb; }
.pace.behind { background: #fff8ec; color: var(--amber); border: 1px solid #f0dcae; }
.pace b { color: inherit; }

/* Admin records table */
.rectable { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: .3rem; }
.rectable th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .4rem .5rem; border-bottom: 2px solid var(--line); }
.rectable td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rectable td.n { text-align: center; }
.status.logged { background: var(--green-tint); color: var(--green-dark); }
.btn.mini { margin: 0; padding: .3rem .6rem; font-size: .76rem; border-radius: 7px; }
.rectable td.rowact { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Master call calendar */
.ccal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.ccal-toggle { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 700; font-size: .85rem; color: var(--green-dark); }
.ccal-toggle input { width: auto; margin: 0; }
.ccal-toolbar .btn { margin: 0; }
.ccal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.ccal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 4px; }
.ccal-dow span { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.ccal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ccal-cell { min-height: 74px; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 3px 3px 4px; display: flex; flex-direction: column; gap: 2px; }
.ccal-cell.empty { background: transparent; border: none; }
.ccal-cell.today { box-shadow: inset 0 0 0 2px var(--green-status); }
.ccal-cell.drop-target { outline: 2px dashed var(--green); outline-offset: -2px; background: var(--green-tint); }
.ccal-day { font-size: .72rem; font-weight: 700; color: var(--muted); padding-left: 2px; }
.ccal-list { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.ccall-chip { font-size: .58rem; font-weight: 700; padding: .1rem .3rem; border-radius: 5px; cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid transparent; }
.ccall-chip:active { cursor: grabbing; }
.ccall-chip.mine { box-shadow: inset 0 0 0 1.5px var(--green); }
.ccall-chip.mvhn { background: #fde6e3; color: #9a2820; border-left-color: #c0392b; }
.ccall-chip.mvhw { background: #fce3f0; color: #9b2c63; border-left-color: #e75fa6; }
.ccall-chip.clw { background: #efe7fb; color: #5e3a9e; border-left-color: #8e44ad; }
.ccall-chip.wpafbn { background: #e7f0fb; color: #1b4f86; border-left-color: #2f74c0; }
.ccall-chip.vaw { background: #fdece0; color: #8a4b1e; border-left-color: #d2812f; }
.ccal-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .7rem; font-size: .76rem; color: var(--muted); }
.ccal-legend .ck { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: middle; }
.ccal-legend .ck.mvhn { background: #c0392b; } .ccal-legend .ck.mvhw { background: #e75fa6; }
.ccal-legend .ck.clw { background: #8e44ad; }
.ccal-legend .ck.wpafbn { background: #2f74c0; } .ccal-legend .ck.vaw { background: #d2812f; }
@media (max-width: 640px) { .ccal-cell { min-height: 60px; } .ccall-chip { font-size: .52rem; } }

/* Weekend call coverage board */
.addwk { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.addwk label { margin: 0; font-size: .85rem; }
.addwk input { width: auto; margin: 0; }
.addwk .btn { margin: 0; }
.wk { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow); background: var(--panel); }
.wk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.wk-head h3 { margin: 0; font-size: 1rem; color: var(--green-dark); }
.cov-x { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .2rem .4rem; border-radius: 6px; }
.cov-x:hover { color: var(--red); background: #fbe7e4; }
.wk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.wk-site { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: .7rem .8rem; }
.wk-site.na { display: flex; align-items: center; gap: .6rem; }
.wk-site-h { font-weight: 800; font-size: .82rem; color: var(--green-dark); margin-bottom: .45rem; }
.wk-site label { display: block; margin: .35rem 0 0; font-size: .76rem; font-weight: 700; color: var(--muted); }
.wk-site .cov-sel { margin-top: .15rem; }
.wk-contacts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.cov-contact { font-size: .8rem; font-weight: 700; color: var(--green); background: #fff; border: 1px solid var(--green); border-radius: 20px; padding: .2rem .6rem; text-decoration: none; }
.cov-contact:hover { background: var(--green-tint); }
.cov-contact.noemail { color: var(--muted); border-color: var(--line); font-weight: 600; }
@media (max-width: 640px) { .wk-grid { grid-template-columns: 1fr; } }

/* Call-night chip on the calendar */
.cal-cell .call-chip {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  font-size: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  background: var(--green-dark); color: #fff; border-radius: 5px; padding: .05rem .25rem;
  cursor: pointer; white-space: nowrap; z-index: 3; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.cal-cell .call-chip:hover { background: #00432f; }
.cal-cell .call-chip:active { cursor: grabbing; }
.cal-cell .call-chip { cursor: grab; }
.cal-cell .call-chip.listed { background: var(--gold); color: var(--green-dark); }
.cal-cell.today .call-chip { bottom: 3px; }
.cal-cell.drop-target { outline: 2px dashed var(--green); outline-offset: -2px; background: var(--green-tint); }

.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .78rem; }
.req-divider { margin: 1rem 0 .2rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--green-dark); }
/* Notify-residents picker */
.notify-grp { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem .6rem; margin: .6rem 0 0; }
.notify-grp legend { font-size: .82rem; color: var(--green-dark); padding: 0 .3rem; }
.notify-grp legend label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 700; }
.notify-members { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .8rem; margin-top: .35rem; }
.notify-members label { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .82rem; font-weight: 500; color: var(--text); }
.notify-grp input, .notify-members input { width: auto; margin: 0; }
#notifySend { margin-top: .9rem; }
@media (max-width: 560px) { .notify-members { grid-template-columns: 1fr; } }

/* Suggested residents in the notify picker */
.notify-suggest-loading, .notify-suggest-empty { margin: .5rem 0 .2rem; font-size: .82rem; }
.notify-suggest { margin: .2rem 0 .4rem; padding: .6rem .7rem .7rem; border: 1px solid var(--green-range); border-radius: 10px; background: var(--green-tint); }
.suggest-head { margin: 0 0 .5rem; font-size: .84rem; font-weight: 700; color: var(--green-dark); }
.suggest-head .muted { font-weight: 500; }
.suggest-row { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .4rem; padding: .35rem .45rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.suggest-row input { width: auto; margin: .15rem 0 0; flex: none; }
.suggest-main { display: flex; flex-direction: column; gap: .2rem; }
.suggest-name { font-size: .88rem; font-weight: 700; color: var(--text); }
.suggest-yr { font-size: .72rem; font-weight: 700; color: var(--muted); margin-left: .2rem; }
.suggest-reasons { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.suggest-reasons .reason { font-size: .76rem; color: var(--muted); }
.suggest-reasons .reason.good { color: var(--green-status); }
.suggest-why { margin: .3rem 0 0; }
.notify-allres-head { margin: .9rem 0 0; font-size: .8rem; font-weight: 700; }

/* "Everyone off these dates" overview on the new-request screen */
.everyone-toggle { margin: .8rem 0 .2rem; }
.everyone-toggle-lbl { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; font-weight: 700; color: var(--green-dark); cursor: pointer; }
.everyone-toggle-lbl input { width: auto; margin: 0; }
.everyone-off { margin: .4rem 0 .2rem; padding: .7rem .85rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.everyone-head { margin: 0 0 .6rem; font-size: .85rem; font-weight: 700; color: var(--text); line-height: 1.45; }
.everyone-head .muted { display: block; font-weight: 500; margin-top: .15rem; }
.everyone-grp { margin: 0 0 .55rem; }
.everyone-grp h5 { margin: 0 0 .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.everyone-row { display: flex; flex-wrap: wrap; gap: .15rem .6rem; padding: .25rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.everyone-row:last-child { border-bottom: none; }
.everyone-name { font-weight: 700; color: var(--text); min-width: 9rem; }
.everyone-when { color: var(--muted); }
#callEditRequest .btn { margin-top: .7rem; }
.btn.danger { color: var(--red); border-color: #f3cfca; }
.btn.danger:hover { background: #fbe7e4; border-color: var(--red); color: var(--red); }

/* Modal (trade dialog) */
.modal { position: fixed; inset: 0; background: rgba(16,36,30,.45); display: grid; place-items: center; z-index: 50; padding: 1rem; }
/* Cap the card to the viewport and let it scroll internally — long dialogs (e.g.
   the trade-share picker) used to overflow off both ends with no way to reach the
   bottom, because the overlay just centers the card without scrolling. */
.modal-card { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 1.2rem 1.4rem; box-shadow: 0 12px 40px rgba(16,36,30,.25); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.modal-head h3 { margin: 0; font-size: 1.05rem; color: var(--green-dark); }
.modal-card label { display: block; margin: .6rem 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* Trade cards */
.trade-sec { margin: 1.1rem 0 .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.trade { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .7rem; box-shadow: var(--shadow); }
.trade.accepted { opacity: .75; }
.trade.cancelled { opacity: .55; }
.trade-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.trade-head h3 { margin: 0; font-size: .98rem; }
.trade .meta { color: var(--muted); font-size: .85rem; margin: .35rem 0 .2rem; }
.trade-act { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
/* Swap-return "offer one back" dropdown sits inline with its action buttons. */
.trade-act .swapret-sel { width: auto; margin: 0; max-width: 60%; padding: .4rem .55rem; font-size: .82rem; }

/* Login logo */
.login-logo { display: block; width: 160px; max-width: 60%; margin: 0 auto .6rem; }

/* Tabs */
.tabs {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem;
  /* On narrow screens the tab row scrolls sideways instead of overflowing the page. */
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: none; color: var(--muted); padding: .65rem .95rem; flex: 0 0 auto; white-space: nowrap;
  cursor: pointer; font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); border-bottom-color: var(--gold); }
.badge { background: var(--gold); color: var(--green-dark); border-radius: 10px; padding: 0 .45rem; font-size: .72rem; font-weight: 800; }

/* Impact panel */
.impact { margin-top: 1.1rem; padding: 1.1rem 1.2rem; background: var(--green-tint); border-radius: 12px; border: 1px solid var(--line); }
.impact .impact-title { margin: 0 0 .8rem; font-size: .9rem; font-weight: 700; color: var(--green-dark); }
.impact-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; }
.impact-row:last-child { margin-bottom: 0; }
.impact-row .ico { font-size: 1rem; line-height: 1.4; }
.impact-row .body { flex: 1; }
.impact-row h4 { margin: 0 0 .35rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .25rem .7rem; font-size: .82rem; font-weight: 600; }
.chip.att { border-color: var(--green); color: var(--green-dark); background: #fff; }
.chip.att.added { border-color: var(--gold); background: #fffaef; color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.chip.warn { border-color: var(--amber); color: var(--amber); background: #fff8ec; }
.chip .chip-x { border: none; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 0 0 0 .15rem; line-height: 1; }
.chip .chip-x:hover { color: var(--red); }

/* On-service attendings line (Step 4) */
.onservice { margin: .1rem 0 .55rem; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.onservice-lead { font-weight: 700; color: var(--green-dark); flex-basis: 100%; }

/* On-service attendings as uncheckable pills (Step 4) — uncheck anyone who's away. */
.att-checks { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; margin-top: .1rem; }
.att-check {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--green); border-radius: 20px;
  padding: .25rem .7rem .25rem .6rem; font-size: .82rem; font-weight: 600; color: var(--green-dark);
}
.att-check input { width: auto; margin: 0; accent-color: var(--green); cursor: pointer; }
.att-check.off { border-color: var(--line); color: var(--muted); background: var(--panel2); }
.att-check.off .att-check-name { text-decoration: line-through; }

/* Add-attendings picker */
.addatt { display: flex; gap: .5rem; align-items: center; margin: .3rem 0 0; }
.addatt select { margin: 0; }
.addatt .btn { margin: 0; white-space: nowrap; }
.addatt-chips { margin-top: .55rem; }
.link-btn { background: none; border: none; color: var(--green-dark); font-weight: 600; font-size: .82rem; cursor: pointer; padding: .45rem 0 0; text-decoration: underline; }
.link-btn:hover { color: var(--green-status); }
.custom-att { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 0; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.custom-att input { margin: 0; flex: 1 1 11rem; }
.custom-att .btn { margin: 0; white-space: nowrap; }
.tag-added { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--green-dark); background: var(--gold-soft); padding: .05rem .35rem; border-radius: 10px; }
.impact-row.conflict { color: var(--amber); }
.impact-row.ok h4 { color: var(--green-status); }

/* Prominent policy callouts */
.impact-row.alert { align-items: flex-start; padding: .65rem .8rem; border-radius: 10px; }
.impact-row.alert.block { background: #fdecea; border: 1px solid #f2c8c2; border-left: 4px solid var(--red); }
.impact-row.alert.block h4 { color: var(--red); }
.impact-row.alert .alert-text { font-size: .84rem; line-height: 1.45; color: var(--text); }
.alert.warn { background: #fff8ec; border: 1px solid #f0dcae; border-left: 4px solid var(--amber); border-radius: 10px; padding: .7rem .85rem; }
.alert.warn .alert-head { font-weight: 800; font-size: .82rem; color: var(--amber); display: flex; align-items: center; gap: .4rem; }
.alert.warn ul { margin: .45rem 0 0; padding-left: 1.3rem; }
.alert.warn li { font-size: .84rem; line-height: 1.5; color: var(--text); margin: .15rem 0; }

.toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Request cards */
/* Average turnaround panel (collapsible) above the request list. */
.ta-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 1rem; box-shadow: var(--shadow); }
.ta-panel > summary { cursor: pointer; padding: 1rem 1.4rem; font-weight: 700; font-size: .95rem; list-style: none; }
.ta-panel > summary::-webkit-details-marker { display: none; }
.ta-panel > summary::before { content: '▸'; display: inline-block; margin-right: .5rem; color: var(--muted); transition: transform .15s; }
.ta-panel[open] > summary::before { transform: rotate(90deg); }
.ta-cols { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; padding: 0 1.4rem 1.2rem; }
.ta-col { flex: 1 1 240px; min-width: 220px; }
.ta-col h4 { margin: 0; font-size: .9rem; }
.ta-sub { margin: .15rem 0 .55rem; font-size: .78rem; }
.ta-row { display: flex; align-items: baseline; gap: .6rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.ta-row .ta-name { flex: 1 1 auto; }
.ta-row .ta-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.ta-row .ta-count { color: var(--muted); font-size: .75rem; min-width: 3.5em; text-align: right; }

.req { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.phone-confirm { margin: .6rem 0 .2rem; padding: .65rem .85rem; background: #eef5fb; border: 1px solid #cfe0f0; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.phone-confirm .btn { margin: 0; }
.push-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .2rem; }
.push-row .btn { margin: 0; }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.req-head h3 { margin: 0; font-size: 1rem; }
.status { font-size: .7rem; font-weight: 800; padding: .25rem .65rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.status.pending { background: #fdf3df; color: var(--amber); }
.status.approved { background: #e3f5ec; color: var(--green-status); }
.status.denied { background: #fbe7e4; color: var(--red); }
.status.attention { background: #fbe7e4; color: var(--red); }
.req .meta { color: var(--muted); font-size: .82rem; margin: .4rem 0 .2rem; }
.req .req-note { font-size: .85rem; font-weight: 600; margin: .5rem 0 .2rem; }
.req .req-note.pending { color: var(--amber); }
.req .req-note.approved { color: var(--green-status); }
.req .req-note.denied { color: var(--red); }
.req .req-note.attention { color: var(--red); }

.approvals { display: flex; flex-direction: column; gap: .35rem; margin: .7rem 0; }
.approval { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.approved { background: var(--green-status); }
.dot.denied { background: var(--red); }
.dot.pending { background: var(--amber); }
.step { color: var(--muted); font-size: .75rem; margin-left: auto; font-weight: 500; }

.timeline { list-style: none; padding: 0; margin: .7rem 0 0; border-top: 1px solid var(--line); padding-top: .7rem; }
.timeline li { font-size: .8rem; color: var(--muted); padding: .15rem 0; }

/* Messages */
.msg { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: .7rem; box-shadow: var(--shadow); }
.msg-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: .45rem; flex-wrap: wrap; }
.tagpill { font-size: .66rem; font-weight: 800; padding: .14rem .5rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tagpill.sms { background: var(--green-tint); color: var(--green-dark); }
.tagpill.email { background: #fdf0d3; color: #97700f; }
.msg-body { font-size: .85rem; white-space: pre-wrap; line-height: 1.55; }
.msg-body a { color: var(--green); font-weight: 600; }
.msg .subj { font-weight: 700; color: var(--text); margin-bottom: .25rem; }

.roster { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.person { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .75rem; font-size: .82rem; font-weight: 600; }
.person .role { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 2rem; }

/* Range calendar picker */
.rangepicker { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: .3rem 0 .2rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.cal-block { display: flex; align-items: flex-start; gap: .4rem; font-size: .76rem; color: var(--green-dark); background: var(--gold-soft); border-radius: 8px; padding: .35rem .65rem; margin-bottom: .7rem; }
.cal-block b { font-weight: 800; }
.cal-block-x { flex: none; margin-left: auto; align-self: flex-start; background: none; border: none; color: var(--green-dark); cursor: pointer; font-size: .8rem; line-height: 1; padding: .1rem .25rem; border-radius: 6px; opacity: .5; font-family: inherit; }
.cal-block-x:hover { opacity: 1; background: rgba(0,0,0,.07); }
.cal-title { font-weight: 800; font-size: .98rem; }
.cal-nav { background: var(--panel2); border: 1px solid var(--line); color: var(--text); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 1.15rem; line-height: 1; margin: 0; padding: 0; display: grid; place-items: center; }
.cal-nav:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }
/* minmax(0, 1fr) — NOT plain 1fr (= minmax(auto,1fr)) — so a wide non-wrapping
   day label (rotation abbrev, "🌙 call" chip) can't force its column past 1/7 of
   the width. Plain 1fr let one long label widen the whole grid past the container
   on some months, so the day columns drifted out from under the weekday headers. */
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 5px; }
.cal-dow span { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .15rem 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
/* Top-anchor the cell contents (with a fixed top inset) so the day NUMBER sits at
   the same height in every cell — regardless of whether that day also carries a
   rotation label, "new rotation" caption, or exception band. Centering the whole
   stack used to let the number drift up/down depending on a cell's annotations. */
.cal-cell { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 26% 0 0; background: var(--tint, transparent); border: 1.5px solid transparent; border-radius: 10px; color: var(--text); font-size: .85rem; font-weight: 600; cursor: pointer; margin: 0; font-family: inherit; overflow: hidden; transition: background .08s, border-color .08s; }
.cal-cell .d { line-height: 1; }
.cal-cell .rot-label { font-size: .54rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--green-dark); max-width: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.cal-cell .rot-label .rot-cont { font-style: italic; font-weight: 700; opacity: .75; text-transform: none; }
/* R3 split AM/PM label: two stacked site codes with a thin divider. */
.cal-cell .rot-label.two { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.1; max-width: 100%; }
.cal-cell .rot-label.two b { font-size: .52rem; font-weight: 800; }
.cal-cell .rot-label.two b:first-child { border-bottom: 1px solid rgba(0,84,59,.25); padding-bottom: 1px; }
.cal-cell.empty { cursor: default; }
.cal-cell:not(.empty):hover { border-color: var(--green); }
/* "Today" marker: a bold green ring + a green dot, so it clearly stands out. */
.cal-cell.today { font-weight: 900; color: var(--green-dark); box-shadow: inset 0 0 0 2.5px var(--green-status); }
.cal-cell.today::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--green-status);
}
.cal-cell.today.sel { box-shadow: inset 0 0 0 2.5px var(--gold); }
.cal-cell.today.sel::after, .cal-cell.today.in-range::after { background: #fff; }
/* Clear gold brackets marking each rotation block's first "[" and last "]" day. */
.cal-cell.block-start::before, .cal-cell.block-end::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; width: 9px; border: 2px solid var(--gold); pointer-events: none;
}
.cal-cell.block-start::before { left: 2px; border-right: none; border-radius: 5px 0 0 5px; }
.cal-cell.block-end::before { right: 2px; border-left: none; border-radius: 0 5px 5px 0; }
/* First & fourth week of a rotation block: leave only by exception. A thin red
   rule runs across the very top of those days, bridging the grid gap so it reads
   as one continuous line; a tiny red note labels the start of each run. */
.cal-cell.edge-week { overflow: visible; }
.cal-cell.edge-week .edge-bar {
  position: absolute; top: 0; left: -3px; right: -3px; height: 2px;
  background: var(--red); pointer-events: none; z-index: 3;
}
/* 30-day advance-notice marking. The legend explains the rule; on the grid the
   days under the notice window (too short notice for vacation/educational) share the
   red "leave by exception only" band. */
.notice-legend {
  margin: .55rem 0 .1rem; padding: .5rem .7rem; font-size: .78rem; line-height: 1.5;
  color: var(--text); background: #fff7e6; border: 1px solid #f3e2c0; border-radius: 9px;
}
.cal-cell.edge-week .edge-note {
  position: absolute; top: 3px; left: 2px; z-index: 3;
  font-size: .42rem; font-weight: 800; line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; color: var(--red); white-space: nowrap;
  pointer-events: none; opacity: .92;
}
.cal-cell.edge-week.sel .edge-note, .cal-cell.edge-week.in-range .edge-note { color: #fff; }
/* Cartoon "switch rotations" marker on the first day of each block: a horizontal
   swoop arrow sweeping in from the previous day's box on the left and pointing right
   into the new rotation + a tiny caption. block-start cells need overflow visible so
   the arrow can extend left over the gap into the previous box. */
.cal-cell.block-start { overflow: visible; }
.cal-cell .rot-arrow {
  position: absolute; top: 50%; left: -24px; transform: translateY(-50%);
  width: 50px; height: 23px; z-index: 5;
  pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(16, 36, 30, .3));
}
.cal-cell .rot-switch-cap {
  position: absolute; top: 4px; right: 4px; z-index: 5; pointer-events: none;
  font-size: .5rem; font-weight: 900; line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; color: var(--green-dark); white-space: nowrap;
}
.cal-cell.sel .rot-switch-cap, .cal-cell.in-range .rot-switch-cap { color: #fff; }
.cal-cell.in-range { background: var(--green-range); color: var(--green-dark); border-radius: 0; }
.cal-cell.sel { background: var(--green); color: #fff; border-color: var(--green); }
.cal-cell.sel .rot-label { color: #fff; }
.cal-cell.sel.start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-cell.sel.end { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-summary { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cal-summary b { color: var(--text); }
.cal-clear { background: #fff; border: 1px solid var(--red); color: var(--red); border-radius: 8px; padding: .35rem .8rem; font-size: .8rem; font-weight: 700; cursor: pointer; margin: 0; white-space: nowrap; }
.cal-clear:hover { background: var(--red); color: #fff; }
.cal-tip { font-size: .76rem; color: var(--muted); font-style: italic; }
/* Compact, collapsible "edit exact dates" control under the calendar summary. */
.cal-edit-toggle { margin: .45rem 0 0; padding: 0; background: none; border: none; color: var(--green); font-size: .8rem; font-weight: 700; cursor: pointer; }
.cal-edit-toggle:hover { color: var(--green-dark); text-decoration: underline; }
.date-adjust { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin: .5rem 0 .1rem; padding: .65rem .8rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.date-adjust[hidden] { display: none; }
.date-adjust label { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.date-adjust input { width: auto; margin: 0; padding: .4rem .5rem; font-size: .82rem; }
.calledit-note { position: relative; margin: .9rem 0 .4rem; padding: .6rem 2.1rem .6rem .8rem; background: var(--green-tint); border-radius: 10px; font-size: .82rem; }
.calledit-note .note-x {
  position: absolute; top: .35rem; right: .4rem; width: 1.4rem; height: 1.4rem; margin: 0; padding: 0;
  display: grid; place-items: center; border: none; border-radius: 6px; background: transparent;
  color: var(--muted); font-size: .8rem; line-height: 1; cursor: pointer;
}
.calledit-note .note-x:hover { background: rgba(0, 84, 59, .12); color: var(--green-dark); }

@media (max-width: 640px) { .grid2, .roster { grid-template-columns: 1fr; } }

/* Call reminders + calendar export */
.rem-toggle { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin: .3rem 0; cursor: pointer; }
.rem-toggle input { width: auto; margin: 0; }
.rem-when { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .5rem 0 .2rem; padding: .6rem .8rem; background: var(--green-tint); border-radius: 10px; }
.rem-when label { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; font-weight: 600; cursor: pointer; }
.rem-when input { width: auto; margin: 0; }
.rem-saved { font-size: .82rem; color: var(--green-dark); margin-top: .5rem; min-height: 1em; font-weight: 600; }
/* A divider above the phone-push toggle so the two reminder channels read as a set. */
#callRemCard .rem-toggle + .rem-saved + .rem-toggle,
.rem-toggle#pushRule { margin-top: .9rem; }
#pushEnabled { margin: 0; }
.push-help { font-weight: 500; color: var(--muted); }
/* Notification email preferences card */
.email-alt-label { display: block; margin: .6rem 0 .3rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.email-alt-label input { max-width: 320px; }
.emailprefs-actions { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.emailprefs-actions .rem-saved { margin-top: 0; }
.push-setup { margin-top: .5rem; font-size: .85rem; }
.push-setup summary { cursor: pointer; color: var(--green-dark); font-weight: 700; list-style: revert; }
.push-setup ol { margin: .55rem 0 .35rem 1.1rem; padding: 0; line-height: 1.55; }
.push-setup li { margin-bottom: .4rem; }
.cal-export { display: flex; flex-direction: column; gap: .6rem; }
.cal-export-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-export-label { font-weight: 700; font-size: .9rem; min-width: 8.5rem; }
.cal-export-row a.btn { text-decoration: none; }

/* Link to the completed, filled WSU leave-request form on an approved request. */
.req .form-link { font-size: .85rem; margin: .15rem 0 .45rem; }
.req .form-link a { color: var(--green, #00543b); font-weight: 700; text-decoration: none; }
.req .form-link a:hover { text-decoration: underline; }
.req .form-link .muted { font-weight: 400; }

/* Keep a leave date range (start → end) on one line so the arrow reads left-to-right. */
.rectable .daterange { white-space: nowrap; }

/* "What's holding up your request" banner above the submit button. */
.submit-blocker { display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 .7rem; padding: .75rem .9rem; background: #fdecea; border: 1px solid #f3b7ad; border-left: 4px solid var(--red); border-radius: 11px; }
.submit-blocker .sb-ico { font-size: 1.15rem; line-height: 1.2; }
.submit-blocker .sb-body { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; line-height: 1.5; }
.submit-blocker .sb-body b { color: var(--red); }
.submit-blocker .sb-fix { font-weight: 600; }

/* --- Footer bug/feature link + report modal + admin review list --- */
.site-foot {
  max-width: 880px; margin: .5rem auto 2rem; padding: .9rem 1rem 0;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
}
.foot-brand { font-size: .78rem; color: var(--muted); }
.foot-link {
  background: none; border: none; cursor: pointer; font: inherit; font-size: .8rem;
  font-weight: 600; color: var(--green-dark); text-decoration: underline; padding: 0;
}
.foot-link:hover { color: var(--green-status); }

.fb-types { display: flex; gap: .4rem; margin: .2rem 0 .4rem; }
.fb-type {
  margin: 0; padding: .4rem .9rem; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: .85rem; font-weight: 700; cursor: pointer;
}
.fb-type:hover { border-color: var(--green); color: var(--green); }
.fb-type.active { background: var(--green); border-color: var(--green); color: #fff; }
#feedbackModal textarea { font-family: inherit; font-size: .9rem; }

.fb-item { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 11px; padding: .65rem .85rem; margin: .5rem 0; }
.fb-item.resolved { opacity: .6; border-left-color: var(--line); }
.fb-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fb-tag { font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 7px; white-space: nowrap; }
.fb-tag.bug { background: #fbe7e4; color: var(--red); }
.fb-tag.feature { background: var(--green-tint); color: var(--green-dark); }
.fb-meta { font-size: .76rem; color: var(--muted); flex: 1 1 auto; }
.fb-row .btn { margin: 0; }
.fb-text { margin-top: .4rem; font-size: .88rem; line-height: 1.5; white-space: pre-wrap; }

/* Pending Google sign-ins awaiting admin approval (Admin tab). */
.pend-item { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 11px; padding: .65rem .85rem; margin: .5rem 0; }
.pend-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; justify-content: space-between; }
.pend-who { display: flex; flex-direction: column; }
.pend-who b { font-size: .95rem; }
.pend-email { font-size: .78rem; color: var(--muted); }
.pend-when { font-size: .74rem; color: var(--muted); }
.pend-actions { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.pend-actions label { margin: 0; font-size: .72rem; font-weight: 700; }
.pend-actions select { margin: 0; width: auto; min-width: 11rem; }
.pend-actions .btn { margin: 0; }
.btn.mini.danger { color: var(--red); border-color: #f3cfca; }
.btn.mini.danger:hover { background: #fbe7e4; border-color: var(--red); }

/* Owner "view as anyone" — return banner + top-bar picker. */
.imp-banner {
  display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
  margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 12px;
  background: #fff3d6; border: 1px solid #f0d48a; border-left: 4px solid var(--gold);
  color: #6b4e00; font-size: .9rem; font-weight: 600;
}
.imp-banner .btn.mini { margin: 0; }
.viewas-sel {
  width: auto; margin: 0; padding: .25rem .5rem; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px;
}
.viewas-sel option { color: var(--text); }

/* Owner backups card */
.backup-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .2rem; }
.backup-actions .btn { margin: 0; text-decoration: none; }
.backup-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.backup-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; padding: .45rem .7rem; font-size: .85rem; }
.backup-when { font-weight: 600; }
.backup-row-actions { display: flex; gap: .4rem; }
.backup-row-actions .btn { margin: 0; text-decoration: none; }
#backupMsg { margin-top: .5rem; }
