

  #portal-app{
    --bg:#000000; --surface:#0A0A0B; --fill-soft:rgba(255,255,255,0.03); --fill-strong:rgba(255,255,255,0.07);
    --line:#1C1C1F; --line-strong:#3F3F46;
    --ink:#FAFAFA; --ink-mid:#A1A1AA; --ink-low:#71717A;
    --cyan:#00E5F5; --cyan-ink:#00E5F5;
    --pill-bg:#FAFAFA; --pill-text:#000000;
    --input-bg:#0A0A0B; --placeholder:#52525B;
    --danger-bg:rgba(251,113,133,0.10); --danger-border:rgba(251,113,133,0.30); --danger-text:#fca5a5;
    --success-bg:rgba(52,211,153,0.10); --success-border:rgba(52,211,153,0.30); --success-text:#6ee7b7;
    --switch-off:#3F3F46; --cal-line:#27272A; --scrollbar:#27272A;
    background:var(--bg); min-height:100vh; transition:background-color .15s ease; -webkit-overflow-scrolling:touch;
  }
  #portal-app.light-mode{
    --bg:#F8FAFC; --surface:#FFFFFF; --fill-soft:#F1F5F9; --fill-strong:#E2E8F0;
    --line:#E2E8F0; --line-strong:#CBD5E1;
    --ink:#0F172A; --ink-mid:#475569; --ink-low:#64748B;
    --cyan:#00F0FF; --cyan-ink:#0E7490;
    --pill-bg:#0F172A; --pill-text:#FFFFFF;
    --input-bg:#FFFFFF; --placeholder:#94A3B8;
    --danger-bg:#FEF2F2; --danger-border:#FECACA; --danger-text:#B91C1C;
    --success-bg:#F0FDF4; --success-border:#BBF7D0; --success-text:#15803D;
    --switch-off:#CBD5E1; --cal-line:#E2E8F0; --scrollbar:#CBD5E1;
  }
  /* html scroll-behavior is already set globally by the landing page styles above. */
  #portal-app ::-webkit-scrollbar{ width:8px; height:8px; }
  #portal-app ::-webkit-scrollbar-thumb{ background:var(--scrollbar); border-radius:4px; }
  #portal-app input::placeholder, #portal-app textarea::placeholder{ color:var(--placeholder); }

  @media (max-width: 767px){
    .btn-primary, .btn-ghost, .input, .nav-item, .apps-tab { min-height:44px; }
    button.cal-cell { min-height:0; }
  }

  .input{
    width:100%; border-radius:.75rem; border:1px solid var(--line);
    background:var(--input-bg); padding:.625rem .875rem; font-size:.875rem;
    color:var(--ink); outline:none; transition:border-color .15s ease, background-color .15s ease;
  }
  .input:focus{ border-color:var(--cyan); background:var(--fill-strong); }
  textarea.input{ resize:none; }
  select.input{ appearance:none; }

  /* Compact Input Spacing (Auth view only) -- a touch tighter than the
     shared .input padding above, so the Candidate/Owner registration form
     (which can run to 10+ fields) reads as structured and modern rather
     than sprawling down the page. Scoped to #auth-form-panel so no other
     form/modal in the app is affected. */
  #auth-form-panel .input{ padding:.5rem .75rem; }

  /* Calendar Icon Visibility: the native browser date-picker icon on
     input[type=date] (Chromium/WebKit; Firefox has no equivalent
     pseudo-element to target) renders near-black by default and is close to
     invisible against this app's dark input backgrounds. Re-colored to the
     bright SP primary blue so it's clearly visible in both themes. */
  input[type="date"].input::-webkit-calendar-picker-indicator{
    filter: invert(48%) sepia(85%) saturate(1800%) hue-rotate(170deg);
    cursor: pointer;
    opacity: 0.9;
  }
  input[type="date"].input::-webkit-calendar-picker-indicator:hover{ opacity: 1; }

  .btn-primary{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    border-radius:.75rem; background:#00E5F5;
    padding:.625rem 1rem; font-size:.875rem; font-weight:600; color:#000000;
    box-shadow:0 6px 20px -8px rgba(0,229,245,0.45); transition:transform .15s ease, background-color .15s ease;
    border:none; cursor:pointer;
  }
  .btn-primary:hover{ transform:translateY(-1px); background:#5FF0FA; }
  .btn-primary:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

  .btn-ghost{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    border-radius:.75rem; border:1px solid var(--line-strong); background:var(--fill-soft);
    padding:.625rem 1rem; font-size:.875rem; font-weight:600; color:var(--ink); cursor:pointer;
    transition:background-color .15s ease, border-color .15s ease;
  }
  .btn-ghost:hover{ background:var(--fill-strong); border-color:var(--line-strong); }
  .btn-ghost:disabled{ opacity:.5; cursor:not-allowed; }

  .btn-danger{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    border-radius:.75rem; border:1px solid var(--danger-border); background:var(--danger-bg);
    padding:.625rem 1rem; font-size:.875rem; font-weight:600; color:var(--danger-text); cursor:pointer;
    transition:background-color .15s ease;
  }
  .btn-danger:hover{ background:rgba(251,113,133,0.18); }
  .btn-danger:disabled{ opacity:.5; cursor:not-allowed; }

  .card{ border-radius:1rem; border:1px solid var(--line); background:var(--surface); }

  .badge{
    display:inline-flex; align-items:center; border-radius:9999px; border:1px solid;
    padding:.15rem .625rem; font-family:'IBM Plex Mono', monospace; font-size:10px;
    font-weight:600; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap;
  }
  .badge-open{ background:rgba(0,240,255,0.10); color:var(--cyan-ink); border-color:rgba(0,240,255,0.30); }
  .badge-pending{ background:rgba(251,191,36,0.10); color:#b45309; border-color:rgba(251,191,36,0.30); }
  .badge-accepted{ background:rgba(52,211,153,0.10); color:#047857; border-color:rgba(52,211,153,0.30); }
  .badge-rejected{ background:rgba(251,113,133,0.10); color:#b91c1c; border-color:rgba(251,113,133,0.30); }
  .badge-neutral{ background:var(--fill-strong); color:var(--ink-mid); border-color:var(--line-strong); }
  #portal-app:not(.light-mode) .badge-pending{ color:#fcd34d; }
  #portal-app:not(.light-mode) .badge-accepted{ color:#6ee7b7; }
  #portal-app:not(.light-mode) .badge-rejected{ color:#fca5a5; }

  .nav-item{ transition:background-color .15s ease, border-color .15s ease; border:1px solid transparent; }
  .nav-item:hover{ background:var(--fill-soft); border-color:var(--line); }
  .nav-item.is-active{ background:var(--fill-strong); border-color:rgba(0,240,255,0.30); box-shadow:0 0 20px rgba(0,240,255,0.12); }
  .nav-item .nav-icon{ color:var(--ink-low); }
  .nav-item:hover .nav-icon{ color:var(--ink-mid); }
  .nav-item.is-active .nav-icon{ color:var(--cyan-ink); }
  .nav-item .nav-label{ color:var(--ink-mid); }
  .nav-item.is-active .nav-label{ color:var(--ink); }

  .switch{
    position:relative; display:inline-flex; align-items:center; flex-shrink:0;
    width:44px; height:24px; border-radius:9999px; background:var(--switch-off);
    cursor:pointer; transition:background-color .15s ease; border:none; padding:0;
  }
  .switch.is-on{ background:rgba(0,240,255,0.70); }
  .switch .thumb{ position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:9999px; background:#fff; transition:transform .15s ease; }
  .switch.is-on .thumb{ transform:translateX(20px); }

  .role-pill{ background:var(--pill-bg); color:var(--pill-text); }

  .alert{ border-radius:.5rem; border:1px solid; padding:.5rem .75rem; font-size:.75rem; }
  .alert-error{ background:var(--danger-bg); border-color:var(--danger-border); color:var(--danger-text); }
  .alert-success{ background:var(--success-bg); border-color:var(--success-border); color:var(--success-text); }

  .apps-tab{ transition:background-color .15s ease, color .15s ease; }

  .chip{
    display:inline-flex; align-items:center; border-radius:.75rem; border:1px solid var(--line);
    background:var(--fill-soft); padding:.5rem .875rem; font-size:.8rem; font-weight:600;
    color:var(--ink-mid); cursor:pointer; transition:background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .chip.is-active{ border-color:rgba(0,240,255,0.5); background:rgba(0,240,255,0.10); color:var(--cyan-ink); }

  .cal-cell{
    aspect-ratio:1/1; font-size:.75rem; display:flex; align-items:center; justify-content:center;
    color:var(--ink-mid); border:1px solid var(--cal-line); background:transparent; cursor:default;
    padding:.25rem; box-sizing:border-box;
  }
  @media (min-width: 640px){ .cal-cell{ padding:.5rem; } }
  button.cal-cell{ cursor:pointer; font-weight:600; }
  button.cal-cell:hover{ background:var(--fill-soft); }
  .cal-cell.is-today{ box-shadow:inset 0 0 0 1px var(--line-strong); }
  .cal-cell.is-avail{ background:rgba(0,240,255,0.20); color:var(--cyan-ink); border-color:rgba(0,240,255,0.50); }
  .cal-cell.is-blocked{ background:var(--danger-bg); color:var(--danger-text); border-color:var(--danger-border); }

  /* Replicate Shift calendar (Create Shift modal): the base Shift Date
     entered in the main form field is rendered in this solid dark teal so
     it's unmistakably different from .is-avail's lighter cyan tint used for
     picked replicate dates -- plus a small always-visible "Primary" tag
     (not just a hover tooltip) so it reads at a glance, not only on hover. */
  .cal-cell.is-primary-date{
    background:var(--teal); color:#fff; border-color:var(--teal); font-weight:700; cursor:default;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  }
  .cal-cell.is-primary-date .cal-daynum{ line-height:1; }
  .cal-cell.is-primary-date .cal-tag{ font-size:7px; line-height:1; letter-spacing:.03em; text-transform:uppercase; opacity:.9; }

  /* Terms of Service & EULA modal -- see renderTermsHtml()/openTermsModal().
     Built entirely from the app's existing dark-theme CSS variables (same
     ink/fill/line tokens as every card elsewhere) so it automatically
     matches both the dark theme and the Light Mode toggle with no styling
     of its own to maintain separately. */
  .terms-doc{ color:var(--ink-mid); font-size:.875rem; line-height:1.65; }
  .terms-doc-head{ display:flex; align-items:center; gap:.75rem; margin-bottom:.25rem; }
  .terms-doc-icon{ display:flex; height:2.5rem; width:2.5rem; flex-shrink:0; align-items:center; justify-content:center; border-radius:.75rem; background-image:linear-gradient(135deg,#0E7490,#00F0FF); color:#fff; }
  .terms-doc h1{ font-family:'Plus Jakarta Sans',sans-serif; font-size:1.375rem; font-weight:800; color:var(--ink); line-height:1.25; }
  .terms-doc-sub{ margin-top:.15rem; font-family:'IBM Plex Mono',monospace; font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--cyan-ink); }
  .terms-doc-meta{ display:flex; flex-wrap:wrap; gap:1rem; margin:.85rem 0 1.25rem; font-family:'IBM Plex Mono',monospace; font-size:.7rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-low); }
  .terms-doc-meta span{ display:inline-flex; align-items:center; gap:.35rem; }
  .terms-important{ margin-bottom:1.5rem; border-radius:1rem; border:1px solid var(--line-strong); background:var(--fill-strong); padding:1rem 1.25rem; }
  .terms-important-title{ margin-bottom:.5rem; display:flex; align-items:center; gap:.5rem; font-weight:700; color:var(--ink); }
  .terms-section{ margin-bottom:1rem; border-radius:1rem; border:1px solid var(--line); background:var(--fill-soft); padding:1.25rem; }
  .terms-section.is-critical{ border-color:var(--danger-border); background:var(--danger-bg); }
  .terms-section-head{ margin-bottom:.75rem; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; }
  .terms-section-head h3{ font-family:'Plus Jakarta Sans',sans-serif; font-size:1rem; font-weight:700; color:var(--ink); }
  .terms-section.is-critical .terms-section-head h3{ color:var(--danger-text); }
  .terms-critical-tag{ display:inline-flex; align-items:center; gap:.3rem; border-radius:9999px; border:1px solid var(--danger-border); background:rgba(251,113,133,0.14); color:var(--danger-text); padding:.2rem .6rem; font-family:'IBM Plex Mono',monospace; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
  .terms-sub{ margin-bottom:1rem; }
  .terms-sub:last-child{ margin-bottom:0; }
  .terms-sub h4{ margin-bottom:.35rem; font-size:.8rem; font-weight:700; color:var(--ink); }
  .terms-sub p{ margin-bottom:.5rem; }
  .terms-sub p:last-child{ margin-bottom:0; }
  .terms-ack{ margin-top:1.5rem; border-radius:1rem; border:1px solid var(--line-strong); background:var(--fill-strong); padding:1rem 1.25rem; text-align:center; font-weight:700; color:var(--ink); }
  .terms-copyright{ margin-top:1.25rem; text-align:center; font-size:.7rem; color:var(--ink-low); }

  /* Shift-bearing calendar cells -- shared by the Candidate Dashboard
     calendar, the Owner "My Shifts" coverage calendar, and the Admin Master
     Schedule Calendar (see openCalendarModal()). */
  .cal-cell.has-shift{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:rgba(0,240,255,0.20); color:var(--cyan-ink); border-color:rgba(0,240,255,0.50); font-weight:700; }
  .cal-cell .cal-daynum{ line-height:1; }
  .cal-cell .cal-dot{ width:5px; height:5px; border-radius:9999px; background:currentColor; box-shadow:0 0 6px rgba(0,240,255,0.8); }

  #detail-backdrop{ background:rgba(3,7,18,0.75); }
  #portal-app.light-mode #detail-backdrop{ background:rgba(15,23,42,0.55); }

  /* Owner "new application" toasts — see showToast() / #toast-host. */
  .toast{
    pointer-events:auto; display:flex; align-items:flex-start; gap:.625rem; width:100%; max-width:22rem;
    border-radius:.875rem; border:1px solid var(--line); background:var(--bg);
    box-shadow:0 12px 32px rgba(0,0,0,0.35); padding:.875rem 1rem; font-size:.8rem; line-height:1.35;
    color:var(--ink); animation:toast-in .25s ease-out;
  }
  .toast.is-leaving{ animation:toast-out .2s ease-in forwards; }
  @keyframes toast-in{ from{ opacity:0; transform:translateY(-8px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
  @keyframes toast-out{ from{ opacity:1; transform:translateY(0); } to{ opacity:0; transform:translateY(-8px); } }
  .toast-icon{ color:var(--cyan-ink); }
  .toast-close{ color:var(--ink-low); flex-shrink:0; cursor:pointer; background:none; border:0; padding:0; line-height:1; }
  .toast-close:hover{ color:var(--ink); }

  /* Applicants nav badge — numeric pending count with a soft glow, shown at
     login and kept live via subscribeOwnerApplicationAlerts()/refreshOwnerPendingBadge(). */
  .nav-badge{
    display:inline-flex; align-items:center; justify-content:center; min-width:1.25rem; height:1.25rem;
    padding:0 .35rem; border-radius:9999px; background:#00F0FF; color:#030712; font-family:'IBM Plex Mono', ui-monospace, monospace;
    font-size:.65rem; font-weight:700; flex-shrink:0; box-shadow:0 0 0 3px rgba(0,240,255,0.18);
    animation:nav-badge-pulse 2s ease-in-out infinite;
  }
  @keyframes nav-badge-pulse{
    0%, 100%{ box-shadow:0 0 0 3px rgba(0,240,255,0.18); }
    50%{ box-shadow:0 0 0 5px rgba(0,240,255,0.32); }
  }

  /* Twilio SMS & AI Dispatch — Escalated is its own tone (distinct from the
     amber "pending"/red "rejected" already in use elsewhere) so it reads at
     a glance on the Master Admin Global Shift Stream. See
     computeDispatchStatus()/DISPATCH_STATUS_TONE. */
  .badge-escalated{ background:rgba(251,146,60,0.12); color:#c2410c; border-color:rgba(251,146,60,0.35); }
  #portal-app:not(.light-mode) .badge-escalated{ color:#fdba74; }

  /* SMS & AI Conversation Log — chat-thread bubbles inside the "My Shifts"
     calendar modal / Master Admin Global Shift Stream detail. Bubble color
     is keyed off sender_type so the AI agent, the owner, and the candidate
     stay visually distinct in a 3-way thread. */
  .sms-thread{ display:flex; flex-direction:column; gap:.625rem; }
  .sms-bubble{ max-width:85%; border-radius:1rem; padding:.625rem .875rem; font-size:.8rem; line-height:1.45; }
  .sms-bubble-meta{ margin-bottom:.2rem; font-family:'IBM Plex Mono',monospace; font-size:9px; text-transform:uppercase; letter-spacing:.04em; opacity:.75; }
  .sms-bubble.is-ai{ align-self:flex-start; background:rgba(0,240,255,0.10); border:1px solid rgba(0,240,255,0.30); color:var(--ink); }
  .sms-bubble.is-owner{ align-self:flex-end; background:var(--teal); color:#fff; border:1px solid var(--teal); }
  .sms-bubble.is-candidate{ align-self:flex-start; background:var(--fill-strong); border:1px solid var(--line-strong); color:var(--ink); }

  /* Calendar modal's "Shift Details" / "SMS & AI Conversation Log" tab
     switcher — same visual language as the Applications tab's .apps-tab
     (see statusFilterTabsHtml() in renderAdminApplications()), reused here
     rather than inventing a second tab style. */
  .calmodal-tab{ transition:background-color .15s ease, color .15s ease; }

  /* ==========================================================================
     READABILITY PASS v2 (Nov 2026 demo)
     Goal: nothing in the portals should be hard to read.
     - Body text uses Inter (built for screens), medium weight, bigger sizes.
       Headings keep Plus Jakarta Sans so the brand look stays the same.
     - Dark: black stays, but all text is white / near-white; cards are a
       clearly lighter charcoal with visible edges.
     - Light: soft grey-blue page (not stark white), white cards with firm
       edges, near-black navy text.
     - No "code" font, no tiny all-caps captions, no background glow.
  ========================================================================== */
  #portal-app{
    --bg:#000000; --surface:#131318; --fill-soft:#17171D; --fill-strong:#202028;
    --line:#2F2F38; --line-strong:#4A4A55;
    --ink:#FFFFFF; --ink-mid:#F4F4F6; --ink-low:#E3E3E8; --placeholder:#9D9DA8;
    --input-bg:#0E0E12;
    font-family:'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight:500; font-size:15px;
    -webkit-font-smoothing:auto; -moz-osx-font-smoothing:auto;
  }
  #portal-app.light-mode{
    --bg:#FFFFFF; --surface:#FFFFFF; --fill-soft:#F4F6F9; --fill-strong:#E7ECF2;
    --line:#AEBBCA; --line-strong:#8496AB;
    --ink:#08101F; --ink-mid:#121D30; --ink-low:#26344A; --placeholder:#6B7A8F;
    --cyan-ink:#075E73; --input-bg:#FFFFFF;
    -webkit-font-smoothing:antialiased;
  }
  #portal-app.antialiased, #portal-app .antialiased{ -webkit-font-smoothing:inherit; }
  #portal-app .font-sans{ font-family:inherit; }
  #portal-app h1, #portal-app h2, #portal-app h3, #portal-app .font-display{ font-family:'Plus Jakarta Sans', system-ui, sans-serif; }

  /* Code font -> normal font, readable size, normal case */
  #portal-app .font-mono{
    font-family:'Inter', system-ui, sans-serif !important;
    text-transform:none !important; letter-spacing:0 !important; font-weight:500;
  }
  #portal-app .text-\[10px\], #portal-app .text-\[11px\], #portal-app .text-\[12px\]{ font-size:13.5px !important; line-height:1.4; }
  #portal-app .text-xs{ font-size:14px; line-height:1.45; }
  #portal-app .text-sm{ font-size:15px; line-height:1.5; }
  #portal-app .input{ font-size:15px; font-weight:500; }
  #portal-app .badge{
    font-family:'Inter', system-ui, sans-serif; text-transform:capitalize;
    letter-spacing:0; font-size:13px; font-weight:700; padding:.25rem .7rem;
  }
  #portal-app .font-semibold{ font-weight:650; }

  /* Sidebar: bigger labels, no tiny caption line under each item */
  #portal-app #sidebar-nav .nav-item .font-mono{ display:none !important; }
  #portal-app #sidebar-nav .nav-item{ padding-top:.7rem; padding-bottom:.7rem; }
  #portal-app .nav-item .nav-label{ color:var(--ink); font-size:15.5px; font-weight:650; }
  #portal-app .nav-item .nav-icon{ color:var(--ink-mid); }

  /* No background glow anywhere in the portals */
  #portal-app main > .pointer-events-none.absolute,
  #portal-app #app-sidebar > .pointer-events-none,
  #portal-app .blur-\[90px\]{ display:none !important; }

  /* Dark: cards clearly separate from the black page */
  #portal-app:not(.light-mode) #app-sidebar{ background:#0A0A0D; }
  #portal-app:not(.light-mode) .nav-item.is-active{ background:#16262A; border-color:#1E6F7A; box-shadow:none; }
  #portal-app:not(.light-mode) .badge-pending{ background:#3A2E0B; color:#FFD966; border-color:#6B5512; }
  #portal-app:not(.light-mode) .badge-accepted{ background:#0E3324; color:#7DF0B8; border-color:#1C6447; }
  #portal-app:not(.light-mode) .badge-rejected{ background:#3A1414; color:#FFA8A8; border-color:#6E2626; }
  #portal-app:not(.light-mode) .badge-open{ background:#0B2E33; color:#5EF2FF; border-color:#1E6F7A; }

  /* Light: soft canvas, firm cards */
  #portal-app.light-mode #app-sidebar{ background:#FFFFFF; border-right:1.5px solid #AEBBCA; }
  #portal-app.light-mode #mobile-topbar{ background:#FFFFFF; border-bottom:1.5px solid #AEBBCA; }
  #portal-app.light-mode .card{ border-width:1.5px; }
  #portal-app.light-mode .input{ border:1.5px solid #8496AB; }
  #portal-app.light-mode .input:focus{ border-color:#0B7A92; background:#FFFFFF; box-shadow:0 0 0 3px rgba(11,122,146,.15); }
  #portal-app.light-mode .card{ box-shadow:0 1px 3px rgba(8,16,31,.08); }
  #portal-app.light-mode .nav-item.is-active{ background:#D3EEF3; border-color:#8CCFDB; box-shadow:none; }
  #portal-app.light-mode .nav-item.is-active .nav-label{ color:#033F4D; }
  #portal-app.light-mode .nav-item.is-active .nav-icon{ color:#075E73; }
  #portal-app.light-mode .btn-primary{ background:#0B7A92; color:#FFFFFF; box-shadow:0 1px 2px rgba(8,16,31,.15); }
  #portal-app.light-mode .btn-primary:hover{ background:#075E73; }
  #portal-app.light-mode .btn-ghost{ background:#FFFFFF; border-color:#9FAEBF; }
  #portal-app.light-mode .badge-open{ background:#D3EEF3; color:#033F4D; border-color:#8CCFDB; }
  #portal-app.light-mode .badge-pending{ background:#FCEBB6; color:#6B3A00; border-color:#E8C15A; }
  #portal-app.light-mode .badge-accepted{ background:#CDF3DA; color:#0B4D24; border-color:#7FD39C; }
  #portal-app.light-mode .badge-rejected{ background:#FBD5D5; color:#7F1515; border-color:#EBA0A0; }

  /* --------------------------------------------------------------------------
     SHIFT CARDS (pharmacist "Available Shifts") — date, hours, location and
     pay are the first things you see.
  -------------------------------------------------------------------------- */
  .shift-card{ padding:1rem; transition:border-color .15s ease, transform .15s ease; }
  .shift-card:hover{ border-color:var(--line-strong); }
  @media (min-width:640px){ .shift-card{ padding:1.25rem 1.5rem; } }
  .shift-date-tile{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    width:64px; min-width:64px; height:72px; border-radius:14px;
    background:rgba(0,229,245,0.10); border:1px solid rgba(0,229,245,0.35); color:var(--ink);
    line-height:1.05;
  }
  .shift-date-tile .dow{ font-size:12px; font-weight:700; color:var(--cyan-ink); }
  .shift-date-tile .day{ font-size:26px; font-weight:800; }
  .shift-date-tile .mon{ font-size:12px; font-weight:600; color:var(--ink-mid); }
  #portal-app.light-mode .shift-date-tile{ background:#D3EEF3; border-color:#8CCFDB; }
  #portal-app.light-mode .shift-chip{ background:#F4F6F9; border-color:#AEBBCA; }
  .shift-when{ font-size:1.05rem; font-weight:800; color:var(--ink); line-height:1.3; }
  @media (min-width:640px){ .shift-when{ font-size:1.15rem; } }
  .shift-when .hrs{ font-weight:600; color:var(--ink-mid); font-size:.9em; }
  .shift-where{ display:flex; align-items:center; gap:.4rem; margin-top:.35rem; font-size:1rem; font-weight:500; color:var(--ink); }
  .shift-where b{ color:var(--ink); font-weight:700; }
  .shift-chips{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.6rem; }
  .shift-chip{
    display:inline-flex; align-items:center; border-radius:999px; padding:.25rem .7rem;
    font-size:13.5px; font-weight:600; color:var(--ink);
    background:var(--fill-strong); border:1px solid var(--line);
  }
  .shift-pay{ text-align:left; }
  @media (min-width:640px){ .shift-pay{ text-align:right; } }
  .shift-rate{ font-size:1.6rem; font-weight:800; color:var(--cyan-ink); line-height:1; }
  .shift-rate span{ font-size:.95rem; font-weight:700; }
  .shift-total{ margin-top:.35rem; font-size:14px; font-weight:600; color:var(--ink); }
  .shift-when .hrs{ white-space:nowrap; }
  @media (max-width:639px){
    .shift-card .shift-datetext{ display:none; }
    .shift-card .shift-date-tile{ width:56px; min-width:56px; height:64px; }
    .shift-card .shift-date-tile .day{ font-size:22px; }
    .shift-where{ font-size:.9rem; align-items:flex-start; }
    .shift-chip{ font-size:12px; }
  }
