:root {
  font-family: "DM Sans", sans-serif;
  color: #17202f;
  background: #f6f8fb;
  font-synthesis: none;
  --blue: #2867e8;
  --blue-dark: #0c3c91;
  --blue-soft: #edf4ff;
  --red: #dc3f3f;
  --red-soft: #fff1f1;
  --ink: #17202f;
  --muted: #697488;
  --line: #e5e9f0;
  --shadow: 0 18px 55px rgba(24, 45, 82, 0.09);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7f9fc; }
.app-shell { min-height: 100vh; }
.app-shell.seeker-theme { background: #f7f9fc; }
.explorer-theme, .login-page.explorer {
  --blue: #dc3f3f;
  --blue-dark: #8f272d;
  --blue-soft: #fff0f0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .logo { font-family: "Manrope", sans-serif; }
.text-ink { color: var(--ink); }
.muted { color: var(--muted); }
.page { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 46px 0 72px; }
.narrow-page { width: min(1120px, calc(100% - 64px)); }
.eyebrow { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.eyebrow.light { color: #a9c6ff; }
.primary-btn, .red-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; border: 0; padding: 14px 20px; font-weight: 700; transition: .2s ease; }
.primary-btn { color: white; background: var(--blue); box-shadow: 0 8px 22px rgba(40, 103, 232, .22); }
.primary-btn:hover { background: #1d57cf; transform: translateY(-1px); }
.explorer-theme .primary-btn { box-shadow: 0 8px 22px rgba(220, 63, 63, .22); }
.explorer-theme .primary-btn:hover { background: #bd3339; }
.red-btn { color: white; background: var(--red); box-shadow: 0 8px 22px rgba(220, 63, 63, .2); }
.secondary-btn { color: #384356; background: white; border: 1px solid #dfe4ec; }
.secondary-btn:hover { border-color: #bcc5d2; background: #fafbfc; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(30, 49, 82, .04); }

/* Logo and header */
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.logo > span:last-child span { color: var(--blue); }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--blue); transform: rotate(-3deg); }
.logo-mark-light { color: #11356f; background: white; }
.app-header { height: 76px; padding: 0 max(32px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.app-header nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.app-header nav a,
.app-header nav button { color: #687388; background: transparent; border: 0; padding: 0 20px; font-weight: 600; position: relative; text-decoration: none; display: flex; align-items: center; height: 100%; font-size: inherit; }
.app-header nav a.active,
.app-header nav a:hover,
.app-header nav button.active,
.app-header nav button:hover { color: var(--ink); }
.app-header nav a.active::after,
.app-header nav button.active::after { content: ""; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; position: absolute; left: 18px; right: 18px; bottom: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; position: relative; flex-shrink: 0; }
.header-actions form { margin: 0; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: #667187; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; }
.nav-mobile-logout { display: none; margin: 0; }
.notification { position: relative; }
.notification.active { color: var(--blue); background: var(--blue-soft); border-color: #b9d0fa; }
.notification > span { width: 7px; height: 7px; background: #ed4b4b; border: 2px solid white; border-radius: 50%; position: absolute; right: 7px; top: 7px; }
.notification-panel { width: 370px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 55px rgba(24,45,82,.18); overflow: hidden; position: absolute; right: 0; top: 49px; z-index: 50; }
.notification-panel-head { padding: 16px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.notification-panel-head > div { display: flex; flex-direction: column; }
.notification-panel-head strong { font: 800 14px "Manrope"; }
.notification-panel-head span { margin-top: 2px; color: #8a94a4; font-size: 9px; }
.notification-panel-head button { padding: 0; color: var(--blue); background: transparent; border: 0; font-size: 8px; font-weight: 700; }
.notification-list { max-height: 330px; overflow-y: auto; }
.notification-item { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: 38px 1fr 7px; align-items: start; gap: 10px; color: inherit; text-align: left; background: white; border: 0; border-bottom: 1px solid #edf0f4; }
.notification-item:hover { background: #f8faff; }
.notification-item-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #647287; background: #f0f3f7; border-radius: 10px; }
.notification-item-icon.new { color: var(--blue); background: #e8f1ff; }
.notification-item-copy { display: flex; flex-direction: column; }
.notification-item-copy strong { font-size: 10px; }
.notification-item-copy > span { margin: 3px 0 5px; color: #768194; font-size: 9px; line-height: 1.45; }
.notification-item-copy small { color: #a0a8b5; font-size: 8px; }
.notification-item > i { width: 6px; height: 6px; margin-top: 5px; background: var(--blue); border-radius: 50%; }
.notification-panel-footer { width: 100%; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--blue); background: #f8faff; border: 0; font-size: 9px; font-weight: 700; }
.notifications-overlay { display: flex; align-items: stretch; justify-content: flex-end; background: transparent; position: fixed; inset: 0; z-index: 100; }
.notifications-screen { width: 20vw; min-width: 300px; height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: white; border-left: 1px solid rgba(255,255,255,.6); border-radius: 18px 0 0 18px; box-shadow: -20px 0 65px rgba(5,18,39,.25); overflow: hidden; animation: notification-drawer-in .24s ease-out; }
@keyframes notification-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.notifications-screen-head { padding: 22px 20px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.notifications-screen-head h2 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.035em; }
.notifications-screen-head p { margin: 0; color: #7d8797; font-size: 10px; }
.notification-close { width: 37px; height: 37px; display: grid; place-items: center; color: #677286; background: #f3f5f8; border: 1px solid var(--line); border-radius: 10px; }
.notifications-toolbar { padding: 11px 20px; display: flex; align-items: flex-start; flex-direction: column; gap: 5px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.notifications-toolbar > div { display: flex; gap: 5px; }
.notifications-toolbar button { padding: 7px 10px; color: #778294; background: transparent; border: 0; border-radius: 7px; font-size: 9px; font-weight: 700; }
.notifications-toolbar > div button.active { color: var(--blue); background: #eaf2ff; }
.notifications-toolbar > button { color: var(--blue); }
.notifications-screen-list { overflow-y: auto; }
.notifications-empty { min-height: 260px; padding: 35px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.notifications-empty > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; }
.notifications-empty strong { margin-top: 14px; font-size: 11px; }
.notifications-empty p { margin: 5px 0 0; color: #8c96a5; font-size: 9px; }
.screen-notification { min-height: 92px; padding: 15px 20px; display: grid; grid-template-columns: 38px 1fr 7px; align-items: start; gap: 10px; border-bottom: 1px solid #edf0f4; }
.screen-notification.unread { background: #f8faff; }
.screen-notification-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--blue); background: #e8f1ff; border-radius: 10px; }
.screen-notification > div { display: flex; flex-direction: column; }
.screen-notification strong { font-size: 11px; }
.screen-notification p { margin: 4px 0 6px; color: #6f7b8e; font-size: 10px; line-height: 1.5; }
.screen-notification small { color: #9aa3b1; font-size: 8px; }
.screen-notification > i { width: 7px; height: 7px; margin-top: 5px; background: var(--blue); border-radius: 50%; }
.notifications-screen-foot { margin-top: auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; background: #fafbfc; border-top: 1px solid var(--line); }
.notifications-screen-foot span { color: #939cab; font-size: 8px; }
.notifications-screen-foot button { padding: 8px 13px; color: white; background: var(--blue); border: 0; border-radius: 8px; font-size: 9px; font-weight: 700; }
.profile-chip { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px; text-align: left; }
.profile-chip.active { background: var(--blue-soft); border-radius: 10px; }
.profile-chip > span:nth-child(2) { display: flex; flex-direction: column; min-width: 110px; }
.profile-chip strong { font-size: 13px; }
.profile-chip small { color: #8790a0; font-size: 10px; }
.avatar { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #225bbd; background: #dfeaff; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 800; }
.avatar.red { color: #a82929; background: #ffe2e2; }
.avatar.violet { color: #6d42aa; background: #eee4ff; }
.avatar.amber { color: #8e5a13; background: #ffebc7; }
.avatar.large { width: 48px; height: 48px; font-size: 13px; }
.avatar.xlarge { width: 82px; height: 82px; font-size: 22px; border: 5px solid white; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.avatar.small { width: 31px; height: 31px; }
.mobile-menu { display: none; color: var(--ink); background: transparent; border: 0; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(540px, .95fr); background: white; }
.login-story { width: 100%; min-height: 100vh; padding: 32px 40px 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; color: white; background: radial-gradient(circle at 85% 15%, #3168c3 0, transparent 29%), linear-gradient(145deg, #0d438f, #0a2e68 65%, #071e47); position: relative; overflow: hidden; }
.explorer .login-story { background: radial-gradient(circle at 85% 15%, #b63e44 0, transparent 29%), linear-gradient(145deg, #7e2329, #4e171c 65%, #290e12); }
.explorer .eyebrow.light { color: #ffc4c4; }
.story-shape { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.story-shape-one { width: 470px; height: 470px; right: -190px; top: 20%; }
.story-shape-two { width: 290px; height: 290px; right: -30px; top: 32%; }
.story-content { max-width: 630px; margin: 0; position: static; z-index: 2; }
.story-content h1 { margin: 19px 0 24px; font-size: clamp(38px, 4.2vw, 65px); line-height: 1.08; letter-spacing: -.055em; }
.story-content h1 em { color: #7daaff; font-style: normal; }
.explorer .story-content h1 em { color: #ff9999; }
.story-content > p { max-width: 520px; color: #cfddf4; font-size: 16px; line-height: 1.65; }
.story-role-badge { display: inline-block; margin-bottom: 14px; padding: 6px 12px; color: white; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.story-steps-title { margin: 26px 0 0; color: #e8f0ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.explorer .story-steps-title { color: #ffd8d8; }
.story-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.story-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 12px; }
.story-step-num { width: 28px; height: 28px; display: grid; place-items: center; color: white; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.14); border-radius: 8px; }
.story-step strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 1.35; }
.story-step span { color: #c5d6f0; font-size: 12px; line-height: 1.45; }
.explorer .story-step span { color: #f0d0d0; }
.story-trust { display: flex; align-items: flex-start; gap: 9px; color: #bfd0e9; font-size: 11px; line-height: 1.45; position: relative; z-index: 2; max-width: 520px; }
.explorer .story-trust { color: #e8caca; }
.trust-icon { width: 25px; height: 25px; display: grid; place-items: center; color: #8fb5ff; background: rgba(255,255,255,.1); border-radius: 50%; }
.login-panel { width: 100%; min-height: 100vh; padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.login-box { width: min(100%, 490px); }
.login-box h2 { margin: 10px 0 8px; color: #192233; font-size: 28px; letter-spacing: -.035em; }
.login-box > h2, .login-box > .muted { width: 100%; }
.login-box > p { font-size: 14px; }
.role-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.role-tabs button,
.role-tabs a { min-height: 90px; display: grid; grid-template-columns: 39px 1fr 18px; align-items: center; gap: 10px; padding: 14px; color: #677184; text-align: left; background: white; border: 1px solid #dfe4ec; border-radius: 12px; }
.role-tabs a { text-decoration: none; cursor: pointer; }
.role-tabs button > span,
.role-tabs a > span { width: 38px; height: 38px; display: grid; place-items: center; color: #647086; background: #f2f4f7; border-radius: 10px; }
.role-tabs button div,
.role-tabs a div { display: flex; flex-direction: column; gap: 3px; }
.role-tabs button strong,
.role-tabs a strong { color: #293346; font-size: 13px; }
.role-tabs button small,
.role-tabs a small { color: #8992a2; font-size: 10px; line-height: 1.35; }
.role-tabs button i,
.role-tabs a i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #d8dee8; border-radius: 50%; font-style: normal; }
.role-tabs button.active,
.role-tabs a.active { background: var(--blue-soft); border-color: #74a2f9; box-shadow: 0 0 0 2px rgba(40,103,232,.08); }
.role-tabs button.active > span,
.role-tabs a.active > span { color: white; background: var(--blue); }
.role-tabs button.active i,
.role-tabs a.active i { color: white; background: var(--blue); border-color: var(--blue); }
.explorer .role-tabs button.active,
.explorer .role-tabs a.active { background: var(--red-soft); border-color: #ed8b8b; box-shadow: 0 0 0 2px rgba(220,63,63,.08); }
.explorer .role-tabs button.active > span,
.explorer .role-tabs a.active > span,
.explorer .role-tabs button.active i,
.explorer .role-tabs a.active i { background: var(--red); border-color: var(--red); }
.divider { height: 1px; margin: 26px 0; background: var(--line); position: relative; text-align: center; }
.divider span { color: #a3aab6; background: white; padding: 0 12px; font-size: 9px; font-weight: 700; letter-spacing: .13em; position: relative; top: 0; }
.login-box form { display: flex; flex-direction: column; gap: 16px; }
.login-box label, .extra-fields label { display: flex; flex-direction: column; gap: 7px; color: #3c4657; font-size: 12px; font-weight: 700; }
.login-box input, .extra-fields input, .extra-fields textarea { width: 100%; color: #283346; background: white; border: 1px solid #dfe4ec; border-radius: 9px; outline: 0; padding: 13px 14px; font-size: 13px; font-weight: 500; }
.login-box input:focus, .extra-fields input:focus, .extra-fields textarea:focus { border-color: #7ca6f5; box-shadow: 0 0 0 3px rgba(40,103,232,.08); }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row button,
.label-row a { color: var(--blue); background: transparent; border: 0; font-size: 11px; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-fields .split-field { min-width: 0; }
.login-btn { width: 100%; margin-top: 4px; padding: 15px; }
.explorer .login-btn { background: var(--red); box-shadow: 0 8px 22px rgba(220,63,63,.2); }
.consent-group { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.consent { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400 !important; font-size: 12px; line-height: 1.5; color: #4e5a6c; }
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--blue); cursor: pointer; }
.consent-text { min-width: 0; }
.consent a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: #1d57cf; }
.consent strong { color: var(--blue); }
.consent-group .field-validation-error { display: block; margin: -4px 0 0 26px; font-size: 11px; }
.legal-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.legal-inline-link:hover { color: #1d57cf; }
.switch-auth { margin-top: 22px; color: #7d8797; text-align: center; font-size: 12px !important; }
.switch-auth button,
.switch-auth a { margin-left: 4px; color: var(--blue); background: transparent; border: 0; font-weight: 700; text-decoration: none; }
.admin-access { margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.admin-access-trigger { margin: 0 auto; padding: 5px; display: flex; align-items: center; gap: 5px; color: #8b94a3; background: transparent; border: 0; font-size: 8px; font-weight: 700; }
.admin-login-inline { margin-top: 10px; padding: 13px; background: #f7f9fb; border: 1px solid #e4e8ee; border-radius: 9px; }
.admin-login-inline > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.admin-login-inline label { gap: 5px; font-size: 8px; }
.admin-login-inline input { padding: 9px; font-size: 9px; }
.admin-login-inline > button { width: 100%; margin-top: 9px; padding: 9px; display: flex; align-items: center; justify-content: center; gap: 5px; color: white; background: #263449; border: 0; border-radius: 7px; font-size: 8px; font-weight: 700; }
.legal { color: #a3aab6; font-size: 10px; position: absolute; bottom: 22px; }
.mobile-logo { display: none; }


.text-white { color: #fff; }
.admin-portal-only.login-page { display: block; background: #f7f9fc; }
.admin-portal-only .login-panel { min-height: 100vh; }
.field-validation-error, .auth-error-summary { color: #dc3f3f; font-size: 12px; margin: 0 0 8px; }
.field-hint { color: #8892a2; font-size: 11px; margin: -4px 0 10px; line-height: 1.4; }
.auth-success-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #1f5c40;
  font-size: 12px;
  line-height: 1.45;
  background: #e7f7ef;
  border: 1px solid #b8e6cf;
  border-radius: 9px;
}
.auth-error-summary ul { margin: 0; padding-left: 1.1rem; }
.role-tabs a { text-decoration: none; }

/* Figma filters — section cards (fallback if seeker.css cache stale) */
.seeker-filter-page .filter-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(30, 49, 82, 0.06);
  padding: 21px;
  min-height: 160px;
}
.seeker-filter-page .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.seeker-filter-page .range-fields > div {
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #fff;
  min-height: 44px;
}

@media (max-width: 960px) {
  .login-page { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 35px 20px 65px; justify-content: flex-start; }
  .mobile-logo { width: 100%; margin-bottom: 48px; display: block; }
  .login-box h2 { font-size: 25px; }
  .role-tabs { grid-template-columns: 1fr; }
  .admin-login-inline > div { grid-template-columns: 1fr; }
  .legal { position: static; margin-top: 35px; }
}
