.bem-portal {
  --bem-night: #12334c;
  --bem-blue: #164e79;
  --bem-blue-dark: #103a5a;
  --bem-lime: #d8e85c;
  --bem-muted: #4c6070;
  --bem-line: #d7e1e7;
  --bem-wash: #f2f6f8;
  box-sizing: border-box;
  max-width: 1160px;
  margin: 1.25rem auto 3rem;
  color: var(--bem-night);
  font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  isolation: isolate;
  background: white;
}
.bem-portal *, .bem-portal *::before, .bem-portal *::after { box-sizing: border-box; }
.bem-portal a { color: var(--bem-blue); text-decoration: underline; text-underline-offset: .17em; }
.bem-portal :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #e58e12; outline-offset: 3px; }
.bem-portal :is(h1,h2,h3,h4,p,ul,ol,dl,fieldset) { margin: 0; }
.bem-portal :is(h1,h2,h3,h4) { color: inherit; font-family: inherit; text-transform: none; }
.bem-portal h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.052em; font-weight: 760; }
.bem-portal h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.18; letter-spacing: -.038em; font-weight: 720; }
.bem-portal h3 { font-size: 1.18rem; line-height: 1.35; letter-spacing: -.016em; font-weight: 700; }
.bem-portal p { font-size: inherit; line-height: inherit; }
.bem-portal small { color: var(--bem-muted); font-size: .85em; }
.bem-mast { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: 0 .15rem 1rem; flex-wrap: wrap; }
.bem-mast img { display: block; width: 150px; height: auto; max-height: 70px; object-fit: contain; }
.bem-mast nav, .bem-actions { display: flex; align-items: center; gap: .75rem 1.15rem; flex-wrap: wrap; }
.bem-mast nav a { font-size: .9rem; font-weight: 620; }
.bem-hero { position: relative; overflow: hidden; color: white; background: linear-gradient(109deg, #103450 0%, #14496f 78%, #195e87 100%); padding: clamp(1.65rem, 5.5vw, 4.2rem); border-radius: 18px; }
.bem-hero::after { content: ""; pointer-events: none; position: absolute; width: 47%; height: 240%; right: -20%; bottom: -81%; border: 2px solid #d8e85c55; border-radius: 50%; box-shadow: 0 0 0 20px #205a7d, 0 0 0 22px #d8e85c44, 0 0 0 42px #1d5276, 0 0 0 44px #d8e85c44, 0 0 0 64px #1b4e72, 0 0 0 66px #d8e85c44; transform: rotate(33deg); }
.bem-hero > * { position: relative; z-index: 1; }
.bem-hero .bem-eyebrow { color: var(--bem-lime); }
.bem-eyebrow { font-size: .74rem !important; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--bem-blue); }
.bem-hero h1 { color: white; max-width: 17ch; margin: .7rem 0 1rem; }
.bem-hero p:not(.bem-eyebrow) { max-width: 43rem; color: #e7f0f5; }
.bem-hero .bem-actions { margin-top: 1.4rem; }
.bem-portal .bem-btn { display: inline-flex; justify-content: center; align-items: center; gap: .6em; min-height: 44px; padding: .65rem 1.05rem; border: 1px solid var(--bem-blue); border-radius: 8px; background: var(--bem-blue); color: white; font-family: inherit; font-size: .94rem; font-weight: 680; line-height: 1.3; cursor: pointer; text-decoration: none; text-transform: none; letter-spacing: normal; box-shadow: none; }
.bem-portal .bem-btn:hover { color: white; background: var(--bem-blue-dark); }
.bem-portal .bem-btn-secondary { border-color: #aabac6; color: var(--bem-blue); background: #fff; }
.bem-portal .bem-btn-secondary:hover { color: var(--bem-night); background: var(--bem-wash); }
.bem-portal .bem-btn-highlight { border-color: var(--bem-lime); color: #162b30; background: var(--bem-lime); }
.bem-portal .bem-btn-highlight:hover { color: #162b30; background: #e3f178; }
.bem-hero .bem-link { color: white; font-weight: 650; }
.bem-section { margin-top: clamp(1.8rem, 4vw, 3rem); scroll-margin-top: 4rem; }
.bem-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.05rem; }
.bem-section-head p, .bem-hint, .bem-muted { color: var(--bem-muted); }
.bem-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 280px),1fr)); gap: 1rem; }
.bem-card, .bem-panel { background: #fff; border: 1px solid var(--bem-line); border-radius: 12px; padding: clamp(1rem, 2.3vw, 1.55rem); }
.bem-card { display: flex; flex-direction: column; gap: .65rem; }
.bem-card .bem-period { font-size: .93rem; color: var(--bem-blue); }
.bem-tag { display: inline-flex; align-items: center; width: fit-content; padding: .22rem .65rem; background: #e7f0f6; border: 1px solid #cfdfe9; border-radius: 100px; color: var(--bem-blue); font-size: .82rem; font-weight: 700; line-height: 1.45; }
.bem-card details, .bem-panel details { border-top: 1px solid var(--bem-line); padding-top: .65rem; }
.bem-portal details summary { color: var(--bem-blue); cursor: pointer; font-weight: 650; }
.bem-portal details[open] summary { margin-bottom: .55rem; }
.bem-portal ul, .bem-portal ol { padding-inline-start: 1.4rem; }
.bem-portal li + li { margin-top: .38rem; }
.bem-notice { background: #eef5f8; border-inline-start: 4px solid var(--bem-blue); border-radius: 4px 8px 8px 4px; padding: .9rem 1rem; }
.bem-notice.bem-warn { background: #fff6dd; border-color: #b77405; color: #49350c; }
.bem-notice.bem-success { background: #ecf6eb; border-color: #32734b; color: #244a31; }
.bem-stack > * + * { margin-top: 1rem; }
.bem-switcher { display: flex; gap: .5rem; flex-wrap: wrap; }
.bem-switcher a { border-radius: 8px; padding: .52rem .74rem; border: 1px solid var(--bem-line); min-height: 42px; display: inline-flex; align-items: center; }
.bem-switcher a[aria-current="page"] { font-weight: 700; color: white; background: var(--bem-blue); }
.bem-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,175px),1fr)); gap: .85rem 1.4rem; padding: 1rem; background: var(--bem-wash); border-radius: 8px; }
.bem-facts :is(dt,dd) { margin: 0; }
.bem-facts dt { color: var(--bem-muted); font-size: .81rem; }
.bem-facts dd { font-weight: 650; }
.bem-portal fieldset { min-width: 0; border: 0; padding: 0; }
.bem-portal legend { font-family: inherit; font-size: 1.17rem; font-weight: 710; padding: 0 0 .45rem; color: var(--bem-night); }
.bem-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr)); gap: 1rem; }
.bem-field { min-width: 0; }
.bem-field label { display: block; font-weight: 660; margin-bottom: .28rem; color: var(--bem-night); }
.bem-field input:not([type=checkbox]), .bem-field select, .bem-field textarea { display: block; width: 100%; max-width: 100%; height: auto; min-height: 44px; padding: .6rem .7rem; margin: 0; border: 1px solid #8499a6; border-radius: 6px; color: #162d3e; background: #fff; box-shadow: none; font: inherit; line-height: 1.45; }
.bem-field textarea { resize: vertical; min-height: 90px; }
.bem-field input[type=file] { font-size: .88rem; padding: .45rem; }
.bem-field input[type=file]::file-selector-button { font: inherit; padding: .23rem .5rem; margin-right: .6rem; border: 1px solid #aabcc8; border-radius: 3px; color: var(--bem-blue); background: #edf3f7; cursor: pointer; }
.bem-hint { display: block; font-size: .87rem; margin-top: .22rem; }
.bem-check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 550; }
.bem-check input { flex: none; accent-color: var(--bem-blue); width: 1.1rem; height: 1.1rem; margin-top: .24rem; }
.bem-actionbar { border-top: 1px solid var(--bem-line); padding-top: 1rem; }
.bem-timeline { list-style: none; padding: 0 !important; }
.bem-timeline li { position: relative; padding: 0 0 .9rem 1.1rem; border-left: 2px solid #dce7eb; margin: 0 !important; }
.bem-timeline li::before { content: ""; position: absolute; top: .49rem; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bem-blue); }
.bem-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.bem-timeline time { display: block; color: var(--bem-muted); font-size: .84rem; }
.bem-footer { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--bem-line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .93rem; }
.bem-footer strong { display: block; }
.bem-document { background: white; color: #172e3c; margin: 2rem auto; padding: 0 1.3rem; max-width: 55rem; font: 16px/1.45 system-ui, Arial, sans-serif; overflow-wrap: anywhere; }
.bem-document :is(h1, h2, h3, p) { margin: 0 0 .6rem; }
.bem-document h1 { font-size: 1.68rem; margin: .75rem 0 .2rem; line-height: 1.15; }
.bem-document h2 { font-size: 1.05rem; margin-top: 1.25rem; border-bottom: 1px solid #9caeb7; }
.bem-document header { border-bottom: 2px solid #204e70; padding-bottom: .6rem; }
.bem-document header img { width: 130px; height: auto; max-height: 65px; object-fit: contain; }
.bem-document dl { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: .3rem .7rem; }
.bem-document dt { font-weight: bold; }
.bem-document dd { margin: 0; }
.bem-preserve { white-space: pre-line; }
.bem-signatures { display: flex; gap: 2rem; break-inside: avoid; margin: 3.5rem 0 1rem; }
.bem-signatures > div { flex: 1; border-top: 1px solid #333; text-align: center; padding-top: .35rem; }
.bem-print-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bem-document :is(button,a) { font: inherit; color: #154671; }
.bem-document button { cursor: pointer; padding: .4rem .75rem; }
@media (max-width: 600px) {
  .bem-mast nav { gap: .45rem .8rem; }
  .bem-mast img { width: 120px; }
  .bem-hero::after { opacity: .36; right: -35%; }
  .bem-hero h1 { font-size: 2.35rem; }
  .bem-actionbar .bem-btn { flex: 1 1 100%; }
  .bem-document dl { grid-template-columns: 1fr; gap: 0; }
  .bem-document dd { margin-bottom: .4rem; }
}
@media print {
  @page { size: A4; margin: 18mm; }
  .bem-print-actions { display: none !important; }
  .bem-document { margin: 0; padding: 0; max-width: none; font: 11pt/1.38 Arial, sans-serif; color: #000; }
  .bem-document :is(header,h2) { break-after: avoid; }
  .bem-document dl { grid-template-columns: 40mm auto; gap: 2mm; }
  .bem-document dd { margin: 0; }
  .bem-signatures { margin-top: 22mm; }
}
