:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #dbe4ef;
  --text: #17243a;
  --muted: #647187;
  --accent: #176fc9;
  --accent-2: #0f766e;
  --danger: #b4233c;
  --warning: #9a5b00;
  --success: #087a55;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
.shell { width: min(880px, 100%); margin: 0 auto; padding: 18px 16px max(32px, env(safe-area-inset-bottom)); }
.brand { border-bottom: 1px solid #dce8f4; background: #f8fbff; box-shadow: 0 5px 18px rgba(5, 42, 85, .12); }
.brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(880px, 100%); margin: 0 auto; padding: max(7px, env(safe-area-inset-top)) 16px 7px; }
.brand a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; }
.brand-home { min-width: 0; }
.brand-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; margin-left: auto; }
.brand-nav a { min-height: 34px; padding: 4px 9px; border: 1px solid transparent; border-radius: 7px; color: #42617e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.brand-nav a:hover, .brand-nav a:focus-visible, .brand-link-active { border-color: #c8dff5; background: #eaf3fe; color: #176fc9; }
.brand-link { justify-content: center; }
.brand-account { min-width: 0; max-width: min(250px, 42vw); }
.brand-account-login { border-color: #b8d3ee !important; background: #edf4fb; color: #23517f !important; }
.brand-account-avatar { position: relative; display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #e7f1fc; color: #24527c; font-size: 12px; font-weight: 800; }
.brand-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(38, 133, 242, .32);
  flex-shrink: 0;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 17px;
  font-weight: 850;
  color: #173f91;
  line-height: 1.15;
}
.brand-sub {
  margin-top: 1px;
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}
.hero { margin: 0 0 18px; }
.eyebrow { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.hero h1 { margin: 6px 0; font-size: 38px; line-height: 1.12; letter-spacing: 0; }
.hero p { margin: 0; color: var(--muted); line-height: 1.65; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 32px rgba(37, 62, 91, .09); }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { margin: 7px 0; color: var(--muted); line-height: 1.58; }
.card .big { color: var(--text); font-size: 18px; font-weight: 750; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 8px; color: #176fc9; background: #eaf3fe; border: 1px solid #c7def6; font-size: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid rgba(87, 177, 255, .54); border-radius: 7px; background: #176fc9; color: white; font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
.button.secondary, button.secondary { background: #edf4fb; color: #23517f; border-color: #c9d8e8; }
.button.danger, button.danger { background: #fff1f3; color: #9f1239; border-color: #f1bbc4; }
.button.block, button.block { width: 100%; }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(68, 166, 255, .34); outline-offset: 2px; }
label { display: block; margin: 13px 0 6px; color: #34445d; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd7e5; border-radius: 7px; background: #ffffff; color: var(--text); font: inherit; }
input::placeholder { color: #8996a8; }
.hint { color: var(--muted); font-size: 12px; }
.alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; line-height: 1.5; }
.alert.error { color: #9f1239; border: 1px solid #f1bbc4; background: #fff1f3; }
.alert.success { color: #087a55; border: 1px solid #a9dfca; background: #ecfdf5; }
.alert.warning { color: #8a5200; border: 1px solid #efd39a; background: #fff8e8; }
button:disabled { cursor: not-allowed; opacity: .62; }
.account-entry-page {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #dbe4ef;
  --text: #17243a;
  --muted: #647187;
  --accent: #176fc9;
  --accent-2: #0f766e;
  --danger: #b4233c;
  --warning: #9a5b00;
  --success: #087a55;
  background: #f4f7fb;
}
.account-entry-page .brand { border-bottom-color: #dbe4ef; background: #ffffff; box-shadow: 0 5px 18px rgba(37, 62, 91, .08); }
.account-entry-page .shell { width: min(520px, 100%); padding-top: 30px; }
.account-entry-page .hero { margin-bottom: 20px; }
.account-entry-page .eyebrow { color: #176fc9; }
.account-entry-page .hero h1 { color: #17243a; font-size: 34px; }
.account-entry-page .hero p { color: #647187; }
.account-entry-page .card { border-color: #dbe4ef; background: #ffffff; box-shadow: 0 16px 38px rgba(37, 62, 91, .1); }
.account-entry-page .account-entry-card { padding: 22px; }
.account-entry-page .card p, .account-entry-page .hint { color: #647187; }
.account-entry-page label { color: #34445d; }
.account-entry-page input,
.account-entry-page select { border-color: #cbd7e5; background: #ffffff; color: #17243a; box-shadow: inset 0 1px 2px rgba(31, 48, 72, .04); }
.account-entry-page input::placeholder { color: #8996a8; }
.account-entry-page input:hover,
.account-entry-page select:hover { border-color: #9fb4cb; }
.account-entry-page input:focus,
.account-entry-page select:focus { border-color: #2685f2; box-shadow: 0 0 0 3px rgba(38, 133, 242, .12); }
.account-entry-page .button,
.account-entry-page button { border-color: #176fc9; background: #176fc9; color: #ffffff; box-shadow: 0 7px 16px rgba(23, 111, 201, .18); }
.account-entry-page .button:hover,
.account-entry-page button:hover { background: #0f61b7; }
.account-entry-page .button.secondary,
.account-entry-page button.secondary { border-color: #c9d8e8; background: #edf4fb; color: #23517f; box-shadow: none; }
.account-entry-page .button.secondary:hover,
.account-entry-page button.secondary:hover { background: #e3eef9; }
.account-entry-page .divider { background: #e3eaf2; }
.account-entry-page .consent-check { border-color: #dbe4ef; background: #f7f9fc; color: #58677c; }
.account-entry-page .consent-check a,
.account-entry-page .field-label-row a,
.account-entry-page .entry-text-link { color: #176fc9; }
.account-entry-page .alert.error { border-color: #f1bbc4; background: #fff1f3; color: #9f1239; }
.account-entry-page .alert.success { border-color: #a9dfca; background: #ecfdf5; color: #087a55; }
.account-entry-page .alert.warning { border-color: #efd39a; background: #fff8e8; color: #8a5200; }
.account-entry-page .page-footer { border-top-color: #dbe4ef; color: #6f7d90; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.field-label-row label { margin: 0 0 6px; }
.field-label-row a, .entry-text-link { font-size: 12px; font-weight: 700; text-decoration: none; }
.field-label-row a:hover, .entry-text-link:hover { text-decoration: underline; }
.reset-stage-header { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reset-stage-header strong { display: block; color: var(--text); font-size: 15px; }
.reset-stage-header p { margin: 5px 0 0; }
.reset-secondary-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.reset-secondary-actions form { margin: 0; }
.reset-secondary-actions button { min-height: auto; padding: 0; border: 0; background: transparent; color: #176fc9; box-shadow: none; font-size: 12px; }
.reset-secondary-actions button:hover { background: transparent; text-decoration: underline; }
.profile { display: flex; gap: 13px; align-items: center; min-width: 0; }
.profile > div { min-width: 0; }
.avatar, .profile-avatar-large, .profile-avatar-preview { position: relative; display: grid; place-items: center; overflow: hidden; background: #e7f1fc; color: #24527c; font-weight: 800; }
.avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; }
.avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.avatar img, .profile-avatar-large img, .profile-avatar-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile strong, .profile small { display: block; }
.profile strong, .profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { color: var(--muted); margin-top: 3px; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.meta div { padding: 11px; border-radius: 8px; background: #f5f8fc; }
.meta span, .meta b { display: block; }
.meta span { color: var(--muted); font-size: 11px; }
.meta b { margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.app-list { display: grid; gap: 11px; }
.app-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.app-row .app-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: #eaf3fe; color: #176fc9; font-weight: 900; }
.app-row h3 { margin: 0 0 4px; font-size: 15px; }
.app-row p { margin: 0; font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.online { color: #087a55; background: #e4f7ef; }
.badge.offline { color: #53657a; background: #edf1f5; }
.badge.warning { color: #8a5200; background: #fff2d5; }
.divider { height: 1px; margin: 18px 0; background: var(--line); }
.inline { display: flex; align-items: center; gap: 9px; }
.inline > input { flex: 1; }
.inline > button { flex: 0 0 auto; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; color: var(--muted); font-weight: 500; line-height: 1.55; cursor: pointer; }
.consent-check input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.consent-check a { color: #176fc9; font-weight: 750; text-decoration: none; }
.document { line-height: 1.75; }
.document h2 { margin-top: 24px; font-size: 18px; }
.document h2:first-child { margin-top: 0; }
.document ul { margin: 8px 0; padding-left: 22px; color: var(--muted); }
.document li { margin: 6px 0; }
.document-meta { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 14px 4px 0; border-top: 1px solid var(--line); color: #6f7d90; font-size: 11px; line-height: 1.6; }
.page-footer p { flex: 1 1 auto; margin: 4px 0; }
.page-footer .site-translation-switcher { width: auto; flex: 0 0 auto; justify-content: flex-end; }
.page-footer .site-translation-trigger { width: auto; min-height: 34px; max-width: min(230px, 100%); padding: 7px 10px; justify-content: flex-start; box-shadow: none; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.profile-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; box-shadow: 0 12px 32px rgba(37, 62, 91, .09); }
.profile-summary__identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.profile-avatar-large { flex: 0 0 72px; width: 72px; height: 72px; border: 2px solid #9ed8c8; border-radius: 8px; font-size: 25px; }
.profile-copy { min-width: 0; }
.profile-copy h2 { margin: 3px 0 4px; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-overline { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.profile-summary__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.profile-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-settings-card { scroll-margin-top: 14px; }
.section-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.section-heading h2 { margin: 0 0 4px; font-size: 17px; }
.section-heading p { margin: 0; font-size: 12px; }
.section-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #b7ddd3; border-radius: 7px; background: #eaf7f3; color: var(--accent-2); font-size: 11px; font-weight: 800; }
.settings-form { min-width: 0; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.form-row--end { justify-content: flex-end; }
.avatar-upload-row { display: flex; align-items: center; gap: 13px; }
.profile-avatar-preview { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; font-size: 21px; }
.avatar-upload-copy { min-width: 0; }
.avatar-upload-copy label { margin: 0 0 4px; }
.avatar-upload-copy p { margin: 0; }
.file-input { min-height: 44px; margin-top: 12px; padding: 6px; }
.file-input::file-selector-button { min-height: 30px; margin-right: 10px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #edf4fb; color: #23517f; cursor: pointer; }
.profile-email-card { margin-top: 16px; }
.email-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.email-status-row strong, .email-status-label { display: block; }
.email-status-row strong { margin-top: 3px; overflow-wrap: anywhere; }
.email-status-label { color: var(--muted); font-size: 11px; }
.email-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 4px; }
.verify-email-panel { align-self: start; }
.verify-email-panel > form + form { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
@media (max-width: 620px) {
  .shell { padding: 14px 12px max(26px, env(safe-area-inset-bottom)); }
  .brand-inner { gap: 7px; padding-right: 12px; padding-left: 12px; }
  .brand-nav { gap: 4px; }
  .brand-nav a { padding-right: 6px; padding-left: 6px; }
  .brand-account { max-width: 46vw; }
  .brand-account-name { max-width: 110px; }
  .hero { margin-bottom: 14px; }
  .hero h1 { font-size: 30px; }
  .grid.two { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 42px 1fr; }
  .app-row > .badge { grid-column: 2; justify-self: start; }
  .actions .button, .actions button { flex: 1 1 100%; }
  .inline { align-items: stretch; flex-direction: column; }
  .profile-summary { align-items: flex-start; flex-direction: column; padding: 15px; }
  .profile-summary__identity { width: 100%; }
  .profile-summary__actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary__actions .button { padding-right: 9px; padding-left: 9px; }
  .profile-settings-grid, .email-form-grid { grid-template-columns: 1fr; }
  .profile-settings-card { padding: 15px; }
  .form-row { align-items: stretch; flex-direction: column; }
  .form-row .hint { align-self: flex-start; }
  .form-row button { width: 100%; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 12px; }
  .page-footer .site-translation-switcher { width: auto; max-width: 100%; justify-content: flex-start; }
  .page-footer .site-translation-trigger { width: auto; max-width: 100%; }
  .account-entry-page .shell { padding-top: 20px; }
  .account-entry-page .hero h1 { font-size: 29px; }
  .account-entry-page .account-entry-card { padding: 18px 16px; }
  .reset-secondary-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .brand-sub { display: none; }
  .brand-account-name { max-width: 74px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .36s ease both; }
  .grid .card:nth-child(2) { animation-delay: .05s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
