:root {
  color-scheme: light;
  --forest: #192a40;
  --forest-soft: #30465f;
  --forest-deep: #142337;
  --safety: #ef9825;
  --paper: #f1f1f1;
  --white: #fff;
  --muted: #b8c4cf;
  --ink: #1b2c3b;
  --line: rgba(255, 255, 255, .16);
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topline { height: 4px; background: var(--safety); }
.intro-sequence { position: fixed; z-index: 1000; inset: 0; overflow: hidden; pointer-events: none; background: rgba(5, 13, 22, .58); animation: intro-clear 2.4s ease-out forwards; }
.intro-light { position: absolute; top: -12%; bottom: -12%; width: min(34vw, 460px); opacity: 0; }
.intro-light-right { right: -9%; background: linear-gradient(90deg, transparent, rgba(13, 77, 255, .1) 22%, rgba(23, 112, 255, .98) 76%, rgba(56, 142, 255, .36)); animation: strobe-right 2.4s linear both; }
.intro-light-left { left: -9%; background: linear-gradient(270deg, transparent, rgba(13, 77, 255, .1) 22%, rgba(23, 112, 255, .98) 76%, rgba(56, 142, 255, .36)); animation: strobe-left 2.4s linear both; }
@keyframes strobe-right { 0%, 4%, 21%, 100% { opacity: 0; transform: translateX(24%); } 7%, 17% { opacity: .98; transform: translateX(0); } 19%, 20% { opacity: .12; } }
@keyframes strobe-left { 0%, 24%, 41%, 100% { opacity: 0; transform: translateX(-24%); } 27%, 37% { opacity: .98; transform: translateX(0); } 39%, 40% { opacity: .12; } }
@keyframes intro-clear { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.site-header { position: sticky; z-index: 20; top: 0; background: var(--forest); color: var(--white); border-bottom: 1px solid var(--line); }
.header-utility { min-height: 34px; background: #30465f; color: #fff; }
.header-utility-inner { width: min(1024px, 100%); min-height: 34px; padding: 0 12px; margin: auto; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.utility-links { display: flex; align-items: center; gap: 12px; }
.utility-links a { color: #f1f3f6; font-size: 9px; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; }
.utility-links a:hover, .utility-links a:focus-visible { color: var(--safety); }
.utility-links > span { color: rgba(255,255,255,.55); }
.nav-wrap { position: relative; width: min(1280px, 100%); min-height: 72px; padding: 0 20px; margin: auto; display: flex; align-items: center; justify-content: flex-end; }
.nav-brand { position: absolute; z-index: 3; top: -31px; left: 12px; width: 128px; height: 128px; display: block; border-radius: 50%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.nav-brand img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-inner { max-width: 1240px; min-height: 76px; padding: 0 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: var(--safety); border: 1px solid rgba(239, 152, 37, .8); clip-path: polygon(50% 0, 88% 15%, 88% 58%, 50% 100%, 12% 58%, 12% 15%); font: 700 13px var(--display); }
.brand-mark { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: #fff; clip-path: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.us-flag { width: 37px; height: 24px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.55); object-fit: cover; }
.brand-copy { display: grid; line-height: 1.02; }
.brand-copy strong { font: 700 20px var(--display); }
.brand-copy span { margin-top: 5px; color: #cad3da; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.2vw, 34px); }
.main-nav a { color: #f1f3f6; font-size: 14px; font-weight: 800; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--safety); }
.nav-apply-group { min-height: 72px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.28); }
.nav-apply-caption { margin: 0; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.main-nav .nav-apply { padding: 13px 24px; background: var(--safety); color: #fff; font-size: 17px; font-weight: 800; }
.nav-dropdown { position: relative; }
.nav-dropdown::after { position: absolute; top: 100%; right: 0; left: 0; height: 19px; content: ""; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 8px 0; background: transparent; color: #f1f3f6; font-size: 14px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.nav-dropdown-toggle span { color: var(--safety); transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 19px); left: -12px; min-width: 205px; padding: 6px; border-top: 3px solid var(--safety); background: #fff; box-shadow: 0 15px 35px rgba(9, 26, 39, .2); opacity: 0; visibility: hidden; transform: translateY(7px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .nav-dropdown-menu a { display: block; padding: 12px 11px; color: #1b2c3b; font-size: 11px; }
.main-nav .nav-dropdown-menu a:hover, .main-nav .nav-dropdown-menu a:focus-visible { background: #edf1f4; color: #1b2c3b; }
.main-nav .nav-apply { border: 0; cursor: pointer; }
.menu-toggle { display: none; border: 1px solid var(--line); padding: 9px 12px; background: transparent; color: var(--white); cursor: pointer; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--safety); color: var(--forest-deep); }
.button-secondary { border-color: rgba(255,255,255,.55); color: var(--white); }
.section-label { margin: 0 0 14px; color: #627486; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-top > p { max-width: 265px; margin: 0 0 4px; color: #566979; font-size: 12px; line-height: 1.8; }
.brand-mark { clip-path: polygon(50% 0, 90% 15%, 84% 65%, 50% 100%, 16% 65%, 10% 15%); }
.main-nav .nav-apply { background: var(--safety); }
.section-heading span { color: #9a6f17; }
.mission-values { grid-template-columns: 1fr 1fr; }
.mission-values .value { min-height: 150px; color: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-values .value:nth-child(even) { border-right: 0; }
.mission-values .value:nth-child(n+3) { border-bottom: 0; }
.mission-values .value strong { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 19px; }
.mission-values .value strong span { color: var(--safety); }
.mission-band { padding: 0 0 40px; }
.mission-band .mission-inner { width: 100%; max-width: 1184px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); background: var(--forest); color: var(--white); }
.mission-band .mission-copy { min-width: 0; padding: clamp(28px, 4vw, 52px); }
.mission-band .mission-copy .section-label { color: var(--safety); }
.mission-band .mission-copy h2 { max-width: 460px; margin: 0 0 18px; color: var(--white); font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); }
.mission-band .mission-copy p { max-width: 450px; margin: 0; color: #c5d0d8; font-size: 13px; line-height: 1.85; }
.mission-band .mission-values { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; border-left: 1px solid var(--line); }
.mission-band .mission-values .value { min-width: 0; min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-band .mission-values .value:nth-child(even) { border-right: 0; }
.mission-band .mission-values .value:nth-child(n+3) { border-bottom: 0; }
.mission-band .mission-values .value-number { color: var(--safety); }
.mission-band .mission-values .value strong { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--white); font-size: 17px; line-height: 1.2; }
.mission-band .mission-values .value strong span { flex: 0 0 auto; color: var(--safety); }
.directory-section { background: #e6ebef; }
.directory-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #bdc8d0; border-bottom: 1px solid #bdc8d0; }
.directory-card { min-height: 150px; padding: 20px; position: relative; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #bdc8d0; transition: background .2s ease; }
.directory-card:last-child { border-right: 0; }
.directory-card:hover { background: rgba(255,255,255,.5); }
.directory-card > span { color: #5b6d7b; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.directory-card strong { max-width: 180px; font: 600 25px/1 var(--display); text-transform: uppercase; }
.directory-card b { position: absolute; right: 19px; bottom: 15px; color: #9a6f17; font-size: 18px; font-weight: 400; }
.capability-section { background: #e6ebef; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #bdc8d0; border-bottom: 1px solid #bdc8d0; }
.capability-grid article { min-height: 205px; padding: 22px 20px; border-right: 1px solid #bdc8d0; }
.capability-grid article:last-child { border-right: 0; }
.capability-grid article > span { color: #9a6f17; font: 600 13px var(--display); }
.capability-grid h3 { margin: 26px 0 9px; font: 600 22px/1 var(--display); }
.capability-grid p { max-width: 250px; margin: 0; color: #566979; font-size: 11px; line-height: 1.7; }
.culture-strip { margin-top: 24px; padding: 18px 0; display: grid; grid-template-columns: .55fr 1fr auto; align-items: center; gap: 22px; border-bottom: 1px solid #bdc8d0; }
.culture-strip strong { font: 600 20px var(--display); }
.culture-strip p { margin: 0; color: #566979; font-size: 11px; line-height: 1.7; }
.culture-strip .text-link { white-space: nowrap; }
.slide-group > :nth-child(2) { transition-delay: 80ms; }
.slide-group > :nth-child(3) { transition-delay: 160ms; }
.slide-group > :nth-child(4) { transition-delay: 240ms; }
html.has-js [data-slide-in].slide-pending { opacity: 0; transform: translate(-18px, 6px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.75,.25,1); }
html.has-js [data-slide-in].slide-pending[data-slide-direction="right"] { transform: translate(18px, 6px); }
html.has-js .section[data-slide-in].slide-pending,
html.has-js .section[data-slide-in].slide-pending[data-slide-direction="right"] { transform: translate(0, 10px); }
html.has-js [data-slide-in].is-visible { opacity: 1; transform: translateY(0); }
.capability-grid article[data-slide-in]:nth-child(2), .specialty:nth-child(2) { transition-delay: 100ms; }
.capability-grid article[data-slide-in]:nth-child(3), .specialty:nth-child(3) { transition-delay: 200ms; }
.capability-grid article[data-slide-in]:nth-child(4), .specialty:nth-child(4) { transition-delay: 300ms; }

.subhero { position: relative; overflow: hidden; padding: 76px 28px 70px; background: var(--forest); color: var(--white); }
.subhero::after { position: absolute; top: 0; right: 7%; width: 1px; height: 100%; background: rgba(226,189,84,.35); content: ""; transform: skewX(-24deg); }
.subhero-inner, .page-content { position: relative; z-index: 1; width: min(1184px, 100%); margin: auto; }
.subhero .eyebrow { margin-bottom: 18px; }
.subhero h1 { max-width: 760px; margin: 0; font: 700 clamp(46px, 7vw, 82px)/.91 var(--display); text-transform: uppercase; }
.subhero h1 span { color: var(--safety); }
.subhero-inner, .page-content > .content-grid, .page-content > .section-top,
.page-content > .region-list, .workflow-band, .application-page, .portal-login,
.portal-dashboard:not([hidden]), .ride-form { animation: page-slide-left .45s cubic-bezier(.2,.75,.25,1) both; }
.staff-card:nth-child(odd), .specialty:nth-child(odd), .region:nth-child(odd),
.value-list li:nth-child(odd), .directory-card:nth-child(odd), .capability-grid article:nth-child(odd) {
  animation: page-slide-left .4s cubic-bezier(.2,.75,.25,1) both;
}
.staff-card:nth-child(even), .specialty:nth-child(even), .region:nth-child(even),
.value-list li:nth-child(even), .directory-card:nth-child(even), .capability-grid article:nth-child(even) {
  animation: page-slide-right .4s cubic-bezier(.2,.75,.25,1) both;
}
.staff-card:nth-child(2), .specialty:nth-child(2), .region:nth-child(2), .value-list li:nth-child(2), .directory-card:nth-child(2), .capability-grid article:nth-child(2) { animation-delay: 40ms; }
.staff-card:nth-child(3), .specialty:nth-child(3), .region:nth-child(3), .value-list li:nth-child(3), .directory-card:nth-child(3), .capability-grid article:nth-child(3) { animation-delay: 80ms; }
.staff-card:nth-child(4), .specialty:nth-child(4), .region:nth-child(4), .value-list li:nth-child(4), .directory-card:nth-child(4), .capability-grid article:nth-child(4) { animation-delay: 120ms; }
@keyframes page-slide-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes page-slide-right { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.subhero p { max-width: 550px; margin: 20px 0 0; color: #cad2ca; font-size: 13px; line-height: 1.8; }
.page-content { padding: 68px 28px 88px; }
.content-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.content-copy { color: #5d675e; font-size: 14px; line-height: 1.9; }
.content-copy p { margin: 0 0 18px; }
.page-title { margin: 0; font: 700 clamp(36px, 5vw, 56px)/.98 var(--display); text-transform: uppercase; }
.page-title span { color: #7e8239; }
.value-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c9cdc4; }
.value-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid #c9cdc4; }
.value-list li > span { color: #9a6f17; font: 600 15px var(--display); }
.value-list strong { display: block; margin-bottom: 4px; font: 600 22px var(--display); text-transform: uppercase; }
.value-list p { margin: 0; color: #677168; font-size: 11px; line-height: 1.7; }
.callout { margin-top: 34px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--forest); color: var(--white); }
.callout p { max-width: 520px; margin: 0; color: #c5cec5; font-size: 12px; line-height: 1.7; }
.callout .button-secondary { border-color: rgba(255,255,255,.35); }
.roster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.staff-card { min-height: 180px; padding: 24px; position: relative; display: flex; flex-direction: column; justify-content: end; overflow: hidden; background: var(--forest-soft); color: var(--white); }
.staff-card:nth-child(2) { background: #294860; }
.staff-card:nth-child(3) { background: #465b6b; }
.staff-card:nth-child(4) { background: #344c61; }
.staff-card::before { position: absolute; top: 12px; right: 18px; color: rgba(255,255,255,.11); content: attr(data-initials); font: 700 90px/.9 var(--display); }
.staff-card > * { position: relative; }
.staff-card .rank { color: var(--safety); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.staff-card h2 { margin: 7px 0 4px; font: 600 29px var(--display); text-transform: uppercase; }
.staff-card p { margin: 0; color: #d0d8d0; font-size: 10px; }
.small-note { margin: 18px 0 0; color: #717b72; font-size: 10px; line-height: 1.7; }
.region-list { border-top: 1px solid #c9cdc4; }
.region { min-height: 112px; padding: 18px 0; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 17px; border-bottom: 1px solid #c9cdc4; }
.region-number { color: #9a6f17; font: 600 18px var(--display); }
.region h2 { margin: 0 0 5px; font: 600 26px var(--display); text-transform: uppercase; }
.region p { margin: 0; color: #687268; font-size: 11px; line-height: 1.6; }
.region-tag { padding: 7px 9px; border: 1px solid #c6cabf; color: #586458; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.application-page { display: grid; grid-template-columns: .72fr 1.28fr; background: var(--forest); color: var(--white); }
.application-intro { min-height: 510px; padding: clamp(28px, 4.5vw, 52px); display: flex; flex-direction: column; justify-content: space-between; }
.application-intro .section-label { color: var(--safety); }
.application-intro h2 { margin: 0; font: 700 clamp(40px, 5.2vw, 62px)/.92 var(--display); text-transform: uppercase; }
.application-intro h2 span { color: var(--safety); }
.application-intro p { max-width: 310px; margin: 26px 0 0; color: #c1cbc2; font-size: 12px; line-height: 1.8; }
.application-panel { padding: clamp(26px, 4vw, 48px); border-left: 1px solid var(--line); }
.application-panel h2 { margin: 0 0 24px; font: 600 26px var(--display); text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #d8dfd8; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,.23); border-radius: 0; padding: 10px 12px; outline: 0; background: rgba(255,255,255,.06); color: var(--white); font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #aeb9b0; }
.field select option { background: var(--forest); color: var(--white); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--safety); }
.form-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-footer small { max-width: 215px; color: #b7c1b7; font-size: 9px; line-height: 1.6; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--safety); font-size: 11px; }

.site-footer { background: var(--forest-deep); color: var(--white); }
.footer-main { max-width: 1184px; margin: auto; padding: 42px 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-main p { margin: 7px 0 0; color: #aab5ab; font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: #d4dcd4; font-size: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { width: fit-content; max-width: 100%; min-height: 46px; padding: 12px 28px; margin: auto; color: #9aa69b; font-size: 9px; line-height: 1.5; text-align: left; }
.footer-disclaimer { color: #ff7777; }
.footer-credit { color: #ff8a00; }

.hero h1, .section-heading, .mission-copy h2, .value strong, .eyebrow, .hero-note,
.ticker strong, .ticker span, .section-label, .person-rank, .person-info h3,
.district h3, .district-tag, .directory-card strong, .brand-copy strong,
.brand-copy span, .subhero h1, .page-title, .value-list strong, .staff-card .rank,
.staff-card h2, .region h2, .region-tag, .application-intro h2, .application-panel h2,
.portal-shell h1, .portal-shell h2, .portal-shell h3, .portal-tabs button {
  text-transform: none;
}

.portal-shell { width: 100%; min-height: 65vh; padding: 38px clamp(16px, 3vw, 44px) 80px; margin: auto; }
.portal-notice { margin: 0 0 24px; padding: 12px 15px; border-left: 3px solid #d6ad55; background: #e8edf1; color: #3e5364; font-size: 11px; line-height: 1.6; }
.portal-login { width: min(470px, 100%); padding: 30px; margin: 42px auto; border-top: 4px solid var(--safety); background: #fff; box-shadow: 0 14px 42px rgba(17, 36, 52, .09); }
.portal-login-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.portal-login-heading .brand-mark { width: 58px; height: 58px; }
.portal-login-heading h1 { margin: 0; font: 700 31px/1 var(--display); color: var(--ink); }
.portal-login-heading p { margin: 6px 0 0; color: #647583; font-size: 10px; }
.portal-login .field label, .portal-shell .field label { color: #3f5261; font-size: 11px; }
.portal-login .field input, .portal-login .field select, .portal-login .field textarea,
.portal-shell .field input, .portal-shell .field select, .portal-shell .field textarea {
  min-height: 44px; border-color: #c6d0d7; background: #fff; color: #1b2c3b; font-size: 12px;
}
.portal-login .field input::placeholder, .portal-shell .field input::placeholder,
.portal-shell .field textarea::placeholder { color: #81909a; }
.portal-login .field select option, .portal-shell .field select option { background: #fff; color: #1b2c3b; }
.portal-login form { display: grid; gap: 15px; }
.portal-login .button { width: 100%; margin-top: 4px; }
.portal-help { margin: 18px 0 0; color: #6b7b87; font-size: 10px; line-height: 1.7; }
.portal-message { min-height: 18px; margin: 12px 0 0; color: #9a6510; font-size: 11px; }
.portal-dashboard[hidden], .portal-panel[hidden] { display: none; }
.portal-dashboard { background: #fff; border-top: 3px solid var(--forest); }
.portal-relaxation-button[hidden] { display: none; }
.portal-relaxation-button { position: fixed; z-index: 10000; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); min-height: 48px; padding: 0 20px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; background: linear-gradient(135deg, #167e9d, #174a70); box-shadow: 0 10px 28px rgba(10, 40, 60, .32), inset 0 1px 0 rgba(255, 255, 255, .2); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.portal-relaxation-button:hover, .portal-relaxation-button:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 40, 60, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.portal-relaxation-button:focus-visible { outline: 3px solid #7ee7ff; outline-offset: 3px; }
.portal-dashboard-head { padding: 25px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #dbe1e5; }
.portal-dashboard-head p { margin: 0 0 5px; color: #657685; font-size: 10px; }
.portal-dashboard-head h1 { margin: 0; font: 700 34px/1 var(--display); }
.portal-user { display: flex; align-items: center; gap: 14px; }
.portal-user strong { display: block; font-size: 11px; }
.portal-user span { display: block; margin-top: 4px; color: #6b7b87; font-size: 10px; }
.portal-logout { border: 1px solid #c7d0d6; padding: 9px 12px; background: #fff; color: #405363; font-size: 10px; font-weight: 700; cursor: pointer; }
.portal-tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid #dbe1e5; }
.portal-tabs button { padding: 14px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5f7180; font-size: 11px; font-weight: 700; cursor: pointer; }
.portal-tabs button[aria-selected="true"] { border-bottom-color: #bd8d28; color: #1b2c3b; }
.portal-panel { padding: 28px; }
.portal-panel-heading { margin: 0 0 20px; font: 600 26px/1 var(--display); }
.portal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.portal-form-grid .field-full { grid-column: 1 / -1; }
.portal-panel .button-primary { margin-top: 18px; }
.portal-panel .field input[readonly], .portal-panel .field select:disabled { background: #edf1f4; color: #596b79; cursor: default; }
.profile-photo-tools { margin-top: 32px; padding-top: 24px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 24px; border-top: 1px solid #dbe1e5; }
.profile-photo-tools h3 { grid-column: 1 / -1; margin: 0; color: var(--ink); font: 600 22px/1 var(--display); }
.profile-photo-preview { width: 120px; height: 150px; overflow: hidden; background: #edf1f4; }
.profile-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-photo-tools .field { grid-column: 1 / -1; }
.profile-photo-tools .field input { min-height: auto; padding: 9px; }
.template-download { grid-column: 1 / -1; width: fit-content; border-color: #c7d0d6; color: #405363; }
.report-menu-field { max-width: 520px; margin-bottom: 22px; }
.report-menu-field select { width: 100%; }
.report-template-frame { display: block; width: 100%; min-height: 900px; border: 0; background: #eeece6; }
.report-list { border-top: 1px solid #dbe1e5; }
.report-entry { border-bottom: 1px solid #dbe1e5; }
.report-entry:last-child { border-bottom: 0; }
.report-file { width: 100%; padding: 14px 12px; display: flex; align-items: center; gap: 14px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.report-file:hover, .report-file[aria-expanded="true"] { background: #f3f5f6; }
.report-file-icon { color: #9a6f17; font-size: 24px; line-height: 1; }
.report-file-details { min-width: 0; flex: 1; display: grid; gap: 4px; }
.report-file-details strong { font-size: 12px; }
.report-file-details > span { color: #6b7b87; font-size: 10px; }
.report-file-arrow { color: #6b7b87; font-size: 24px; }
.report-open-panel { padding: 8px 12px 18px; }
.report-entry-actions { margin: 0 0 10px; }
.report-entry-actions .button { width: auto; }
.report-entry-actions .button-secondary { border-color: #c62828; background: #c62828; color: #fff; }
.report-entry-actions .button-secondary:hover { background: #a71919; color: #fff; }
.report-legacy-summary { white-space: pre-wrap; }
.report-print-animation[hidden] { display: none !important; }
.report-print-animation { position: fixed; z-index: 20000; inset: 0; display: grid; align-content: center; justify-items: center; overflow: hidden; background: rgba(3, 12, 22, .84); color: #eff6fa; text-align: center; }
.report-printer-scene { position: relative; width: min(360px, 88vw); height: 370px; }
.report-printer { position: absolute; z-index: 2; right: 0; bottom: 22px; left: 0; width: 286px; height: 142px; margin: 0 auto; border: 1px solid #7e9caf; border-radius: 17px 17px 12px 12px; background: linear-gradient(155deg, #e6edf1, #9aafbb 58%, #718997); box-shadow: 0 24px 50px rgba(0, 0, 0, .48), inset 0 2px 5px rgba(255, 255, 255, .72); }
.report-printer-top { position: absolute; top: -16px; left: 50%; width: 204px; height: 29px; border: 1px solid #8ba2b0; border-radius: 8px 8px 3px 3px; background: linear-gradient(#f3f7f9, #bfccd3); transform: translateX(-50%); }
.report-printer-top span { position: absolute; top: 8px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: #39d5f0; box-shadow: 0 0 12px #39d5f0; }
.report-printer-slot { position: absolute; z-index: 1; top: 6px; right: 25px; left: 25px; height: 9px; border-radius: 6px; background: #263b4a; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8); }
.report-printer-body { position: absolute; top: 31px; right: 26px; left: 26px; height: 72px; border: 1px solid #879eab; border-radius: 8px; background: linear-gradient(145deg, #dce5e9, #a9bbc5); box-shadow: inset 0 1px 3px rgba(255, 255, 255, .8); }
.report-printer-body i { width: 7px; height: 7px; display: inline-block; margin: 14px 3px 0; border-radius: 50%; background: #526c7a; }
.report-printer-body i:first-child { margin-left: 14px; background: #38bfd9; box-shadow: 0 0 8px rgba(56, 191, 217, .7); }
.report-printer-body b { position: absolute; right: 12px; bottom: 12px; left: 12px; height: 27px; border-radius: 3px; background: linear-gradient(90deg, #687f8d 0 17%, #aebdc5 17% 20%, #687f8d 20% 39%, #aebdc5 39% 42%, #687f8d 42% 66%, #aebdc5 66% 70%, #687f8d 70%); opacity: .55; }
.report-printer-tray { position: absolute; right: 40px; bottom: -8px; left: 40px; height: 13px; border: 1px solid #8097a5; border-radius: 0 0 9px 9px; background: linear-gradient(#c5d2d9, #8fa3ae); }
.report-print-paper { position: absolute; z-index: 1; bottom: 105px; left: 50%; width: 190px; height: 258px; padding: 26px 18px; display: grid; align-content: start; gap: 12px; background: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .34); color: #263746; text-align: left; opacity: 0; transform: translate(-50%, 190px); }
.report-print-paper strong { margin-bottom: 7px; font: 700 12px/1.3 var(--display); text-transform: uppercase; }
.report-print-paper > span { min-height: 5px; overflow: hidden; color: #536979; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.report-print-paper > span:nth-of-type(1), .report-print-paper > span:nth-of-type(2) { border-bottom: 1px solid #e2e7ea; }
.report-print-paper small { margin-top: 9px; color: #5e7584; font-size: 6px; letter-spacing: 1px; }
.report-print-animation.is-printing .report-print-paper { animation: report-paper-eject var(--report-print-duration, 5.8s) linear forwards; }
.report-print-animation.is-printing .report-print-paper strong,
.report-print-animation.is-printing .report-print-paper > span,
.report-print-animation.is-printing .report-print-paper small { opacity: .08; animation: report-ink-print calc(var(--report-print-duration, 5.8s) * .18) steps(8, end) both; }
.report-print-animation.is-printing .report-print-paper strong { animation-delay: calc(var(--report-print-duration, 5.8s) * .04); }
.report-print-animation.is-printing .report-print-paper > span:nth-of-type(1) { animation-delay: calc(var(--report-print-duration, 5.8s) * .14); }
.report-print-animation.is-printing .report-print-paper > span:nth-of-type(2) { animation-delay: calc(var(--report-print-duration, 5.8s) * .28); }
.report-print-animation.is-printing .report-print-paper > span:nth-of-type(3) { animation-delay: calc(var(--report-print-duration, 5.8s) * .42); }
.report-print-animation.is-printing .report-print-paper > span:nth-of-type(4) { animation-delay: calc(var(--report-print-duration, 5.8s) * .56); }
.report-print-animation.is-printing .report-print-paper small { animation-delay: calc(var(--report-print-duration, 5.8s) * .7); }
.report-print-status { margin: 0; color: #d6e7f0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
@keyframes report-paper-eject {
  0% { opacity: .2; transform: translate(-50%, 190px); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, 20px); }
}
@keyframes report-ink-print {
  from { opacity: .08; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
.report-save-animation:not([open]) { display: none; }
.report-save-scene[hidden], .report-save-status[hidden], .report-save-success[hidden] { display: none !important; }
.report-save-animation { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; display: grid; align-content: center; justify-items: center; overflow: hidden; border: 0; background: rgba(3, 12, 22, .92); color: #eff6fa; text-align: center; }
.report-save-animation::backdrop { background: rgba(3, 12, 22, .84); }
.report-save-scene { width: min(440px, 90vw); height: 340px; display: grid; place-items: center; perspective: 900px; }
.report-save-folder { position: relative; width: min(320px, 78vw); height: 210px; margin-top: 80px; overflow: hidden; }
.report-save-folder-back { position: absolute; inset: 0; border: 1px solid #bd913e; border-radius: 10px; background: linear-gradient(145deg, #e2b95f, #a87827); box-shadow: 0 24px 50px rgba(0, 0, 0, .48), inset 0 2px 4px rgba(255, 255, 255, .32); clip-path: polygon(0 15%, 39% 15%, 47% 0, 100% 0, 100% 100%, 0 100%); }
.report-save-paper { position: absolute; z-index: 2; top: -50px; left: 50%; width: min(220px, 62vw); height: 278px; padding: 20px 18px; overflow: hidden; transform: translate(-50%, -35px) rotateX(4deg); background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .38); color: #263746; text-align: left; }
.report-save-paper > strong { display: block; max-height: 34px; margin-bottom: 12px; overflow: hidden; font: 700 13px/1.25 var(--display); text-transform: uppercase; }
.report-save-paper-lines { display: grid; gap: 8px; }
.report-save-paper-lines > div { min-width: 0; display: grid; gap: 2px; border-bottom: 1px solid #e2e7ea; padding-bottom: 5px; }
.report-save-paper-lines strong { color: #627787; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.report-save-paper-lines span { overflow: hidden; color: #263746; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.report-save-folder-front { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 69%; display: grid; align-content: end; justify-items: center; padding: 0 12px 22px; border: 1px solid #bd913e; border-radius: 4px 4px 10px 10px; background: linear-gradient(160deg, #e2b95f, #b78633 72%, #94651d); box-shadow: inset 0 2px 5px rgba(255, 255, 255, .24); }
.report-save-folder-front span { color: rgba(59, 42, 14, .78); font: 700 10px/1 var(--display); letter-spacing: .14em; }
.report-save-animation.is-saving .report-save-paper { animation: report-paper-file var(--report-save-duration, 2.6s) cubic-bezier(.42, 0, .58, 1) forwards; }
.report-save-status { margin: 0; color: #d6e7f0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.report-save-success { width: min(440px, 90vw); padding: 34px 28px; border: 1px solid rgba(98, 178, 215, .42); border-radius: 18px; background: linear-gradient(145deg, rgba(24, 48, 67, .98), rgba(8, 24, 38, .98)); box-shadow: 0 24px 80px rgba(0, 0, 0, .48); }
.report-save-success > span { width: 56px; height: 56px; margin: 0 auto 15px; display: grid; place-items: center; border: 1px solid rgba(95, 225, 190, .7); border-radius: 50%; background: rgba(47, 192, 150, .13); color: #68e2bd; font-size: 30px; }
.report-save-success h2 { margin: 0; color: #fff; font: 700 30px/1.1 var(--display); }
.report-save-success p { margin: 12px 0 18px; color: #c0d3df; font-size: 13px; }
.report-save-success .button { margin-top: 0; }
@keyframes report-paper-file {
  0% { opacity: 0; transform: translate(-50%, -35px) rotateX(4deg); }
  12% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, 120px) scale(.88) rotateX(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .report-print-animation.is-printing .report-print-paper { animation-duration: var(--report-print-duration, 5.8s) !important; animation-iteration-count: 1 !important; }
  .report-print-animation.is-printing .report-print-paper strong,
  .report-print-animation.is-printing .report-print-paper > span,
  .report-print-animation.is-printing .report-print-paper small { animation-duration: calc(var(--report-print-duration, 5.8s) * .18) !important; animation-iteration-count: 1 !important; }
  .report-save-animation.is-saving .report-save-paper { animation-duration: var(--report-save-duration, 2.6s) !important; animation-iteration-count: 1 !important; }
}
.report-empty { padding: 28px 0; color: #6b7b87; font-size: 12px; }
.workflow-band { margin: 54px 0; padding: 32px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; align-items: center; background: var(--forest); color: var(--white); }
.workflow-band .section-label { color: var(--safety); }
.workflow-band h2 { margin: 0; font: 700 clamp(30px, 4vw, 48px)/.98 var(--display); }
.workflow-band p { max-width: 650px; margin: 0; color: #d0d8de; font-size: 12px; line-height: 1.8; }
.specialty-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 28px; border-top: 1px solid #c9d1d7; border-bottom: 1px solid #c9d1d7; }
.specialty { min-height: 150px; padding: 19px 16px; border-right: 1px solid #c9d1d7; }
.specialty:last-child { border-right: 0; }
.specialty > span { color: #9a6f17; font: 600 13px var(--display); }
.specialty h3 { margin: 21px 0 7px; font: 600 20px/1 var(--display); }
.specialty p { margin: 0; color: #60717f; font-size: 10px; line-height: 1.65; }
.ride-form .form-message { color: var(--safety); }

@media (max-width: 850px) {
  .header-inner { min-height: 68px; padding: 0 20px; }
  .menu-toggle { display: block; border: 1px solid var(--line); padding: 9px 12px; background: transparent; color: var(--white); cursor: pointer; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--forest); border-top: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-apply { margin-top: 10px; padding: 13px 15px; border: 0; text-align: center; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); text-align: left; }
  .nav-dropdown-menu { position: static; display: none; min-width: 0; padding: 0 0 5px 12px; border-top: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .main-nav .nav-dropdown-menu a { padding: 11px; border-bottom: 1px solid var(--line); color: #e0e6eb; }
  .main-nav .nav-dropdown-menu a:hover, .main-nav .nav-dropdown-menu a:focus-visible { background: rgba(255,255,255,.08); color: var(--white); }
  .us-flag { margin-left: auto; }
  .content-grid, .application-page { grid-template-columns: 1fr; gap: 30px; }
  .application-intro { min-height: 320px; }
  .application-panel { border-top: 1px solid var(--line); border-left: 0; }
  .directory-grid { grid-template-columns: 1fr 1fr; }
  .directory-card:nth-child(2) { border-right: 0; }
  .directory-card:nth-child(-n+2) { border-bottom: 1px solid #bfc5bb; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(-n+2) { border-bottom: 1px solid #bdc8d0; }
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
  .specialty:nth-child(3) { border-right: 0; }
  .specialty:nth-child(-n+3) { border-bottom: 1px solid #c9d1d7; }
  .workflow-band { grid-template-columns: 1fr; gap: 14px; }
  .culture-strip { grid-template-columns: 1fr; gap: 8px; }
  .culture-strip .text-link { margin-top: 5px; }
  html.has-js [data-slide-in] { transform: translateY(28px); }
  html.has-js [data-slide-in][data-slide-direction="right"] { transform: translateY(28px); }
}
@media (max-width: 560px) {
  .brand-copy strong { font-size: 16px; }
  .brand-mark { width: 39px; height: 39px; }
  .us-flag { width: 32px; height: 21px; }
  .subhero { padding: 60px 20px 56px; }
  .page-content { padding: 52px 20px 64px; }
  .directory-grid, .roster-grid { grid-template-columns: 1fr 1fr; }
  .directory-card { min-height: 125px; padding: 14px; }
  .directory-card strong { font-size: 21px; }
  .staff-card { min-height: 160px; padding: 17px; }
  .staff-card h2 { font-size: 23px; }
  .staff-card::before { top: 15px; right: 9px; font-size: 64px; }
  .region { grid-template-columns: 32px 1fr; gap: 10px; min-height: 94px; }
  .region h2 { font-size: 22px; }
  .region-tag { display: none; }
  .application-intro { min-height: 310px; padding: 30px 24px; }
  .application-panel { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-footer, .callout { align-items: flex-start; flex-direction: column; }
  .footer-main, .footer-bottom-inner { padding-right: 20px; padding-left: 20px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .portal-shell { padding: 24px 16px 56px; }
  .portal-login { padding: 23px 19px; margin: 28px auto; }
  .portal-dashboard-head { padding: 21px 18px; align-items: flex-start; flex-direction: column; }
  .portal-user { width: 100%; justify-content: space-between; }
  .portal-tabs { padding: 0 8px; overflow-x: auto; }
  .portal-tabs button { padding: 13px 11px; white-space: nowrap; }
  .portal-panel { padding: 21px 17px; }
  .portal-form-grid { grid-template-columns: 1fr; }
  .portal-form-grid .field-full { grid-column: auto; }
  .profile-photo-tools { grid-template-columns: 1fr; }
  .profile-photo-tools h3, .template-download { grid-column: auto; }
  .report-template-frame { min-height: 720px; }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .specialty { min-height: 130px; }
  .specialty:nth-child(3) { border-right: 1px solid #c9d1d7; }
  .specialty:nth-child(even) { border-right: 0; }
  .specialty:nth-child(-n+4) { border-bottom: 1px solid #c9d1d7; }
  .workflow-band { padding: 24px 20px; margin: 38px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-sequence, .intro-sequence .intro-light { animation-duration: 2.4s !important; }
  .hero-inner.reveal { animation-duration: 1s !important; }
  html.has-js [data-slide-in].slide-pending { transition-duration: .4s !important; }
  .ticker-card::before { transition-duration: 1s !important; }
  .subhero-inner, .page-content > .content-grid, .page-content > .section-top,
  .page-content > .region-list, .workflow-band, .application-page, .portal-login,
  .portal-dashboard:not([hidden]), .ride-form, .staff-card, .specialty
  { animation-duration: .45s !important; }
}

:root {
  --forest: #192a40;
  --forest-soft: #30465f;
  --forest-deep: #142337;
  --safety: #ef9825;
  --paper: #f1f1f1;
  --ink: #1b2c3b;
}

body { background: var(--paper); }
.site-header { background: rgba(15, 33, 49, .97); box-shadow: 0 8px 24px rgba(8, 24, 37, .08); }
.header-inner { max-width: 1320px; min-height: 82px; }
.brand-mark { border: 0; border-radius: 0; background: transparent; }
.brand-mark img { object-fit: contain; }
.brand-copy strong { letter-spacing: .025em; }
.main-nav a { font-size: 13px; }
.main-nav a:not(.nav-apply)[aria-current="page"] { color: var(--safety); }
.main-nav .nav-apply { border-radius: 3px; box-shadow: 0 6px 18px rgba(223, 183, 97, .15); }
.button { border-radius: 3px; }
.button-primary { box-shadow: 0 8px 22px rgba(12, 27, 41, .1); }
.hero {
  min-height: min(760px, calc(100svh - 82px));
  background-image: url("../images/foto-sablonlari/anasayfa-kapak.svg");
  background-position: center 57%;
  animation: none;
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(9, 20, 31, .85), rgba(9, 20, 31, .43) 55%, rgba(9, 20, 31, .05)),
    linear-gradient(0deg, rgba(9, 20, 31, .55), transparent 64%);
}
.hero h1 { letter-spacing: .015em; }
.hero-description { max-width: 510px; }
.ticker { background: #e7e7e7; }
.section { padding-top: clamp(68px, 8vw, 104px); padding-bottom: clamp(68px, 8vw, 104px); }
.mission-inner, .join-wrap, .application-page, .callout, .workflow-band { border-radius: 5px; overflow: hidden; }
.mission-inner { box-shadow: 0 24px 65px rgba(13, 29, 43, .1); }
.team-grid { gap: 16px; }
.person { border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(13, 29, 43, .07); transition: transform .2s ease, box-shadow .2s ease; }
.person:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(13, 29, 43, .14); }
.person-photo { background: linear-gradient(145deg, #284b62, #172d40); }
.person-info p, .content-copy { color: #566b7a; }
.subhero {
  background:
    radial-gradient(ellipse at 78% 120%, rgba(223, 183, 97, .15), transparent 43%),
    linear-gradient(120deg, #102438, #203f55);
}
.page-title span { color: #d77d10; }
.section-heading span { color: #d77d10; }
.staff-card, .person-photo { background-image: linear-gradient(145deg, #294c63, #142a3d); }
.staff-card:nth-child(2) { background-color: #2c5064; }
.staff-card:nth-child(3) { background-color: #334a5a; }
.staff-card:nth-child(4) { background-color: #273f53; }
.roster-grid { gap: 16px; }
.staff-card { min-height: 205px; border-radius: 4px; box-shadow: 0 12px 30px rgba(13, 29, 43, .1); }
.application-page { box-shadow: 0 24px 60px rgba(13, 29, 43, .12); }
.field input, .field select, .field textarea { border-radius: 3px; transition: border-color .18s ease, background .18s ease; }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255, 255, 255, .1); }
.form-message.is-error, .admin-message.is-error, .portal-message.is-error { color: #ffb0a8; }
.portal-shell { min-height: 68vh; }
.portal-notice { padding: 14px 17px; border-left: 3px solid var(--safety); background: #e8ecee; color: #4c6271; }
.portal-login { border-radius: 5px; box-shadow: 0 18px 55px rgba(13, 29, 43, .12); }
.portal-dashboard { border-radius: 5px; overflow: hidden; box-shadow: 0 18px 55px rgba(13, 29, 43, .1); }
.portal-tabs button[hidden] { display: none; }
.portal-tabs button { min-height: 48px; }
.admin-content { margin-top: 32px; }
.admin-queue { margin-top: 30px; border-top: 1px solid #dbe1e5; }
.admin-status-folder { margin: 8px 0 0; border: 1px solid rgba(157, 194, 217, .16); border-radius: 7px; }
.admin-status-folder .admin-section-toggle { min-height: 46px; padding: 10px 12px; font-size: 17px; }
.admin-status-folder > .admin-section-content { padding: 0 10px 8px; }
.admin-section-toggle { width: 100%; min-height: 56px; padding: 14px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 600 23px/1.1 var(--display); text-align: left; cursor: pointer; }
.admin-section-toggle:hover, .admin-section-toggle:focus-visible, .admin-section-toggle[aria-expanded="true"] { background: rgba(135, 174, 197, .1); }
.admin-section-toggle:focus-visible { outline: 2px solid #47c8e7; outline-offset: 2px; }
.admin-section-arrow { flex: 0 0 auto; color: #8ea7b9; font: 400 27px/1 Arial, sans-serif; transition: transform .18s ease; }
.admin-section-toggle[aria-expanded="true"] .admin-section-arrow { transform: rotate(90deg); }
.admin-section-content[hidden] { display: none; }
.admin-queue > .admin-section-content { padding: 0 12px 12px; }
.staff-create-form > .admin-section-content { padding-top: 18px; }
.admin-entry { padding: 16px 2px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid #dbe1e5; }
.admin-entry:not(.admin-staff-entry) > div:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.admin-entry strong { font-size: 12px; }
.admin-entry p { margin: 5px 0 0; color: #6b7b87; font-size: 11px; line-height: 1.65; }
.admin-file-entry { display: block; padding: 0; }
.admin-file-toggle { width: 100%; min-width: 0; padding: 15px 14px; display: flex; align-items: center; gap: 13px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.admin-file-toggle:hover, .admin-file-toggle[aria-expanded="true"] { background: #f3f5f6; }
.admin-file-icon { color: #a52b2b; font-size: 20px; line-height: 1; }
.admin-file-identity { min-width: 0; flex: 1; display: grid; gap: 4px; }
.admin-file-identity strong { overflow-wrap: anywhere; }
.admin-file-identity > span { color: #6b7b87; font-size: 11px; }
.admin-file-status-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d9a52f; border-radius: 999px; background: #fff6dc; color: #765300; font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-file-status-badge[data-status="reviewing"] { border-color: #71a9d5; background: #e8f4ff; color: #14527f; }
.admin-file-status-badge[data-status="accepted"] { border-color: #79b99a; background: #e8f7ef; color: #17613a; }
.admin-file-status-badge[data-status="rejected"] { border-color: #d99494; background: #fff0f0; color: #8b2929; }
.admin-file-status-badge[data-status="unknown"] { border-color: #c6d0d7; background: #f0f3f5; color: #536575; }
.admin-file-arrow { color: #6b7b87; font-size: 24px; line-height: 1; transition: transform .18s ease; }
.admin-file-toggle[aria-expanded="true"] .admin-file-arrow { transform: rotate(90deg); }
.admin-file-panel { padding: 0 16px 18px; }
.admin-file-status { padding: 12px 0; border-bottom: 1px solid #dbe1e5; }
.admin-file-status .admin-status { max-width: 220px; }
.admin-file-section { margin-top: 16px; }
.admin-file-section h4 { margin: 0 0 10px; color: #33495a; font-size: 13px; }
.admin-file-answer { padding: 9px 0; border-bottom: 1px solid #e8ecef; }
.admin-file-answer strong { color: #405363; font-size: 11px; }
.admin-file-answer p { margin-top: 5px; color: #1b2c3b; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-status { display: grid; gap: 5px; flex: 0 0 150px; color: #627486; font-size: 10px; }
.admin-status select { min-height: 38px; border: 1px solid #c6d0d7; padding: 7px; background: #fff; color: #1b2c3b; }
.admin-staff-entry { flex-wrap: wrap; }
.admin-staff-toggle { width: 100%; min-width: 0; padding: 14px 12px; display: flex; align-items: center; gap: 12px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.admin-staff-toggle:hover, .admin-staff-toggle[aria-expanded="true"] { background: #f3f5f6; }
.admin-staff-toggle strong { min-width: 0; flex: 1; }
.admin-staff-arrow { color: #6b7b87; font-size: 24px; line-height: 1; transition: transform .18s ease; }
.admin-staff-toggle[aria-expanded="true"] .admin-staff-arrow { transform: rotate(90deg); }
.admin-staff-panel { width: 100%; padding: 0 12px 16px; }
.admin-history-list, .history-edit-form { flex: 0 0 100%; }
.admin-history-list { padding: 14px 18px 0; color: #405363; }
.admin-history-list p { margin: 8px 0 0; color: #6b7b87; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.admin-history-item p { margin: 0; flex: 1; }
.admin-history-delete {
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #d7b1b1;
  border-radius: 6px;
  background: #fff6f6;
  color: #b42318;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.admin-history-delete:hover { background: #fde7e7; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-delete-account { border-color: #c62828; background: #c62828; color: #fff; }
.admin-delete-account:hover { border-color: #a71919; background: #a71919; color: #fff; }
.staff-edit-form { flex: 0 0 100%; width: 100%; margin-top: 14px; padding: 18px; background: #f5f7f8; }
.staff-edit-form .field { color: #405363; }
.staff-edit-form .field input { border-color: #c6d0d7; background: #fff; color: #1b2c3b; }
.staff-edit-form button { margin-top: 16px; }
.admin-checkbox { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; color: #405363 !important; font-size: 12px !important; font-weight: 600; }
.admin-checkbox input { min-height: 0; width: 16px; height: 16px; }
.staff-create-form { width: 100%; padding: 22px; background: #f5f7f8; }
.staff-create-form .field label { color: #405363; }
.staff-create-form .field input, .staff-create-form .field textarea { border-color: #c6d0d7; background: white; color: #1b2c3b; }
.staff-create-form .button { margin-top: 18px; }
.admin-message { min-height: 20px; color: #577289; font-size: 12px; }
.setup-shell { min-height: 100vh; padding: 48px 20px; display: grid; place-items: center; background: #f3f5f6; }
.setup-card { width: min(620px, 100%); padding: clamp(26px, 5vw, 48px); background: white; box-shadow: 0 20px 60px rgba(13, 29, 43, .1); }
.setup-card h1 { margin: 0; font: 700 clamp(38px, 7vw, 58px)/.98 var(--display); text-transform: uppercase; }
.setup-copy { color: #586d7a; font-size: 13px; line-height: 1.8; }
.setup-form { display: grid; gap: 14px; margin-top: 28px; }
.setup-form h2 { margin: 20px 0 0; font: 600 23px/1 var(--display); }
.setup-form label { display: grid; gap: 7px; color: #405363; font-size: 12px; font-weight: 600; }
.setup-form label span { color: #697b87; font-weight: 400; }
.setup-form input { min-height: 44px; border: 1px solid #cad2d8; padding: 10px 12px; color: #172737; }
.setup-form .button { margin-top: 9px; }
.setup-success, .setup-error { padding: 13px 15px; font-size: 13px; line-height: 1.65; }
.setup-success { background: #edf7ee; color: #285b35; }
.setup-error { background: #fff0ee; color: #8d342a; }
button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 1100px) {
  .staff-create-form .portal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .header-inner { min-height: 70px; }
  .hero { min-height: 660px; background-position: 63% center; }
  .hero-note { bottom: 31px; }
}
@media (max-width: 560px) {
  .hero { min-height: 620px; background-position: 58% center; }
  .hero h1 { font-size: clamp(55px, 15.5vw, 78px); }
  .admin-entry { align-items: flex-start; flex-direction: column; }
  .admin-status { width: 100%; flex-basis: auto; }
  .staff-create-form { padding: 19px 15px; }
  .staff-create-form .portal-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.topline { height: 4px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--forest); border: 0; box-shadow: 0 4px 14px rgba(12, 24, 39, .28); }
.nav-wrap { width: min(100%, 1280px); min-height: 72px; padding: 0 20px; margin: auto; display: flex; align-items: center; justify-content: flex-end; }
.main-nav { width: auto; justify-content: flex-end; gap: clamp(10px, 1.2vw, 16px); }
.main-nav > a, .nav-dropdown-toggle { color: #f5f5f5; font-size: 12px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.main-nav > a[aria-current="page"] { color: var(--safety); }
.main-nav .nav-apply { padding: 11px 15px; margin-left: 0; background: var(--safety); color: #fff; font-size: 14px; box-shadow: none; }
.nav-apply span { margin-right: 5px; }
.nav-dropdown-toggle { padding: 0; }
.nav-dropdown-toggle span { color: #f5f5ed; }
.nav-dropdown-menu { top: calc(100% + 27px); left: -15px; border-top: 3px solid #d9b84b; border-radius: 0 0 4px 4px; }
.main-nav .nav-dropdown-menu a { color: var(--forest); text-decoration: none; }
.menu-toggle { display: none; }

.forms-page { min-height: calc(100vh - 82px); padding: 22px 14px 64px; background: #e7e7e7; }
.choice { min-height: 31px; display: flex; align-items: center; gap: 8px; color: #34485b; font-size: 12px; line-height: 1.6; cursor: pointer; }
.choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--safety); }

.application-page-shell { min-height: 100vh; padding: 58px 24px 88px; background: #edf0f2; }
.application-form-intro, .application-form { width: min(100%, 940px); margin: 0 auto; }
.application-form-intro { padding: 18px 0 32px; }
.application-form-intro .section-label { color: #8b5d13; }
.application-form-intro h1 { margin: 0; color: var(--forest); font: 700 clamp(38px, 6vw, 64px)/.95 var(--display); text-transform: uppercase; }
.application-form-intro h1 span { color: #b87312; }
.application-form-intro > p:last-child { max-width: 600px; margin: 16px 0 0; color: #596b79; font-size: 13px; line-height: 1.7; }
.application-form-intro em, .application-field em { color: #b84938; font-style: normal; }
.application-form { display: grid; gap: 18px; }
.application-form-card { padding: clamp(22px, 3.5vw, 34px); border-top: 3px solid var(--safety); background: #fff; box-shadow: 0 12px 32px rgba(21, 39, 58, .08); }
.application-form-card h2 { margin: 0 0 22px; display: flex; align-items: center; gap: 12px; color: var(--forest); font: 700 27px/1 var(--display); text-transform: uppercase; }
.application-context-tag { padding: 5px 8px; border: 1px solid rgba(239, 152, 37, .65); border-radius: 3px; color: #9a6110; font: 700 11px/1 var(--body); letter-spacing: .8px; }
.application-subsection-title { grid-column: 1 / -1; margin: 8px 0 -2px; padding-bottom: 9px; border-bottom: 1px solid #dce2e6; color: #526779; font: 700 18px/1 var(--display); text-transform: uppercase; }
.application-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.application-field { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.application-field[hidden] { display: none; }
.application-field.field-full { grid-column: 1 / -1; }
.application-field > label:not(.choice), .application-field legend { margin: 0; padding: 0; color: #30465f; font-size: 12px; font-weight: 700; line-height: 1.6; }
.application-field > input, .application-field > select, .application-field > textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9d2d9; border-radius: 3px; outline: 0; background: #f7f8f9; color: var(--forest); font: 13px var(--body); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.application-field > textarea { min-height: 132px; resize: vertical; }
.application-field > input:focus, .application-field > select:focus, .application-field > textarea:focus { border-color: var(--safety); background: #fff; box-shadow: 0 0 0 3px rgba(239, 152, 37, .15); }
.application-field > input::placeholder, .application-field > textarea::placeholder { color: #8a98a3; }
.application-field .choice { min-height: 35px; padding: 6px 9px; border: 1px solid #e1e6e9; border-radius: 3px; background: #f8f9fa; }
.application-field .choice input { flex: 0 0 auto; accent-color: var(--forest); }
.application-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.application-field .privacy-note { margin: 0 0 5px; color: #697b88; font-size: 11px; line-height: 1.65; }
.application-submit { padding: 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.application-submit p { max-width: 570px; margin: 0; color: #596b79; font-size: 11px; line-height: 1.7; }
.application-submit p span { display: block; color: #8a5d17; }
.application-submit .button { min-height: 48px; flex: 0 0 auto; padding: 0 22px; background: var(--safety); color: var(--forest-deep); font-size: 13px; }
.application-message { width: min(100%, 940px); }

.staff-directory-page { min-height: 70vh; padding: 38px 20px 72px; background: #fff; }
.staff-directory-heading { margin: 0 auto 28px; text-align: center; }
.staff-directory-heading .section-label { margin: 0 0 6px; font-size: 8px; }
.staff-directory-heading h1 { margin: 0; color: var(--forest); font: 700 32px/1.15 var(--display); }
.staff-directory-heading > p:last-child { margin: 5px 0 0; color: #687687; font-size: 10px; }
.staff-directory { width: min(100%, 780px); margin: auto; }
.staff-rank-group { margin: 0 0 16px; border: 1px solid #d9dfe5; background: #fff; box-shadow: 0 4px 12px rgba(34, 48, 63, .08); }
.staff-rank-group > h2 { margin: 0; padding: 7px 12px; background: var(--forest); color: #fff; font: 700 11px "DM Sans", sans-serif; text-align: center; }
.staff-card-grid { min-height: 112px; padding: 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.staff-card { width: 92px; min-height: 121px; padding: 0; display: flex; flex-direction: column; justify-content: flex-start; border: 1px solid #d7ddd3; border-radius: 0; background: #fff; color: #fff; box-shadow: 0 2px 7px rgba(30, 44, 25, .14); text-align: center; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.staff-card::before { content: none; }
.staff-card:hover, .staff-card:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 14px rgba(30, 44, 25, .2); outline: 2px solid var(--safety); outline-offset: 1px; }
.staff-photo { width: 100%; height: 88px; display: block; overflow: hidden; background: #dbe0d8; }
.staff-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.staff-card-caption { min-height: 32px; padding: 4px 3px; display: grid; align-content: center; background: var(--forest); }
.staff-card-caption strong { overflow: hidden; color: #fff; font-size: 8px; line-height: 1.2; text-overflow: ellipsis; }
.staff-card-caption small { margin-top: 2px; color: #ffbd5a; font-size: 7px; }
.staff-bureau-directory { margin-top: 44px; padding-top: 28px; border-top: 2px solid #d9dfe5; }
.staff-bureau-heading { margin: 0 0 24px; text-align: center; }
.staff-bureau-heading .section-label { margin: 0 0 5px; font-size: 8px; }
.staff-bureau-heading h2 { margin: 0; color: var(--forest); font: 700 27px/1.15 var(--display); }
.staff-bureau-heading > p:last-child { margin: 6px 0 0; color: #687687; font-size: 10px; }
.staff-bureau-table-heading, .staff-bureau-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px; align-items: center; gap: 14px; }
.staff-bureau-table-heading { min-height: 38px; padding: 0 16px; background: #eef1f4; color: #405363; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.staff-bureau-table-heading span:nth-child(2), .staff-bureau-table-heading span:nth-child(3) { text-align: center; }
.staff-bureau-group { margin: 0; border: 0; border-bottom: 1px solid #dbe1e5; box-shadow: none; }
.staff-bureau-row { width: 100%; min-height: 58px; padding: 9px 16px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.staff-bureau-row:hover, .staff-bureau-row:focus-visible { background: #f3f5f6; outline: 2px solid var(--safety); outline-offset: -2px; }
.staff-bureau-row > strong { font-size: 13px; }
.staff-bureau-count { justify-self: center; padding: 5px 12px; border: 1px solid #cbd5dc; border-radius: 3px; background: #f1f4f6; color: var(--forest); font-size: 11px; white-space: nowrap; }
.staff-bureau-action { justify-self: end; color: var(--forest); font-size: 12px; font-weight: 700; white-space: nowrap; }
.roster-error { text-align: center; }
.staff-profile-dialog { position: fixed; width: min(1000px, calc(100% - 36px)); max-width: none; max-height: min(92vh, 900px); padding: clamp(22px, 4vw, 42px); border: 0; background: #fff; color: #24372a; box-shadow: 0 20px 80px rgba(10, 24, 12, .35); }
.staff-profile-dialog::backdrop { background: rgba(18, 29, 17, .62); }
.bureau-dialog { position: fixed; width: min(1100px, calc(100% - 36px)); max-width: none; max-height: min(92vh, 900px); padding: clamp(24px, 4vw, 42px); overflow: auto; border: 0; border-top: 6px solid var(--safety); background: #fff; color: var(--ink); box-shadow: 0 20px 80px rgba(8, 24, 37, .35); }
.bureau-dialog::backdrop { background: rgba(13, 25, 41, .78); }
.bureau-dialog .profile-station { margin: 0 0 9px; color: #627486; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.bureau-dialog h2 { margin: 0; padding-right: 54px; color: var(--forest); font: 700 clamp(30px, 4vw, 46px)/1.05 var(--display); }
.bureau-dialog-count { margin: 8px 0 28px; color: #627486; font-size: 11px; }
.bureau-dialog-cards { min-height: 0; padding: 0; gap: 24px; }
.bureau-dialog-cards .staff-card { width: 185px; min-height: 327px; }
.bureau-dialog-cards .staff-photo { height: 252px; }
.bureau-dialog-cards .staff-card-caption { min-height: 72px; padding: 10px 8px; border-top: 4px solid var(--safety); background: var(--forest); }
.bureau-dialog-cards .staff-card-caption strong { font-size: 12px; }
.bureau-dialog-cards .staff-card-caption small { margin-top: 6px; color: #fff; font-size: 11px; }
.profile-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; background: var(--forest); color: #fff; font-size: 30px; cursor: pointer; }
.profile-summary { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; align-items: center; gap: clamp(24px, 5vw, 52px); padding: 0 16px 26px 0; }
.profile-portrait { position: relative; width: 100%; max-width: 280px; aspect-ratio: .82; border: 5px solid var(--forest); box-shadow: 8px 9px 0 var(--safety); background: #e9ece4; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-station { margin: 0 0 12px; color: #657860; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.profile-content h2 { margin: 0; color: var(--forest); font: 700 clamp(32px, 5vw, 56px)/1.02 var(--display); }
.profile-rank { display: inline-block; margin-top: 12px; padding: 7px 13px; background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; }
.profile-facts { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px 0; }
.profile-facts dt, .profile-facts dd { min-height: 38px; margin: 0; padding: 10px 12px; display: flex; align-items: center; background: #eef2ec; font-size: 11px; }
.profile-facts dt { border-left: 3px solid var(--safety); color: #647080; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.profile-facts dd { color: #304331; font-weight: 600; }
.staff-bio-section { margin: 0 0 22px; padding: 18px 20px; border-left: 3px solid var(--safety); border-radius: 0 8px 8px 0; background: #f1f4f6; }
.staff-bio-section[hidden] { display: none; }
.staff-bio-section h3 { margin: 0 0 9px; color: #304052; font: 700 17px/1.2 var(--display); }
.staff-bio-section p { margin: 0; color: #405363; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-bio-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(157, 194, 217, .16); }
.profile-bio-form .field textarea, .staff-edit-form .field textarea, .staff-create-form .field textarea { min-height: 120px; resize: vertical; }
.profile-bio-help { color: #8fa5b4; font-size: 10px; line-height: 1.6; }
.profile-bio-form .button { margin-top: 14px; }
.portal-dashboard .profile-bio-help { color: #9eb2c0; }
.service-history { border: 1px solid #d9e1d4; border-radius: 10px; overflow: hidden; }
.history-heading { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.history-heading h3 { margin: 0; color: #304331; font: 700 19px Georgia, serif; }
.history-heading span { color: #687b63; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.history-table-wrap { overflow-x: auto; }
.history-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
.history-table-wrap th { padding: 12px; background: #eef2ec; color: #62715c; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.history-table-wrap td { padding: 14px 12px; border-top: 1px solid #e3e8e1; color: #3c4c3c; }
.profile-error { color: #a12f28; font-size: 12px; }

.contact-section { background: #eef1eb; }
.contact-strip { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 28px; }
.contact-strip > p { color: #566b5b; font-size: 13px; line-height: 1.7; }
.media-section { background: #fff; }
.media-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.media-grid a { min-height: 180px; position: relative; overflow: hidden; background: #203727; }
.media-grid img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: cover; transition: transform .25s ease; }
.media-grid a:hover img { transform: scale(1.04); }
.media-grid span { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px; background: linear-gradient(transparent, rgba(10, 25, 12, .88)); color: #fff; font-size: 12px; font-weight: 700; }
.recruitment-feature { width: min(1024px, calc(100% - 40px)); min-height: 340px; margin: 54px auto; display: grid; grid-template-columns: 1.2fr .8fr; }
.feature-why, .feature-apply { min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; }
.feature-why { position: relative; overflow: hidden; background: #30465f url("../images/foto-sablonlari/kesfet-banner.jpg") center 57% / cover no-repeat; color: #fff; }
.feature-why::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(15, 26, 42, .74), rgba(15, 26, 42, .12)); }
.feature-copy { position: relative; width: 100%; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.feature-copy strong { font-size: clamp(30px, 4vw, 42px); }
.feature-copy > span { max-width: 300px; font-size: 15px; font-weight: 600; line-height: 1.55; }
.feature-copy b { margin-top: 8px; padding: 13px 20px; background: var(--safety); color: #fff; font-size: 15px; }
.feature-apply { flex-direction: column; gap: 13px; background: #171717; color: #fff; }
.feature-apply img { width: 145px; height: 145px; }
.feature-apply strong { font-size: 24px; text-transform: uppercase; }
.feature-apply span { color: #c7ced7; font-size: 12px; font-weight: 800; }
.patrol-mosaic-section { padding: 8px 28px 86px; }
.patrol-mosaic-card { width: min(1024px, 100%); padding: clamp(24px, 4vw, 42px); margin: 0 auto; }
.patrol-mosaic-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.patrol-mosaic-item { min-width: 0; position: relative; z-index: 1; aspect-ratio: 1.5; }
.patrol-mosaic-tile { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: pointer; }
.patrol-mosaic-tile::after { position: absolute; z-index: 1; inset: 0; content: ""; background: rgba(24, 66, 105, .48); transition: background .25s ease; }
.patrol-mosaic-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.patrol-mosaic-tile:hover::after, .patrol-mosaic-tile:focus-visible::after { background: rgba(24, 66, 105, .58); }
.patrol-mosaic-tile:focus-visible { outline: 2px solid var(--safety); outline-offset: 2px; }
.patrol-mosaic-title { position: absolute; z-index: 2; top: 50%; left: 50%; color: #fff; font: 700 clamp(18px, 2.4vw, 28px)/1 var(--display); letter-spacing: .8px; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.9); text-transform: uppercase; transform: translate(-50%, -50%); }
.patrol-mosaic-note { position: absolute; z-index: 3; inset: 9% 7%; padding: 20px 17px 15px; display: grid; place-items: center; overflow: hidden; background: #ffd84f; color: #26313a; box-shadow: 3px 7px 18px rgba(0,0,0,.38); filter: none; backdrop-filter: none; -webkit-backdrop-filter: none; font: 600 13px/1.45 "DM Sans", sans-serif; text-align: center; opacity: 0; pointer-events: none; transform: translateX(var(--note-from-x, 108%)) translateY(var(--note-from-y, 0)) rotate(2deg) scale(.9); transition: opacity .24s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.patrol-mosaic-note.from-left { --note-from-x: -108%; --note-entry-x: -108%; --note-entry-y: 0; }
.patrol-mosaic-note.from-right { --note-from-x: 108%; --note-entry-x: 108%; --note-entry-y: 0; }
.patrol-mosaic-note.from-up { --note-from-x: 0; --note-from-y: -108%; --note-entry-x: 0; --note-entry-y: -108%; }
.patrol-mosaic-note.from-down { --note-from-x: 0; --note-from-y: 108%; --note-entry-x: 0; --note-entry-y: 108%; }
.patrol-mosaic-note.is-entering { animation: patrol-note-enter .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes patrol-note-enter {
  from { opacity: 0; transform: translateX(var(--note-entry-x, 108%)) translateY(var(--note-entry-y, 0)) rotate(2deg) scale(.9); }
  to { opacity: 1; transform: translate(0, 0) rotate(1deg) scale(1); }
}
.patrol-mosaic-note::before { position: absolute; top: 6px; left: 50%; width: 52px; height: 15px; content: ""; background: rgba(255,255,255,.42); transform: translateX(-50%) rotate(-2deg); }
.patrol-mosaic-note.is-visible { opacity: 1; --note-from-x: 0; --note-from-y: 0; transform: translate(0, 0) rotate(1deg) scale(1); }
.patrol-mosaic-note.is-leaving-left { opacity: 0; transform: translateX(-108%) rotate(-2deg) scale(.9); }
.patrol-mosaic-note.is-leaving-right { opacity: 0; transform: translateX(108%) rotate(2deg) scale(.9); }
.patrol-mosaic-note.is-leaving-up { opacity: 0; transform: translateY(-108%) rotate(-2deg) scale(.9); }
.patrol-mosaic-note.is-leaving-down { opacity: 0; transform: translateY(108%) rotate(2deg) scale(.9); }
.career-quiz { margin-top: 34px; text-align: center; }
.career-quiz > h2 { margin: 0; color: var(--forest); font: 700 clamp(28px, 3vw, 38px)/1.05 var(--display); text-transform: uppercase; }
.career-quiz > h2::after { width: 52px; height: 4px; display: block; margin: 15px auto 13px; background: var(--safety); content: ""; }
.career-quiz-intro { max-width: 650px; margin: 0 auto 22px; color: #566979; font-size: 14px; line-height: 1.65; }
.career-quiz-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 18px 24px; border-radius: 7px; background: #073d70; text-align: left; }
.career-quiz-field { min-width: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; color: #fff; font: 700 clamp(16px, 1.7vw, 22px)/1.1 var(--display); text-transform: uppercase; }
.career-quiz-combobox { width: 100%; min-width: 0; min-height: 54px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 4px; background: #fff; color: #183650; font: 600 13px/1.35 var(--body); text-align: left; text-transform: none; cursor: pointer; }
.career-quiz-combobox:focus-visible, .career-quiz-combobox[aria-invalid="true"] { outline: 3px solid var(--safety); outline-offset: 2px; }
.career-quiz-combobox-arrow { width: 9px; height: 9px; flex: 0 0 auto; border-right: 2px solid #547084; border-bottom: 2px solid #547084; transform: translateY(-2px) rotate(45deg); transition: transform .24s ease; }
.career-quiz-field.is-open .career-quiz-combobox-arrow { transform: translateY(2px) rotate(225deg); }
.career-quiz-options-clip { min-height: 0; display: grid; overflow: hidden; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.career-quiz-field.is-open .career-quiz-options-clip { grid-template-rows: 1fr; opacity: 1; }
.career-quiz-options { min-height: 0; max-height: min(42vh, 250px); overflow-y: auto; overscroll-behavior: contain; border-radius: 4px; background: #fff; color: #183650; transform: translateY(-7px); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.career-quiz-field.is-open .career-quiz-options { transform: translateY(0); }
.career-quiz-options [role="option"] { width: 100%; min-height: 42px; padding: 10px 13px; display: block; border: 0; border-bottom: 1px solid #e1e8ed; background: transparent; color: inherit; font: 500 13px/1.4 var(--body); text-align: left; text-transform: none; cursor: pointer; }
.career-quiz-options [role="option"]:last-child { border-bottom: 0; }
.career-quiz-options [role="option"]:hover, .career-quiz-options [role="option"]:focus-visible, .career-quiz-options [role="option"][aria-selected="true"] { outline: 0; background: #e8f0f6; color: #073d70; }
.career-quiz-error { min-height: 0; color: #ffe19a; font: 500 12px/1.35 var(--body); text-transform: none; }
.career-quiz-error:empty { display: none; }
.career-quiz-submit { grid-column: 1 / -1; justify-self: center; min-height: 48px; margin: 2px 0 -43px; padding: 0 25px; border: 0; border-radius: 5px; background: #edb642; color: #12395b; font: 700 20px/1 var(--display); text-transform: uppercase; cursor: pointer; }
.career-quiz-submit:hover, .career-quiz-submit:focus-visible { background: #f7c85d; }
.career-quiz-form[hidden], .career-quiz-result[hidden] { display: none; }
.career-quiz-result { padding: 27px clamp(18px, 4vw, 42px); border-left: 5px solid var(--safety); background: #f0f3f6; text-align: left; }
.career-quiz-result-label { margin: 0 0 6px; color: #627486; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.career-quiz-result h3 { margin: 0 0 12px; color: var(--forest); font: 700 clamp(26px, 3vw, 34px)/1.1 var(--display); }
.career-quiz-result > p:not(.career-quiz-result-label) { max-width: 800px; margin: 0 0 10px; color: #405265; font-size: 14px; line-height: 1.7; }
.career-quiz-result .career-quiz-result-reason { color: #243d53; font-weight: 600; }
.career-quiz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.career-quiz-result-actions button { min-height: 42px; padding: 0 17px; border: 1px solid #173d60; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.career-quiz-retry { background: #edb642; color: #12395b; }
.career-quiz-close { background: transparent; color: #173d60; }

.main-nav .nav-apply { color: #fff; }
.nav-apply-group .nav-apply { color: #fff; }
.nav-apply-group .nav-apply:hover, .nav-apply-group .nav-apply:focus-visible, .nav-apply-group .nav-apply[aria-current="page"] { color: #000; }
.main-nav .nav-apply:hover, .main-nav .nav-apply:focus-visible, .main-nav .nav-apply[aria-current="page"] { color: #000; }
.button-primary { background: var(--safety); color: #fff; }
.section-heading span, .text-link span, .directory-card b, .capability-grid article > span,
.value-list li > span, .region-number, .staff-card .rank, .specialty > span { color: #d77d10; }
.ticker-inner { width: 100%; }
.ticker-card { position: relative; isolation: isolate; overflow: hidden; text-decoration: none; }
.ticker-card::before { position: absolute; z-index: 0; inset: 0; content: ""; opacity: 0; background-position: center; background-size: cover; transition: opacity 1s ease; }
.ticker-careers::before { background-image: linear-gradient(90deg, rgba(13, 27, 42, .76), rgba(13, 27, 42, .3)), var(--ticker-image, url("../images/foto-sablonlari/kariyer-karti.jpeg")); }
.ticker-ride-along::before { background-image: linear-gradient(90deg, rgba(13, 27, 42, .76), rgba(13, 27, 42, .3)), var(--ticker-image, url("../images/foto-sablonlari/ride-along-karti.jpg")); }
.ticker-card > * { position: relative; z-index: 1; transition: color .25s ease; }
.ticker-card:hover::before, .ticker-card:focus-visible::before { opacity: 1; }
.ticker-card:hover strong, .ticker-card:focus-visible strong { color: #fff; }
.ticker-card:hover span, .ticker-card:focus-visible span { color: #ffd18a; }
.ticker-card:focus-visible { outline: 3px solid var(--safety); outline-offset: -4px; }
.hero { min-height: clamp(360px, 29vw, 470px); background-position: center 54%; }
.hero::before { background: linear-gradient(90deg, rgba(7, 16, 27, .46), rgba(7, 16, 27, .18) 60%, rgba(7, 16, 27, .34)), linear-gradient(0deg, rgba(7, 16, 27, .52), transparent 62%); }
.hero-inner { width: min(1024px, 100%); padding: 30px 28px 64px; }
.home-hero-inner { position: absolute; top: clamp(70px, calc(57% - 5cm), 100px); left: 50%; width: min(1240px, 100%); padding: 0 28px; margin: 0; transform: translateX(-50%); text-align: center; }
.home-hero-inner h1 { max-width: none; margin: 0; white-space: nowrap; }
.hero h1 { max-width: 1000px; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: .09em; }
.hero h1 span { color: var(--safety); }
.hero .eyebrow { color: #fff; letter-spacing: 2px; }
.hero-note::before { background: var(--safety); box-shadow: 0 0 0 4px rgba(239, 152, 37, .22); }
.mission-inner, .workflow-band, .callout { background: var(--forest); }
.mission-inner { grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); }
.mission-values, .mission-values .value, .mission-values .value strong { min-width: 0; }
.site-footer { background: var(--forest-deep); }
.form-message, .ride-form .form-message { color: var(--safety); }
.staff-profile-dialog { color: #293849; }
.staff-profile-dialog::backdrop { background: rgba(13, 25, 41, .68); }
.profile-facts dt, .profile-facts dd, .history-table-wrap th { background: #eef0f2; }
.profile-facts dd, .history-heading h3 { color: #304052; }
.service-history { border-color: #d9dfe5; }
.history-heading span { color: #6b7580; }
.history-table-wrap td { border-color: #e3e6e9; color: #3c4651; }
.history-table-wrap th { color: #606c79; }
.contact-section { background: #eef0f2; }
.contact-strip > p, .value-list p, .region p { color: #647080; }
.media-grid a { background: var(--forest); }
.media-grid span { background: linear-gradient(transparent, rgba(10, 20, 34, .9)); }

@media (max-width: 1050px) {
  .header-utility-inner { justify-content: center; gap: 0; }
  .nav-wrap { min-height: 68px; padding: 0 20px; justify-content: flex-end; }
  .nav-brand { top: -25px; left: 20px; width: 112px; height: 112px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 9px 18px 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--forest); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-dropdown-toggle { min-height: 44px; display: flex; align-items: center; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 12px; }
  .main-nav .nav-apply { margin: 0; color: #fff; }
  .nav-apply-group { min-height: 0; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 12px 0 0 12px; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
  .nav-apply-caption { font-size: 10px; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; display: none; min-width: 0; padding: 0 0 5px 12px; border: 0; background: #142337; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .main-nav .nav-dropdown-menu a { min-height: 42px; padding: 12px; color: #fff; }
  .mission-band .mission-inner { grid-template-columns: 1fr; }
  .mission-band .mission-values { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 850px) {
  .nav-wrap { justify-content: flex-end; }
  .nav-brand { top: -25px; left: 20px; width: 112px; height: 112px; }
  .hero { min-height: 390px; }
  .hero-inner { padding: 30px 22px 58px; }
  .home-hero-inner { top: clamp(32px, calc(57% - 5cm), 70px); padding: 0 16px; }
  #anasayfa .home-hero-inner h1 { max-width: none; width: 100%; font-size: clamp(18px, 7.8vw, 34px); letter-spacing: 0; }
  .ticker-inner { grid-template-columns: 1fr 1fr; }
  .recruitment-feature { min-height: 280px; }
  .feature-why, .feature-apply { min-height: 280px; }
  .feature-apply img { width: 112px; height: 112px; }
  .patrol-mosaic-card { width: calc(100% - 44px); }
  .header-utility-inner { justify-content: center; gap: 0; }
  .utility-links { gap: 9px; }
  .utility-links a { font-size: 8px; }
  .nav-wrap { min-height: 68px; padding: 0 20px; justify-content: flex-end; }
  .nav-brand { top: -25px; left: 20px; width: 112px; height: 112px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 9px 18px 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--forest); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-dropdown-toggle { min-height: 44px; display: flex; align-items: center; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 12px; }
  .main-nav .nav-apply { margin: 0; color: #fff; }
  .nav-apply-group { min-height: 0; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 12px 0 0 12px; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
  .nav-apply-caption { font-size: 10px; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; display: none; min-width: 0; padding: 0 0 5px 12px; border: 0; background: #142337; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .main-nav .nav-dropdown-menu a { min-height: 42px; padding: 12px; color: #fff; }
  .contact-strip { grid-template-columns: 1fr; gap: 10px; }
  .contact-strip > p { margin: 0; }
}
@media (max-width: 600px) {
  .application-page-shell { padding: 38px 16px 62px; }
  .application-form-intro { padding: 8px 0 24px; }
  .application-form-card { padding: 21px 17px; }
  .application-form-card h2 { font-size: 24px; }
  .application-fields { grid-template-columns: 1fr; gap: 16px; }
  .application-field.field-full { grid-column: auto; }
  .application-choice-grid { grid-template-columns: 1fr 1fr; }
  .application-submit { align-items: stretch; flex-direction: column; }
  .application-submit .button { align-self: flex-start; }
  .mission-band .mission-copy { padding: 28px 22px; }
  .mission-band .mission-values { grid-template-columns: 1fr; }
  .mission-band .mission-values .value { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mission-band .mission-values .value:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .mission-band .mission-values .value:last-child { border-bottom: 0; }
  .mission-values { grid-template-columns: 1fr; }
  .mission-values .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .mission-values .value:last-child { border-bottom: 0; }
  .header-utility { min-height: 29px; }
  .header-utility-inner { min-height: 29px; padding: 0 6px; }
  .utility-links { gap: 6px; margin-left: 100px; }
  .utility-links a:first-child, .utility-links > span:first-of-type { display: none; }
  .utility-links a { font-size: 7px; }
  .nav-wrap { min-height: 62px; }
  .nav-brand { top: 0; left: 14px; width: 84px; height: 84px; }
  .hero { min-height: 380px; }
  .home-hero-inner { top: 32px; padding: 0 12px; }
  #anasayfa .home-hero-inner h1 { font-size: clamp(18px, 7.8vw, 30px); }
  .hero h1 { max-width: 330px; font-size: 42px; letter-spacing: .04em; }
  .hero-description { max-width: 340px; font-size: 13px; }
  .hero-note { right: 16px; bottom: 20px; font-size: 8px; }
  .ticker-inner { grid-template-columns: 1fr; }
  .ticker-card { min-height: 112px; }
  .ticker-card + .ticker-card { border-top: 1px solid #c5c5c5; border-left: 0; }
  .recruitment-feature { width: calc(100% - 28px); margin: 32px auto; grid-template-columns: 1fr; }
  .feature-why, .feature-apply { min-height: 260px; }
  .patrol-mosaic-section { padding: 0 14px 54px; }
  .patrol-mosaic-card { width: 100%; padding: 0; }
  .patrol-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .patrol-mosaic-note { inset: 8% 6%; padding: 15px 10px 10px; font-size: 10px; }
  .career-quiz { margin-top: 27px; }
  .career-quiz-intro { font-size: 12px; }
  .career-quiz-form { grid-template-columns: 1fr; gap: 14px; padding: 18px 14px 25px; }
  .career-quiz-field { gap: 7px; font-size: 18px; }
  .career-quiz-combobox { min-height: 48px; }
  .career-quiz-submit { grid-column: auto; margin: 4px 0 -44px; font-size: 18px; }
  .career-quiz-result { padding: 21px 17px; }
  .career-quiz-result > p:not(.career-quiz-result-label) { font-size: 12px; }
  .career-quiz-result-actions { flex-direction: column; align-items: stretch; }
  .forms-page { padding: 13px 7px 38px; }
  .staff-directory-page { padding: 28px 10px 52px; }
  .staff-card-grid { gap: 8px; }
  .staff-card { width: 80px; min-height: 110px; }
  .staff-photo { height: 79px; }
  .staff-bureau-table-heading, .staff-bureau-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .staff-bureau-table-heading span:nth-child(2) { display: none; }
  .staff-bureau-row > strong { font-size: 11px; }
  .staff-bureau-count { display: none; }
  .staff-bureau-action { font-size: 10px; }
  .bureau-dialog { width: calc(100% - 16px); max-height: 96vh; padding: 52px 16px 22px; }
  .bureau-dialog h2 { font-size: 32px; }
  .bureau-dialog-count { margin-bottom: 20px; }
  .bureau-dialog-cards { gap: 10px; }
  .bureau-dialog-cards .staff-card { width: min(42vw, 150px); min-height: 246px; }
  .bureau-dialog-cards .staff-photo { height: 185px; }
  .bureau-dialog-cards .staff-card-caption { min-height: 57px; padding: 7px 4px; }
  .bureau-dialog-cards .staff-card-caption strong { font-size: 10px; }
  .bureau-dialog-cards .staff-card-caption small { font-size: 9px; }
  .profile-summary { grid-template-columns: 1fr; gap: 24px; padding: 0 0 24px; }
  .profile-portrait { width: min(220px, 70%); margin: 0 auto; }
  .profile-content h2 { padding-right: 38px; font-size: 36px; }
  .staff-profile-dialog { width: calc(100% - 16px); max-height: 96vh; padding: 22px 14px; }
  .profile-facts { grid-template-columns: 1fr 1.2fr; }
  .profile-facts dt, .profile-facts dd { padding: 9px 7px; font-size: 9px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-grid a, .media-grid img { min-height: 160px; }, .region,
  .value-list li, .directory-card, .capability-grid article { animation-duration: 1.1s !important; }
  .nav-dropdown-menu, .nav-dropdown-toggle span { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .patrol-mosaic-tile img { transition-duration: .01ms !important; }
  .patrol-mosaic-note { transition-duration: .55s !important; }
}

.staff-profile-dialog {
  width: min(1040px, calc(100% - 36px));
  max-height: min(92vh, 940px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(173, 205, 222, .2);
  border-top: 4px solid #65c8d8;
  background: #0d1925;
  color: #eaf2f5;
  box-shadow: 0 28px 90px rgba(2, 9, 17, .58);
}
.staff-profile-dialog::backdrop { background: rgba(4, 12, 22, .84); backdrop-filter: blur(6px); }
.staff-profile-dialog .profile-close {
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(168, 203, 219, .28);
  background: #142433;
  color: #dcebf0;
  font-size: 26px;
  transition: background .18s ease, border-color .18s ease;
}
.staff-profile-dialog .profile-close:hover,
.staff-profile-dialog .profile-close:focus-visible { border-color: #65c8d8; background: #65c8d8; color: #0d1925; }
.staff-profile-dialog .profile-summary {
  position: relative;
  grid-template-columns: minmax(210px, .72fr) 1.28fr;
  gap: clamp(28px, 5vw, 62px);
  padding: 72px clamp(24px, 5.5vw, 62px) 42px;
  background: radial-gradient(ellipse at 13% 44%, rgba(61, 126, 145, .23), transparent 48%), linear-gradient(125deg, #142b3c 0%, #102130 46%, #0d1925 100%);
}
.staff-profile-dialog .profile-summary::before {
  position: absolute;
  top: 29px;
  left: clamp(24px, 5.5vw, 62px);
  color: #8caab8;
  content: "FHP     PERSONNEL INDEX     /     ACTIVE FILE";
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.staff-profile-dialog .profile-portrait {
  isolation: isolate;
  width: 100%;
  max-width: 300px;
  padding: 7px;
  border: 1px solid rgba(141, 201, 214, .38);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .24), 7px 7px 0 #245267;
  background: #183345;
}
.staff-profile-dialog .profile-portrait img { display: block; filter: saturate(.7) contrast(1.08); }
.staff-profile-dialog .profile-portrait::after {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: 7px;
  left: 7px;
  padding: 22px 12px 11px;
  background: linear-gradient(transparent, rgba(7, 15, 25, .92));
  color: #d7e8ed;
  content: "IDENTIFICATION   /   FLORIDA HIGHWAY PATROL";
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.staff-profile-dialog .profile-station {
  margin-bottom: 11px;
  color: #78d2df;
  font-size: 9px;
  letter-spacing: 2.1px;
}
.staff-profile-dialog .profile-content h2 {
  max-width: 590px;
  padding-right: 42px;
  color: #f3f6f8;
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -.4px;
  overflow-wrap: anywhere;
}
.staff-profile-dialog .profile-rank {
  margin-top: 16px;
  padding: 8px 13px;
  border: 1px solid rgba(101, 200, 216, .3);
  border-left: 3px solid #65c8d8;
  background: rgba(72, 151, 170, .12);
  color: #9ee0e8;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.staff-profile-dialog .profile-facts {
  grid-template-columns: minmax(112px, .72fr) minmax(0, 1.3fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid rgba(168, 203, 219, .2);
}
.staff-profile-dialog .profile-facts dt,
.staff-profile-dialog .profile-facts dd {
  min-width: 0;
  min-height: 39px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(168, 203, 219, .13);
  background: transparent;
  color: #c4d5dc;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.staff-profile-dialog .profile-facts dt {
  border-left: 2px solid #4d8a9a;
  color: #91aab6;
  font-size: 8px;
  letter-spacing: .9px;
}
.staff-profile-dialog .profile-facts dd { color: #edf4f6; font-weight: 600; }
.staff-profile-dialog .staff-bio-section {
  margin: 0 clamp(18px, 4vw, 42px) 22px;
  padding: 20px 22px;
  border: 1px solid rgba(168, 203, 219, .16);
  border-left: 3px solid #65c8d8;
  border-radius: 0;
  background: #122433;
}
.staff-profile-dialog .staff-bio-section h3,
.staff-profile-dialog .staff-bio-section p { color: #d6e3e8; }
.staff-profile-dialog .staff-bio-section h3 { color: #f0f6f8; }
.staff-profile-dialog .service-history {
  position: relative;
  margin: 0 clamp(18px, 4vw, 42px) 28px;
  border: 1px solid rgba(168, 203, 219, .18);
  border-radius: 0;
  background: #0f1f2d;
}
.staff-profile-dialog .history-heading {
  min-height: 69px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(168, 203, 219, .16);
  background: linear-gradient(90deg, rgba(42, 88, 106, .36), transparent 78%);
}
.staff-profile-dialog .history-heading h3 { color: #edf5f7; font: 700 22px/1.1 var(--display); }
.staff-profile-dialog .history-heading span {
  padding: 6px 9px;
  border: 1px solid rgba(101, 200, 216, .28);
  color: #91dce5;
  font-size: 8px;
  letter-spacing: 1.1px;
}
.staff-profile-dialog .history-table-wrap { padding: 0 14px 14px; }
.staff-profile-dialog .history-table-wrap table { display: block; border-collapse: separate; font-size: 10px; }
.staff-profile-dialog .history-table-wrap thead,
.staff-profile-dialog .history-table-wrap tbody { display: block; }
.staff-profile-dialog .history-table-wrap thead { padding-left: 148px; }
.staff-profile-dialog .history-table-wrap thead tr,
.staff-profile-dialog .history-table-wrap tbody tr {
  display: grid;
  grid-template-columns: 134px repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.staff-profile-dialog .history-table-wrap th {
  min-width: 0;
  padding: 11px 9px;
  background: transparent;
  color: #7793a0;
  font-size: 7px;
  letter-spacing: .9px;
  white-space: normal;
}
.staff-profile-dialog .history-table-wrap tbody {
  position: relative;
  display: grid;
  gap: 9px;
}
.staff-profile-dialog .history-table-wrap tbody::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: linear-gradient(#65c8d8, rgba(101, 200, 216, .12));
  content: "";
}
.staff-profile-dialog .history-table-wrap tbody tr {
  position: relative;
  min-height: 74px;
  border: 1px solid rgba(168, 203, 219, .13);
  background: linear-gradient(100deg, #142a39, #122332 52%, #11202c);
}
.staff-profile-dialog .history-table-wrap td {
  min-width: 0;
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(168, 203, 219, .1);
  color: #dce8ec;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.staff-profile-dialog .history-table-wrap td::before {
  margin-bottom: 5px;
  color: #7894a0;
  content: "";
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.staff-profile-dialog .history-table-wrap td:nth-child(1) {
  position: relative;
  padding-left: 39px;
  border: 0;
  color: #8ddce5;
  font-size: 10px;
  font-weight: 700;
}
.staff-profile-dialog .history-table-wrap td:nth-child(1)::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 2px solid #0f1f2d;
  border-radius: 50%;
  background: #65c8d8;
  box-shadow: 0 0 0 1px #65c8d8;
  content: "";
  transform: translateY(-50%);
}
.staff-profile-dialog .history-table-wrap td:nth-child(2)::before { content: "Bitiş"; }
.staff-profile-dialog .history-table-wrap td:nth-child(3)::before { content: "Değişiklik"; }
.staff-profile-dialog .history-table-wrap td:nth-child(4)::before { content: "Birim"; }
.staff-profile-dialog .history-table-wrap td:nth-child(5)::before { content: "Rütbe"; }
.staff-profile-dialog .history-table-wrap td[colspan] {
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 15px 20px;
  border: 0;
  color: #a8bbc4;
}
.staff-profile-dialog .profile-error { margin: 0 clamp(18px, 4vw, 42px) 24px; color: #ff9f91; }

@media (max-width: 600px) {
  .staff-profile-dialog { width: calc(100% - 16px); max-height: 96vh; }
  .staff-profile-dialog .profile-summary { grid-template-columns: 1fr; gap: 24px; padding: 62px 18px 28px; }
  .staff-profile-dialog .profile-summary::before { top: 24px; left: 18px; font-size: 8px; }
  .staff-profile-dialog .profile-portrait { width: min(220px, 70%); margin: 0 auto; }
  .staff-profile-dialog .profile-content h2 { padding-right: 34px; font-size: 38px; }
  .staff-profile-dialog .profile-facts { grid-template-columns: minmax(100px, .72fr) minmax(0, 1.3fr); }
  .staff-profile-dialog .profile-facts dt,
  .staff-profile-dialog .profile-facts dd { padding: 9px 7px; font-size: 9px; }
  .staff-profile-dialog .staff-bio-section,
  .staff-profile-dialog .service-history { margin-right: 14px; margin-left: 14px; }
  .staff-profile-dialog .profile-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .staff-profile-dialog .history-heading { padding: 14px 13px; }
  .staff-profile-dialog .history-table-wrap { padding: 0 8px 9px; }
  .staff-profile-dialog .history-table-wrap thead { display: none; }
  .staff-profile-dialog .history-table-wrap tbody { gap: 8px; }
  .staff-profile-dialog .history-table-wrap tbody::before { left: 13px; }
  .staff-profile-dialog .history-table-wrap tbody tr { grid-template-columns: 80px repeat(2, minmax(0, 1fr)); min-height: 92px; }
  .staff-profile-dialog .history-table-wrap td { padding: 9px 7px; font-size: 8px; }
  .staff-profile-dialog .history-table-wrap td::before { font-size: 6px; }
  .staff-profile-dialog .history-table-wrap td:nth-child(1) {
    grid-row: 1 / span 2;
    padding-left: 25px;
    font-size: 8px;
    overflow-wrap: anywhere;
  }
  .staff-profile-dialog .history-table-wrap td:nth-child(1)::before { left: 7px; width: 9px; height: 9px; }
  .staff-profile-dialog .history-table-wrap td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .staff-profile-dialog .history-table-wrap td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .staff-profile-dialog .history-table-wrap td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .staff-profile-dialog .history-table-wrap td:nth-child(5) { grid-column: 3; grid-row: 2; }
  .staff-profile-dialog .history-table-wrap td[colspan] { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .staff-profile-dialog .profile-close { transition: none; }
  .patrol-mosaic-note.is-entering { animation-duration: .55s !important; animation-iteration-count: 1 !important; }
}

.portal-shell {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 5vw, 64px) clamp(16px, 4vw, 56px) 80px;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(23, 116, 164, .19), transparent 36%),
    radial-gradient(ellipse at 88% 72%, rgba(15, 70, 112, .14), transparent 38%),
    linear-gradient(145deg, #081524, #0c1c30 54%, #101e30);
}
.portal-shell::before, .portal-shell::after {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(116, 194, 230, .09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.portal-shell::before { top: 12%; left: -150px; box-shadow: 0 0 0 30px rgba(116, 194, 230, .025), 0 0 0 60px rgba(116, 194, 230, .02); }
.portal-shell::after { right: -170px; bottom: 8%; width: 340px; height: 340px; }
.portal-notice {
  width: min(1240px, 100%);
  padding: 13px 17px;
  margin: 0 auto 18px;
  border: 1px solid rgba(152, 193, 220, .16);
  border-left: 3px solid #efb94d;
  border-radius: 8px;
  background: rgba(20, 39, 59, .66);
  color: #c5d3de;
}
.portal-login {
  border: 1px solid rgba(153, 198, 226, .2);
  border-top: 3px solid #eab64e;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 45, 66, .94), rgba(12, 27, 44, .96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .06);
}
.portal-login-heading h1 { color: #f3f7fb; }
.portal-login-heading p, .portal-help { color: #a7bac9; }
.portal-login .field label { color: #d4e0e9; }
.portal-login .field input { border-color: rgba(179, 207, 226, .24); border-radius: 6px; background: rgba(6, 18, 31, .58); color: #f5f8fb; }
.portal-login .field input:focus { border-color: #56c7e9; outline: 2px solid rgba(86, 199, 233, .2); }
.portal-login .portal-message { color: #f2c96d; }
.portal-dashboard {
  position: relative;
  width: min(1240px, 100%);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(152, 197, 225, .22);
  border-top: 3px solid #44c5e5;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 93% 4%, rgba(24, 115, 153, .18), transparent 31%),
    linear-gradient(150deg, rgba(18, 37, 57, .96), rgba(9, 23, 39, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .055);
  color: #edf4f8;
}
.portal-dashboard-head {
  position: relative;
  min-height: 142px;
  padding: 30px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(157, 194, 217, .14);
  background: linear-gradient(100deg, rgba(23, 51, 75, .74), rgba(14, 34, 53, .34));
}
.portal-dashboard-head > div:first-child { position: relative; z-index: 1; }
.portal-dashboard-head > div:first-child p { color: #79d2eb; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.portal-dashboard-head h1 { color: #f4f8fb; font-size: clamp(34px, 5vw, 48px); letter-spacing: .2px; }
.portal-user { position: relative; z-index: 1; padding: 10px 12px 10px 15px; border: 1px solid rgba(174, 205, 225, .17); border-radius: 9px; background: rgba(6, 19, 33, .42); }
.portal-user strong { color: #f2f7fa; font-size: 12px; }
.portal-user span { color: #a9bdcc; }
.portal-logout {
  padding: 10px 13px;
  border: 1px solid rgba(239, 185, 77, .55);
  border-radius: 6px;
  background: rgba(239, 185, 77, .08);
  color: #f4cd79;
  transition: background .18s ease, border-color .18s ease;
}
.portal-logout:hover, .portal-logout:focus-visible { border-color: #efb94d; background: rgba(239, 185, 77, .18); outline: 0; }
.portal-tabs {
  position: relative;
  z-index: 2;
  gap: 6px;
  padding: 11px clamp(14px, 3vw, 36px) 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(157, 194, 217, .15);
  background: rgba(7, 20, 34, .58);
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 188, 215, .4) transparent;
}
.portal-tabs button {
  min-height: 49px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 7px 7px 0 0;
  color: #a9bdcc;
  font-size: 12px;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.portal-tabs button:hover, .portal-tabs button:focus-visible { color: #e7f5fa; background: rgba(111, 183, 208, .08); outline: 0; }
.portal-tabs button[aria-selected="true"] { border-color: rgba(74, 195, 226, .16); border-bottom-color: #47c8e7; background: linear-gradient(180deg, rgba(62, 168, 199, .15), rgba(62, 168, 199, .035)); color: #8be1f2; }
.portal-dashboard .portal-panel {
  margin: 18px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(157, 194, 217, .15);
  border-radius: 10px;
  background: rgba(20, 41, 61, .48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.portal-panel-heading { margin-bottom: 26px; color: #eff6fa; font-size: clamp(27px, 3vw, 34px); }
.portal-dashboard .field label { color: #c2d2dd; font-weight: 600; }
.portal-dashboard .field input, .portal-dashboard .field select, .portal-dashboard .field textarea {
  border-color: rgba(167, 196, 216, .22);
  border-radius: 6px;
  background-color: rgba(5, 17, 30, .55);
  color: #edf4f8;
}
.portal-dashboard .field input::placeholder, .portal-dashboard .field textarea::placeholder { color: #849aaa; }
.portal-dashboard .field input:focus, .portal-dashboard .field select:focus, .portal-dashboard .field textarea:focus {
  border-color: #47c8e7;
  background-color: rgba(7, 24, 40, .92);
  outline: 2px solid rgba(71, 200, 231, .16);
}
.portal-dashboard .field input[readonly], .portal-dashboard .field select:disabled { border-color: rgba(167, 196, 216, .13); background: rgba(145, 169, 187, .1); color: #a9bac7; }
.portal-dashboard .portal-message, .portal-dashboard .admin-message { color: #f1ce78; }
.portal-dashboard .profile-photo-tools { border-top-color: rgba(157, 194, 217, .18); }
.portal-dashboard .profile-photo-tools h3 { color: #eff6fa; }
.portal-dashboard .profile-photo-preview { border: 1px solid rgba(167, 196, 216, .25); border-radius: 8px; background: rgba(5, 17, 30, .7); }
.portal-dashboard .template-download { border-color: rgba(167, 196, 216, .28); color: #c9d9e3; }
.portal-dashboard .report-template-frame { border: 1px solid rgba(157, 194, 217, .2); border-radius: 8px; }
.portal-dashboard .report-list { border-top-color: rgba(157, 194, 217, .18); }
.portal-dashboard .admin-queue { border-top-color: rgba(157, 194, 217, .18); }
.portal-dashboard .admin-section-toggle { color: #eff6fa; }
.portal-dashboard .admin-section-toggle:hover, .portal-dashboard .admin-section-toggle:focus-visible, .portal-dashboard .admin-section-toggle[aria-expanded="true"] { background: rgba(57, 103, 133, .27); }
.portal-dashboard .admin-queue > .admin-section-content { border: 1px solid rgba(157, 194, 217, .13); border-top: 0; border-radius: 0 0 7px 7px; }
.portal-dashboard .admin-entry { border-bottom-color: rgba(157, 194, 217, .15); }
.portal-dashboard .admin-entry strong, .portal-dashboard .admin-file-section h4 { color: #ecf4f8; }
.portal-dashboard .admin-entry p, .portal-dashboard .admin-file-identity > span, .portal-dashboard .admin-history-list p { color: #a6bac8; }
.portal-dashboard .admin-file-toggle, .portal-dashboard .admin-staff-toggle { border: 1px solid rgba(157, 194, 217, .13); border-radius: 7px; background: rgba(24, 45, 65, .52); color: #edf4f8; }
.portal-dashboard .admin-file-toggle:hover, .portal-dashboard .admin-file-toggle[aria-expanded="true"],
.portal-dashboard .admin-staff-toggle:hover, .portal-dashboard .admin-staff-toggle[aria-expanded="true"] { background: rgba(42, 78, 105, .62); }
.portal-dashboard .admin-file-status-badge { border-color: rgba(238, 193, 89, .44); background: rgba(123, 84, 15, .3); color: #ffe39a; }
.portal-dashboard .admin-file-status-badge[data-status="reviewing"] { border-color: rgba(112, 183, 235, .44); background: rgba(29, 91, 137, .3); color: #b8e0ff; }
.portal-dashboard .admin-file-status-badge[data-status="accepted"] { border-color: rgba(108, 202, 150, .44); background: rgba(22, 104, 61, .3); color: #b8f0ce; }
.portal-dashboard .admin-file-status-badge[data-status="rejected"] { border-color: rgba(231, 130, 130, .44); background: rgba(129, 38, 38, .3); color: #ffc1c1; }
.portal-dashboard .admin-file-status-badge[data-status="unknown"] { border-color: rgba(157, 194, 217, .25); background: rgba(87, 110, 128, .25); color: #c3d1da; }
.portal-dashboard .admin-file-panel, .portal-dashboard .admin-staff-panel { border: 1px solid rgba(157, 194, 217, .13); border-top: 0; border-radius: 0 0 7px 7px; }
.portal-dashboard .admin-file-status, .portal-dashboard .admin-file-answer { border-bottom-color: rgba(157, 194, 217, .14); }
.portal-dashboard .admin-file-status, .portal-dashboard .admin-status, .portal-dashboard .admin-file-answer strong { color: #bbccd7; }
.portal-dashboard .admin-file-answer p, .portal-dashboard .admin-history-list { color: #e1ebf1; }
.portal-dashboard .admin-status select { border-color: rgba(167, 196, 216, .24); border-radius: 5px; background: #12283d; color: #edf4f8; }
.portal-dashboard .admin-file-status { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.portal-dashboard .admin-file-status .admin-status { flex: 0 1 220px; }
.portal-dashboard .admin-file-status .button { margin-top: 0; }
.portal-dashboard .admin-file-status .button-secondary { border-color: rgba(71, 200, 231, .55); background: #17344a; color: #f2f8fb; }
.portal-dashboard .admin-file-status .button-secondary:hover, .portal-dashboard .admin-file-status .button-secondary:focus-visible { border-color: #47c8e7; background: #204b64; color: #fff; }
.portal-dashboard .admin-file-status .button-secondary:disabled { border-color: rgba(167, 196, 216, .24); background: #263b4d; color: #d5e0e7; cursor: wait; opacity: 1; }
.portal-dashboard .admin-application-preview { padding: 20px; background: rgba(7, 20, 34, .32); }
.portal-dashboard .admin-application-preview .admin-file-status { margin-bottom: 18px; padding: 0 0 16px; border-bottom-color: rgba(157, 194, 217, .2); }
.portal-dashboard .admin-application-form-card { margin: 16px 0 0; padding: clamp(17px, 2.5vw, 26px); border: 1px solid #dce4e9; border-top: 3px solid #e9ad43; border-radius: 8px; background: #f8fafb; box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.portal-dashboard .admin-application-form-card h4 { margin: 0 0 18px; display: flex; align-items: center; gap: 11px; color: #183149; font: 700 21px/1.15 var(--display); }
.admin-application-context { padding: 5px 8px; border: 1px solid rgba(202, 139, 36, .5); border-radius: 4px; color: #805512; font: 700 10px/1 var(--body); letter-spacing: .7px; }
.admin-application-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.portal-dashboard .admin-application-answer { min-width: 0; min-height: 70px; padding: 12px 14px; border: 1px solid #e0e6ea; border-radius: 6px; background: #fff; }
.portal-dashboard .admin-application-answer-full { grid-column: 1 / -1; }
.portal-dashboard .admin-application-answer strong { color: #33495a; font-size: 12px; line-height: 1.5; }
.portal-dashboard .admin-application-answer p { margin: 7px 0 0; color: #172d40; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-dashboard .staff-edit-form, .portal-dashboard .staff-create-form { border: 1px solid rgba(157, 194, 217, .15); border-radius: 9px; background: rgba(23, 43, 62, .72); }
.portal-dashboard .staff-edit-form .field, .portal-dashboard .staff-create-form .field { color: #c2d2dd; }
.portal-dashboard .staff-edit-form .field textarea, .portal-dashboard .staff-create-form .field textarea { border-color: rgba(167, 196, 216, .22); background-color: rgba(5, 17, 30, .55); color: #edf4f8; }
.portal-dashboard .staff-edit-form .field textarea:focus, .portal-dashboard .staff-create-form .field textarea:focus { border-color: #47c8e7; background-color: rgba(7, 24, 40, .92); }
.portal-dashboard .admin-checkbox { color: #d3e0e8 !important; }

@media (max-width: 560px) {
  .portal-shell { padding: 25px 12px 48px; }
}

.site-sound-button {
    position: fixed;
    z-index: 120;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(117, 195, 244, .85);
    border-radius: 50%;
    background: linear-gradient(145deg, #1f73b4, #123b67);
    box-shadow: 0 8px 24px rgba(0, 25, 55, .4), inset 0 1px rgba(255, 255, 255, .24);
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.site-sound-button svg { width: 29px; height: 29px; }
.site-sound-button:hover, .site-sound-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 11px 30px rgba(0, 46, 96, .52), 0 0 0 4px rgba(73, 167, 235, .18);
    outline: 0;
}
.site-sound-button[aria-pressed="true"] { background: linear-gradient(145deg, #398fd1, #164f84); }
.site-sound-button:disabled { cursor: wait; opacity: .82; }
.blue-strobe-overlay {
    position: fixed;
    z-index: 9990;
    inset: 18px 22px 58px;
    overflow: hidden;
    visibility: hidden;
    background: rgba(5, 42, 125, .18);
    -webkit-backdrop-filter: blur(4px) saturate(1.4);
    backdrop-filter: blur(4px) saturate(1.4);
    pointer-events: none;
}
.blue-strobe-active .blue-strobe-overlay { visibility: visible; animation: blue-screen-pulse 2s ease-in-out infinite; }
.blue-strobe-light {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(38vw, 520px);
    opacity: 0;
    filter: blur(4px);
}
.blue-strobe-light-left {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 74, 255, 1), rgba(18, 118, 255, .98) 19%, rgba(33, 150, 255, .68) 47%, rgba(48, 163, 255, .22) 77%, transparent);
    box-shadow: inset 48px 0 105px rgba(12, 87, 255, .9), 34px 0 110px rgba(25, 112, 255, .56);
}
.blue-strobe-light-right {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 74, 255, 1), rgba(18, 118, 255, .98) 19%, rgba(33, 150, 255, .68) 47%, rgba(48, 163, 255, .22) 77%, transparent);
    box-shadow: inset -48px 0 105px rgba(12, 87, 255, .9), -34px 0 110px rgba(25, 112, 255, .56);
}
.site-sound-button { z-index: 10000; }
.blue-strobe-active .blue-strobe-light-right { animation: blue-siren-right 2s ease-in-out infinite; }
.blue-strobe-active .blue-strobe-light-left { animation: blue-siren-left 2s ease-in-out infinite; }
@keyframes blue-screen-pulse {
  0%, 100% { opacity: .34; }
  25%, 55% { opacity: 1; }
}
@keyframes blue-siren-right {
  0%, 6%, 39%, 100% { opacity: .04; }
  12% { opacity: 1; }
  24% { opacity: .12; }
}
@keyframes blue-siren-left {
  0%, 54%, 87%, 100% { opacity: .04; }
  60% { opacity: 1; }
  72% { opacity: .12; }
}
@media (max-width: 560px) {
  .site-sound-button { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .blue-strobe-light { width: min(42vw, 230px); filter: blur(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-sound-button { transition: none; }
  .blue-strobe-active .blue-strobe-overlay,
  .blue-strobe-active .blue-strobe-light-right,
  .blue-strobe-active .blue-strobe-light-left {
    animation-duration: 2s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out !important;
  }
  .blue-strobe-active .blue-strobe-overlay { animation-name: blue-screen-pulse !important; }
  .blue-strobe-active .blue-strobe-light-right { animation-name: blue-siren-right !important; }
  .blue-strobe-active .blue-strobe-light-left { animation-name: blue-siren-left !important; }
  .blue-strobe-active .blue-strobe-overlay { background: rgba(5, 42, 125, .32); }
}

@media (max-width: 560px) {
  .portal-notice { font-size: 10px; }
  .portal-dashboard { border-radius: 10px; }
  .portal-dashboard-head { min-height: 0; gap: 17px; }
  .portal-user { padding: 9px; gap: 9px; }
  .portal-user span { line-height: 1.5; }
  .portal-logout { padding: 9px; font-size: 9px; white-space: nowrap; }
  .portal-tabs { gap: 2px; }
  .portal-tabs button { min-height: 45px; padding: 0 12px; font-size: 11px; }
  .portal-dashboard .portal-panel { margin: 10px; padding: 23px 16px; }
  .portal-dashboard .staff-create-form { padding: 18px 13px; }
  .patrol-mosaic-note.is-entering { animation-duration: .55s !important; animation-iteration-count: 1 !important; }
}

.portal-tabs[hidden], .portal-home[hidden], .portal-home-card[hidden] { display: none; }
.portal-dashboard-head { align-items: center; }
.portal-dashboard-head > div:first-child { width: min(46%, 480px); padding: 14px 18px; border: 1px solid rgba(174, 205, 225, .24); border-radius: 5px; background: rgba(6, 19, 33, .26); }
.portal-dashboard-head h1 { color: #f4f8fb; }
.portal-dashboard-head .portal-user-badge { display: block; margin-top: 8px; color: #b3c6d4; font-size: 12px; }
.portal-user { display: flex; align-items: center; gap: 14px; }
.portal-user > img { width: 92px; height: 92px; border: 1px solid rgba(174, 205, 225, .28); border-radius: 6px; background: rgba(6, 19, 33, .42); object-fit: cover; }
.portal-admin-shortcut { min-height: 44px; padding: 0 17px; border: 1px solid rgba(71, 200, 231, .38); border-radius: 6px; background: rgba(71, 200, 231, .1); color: #a7e9f5; font-weight: 700; cursor: pointer; }
.portal-admin-shortcut:hover, .portal-admin-shortcut:focus-visible { background: rgba(71, 200, 231, .2); outline: 2px solid rgba(71, 200, 231, .35); }
.portal-home { width: min(860px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-home-card { position: relative; min-width: 0; min-height: 82px; padding: 13px 16px; display: flex; align-items: center; gap: 13px; overflow: hidden; border: 1px solid rgba(105, 193, 222, .23); border-radius: 8px; background: linear-gradient(125deg, rgba(21, 49, 72, .96), rgba(12, 29, 47, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 20px rgba(0, 0, 0, .16); color: #f2f7fa; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.portal-home-card::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; background: #44c5e5; content: ""; opacity: .65; transition: opacity .2s ease, box-shadow .2s ease; }
.portal-home-card::after { position: absolute; top: -70px; right: -40px; width: 120px; height: 120px; border: 1px solid rgba(95, 197, 229, .08); border-radius: 50%; box-shadow: 0 0 0 15px rgba(95, 197, 229, .025), 0 0 0 30px rgba(95, 197, 229, .018); content: ""; pointer-events: none; }
.portal-home-card:hover, .portal-home-card:focus-visible { border-color: rgba(86, 199, 233, .72); background: linear-gradient(125deg, rgba(31, 75, 103, .98), rgba(15, 41, 62, .99)); box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 12px 26px rgba(0, 0, 0, .25), 0 0 18px rgba(68, 197, 229, .09); outline: 0; transform: translateY(-2px); }
.portal-home-card:hover::before, .portal-home-card:focus-visible::before { opacity: 1; box-shadow: 0 0 12px #44c5e5; }
.portal-home-card-index { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(94, 197, 229, .28); border-radius: 6px; background: rgba(50, 158, 193, .1); color: #77d9ef; font: 700 12px/1 var(--display); letter-spacing: .6px; }
.portal-home-card-copy { min-width: 0; display: grid; gap: 5px; }
.portal-home-card-copy strong { color: #edf7fb; font: 600 clamp(15px, 1.5vw, 18px)/1.15 var(--display); }
.portal-home-card-copy small { color: #8faaba; font-size: 10px; line-height: 1.3; }
.portal-home-card-arrow { position: relative; z-index: 1; margin-left: auto; align-self: flex-start; color: #5bbbd7; font-size: 15px; opacity: .72; transition: transform .2s ease, opacity .2s ease; }
.portal-home-card:hover .portal-home-card-arrow, .portal-home-card:focus-visible .portal-home-card-arrow { opacity: 1; transform: translate(2px, -2px); }
.portal-home-card:nth-child(5):last-child { grid-column: 1 / -1; width: min(50%, 420px); justify-self: center; }
.admin-home { width: min(860px, 100%); margin: 8px auto 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-home[hidden], .admin-subview[hidden] { display: none; }
.portal-admin-subheading { margin: 28px 0 10px; color: #eff6fa; font: 600 23px/1.2 var(--display); }
.admin-subview > .admin-content { margin-top: 12px; }
.admin-subview .portal-admin-unit-applications { margin-top: 18px; }
.portal-home-back { margin: 0 0 18px; padding: 8px 12px; border: 1px solid rgba(167, 196, 216, .24); border-radius: 5px; background: rgba(7, 24, 40, .48); color: #b8d3e2; font-weight: 700; cursor: pointer; }
.portal-home-back:hover, .portal-home-back:focus-visible { border-color: #47c8e7; color: #effaff; outline: 0; }
.portal-chat-messages { min-height: 300px; max-height: min(58vh, 620px); margin: 20px 0; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; border: 1px solid rgba(157, 194, 217, .17); border-radius: 8px; background: #17212b; }
.portal-chat-message { min-width: 0; padding: 6px 10px; display: flex; align-items: flex-start; gap: 12px; border-radius: 5px; }
.portal-chat-message:hover { background: rgba(255, 255, 255, .035); }
.portal-chat-avatar { width: 38px; height: 38px; flex: 0 0 38px; margin-top: 2px; border-radius: 50%; background: #263746; object-fit: cover; }
.portal-chat-message-content { min-width: 0; flex: 1; }
.portal-chat-message-meta { min-height: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #cce0eb; font-size: 13px; }
.portal-chat-message-meta strong { color: #f2f4f5; font-size: 14px; font-weight: 600; }
.portal-chat-badge { color: #a9bac8; font-size: 11px; }
.portal-chat-message-meta time { color: #8e9ba7; font-size: 10px; }
.portal-chat-message p { margin: 1px 0 0; overflow-wrap: anywhere; color: #dbdee1; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.portal-chat-empty { margin: auto; color: #9bb1c0; text-align: center; }
.portal-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 12px; }
.portal-chat-form .field { grid-column: 1; }
.portal-chat-form .portal-message { grid-column: 1 / -1; }
.portal-chat-form .button { margin-top: 0; }
.portal-unit-application-form { max-width: 780px; display: grid; gap: 17px; }
.portal-unit-application-form .button { justify-self: start; margin-top: 0; }
.portal-unit-application-list, .portal-admin-unit-applications { margin-top: 30px; }
.portal-admin-unit-applications { padding-top: 24px; border-top: 1px solid rgba(157, 194, 217, .16); }
.portal-admin-unit-applications h3 { margin: 0 0 16px; color: #eff6fa; font: 600 22px/1.2 var(--display); }
.portal-unit-application-card { margin-top: 12px; padding: 16px; border: 1px solid rgba(157, 194, 217, .16); border-radius: 7px; background: rgba(6, 19, 33, .35); }
.portal-unit-application-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; color: #edf4f8; }
.portal-unit-application-identity { min-width: 0; display: grid; justify-items: start; gap: 5px; }
.portal-unit-application-identity > strong { color: #f2f8fb; font-size: 15px; }
.portal-unit-application-unit { color: #7ed9ee; font-size: 11px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase; }
.portal-unit-application-badge { color: #9db2c1; font-size: 10px; }
.portal-unit-application-rank { margin: 12px 0; color: #9db2c1; font-size: 10px; }
.portal-unit-application-answer { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(112, 169, 198, .14); border-left: 2px solid rgba(68, 197, 229, .56); border-radius: 5px; background: rgba(12, 29, 46, .62); }
.portal-unit-application-answer > strong { color: #a9dbea; font-size: 10px; letter-spacing: .45px; text-transform: uppercase; }
.portal-unit-application-answer > p { margin: 7px 0 0; color: #d7e3ea; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-application-status { padding: 5px 9px; border: 1px solid rgba(238, 193, 89, .44); border-radius: 999px; background: rgba(123, 84, 15, .3); color: #ffe39a; font-size: 10px; font-weight: 700; }
.portal-application-status.is-reviewing { border-color: rgba(112, 183, 235, .44); background: rgba(29, 91, 137, .3); color: #b8e0ff; }
.portal-application-status.is-accepted { border-color: rgba(108, 202, 150, .44); background: rgba(22, 104, 61, .3); color: #b8f0ce; }
.portal-application-status.is-rejected { border-color: rgba(231, 130, 130, .44); background: rgba(129, 38, 38, .3); color: #ffc1c1; }
.portal-unit-application-controls { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-unit-application-controls select { min-height: 40px; padding: 0 10px; border: 1px solid rgba(167, 196, 216, .24); border-radius: 5px; background: #12283d; color: #edf4f8; }
.portal-unit-application-controls .button { margin-top: 0; }

@media (max-width: 680px) {
  .portal-dashboard-head { align-items: flex-start; }
  .portal-dashboard-head > div:first-child { width: auto; max-width: 55%; padding: 10px; }
  .portal-user { flex-wrap: wrap; justify-content: flex-end; }
  .portal-user > img { width: 68px; height: 68px; }
  .portal-home { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 16px; gap: 10px; }
  .portal-home-card { min-height: 70px; padding: 10px; gap: 9px; }
  .portal-home-card:nth-child(5):last-child { grid-column: 1 / -1; width: min(50%, 420px); justify-self: center; }
  .portal-home-card-index { width: 32px; height: 32px; }
  .portal-home-card-copy strong { font-size: 15px; }
  .portal-home-card-copy small { font-size: 9px; }
  .admin-home { padding: 0 16px; gap: 10px; }
  .portal-chat-form { grid-template-columns: 1fr; }
  .portal-chat-form .field, .portal-chat-form .portal-message { grid-column: auto; }
  .portal-chat-form .button { justify-self: start; }
}

@media (max-width: 440px) {
  .portal-dashboard-head { padding: 20px 16px; }
  .portal-dashboard-head h1 { font-size: 27px; }
  .portal-user { gap: 8px; }
  .portal-admin-shortcut { min-height: 38px; padding: 0 9px; font-size: 10px; }
  .portal-logout { padding: 8px; font-size: 9px; }
  .portal-home { grid-template-columns: 1fr; }
  .portal-home-card:nth-child(5):last-child { grid-column: auto; width: 100%; }
  .admin-home { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .portal-dashboard .admin-application-preview { padding: 12px; }
  .admin-application-fields { grid-template-columns: 1fr; gap: 9px; }
  .portal-dashboard .admin-application-answer-full { grid-column: auto; }
}

.portal-shell.portal-login-stage {
  --portal-stage-inline-padding: clamp(20px, 6vw, 90px);
  --portal-stage-gap: clamp(20px, 5vw, 70px);
  min-height: min(820px, calc(100svh - 110px));
  padding: clamp(28px, 5vw, 70px) var(--portal-stage-inline-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: var(--portal-stage-gap);
  overflow: hidden;
  background: #000;
}
.portal-login-page { background: #000; }
.portal-login-page .site-footer,
.site-footer.portal-login-footer { background: var(--forest-deep); }
.portal-login-page .site-header { background: var(--forest); }
.portal-login-page .header-utility { background: #30465f; }
.portal-login-page .brand-mark,
footer.portal-login-footer .brand-mark { overflow: hidden; border-radius: 50%; background: #fff; clip-path: none !important; }
.portal-login-page .brand-mark img,
footer.portal-login-footer .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.portal-shell.portal-login-stage::before, .portal-shell.portal-login-stage::after { display: none; }
.portal-login-scene { position: relative; z-index: 1; left: calc(0px - var(--portal-stage-inline-padding)); width: calc(100% + var(--portal-stage-inline-padding) + var(--portal-stage-gap)); aspect-ratio: 1408 / 768; grid-column: 1; grid-row: 1; justify-self: start; isolation: isolate; overflow: hidden; opacity: 0; transition: opacity .28s ease; }
.portal-login-engine-starting .portal-login-scene,
.portal-login-engine-running .portal-login-scene { opacity: 1; }
.portal-login-scene[hidden] { display: none; }
.portal-car-image { position: absolute; top: 50%; left: 50%; width: 145%; max-width: none; height: auto; display: block; transform: translate(-50%, -50%); filter: brightness(.45) saturate(.72); mix-blend-mode: screen; }
.portal-car-light { position: absolute; z-index: 1; display: block; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.portal-headlight { top: 50.5%; width: 12%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse, rgba(235, 248, 255, .24) 0, rgba(179, 220, 255, .12) 19%, rgba(108, 177, 255, .04) 44%, transparent 72%); filter: blur(2px); }
.portal-headlight-left { left: 28%; }
.portal-headlight-right { right: 28%; }
.portal-login-stage.is-engine-starting .portal-headlight { animation: portal-headlights-start .65s steps(1, end) both; }
.portal-login-stage.is-engine-running .portal-headlight { opacity: .42 !important; }
.portal-login-stage.is-strobing .portal-headlight { opacity: 0 !important; animation: none !important; }
.portal-strobe { height: 2.5%; border-radius: 50%; background: radial-gradient(ellipse, rgba(35, 125, 255, .68) 0, rgba(20, 105, 255, .78) 30%, rgba(0, 65, 255, .55) 58%, transparent 78%); filter: blur(3px); }
.portal-strobe-roof-left { top: 25.75%; left: 40.5%; width: 9%; height: 2.5%; }
.portal-strobe-roof-right { top: 25.75%; left: 50.5%; width: 9%; height: 2.5%; }
.portal-strobe-grille-left,
.portal-strobe-grille-right { height: 2.5%; }
.portal-strobe-grille-left { top: 56%; left: 40%; width: 3.2%; }
.portal-strobe-grille-right { top: 56%; left: 56.8%; width: 3.2%; }
.portal-login-stage.is-strobing .portal-strobe-roof-left,
.portal-login-stage.is-strobing .portal-strobe-grille-left { animation: portal-projector-strobe .72s steps(1, end) infinite; }
.portal-login-stage.is-strobing .portal-strobe-roof-right,
.portal-login-stage.is-strobing .portal-strobe-grille-right { animation: portal-projector-strobe .72s steps(1, end) .18s infinite; }
.portal-global-illumination { position: fixed; z-index: 8; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.portal-light-spill { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .24s ease; }
.portal-headlight-spill { display: none; }
.portal-strobe-spill-left { background: radial-gradient(ellipse var(--portal-strobe-roof-spill-width, 24vw) var(--portal-strobe-roof-spill-height, 29vh) at var(--portal-strobe-left-x, 38vw) var(--portal-strobe-roof-y, 40vh), rgba(0, 102, 255, .16), rgba(0, 83, 255, .07) 38%, transparent 74%), radial-gradient(ellipse var(--portal-strobe-grille-spill-width, 18vw) var(--portal-strobe-grille-spill-height, 20vh) at var(--portal-strobe-grille-left-x, 40vw) var(--portal-strobe-grille-y, 60vh), rgba(0, 102, 255, .12), rgba(0, 83, 255, .05) 38%, transparent 74%); }
.portal-strobe-spill-right { background: radial-gradient(ellipse var(--portal-strobe-roof-spill-width, 24vw) var(--portal-strobe-roof-spill-height, 29vh) at var(--portal-strobe-right-x, 43vw) var(--portal-strobe-roof-y, 40vh), rgba(0, 135, 255, .16), rgba(0, 83, 255, .07) 38%, transparent 74%), radial-gradient(ellipse var(--portal-strobe-grille-spill-width, 18vw) var(--portal-strobe-grille-spill-height, 20vh) at var(--portal-strobe-grille-right-x, 55vw) var(--portal-strobe-grille-y, 60vh), rgba(0, 135, 255, .12), rgba(0, 83, 255, .05) 38%, transparent 74%); }
body.portal-login-engine-starting .portal-global-illumination,
body.portal-login-engine-running .portal-global-illumination { opacity: 1 !important; }
body.portal-login-engine-starting .portal-headlight-spill,
body.portal-login-engine-running .portal-headlight-spill { opacity: 0 !important; }
body.portal-login-strobing .portal-strobe-spill-left { animation: portal-projector-strobe .72s steps(1, end) infinite; }
body.portal-login-strobing .portal-strobe-spill-right { animation: portal-projector-strobe .72s steps(1, end) .18s infinite; }
.portal-shell.portal-login-stage > #portal-login, .portal-shell.portal-login-stage > #temporary-password-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid rgba(122, 159, 185, .18);
  border-top: 2px solid rgba(102, 139, 165, .2);
  border-radius: 8px;
  background: rgba(3, 8, 14, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .025);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.portal-login-stage.is-strobing > #portal-login { animation: portal-panel-strobe .72s steps(1, end) infinite; }
.portal-login-stage .portal-login-heading { margin-bottom: 20px; }
.portal-login-stage .portal-login-heading .brand-mark { width: 46px; height: 46px; border-color: rgba(132, 167, 190, .35); filter: brightness(.72); }
.portal-login-stage .portal-login-heading h1 { color: #edf5fb; font-size: 30px; }
.portal-login-stage .portal-login-heading p { color: #8d9ba8; }
.portal-login-stage .portal-notice { width: auto; padding: 10px 12px; margin: 0 0 18px; border: 1px solid rgba(116, 155, 181, .13); border-left: 2px solid rgba(93, 137, 166, .38); border-radius: 4px; background: rgba(15, 25, 35, .55); color: #9cabb8; font-size: 10px; }
.portal-login-stage .portal-login .field label { color: #aebbc6; }
.portal-login-stage .portal-login .field input { min-height: 46px; border-color: rgba(135, 165, 186, .2); background: rgba(9, 16, 23, .92); color: #f2f6fa; }
.portal-login-stage .portal-login .field input:focus { border-color: rgba(66, 155, 238, .7); outline: 2px solid rgba(55, 131, 212, .14); }
.portal-login-stage .portal-login .field input::placeholder { color: #62717e; }
.portal-login-stage .portal-login .button-primary { border: 1px solid rgba(72, 152, 229, .46); border-radius: 4px; background: linear-gradient(110deg, #163c62, #1c5b8c); color: #eaf5ff; }
.portal-login-stage .portal-help { margin-top: 14px; color: #788895; }
.portal-login-stage .portal-message { color: #e9bb75; }
.portal-login-audio { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.portal-login-audio button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(109, 144, 167, .24); border-radius: 4px; background: rgba(15, 29, 42, .78); color: #aab9c5; font-size: 10px; cursor: pointer; }
.portal-login-audio button:hover, .portal-login-audio button:focus-visible { border-color: rgba(87, 160, 223, .65); color: #e7f3fc; outline: 0; }
.portal-login-audio button[aria-pressed="true"] { border-color: rgba(73, 156, 225, .48); color: #b9dcf8; }
.portal-login-audio span { color: #657481; font-size: 9px; line-height: 1.4; }
@keyframes portal-headlights-start { 0%, 12%, 25%, 39%, 52%, 66% { opacity: .08; filter: drop-shadow(0 0 1px rgba(154, 220, 255, .08)); } 18%, 32%, 46%, 60%, 74%, 100% { opacity: .95; filter: drop-shadow(0 0 8px rgba(220, 241, 255, .8)); } }
@keyframes portal-projector-strobe { 0%, 15%, 35%, 50% { opacity: 1; } 16%, 34%, 51%, 100% { opacity: 0; } }
@keyframes portal-panel-strobe { 0%, 15%, 35%, 50% { box-shadow: 0 24px 80px rgba(0, 0, 0, .72), 0 0 46px rgba(35, 125, 255, .28), inset 0 0 22px rgba(66, 144, 255, .1); border-color: rgba(82, 150, 232, .48); } 16%, 34%, 51%, 100% { box-shadow: 0 24px 80px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .025); border-color: rgba(122, 159, 185, .18); } }
@media (max-width: 760px) {
  .portal-shell.portal-login-stage { min-height: 760px; padding: 32px 18px; grid-template-columns: minmax(0, 1fr); align-content: center; }
  .portal-login-scene { position: absolute; top: 8px; left: 50%; width: min(calc(100% + 36px), 680px); transform: translateX(-50%); opacity: .86; }
  .portal-shell.portal-login-stage > #portal-login, .portal-shell.portal-login-stage > #temporary-password-panel { z-index: 2; width: min(100%, 460px); grid-column: 1; grid-row: 1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-global-illumination,
  .portal-global-illumination .portal-light-spill,
  .portal-login-scene,
  .portal-login-stage .portal-headlight { transition: none !important; }
  .portal-login-stage.is-engine-starting .portal-headlight { animation-duration: .65s !important; animation-iteration-count: 1 !important; }
  .portal-login-stage.is-strobing .portal-strobe,
  body.portal-login-strobing .portal-strobe-spill-left,
  body.portal-login-strobing .portal-strobe-spill-right { animation-duration: .72s !important; animation-iteration-count: infinite !important; animation-timing-function: steps(1, end) !important; }
  .portal-login-stage.is-strobing > #portal-login { animation-duration: .72s !important; animation-iteration-count: infinite !important; }
}

body.portal-desktop-active { position: fixed; inset: 0; width: 100%; overflow: hidden; }
body.portal-desktop-active { background: #090c12; }
body.portal-login-page.portal-desktop-active {
  background: #090c12 url("../images/cad/arka.webp") center / cover no-repeat fixed;
}
body.portal-login-page.portal-desktop-active > .topline,
body.portal-login-page.portal-desktop-active > .site-header,
body.portal-login-page.portal-desktop-active > .site-footer { display: none; }
body.portal-login-page.portal-desktop-active > .portal-global-illumination { display: none; }
body.portal-login-page.portal-desktop-active > .portal-shell {
  position: fixed;
  z-index: 20000;
  inset: 0;
  width: auto;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: visible;
  background: transparent;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}
body.portal-desktop-active .portal-relaxation-button { display: none; }
.portal-device { display: none; }
body.portal-desktop-active .portal-device {
  position: fixed;
  z-index: 20000;
  inset: 0;
  width: auto;
  height: auto;
  display: block;
  overflow: hidden;
  pointer-events: none;
  transform: none;
}
.portal-device-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, 177.7778dvh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}
.portal-device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
}
.portal-device-power {
  position: absolute;
  z-index: 2;
  top: 89.25%;
  left: 39.75%;
  width: 5%;
  height: 6%;
  border-radius: 50%;
  pointer-events: auto;
}
.portal-device-power:focus-visible {
  outline: 2px solid #9bdcff;
  outline-offset: 2px;
}
.portal-radio {
  position: absolute;
  z-index: 20002;
  right: clamp(-32px, -2vw, -12px);
  bottom: 0;
  width: clamp(260px, 38vw, 440px);
  aspect-ratio: 1;
  pointer-events: none;
}
.portal-radio > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}
.portal-radio-toggle {
  position: absolute;
  top: 6%;
  right: 17%;
  width: 16%;
  height: 16%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.portal-radio-toggle:focus-visible {
  outline: 2px solid #bceaff;
  outline-offset: 2px;
}
.portal-dashboard:not([hidden]) {
  position: absolute;
  pointer-events: auto;
  z-index: 1;
  inset: 13.9% 15.4% 16.3%;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  animation: none !important;
  transform: none !important;
  background: #071a3b url("../images/cad/wall.png") 0 0 / 100% 100% no-repeat;
  box-shadow: 0 2px 0 #111720, 0 0 0 1px #090c12, 0 12px 35px rgba(0, 0, 0, .55);
}
.portal-dashboard:not([hidden])::before,
.portal-dashboard:not([hidden])::after {
  position: absolute;
  z-index: 0;
  inset: 10% -20% 17% 36%;
  border: 1px solid rgba(139, 221, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(63, 177, 255, .12), inset 0 0 90px rgba(42, 161, 255, .1);
  content: "";
  pointer-events: none;
  transform: rotate(-24deg) scaleY(.44);
}
.portal-dashboard:not([hidden])::after { inset: 18% -15% 9% 28%; opacity: .55; transform: rotate(-24deg) scaleY(.58); }
.portal-dashboard-head {
  position: absolute;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 54px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: rgba(15, 25, 42, .78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.portal-start-button {
  width: 44px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d9f4ff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.portal-start-button:hover,
.portal-start-button:focus-visible,
.portal-start-button[aria-expanded="true"] { border-color: rgba(142, 218, 255, .28); background: rgba(131, 208, 255, .16); outline: 0; }
.portal-taskbar-apps { display: flex; align-items: center; gap: 4px; }
.portal-taskbar-apps button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.portal-taskbar-apps button > img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }
.portal-taskbar-apps button:hover,
.portal-taskbar-apps button:focus-visible,
.portal-taskbar-apps button[aria-current="page"] { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .14); outline: 0; }
.portal-taskbar-apps button[aria-current="page"]::after { position: absolute; right: 13px; bottom: 2px; left: 13px; height: 3px; border-radius: 4px; background: #78cfff; content: ""; }
.portal-dashboard-head > div:first-of-type {
  width: auto;
  max-width: min(34vw, 340px);
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  text-align: right;
}
.portal-dashboard-head > div:first-of-type p { margin: 0; color: #b8d9ec; font-size: 9px; letter-spacing: .4px; }
.portal-dashboard-head h1 { overflow: hidden; color: #fff; font: 600 13px/1.2 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.portal-dashboard-head .portal-user-badge { display: block; margin-top: 2px; color: #c3d8e6; font-size: 10px; }
.portal-dashboard-head .portal-user { gap: 8px; padding: 0; border: 0; background: transparent; }
.portal-dashboard-head .portal-user > img { width: 38px; height: 38px; border-radius: 50%; }
.portal-dashboard-head .portal-logout { min-height: 36px; padding: 0 12px; border-color: rgba(255, 255, 255, .23); border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 11px; }
.portal-start-menu[hidden] { display: none; }
.portal-start-menu {
  position: absolute;
  z-index: 11000;
  bottom: 62px;
  left: 10px;
  width: min(340px, calc(100vw - 20px));
  padding: 18px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(216, 237, 255, .2);
  border-radius: 10px;
  background: rgba(24, 37, 58, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.portal-start-menu > p { margin: 0 0 10px; padding: 0 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #d9e9f5; font-size: 12px; font-weight: 700; }
.portal-start-menu > button { min-height: 42px; padding: 0 10px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 5px; background: transparent; color: #f1f6fb; text-align: left; cursor: pointer; }
.portal-start-menu > button:hover,
.portal-start-menu > button:focus-visible { background: rgba(255, 255, 255, .13); outline: 0; }
.portal-start-menu > button > span { width: 26px; font-size: 19px; text-align: center; }
.portal-start-menu > button > span > img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.portal-home {
  position: absolute;
  z-index: 1;
  inset: 12px auto 66px 12px;
  width: max-content;
  max-width: 220px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: 94px;
  grid-template-columns: 94px 94px;
  align-content: start;
  gap: 7px;
}
.portal-home-card {
  width: 94px;
  min-height: 88px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-align: center;
}
.portal-home-card::before,
.portal-home-card::after { display: none; }
.portal-home-card:hover,
.portal-home-card:focus-visible,
.portal-home-card[aria-current="page"] { border-color: rgba(220, 241, 255, .28); background: rgba(224, 243, 255, .15); box-shadow: 0 3px 12px rgba(0, 0, 0, .15); transform: none; }
.portal-home-card-index { width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #fff; font: 30px/1 var(--body); letter-spacing: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .38)); }
.portal-home-card-index > img { width: 100%; height: 100%; object-fit: contain; }
.portal-home-card-copy { display: block; }
.portal-home-card-copy strong { display: block; color: #fff; font: 500 11px/1.25 var(--body); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.portal-home-card-copy small,
.portal-home-card-arrow { display: none; }
.portal-home-card:nth-child(5):last-child { grid-column: auto; width: 94px; justify-self: auto; }
.portal-dashboard .portal-panel.portal-app-window {
  position: absolute;
  z-index: 20;
  top: clamp(24px, 7vh, 70px);
  left: clamp(150px, 22vw, 350px);
  width: min(920px, calc(100% - clamp(150px, 22vw, 350px) - 80px));
  height: min(760px, calc(100% - 76px));
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(222, 238, 250, .62);
  border-radius: 8px;
  background: rgba(23, 37, 54, .97);
  box-shadow: 0 22px 72px rgba(0, 0, 0, .48), 0 0 0 1px rgba(13, 24, 38, .2);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  min-width: min(340px, calc(100vw - 50px));
  min-height: 230px;
  max-width: calc(100% - clamp(150px, 22vw, 350px) - 20px);
  max-height: calc(100dvh - 110px);
  resize: both;
}
.portal-dashboard .portal-panel.portal-app-window[hidden] { display: none; }
.portal-dashboard .portal-panel.portal-app-window[data-maximized] { inset: 0 0 54px; top: 0; left: 0; width: auto; height: auto; max-width: none; max-height: none; resize: none; border-radius: 0; }
.portal-window-titlebar {
  position: relative;
  z-index: 2;
  min-height: 42px;
  padding: 0 0 0 15px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 236, 250, .17);
  background: rgba(54, 70, 89, .8);
  color: #f1f6fa;
  cursor: move;
  touch-action: none;
  user-select: none;
}
.portal-window-title { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.portal-window-controls { height: 100%; display: flex; align-items: stretch; }
.portal-window-controls button { width: 44px; border: 0; background: transparent; color: #e7eff6; font-size: 18px; cursor: pointer; }
.portal-window-controls button:hover,
.portal-window-controls button:focus-visible { background: rgba(255, 255, 255, .15); outline: 0; }
.portal-window-controls button:last-child:hover,
.portal-window-controls button:last-child:focus-visible { background: #c42b1c; color: #fff; }
.portal-window-content { min-height: 0; padding: clamp(16px, 2.5vw, 28px); flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.portal-dashboard [data-portal-panel="call"] > .portal-window-content { padding: 0; background: #101010; }
.portal-call-image { width: 100%; height: 100%; display: block; flex: 1 1 auto; object-fit: contain; }
.portal-window-content > .portal-panel-heading { margin-top: 0; }
.portal-dashboard .portal-window-content .portal-home-back { margin-top: 0; }
.portal-dashboard .portal-window-content .portal-panel-heading { margin-bottom: 20px; }
@media (max-width: 760px) {
  body.portal-desktop-active .portal-device { overflow: visible; }
  .portal-device-canvas { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .portal-device-frame,
  .portal-device-power { display: none; }
  .portal-radio {
    right: -12px;
    bottom: 0;
    width: min(96vw, 400px);
  }
  .portal-device .portal-dashboard:not([hidden]) { inset: 0; border: 0; border-radius: 0; }
  .portal-dashboard-head { gap: 5px; padding: 5px 7px; }
  .portal-dashboard-head > div:first-of-type { display: none; }
  .portal-taskbar-apps { gap: 1px; }
  .portal-taskbar-apps button { width: 36px; height: 40px; font-size: 18px; }
  .portal-dashboard:not([hidden]) { inset: 12px 10px 50px; border-width: 2px; border-radius: 8px; }
  .portal-dashboard .portal-panel.portal-app-window { top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 62px); min-width: min(300px, calc(100vw - 32px)); min-height: 210px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 90px); }
  .portal-dashboard .portal-panel.portal-app-window[data-maximized] { inset: 0 0 54px; max-width: none; max-height: none; }
  .portal-window-content { padding: 17px 14px; }
  .portal-home { grid-template-columns: 94px 94px; }
}
@media (max-width: 440px) {
  .portal-start-button { width: 38px; }
  .portal-taskbar-apps button { width: 32px; }
  .portal-dashboard-head .portal-user { gap: 5px; }
  .portal-dashboard-head .portal-user > img { display: none; }
  .portal-dashboard-head .portal-logout { padding: 0 7px; font-size: 9px; }
  .portal-dashboard:not([hidden]) { inset: 12px 6px 50px; }
  .portal-home { grid-template-columns: 88px 88px; grid-auto-rows: 88px; }
  .portal-home-card,
  .portal-home-card:nth-child(5):last-child { width: 88px; min-height: 82px; }
}
.portal-startup[hidden] { display: none; }
.portal-startup {
  position: absolute;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(32, 88, 148, .44), transparent 54%),
    rgba(5, 13, 26, .96);
  color: #f4f8ff;
}
.portal-startup-card { width: min(350px, calc(100% - 40px)); display: grid; justify-items: center; gap: 15px; text-align: center; }
.portal-startup-logo { color: #eef8ff; font: 700 50px/1 var(--display); letter-spacing: 9px; text-shadow: 0 0 32px rgba(97, 185, 255, .76); animation: portal-startup-logo-pulse 1.8s ease-in-out infinite; }
.portal-startup-spinner { width: 44px; height: 44px; border: 3px solid rgba(172, 219, 255, .2); border-top-color: #8cceff; border-radius: 50%; animation: portal-startup-spin .8s linear infinite; }
.portal-startup-card > strong { font-size: 14px; font-weight: 600; animation: portal-startup-text-pulse 1.5s ease-in-out infinite; }
.portal-startup-status { min-height: 16px; color: #adc7df; font-size: 11px; animation: portal-startup-text-pulse 1.5s ease-in-out infinite; }
.portal-startup-progress { width: 100%; height: 3px; overflow: hidden; border-radius: 4px; background: rgba(186, 220, 255, .17); }
.portal-startup-progress > span { width: 34%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #6ebfff, #e3f7ff, #69b9ff); box-shadow: 0 0 14px #67b8ff; animation: portal-startup-progress 1.45s ease-in-out infinite; }
@keyframes portal-startup-spin { to { transform: rotate(360deg); } }
@keyframes portal-startup-progress { 0% { opacity: .75; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: .75; transform: translateX(195%); } }
@keyframes portal-startup-logo-pulse { 0%, 100% { opacity: .72; transform: scale(.96); text-shadow: 0 0 16px rgba(97, 185, 255, .38); } 50% { opacity: 1; transform: scale(1.04); text-shadow: 0 0 38px rgba(97, 185, 255, .9); } }
@keyframes portal-startup-text-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .portal-startup-spinner { animation-duration: .8s !important; animation-iteration-count: infinite !important; }
  .portal-startup-progress > span { animation-duration: 1.45s !important; animation-iteration-count: infinite !important; }
  .portal-startup-logo { animation-duration: 1.8s !important; animation-iteration-count: infinite !important; }
  .portal-startup-card > strong,
  .portal-startup-status { animation-duration: 1.5s !important; animation-iteration-count: infinite !important; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-dashboard:not([hidden]) *,
  .portal-dashboard:not([hidden]) *::before,
  .portal-dashboard:not([hidden]) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
