.ebs-banner, .ebs-modal {
  --ebs-navy: var(--navy, #0c3c5c);
  --ebs-navy-deep: var(--navy-deep, #062334);
  --ebs-tint: var(--navy-tint, #eaf1f6);
  --ebs-accent: var(--accent, #3ca443);
  --ebs-ink: var(--ink, #0a1b28);
  --ebs-muted: var(--muted, #5d7180);
  --ebs-line: var(--line, #e2e9ee);
  --ebs-line-strong: var(--line-strong, #cfdae2);
  --ebs-surface: var(--surface, #f5f7f9);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ebs-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ebs-banner *, .ebs-modal * { box-sizing: border-box; }
.ebs-banner p, .ebs-modal p, .ebs-modal ul, .ebs-modal li { margin: 0; padding: 0; }
.ebs-banner[hidden], .ebs-modal[hidden] { display: none !important; }
.ebs-banner a, .ebs-modal a { color: var(--ebs-navy); text-decoration: underline; text-underline-offset: 3px; }
.ebs-banner a:hover, .ebs-modal a:hover { color: var(--ebs-accent); }

.ebs-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.ebs-banner__box {
  pointer-events: auto;
  width: 100%;
  max-width: 1208px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: center;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--ebs-line);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(10, 27, 40, 0.16);
}
.ebs-banner__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.ebs-banner__text { margin-top: 6px !important; color: var(--ebs-muted); font-size: 0.9375rem; line-height: 1.6; }
.ebs-banner__actions { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }

.ebs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ebs-navy);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ebs-btn--solid { background: var(--ebs-navy); color: #ffffff; }
.ebs-btn--solid:hover { background: var(--ebs-navy-deep); border-color: var(--ebs-navy-deep); }
.ebs-btn--line { background: #ffffff; border-color: var(--ebs-line-strong); color: var(--ebs-ink); }
.ebs-btn--line:hover { border-color: var(--ebs-ink); }
.ebs-btn:focus-visible, .ebs-switch:focus-visible, .ebs-modal__x:focus-visible, .ebs-list summary:focus-visible { outline: 2px solid var(--ebs-accent); outline-offset: 3px; }

html.ebs-locked { overflow: hidden; }
.ebs-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ebs-modal__bg { position: absolute; inset: 0; background: rgba(6, 35, 52, 0.6); }
.ebs-modal__box {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 32px 32px 26px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(10, 27, 40, 0.24);
}
.ebs-modal__box:focus { outline: none; }
.ebs-modal__x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ebs-surface);
  color: var(--ebs-ink);
  cursor: pointer;
}
.ebs-modal__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ebs-modal__x:hover { background: var(--ebs-tint); }
.ebs-modal__title { margin-right: 48px !important; font-size: 1.625rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.ebs-modal__lead { margin-top: 10px !important; color: var(--ebs-muted); font-size: 0.9375rem; line-height: 1.6; }

.ebs-cats { list-style: none; margin-top: 20px !important; }
.ebs-cat { padding: 18px 0; border-top: 1px solid var(--ebs-line); }
.ebs-cat__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.ebs-cat__name { font-size: 1rem; font-weight: 600; }
.ebs-cat__desc { margin-top: 3px !important; color: var(--ebs-muted); font-size: 0.9375rem; line-height: 1.55; }
.ebs-always { padding: 6px 12px; border-radius: 999px; background: var(--accent-tint, #eaf6eb); color: var(--accent-dark, #338b39); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

.ebs-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ebs-switch__track { position: relative; display: block; width: 46px; height: 26px; border-radius: 13px; background: var(--ebs-line-strong); transition: background-color 0.15s ease; }
.ebs-switch__dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(10, 27, 40, 0.25); transition: transform 0.15s ease; }
.ebs-switch[aria-checked="true"] .ebs-switch__track { background: var(--ebs-accent); }
.ebs-switch[aria-checked="true"] .ebs-switch__dot { transform: translateX(20px); }
.ebs-switch__state { min-width: 64px; color: var(--ebs-muted); font-size: 0.8125rem; font-weight: 600; }
.ebs-switch[aria-checked="true"] .ebs-switch__state { color: var(--accent-dark, #338b39); }

.ebs-list { margin-top: 10px; }
.ebs-list summary { display: inline-block; color: var(--ebs-navy); font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.ebs-list summary:hover { color: var(--ebs-accent); }
.ebs-list table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.45; }
.ebs-list th, .ebs-list td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ebs-line); text-align: left; vertical-align: top; }
.ebs-list th { color: var(--ebs-muted); font-weight: 500; }
.ebs-list code { font-family: inherit; font-weight: 600; }

.ebs-modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ebs-line); }

@media (max-width: 1080px) {
  .ebs-banner__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ebs-banner { left: 8px; right: 8px; bottom: 8px; }
  .ebs-banner__box { gap: 14px; max-height: calc(100vh - 16px); overflow: auto; padding: 20px 18px; border-radius: 20px; }
  .ebs-banner__actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ebs-modal { align-items: flex-end; padding: 8px; }
  .ebs-modal__box { max-height: calc(100vh - 16px); padding: 26px 18px 18px; border-radius: 20px; }
  .ebs-modal__title { font-size: 1.375rem; }
  .ebs-list table, .ebs-list thead, .ebs-list tbody, .ebs-list tr, .ebs-list td { display: block; }
  .ebs-list thead { display: none; }
  .ebs-list tr { padding: 8px 0; border-bottom: 1px solid var(--ebs-line); }
  .ebs-list td { padding: 1px 0; border: 0; }
  .ebs-modal__foot .ebs-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ebs-switch__track, .ebs-switch__dot, .ebs-btn { transition: none; }
}
@media print {
  .ebs-banner, .ebs-modal { display: none !important; }
}
