:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102743;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #102743;
  --muted: #62758b;
  --line: #dfe6ef;
  --blue: #145de5;
  --green: #15724f;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
:focus-visible { outline: 3px solid #83adfb; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 12px 18px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1248px; min-height: 94px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy); text-decoration: none; }
.brand-crest { display: block; width: 43px; height: 48px; object-fit: contain; }
.brand-text { display: grid; gap: 4px; }
.brand-text strong { font-size: 15px; letter-spacing: 0.025em; font-weight: 850; }
.brand-text strong span { font-weight: 650; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-account { font-size: 13px; font-weight: 650; color: var(--navy); text-decoration: none; }
.main-shell { flex: 1; width: 100%; max-width: 1248px; margin: 0 auto; padding: 68px 40px 78px; }
.main-shell:focus { outline: none; }
.button { min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 14px; line-height: 1.5; font-weight: 650; text-decoration: none; transition: background-color 150ms, border-color 150ms, box-shadow 150ms; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-primary:hover:not(:disabled) { background: #0d4dc6; border-color: #0d4dc6; }
.button-secondary { color: var(--navy); background: #fff; border-color: #cfd9e5; }
.button-secondary:hover:not(:disabled) { background: #f1f5fb; border-color: #b7c7d9; }
.button-plain { color: var(--muted); background: transparent; }
.button-plain:hover:not(:disabled) { background: #edf1f6; }
.button-small { min-height: 42px; padding: 8px 15px; font-size: 12px; }
.button-full { width: 100%; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.14em; }
.welcome-layout { display: grid; grid-template-columns: 1.18fr 0.9fr; align-items: center; gap: 80px; min-height: 505px; }
.welcome-copy { padding: 20px 0; }
.welcome-copy .eyebrow { color: var(--blue); }
.welcome-copy h1 { margin-top: 22px; font-size: clamp(45px, 5vw, 68px); line-height: 1.1; letter-spacing: -0.055em; font-weight: 760; }
.welcome-copy h1 span { display: block; color: var(--blue); }
.welcome-description { max-width: 475px; margin-top: 26px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.welcome-actions { display: flex; gap: 14px; margin-top: 32px; }
.welcome-actions .button { min-height: 52px; padding-inline: 25px; }
.access-note { max-width: 400px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.welcome-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px #10274305; padding: 30px; }
.welcome-card-intro { padding-bottom: 27px; }
.card-mark { display: inline-grid; place-content: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -0.03em; }
.welcome-card h2 { margin-top: 7px; font-size: 24px; letter-spacing: -0.035em; }
.feature-row { display: flex; gap: 16px; padding-block: 20px; border-top: 1px solid #edf0f5; }
.feature-row:last-child { padding-bottom: 2px; }
.feature-number { flex: 0 0 26px; padding-top: 2px; color: #8c9db1; font-size: 11px; font-weight: 750; }
.feature-row h3 { font-size: 14px; font-weight: 700; }
.feature-row p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-layout { display: grid; grid-template-columns: 1fr 450px; align-items: start; gap: 90px; max-width: 1050px; margin: 0 auto; padding-top: 20px; }
.auth-intro { padding-top: 45px; }
.auth-intro h1 { max-width: 420px; margin-top: 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -0.045em; }
.auth-intro > p:not(.eyebrow) { max-width: 360px; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.text-link { display: inline-block; margin-top: 25px; font-size: 13px; font-weight: 600; }
.auth-card { min-width: 0; min-height: 360px; padding: 34px 30px 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.auth-mount { width: 100%; min-height: 245px; }
.auth-help { margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.state-panel { max-width: 540px; margin: 35px auto; padding: 43px 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.state-panel h1 { margin-top: 12px; font-size: 28px; line-height: 1.25; letter-spacing: -0.035em; }
.state-panel p:not(.eyebrow) { margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.state-panel .button { margin-top: 25px; }
.state-panel > .text-link { display: block; }
.state-panel .eyebrow { margin-top: 20px; }
.state-symbol { display: inline-grid; place-content: center; width: 48px; height: 48px; border-radius: 13px; background: #ecf2fc; color: var(--blue); font-size: 12px; font-weight: 800; }
.state-symbol-error { background: #fceef0; color: #b42332; font-size: 24px; }
.loading-ring { display: inline-block; width: 34px; height: 34px; margin-bottom: 14px; border: 3px solid #e4ebf6; border-top-color: var(--blue); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; max-width: 1060px; margin-inline: auto; }
.page-heading { grid-column: 1 / -1; margin-bottom: 9px; }
.page-heading h1 { margin-top: 8px; font-size: 36px; line-height: 1.2; letter-spacing: -0.045em; }
.page-heading > p:last-child { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.account-summary { align-self: start; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.profile-avatar { display: inline-grid; width: 58px; height: 58px; place-content: center; border-radius: 16px; background: #edf2f9; color: var(--navy); font-size: 20px; font-weight: 750; }
.identity-name { margin-top: 18px; font-size: 20px; line-height: 1.4; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.identity-role { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.status-badge { display: inline-flex; gap: 7px; align-items: center; margin-top: 18px; padding: 6px 10px; background: #edf7f1; color: var(--green); border: 1px solid #d5e9de; border-radius: 6px; font-size: 10px; font-weight: 700; }
.status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.summary-note, .portal-access { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.summary-note h3, .portal-access h3 { font-size: 12px; line-height: 1.5; }
.summary-note p, .portal-access p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.portal-access .button { margin-top: 16px; font-size: 11px; }
.profile-panel { padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.section-heading { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 21px; letter-spacing: -0.025em; }
.section-heading p { max-width: 475px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.profile-form { padding-top: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px 20px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 9px; color: var(--navy); font-size: 12px; font-weight: 650; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; min-height: 47px; padding: 11px 13px; color: var(--navy); background: #fff; border: 1px solid #ccd7e4; border-radius: 8px; font-size: 14px; line-height: 1.5; transition: border-color 150ms, box-shadow 150ms; }
.input-wrap input:hover:not(:disabled) { border-color: #a0b3ca; }
.input-wrap input:focus { border-color: var(--blue); outline: 3px solid #145de517; outline-offset: 0; }
.input-wrap input[aria-invalid="true"] { border-color: #b42332; }
.input-wrap input:disabled { background: #f4f6f9; color: var(--muted); }
.input-with-unit input { padding-right: 45px; }
.input-unit { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 11px; }
.input-with-unit input::-webkit-inner-spin-button, .input-with-unit input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-with-unit input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field-error { margin-top: 7px; color: #b42332; font-size: 11px; line-height: 1.6; }
.field-error:empty { display: none; }
.form-context { align-self: center; padding-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.form-privacy-note { margin-top: 25px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-actions .button { font-size: 12px; }
.form-feedback:empty { display: none; }
.form-feedback { margin-top: 24px; padding: 13px 15px; border: 1px solid; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.form-feedback .button { margin-top: 12px; }
.feedback-error { color: #9b2230; background: #fff5f6; border-color: #f0d2d7; }
.feedback-success { color: #156044; background: #f0f8f3; border-color: #cfe7d9; }
.notice { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.notice h1 { font-size: 22px; }
.notice p { margin-top: 12px; line-height: 1.8; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1248px; width: 100%; margin: 0 auto; padding: 23px 40px 27px; color: #7c8ba0; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; }
.site-footer span:first-child { color: var(--muted); font-weight: 650; }
@media (max-width: 1000px) {
  .welcome-layout { gap: 40px; }
  .auth-layout { grid-template-columns: 1fr 420px; gap: 45px; }
  .account-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .profile-panel { padding: 25px; }
}
@media (max-width: 780px) {
  .header-inner { min-height: 82px; padding: 15px 24px; }
  .main-shell { padding: 42px 24px 55px; }
  .welcome-layout { grid-template-columns: 1fr; gap: 36px; max-width: 590px; margin-inline: auto; }
  .welcome-copy { padding: 8px 0 0; }
  .welcome-copy h1 { font-size: 56px; }
  .welcome-description { font-size: 16px; }
  .welcome-card { padding: 27px; }
  .auth-layout { max-width: 450px; grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .auth-intro { padding-top: 0; }
  .auth-intro h1 { max-width: none; font-size: 34px; }
  .auth-intro > p:not(.eyebrow) { max-width: none; margin-top: 14px; font-size: 13px; }
  .auth-intro .text-link { margin-top: 16px; }
  .account-layout { grid-template-columns: 1fr; gap: 23px; }
  .page-heading { margin-bottom: 0; }
  .account-summary { display: grid; grid-template-columns: 58px 1fr; column-gap: 17px; padding: 23px; }
  .profile-avatar { grid-column: 1; grid-row: 1 / 4; }
  .identity-name { grid-column: 2; margin-top: 0; }
  .identity-role { grid-column: 2; }
  .status-badge { grid-column: 2; justify-self: start; margin-top: 10px; }
  .summary-note, .portal-access { grid-column: 1 / -1; margin-top: 22px; padding-top: 18px; }
  .portal-access .button { width: auto; }
  .site-footer { padding-inline: 24px; }
}
@media (max-width: 480px) {
  .header-inner { padding-inline: 20px; gap: 14px; }
  .brand { gap: 9px; }
  .brand-crest { width: 33px; height: 40px; }
  .brand-text strong { font-size: 11px; }
  .brand-text small { font-size: 9px; }
  .header-nav { gap: 9px; }
  .header-account { display: none; }
  .header-nav .button { padding-inline: 11px; font-size: 11px; }
  .main-shell { padding: 32px 20px 42px; }
  .welcome-copy h1 { margin-top: 17px; font-size: 47px; }
  .welcome-description { margin-top: 21px; font-size: 15px; }
  .welcome-actions { margin-top: 26px; }
  .welcome-card { padding: 23px; border-radius: 14px; }
  .welcome-card h2 { font-size: 22px; }
  .auth-intro h1 { font-size: 31px; }
  .auth-card { padding: 26px 19px 20px; border-radius: 12px; }
  .state-panel { padding: 32px 22px; margin-top: 15px; }
  .state-panel h1 { font-size: 25px; }
  .state-panel p:not(.eyebrow) { font-size: 13px; }
  .page-heading h1 { font-size: 31px; }
  .profile-panel { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-context { margin-top: -10px; padding-top: 0; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .form-actions .button { width: 100%; }
  .site-footer { padding: 19px 20px 23px; align-items: start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
  .loading-ring { border-color: #cdd9ec; border-top-color: var(--blue); }
}
