/* Hoober Portal: Hoober Light (the default). Dark is the original look; these rules only apply in light mode.
   html[data-hp="light"] is set by portal/theme.js before the page draws. Every app shares the same color names
   (--bg, --surface, --ink, --gold…), so most of the change is here; the rest are spots that used fixed colors. */
html[data-hp="light"]{
  --bg:#f5f3ec; --surface:#ffffff; --surface2:#faf8f3; --field:#ffffff; --viewer:#ebe7dc;
  --line:rgba(28,28,26,.10); --line2:rgba(28,28,26,.20);
  --ink:#1d1d1b; --muted:rgba(29,29,27,.62); --dim:rgba(29,29,27,.56);
  --green:#234430; --green-h:#2b5239; --gold:#8f7019; --gold-ink:#1d1d1b;
  --ok:#2f7a45; --warn:#9a6a12; --bad:#b4442f; --red:#b4442f;
  --shadow:0 1px 2px rgba(28,28,26,.04),0 8px 24px rgba(28,28,26,.07);
  --tint:rgba(28,28,26,.05); --glow:inset 0 0 0 1px var(--line2);
  --hp-green:#234430; --hp-gold:#8f7019; --hp-ink:#1d1d1b; --hp-muted:rgba(29,29,27,.62);
  --hp-dim:rgba(29,29,27,.48); --hp-line:rgba(28,28,26,.10); --hp-card:#ffffff;
  color-scheme:light;
}
html[data-hp="light"] body{background:var(--bg);color:var(--ink)}

/* Logo with dark letters */
html[data-hp="light"] .topbar .brand-logo,html[data-hp="light"] #hpSplash img{content:url("/assets/brand-hoober-light.png")}
html[data-hp="light"] .brand-divider{background:rgba(143,112,25,.45)!important}
html[data-hp="light"] .brand-name{color:var(--ink)}

/* Green buttons and icons keep light text */
html[data-hp="light"] .app-icon,html[data-hp="light"] .btn-sm.gold,html[data-hp="light"] .ann-add{color:#f6f4ee}

/* Home */
html[data-hp="light"] .app,html[data-hp="light"] .board,html[data-hp="light"] .quick-links{background:#fff;border-color:rgba(28,28,26,.08);box-shadow:var(--shadow)}
html[data-hp="light"] a.app:hover{border-color:rgba(212,175,55,.75)}
html[data-hp="light"] .ann{background:var(--surface2)}
html[data-hp="light"] .ann.pinned{border-color:rgba(212,175,55,.75)}
html[data-hp="light"] .ann-body{color:rgba(29,29,27,.72)}
html[data-hp="light"] .t-news{background:#e3ece6;color:#234430}
html[data-hp="light"] .t-reminder{background:#f6ecd0;color:#6f5612}
html[data-hp="light"] .t-celebration{background:#f3e3b0;color:#5f4a0e}
html[data-hp="light"] .t-office{background:#e2eaf4;color:#2f5480}
html[data-hp="light"] .t-compliance{background:rgba(28,28,26,.07);color:var(--ink)}
html[data-hp="light"] .new,html[data-hp="light"] .new-count{background:#d4af37;color:#1d1d1b}
html[data-hp="light"] .ann-add{background:var(--green);border-color:var(--green)}
html[data-hp="light"] .btn-sm{background:#fff}
html[data-hp="light"] .btn-sm.gold{background:var(--green);border-color:var(--green)}
html[data-hp="light"] .modal{background:#fff}
html[data-hp="light"] .modal-back{background:rgba(28,28,26,.45)}
html[data-hp="light"] .mfield input,html[data-hp="light"] .mfield textarea,html[data-hp="light"] .mfield select{background:#fff;color-scheme:light}
html[data-hp="light"] .date-clear{background:rgba(28,28,26,.07)}
html[data-hp="light"] .toast{background:#1d1d1b;color:#f6f4ee;border-color:#1d1d1b}

/* Top bar buttons: My card, Links, Apps, your photo */
html[data-hp="light"] .mc-open,html[data-hp="light"] .ml-btn,html[data-hp="light"] .hp-switch-btn{background:#fff!important;border:1px solid rgba(28,28,26,.14)!important;color:var(--ink)!important;box-shadow:0 2px 8px rgba(28,28,26,.06)!important}
html[data-hp="light"] .mc-open svg,html[data-hp="light"] .ml-btn svg,html[data-hp="light"] .hp-switch-btn svg{color:var(--gold)!important}
html[data-hp="light"] .mc-open:hover,html[data-hp="light"] .ml-btn:hover,html[data-hp="light"] .hp-switch-btn:hover{border-color:rgba(212,175,55,.75)!important}

html[data-hp="light"] .acct-menu,html[data-hp="light"] .ml-menu,html[data-hp="light"] .hp-switch-menu,html[data-hp="light"] .hp-menu{background:#fff!important;border:1px solid rgba(28,28,26,.12)!important;box-shadow:0 18px 50px rgba(28,28,26,.16)!important;color:var(--ink)!important}
html[data-hp="light"] .acct-item{color:var(--ink)}
html[data-hp="light"] .acct-item:hover,html[data-hp="light"] .acct-item:focus-visible{background:var(--bg)}
html[data-hp="light"] .acct-item svg{color:var(--gold)}
html[data-hp="light"] .acct-who b{color:var(--ink)}
html[data-hp="light"] .acct-who small{color:var(--muted)}
html[data-hp="light"] .acct-ph{color:#f6f4ee}

/* Sign-in card, alert bar */
html[data-hp="light"] .ha-back{background:var(--bg)}
html[data-hp="light"] .ha-card{background:#fff;box-shadow:var(--shadow)}
html[data-hp="light"] .ha-card input,html[data-hp="light"] .ha-tz select{background:#fff;color:var(--ink)}
html[data-hp="light"] .ha-btn{background:var(--green);color:#f6f4ee}
html[data-hp="light"] .ha-link{color:var(--gold)}

/* Opening screen and practice label */
html[data-hp="light"] #hpSplash{background:#f5f3ec!important}
html[data-hp="light"] #hp-practice{background:rgba(255,255,255,.94)!important;color:#6f5612!important}

/* Borrower pages (always light) and the loan officer's preview of them: dark-letter Hoober logo, Barrett mark in color */
html[data-hp="light"] .cb-hoober{content:url("/assets/brand-hoober-light.png")}
html[data-hp="light"] .cb-bmark{filter:none}
html[data-hp="light"] .cb-div{background:rgba(143,112,25,.45)}

/* Side menus: hover is a light green tint (was grey); on phones the menu moves to a bottom tab bar, and the open
   tab is a pale green with green text so it reads on the light bar */
html[data-hp="light"] .side-btn:not(.on):hover{background:rgba(35,68,48,.08)!important;color:#234430!important}
html[data-hp="light"] a.tr:hover,html[data-hp="light"] .fu-row:hover,html[data-hp="light"] .conv:hover,html[data-hp="light"] .req:hover{background:rgba(35,68,48,.05)}
@media (max-width:860px){
  html[data-hp="light"] .side .side-btn.on,html[data-hp="light"] .side-btn.on{background:rgba(35,68,48,.12)!important;color:#234430!important}
  html[data-hp="light"] .side-btn.on i,html[data-hp="light"] .side-btn.on svg{color:#234430!important}
}

/* Messages: your messages are solid green with white text; everyone else's are white with dark text */
html[data-hp="light"] .post.mine .bubble{background:#234430;border-color:#234430;color:#f6f4ee}
html[data-hp="light"] .post.mine .bubble .tag.person{color:#f3d77a}
html[data-hp="light"] .post.mine .bubble .tag.file{color:#f6f4ee;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35)}
html[data-hp="light"] .post:not(.mine) .bubble{background:#f1efe9;color:#1d1d1b}
html[data-hp="light"] .bubble.gone{background:none!important;border-color:rgba(28,28,26,.2)!important;color:rgba(29,29,27,.5)!important}
html[data-hp="light"] .tag.person{color:#7a5f12}
html[data-hp="light"] .tag.person.me{background:rgba(212,175,55,.25)}
html[data-hp="light"] .tag.file{color:#5f4a0e;background:rgba(212,175,55,.14);border-color:rgba(212,175,55,.55)}
html[data-hp="light"] .mx-posts{background:#fff}
html[data-hp="light"] .chip.on em,html[data-hp="light"] .chip.on .count{color:#f6f4ee!important;opacity:.85}
html[data-hp="light"] .conv-av.team{background:#f3e9c9;color:#6f5612;border-color:rgba(212,175,55,.6)}
/* Messages redesign (2026-11-29): one white panel, conversation list a touch warmer */
html[data-hp="light"] .mx{background:#fff}
html[data-hp="light"] .mx-list{background:#fcfbf8}
html[data-hp="light"] .mx-thread{background:#fff}
html[data-hp="light"] .mx-head-av.team{background:#f3e9c9;color:#6f5612}
html[data-hp="light"] .conv.on{background:rgba(35,68,48,.08)}
html[data-hp="light"] .mx-bar{background:#fff}
html[data-hp="light"] .vbody{background:#ebe7dc}
html[data-hp="light"] .att-card{background:#fff}
html[data-hp="light"] .react{background:#fff}
/* Home updates (2026-11-29) */
html[data-hp="light"] .app-status{background:#f6ecd0;color:#6f5612}
html[data-hp="light"] .app-status.ok{background:#e3ece6;color:#234430}
html[data-hp="light"] .app-status.warn{background:#fbe6e1;color:#9b3b28}
html[data-hp="light"] .ann-bar{background:#fbf3dc;border-color:rgba(212,175,55,.6)}
html[data-hp="light"] .ann-bar svg{color:#8f7019}
html[data-hp="light"] .ann-menu{background:#fff;box-shadow:0 12px 32px rgba(28,28,26,.14)}
html[data-hp="light"] .ann-menu button.danger{color:#b4442f}
