:root {
  --ink: #101820;
  --navy: #111923;
  --navy-soft: #1d2a36;
  --steel: #536f88;
  --steel-light: #9aafc0;
  --brass: #b7904f;
  --paper: #ecebe7;
  --white: #fff;
  --muted: #6e7b83;
  --line: rgba(16, 24, 32, .14);
  --shadow: 0 24px 70px rgba(8, 20, 28, .16);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header, .portal-header {
  position: sticky; top: 0; z-index: 20; min-height: 78px; padding: 12px max(24px, calc((100vw - 1160px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(16, 24, 32, .95); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px);
}
.portal-header { padding-left: max(24px, calc((100vw - 1680px) / 2)); padding-right: max(24px, calc((100vw - 1680px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-seal { width: 48px; height: 48px; flex: 0 0 48px; display: block; object-fit: cover; border: 1px solid rgba(183,144,79,.58); border-radius: 50%; background: #101820; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font: 800 16px/1.1 var(--font-display); letter-spacing: .01em; }
.brand small { color: #acbbc4; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: #dce5e8; text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: #d2b67e; }
.site-nav .nav-login { padding: 11px 16px; border: 1px solid var(--brass); color: #d2b67e; }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.25); color: white; background: transparent; padding: 9px 12px; }

.hero { position: relative; overflow: hidden; color: var(--white); background: #0d1218; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url('/assets/hero-cdf-operations-v1.png') center center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,11,15,.98) 0%, rgba(9,14,19,.9) 34%, rgba(11,17,23,.46) 67%, rgba(8,12,16,.28) 100%), linear-gradient(0deg, rgba(5,8,11,.7), transparent 48%); }
.hero-grid { position: absolute; inset: 0; z-index: 2; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-layout { position: relative; z-index: 3; min-height: 640px; padding: 100px 0 88px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr); gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--steel-light); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.dark { color: #465f75; }
.hero h1 { margin: 0; max-width: 790px; font: 850 clamp(46px, 6vw, 76px)/1.02 var(--font-display); letter-spacing: -.025em; }
.hero h1 span { color: #c6a05b; }
.hero-lead { max-width: 700px; margin: 28px 0 0; color: #d2dde1; font-size: 19px; line-height: 1.7; }
.button-row { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 46px; padding: 0 19px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--brass); color: #17130d; }
.button.primary:hover { background: #c9a760; }
.button.secondary { border-color: rgba(255,255,255,.34); background: transparent; color: var(--white); }
.button.small { min-height: 38px; padding: 0 14px; }
.button.disabled, .button:disabled { opacity: .55; cursor: not-allowed; }
.fiction-note { margin: 22px 0 0; color: #91a2aa; font-size: 12px; }
.briefing-card { padding: 30px; border: 1px solid rgba(154,175,192,.3); background: rgba(9,15,21,.76); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.briefing-label { display: flex; align-items: center; gap: 10px; color: #d2b67e; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.briefing-label span { width: 24px; height: 2px; background: var(--brass); }
.briefing-card dl { margin: 28px 0; display: grid; gap: 0; }
.briefing-card dl div { padding: 16px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.13); }
.briefing-card dt { color: #91a7b0; }
.briefing-card dd { margin: 0; font-weight: 800; }
.briefing-card p { margin: 0; color: #b9c7cc; line-height: 1.65; }

.status-strip { background: #0d171d; color: white; }
.status-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.status-grid > div { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; border-right: 1px solid rgba(255,255,255,.1); }
.status-grid > div:first-child { padding-left: 0; }
.status-grid strong { font-size: 14px; }
.status-grid small { grid-column: 2; color: #8fa1aa; line-height: 1.4; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(183,144,79,.12); align-self: center; }

.section { padding: 100px 0; }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.section h2 { margin: 0; font: 850 clamp(38px, 5vw, 61px)/1.05 var(--font-display); letter-spacing: -.02em; }
.body-copy p, .section-heading > p:last-child { color: #56646b; font-size: 18px; line-height: 1.75; }
.body-copy p:first-child { margin-top: 0; }
.operations { background: var(--navy); color: var(--white); }
.section-heading { max-width: 760px; }
.operations .section-heading > p:last-child { color: #b8c5ca; }
.card-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.14); }
.card-grid article { min-height: 270px; padding: 28px; border-right: 1px solid rgba(255,255,255,.14); }
.card-grid article:last-child { border-right: 0; }
.card-grid article > span { color: #d2b67e; font-size: 12px; letter-spacing: .15em; }
.card-grid h3 { margin: 70px 0 12px; font: 800 24px/1.15 var(--font-display); }
.card-grid p { color: #b8c5ca; line-height: 1.55; }
.standards { background: #e7e4dc; }
.standards-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.standards-panel { position: sticky; top: 120px; }
.standards-panel > p:last-child { color: #59666c; font-size: 18px; line-height: 1.7; }
.standards-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.standards-list li { padding: 28px 0; display: grid; grid-template-columns: 50px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.standards-list li > span { color: #806536; font-weight: 800; }
.standards-list strong { font: 800 23px/1.2 var(--font-display); }
.standards-list p { margin: 7px 0 0; color: #66747b; }
.join { background: var(--ink); color: white; }
.join-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.join-card p:last-child { max-width: 680px; color: #b7c2c7; font-size: 17px; line-height: 1.65; }
footer { padding: 34px 0; background: #080f13; color: #8fa0a8; }
.footer-layout { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-layout div { display: grid; gap: 4px; }
.footer-layout strong { color: white; }
.footer-layout p { font-size: 12px; }

.portal-page { min-height: 100vh; color: white; background: linear-gradient(135deg, #0c1117, #182431 70%, #101820); }
.portal-header-actions { display: flex; align-items: center; gap: 10px; }
.portal-header-actions form { margin: 0; }
.portal-header-actions .admin-access-action { color: #17130d; background: #c6a05b; border-color: #c6a05b; }
.portal-header-actions .admin-access-action:hover { background: #d5b26b; border-color: #d5b26b; }
.portal-main { width: min(1680px, calc(100% - 64px)); margin: 0 auto; padding: 80px 0; }
.portal-intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.portal-intro > div { max-width: 720px; }
.portal-intro h1 { margin: 0; font: 850 clamp(43px, 6vw, 72px)/1 var(--font-display); letter-spacing: -.025em; }
.portal-intro p:last-child { color: #b7c6cb; font-size: 18px; line-height: 1.7; }
.portal-login .button { flex: 0 0 auto; }
.portal-alert { margin: 24px 0 0; padding: 18px 22px; border: 1px solid rgba(206,118,92,.55); background: rgba(118,45,29,.22); }
.portal-alert p { margin: 5px 0 0; color: #e2c2b8; }
.employee-identity { display: flex; align-items: center; gap: 22px; }
.employee-identity img, .employee-avatar-fallback { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 50%; border: 1px solid rgba(210,182,126,.55); background: #131d25; object-fit: cover; }
.employee-avatar-fallback { display: grid; place-items: center; color: #d2b67e; font: 800 15px/1 var(--font-display); letter-spacing: .1em; }
.agent-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(24px, 2.4vw, 44px); padding: clamp(30px, 3vw, 50px); background: linear-gradient(135deg, rgba(25,38,49,.98), rgba(12,19,26,.98)); border: 1px solid rgba(183,144,79,.34); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.agent-overview { min-width: 0; padding: 12px 6px 6px; }
.agent-overview .employee-identity h1 { margin: 0; font: 850 clamp(32px, 4.25vw, 52px)/1.04 var(--font-display); letter-spacing: -.02em; }
.agent-overview .employee-identity p { margin: 8px 0 0; color: #d2b67e; font-weight: 750; }
.agent-summary-pills { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.agent-summary-pills span { padding: 7px 10px; color: #d9e3e7; background: rgba(83,111,136,.18); border: 1px solid rgba(154,175,192,.25); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agent-identity-grid { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.13); border-left: 1px solid rgba(255,255,255,.13); }
.agent-identity-grid div { min-width: 0; padding: 17px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.025); }
.agent-identity-grid dt { margin: 0 0 7px; color: #8fa3ae; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.agent-identity-grid dd { margin: 0; overflow-wrap: anywhere; color: #f3f6f7; font-weight: 760; font-variant-numeric: tabular-nums; }
.agent-credentials { width: 100%; max-width: 220px; justify-self: end; display: grid; align-content: start; gap: 8px; }
.agent-rank-badge, .agent-plate-card { margin: 0; padding: 10px; background: transparent; border: 1px solid rgba(154,175,192,.2); }
.agent-rank-badge { min-height: 164px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; justify-items: center; }
.agent-rank-badge > span, .agent-plate-card > span { justify-self: start; color: #8fa3ae; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.agent-rank-badge img { width: 100%; height: 100px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.34)); }
.agent-rank-badge figcaption { max-width: 100%; color: #f0d9a8; font: 800 14px/1.15 var(--font-display); text-align: center; }
.badge-download-menu { width: 100%; height: 100px; position: relative; }
.badge-download-menu summary { width: 100%; height: 100%; position: relative; display: block; list-style: none; cursor: pointer; }
.badge-download-menu summary::-webkit-details-marker { display: none; }
.badge-download-menu summary::marker { content: ""; }
.badge-download-menu summary span { position: absolute; right: 8px; bottom: 8px; padding: 7px 9px; color: #f3e3bd; background: rgba(7,12,17,.9); border: 1px solid rgba(210,182,126,.55); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(3px); transition: opacity .16s ease, transform .16s ease; }
.badge-download-menu summary:hover span, .badge-download-menu summary:focus-visible span, .badge-download-menu[open] summary span { opacity: 1; transform: translateY(0); }
.badge-download-menu summary:focus-visible { outline: 2px solid #d2b67e; outline-offset: 3px; }
.badge-download-popover { width: 220px; padding: 14px; position: absolute; right: 8px; bottom: 8px; z-index: 3; display: grid; gap: 7px; color: #f3f6f7; background: #111a22; border: 1px solid rgba(210,182,126,.68); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.badge-download-popover strong { font-size: 13px; }
.badge-download-popover small { color: #9fb0b8; line-height: 1.4; }
.badge-download-popover a { min-height: 36px; margin-top: 3px; display: inline-flex; align-items: center; justify-content: center; color: #17130d; background: #c6a05b; font-size: 12px; font-weight: 850; text-decoration: none; }
.badge-download-popover a:hover { background: #d5b26b; }
.agent-rank-badge-fallback { width: 175px; height: 210px; align-self: center; position: relative; display: grid; place-items: center; color: #d2b67e; background: radial-gradient(circle at 50% 42%, #263b50 0 31%, #0d1720 32% 49%, #b7904f 50% 53%, #111c26 54%); border: 2px solid #b7904f; clip-path: polygon(50% 0, 91% 13%, 100% 58%, 76% 91%, 50% 100%, 24% 91%, 0 58%, 9% 13%); }
.agent-rank-badge-fallback::before { content: ""; position: absolute; inset: 35px; border: 2px solid rgba(255,255,255,.65); transform: rotate(45deg); }
.agent-rank-badge-fallback b { position: relative; z-index: 1; font: 800 25px/1 var(--font-display); letter-spacing: .12em; }
.agent-plate-card { display: grid; gap: 8px; }
.agent-plate-card small { color: #81949e; text-align: center; font-size: 9px; }
.cdf-license-plate { position: relative; width: min(100%, 194px); margin: 0 auto; aspect-ratio: 500 / 244; overflow: hidden; border-radius: 6px; background: url('/assets/ca-exempt-plate-blank.webp') center / cover no-repeat; box-shadow: 0 7px 12px rgba(0,0,0,.26); color: #111b37; }
.cdf-license-plate strong { position: absolute; left: 50%; top: 64%; width: 118%; transform: translate(-50%, -50%) scaleX(.82); transform-origin: center; color: #101a36; font-family: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(31px, 3vw, 39px); font-variant-numeric: tabular-nums; font-weight: 900; line-height: .9; letter-spacing: -.02em; text-align: center; white-space: nowrap; -webkit-text-stroke: .4px rgba(7,15,34,.48); text-shadow: 1px 1px 0 rgba(255,255,255,.96), -1px -1px 0 rgba(7,15,34,.38), 0 2px 1px rgba(7,13,27,.34); }
.cdf-license-plate.unavailable { filter: grayscale(.8); opacity: .68; }
.cdf-license-plate.unavailable strong { font-family: inherit; font-size: 12px; letter-spacing: .08em; }
.employee-action-bar { margin: 34px 0 18px; padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(190px, 270px)); justify-content: center; gap: 9px; background: rgba(25,38,49,.7); border: 1px solid rgba(154,175,192,.3); }
.employee-action-bar button, .employee-action-bar a { min-width: 0; min-height: 42px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; color: #93a6b0; background: rgba(255,255,255,.035); border: 1px dashed rgba(154,175,192,.3); font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-align: center; text-decoration: none; text-transform: uppercase; }
.employee-action-bar a:hover { color: #eef3f5; background: rgba(83,111,136,.18); border-color: rgba(154,175,192,.62); }
.employee-action-bar button:disabled { cursor: default; opacity: .7; }
.employee-action-bar .member-view-action { color: #f0d9a8; background: rgba(183,144,79,.12); border-style: solid; border-color: rgba(183,144,79,.58); }
.employee-action-bar .member-view-action:hover { background: rgba(183,144,79,.22); border-color: #d2b67e; }
.employee-hours-card { margin: 0 0 18px; padding: clamp(24px, 2.4vw, 38px); background: linear-gradient(125deg, rgba(30,47,61,.78), rgba(17,27,36,.9)); border: 2px solid rgba(83,111,136,.42); border-radius: 14px; }
.employee-hours-card > header { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.employee-hours-card > header span { color: #d2b67e; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.employee-hours-card > header h2 { margin: 8px 0 0; font: 850 30px/1.05 var(--font-display); }
.employee-hours-card > header p { max-width: 530px; margin: 0; color: #9fb0b8; line-height: 1.55; text-align: right; }
.employee-hours-weeks { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.employee-hours-week { min-width: 0; padding: 17px; display: grid; gap: 14px; background: rgba(8,14,20,.38); border: 2px solid rgba(154,175,192,.2); border-radius: 10px; }
.employee-hours-week.current { border-color: rgba(210,182,126,.62); background: rgba(183,144,79,.1); }
.employee-hours-week > div { display: grid; gap: 4px; }
.employee-hours-week span { color: #d2b67e; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.employee-hours-week small { color: #8fa3ae; font-size: 10px; line-height: 1.4; }
.employee-hours-week strong { color: #f3f6f7; font: 850 clamp(24px, 2.3vw, 34px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.employee-hours-week strong em { margin-top: 5px; display: block; color: #91a6b0; font: 800 9px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.employee-hours-week p { margin: 0; color: #718894; font-size: 9px; line-height: 1.35; }
.employee-hours-empty { margin-top: 24px; padding: 22px; color: #8fa3ae; background: rgba(8,14,20,.22); border: 2px dashed rgba(154,175,192,.28); border-radius: 10px; }
.member-view-banner { margin: 0 0 16px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(183,144,79,.12); border: 1px solid rgba(183,144,79,.45); }
.member-view-banner div { display: flex; align-items: baseline; gap: 12px; }
.member-view-banner strong { color: #f0d9a8; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.member-view-banner span { color: #bac7cc; }
.member-view-banner a { color: #f0d9a8; font-size: 12px; font-weight: 800; text-decoration: none; }
.employee-divisions-card { margin: 0 0 18px; padding: clamp(24px, 2.4vw, 38px); background: linear-gradient(125deg, rgba(30,47,61,.78), rgba(17,27,36,.86)); border: 1px solid rgba(183,144,79,.3); }
.employee-divisions-card > header { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.employee-divisions-card > header span { color: #d2b67e; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.employee-divisions-card > header h2 { margin: 8px 0 0; font: 850 30px/1.05 var(--font-display); letter-spacing: -.01em; }
.employee-divisions-card > header p { max-width: 540px; margin: 0; color: #9fb0b8; line-height: 1.55; text-align: right; }
.employee-division-list { margin-top: 25px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 12px; }
.employee-division-assignment { min-width: 0; padding: 20px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; background: rgba(8,14,20,.42); border: 1px solid rgba(154,175,192,.2); }
.division-code { width: 64px; height: 64px; display: grid; place-items: center; color: #f0d9a8; background: #111c26; border: 1px solid rgba(183,144,79,.65); font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.division-assignment-copy > span { color: #91a6b0; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.division-assignment-copy h3 { margin: 5px 0 15px; color: #f4f6f7; font: 850 22px/1.15 var(--font-display); }
.division-assignment-copy dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.division-assignment-copy dl div { min-width: 0; }
.division-assignment-copy dt { margin-bottom: 4px; color: #718894; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.division-assignment-copy dd { margin: 0; overflow-wrap: anywhere; color: #dce5e8; font-size: 12px; font-weight: 750; }
.employee-divisions-empty { margin-top: 24px; padding: 22px; border: 1px dashed rgba(154,175,192,.28); background: rgba(8,14,20,.22); }
.employee-divisions-empty strong { color: #dce5e8; }
.employee-divisions-empty p { margin: 5px 0 0; color: #8fa3ae; }
.member-directory-page { padding-top: 60px; }
.member-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.member-directory-heading > div:first-child { max-width: 780px; }
.member-directory-heading h1 { margin: 0; font: 850 clamp(38px, 5vw, 66px)/1 var(--font-display); letter-spacing: -.025em; }
.member-directory-heading > div:first-child > p:last-child { max-width: 680px; color: #a9bac1; font-size: 17px; line-height: 1.6; }
.member-access-summary { width: min(360px, 100%); padding: 19px; display: grid; gap: 5px; background: rgba(183,144,79,.1); border: 1px solid rgba(183,144,79,.4); }
.member-access-summary span { color: #d2b67e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-access-summary strong { color: #f3f6f7; }
.member-access-summary small { color: #95a8b1; line-height: 1.4; }
.member-directory-search { margin: 36px 0 20px; padding: 16px; display: grid; gap: 8px; background: rgba(25,38,49,.72); border: 1px solid rgba(154,175,192,.28); }
.member-directory-search label { color: #91a6b0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-directory-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.member-directory-search input { min-width: 0; min-height: 44px; padding: 0 14px; color: white; background: #101820; border: 1px solid rgba(154,175,192,.32); font: inherit; }
.member-directory-search button { min-height: 44px; padding: 0 22px; color: #17130d; background: #c6a05b; border: 0; font-weight: 850; cursor: pointer; }
.member-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 13px; }
.member-directory-card { min-width: 0; padding: 22px; display: grid; grid-template-rows: 1fr auto auto; gap: 18px; background: rgba(25,38,49,.74); border: 1px solid rgba(154,175,192,.2); }
.member-directory-card span { color: #91a6b0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-directory-card h2 { margin: 5px 0; font: 850 24px/1.1 var(--font-display); }
.member-directory-card p { margin: 0; color: #d2b67e; font-weight: 750; }
.member-directory-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-directory-card dt { color: #718894; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.member-directory-card dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #dce5e8; font-size: 12px; font-weight: 750; }
.member-directory-card > a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #f0d9a8; border: 1px solid rgba(183,144,79,.52); font-size: 12px; font-weight: 850; text-decoration: none; }
.member-directory-card > a:hover { background: rgba(183,144,79,.15); }
.member-directory-empty { padding: 25px; color: #dce5e8; border: 1px dashed rgba(154,175,192,.3); }
.member-directory-empty p { margin: 5px 0 0; color: #8fa3ae; }
.portal-tool-page { padding-top: 60px; }
.portal-tool-heading { max-width: 840px; margin-bottom: 34px; }
.portal-tool-heading h1 { margin: 0; font: 850 clamp(38px, 5vw, 66px)/1 var(--font-display); letter-spacing: -.025em; }
.portal-tool-heading > p:last-child { max-width: 700px; color: #a9bac1; font-size: 17px; line-height: 1.6; }
.document-subjects { display: grid; gap: 18px; }
.document-subject { padding: clamp(22px, 2.4vw, 34px); background: linear-gradient(125deg, rgba(30,47,61,.78), rgba(17,27,36,.88)); border: 1px solid rgba(154,175,192,.22); }
.document-subject > header { margin-bottom: 20px; }
.document-subject > header span { color: #d2b67e; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.document-subject > header h2 { margin: 7px 0 0; font: 850 27px/1.1 var(--font-display); }
.document-subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.document-directory-link { min-width: 0; min-height: 112px; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; color: #f3f6f7; text-decoration: none; background: rgba(8,14,20,.38); border: 1px solid rgba(154,175,192,.22); }
.document-directory-link:hover { background: rgba(183,144,79,.1); border-color: rgba(210,182,126,.58); }
.document-directory-link > span { color: #8fa3ae; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.document-directory-link strong { overflow-wrap: anywhere; font-size: 16px; line-height: 1.3; }
.document-directory-link small { color: #d2b67e; font-weight: 800; }
.portal-module-grid { display: grid; gap: 14px; }
.portal-module-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-module-grid.six-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-module-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-module-card { min-width: 0; padding: clamp(24px, 3vw, 38px); display: grid; align-content: space-between; gap: 28px; background: linear-gradient(145deg, rgba(30,47,61,.88), rgba(14,23,31,.94)); border: 1px solid rgba(154,175,192,.24); }
.portal-module-grid.three-up .portal-module-card { aspect-ratio: 1 / 1; }
.portal-module-grid.four-up .portal-module-card { aspect-ratio: 1 / 1; }
.admin-tool-link { color: white; text-decoration: none; border-color: rgba(210,182,126,.55); }
.admin-tool-link:hover { background: linear-gradient(145deg, rgba(58,55,42,.9), rgba(23,29,31,.96)); border-color: #d2b67e; }
.portal-module-card > span { color: #d2b67e; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.portal-module-card h2 { margin: 0; font: 850 clamp(24px, 2.5vw, 34px)/1.08 var(--font-display); }
.portal-module-card p { margin: 10px 0 0; color: #9fb0b8; line-height: 1.55; }
.eligibility-meter { height: 9px; overflow: hidden; background: rgba(7,12,17,.72); border: 1px solid rgba(154,175,192,.2); }
.eligibility-meter::before { content: ""; display: block; width: 0; height: 100%; background: #c6a05b; }
.portal-return-link { margin-top: 26px; display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; color: #f0d9a8; border: 1px solid rgba(183,144,79,.5); font-size: 12px; font-weight: 850; text-decoration: none; }
.portal-return-link:hover { background: rgba(183,144,79,.14); }
.portal-notice { margin: 42px 0 24px; padding: 20px 24px; display: flex; gap: 18px; align-items: center; background: rgba(83,111,136,.12); border: 1px solid rgba(154,175,192,.28); }
.portal-notice p { margin: 4px 0 0; color: #aebdc3; }
.portal-success { margin: 24px 0 0; padding: 18px 22px; color: #dfece4; background: rgba(39,96,67,.24); border: 2px solid rgba(97,177,127,.48); border-radius: 10px; }
.portal-success p { margin: 5px 0 0; color: #b8d3c2; }
.hours-timezone-banner { margin-bottom: 20px; padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; background: rgba(183,144,79,.1); border: 2px solid rgba(183,144,79,.45); border-radius: 12px; }
.hours-timezone-banner div { display: grid; gap: 4px; }
.hours-timezone-banner span, .hours-control-card > span, .hours-cycle-section > header span, .hours-import-history > header span { color: #d2b67e; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hours-admin-controls { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hours-control-card { min-width: 0; padding: 24px; display: grid; align-content: start; gap: 10px; background: linear-gradient(145deg, rgba(30,47,61,.88), rgba(14,23,31,.94)); border: 2px solid rgba(154,175,192,.24); border-radius: 14px; }
.hours-control-card h2 { margin: 4px 0 0; font: 850 25px/1.08 var(--font-display); }
.hours-control-card p { min-height: 68px; margin: 0 0 8px; color: #9fb0b8; line-height: 1.5; }
.hours-control-card label:not(.hours-checkbox) { margin-top: 3px; color: #91a6b0; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hours-control-card input, .hours-control-card select { width: 100%; min-height: 43px; padding: 8px 11px; color: white; background: #101820; border: 2px solid rgba(154,175,192,.3); border-radius: 8px; font: inherit; }
.hours-control-card input[type=file] { padding: 8px; }
.hours-control-card button, .hours-cycle-actions button { min-height: 42px; padding: 8px 15px; color: #17130d; background: #c6a05b; border: 2px solid #c6a05b; border-radius: 8px; font: 850 11px/1.2 var(--font-ui); cursor: pointer; text-transform: uppercase; }
.hours-control-card button { margin-top: 7px; }
.hours-checkbox { padding: 7px 0; display: flex; align-items: center; gap: 9px; color: #c6d1d5; font-size: 12px; }
.hours-checkbox input { width: 18px; min-height: 18px; margin: 0; }
.hours-cycle-section, .hours-import-history { margin-top: 22px; padding: clamp(22px, 2.4vw, 34px); background: rgba(25,38,49,.72); border: 2px solid rgba(154,175,192,.26); border-radius: 14px; }
.hours-cycle-section > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.hours-cycle-section > header h2, .hours-import-history > header h2 { margin: 6px 0 0; font: 850 29px/1.05 var(--font-display); }
.hours-cycle-section > header p { max-width: 560px; margin: 0; color: #9fb0b8; text-align: right; }
.hours-cycle-list { margin-top: 22px; display: grid; gap: 11px; }
.hours-cycle-card { padding: 20px; background: rgba(8,14,20,.38); border: 2px solid rgba(154,175,192,.2); border-radius: 10px; }
.hours-cycle-card > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.hours-cycle-card > header span { color: #d2b67e; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.hours-cycle-card h3 { margin: 5px 0 0; font: 850 20px/1.1 var(--font-display); }
.hours-cycle-card > header small { color: #8297a1; }
.hours-cycle-card code { margin-top: 15px; padding: 13px; display: block; overflow-wrap: anywhere; color: #dce5e8; background: #0b1218; border: 2px solid rgba(154,175,192,.18); border-radius: 8px; font: 12px/1.55 ui-monospace, Consolas, monospace; }
.hours-cycle-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.hours-cycle-actions form { margin: 0; }
.hours-cycle-card > p { margin: 12px 0 0; color: #8297a1; font-size: 11px; }
.hours-import-history > p { color: #8fa3ae; }
.hours-history-table-wrap { margin-top: 18px; overflow-x: auto; border: 2px solid rgba(154,175,192,.2); border-radius: 10px; }
.hours-history-table-wrap table { width: 100%; border-collapse: collapse; min-width: 800px; }
.hours-history-table-wrap th, .hours-history-table-wrap td { padding: 12px 14px; border-bottom: 1px solid rgba(154,175,192,.16); text-align: left; }
.hours-history-table-wrap th { color: #91a6b0; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.hours-history-table-wrap td { color: #dce5e8; font-size: 12px; }
.employee-record { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); }
.employee-record div { min-width: 0; padding: 18px; background: #17232d; }
.employee-record dt { margin-bottom: 7px; color: #8fa3ae; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.employee-record dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.skeleton-lines { margin-top: 24px; display: grid; gap: 10px; }
.skeleton-lines i { display: block; height: 10px; width: 70%; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(83,111,136,.24), rgba(255,255,255,.06)); }
.skeleton-lines i:nth-child(2) { width: 48%; }.skeleton-lines i:nth-child(3) { width: 60%; }

/* Softer, heavier employee-portal surfaces. */
.portal-page .button { border-width: 2px; border-radius: 8px; }
.portal-alert, .portal-notice, .member-view-banner { border-width: 2px; border-radius: 10px; }
.agent-dashboard-hero { border-width: 2px; border-radius: 14px; overflow: hidden; }
.agent-summary-pills span { border-width: 2px; border-radius: 7px; }
.agent-identity-grid { border: 2px solid rgba(255,255,255,.17); border-radius: 10px; overflow: hidden; }
.agent-rank-badge, .agent-plate-card { border-width: 2px; border-radius: 10px; }
.badge-download-menu summary:focus-visible { border-radius: 7px; }
.badge-download-menu summary span, .badge-download-popover, .badge-download-popover a { border-width: 2px; border-radius: 8px; }
.employee-action-bar { border-width: 2px; border-radius: 12px; }
.employee-action-bar button, .employee-action-bar a { border-width: 2px; border-radius: 8px; }
.employee-divisions-card { border-width: 2px; border-radius: 14px; }
.employee-division-assignment { border-width: 2px; border-radius: 10px; }
.division-code { border-width: 2px; border-radius: 8px; }
.employee-divisions-empty { border-width: 2px; border-radius: 10px; }
.member-access-summary, .member-directory-search, .member-directory-card, .member-directory-empty { border-width: 2px; border-radius: 10px; }
.member-directory-search input, .member-directory-search button, .member-directory-card > a { border-radius: 8px; }
.member-directory-card > a { border-width: 2px; }
.document-subject, .portal-module-card { border-width: 2px; border-radius: 14px; }
.document-directory-link { border-width: 2px; border-radius: 9px; }
.eligibility-meter { border-width: 2px; border-radius: 6px; }
.portal-return-link { border-width: 2px; border-radius: 8px; }

@media (max-width: 850px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 20px; align-items: stretch; flex-direction: column; background: #101a21; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero-layout, .split-layout, .standards-layout { grid-template-columns: 1fr; gap: 45px; }
  .hero-layout { padding: 74px 0; }
  .hero::before { background-position: 62% center; }
  .status-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .status-grid > div:first-child { padding-left: 24px; }
  .card-grid article { border-bottom: 1px solid rgba(255,255,255,.14); }
  .standards-panel { position: static; }
  .portal-intro { align-items: start; flex-direction: column; }
  .member-directory-heading { align-items: start; flex-direction: column; gap: 22px; }
  .agent-dashboard-hero { grid-template-columns: 1fr; }
  .agent-credentials { max-width: none; justify-self: stretch; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: end; }
  .agent-identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-action-bar { grid-template-columns: repeat(2, minmax(0, 270px)); }
  .portal-module-grid.three-up, .portal-module-grid.six-up, .portal-module-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-hours-weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hours-admin-controls { grid-template-columns: 1fr; }
  .employee-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
  .container, .portal-main { width: min(100% - 28px, 1160px); }
  .site-header, .portal-header { padding: 10px 14px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .brand-seal { width: 41px; height: 41px; }
  .hero h1 { font-size: 50px; }
  .hero-layout { min-height: auto; }
  .status-grid, .card-grid { grid-template-columns: 1fr; }
  .card-grid article { min-height: 220px; border-right: 0; }
  .card-grid h3 { margin-top: 42px; }
  .join-card, .footer-layout { align-items: start; flex-direction: column; }
  .section { padding: 72px 0; }
  .portal-header-actions { gap: 6px; }
  .portal-header-actions .button { padding: 0 10px; font-size: 12px; }
  .agent-dashboard-hero { padding: 18px; }
  .agent-overview { padding: 4px 0; }
  .agent-overview .employee-identity { align-items: flex-start; flex-direction: column; }
  .agent-identity-grid, .agent-credentials { grid-template-columns: 1fr; }
  .employee-action-bar { grid-template-columns: 1fr; }
  .portal-module-grid.three-up, .portal-module-grid.six-up, .portal-module-grid.four-up { grid-template-columns: 1fr; }
  .portal-module-grid.three-up .portal-module-card { aspect-ratio: auto; min-height: 260px; }
  .portal-module-grid.four-up .portal-module-card { aspect-ratio: auto; min-height: 260px; }
  .employee-hours-card > header, .hours-cycle-section > header { align-items: start; flex-direction: column; gap: 10px; }
  .employee-hours-card > header p, .hours-cycle-section > header p { text-align: left; }
  .employee-hours-weeks { grid-template-columns: 1fr; }
  .employee-divisions-card > header { align-items: start; flex-direction: column; gap: 12px; }
  .employee-divisions-card > header p { text-align: left; }
  .member-view-banner, .member-view-banner div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .member-directory-search > div { grid-template-columns: 1fr; }
  .employee-division-assignment { grid-template-columns: 52px minmax(0, 1fr); padding: 16px; gap: 13px; }
  .division-code { width: 52px; height: 52px; font-size: 12px; }
  .division-assignment-copy dl { grid-template-columns: 1fr; }
  .agent-rank-badge { min-height: 164px; }
  .agent-rank-badge img, .badge-download-menu { height: 100px; }
  .employee-record { grid-template-columns: 1fr; }
}
