/* SCMWIS — Senior portal shell: left sidebar (with Sign out) + slim top bar. Content views are unchanged. */
#view-senior-portal{--sp-deep:#9A3A00;--sp-btn:#9A3A00;--spz:1;}
#view-senior-portal.ts-1{--spz:1.1;}
#view-senior-portal.ts-2{--spz:1.22;}
#view-senior-portal.ts-3{--spz:1.38;}
/* Text size: scale the sidebar contents and the main column (not the whole shell, so the sidebar keeps its full-height footer). */
#view-senior-portal .main,#view-senior-portal .sidebar>*{zoom:var(--spz);}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ----- Sidebar ----- */
#view-senior-portal .sidebar:not(.collapsed){width:calc(264px * var(--spz));flex:0 0 calc(264px * var(--spz));max-width:86vw;padding:16px 12px 16px;}
#view-senior-portal .sidebar-brand{gap:12px;padding:4px 6px 16px;margin-bottom:10px;}
#view-senior-portal .sidebar-brand .sidebar-logo{width:52px;height:52px;}
#view-senior-portal .sidebar-brand .brand-text b{font-size:19px;letter-spacing:0;}
#view-senior-portal .sidebar-brand .brand-text small{font-size:12.5px;}
.sp-nav{display:flex;flex-direction:column;gap:4px;}
.sp-nav .nav-item{gap:12px;padding:12px 14px;margin:0;border-left:0;border-radius:8px;font-size:15.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--text-2);}
.sp-nav .nav-item .ico{width:19px;height:19px;}
.sp-nav .nav-item:hover{background:var(--bg);color:var(--text);}
.sp-nav .nav-item.active{background:var(--accent-soft);color:var(--sp-deep);font-weight:600;}
.sp-side-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);}
.sp-top-user{display:flex;align-items:center;gap:12px;padding-left:18px;border-left:1px solid var(--line);}
.sp-top-user b{display:block;font-size:14.5px;font-weight:600;line-height:1.25;color:var(--text);}
.sp-top-user small{font-size:12.5px;color:var(--muted);}
.sp-av{flex:none;width:42px;height:42px;border-radius:50%;background:var(--accent-soft);color:var(--sp-deep);display:grid;place-items:center;font-weight:600;font-size:15px;}
.sp-signout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;height:44px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:15px;font-weight:600;cursor:pointer;}
.sp-signout-btn .ico{width:18px;height:18px;}
.sp-signout-btn:hover{background:var(--bg);border-color:var(--sp-deep);color:var(--sp-deep);}

/* ----- Hide/show button (panel icon) ----- */
.senior-shell .hamburger-btn{width:36px;height:36px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);}
.senior-shell .hamburger-btn:hover{background:var(--bg);}
.senior-shell .hamburger-btn .ico{width:18px;height:18px;}

/* ----- Hidden sidebar on desktop = icon-only rail (logo, icons, sign-out icon) ----- */
@media (min-width:901px){
  #view-senior-portal .sidebar.collapsed{width:calc(76px * var(--spz));flex:0 0 calc(76px * var(--spz));padding:16px 8px;overflow-x:hidden;overflow-y:auto;border-right:1px solid var(--line);}
  #view-senior-portal .sidebar.collapsed .sidebar-brand{justify-content:center;padding:4px 0 14px;}
  #view-senior-portal .sidebar.collapsed .sidebar-brand .sidebar-logo{width:44px;height:44px;}
  #view-senior-portal .sidebar.collapsed .brand-text,
  #view-senior-portal .sidebar.collapsed .sp-nav .nav-item span,
  #view-senior-portal .sidebar.collapsed .sp-signout-btn span{display:none;}
  #view-senior-portal .sidebar.collapsed .sp-nav .nav-item{justify-content:center;padding:13px 0;}
  #view-senior-portal .sidebar.collapsed .sp-nav .nav-item .ico{width:21px;height:21px;}
  #view-senior-portal .sidebar.collapsed .sp-signout-btn{border-color:transparent;}
  #view-senior-portal .sidebar.collapsed .sp-signout-btn .ico{width:21px;height:21px;}
}

/* ----- Top bar and content ----- */
.senior-shell .topbar{height:64px;padding:0 28px;}
.senior-shell .topbar-left{font-size:20px;font-weight:600;gap:12px;}
.senior-shell .topbar-right{gap:18px;}
.sp-textsize{background:none;border:0;padding:4px;font:inherit;font-size:14.5px;font-weight:600;color:var(--sp-deep);cursor:pointer;}
.sp-textsize:hover{text-decoration:underline;}
.senior-shell .bell-btn{border:0;background:transparent;width:36px;height:36px;color:var(--text);}
.senior-shell .bell-btn:hover{background:var(--bg);}
.senior-shell .content{flex:1;width:100%;max-width:1200px;padding:28px 32px 12px;}
.senior-shell .content h2{font-size:32px;font-weight:600;letter-spacing:-.01em;margin-bottom:20px;}
.senior-shell .panel{border-radius:12px;box-shadow:none;}
.senior-shell .add-btn,.senior-shell .filter-btn{background:var(--sp-btn);border-radius:6px;height:42px;}
.senior-shell .add-btn:hover,.senior-shell .filter-btn:hover{background:#7C2D00;}
.senior-shell .btn-primary{background:var(--sp-btn);}
.senior-shell .btn-primary:hover{background:#7C2D00;}
.senior-shell .btn{border-radius:6px;}
.sp-footer{display:flex;align-items:center;gap:10px;margin-top:28px;padding:16px 32px 20px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted);}
.sp-footer .ico{width:16px;height:16px;flex:none;}

@media (max-width:900px){
  .senior-shell .topbar{padding:0 14px;height:58px;}
  .senior-shell .topbar-left{font-size:18px;}
  .senior-shell .topbar-right{gap:8px;}
  .sp-top-user{padding-left:8px;border-left:0;}
  .sp-top-user b,.sp-top-user small{display:none;}
  .senior-shell .content{padding:20px 14px 12px;}
  .senior-shell .content h2{font-size:26px;}
  .sp-footer{padding:14px;}
  .senior-shell .notif-panel{position:fixed;top:64px;left:12px;right:12px;width:auto;}
}

/* ---------- Senior portal: Help page ---------- */
.help-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,400px);gap:24px;align-items:start;}
.help-search{display:flex;align-items:center;gap:14px;height:62px;padding:0 22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--muted);}
.help-search:focus-within{border-color:var(--sp-deep);}
.help-search input,.help-search input:focus{flex:1;border:0;outline:0;box-shadow:none;padding:0;height:auto;background:transparent;font:inherit;font-size:17px;color:var(--text);min-width:0;}
.faq-card{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px 28px;}
.faq-item{border-bottom:1px solid var(--line);}
.faq-item:last-of-type{border-bottom:0;}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:26px 0;background:none;border:0;font:inherit;font-size:18px;font-weight:600;color:var(--text);text-align:left;cursor:pointer;}
.faq-chev{flex:none;width:38px;height:38px;border-radius:50%;background:var(--accent-soft);color:var(--sp-deep);display:grid;place-items:center;transition:background .15s;}
.faq-chev svg{transition:transform .15s;}
.faq-item.open .faq-chev{background:var(--accent);color:#fff;}
.faq-item.open .faq-chev svg{transform:rotate(180deg);}
.faq-a{display:none;padding:0 56px 26px 0;font-size:17px;line-height:1.75;color:var(--text-2);}
.faq-item.open .faq-a{display:block;}
.faq-empty{padding:32px 0;text-align:center;color:var(--muted);}
.help-office{background:var(--sp-btn);color:#fff;border-radius:12px;padding:26px;}
.help-pin{width:54px;height:54px;border-radius:10px;background:rgba(255,255,255,.18);display:grid;place-items:center;margin-bottom:22px;}
.help-office h3{margin:0 0 10px;font-size:20px;font-weight:600;}
.help-office p{margin:0;font-size:16px;line-height:1.6;}
.help-connect{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:26px;}
.help-connect h3{margin:0 0 18px;font-size:18px;font-weight:600;}
.help-link{display:flex;align-items:center;gap:14px;height:56px;padding:0 20px;margin-top:12px;border:1px solid var(--line);border-radius:10px;color:var(--sp-deep);font-weight:600;font-size:16.5px;text-decoration:none;}
.help-link:hover{background:var(--bg);border-color:var(--line-strong);}
#view-senior-portal.ts-2 .help-grid,#view-senior-portal.ts-3 .help-grid{grid-template-columns:1fr;}
#view-senior-portal.ts-2 .set-grid4,#view-senior-portal.ts-3 .set-grid4{grid-template-columns:repeat(2,1fr);}
#view-senior-portal.ts-2 .set-grid3,#view-senior-portal.ts-3 .set-grid3{grid-template-columns:1fr;}
@media (max-width:900px){
  .help-grid{grid-template-columns:1fr;}
  .faq-card{padding:2px 18px;}
  .faq-q{font-size:16.5px;padding:20px 0;}
  .faq-a{padding-right:0;font-size:16px;}
}

/* ---------- Senior portal: Settings page ---------- */
.set-page{max-width:820px;}
.set-title{margin:0 0 6px;}
.set-sub{margin:0 0 22px;color:var(--text-2);}
.set-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px 26px;margin-bottom:20px;}
.set-card h3{margin:0 0 4px;font-size:18px;font-weight:600;}
.set-d{margin:0 0 16px;color:var(--muted);font-size:15px;}
.set-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.set-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.set-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px 10px;min-height:92px;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:10px;font:inherit;cursor:pointer;}
.set-opt:hover{border-color:var(--sp-deep);}
.set-opt.on{border:2px solid var(--accent);padding:17px 9px;}
.set-aa{font-weight:700;line-height:1;}
.set-opt-l{font-size:14px;font-weight:600;}
.set-sw{width:100%;height:44px;border-radius:6px;border:1px solid var(--line);}
.set-sw-light{background:#F6F5F3;}
.set-sw-dark{background:#171513;}
.set-sw-system{background:linear-gradient(90deg,#F6F5F3 50%,#171513 50%);}
.set-sample{margin-top:16px;padding:14px 16px;border-radius:8px;background:var(--accent-soft);color:var(--sp-deep);font-size:16px;}
.set-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);}
.set-row-t{font-weight:600;}
.set-row-d{font-size:14px;color:var(--muted);}
.sw{flex:none;position:relative;width:48px;height:28px;border-radius:14px;border:0;background:#D6D1CA;cursor:pointer;padding:0;transition:background .15s;}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s;}
.sw[aria-checked="true"]{background:var(--accent);}
.sw[aria-checked="true"]::after{transform:translateX(20px);}
.set-voice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:16px;}
.set-voice label{font-weight:600;color:var(--sp-deep);}
.set-voice select{height:40px;min-width:140px;padding:0 10px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;}
.set-btn{height:42px;padding:0 18px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer;}
.set-btn:hover:not(:disabled){background:var(--bg);}
.set-btn:disabled{opacity:.5;cursor:not-allowed;}
@media (max-width:700px){.set-grid4{grid-template-columns:repeat(2,1fr);}.set-grid3{grid-template-columns:1fr;}.set-card{padding:20px 18px;}}

/* ---------- Read aloud button ---------- */
.sp-readbtn{position:fixed;right:20px;bottom:20px;z-index:40;display:none;align-items:center;gap:10px;height:52px;padding:0 22px;border:0;border-radius:26px;background:var(--sp-btn);color:#fff;font:inherit;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.28);cursor:pointer;}
.sp-readaloud .sp-readbtn{display:inline-flex;}

/* ---------- Easier-reading modes ---------- */
#view-senior-portal.sp-dark{color-scheme:dark;--bg:#171513;--surface:#211E1B;--line:#3A352F;--line-strong:#554E46;--text:#F3EFEA;--text-2:#D2CBC2;--muted:#A9A198;--accent-soft:#3A2417;--sp-deep:#F0884A;color:var(--text);}
#view-senior-portal.sp-dark input,#view-senior-portal.sp-dark select,#view-senior-portal.sp-dark textarea{background:var(--surface);color:var(--text);border-color:var(--line-strong);}
#view-senior-portal.sp-hc{--line:#8C867E;--line-strong:#4A453F;--text:#000;--text-2:#1F1B17;--muted:#3A352F;}
#view-senior-portal.sp-dark.sp-hc{--line:#8C867E;--line-strong:#B7B0A6;--text:#fff;--text-2:#F3EFEA;--muted:#DDD6CC;}
#view-senior-portal.sp-hc .set-card,#view-senior-portal.sp-hc .faq-card,#view-senior-portal.sp-hc .panel{border-width:2px;}
#view-senior-portal.sp-bold,#view-senior-portal.sp-bold :where(p,span,td,li,label,div,a,small,input,select,button){font-weight:600;}
#view-senior-portal.sp-bold :where(b,strong,h1,h2,h3,h4,th){font-weight:800;}
#view-senior-portal.sp-bigbtn :where(button:not(.faq-chev):not(.faq-q):not(.pw-toggle):not(.bell-btn):not(.hamburger-btn):not(.sw):not(.set-opt),.btn,.add-btn,.filter-btn){min-height:50px;padding-left:22px;padding-right:22px;font-size:16px;}
#view-senior-portal.sp-bigbtn :where(input:not([type=checkbox]):not([type=radio]),select){min-height:50px;font-size:16px;}
#view-senior-portal.sp-bigbtn .sp-nav .nav-item{padding:16px 14px;}
#view-senior-portal.sp-bigbtn .faq-q{padding-top:32px;padding-bottom:32px;}
#view-senior-portal.sp-noanim,#view-senior-portal.sp-noanim *{animation:none !important;transition:none !important;scroll-behavior:auto !important;}

/* ---------- Senior Settings: Account Settings + General Settings tabs (reuse the admin look) ---------- */
.sp-av{overflow:hidden;}
.sp-av img{width:100%;height:100%;object-fit:cover;display:block;}
.set-page.set-page-wide{max-width:none;}
.acct-grid .sa-wide{grid-column:1 / -1;}
.acct-card .field input:disabled{background:var(--surface-2,var(--bg));color:var(--muted);cursor:not-allowed;}
.sa-ro-note{margin-top:6px;font-size:13px;}
.gen-appearance.sa-first{margin-top:24px;}
.sa-grid{margin-top:14px;max-width:640px;}
.nset-row.sa-row{padding:10px 0;}
.sa-row-txt{display:flex;flex-direction:column;gap:2px;min-width:0;}
.acct-foot.sa-reset{align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.acct-card .set-btn{flex:none;}
.sp-dark .theme-prev{border-color:var(--line-strong);}
/* "Bigger buttons" must not distort the admin-style switches, cards and links */
#view-senior-portal.sp-bigbtn .nset-switch{min-height:0;padding:0;}
#view-senior-portal.sp-bigbtn .theme-opt{min-height:0;padding:16px;}
#view-senior-portal.sp-bigbtn .acct-link,#view-senior-portal.sp-bigbtn .acct-link-strong,#view-senior-portal.sp-bigbtn .acct-pw-btn,#view-senior-portal.sp-bigbtn .ann-tab{min-height:0;padding-left:0;padding-right:0;font-size:inherit;}
#view-senior-portal.sp-bigbtn .acct-pw-btn{padding:4px;}
#view-senior-portal.sp-bigbtn .ann-tab{padding:14px 0 12px;}
@media (max-width:700px){.acct-foot.sa-reset{flex-direction:column;align-items:stretch;}}

/* Tap-to-read: highlight the text that is being read out loud */
.sp-readaloud #seniorContent{cursor:default;}
.sp-reading-now{background:#FFF1B8;outline:3px solid #F5C518;outline-offset:2px;border-radius:4px;}
.sp-dark .sp-reading-now{background:#4A3F10;outline-color:#D9AD00;}
.sp-hc .sp-reading-now{background:#FFE066;outline-color:#000;color:#000;}

/* Text size slider (Senior portal > General Settings): small A, 4 stops, big A */
.set-ts{--th:24px;display:flex;align-items:center;gap:18px;margin-top:18px;max-width:640px;}
.ts-a{flex:none;font-weight:700;line-height:1;color:var(--text);}
.ts-a-sm{font-size:18px;}
.ts-a-lg{font-size:34px;}
.ts-track{position:relative;flex:1;min-width:0;height:36px;}
.ts-rail,.ts-fill{position:absolute;top:50%;height:4px;margin-top:-2px;border-radius:2px;}
.ts-rail{left:0;right:0;background:var(--line-strong);}
.ts-fill{left:0;width:calc(var(--th) / 2 + (100% - var(--th)) * var(--ts-i) / 3);background:var(--sp-deep);}
.ts-dot{position:absolute;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--muted);left:calc(var(--th) / 2 + (100% - var(--th)) * var(--i) / 3);}
#view-senior-portal .set-ts .ts-range{position:absolute;inset:0;z-index:2;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;}
.ts-range::-webkit-slider-runnable-track{height:4px;background:transparent;border:0;}
.ts-range::-moz-range-track{height:4px;background:transparent;border:0;}
.ts-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--th);height:var(--th);margin-top:-10px;border:0;border-radius:50%;background:var(--sp-deep);box-shadow:0 1px 4px rgba(0,0,0,.35);}
.ts-range::-moz-range-thumb{width:var(--th);height:var(--th);border:0;border-radius:50%;background:var(--sp-deep);box-shadow:0 1px 4px rgba(0,0,0,.35);}
.ts-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--sp-deep);}
.ts-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--sp-deep);}
.ts-now{margin-top:8px;font-size:15px;color:var(--text-2);}
.ts-now b{color:var(--sp-deep);font-weight:600;}
@media (max-width:520px){.set-ts{gap:12px;}.ts-a-lg{font-size:28px;}}

/* =====================================================================
   Senior portal: compact layout for tablets and phones (less bulky)
   ===================================================================== */
@media (max-width:900px){
  .senior-shell .topbar-left{flex:1 1 auto;min-width:0;}
  .senior-shell .topbar-right{flex:none;}
  #seniorTopbarTitle{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  /* the sideways-scroll shadow trick is not needed once tables become cards */
  #view-senior-portal .content .panel{background-image:none;overflow-x:visible;}
}

@media (max-width:700px){
  .senior-shell .topbar{height:54px;padding:0 10px;}
  .senior-shell .topbar-left{font-size:17px;gap:10px;}
  .sp-av{width:36px;height:36px;font-size:13px;}
  .senior-shell .content{padding:14px 12px 6px;}
  .sp-home{gap:12px;}
  .senior-shell .content h2{font-size:22px;margin-bottom:12px;}
  .sp-footer{margin-top:14px;padding:12px;font-size:12.5px;}

  /* Cards on every page: smaller inner spacing (some are set inline, hence !important) */
  #seniorContent .panel[style]{padding:16px !important;border-radius:10px;}
  #seniorContent .panel div[style*="padding:14px 0"]{padding:10px 0 !important;}
  .panel-head{padding:12px 14px;gap:10px;}
  .panel-head h3{font-size:15.5px;}
  #view-senior-portal .panel-head .add-btn,#view-senior-portal .panel-head .filter-btn{height:38px;}
  #view-senior-portal .filters{gap:8px;}
  #view-senior-portal .filters select{flex:1 1 0;min-width:0;height:38px;}
  #view-senior-portal .filters .filter-btn{flex:none;padding:0 18px;}

  /* "My Information" style lists: label on top, value below */
  #view-senior-portal .detail-grid,#seniorModalOverlay .detail-grid{padding:4px 14px;line-height:1.45;margin-bottom:12px;}
  #view-senior-portal .detail-grid > div,#seniorModalOverlay .detail-grid > div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:0 10px;align-items:start;padding:7px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
  #view-senior-portal .detail-grid > div:last-child,#seniorModalOverlay .detail-grid > div:last-child{border-bottom:0;}
  #view-senior-portal .detail-grid .dl,#seniorModalOverlay .detail-grid .dl{display:block;width:auto;margin:0;font-size:13px;}

  /* Pension and welfare tables become one card per record (no sideways scrolling) */
  #view-senior-portal .content .panel table{display:block;min-width:0;width:100%;}
  #view-senior-portal .panel table thead{display:none;}
  #view-senior-portal .panel table tbody{display:block;padding:2px 12px 12px;}
  #view-senior-portal .panel table tbody tr{display:block;margin-top:10px;padding:2px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);}
  #view-senior-portal .panel table tbody tr:hover{background:var(--surface);}
  #view-senior-portal .panel table tbody td{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:2px 12px;padding:7px 0;font-size:14.5px;text-align:right;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
  #view-senior-portal .panel table tbody tr td:last-child{border-bottom:0;}
  #view-senior-portal .panel table tbody td[data-label]::before{content:attr(data-label);flex:none;font-size:13px;font-weight:600;color:var(--muted);text-align:left;}
  #view-senior-portal .panel table tbody td.td-act{justify-content:flex-end;}
  #view-senior-portal .panel table tbody td[data-label="Reason"]{flex-direction:column;align-items:flex-start;text-align:left;}
  #view-senior-portal .panel table tbody tr.empty-row{border:0;padding:0;margin-top:0;background:none;}
  #view-senior-portal .panel table tbody tr.empty-row td{display:block;text-align:center;padding:26px 8px;border:0;}

  /* Benefits & Privileges */
  #view-senior-portal .bp-hero{padding:18px;gap:12px;border-radius:14px;}
  #view-senior-portal .bp-hero h2{font-size:24px;margin:8px 0 4px;}
  #view-senior-portal .bp-hero p{font-size:15px;}
  #view-senior-portal .bp-logo{width:68px;height:68px;padding:5px;}
  #view-senior-portal .bp-status{font-size:14.5px;margin:12px 0 2px;}
  #view-senior-portal .bp-feature,#view-senior-portal .bp-card{padding:14px;gap:12px;border-radius:12px;}
  #view-senior-portal .bp-feature{margin-top:12px;}
  #view-senior-portal .bp-grid{gap:10px;margin-top:10px;}
  #view-senior-portal .bp-ico{width:46px;height:46px;}
  #view-senior-portal .bp-ico svg{width:26px;height:26px;}
  #view-senior-portal .bp-body b{font-size:17px;margin-bottom:2px;}
  #view-senior-portal .bp-body span{font-size:14.5px;line-height:1.45;}
  #view-senior-portal .bp-btn{padding:10px 14px;font-size:14.5px;}
  #view-senior-portal .bp-note{margin-top:12px;padding:12px 14px;font-size:14px;}

  /* Announcements and events */
  .ev-tabs{padding:0 4px;}
  .ev-tab{padding:12px 14px;}
  #view-senior-portal .post-card{margin:0 10px 12px;}
  #view-senior-portal .post-card-head{padding:12px 14px 4px;}
  #view-senior-portal .post-card-date{padding:0 14px 10px;}
  #view-senior-portal .post-card-body{padding:12px 14px;font-size:15px;}
  #view-senior-portal .post-card-img{max-height:190px;}
  #view-senior-portal .post-card-img-placeholder{height:150px;}

  /* Help Center */
  .help-grid{gap:14px;}
  .help-search{height:52px;padding:0 16px;gap:10px;}
  .help-search input,.help-search input:focus{font-size:16px;}
  .faq-card{margin-top:14px;padding:0 14px;}
  .faq-q{padding:15px 0;font-size:16px;gap:12px;}
  .faq-chev{width:32px;height:32px;}
  .faq-a{padding-bottom:16px;font-size:15.5px;line-height:1.65;}
  .help-office{padding:18px;}
  .help-pin{width:44px;height:44px;margin-bottom:12px;}
  .help-office h3{font-size:18px;}
  .help-office p{font-size:15px;}
  .help-connect{margin-top:14px;padding:16px;}
  .help-connect h3{font-size:16.5px;margin-bottom:10px;}
  .help-link{height:48px;padding:0 16px;margin-top:8px;font-size:15.5px;}

  /* Settings */
  #view-senior-portal .acct-card{padding:16px 14px 18px;}
  #view-senior-portal .acct-head{gap:12px;padding-bottom:14px;}
  #view-senior-portal .acct-head h3{font-size:19px;}
  #view-senior-portal .acct-head-ico{width:40px;height:40px;}
  #view-senior-portal .acct-body{padding-top:16px;}
  #view-senior-portal .set-tabs{margin-bottom:12px;gap:22px;}
  #view-senior-portal .set-card{padding:16px 14px;margin-bottom:14px;}
}

/* =====================================================================
   Senior portal: use the full width on wide screens (like the admin side)
   ===================================================================== */
.senior-shell .content{max-width:1440px;margin:0 auto;}
#view-senior-portal .bp{max-width:none;}
@media (min-width:1500px){
  .senior-shell .content{padding-left:40px;padding-right:40px;}
}

/* My profile: ID card centered on top, the other cards in equal columns below */
.sp-home{display:flex;flex-direction:column;gap:20px;}
.sp-home > div{min-width:0;display:flex;flex-direction:column;}
.sp-home .panel[style]{max-width:none !important;margin-top:0 !important;}
.sp-home > div > .panel{flex:1;}
.sp-a-id{align-items:center;}
.sp-a-id > :not(.idc-wrap){text-align:center;}
.sp-a-id > *{width:100%;max-width:520px;}
@media (min-width:1100px){
  .sp-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"id id" "info rep" "info req";align-items:stretch;column-gap:24px;row-gap:20px;}
  .sp-a-id{grid-area:id;} .sp-a-rep{grid-area:rep;} .sp-a-info{grid-area:info;} .sp-a-req{grid-area:req;}
}
#view-senior-portal .ev-tabs{margin-bottom:16px;}