/* Marian Academy Service Desk — UI 3.0 "soft glass"
   One design system for staff app, portal, and auth.
   Ground: cool grey gradient. Surfaces: floating rounded slabs on hairlines + soft shadow.
   Accents: ink black for interaction; green/amber/red/blue/purple for state. */
:root {
  --ground-1:  #D9DDE7;
  --ground-2:  #EDEFF5;
  --shell:     #F5F6FA;
  --card:      #FFFFFF;
  --ink:       #17181C;
  --text:      #17181C;
  --mut:       #9A9FAD;
  --line:      #ECEEF4;
  --green:     #14B85C;  --green-bg:  #E4F8ED;  --green-ink: #0D8A44;
  --amber:     #F5A800;  --amber-bg:  #FFF4D9;  --amber-ink: #A87400;
  --red:       #F4442E;  --red-bg:    #FDE6E2;  --red-ink:   #C23520;
  --blue:      #2E90FA;  --blue-bg:   #E4F0FE;  --blue-ink:  #1668C4;
  --purple:    #8A63D2;  --purple-bg: #EFE9FA;  --purple-ink:#6A44B0;
  --grey-bg:   #EEF0F5;  --grey-ink:  #7A8090;
  --brand-primary: #2D2A85;  --brand-primary-2: #211E63;   /* Marian crest blue */
  --radius:    22px;
  --radius-sm: 13px;
  --shadow:    0 16px 34px -18px rgba(50, 60, 90, .35);
  --shadow-lg: 0 30px 80px -30px rgba(50, 60, 90, .35);
  --app-border: #ECEEF4; /* legacy token referenced by main.js inline styles */
  --app-bg: #F5F6FA; --app-surface: #FFFFFF; --app-text: #17181C; --app-text-muted: #9A9FAD;
  --app-accent: #17181C; --app-radius: 22px; --app-radius-sm: 13px;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0; font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text); font-size: 14px; min-height: 100vh;
  background: linear-gradient(160deg, var(--ground-1), var(--ground-2) 55%, #D5D9E4);
  background-attachment: fixed;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-primary); color: #fff; }
.muted { color: var(--mut); }
.flex { display: flex; gap: 10px; align-items: center; }
.right { margin-left: auto; }

/* =========================================================================
   App shell — floating sidebar slab + main slab
   ========================================================================= */
.app-shell { display: flex; gap: 16px; padding: 14px 16px; min-height: 100vh; align-items: stretch; }

.sidebar {
  width: 246px; flex-shrink: 0; background: var(--card); border-radius: 28px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  position: sticky; top: 14px; height: calc(100vh - 28px); overflow: hidden;
  transition: width .28s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-brand { padding: 22px 20px 18px; display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.sidebar-brand .logo { width: 38px; height: 38px; border-radius: 11px; background: #fff;
  object-fit: contain; padding: 3px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(16,40,30,.15); }
.nav { padding: 6px 12px; flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #D6DAE3 transparent; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: #D6DAE3; border-radius: 4px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  color: var(--mut); padding: 16px 12px 6px; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 999px;
  color: #6E7382; font-weight: 500; margin-bottom: 3px; font-size: 13.5px; white-space: nowrap;
  transition: background .15s, color .15s; }
.nav a:hover { background: var(--grey-bg); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--brand-primary); color: #fff; font-weight: 600;
  box-shadow: 0 10px 22px -8px rgba(23, 24, 28, .5); }
.nav a svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.side-collapse { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border: 0; background: var(--grey-bg); border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #6E7382; white-space: nowrap;
  transition: background .15s, color .15s; }
.side-collapse:hover { background: #E4E7EE; color: var(--ink); }
.side-collapse svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor;
  stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.side-label { transition: opacity .18s ease; }

/* collapsed state (body class; html.pre-collapsed prevents first-paint flash) */
body.sidebar-collapsed .sidebar,
html.pre-collapsed .sidebar { width: 82px; }
body.sidebar-collapsed .side-label,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .sidebar-brand > span:not(.logo),
html.pre-collapsed .side-label,
html.pre-collapsed .nav-section,
html.pre-collapsed .sidebar-brand > span:not(.logo) { opacity: 0; width: 0; overflow: hidden; display: none; }
body.sidebar-collapsed .nav a,
html.pre-collapsed .nav a { justify-content: center; padding: 11px; }
body.sidebar-collapsed .sidebar-brand,
html.pre-collapsed .sidebar-brand { justify-content: center; padding-left: 12px; padding-right: 12px; }
body.sidebar-collapsed .side-collapse,
html.pre-collapsed .side-collapse { justify-content: center; padding: 11px; }
body.sidebar-collapsed .side-collapse svg { transform: rotate(180deg); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--shell); border-radius: 30px; box-shadow: var(--shadow-lg);
  overflow: hidden; }
.topbar { padding: 20px 34px 16px; display: flex; align-items: center; gap: 14px;
  justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--shell); }
.topbar h1 { font-size: 23px; font-weight: 700; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.rq-round { width: 42px; height: 42px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s; }
.rq-round:hover { transform: translateY(-2px); text-decoration: none; }
.rq-round svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.rq-round:hover svg { transform: rotate(180deg); }
.rq-user { display: flex; align-items: center; gap: 11px; background: var(--card);
  border-radius: 999px; padding: 6px 18px 6px 7px; box-shadow: var(--shadow); }
.rq-ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13px;
  font-weight: 600; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #0A8C68); }
.rq-user b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.rq-user .rq-user-sub { display: block; font-size: 11.5px; color: var(--mut); line-height: 1.2; }
.container { padding: 26px 34px 40px; width: 100%; animation: pageIn .3s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Cards / stats
   ========================================================================= */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 18px 20px; }
.stat-card .label { color: var(--mut); font-size: 12px; font-weight: 500; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }

/* requests-page stat cards with colored top edge + icon dot */
.rq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-bottom: 26px; }
.rq-stat { position: relative; background: var(--card); border-radius: 20px;
  padding: 18px 20px 16px; box-shadow: var(--shadow); overflow: hidden; }
.rq-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--sc, var(--grey-bg)); }
.rq-stat .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sb, var(--grey-bg)); color: var(--sc, var(--mut)); margin-bottom: 10px; }
.rq-stat .dot svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.rq-stat .label { font-size: 12px; font-weight: 500; color: var(--mut); }
.rq-stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px;
  font-variant-numeric: tabular-nums; }
.st-new    { --sc: var(--amber);  --sb: var(--amber-bg); }
.st-prog   { --sc: var(--blue);   --sb: var(--blue-bg); }
.st-pend   { --sc: var(--purple); --sb: var(--purple-bg); }
.st-res    { --sc: var(--green);  --sb: var(--green-bg); }
.st-closed { --sc: #B9BECB;       --sb: var(--grey-bg); }
.st-total  { --sc: var(--ink);    --sb: var(--grey-bg); }

/* =========================================================================
   Tables
   ========================================================================= */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--mut);
  padding: 15px 12px 11px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
  font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #FAFBFD; }
tfoot td { font-weight: 700; }
.rq-tablecard { background: var(--card); border-radius: 26px; padding: 10px 26px 14px;
  box-shadow: 0 20px 44px -20px rgba(50, 60, 90, .38); }
td .num { font-weight: 700; font-variant-numeric: tabular-nums; }
td .cname { font-weight: 600; display: block; }
td .ctype { font-size: 11.5px; color: var(--mut); }
.empty { text-align: center; color: var(--mut); padding: 44px; }

/* =========================================================================
   Badges / pills / SLA
   ========================================================================= */
.badge, .pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green,  .status-Resolved  { background: var(--green-bg);  color: var(--green-ink); }
.pill-blue,   .status-InProgress{ background: var(--blue-bg);   color: var(--blue-ink); }
.pill-amber,  .status-New       { background: var(--amber-bg);  color: var(--amber-ink); }
.pill-purple, .status-Pending   { background: var(--purple-bg); color: var(--purple-ink); }
.pill-red                       { background: var(--red-bg);    color: var(--red-ink); }
.pill-grey,   .status-Closed    { background: var(--grey-bg);   color: var(--grey-ink); }
.prio-High   { background: var(--red-bg);   color: var(--red-ink); }
.prio-Medium { background: var(--amber-bg); color: var(--amber-ink); }
.prio-Low    { background: var(--grey-bg);  color: var(--grey-ink); }
.type-student { background: var(--blue-bg);   color: var(--blue-ink); }
.type-parent  { background: var(--purple-bg); color: var(--purple-ink); }
.type-teacher { background: var(--green-bg);  color: var(--green-ink); }

/* SLA — bold colored figures with small captions */
.sla { font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sla small { display: block; font-weight: 500; font-size: 10.5px; color: var(--mut); letter-spacing: .02em; }
.sla-good, .sla.sla-green { color: var(--green); }
.sla-warn, .sla.sla-amber { color: var(--amber); }
.sla-bad,  .sla.sla-red   { color: var(--red); }
.sla-off,  .sla.sla-grey  { color: #B9BECB; }
/* legacy chip shape (request detail page + breach overlay injected by main.js) */
.sla-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px;
  font-weight: 700; margin-right: 4px; }
.sla-chip.sla-green { background: var(--green-bg); color: var(--green-ink); }
.sla-chip.sla-amber { background: var(--amber-bg); color: var(--amber-ink); }
.sla-chip.sla-red   { background: var(--red-bg);   color: var(--red-ink); }
.sla-chip.sla-grey  { background: var(--grey-bg);  color: var(--grey-ink); }
.tag { display: inline-block; background: var(--grey-bg); border-radius: 8px;
  padding: 2px 9px; font-size: 11px; font-weight: 500; color: var(--grey-ink); }

/* =========================================================================
   Buttons / forms / toolbar
   ========================================================================= */
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 0;
  background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer;
  font-size: 13.5px; font-family: inherit; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-primary); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(45, 42, 133, .5); }
.btn-primary:hover { background: var(--brand-primary-2); }
.btn-danger { background: var(--red); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(244, 68, 46, .6); }
.btn-ghost { background: var(--grey-bg); box-shadow: none; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
input, select, textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 13.5px;
  background: var(--shell); color: var(--ink); transition: background .15s, border-color .15s; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px;
  background: #fff; }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; margin-top: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input, .toolbar select { width: auto; background: var(--card); box-shadow: var(--shadow);
  border: 0; border-radius: 999px; padding: 10px 18px; }
.toolbar .btn { box-shadow: var(--shadow); }

/* requests filter pill-bar */
.rq-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.rq-filters { display: flex; align-items: center; gap: 4px; background: var(--card);
  border-radius: 999px; padding: 5px 6px 5px 20px; box-shadow: var(--shadow); flex-wrap: wrap; }
.rq-filters .flabel { font-size: 13px; font-weight: 500; color: var(--mut); margin-right: 6px; }
.rq-filters input, .rq-filters select { border: 0; background: transparent; box-shadow: none;
  font-size: 13.5px; padding: 9px 10px; max-width: 190px; border-radius: 999px; }
.rq-filters input:focus, .rq-filters select:focus { outline: 2px solid var(--ink); background: transparent; }
.rq-filters select { width: auto; cursor: pointer; }
.rq-filters .sep { width: 1px; height: 20px; background: var(--line); }
.rq-filters button, .rq-filters .fbtn { border: 0; cursor: pointer; font-family: inherit;
  background: var(--grey-bg); color: var(--ink); font-weight: 600; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; transition: background .15s; }
.rq-filters button:hover, .rq-filters .fbtn:hover { background: #E4E7EE; text-decoration: none; }

/* breach banner */
.rq-breach { display: flex; align-items: center; gap: 16px; background: var(--card);
  border-radius: var(--radius); padding: 16px 22px; margin-bottom: 24px;
  box-shadow: 0 14px 34px -16px rgba(244, 68, 46, .45); }
.rq-breach .face { width: 44px; height: 44px; border-radius: 50%; background: var(--red-bg);
  color: var(--red); display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(244, 68, 46, .07); animation: breachPing 2.4s ease-in-out infinite; }
@keyframes breachPing {
  0%, 100% { box-shadow: 0 0 0 8px rgba(244, 68, 46, .07); }
  50%      { box-shadow: 0 0 0 12px rgba(244, 68, 46, .12); }
}
.rq-breach .face svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8;
  fill: none; stroke-linecap: round; }
.rq-breach b { font-weight: 600; }
.rq-breach .sub { font-size: 12.5px; color: var(--mut); margin-top: 1px; }
.rq-breach button { margin-left: auto; border: 0; cursor: pointer; font-family: inherit;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 13px;
  padding: 10px 20px; border-radius: 999px; }

/* =========================================================================
   Modal / suggestions / timeline / toast
   ========================================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(35, 40, 55, .45);
  backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center;
  z-index: 50; padding: 50px 20px; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--card); border-radius: 26px; padding: 30px;
  width: 100%; max-width: 580px; box-shadow: 0 30px 80px rgba(35, 40, 55, .35);
  animation: modalIn .22s cubic-bezier(.3, 1.2, .4, 1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; } }
.modal h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.kb-suggestion { background: var(--shell); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 8px 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.timeline .meta { font-size: 12px; color: var(--mut); margin-bottom: 4px; }
.timeline .event { color: var(--mut); font-style: italic; font-size: 13px; }
.timeline .internal { border-left: 3px solid var(--amber); padding-left: 13px; border-radius: 2px; }
#toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: 14px; box-shadow: 0 18px 40px rgba(35, 40, 55, .35);
  opacity: 0; transform: translateY(10px); transition: .22s; z-index: 100; }
#toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Auth (staff + portal login)
   ========================================================================= */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 38px; width: 100%; max-width: 400px; animation: pageIn .3s ease both; }
.auth-card h1 { margin: 0 0 4px; font-size: 24px; }
.error { background: var(--red-bg); color: var(--red-ink); padding: 11px 15px;
  border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }
.notice { background: var(--green-bg); color: var(--green-ink); padding: 11px 15px;
  border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }

/* =========================================================================
   Portal — help-center shell
   ========================================================================= */
.portal-body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.portal-header { background: var(--card); color: var(--ink); margin: 14px 16px 0;
  padding: 13px 26px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 22px; box-shadow: var(--shadow); position: sticky; top: 14px; z-index: 20; }
.portal-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700;
  color: var(--ink); }
.portal-logo:hover { text-decoration: none; }
.portal-logo .logo-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff;
  object-fit: contain; padding: 2px; box-shadow: 0 1px 3px rgba(16,40,30,.15); }
.portal-header .nav-links { display: flex; gap: 6px; align-items: center; }
.portal-header .nav-links a { color: #6E7382; font-weight: 500; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; transition: background .15s, color .15s; }
.portal-header .nav-links a:hover { color: var(--ink); background: var(--grey-bg);
  text-decoration: none; }
.portal-header .nav-links a i { margin-right: 5px; opacity: .85; }
.portal-user { color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 0 8px; }
.portal-main { max-width: 920px; margin: 0 auto; padding: 40px 28px; width: 100%; flex: 1;
  animation: pageIn .3s ease both; }
.portal-main-flush { max-width: none; padding: 0; }
.portal-footer { padding: 20px 40px; display: flex; justify-content: space-between;
  color: #7A8090; font-size: 13px; }

/* portal hero — floating ink slab */
.portal-hero { margin: 16px 16px 0; border-radius: 30px; padding: 66px 20px 62px;
  text-align: center; color: #fff; position: relative; overflow: hidden; background: var(--ink); }
.portal-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 280px at 50% -20%, rgba(20, 184, 92, .25), transparent 70%); }
.portal-hero > * { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.portal-hero .hero-title { font-size: 42px; font-weight: 700; margin: 0 0 12px; color: #fff;
  letter-spacing: -.025em; line-height: 1.08; }
.hero-sub { color: rgba(255, 255, 255, .68); font-size: 16px; margin: 0 auto 30px; max-width: 520px; }
.hero { text-align: center; padding: 36px 0 24px; }
.hero-sm { padding: 20px 0 6px; }
.hero-title { font-size: 32px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.02em; }
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto;
  background: #fff; border-radius: 18px; padding: 8px 8px 8px 20px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.hero-search .search-icon { color: var(--mut); flex-shrink: 0; font-size: 18px; margin-right: 2px; }
.hero-search input { border: none; box-shadow: none; font-size: 16px; padding: 14px 8px;
  background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; background: transparent; }
.hero-search input::placeholder { color: var(--mut); }
.btn-search { flex-shrink: 0; border: none; cursor: pointer; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 13px;
  font-family: inherit; transition: transform .15s; }
.btn-search:hover { transform: translateY(-1px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 999px; transition: transform .16s, box-shadow .16s; }
.btn-hero:hover { text-decoration: none; transform: translateY(-2px); }
.btn-hero .bh-icon { font-size: 17px; }
.btn-hero-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.btn-hero-ghost { background: rgba(255, 255, 255, .08); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.hero-notice { display: inline-block; margin: 24px auto 0; background: rgba(255, 255, 255, .12);
  color: #fff; border: 1px solid rgba(255, 255, 255, .25); padding: 10px 18px;
  border-radius: 999px; font-size: 13px; }

/* announcements */
.announcements { max-width: 760px; margin: 48px auto 8px; padding: 0 20px; }
.section-heading { text-align: center; font-size: 23px; font-weight: 700; margin: 0 0 6px; }
.ann-head-row { text-align: center; margin-bottom: 26px; }
.ann-head-row::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px;
  background: var(--ink); margin: 12px auto 0; }
.ann-list { list-style: none; padding: 0; margin: 0; }
.ann-card { display: flex; gap: 16px; background: var(--card); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; }
.ann-card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(50, 60, 90, .45); }
.ann-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; background: var(--grey-bg);
  display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.ann-content { flex: 1; min-width: 0; }
.ann-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ann-title { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.ann-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green-ink); background: var(--green-bg); padding: 3px 10px; border-radius: 999px; }
.ann-date { margin-left: auto; color: var(--mut); font-size: 12px; font-weight: 500;
  background: var(--grey-bg); padding: 3px 11px; border-radius: 999px; }
.ann-body { color: #6E7382; margin: 7px 0 0; font-size: 13.5px; line-height: 1.55; }

/* contact + grids */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.contact-grid .card h3 { margin: 14px 0 4px; font-size: 15px; }
.contact-grid .card h3:first-child { margin-top: 0; }
.contact-grid .card h3 i { color: var(--ink); margin-right: 4px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* =========================================================================
   Responsive + motion
   ========================================================================= */
@media (max-width: 1024px) {
  .app-shell { padding: 10px; gap: 10px; }
  .sidebar { width: 82px; }
  .side-label, .nav-section, .sidebar-brand > span:not(.logo) { display: none; }
  .nav a, .side-collapse { justify-content: center; padding: 11px; }
  .grid-2, .charts-grid, .form-row { grid-template-columns: 1fr; }
  .topbar, .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .portal-main:not(.portal-main-flush) { padding: 24px 16px; }
  .portal-header { padding: 12px 14px; flex-wrap: wrap; gap: 6px 10px; margin: 10px; }
  .portal-hero { margin: 10px; padding: 46px 18px 50px; }
  .portal-hero .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-search { flex-wrap: wrap; border-radius: 16px; }
  .hero-search input { width: 100%; }
  .btn-search { width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn-hero { justify-content: center; }
  .portal-main { padding: 24px 16px; }
  .rq-user b, .rq-user .rq-user-sub { display: none; }
  .rq-user { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
