.ep-root {
  --ep-bg: #eef4fb;
  --ep-card: #ffffff;
  --ep-soft: #f6f9fd;
  --ep-ink: #11253e;
  --ep-muted: #52677d;
  --ep-faint: #5b6f84;
  --ep-line: #dce6f1;
  --ep-blue: #167ff0;
  --ep-blue-soft: #eaf4ff;
  --ep-green: #239d75;
  --ep-green-soft: #eaf8f3;
  --ep-gold: #c98a18;
  --ep-gold-soft: #fff5df;
  --ep-red: #c94b4b;
  --ep-red-soft: #fff0f0;
  width: 100%;
  display: grid;
  gap: 11px;
  color: var(--ep-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.ep-root *,
.ep-root *::before,
.ep-root *::after {
  box-sizing: border-box;
}

.ep-root button,
.ep-root input,
.ep-root select,
.ep-root textarea {
  font: inherit;
}

.ep-root button {
  min-height: 44px;
  cursor: pointer;
}

.ep-root :focus-visible,
.employee-portal-page :focus-visible {
  outline: 3px solid rgba(22, 127, 240, .34);
  outline-offset: 2px;
}

.ep-root h1,
.ep-root h2,
.ep-root h3,
.ep-root h4,
.ep-root p {
  margin-top: 0;
}

.ep-preview-banner {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #c9def7;
  border-radius: 9px;
  color: #1a5f9f;
  background: #edf6ff;
}

.ep-preview-banner span {
  font-size: 14px;
  font-weight: 800;
}

.ep-preview-banner small {
  color: #526b83;
  font-size: 12px;
}

.ep-hero {
  position: relative;
  min-height: 142px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #cfe0f3;
  border-left: 5px solid var(--ep-blue);
  border-radius: 10px;
  background: linear-gradient(135deg, #f5faff 0%, #eaf4ff 100%);
}

.ep-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -48px;
  width: 130px;
  height: 130px;
  border: 22px solid rgba(22, 127, 240, .06);
  border-radius: 50%;
}

.ep-hero.is-birthday {
  border-color: #ead7a8;
  border-left-color: #d99b2b;
  background: linear-gradient(135deg, #fffaf0 0%, #fff1d5 100%);
}

.ep-hero.is-birthday::after {
  border-color: rgba(217, 155, 43, .09);
}

.ep-hero-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--ep-blue);
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(22, 127, 240, .2);
}

.ep-hero.is-birthday .ep-hero-orb {
  background: #d99b2b;
  box-shadow: 0 10px 24px rgba(217, 155, 43, .2);
}

.ep-hero-copy {
  min-width: 0;
}

.ep-hero-copy > span,
.ep-section-title > div > span,
.ep-job-meta > span,
.ep-cake-main > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--ep-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.ep-hero.is-birthday .ep-hero-copy > span {
  color: #aa7211;
}

.ep-hero-copy h1 {
  margin-bottom: 5px;
  font-size: clamp(21px, 5vw, 28px);
  line-height: 1.15;
}

.ep-hero-copy p {
  margin-bottom: 0;
  overflow: hidden;
  color: var(--ep-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-hero-cake-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 13px;
  border: 1px solid #c98a18;
  border-radius: 8px;
  color: #76500d;
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ep-hero-benefit-status {
  display: inline-flex;
  margin-top: 9px;
  color: #76500d;
  font-size: 12px;
  font-weight: 750;
}

.ep-status-stack {
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.ep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ep-badge-blue { color: #176cbb; background: var(--ep-blue-soft); }
.ep-badge-green { color: #187456; background: var(--ep-green-soft); }
.ep-badge-gold { color: #94640d; background: var(--ep-gold-soft); }
.ep-badge-red { color: var(--ep-red); background: var(--ep-red-soft); }
.ep-badge-muted { color: var(--ep-muted); background: #eef2f6; }

.ep-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ep-quick-grid article {
  min-width: 0;
  display: grid;
  align-content: space-between;
  min-height: 79px;
  padding: 12px;
  border: 1px solid var(--ep-line);
  border-radius: 9px;
  background: var(--ep-card);
}

.ep-quick-grid span {
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-quick-grid strong {
  display: block;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-quick-grid strong small {
  margin-left: 2px;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-quick-grid .ep-date-value {
  font-size: 13px;
}

.ep-quick-grid article.is-statutory { border-top: 3px solid var(--ep-blue); }
.ep-quick-grid article.is-company { border-top: 3px solid var(--ep-green); }

.ep-section-nav {
  position: sticky;
  top: 8px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--ep-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(42, 76, 119, .09);
  backdrop-filter: blur(12px);
}

.ep-section-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  color: #315575;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.ep-section-nav a:hover,
.ep-section-nav a:focus-visible { color: #0d67bd; background: var(--ep-blue-soft); }

.ep-section {
  padding: 17px;
  border: 1px solid var(--ep-line);
  border-radius: 10px;
  background: var(--ep-card);
  scroll-margin-top: 72px;
}

.ep-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ep-section-title h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.ep-section-intro {
  margin: -5px 0 11px;
  color: var(--ep-muted);
  font-size: 13px;
}

.ep-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ep-info-item {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--ep-soft);
}
.ep-info-item.is-wide { grid-column: 1 / -1; }

.ep-info-item span,
.ep-benefit-metrics span {
  display: block;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-info-item strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.ep-leave-grid {
  display: grid;
  gap: 8px;
}

.ep-leave-card {
  padding: 13px;
  border: 1px solid #cfe0f3;
  border-left: 4px solid var(--ep-blue);
  border-radius: 8px;
  background: #f5faff;
}

.ep-leave-card.is-company {
  border-color: #c9e8dd;
  border-left-color: var(--ep-green);
  background: #f1faf7;
}

.ep-leave-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ep-leave-card header span {
  color: var(--ep-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
}

.ep-leave-card.is-company header span { color: var(--ep-green); }

.ep-leave-card h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.ep-leave-card header > strong {
  color: var(--ep-blue);
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.ep-leave-card.is-company header > strong { color: var(--ep-green); }

.ep-leave-card header > strong small {
  display: block;
  margin-top: 4px;
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-leave-metrics,
.ep-benefit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 11px;
}

.ep-leave-metrics span,
.ep-benefit-metrics span {
  padding: 7px;
  border-radius: 6px;
  color: var(--ep-muted);
  background: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.ep-leave-metrics b,
.ep-benefit-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--ep-ink);
  font-size: 15px;
}

.ep-leave-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.ep-leave-card footer small {
  color: var(--ep-muted);
  font-size: 12px;
}

.ep-leave-card footer button,
.ep-link-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  color: var(--ep-blue);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.ep-details {
  margin-top: 10px;
  border-top: 1px solid var(--ep-line);
}

.ep-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 2px 0;
  color: var(--ep-blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
}

.ep-history-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.ep-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--ep-line);
  border-radius: 7px;
  background: #fff;
}

.ep-history-row > div {
  min-width: 0;
}

.ep-history-row strong,
.ep-history-row span {
  display: block;
}

.ep-history-row strong { font-size: 14px; }
.ep-history-row > div > span { margin-top: 2px; overflow: hidden; color: var(--ep-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.ep-leave-history-row,
.ep-correction-row { display: grid; grid-template-columns: 1fr; gap: 7px; }
.ep-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-history-range,
.ep-history-reason,
.ep-history-decision { margin: 0; color: #3f5871; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.ep-history-reason span { display: inline; margin-right: 6px; color: var(--ep-muted); font-size: 12px; font-weight: 750; }
.ep-history-decision { padding: 8px 10px; border-radius: 7px; color: #455f78; background: var(--ep-soft); }
.ep-history-row footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ep-history-row footer small { color: var(--ep-muted); font-size: 12px; }

.ep-inline-empty,
.ep-empty-copy {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cedbe8;
  border-radius: 8px;
  color: var(--ep-muted);
  background: #fafcfe;
  font-size: 13px;
  text-align: center;
}

.ep-cake-card {
  padding: 13px;
  border: 1px solid #ead8af;
  border-radius: 9px;
  background: linear-gradient(135deg, #fffaf0, #fff5df);
}

.ep-cake-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.ep-cake-glyph {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  font-size: 20px;
}

.ep-cake-main > div { min-width: 0; }
.ep-cake-main > div > span { color: #a66f10; }
.ep-cake-main h3 { margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ep-cake-main p { margin: 3px 0 0; color: var(--ep-muted); font-size: 12px; }
.ep-benefit-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ep-redemption-code {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 11px;
  border: 1px dashed #d6af64;
  border-radius: 8px;
  background: #fff;
}

.ep-redemption-code span,
.ep-redemption-code small { color: var(--ep-muted); font-size: 12px; }
.ep-redemption-code strong { color: #9a650b; font-size: 23px; letter-spacing: .14em; }

.ep-redemption-code:focus { border-style: solid; box-shadow: 0 0 0 4px rgba(214, 175, 100, .2); }

.ep-benefit-note {
  margin: 9px 0 0;
  color: #5b6878;
  font-size: 12px;
  line-height: 1.55;
}

.ep-primary-button,
.ep-outline-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 7px;
  font-weight: 780;
}

.ep-primary-button { border: 1px solid var(--ep-blue); color: #fff; background: var(--ep-blue); }
.ep-outline-button { border: 1px solid #cad9e8; color: #31506f; background: #fff; }
.ep-primary-button:disabled,
.ep-outline-button:disabled { cursor: default; opacity: .58; }
.ep-full-button { width: 100%; margin-top: 9px; }

.ep-benefit-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #dfcfac;
  border-radius: 9px;
  background: #fffaf1;
}

.ep-benefit-empty strong { display: block; font-size: 12px; }
.ep-benefit-empty p { margin: 2px 0 0; color: var(--ep-muted); font-size: 12px; }

.ep-job-block + .ep-job-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ep-line);
}

.ep-job-block > h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.ep-rich-copy p {
  position: relative;
  margin: 0;
  padding: 5px 0 5px 13px;
  color: #334b65;
  font-size: 14px;
}

.ep-rich-copy p::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ep-blue);
}

.ep-job-meta {
  display: grid;
  gap: 1px;
}

.ep-job-meta h3 { margin: 0; font-size: 15px; }
.ep-job-meta small { color: var(--ep-muted); font-size: 12px; }
.ep-job-summary { margin: 8px 0; color: var(--ep-muted); font-size: 13px; }

.ep-performance-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.ep-performance-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px;
  border-radius: 7px;
  background: var(--ep-soft);
}

.ep-performance-list strong,
.ep-performance-list span { display: block; }
.ep-performance-list strong { font-size: 14px; }
.ep-performance-list span { margin-top: 2px; color: var(--ep-muted); font-size: 12px; }
.ep-performance-list b { color: var(--ep-blue); font-size: 16px; }
.ep-performance-list b small { margin-left: 1px; color: var(--ep-muted); font-size: 12px; }

.ep-calculation-note {
  margin-top: 8px;
  padding: 9px;
  border-radius: 7px;
  color: #49647f;
  background: var(--ep-blue-soft);
}

.ep-calculation-note span { color: var(--ep-blue); font-size: 12px; font-weight: 850; }
.ep-calculation-note p { margin: 2px 0 0; font-size: 13px; }
.ep-privacy-copy { margin: 11px 0 0; color: var(--ep-faint); font-size: 12px; line-height: 1.55; }

.ep-job-details {
  border: 1px solid var(--ep-line);
  border-radius: 9px;
  background: #fff;
}

.ep-job-details > summary {
  min-height: 48px;
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  color: #294a68;
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
}

.ep-job-details > summary small { color: var(--ep-muted); font-size: 12px; font-weight: 600; }
.ep-job-details-body { padding: 0 13px 13px; }

.ep-page-footer {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 8px 24px;
  color: var(--ep-faint);
  text-align: center;
}

.ep-page-footer strong { color: var(--ep-muted); font-size: 13px; }
.ep-page-footer span { font-size: 12px; }

.employee-portal-page {
  min-height: 100vh;
  margin: 0;
  color: #11253e;
  background: #eef4fb;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.employee-portal-page.ep-modal-open {
  position: fixed;
  top: var(--ep-modal-scroll-y, 0);
  left: 0;
  width: 100%;
  overflow: hidden;
}

.employee-portal-page *,
.employee-portal-page *::before,
.employee-portal-page *::after { box-sizing: border-box; }
.employee-portal-page [hidden] { display: none !important; }
.employee-portal-page button,
.employee-portal-page input,
.employee-portal-page select,
.employee-portal-page textarea { font: inherit; }

.ep-public-shell {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

.ep-public-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ep-public-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ep-public-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #167ff0;
  font-size: 12px;
  font-weight: 850;
}

.ep-public-brand strong,
.ep-public-brand span { display: block; }
.ep-public-brand strong { font-size: 14px; }
.ep-public-brand span { margin-top: 1px; color: #52677d; font-size: 12px; }

.ep-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 7px;
  color: #52677d;
  background: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 750;
}

.ep-verify-shell {
  width: min(520px, 100%);
  margin: 42px auto 0;
}

.ep-verify-card {
  overflow: hidden;
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(42, 76, 119, .12);
}

.ep-verify-intro {
  padding: 25px;
  border-left: 5px solid #167ff0;
  background: #f1f7ff;
}

.ep-verify-intro > span { color: #167ff0; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.ep-verify-intro h1 { margin: 5px 0 7px; font-size: 28px; }
.ep-verify-intro p { margin: 0; color: #52677d; font-size: 14px; line-height: 1.65; }

.ep-verify-form {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.ep-public-form label,
.ep-verify-form label {
  display: grid;
  gap: 6px;
  color: #3f5871;
  font-size: 14px;
  font-weight: 750;
}

.ep-public-form input,
.ep-public-form select,
.ep-public-form textarea,
.ep-verify-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cfdae7;
  border-radius: 7px;
  outline: 0;
  color: #11253e;
  background: #fff;
}

.ep-public-form textarea { min-height: 92px; resize: vertical; }
.ep-public-form input,
.ep-public-form select,
.ep-public-form textarea,
.ep-verify-form input { font-size: 16px; }
.ep-public-form input:focus,
.ep-public-form select:focus,
.ep-public-form textarea:focus,
.ep-verify-form input:focus { border-color: #167ff0; box-shadow: 0 0 0 4px rgba(22,127,240,.1); }

.ep-public-primary,
.ep-public-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 7px;
  font-weight: 780;
  cursor: pointer;
}

.ep-public-primary { border: 1px solid #167ff0; color: #fff; background: #167ff0; }
.ep-public-secondary { border: 1px solid #cad9e8; color: #31506f; background: #fff; }
.ep-public-primary:disabled,
.ep-public-secondary:disabled { cursor: default; opacity: .55; }
.ep-verify-form .ep-public-primary { width: 100%; margin-top: 2px; }
.ep-verify-note { display: grid; gap: 3px; margin: -2px 0 0; color: #5b6f84; font-size: 12px; line-height: 1.55; text-align: left; }

.ep-inline-alert {
  padding: 10px 12px;
  border: 1px solid #efb9b9;
  border-radius: 8px;
  color: #9f3030;
  background: #fff3f3;
  font-size: 13px;
  font-weight: 700;
}

.ep-verify-form input[aria-invalid="true"] { border-color: #c94b4b; box-shadow: 0 0 0 3px rgba(201,75,75,.1); }

.ep-hr-help { border-top: 1px solid #e2eaf2; }
.ep-hr-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #176cbb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}
.ep-hr-help summary::after { content: "+"; margin-left: auto; font-size: 18px; }
.ep-hr-help[open] summary::after { content: "−"; }
.ep-hr-help p { margin: 0; padding: 0 0 4px; color: #52677d; font-size: 12px; line-height: 1.6; }

.ep-public-portal { display: grid; gap: 10px; }
.ep-portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #dce6f1;
  border-radius: 9px;
  background: rgba(255,255,255,.9);
}
.ep-portal-toolbar span { color: #52677d; font-size: 12px; }
.ep-portal-toolbar button { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; color: #167ff0; background: transparent; font-size: 13px; font-weight: 780; white-space: nowrap; }
.ep-portal-toolbar button:hover,
.ep-portal-toolbar button:focus-visible { background: #eaf4ff; }

.ep-public-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(17, 37, 62, .42);
  overscroll-behavior: contain;
}

.ep-public-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e4ef;
  border-radius: 12px 12px 8px 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17,37,62,.22);
}

.ep-public-dialog header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e1e9f1;
  background: #fff;
}

.ep-public-dialog h2 { margin: 0; font-size: 19px; }
.ep-public-dialog header button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #52677d; background: #f0f4f8; cursor: pointer; font-size: 22px; }
.ep-public-form { display: grid; gap: 14px; padding: 16px; }
.ep-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ep-form-label { display: block; margin-bottom: 6px; color: #3f5871; font-size: 14px; font-weight: 750; }
.ep-form-note { padding: 10px 11px; border-radius: 7px; color: #3f5871; background: #edf6ff; font-size: 12px; line-height: 1.55; }
.ep-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px -16px -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e1e9f1;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -10px 24px rgba(17, 37, 62, .06);
  backdrop-filter: blur(10px);
}

.ep-date-chip-list { min-height: 48px; display: flex; flex-wrap: wrap; gap: 7px; padding: 7px; border: 1px dashed #cbd9e7; border-radius: 8px; background: #fafcfe; }
.ep-date-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; border: 1px solid #cfe0f3; border-radius: 8px; color: #315575; background: #fff; font-size: 13px; }
.ep-date-chip button { width: 44px; height: 44px; border: 0; color: #52677d; background: transparent; font-size: 20px; }
.ep-date-chip-empty { align-self: center; padding: 0 6px; color: #5b6f84; font-size: 12px; }

.ep-leave-estimate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #cfe0f3;
  border-radius: 9px;
  background: #f5faff;
}
.ep-leave-estimate > div { padding: 9px; border-radius: 7px; background: #fff; }
.ep-leave-estimate span { display: block; color: #52677d; font-size: 12px; }
.ep-leave-estimate strong { display: block; margin-top: 3px; color: #11253e; font-size: 16px; }
.ep-leave-estimate p,
.ep-leave-estimate small { grid-column: 1 / -1; margin: 0; color: #455f78; font-size: 12px; line-height: 1.55; }
.ep-leave-estimate small { color: #5b6f84; }
.ep-leave-estimate .is-warning { color: #a33131; font-weight: 750; }

.ep-public-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: calc(100% - 30px);
  padding: 10px 13px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #11253e;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42,76,119,.16);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .2s ease;
  pointer-events: none;
  font-size: 13px;
  font-weight: 750;
}
.ep-public-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ep-public-toast[data-tone="error"] { border-color: #efb9b9; color: #9f3030; background: #fff3f3; }
.ep-public-toast[data-tone="success"] { border-color: #bfe4d7; color: #176c50; background: #f0faf6; }
.ep-public-toast[data-tone="warning"] { border-color: #ead6a8; color: #76500d; background: #fff9ea; }

.ep-fireworks {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 560px) {
  .ep-public-shell { width: calc(100% - 16px); padding-top: 7px; }
  .ep-verify-shell { margin-top: 18px; }
  .ep-verify-intro { padding: 20px; }
  .ep-verify-form { padding: 17px; }
  .ep-hero { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .ep-hero-orb { width: 42px; height: 42px; }
  .ep-status-stack { grid-column: 1 / -1; display: flex; justify-items: initial; }
  .ep-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-quick-grid article { min-height: 78px; padding: 10px; }
  .ep-quick-grid strong { font-size: 18px; }
  .ep-section { padding: 14px; }
  .ep-leave-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-form-grid { grid-template-columns: 1fr; }
  .ep-public-modal { padding: 8px; }
  .ep-public-dialog { max-height: calc(100dvh - 16px); }
  .ep-public-dialog header { padding: 12px 16px; }
  .ep-section-nav { top: 5px; }
  .ep-section-nav a { gap: 3px; font-size: 12px; }
  .ep-portal-toolbar { align-items: flex-start; }
  .ep-portal-toolbar > div { display: flex; }
  .ep-cake-main { grid-template-columns: 38px minmax(0, 1fr); }
  .ep-cake-main > .ep-badge { grid-column: 2; justify-self: start; }
  .ep-history-row footer { align-items: flex-start; }
}

@media (max-width: 350px) {
  .ep-public-brand span span { display: none; }
  .ep-secure-pill { padding-inline: 7px; }
  .ep-portal-toolbar { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .ep-portal-toolbar > div { justify-content: flex-end; }
  .ep-section-nav { gap: 3px; padding: 5px; }
  .ep-section-nav a { flex-direction: column; gap: 0; font-size: 12px; }
  .ep-dialog-actions { grid-template-columns: 1fr; }
  .ep-history-row footer { display: grid; grid-template-columns: 1fr; }
  .ep-history-row footer .ep-link-button { width: 100%; border: 1px solid #cad9e8; border-radius: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-public-toast { transition: none; }
  .ep-fireworks { display: none !important; }
  .ep-loading-mark { animation: none; }
}
.ep-details summary small { color: var(--ep-muted); font-size: 12px; font-weight: 650; }
.ep-loading-shell {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #52677d;
  font-size: 14px;
}

.ep-loading-shell p { margin: 0; }
.ep-loading-mark {
  width: 30px;
  height: 30px;
  border: 3px solid #cfe0f3;
  border-top-color: #167ff0;
  border-radius: 50%;
  animation: ep-spin .8s linear infinite;
}

@keyframes ep-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ep-loading-mark { animation: none; }
}
