:root {
  color-scheme: dark;
  --bg: #06120d;
  --bg-2: #091a13;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.68);
  --soft: rgba(226, 232, 240, 0.42);
  --green: #22c55e;
  --blue: #38bdf8;
  --gold: #d4a76a;
  --amber: #f59e0b;
  --red: #fb7185;
  --nav: rgba(3, 13, 9, 0.82);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  font-family: "Nunito Sans", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -12%, rgba(34, 197, 94, 0.30), transparent 34%),
    radial-gradient(circle at 94% 0%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(145deg, #04100b 0%, #071810 54%, #03070b 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .58;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:active {
  transform: translateY(1px) scale(.99);
}

input, select, textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(2, 8, 6, .72);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(34, 197, 94, .62);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

label {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(226, 232, 240, .78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ep-hidden { display: none !important; }

.ep-app {
  width: min(100%, 620px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
}

.ep-splash, .ep-auth {
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 22px;
}

.ep-splash {
  overflow: hidden;
}

.ep-splash-orbit {
  width: 260px;
  height: 260px;
  position: absolute;
  right: -74px;
  top: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 167, 106, .34), transparent 64%);
  filter: blur(2px);
}

.ep-logo, .ep-auth-logo {
  width: 126px;
  max-height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.40));
}

.ep-splash h1, .ep-auth h1, .ep-topbar h1 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 11vw, 56px);
  line-height: .95;
  letter-spacing: -.07em;
}

.ep-kicker {
  margin: 0;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ep-muted {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.ep-auth-card, .ep-hero-card, .ep-install-card, .ep-push-card,
.ep-message-card, .ep-form-card, .ep-day-card, .ep-empty,
.ep-context-card, .ep-request-item {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
}

.ep-auth-card {
  border-radius: 38px;
  padding: 22px;
}

.ep-auth-logo {
  width: 116px;
  display: block;
  margin-bottom: 18px;
}

.ep-context-card {
  border-radius: 22px;
  padding: 13px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(56,189,248,.13), rgba(34,197,94,.10));
}

.ep-context-card b { display: block; }
.ep-context-card small { color: var(--muted); font-weight: 800; }

.ep-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ep-primary-btn, .ep-secondary-btn, .ep-link-btn {
  min-height: 48px;
  border-radius: 18px;
  font-weight: 1000;
}

.ep-primary-btn {
  color: #04100b;
  background: linear-gradient(135deg, #bbf7d0, #22c55e 58%, #d4a76a);
  box-shadow: 0 18px 42px rgba(34, 197, 94, .22);
}

.ep-secondary-btn {
  color: #dcfce7;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .24);
  padding: 0 16px;
}

.ep-link-btn {
  color: #bae6fd;
  background: transparent;
}

.ep-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.ep-status.error { color: #fecdd3; }
.ep-status.ok { color: #bbf7d0; }

.ep-shell {
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 12px calc(94px + env(safe-area-inset-bottom));
}

.ep-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 4px 14px;
}

.ep-topbar h1 {
  font-size: 31px;
  margin-bottom: 0;
}

.ep-avatar-btn, .ep-hero-avatar {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #04100b;
  font-weight: 1000;
  background: linear-gradient(135deg, #d4a76a, #22c55e);
  box-shadow: 0 16px 36px rgba(0,0,0,.30);
}

.ep-avatar-btn img, .ep-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-scroll {
  display: block;
}

.ep-view {
  display: grid;
  gap: 14px;
  animation: ep-enter .32s ease both;
}

@keyframes ep-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ep-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 20px;
}

.ep-hero-card::after {
  content: "";
  position: absolute;
  right: -62px;
  top: -72px;
  width: 178px;
  height: 178px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34,197,94,.24), transparent 67%);
}

.ep-hero-copy, .ep-hero-avatar { position: relative; z-index: 1; }

.ep-hero-copy h2 {
  margin: 6px 0;
  font-size: 26px;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.ep-hero-avatar {
  width: 74px;
  height: 74px;
  border-radius: 27px;
}

.ep-grid-2, .ep-grid-3, .ep-two-cols {
  display: grid;
  gap: 10px;
}

.ep-grid-2, .ep-two-cols { grid-template-columns: 1fr 1fr; }
.ep-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ep-metric-card, .ep-summary-strip article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255,255,255,.065);
}

.ep-metric-card span, .ep-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ep-metric-card b, .ep-summary-strip b {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -.05em;
}

.ep-metric-card small {
  color: var(--soft);
  font-weight: 800;
}

.ep-install-card, .ep-push-card, .ep-message-card {
  border-radius: 27px;
  padding: 16px;
}

.ep-install-card, .ep-push-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.ep-install-card h3, .ep-push-card h3, .ep-message-card h3, .ep-form-card h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.ep-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 6px 4px 2px;
}

.ep-section-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.ep-section-head span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.ep-day-list {
  display: grid;
  gap: 10px;
}

.ep-day-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  border-radius: 25px;
  padding: 12px;
  background: rgba(15, 23, 42, .72);
}

.ep-day-card.today {
  border-color: rgba(56, 189, 248, .55);
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(15,23,42,.72));
}

.ep-day-card.tomorrow {
  border-color: rgba(34, 197, 94, .55);
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(15,23,42,.72));
}

.ep-date-pill {
  min-height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
}

.ep-date-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.ep-date-pill b {
  font-size: 22px;
  line-height: 1;
}

.ep-day-main h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.ep-day-main small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.ep-chip-row, .ep-note-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ep-chip, .ep-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
}

.ep-chip {
  padding: 5px 9px;
  color: #dcfce7;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.24);
}

.ep-chip.warn { color: #fde68a; background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.28); }
.ep-chip.bad { color: #fecdd3; background: rgba(251,113,133,.13); border-color: rgba(251,113,133,.28); }
.ep-chip.muted { color: #e2e8f0; background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.22); }
.ep-chip.upcoming { color: #bae6fd; background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.24); }

.ep-note {
  padding: 4px 8px;
  color: rgba(226,232,240,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.ep-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ep-timebox {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 9px;
  background: rgba(2,6,23,.28);
}

.ep-timebox span {
  display: block;
  color: rgba(226,232,240,.54);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ep-timebox b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.ep-form-card {
  border-radius: 27px;
  padding: 16px;
}

.ep-request-list {
  display: grid;
  gap: 10px;
}

.ep-request-item {
  border-radius: 21px;
  padding: 13px;
}

.ep-request-item b { display: block; }
.ep-request-item span { color: var(--muted); font-size: 12px; font-weight: 800; }

.ep-empty {
  border-style: dashed;
  border-radius: 24px;
  padding: 16px;
  color: var(--muted);
  font-weight: 850;
}

.ep-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100% - 24px));
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 27px;
  background: var(--nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 52px rgba(0,0,0,.34);
  z-index: 20;
}

.ep-bottom-nav button {
  min-height: 48px;
  border-radius: 19px;
  color: var(--muted);
  background: transparent;
  font-weight: 1000;
}

.ep-bottom-nav button.active {
  color: #04100b;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
}

.ep-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  width: min(420px, calc(100% - 28px));
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(2, 8, 6, .92);
  color: #dcfce7;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 40;
}

.ep-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Native compact pass: tuned for a 375-390px phone viewport. */
.ep-app {
  width: min(100%, 430px);
}

.ep-splash, .ep-auth {
  padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  align-content: center;
  gap: 14px;
}

.ep-auth-card {
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.ep-auth-logo {
  width: 86px;
  max-height: 50px;
  margin-bottom: 14px;
}

.ep-splash h1, .ep-auth h1 {
  max-width: 290px;
  margin: 5px 0 7px;
  font-size: clamp(27px, 8vw, 33px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.ep-topbar h1 {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.ep-kicker {
  font-size: 9.5px;
  letter-spacing: .12em;
}

.ep-muted {
  font-size: 12.5px;
  line-height: 1.42;
}

label {
  margin-bottom: 6px;
  font-size: 10.5px;
}

input, select, textarea {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
}

textarea {
  min-height: 82px;
}

.ep-form {
  gap: 10px;
  margin-top: 13px;
}

.ep-primary-btn, .ep-secondary-btn, .ep-link-btn {
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
}

.ep-link-btn {
  min-height: 36px;
}

.ep-status {
  min-height: 16px;
  margin-top: 8px;
  font-size: 11.5px;
}

.ep-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 10px calc(76px + env(safe-area-inset-bottom));
}

.ep-topbar {
  gap: 10px;
  padding: 4px 4px 10px;
  align-items: center;
}

.ep-avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 17px;
}

.ep-view {
  gap: 10px;
}

.ep-auth-card, .ep-hero-card, .ep-install-card, .ep-push-card,
.ep-message-card, .ep-form-card, .ep-day-card, .ep-empty,
.ep-context-card, .ep-request-item {
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.ep-hero-card {
  grid-template-columns: 1fr 56px;
  gap: 10px;
  border-radius: 24px;
  padding: 14px;
}

.ep-hero-card::after {
  right: -54px;
  top: -62px;
  width: 138px;
  height: 138px;
}

.ep-hero-copy h2 {
  margin: 4px 0 5px;
  font-size: 21px;
  line-height: 1.08;
}

.ep-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 20px;
}

.ep-grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ep-grid-3 {
  gap: 8px;
}

.ep-metric-card, .ep-summary-strip article {
  min-height: auto;
  border-radius: 18px;
  padding: 11px 12px;
}

.ep-metric-card span, .ep-summary-strip span {
  font-size: 9.5px;
}

.ep-metric-card b, .ep-summary-strip b {
  margin-top: 2px;
  font-size: 22px;
}

.ep-metric-card small {
  font-size: 11px;
}

.ep-install-card, .ep-push-card, .ep-message-card {
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-radius: 21px;
  padding: 13px;
}

.ep-install-card h3, .ep-push-card h3, .ep-message-card h3, .ep-form-card h3 {
  margin: 3px 0 5px;
  font-size: 14.5px;
  line-height: 1.18;
}

.ep-install-card .ep-secondary-btn,
.ep-push-card .ep-secondary-btn {
  min-width: 92px;
  padding-inline: 12px;
}

.ep-section-head {
  margin: 4px 2px 0;
  align-items: center;
}

.ep-section-head h2 {
  font-size: 15.5px;
}

.ep-section-head span {
  font-size: 10px;
}

.ep-day-list {
  gap: 8px;
}

.ep-day-card {
  grid-template-columns: 44px 1fr;
  gap: 10px;
  border-radius: 19px;
  padding: 10px;
}

.ep-date-pill {
  min-height: 44px;
  border-radius: 14px;
}

.ep-date-pill span {
  font-size: 8.5px;
}

.ep-date-pill b {
  font-size: 18px;
}

.ep-day-main h3 {
  margin-bottom: 2px;
  font-size: 13.5px;
}

.ep-day-main small {
  font-size: 11.5px;
}

.ep-chip-row, .ep-note-row {
  gap: 5px;
  margin-top: 6px;
}

.ep-chip, .ep-note {
  font-size: 9px;
}

.ep-chip {
  padding: 4px 7px;
}

.ep-note {
  padding: 3px 7px;
}

.ep-time-grid {
  gap: 7px;
  margin-top: 8px;
}

.ep-timebox {
  border-radius: 13px;
  padding: 7px;
}

.ep-timebox span {
  font-size: 8.5px;
}

.ep-timebox b {
  font-size: 11px;
}

.ep-form-card {
  border-radius: 21px;
  padding: 13px;
}

.ep-request-item {
  border-radius: 17px;
  padding: 11px;
}

.ep-empty {
  border-radius: 18px;
  padding: 13px;
  font-size: 12px;
}

.ep-bottom-nav {
  width: min(360px, calc(100% - 20px));
  min-height: 56px;
  gap: 6px;
  padding: 6px;
  border-radius: 23px;
}

.ep-bottom-nav button {
  min-height: 44px;
  border-radius: 17px;
  font-size: 12.5px;
}

.ep-toast {
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(360px, calc(100% - 24px));
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 12px;
}

@media (max-width: 420px) {
  .ep-shell { padding-inline: 10px; }
  .ep-grid-2 { grid-template-columns: 1fr 1fr; }
  .ep-two-cols { grid-template-columns: 1fr; }
  .ep-time-grid { grid-template-columns: 1fr 1fr; }
  .ep-install-card, .ep-push-card { grid-template-columns: 1fr auto; }
  .ep-auth-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    background: #08030A;
  }

  body {
    color: #fff;
    background:
      radial-gradient(circle at 12% 12%, rgba(255, 181, 72, .32), transparent 28%),
      radial-gradient(circle at 80% 18%, rgba(10, 132, 255, .34), transparent 28%),
      radial-gradient(circle at 52% 86%, rgba(255, 45, 85, .24), transparent 32%),
      linear-gradient(135deg, #08030A 0%, #1A0611 48%, #280A19 100%);
  }

  .ep-app {
    width: 100%;
    min-height: 100dvh;
    background: transparent;
    box-shadow: none;
  }

  .ep-splash,
  .ep-auth,
  .ep-shell,
  .ep-sheet,
  .ep-toast {
    display: none !important;
  }

  .ep-desktop-landing {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100dvh;
    padding: 26px clamp(28px, 5vw, 76px) 54px;
    overflow: hidden;
  }

  .ep-desk-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
  }

  .ep-desk-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
      linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 24%, #000, transparent 68%);
  }

  .ep-desk-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(8,3,10,.04), rgba(8,3,10,.72)),
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.14), transparent 45%);
  }

  .ep-desk-bg span {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: .68;
    animation: ep-desk-float 12s ease-in-out infinite;
  }

  .ep-desk-bg span:nth-child(1) {
    left: -90px;
    top: 110px;
    background: radial-gradient(circle, rgba(255, 181, 72, .66), transparent 66%);
  }

  .ep-desk-bg span:nth-child(2) {
    right: -70px;
    top: 40px;
    background: radial-gradient(circle, rgba(10, 132, 255, .58), transparent 66%);
    animation-delay: -3s;
  }

  .ep-desk-bg span:nth-child(3) {
    left: 42%;
    bottom: -170px;
    background: radial-gradient(circle, rgba(255, 45, 85, .54), transparent 66%);
    animation-delay: -6s;
  }

  @keyframes ep-desk-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -22px, 0) scale(1.08); }
  }

  .ep-desk-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto 56px;
  }

  .ep-desk-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 1000;
    letter-spacing: -.04em;
  }

  .ep-desk-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.35));
  }

  .ep-desk-brand span {
    font-size: 18px;
  }

  .ep-desk-device-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 12px;
    font-weight: 900;
  }

  .ep-desk-device-pill span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #30D158;
    box-shadow: 0 0 0 6px rgba(48,209,88,.12);
  }

  .ep-desk-hero {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: clamp(34px, 5vw, 82px);
    align-items: center;
  }

  .ep-desk-copy {
    animation: ep-desk-rise .7s cubic-bezier(.2,.8,.2,1) both;
  }

  @keyframes ep-desk-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .ep-desk-kicker {
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: #FFD58A;
    background: rgba(255,255,255,.07);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .ep-desk-copy h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(64px, 8vw, 112px);
    line-height: .86;
    letter-spacing: -.085em;
    text-wrap: balance;
    background: linear-gradient(115deg, #1A0E08 0%, #2A0714 35%, #7B2D41 62%, #0A84FF 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ep-desk-title-glow 9s ease-in-out infinite;
  }

  @keyframes ep-desk-title-glow {
    0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 18px 44px rgba(255,255,255,.08)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0 22px 54px rgba(10,132,255,.14)); }
  }

  .ep-desk-copy > p:not(.ep-desk-kicker) {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.68);
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 720;
    line-height: 1.5;
  }

  .ep-desk-cta-row {
    position: relative;
    overflow: hidden;
    width: min(100%, 620px);
    margin-top: 34px;
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 34px;
    background:
      radial-gradient(circle at 12% 20%, rgba(255,255,255,.20), transparent 24%),
      linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.06));
    box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .ep-desk-cta-row::before {
    content: "";
    position: absolute;
    inset: -80% auto -80% -26%;
    width: 32%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
    animation: ep-desk-sheen 8s ease-in-out infinite;
  }

  @keyframes ep-desk-sheen {
    0%, 34% { transform: translateX(0) rotate(18deg); opacity: 0; }
    45% { opacity: 1; }
    64%, 100% { transform: translateX(460%) rotate(18deg); opacity: 0; }
  }

  .ep-desk-qr {
    position: relative;
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 32px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(135deg, rgba(255,213,138,.95), rgba(10,132,255,.86), rgba(255,45,85,.86)) border-box;
    border: 2px solid transparent;
    box-shadow:
      0 20px 42px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.86);
    animation: ep-desk-qr-breathe 5.5s ease-in-out infinite;
  }

  .ep-desk-qr::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: 40px;
    background: conic-gradient(from 140deg, rgba(255,213,138,.42), rgba(10,132,255,.34), rgba(255,45,85,.34), rgba(255,213,138,.42));
    filter: blur(14px);
    opacity: .72;
    animation: ep-desk-spin 14s linear infinite;
  }

  .ep-desk-qr img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 22px;
  }

  .ep-desk-qr span {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7B2D41, #0A84FF);
    box-shadow: 0 10px 24px rgba(0,0,0,.20);
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  @keyframes ep-desk-qr-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.015); }
  }

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

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

  .ep-desk-cta-row strong {
    margin-bottom: 6px;
    font-size: 18px;
    letter-spacing: -.03em;
  }

  .ep-desk-cta-row span {
    color: rgba(255,255,255,.62);
    font-size: 14px;
    font-weight: 780;
    line-height: 1.45;
  }

  .ep-desk-cta-row b {
    color: #fff;
  }

  .ep-desk-phone-stage {
    position: relative;
    min-height: 620px;
    animation: ep-desk-rise .7s cubic-bezier(.2,.8,.2,1) .12s both;
  }

  .ep-desk-phone-stage::before {
    content: "";
    position: absolute;
    inset: 64px 34px 40px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 64%);
    filter: blur(18px);
  }

  .ep-desk-phone {
    position: absolute;
    width: 286px;
    min-height: 578px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 46px;
    color: #1A0E08;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,247,245,.86)),
      linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
    box-shadow:
      0 36px 90px rgba(0,0,0,.42),
      inset 0 1px 0 rgba(255,255,255,.86),
      0 0 0 10px rgba(255,255,255,.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .ep-desk-phone::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 82px;
    height: 9px;
    border-radius: 999px;
    background: rgba(26,14,8,.13);
    transform: translateX(-50%);
  }

  .ep-desk-phone-main {
    right: 128px;
    top: 0;
    transform: rotate(4deg);
    animation: ep-desk-phone-main 6s ease-in-out infinite;
  }

  .ep-desk-phone-alt {
    right: -10px;
    top: 112px;
    transform: rotate(-7deg) scale(.88);
    opacity: .92;
    animation: ep-desk-phone-alt 6s ease-in-out infinite;
  }

  @keyframes ep-desk-phone-main {
    0%, 100% { transform: translateY(0) rotate(4deg); }
    50% { transform: translateY(-13px) rotate(2deg); }
  }

  @keyframes ep-desk-phone-alt {
    0%, 100% { transform: translateY(0) rotate(-7deg) scale(.88); }
    50% { transform: translateY(12px) rotate(-5deg) scale(.88); }
  }

  .ep-desk-phone-top {
    margin: 18px -4px 14px;
    padding: 22px 18px 66px;
    border-radius: 30px;
    color: #fff;
    background:
      radial-gradient(circle at 86% 2%, rgba(212,167,106,.35), transparent 30%),
      linear-gradient(145deg, #120806, #5A1A2E);
  }

  .ep-desk-phone-top span,
  .ep-desk-shift-card small,
  .ep-desk-task-card small,
  .ep-desk-channel-head {
    display: block;
    color: rgba(212,167,106,.86);
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .ep-desk-phone-top b {
    display: block;
    margin-top: 5px;
    font-size: 25px;
    line-height: .95;
    letter-spacing: -.055em;
  }

  .ep-desk-shift-card {
    margin-top: -58px;
    padding: 16px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(145deg, #7B2D41, #4A1525);
    box-shadow: 0 18px 34px rgba(90,26,46,.24);
  }

  .ep-desk-shift-card strong,
  .ep-desk-shift-card span {
    display: block;
  }

  .ep-desk-shift-card strong {
    margin-top: 7px;
    font-size: 21px;
    letter-spacing: -.05em;
  }

  .ep-desk-shift-card span {
    margin-top: 9px;
    color: rgba(212,167,106,.92);
    font-size: 12px;
    font-weight: 900;
  }

  .ep-desk-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .ep-desk-stat-grid span {
    min-height: 84px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(45,21,32,.08);
    color: rgba(123,45,65,.48);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .ep-desk-stat-grid b {
    display: block;
    margin-bottom: 5px;
    color: #7B2D41;
    font-size: 30px;
    line-height: .9;
    letter-spacing: -.06em;
  }

  .ep-desk-task-card {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(251,113,133,.28);
    border-radius: 24px;
    background: #FFF4F5;
  }

  .ep-desk-task-card small {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: #0077AA;
    background: #DFF4FF;
  }

  .ep-desk-task-card strong,
  .ep-desk-task-card span {
    display: block;
  }

  .ep-desk-task-card strong {
    margin-top: 13px;
    font-size: 17px;
    letter-spacing: -.04em;
  }

  .ep-desk-task-card span {
    margin-top: 6px;
    color: rgba(26,14,8,.52);
    font-size: 12px;
    font-weight: 800;
  }

  .ep-desk-channel-head {
    margin: 28px 0 14px;
    color: #7B2D41;
    font-size: 12px;
  }

  .ep-desk-phone-alt p {
    margin: 0 0 11px;
    display: grid;
    gap: 6px;
  }

  .ep-desk-phone-alt p b {
    font-size: 12px;
  }

  .ep-desk-phone-alt p span {
    width: fit-content;
    max-width: 220px;
    padding: 11px 13px;
    border-radius: 6px 18px 18px 18px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(45,21,32,.08);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
  }

  .ep-desk-phone-alt p.mine {
    justify-items: end;
  }

  .ep-desk-phone-alt p.mine span {
    color: #fff;
    background: linear-gradient(135deg, #7B2D41, #4A1525);
    border-radius: 18px 6px 18px 18px;
  }

  .ep-desk-compose {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    min-height: 54px;
    padding: 17px 16px;
    border-radius: 22px;
    color: rgba(123,45,65,.45);
    background: rgba(255,255,255,.88);
    box-shadow: inset 0 0 0 1px rgba(123,45,65,.10);
    font-size: 13px;
    font-weight: 900;
  }

  .ep-desk-feature-grid {
    width: min(1180px, 100%);
    margin: 54px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .ep-desk-feature-grid article {
    min-height: 210px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 30px;
    background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .ep-desk-feature-grid span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #FFD58A;
    background: rgba(255,255,255,.10);
    font-size: 12px;
    font-weight: 1000;
  }

  .ep-desk-feature-grid h2 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 21px;
    line-height: 1.05;
    letter-spacing: -.045em;
  }

  .ep-desk-feature-grid p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.5;
  }
}

@media (min-width: 820px) and (hover: hover) and (pointer: fine) and (max-width: 1080px) {
  .ep-desk-hero {
    grid-template-columns: 1fr;
  }

  .ep-desk-phone-stage {
    min-height: 540px;
  }

  .ep-desk-phone-main {
    left: 12%;
    right: auto;
  }

  .ep-desk-phone-alt {
    left: 43%;
    right: auto;
  }

  .ep-desk-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mahajana Hypermart PWA alignment pass */
:root {
  color-scheme: light;
  --cream: #FAF7F5;
  --cream-2: #F8F3EA;
  --maroon: #7B2D41;
  --maroon-dark: #5A1A2E;
  --ink: #1A0E08;
  --gold: #D4A76A;
  --line-light: rgba(123, 45, 65, .10);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  background: var(--cream-2);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -10%, rgba(212, 167, 106, .20), transparent 28%),
    linear-gradient(180deg, #FAF7F5 0%, #F8F3EA 100%);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.ep-desktop-landing {
  display: none;
}

body::before {
  display: none;
}

button:active {
  opacity: .92;
  transform: scale(.98);
}

.ep-app {
  width: min(100%, 430px);
  background: var(--cream-2);
  box-shadow: 0 0 0 1px rgba(123,45,65,.04);
}

.ep-shell {
  min-height: 100dvh;
  width: min(100%, 430px);
  padding: 0 0 calc(92px + env(safe-area-inset-bottom));
  background: var(--cream-2);
}

.ep-topbar {
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  margin: 0;
  padding: max(env(safe-area-inset-top), 16px) 22px 74px;
  border-radius: 0 0 38px 38px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,4,3,.98) 0%, rgba(23,17,10,.92) 42%, rgba(90,26,46,.72) 100%),
    radial-gradient(circle at 82% 8%, rgba(212,167,106,.24), transparent 32%),
    linear-gradient(155deg, #050403 0%, #17110A 38%, #2A0F1A 72%, #5A1A2E 100%);
  box-shadow: 0 22px 48px rgba(45,21,32,.24);
}

.ep-topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,167,106,.52), transparent);
}

.ep-topbar::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -62px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(212,167,106,.055) 54%, transparent 70%);
}

.ep-topbar > * {
  position: relative;
  z-index: 1;
}

.ep-profile-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ep-profile-ambient img,
.ep-profile-ambient span {
  position: absolute;
  right: -18px;
  top: -32px;
  width: 210px;
  height: 210px;
  border-radius: 54px;
  opacity: .24;
  transform: rotate(-7deg);
  filter: saturate(1.08) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle at 52% 44%, #000 0 42%, rgba(0,0,0,.78) 52%, transparent 74%);
  mask-image: radial-gradient(circle at 52% 44%, #000 0 42%, rgba(0,0,0,.78) 52%, transparent 74%);
}

.ep-profile-ambient img {
  object-fit: cover;
}

.ep-profile-ambient span {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  background: linear-gradient(145deg, rgba(123,45,65,.95), rgba(212,167,106,.72));
  font-size: 82px;
  font-weight: 1000;
  letter-spacing: -.08em;
}

.ep-profile-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,4,3,.94) 0%, rgba(17,11,8,.76) 44%, rgba(42,15,26,.36) 100%),
    radial-gradient(circle at 91% 20%, rgba(255,255,255,.14), transparent 30%);
}

.ep-topbar .ep-kicker {
  color: rgba(212,167,106,.84);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .22em;
}

.ep-topbar h1 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-shadow: 0 8px 28px rgba(0,0,0,.30);
}

.ep-scroll {
  margin-top: -48px;
  padding: 0 14px;
}

.ep-view {
  gap: 12px;
}

.ep-view[data-view="schedule"],
.ep-view[data-view="requests"] {
  padding-top: 30px;
}

.ep-kicker {
  color: rgba(123,45,65,.56);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .24em;
}

.ep-muted {
  color: rgba(26,14,8,.54);
  font-size: 12.5px;
  font-weight: 650;
}

.ep-hero-card {
  grid-template-columns: 1fr 58px;
  gap: 12px;
  border: 1px solid rgba(212,167,106,.18);
  border-radius: 26px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(212,167,106,.10) 46%, rgba(0,0,0,.15)),
    linear-gradient(155deg, #210D15, #5A1A2E);
  box-shadow: 0 14px 34px rgba(45,21,32,.20), inset 0 1px 0 rgba(255,255,255,.14);
}

.ep-hero-card::after {
  background: radial-gradient(circle, rgba(212,167,106,.18), transparent 66%);
}

.ep-hero-card .ep-kicker,
.ep-hero-card .ep-muted {
  color: rgba(212,167,106,.82);
}

.ep-hero-copy h2 {
  margin: 4px 0 7px;
  color: #fff;
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.ep-hero-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(212,167,106,.28);
  border-radius: 18px;
  background: linear-gradient(135deg, #1A0E08, #5A1A2E);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.ep-metric-card,
.ep-summary-strip article,
.ep-install-card,
.ep-push-card,
.ep-message-card,
.ep-form-card,
.ep-day-card,
.ep-request-item,
.ep-empty {
  border: 1px solid var(--line-light);
  color: var(--ink);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F1 100%);
  box-shadow: 0 12px 30px rgba(45,21,32,.08);
}

.ep-grid-2 {
  gap: 10px;
}

.ep-metric-card,
.ep-summary-strip article {
  border-radius: 22px;
  padding: 13px 14px;
}

.ep-metric-card span,
.ep-summary-strip span {
  color: rgba(123,45,65,.46);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ep-metric-card b,
.ep-summary-strip b {
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
}

.ep-metric-card small {
  color: rgba(26,14,8,.44);
  font-size: 11px;
  font-weight: 700;
}

.ep-home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ep-target-panel {
  display: grid;
  gap: 10px;
}

.ep-target-head {
  align-items: end;
  margin-top: 2px;
}

.ep-target-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -.03em;
}

.ep-target-summary-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(212,167,106,.16);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(212,167,106,.18), transparent 34%),
    linear-gradient(155deg, #1A0E08 0%, #5A1A2E 58%, #7B2D41 100%);
  box-shadow: 0 14px 34px rgba(45,21,32,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.ep-target-summary-card p {
  margin: 0 0 5px;
  color: rgba(212,167,106,.82);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ep-target-summary-card strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.05em;
}

.ep-target-summary-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 750;
}

.ep-target-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 20px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 1000;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(212,167,106,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.ep-target-list,
.ep-target-group {
  display: grid;
  gap: 10px;
}

.ep-target-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.ep-target-group-head span {
  color: rgba(212,167,106,.94);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ep-target-group-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.02em;
}

.ep-target-group-head b {
  color: rgba(123,45,65,.48);
  font-size: 10px;
  font-weight: 900;
}

.ep-target-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 98px;
  padding: 12px;
  border: 1px solid rgba(123,45,65,.09);
  border-radius: 26px;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 0%, rgba(212,167,106,.13), transparent 32%),
    linear-gradient(145deg, #FFFFFF, #FFF9F1);
  box-shadow: 0 10px 24px rgba(45,21,32,.07);
}

.ep-target-ring-card {
  display: grid;
  place-items: center;
}

.ep-target-ring-progress {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--maroon) calc(var(--progress) * 1%), rgba(123,45,65,.10) 0);
  box-shadow: inset 0 0 0 1px rgba(123,45,65,.06), 0 8px 18px rgba(45,21,32,.08);
}

.ep-target-ring-card.has-image .ep-target-ring-progress {
  padding: 6px;
  background:
    conic-gradient(var(--maroon) calc(var(--progress) * 1%), rgba(123,45,65,.10) 0);
}

.ep-target-ring-card.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(45,21,32,.12);
}

.ep-target-item.ok .ep-target-ring-progress {
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#22C55E calc(var(--progress) * 1%), rgba(34,197,94,.12) 0);
}

.ep-target-item.ok .ep-target-ring-card.has-image .ep-target-ring-progress {
  background: conic-gradient(#22C55E calc(var(--progress) * 1%), rgba(34,197,94,.12) 0);
}

.ep-target-item.warn .ep-target-ring-progress {
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#D4A76A calc(var(--progress) * 1%), rgba(212,167,106,.16) 0);
}

.ep-target-item.warn .ep-target-ring-card.has-image .ep-target-ring-progress {
  background: conic-gradient(#D4A76A calc(var(--progress) * 1%), rgba(212,167,106,.16) 0);
}

.ep-target-ring-progress strong {
  grid-area: 1 / 1;
  margin-top: -5px;
  color: var(--maroon);
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.ep-target-ring-progress span {
  grid-area: 1 / 1;
  align-self: end;
  margin-bottom: 16px;
  color: rgba(123,45,65,.44);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.ep-target-item-top,
.ep-target-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ep-target-item-top span {
  color: rgba(123,45,65,.52);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ep-target-item-top b {
  color: var(--maroon);
  font-size: 11px;
  font-weight: 1000;
}

.ep-target-item h3 {
  margin: 6px 0 2px;
  font-size: 14px;
  line-height: 1.18;
}

.ep-target-item p {
  margin: 0;
  color: rgba(123,45,65,.48);
  font-size: 11px;
  font-weight: 700;
}

.ep-progress {
  height: 7px;
  margin: 11px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(123,45,65,.08);
}

.ep-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}

.ep-target-item.warn .ep-progress i {
  background: linear-gradient(90deg, #D4A76A, #B8894E);
}

.ep-target-item.muted .ep-progress i {
  background: rgba(123,45,65,.28);
}

.ep-target-meta {
  justify-content: flex-start;
  color: rgba(26,14,8,.52);
  font-size: 11px;
  font-weight: 800;
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 14px;
  background: rgba(123,45,65,.055);
}

.ep-target-meta strong {
  color: var(--maroon);
}

.ep-target-meta i {
  color: rgba(123,45,65,.30);
  font-style: normal;
}

.ep-target-percent-line {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--maroon);
  background: rgba(123,45,65,.075);
}

.ep-target-percent-line strong {
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: -.03em;
}

.ep-target-percent-line span {
  color: rgba(123,45,65,.48);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ep-home-actions button {
  min-height: 94px;
  padding: 13px;
  border: 1px solid rgba(212,167,106,.14);
  border-radius: 24px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(145deg, #FFFFFF, #FBF2E5);
  box-shadow: 0 12px 30px rgba(45,21,32,.08);
}

.ep-action-icon,
.ep-form-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 15px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
  background: linear-gradient(135deg, #1A0E08, #5A1A2E);
}

.ep-home-actions strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.ep-home-actions small {
  display: block;
  margin-top: 3px;
  color: rgba(123,45,65,.48);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.ep-install-card,
.ep-push-card,
.ep-message-card {
  border-radius: 24px;
  padding: 15px;
}

.ep-install-card h3,
.ep-push-card h3,
.ep-message-card h3,
.ep-form-card h3 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.ep-secondary-btn {
  min-width: 92px;
  color: var(--maroon);
  background: rgba(123,45,65,.08);
  border: 1px solid rgba(123,45,65,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.ep-primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-dark));
  box-shadow: 0 12px 24px rgba(123,45,65,.22);
}

label {
  color: rgba(123,45,65,.55);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

input, select, textarea {
  border-color: rgba(123,45,65,.10);
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(123,45,65,.40);
  box-shadow: 0 0 0 4px rgba(123,45,65,.10);
}

.ep-section-title {
  padding: 6px 2px 0;
}

.ep-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(212,167,106,.95);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.ep-section-kicker::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.ep-section-title h2 {
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.035em;
}

.ep-section-title p {
  margin: 0;
  color: rgba(123,45,65,.48);
  font-size: 11.5px;
  font-weight: 700;
}

.ep-section-head {
  margin: 6px 2px 0;
}

.ep-section-head h2 {
  color: var(--ink);
  font-size: 15px;
}

.ep-section-head span {
  color: rgba(123,45,65,.42);
}

.ep-day-card {
  border-radius: 22px;
  grid-template-columns: 48px 1fr;
  background: linear-gradient(145deg, #fff, #fff9f1);
}

.ep-day-card.today,
.ep-day-card.tomorrow {
  border-color: rgba(123,45,65,.16);
  background: linear-gradient(145deg, #FFFFFF, #FFF3DF);
}

.ep-date-pill {
  min-height: 48px;
  border-radius: 16px;
  color: var(--maroon);
  background: rgba(123,45,65,.07);
}

.ep-date-pill span {
  color: rgba(123,45,65,.45);
}

.ep-day-main h3 {
  color: var(--ink);
  font-weight: 900;
}

.ep-day-main small {
  color: rgba(26,14,8,.52);
}

.ep-chip {
  color: var(--maroon);
  background: rgba(123,45,65,.08);
  border-color: rgba(123,45,65,.10);
}

.ep-chip.warn { color: #8A5A00; background: rgba(212,167,106,.20); border-color: rgba(212,167,106,.25); }
.ep-chip.bad { color: #9F1239; background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.20); }
.ep-chip.muted { color: rgba(26,14,8,.56); background: rgba(26,14,8,.06); border-color: rgba(26,14,8,.08); }
.ep-chip.upcoming { color: var(--maroon); background: rgba(212,167,106,.18); border-color: rgba(212,167,106,.22); }

.ep-note,
.ep-timebox {
  color: rgba(26,14,8,.68);
  background: #fff;
  border-color: rgba(123,45,65,.08);
}

.ep-timebox span {
  color: rgba(123,45,65,.42);
}

.ep-timebox b {
  color: var(--ink);
}

.ep-request-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 15px;
}

.ep-request-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -48px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(212,167,106,.14);
}

.ep-form-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ep-form-card-head .ep-form-icon {
  flex: 0 0 auto;
  margin: 0;
}

.ep-form-card-head h3 {
  margin: 0 0 3px;
}

.ep-form-card-head p {
  margin: 0;
  color: rgba(123,45,65,.48);
  font-size: 11px;
  font-weight: 700;
}

.ep-form {
  position: relative;
  z-index: 1;
}

.ep-request-item {
  border-radius: 18px;
  padding: 12px 13px;
}

.ep-request-item b {
  color: var(--ink);
  font-size: 13px;
}

.ep-request-item span {
  color: rgba(123,45,65,.50);
}

.ep-empty {
  color: rgba(123,45,65,.54);
  background: rgba(255,255,255,.72);
}

.ep-bottom-nav {
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0 12px max(env(safe-area-inset-bottom), 8px);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ep-bottom-nav::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(env(safe-area-inset-bottom), 8px);
  height: 66px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,249,241,.88));
  box-shadow:
    0 18px 48px rgba(45,21,32,.18),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.ep-bottom-nav > button {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  margin: 4px 0 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 22px;
  color: rgba(90,26,46,.42);
  background: transparent;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: -.01em;
  vertical-align: top;
  transition: color .18s ease, transform .18s ease, background .18s ease;
}

.ep-nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  line-height: 1;
  border-radius: 14px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ep-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ep-nav-icon svg path:first-child {
  fill: rgba(90,26,46,.045);
}

.ep-bottom-nav > button.active {
  color: var(--maroon);
  background: transparent;
}

.ep-bottom-nav > button.active .ep-nav-icon {
  color: var(--gold);
  transform: translateY(-1px);
  background: linear-gradient(155deg, #7B2D41 0%, #4A1525 64%, #240A14 100%);
  box-shadow:
    0 9px 18px rgba(74,21,37,.28),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 5px rgba(0,0,0,.40),
    0 0 0 1px rgba(212,167,106,.42);
}

.ep-bottom-nav > button.active .ep-nav-icon svg path:first-child {
  fill: rgba(212,167,106,.12);
}

.ep-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ep-boardroom-view {
  gap: 11px;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

.ep-boardroom-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(212,167,106,.18);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(212,167,106,.28), transparent 33%),
    linear-gradient(155deg, #190A10 0%, #4A1525 54%, #7B2D41 100%);
  box-shadow: 0 18px 40px rgba(45,21,32,.20), inset 0 1px 0 rgba(255,255,255,.12);
}

.ep-boardroom-hero::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
}

.ep-boardroom-hero > * {
  position: relative;
  z-index: 1;
}

.ep-boardroom-channel-mark,
.ep-boardroom-compose-avatar,
.ep-boardroom-digest-icon {
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 1000;
}

.ep-boardroom-channel-mark {
  width: 44px;
  height: 44px;
  color: var(--gold);
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  font-size: 24px;
}

.ep-boardroom-hero h2 {
  margin: 4px 0 5px;
  font-size: 23px;
  line-height: .98;
  letter-spacing: -.055em;
}

.ep-boardroom-hero p {
  max-width: 280px;
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: 11.5px;
  font-weight: 780;
  line-height: 1.34;
}

.ep-boardroom-refresh,
.ep-boardroom-status-card button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
}

.ep-boardroom-refresh {
  color: var(--maroon);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.ep-boardroom-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.ep-boardroom-status-card {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(123,45,65,.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,248,238,.86));
  box-shadow: 0 12px 28px rgba(45,21,32,.07);
}

.ep-boardroom-status-card span,
.ep-boardroom-status-card small {
  display: block;
  color: rgba(123,45,65,.48);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ep-boardroom-status-card strong {
  display: block;
  margin: 7px 0 9px;
  color: var(--maroon);
  font-size: 28px;
  line-height: .9;
  letter-spacing: -.06em;
}

.ep-boardroom-status-card button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  box-shadow: 0 10px 18px rgba(123,45,65,.18);
}

.ep-boardroom-panel {
  padding: 13px;
  border: 1px solid rgba(123,45,65,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(45,21,32,.08);
}

.ep-boardroom-panel-head,
.ep-boardroom-digest-title,
.ep-boardroom-post-head,
.ep-boardroom-compose-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-boardroom-panel-head {
  justify-content: space-between;
  margin-bottom: 11px;
}

.ep-boardroom-panel-head h2,
.ep-boardroom-digest-title h3,
.ep-boardroom-compose-head h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -.035em;
}

.ep-boardroom-panel-head h2 {
  font-size: 16px;
}

.ep-boardroom-panel-head small,
.ep-boardroom-digest-title p,
.ep-boardroom-compose-head p {
  margin: 0;
  color: rgba(123,45,65,.46);
  font-size: 10.5px;
  font-weight: 800;
}

.ep-boardroom-digest-grid {
  display: grid;
  gap: 9px;
}

.ep-boardroom-digest-card {
  padding: 11px;
  border: 1px solid rgba(123,45,65,.07);
  border-radius: 22px;
  background: rgba(250,247,245,.82);
}

.ep-boardroom-digest-title {
  margin-bottom: 9px;
}

.ep-boardroom-digest-title h3,
.ep-boardroom-compose-head h3 {
  font-size: 14px;
}

.ep-boardroom-digest-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--maroon);
  background: rgba(123,45,65,.08);
  font-size: 12px;
}

.ep-boardroom-mini-list,
.ep-boardroom-feed {
  display: grid;
  gap: 9px;
}

.ep-boardroom-mini-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(123,45,65,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.ep-boardroom-mini-item.unread {
  border-color: rgba(123,45,65,.20);
  background: linear-gradient(135deg, #FFFFFF, #FFF2DE);
}

.ep-boardroom-mini-item.unread::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,167,106,.15);
}

.ep-boardroom-mini-avatar,
.ep-boardroom-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #7B2D41, #4A1525);
  font-size: 11px;
  font-weight: 1000;
}

.ep-boardroom-mini-avatar {
  width: 34px;
  height: 34px;
}

.ep-boardroom-avatar {
  width: 36px;
  height: 36px;
}

.ep-boardroom-mini-avatar img,
.ep-boardroom-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-boardroom-mini-item b {
  display: block;
  padding-right: 12px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.18;
}

.ep-boardroom-mini-item p {
  margin: 3px 0 0;
  color: rgba(45,21,32,.62);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.32;
}

.ep-boardroom-mini-meta {
  display: block;
  margin-bottom: 2px;
  color: rgba(123,45,65,.42);
  font-size: 9.5px;
  font-weight: 900;
}

.ep-boardroom-feed-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,247,245,.72)),
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(123,45,65,.025) 38px 39px);
}

.ep-boardroom-post {
  display: grid;
  gap: 6px;
}

.ep-boardroom-post.pinned {
  padding-top: 8px;
  border-top: 1px solid rgba(212,167,106,.24);
}

.ep-boardroom-post.mine {
  justify-items: end;
}

.ep-boardroom-post-head {
  width: 100%;
  align-items: flex-start;
}

.ep-boardroom-post.mine .ep-boardroom-post-head {
  flex-direction: row-reverse;
  text-align: right;
}

.ep-boardroom-post-head div {
  min-width: 0;
  flex: 1;
}

.ep-boardroom-post h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -.025em;
}

.ep-boardroom-post-head span {
  color: rgba(123,45,65,.48);
  font-size: 10px;
  font-weight: 850;
}

.ep-boardroom-post-bubble {
  max-width: min(88%, 330px);
  margin-left: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(123,45,65,.08);
  border-radius: 6px 18px 18px 18px;
  color: rgba(22,12,17,.88);
  background: #fff;
  box-shadow: 0 8px 18px rgba(45,21,32,.06);
}

.ep-boardroom-post.mine .ep-boardroom-post-bubble {
  margin-left: 0;
  margin-right: 46px;
  border-color: rgba(123,45,65,.18);
  border-radius: 18px 6px 18px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
}

.ep-boardroom-post-bubble p {
  margin: 0;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.ep-boardroom-pin {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--maroon);
  background: rgba(212,167,106,.20);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ep-boardroom-post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 46px;
}

.ep-boardroom-post.mine .ep-boardroom-post-foot {
  justify-content: flex-end;
  margin-left: 0;
  margin-right: 46px;
}

.ep-boardroom-post-foot span {
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(123,45,65,.54);
  background: rgba(123,45,65,.065);
  font-size: 9.5px;
  font-weight: 900;
}

.ep-boardroom-compose {
  position: sticky;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 18;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 46px rgba(45,21,32,.18), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ep-boardroom-compose-head {
  margin-bottom: 9px;
}

.ep-boardroom-compose-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--gold);
  background: linear-gradient(145deg, #4A1525, #7B2D41);
  font-size: 12px;
}

.ep-boardroom-form {
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 8px;
  align-items: end;
}

.ep-boardroom-input-wrap {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(123,45,65,.12);
  border-radius: 18px;
  background: rgba(250,247,245,.96);
  overflow: visible;
}

.ep-boardroom-input-wrap:focus-within {
  border-color: rgba(123,45,65,.40);
  box-shadow: 0 0 0 4px rgba(123,45,65,.10);
}

.ep-boardroom-compose textarea {
  position: relative;
  z-index: 2;
  min-height: 48px;
  max-height: 112px;
  resize: vertical;
  color: transparent;
  caret-color: var(--ink);
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: none;
}

.ep-boardroom-compose textarea:focus {
  box-shadow: none;
}

.ep-boardroom-compose textarea::placeholder {
  color: rgba(123,45,65,.42);
}

.ep-boardroom-mention-mirror {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 48px;
  padding: 10px 12px;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.ep-boardroom-selected-mention {
  color: #0A84FF;
  font-weight: 1000;
}

.ep-boardroom-compose .ep-primary-btn {
  min-height: 48px;
  border-radius: 18px;
}

.ep-boardroom-mention-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 6px;
  max-height: 256px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(123,45,65,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 42px rgba(45,21,32,.18), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ep-boardroom-mention-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  padding: 7px;
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.ep-boardroom-mention-option.active,
.ep-boardroom-mention-option:focus-visible {
  outline: none;
  background: linear-gradient(135deg, rgba(123,45,65,.10), rgba(212,167,106,.12));
}

.ep-boardroom-mention-option span {
  min-width: 0;
}

.ep-boardroom-mention-option b,
.ep-boardroom-mention-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-boardroom-mention-option b {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.15;
}

.ep-boardroom-mention-option small {
  margin-top: 2px;
  color: rgba(123,45,65,.52);
  font-size: 10.5px;
  font-weight: 850;
}

.ep-boardroom-mention {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--maroon);
  background: rgba(212,167,106,.20);
  font-weight: 1000;
}

.ep-boardroom-post.mine .ep-boardroom-mention {
  color: #fff;
  background: rgba(255,255,255,.18);
}

.ep-toast {
  color: #fff;
  background: rgba(42,15,26,.94);
  border-color: rgba(212,167,106,.20);
}

.ep-auth {
  background:
    radial-gradient(circle at 82% 5%, rgba(212,167,106,.20), transparent 32%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
}

.ep-auth-card {
  border-color: rgba(212,167,106,.14);
  color: var(--ink);
  background: linear-gradient(145deg, #FFFFFF, #FFF9F1);
  box-shadow: 0 20px 44px rgba(45,21,32,.16);
}

.ep-auth h1 {
  color: var(--ink);
}

.ep-auth-logo {
  filter: drop-shadow(0 10px 18px rgba(45,21,32,.10));
}

.ep-status.ok {
  color: var(--maroon);
}

.ep-status.error {
  color: #9F1239;
}

.ep-splash {
  color: #fff;
  background:
    radial-gradient(circle at 80% 8%, rgba(212,167,106,.18), transparent 30%),
    linear-gradient(155deg, #050403 0%, #17110A 38%, #2A0F1A 72%, #5A1A2E 100%);
}

.ep-splash .ep-muted {
  color: rgba(255,255,255,.68);
}

@media (max-width: 420px) {
  .ep-scroll { padding-inline: 10px; }
  .ep-grid-2 { grid-template-columns: 1fr 1fr; }
  .ep-install-card,
  .ep-push-card { grid-template-columns: 1fr auto; }
  .ep-time-grid { grid-template-columns: 1fr 1fr; }
}

/* Compact colorful iOS roster view */
.ep-schedule-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 17px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(248,212,123,.26), transparent 34%),
    radial-gradient(circle at 14% 100%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(155deg, #2A0F1A 0%, #7B2D41 64%, #B8894E 130%);
  box-shadow: 0 18px 38px rgba(45,21,32,.22), inset 0 1px 0 rgba(255,255,255,.16);
}

.ep-schedule-hero::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -42px;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  border: 1px solid rgba(248,212,123,.20);
  background: rgba(255,255,255,.055);
}

.ep-schedule-hero > * {
  position: relative;
  z-index: 1;
}

.ep-schedule-hero .ep-section-kicker {
  color: rgba(248,212,123,.92);
}

.ep-schedule-hero h2 {
  margin: 7px 0 4px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.045em;
}

.ep-schedule-hero p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}

.ep-schedule-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ep-schedule-mini-grid span {
  min-height: 58px;
  padding: 10px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  color: rgba(255,255,255,.62);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.ep-schedule-mini-grid b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 23px;
  line-height: .9;
  letter-spacing: -.045em;
}

.ep-view[data-view="schedule"] {
  gap: 13px;
}

.ep-view[data-view="schedule"] .ep-section-head {
  margin: 7px 2px 0;
}

.ep-view[data-view="schedule"] .ep-section-head h2 {
  font-size: 16px;
}

.ep-view[data-view="schedule"] .ep-section-head span {
  color: rgba(123,45,65,.46);
  font-size: 10px;
  font-weight: 1000;
}

.ep-day-list {
  gap: 9px;
}

.ep-day-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: 52px 1fr;
  gap: 11px;
  min-height: 0;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(123,45,65,.09);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF8EC 100%);
  box-shadow: 0 10px 22px rgba(45,21,32,.07);
}

.ep-day-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #7B2D41, #D4A76A);
}

.ep-day-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -46px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(212,167,106,.12);
}

.ep-day-card.today {
  border-color: rgba(34,197,94,.24);
  background: linear-gradient(145deg, #F8FFF9 0%, #FFFFFF 56%, #FFF6E7 100%);
}

.ep-day-card.today::before {
  background: linear-gradient(180deg, #22C55E, #D4A76A);
}

.ep-day-card.tomorrow {
  border-color: rgba(56,189,248,.22);
  background: linear-gradient(145deg, #F5FBFF 0%, #FFFFFF 56%, #FFF6E7 100%);
}

.ep-day-card.tomorrow::before {
  background: linear-gradient(180deg, #38BDF8, #7B2D41);
}

.ep-day-card.off-day {
  border-style: dashed;
  border-color: rgba(123,45,65,.14);
  background: linear-gradient(145deg, #F8F4F1 0%, #FFFFFF 100%);
}

.ep-day-card.off-day::before {
  background: linear-gradient(180deg, #9CA3AF, #D4A76A);
}

.ep-day-card.tone-bad::before {
  background: linear-gradient(180deg, #FB7185, #7B2D41);
}

.ep-day-card.tone-warn::before {
  background: linear-gradient(180deg, #F59E0B, #D4A76A);
}

.ep-day-card.tone-upcoming::before {
  background: linear-gradient(180deg, #38BDF8, #D4A76A);
}

.ep-day-card.has-event::before {
  background: linear-gradient(180deg, #D4A76A, #7B2D41);
}

.ep-day-card.is-wednesday {
  border-color: rgba(212,167,106,.44);
  color: #FFF7D6;
  background:
    radial-gradient(circle at 88% 8%, rgba(212,167,106,.26), transparent 30%),
    linear-gradient(145deg, #14100A 0%, #2B210D 52%, #060504 100%);
  box-shadow: 0 14px 34px rgba(24,18,8,.20);
}

.ep-day-card.is-wednesday::before {
  background: linear-gradient(180deg, #FACC15, #D4A76A 58%, #7B2D41);
}

.ep-day-card.is-wednesday::after {
  background: rgba(250,204,21,.12);
}

.ep-date-pill {
  position: relative;
  z-index: 1;
  min-height: 68px;
  border-radius: 18px;
  color: #7B2D41;
  background: linear-gradient(180deg, rgba(123,45,65,.08), rgba(212,167,106,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.ep-date-pill > div {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.ep-day-card.today .ep-date-pill {
  color: #166534;
  background: linear-gradient(180deg, rgba(34,197,94,.13), rgba(212,167,106,.12));
}

.ep-day-card.tomorrow .ep-date-pill {
  color: #075985;
  background: linear-gradient(180deg, rgba(56,189,248,.14), rgba(123,45,65,.06));
}

.ep-day-card.off-day .ep-date-pill {
  color: #6B7280;
  background: linear-gradient(180deg, rgba(107,114,128,.10), rgba(255,255,255,.70));
}

.ep-day-card.is-wednesday .ep-date-pill {
  color: #FACC15;
  background: linear-gradient(180deg, rgba(250,204,21,.18), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px rgba(0,0,0,.22);
}

.ep-day-card.is-wednesday .ep-date-pill span {
  color: #FFF7D6;
  text-shadow: 0 1px 8px rgba(0,0,0,.28);
}

.ep-date-pill span {
  display: block;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .11em;
}

.ep-date-pill b {
  display: block;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
}

.ep-day-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ep-day-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ep-day-main h3 {
  margin: 1px 0 2px;
  font-size: 14.5px;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.ep-day-card.is-wednesday .ep-day-main h3 {
  color: #FFF7D6;
}

.ep-day-main small {
  font-size: 11px;
  line-height: 1.25;
}

.ep-day-card.is-wednesday .ep-day-main small {
  color: rgba(255,247,214,.64);
}

.ep-roster-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #7B2D41;
  font-size: 8.5px;
  font-weight: 1000;
  white-space: nowrap;
  background: rgba(123,45,65,.08);
  border: 1px solid rgba(123,45,65,.08);
}

.ep-day-card.today .ep-roster-badge {
  color: #166534;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.16);
}

.ep-day-card.tomorrow .ep-roster-badge {
  color: #075985;
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.16);
}

.ep-day-card.off-day .ep-roster-badge {
  color: #6B7280;
  background: rgba(107,114,128,.10);
  border-color: rgba(107,114,128,.12);
}

.ep-day-card.is-wednesday .ep-roster-badge {
  color: #FACC15;
  background: rgba(250,204,21,.14);
  border-color: rgba(250,204,21,.20);
}

.ep-chip-row {
  margin-top: 7px;
}

.ep-chip {
  padding: 4px 7px;
  font-size: 9px;
}

.ep-chip.weekend {
  color: #7B2D41;
  background: rgba(123,45,65,.08);
}

.ep-chip.event {
  color: #8A5A10;
  background: rgba(212,167,106,.18);
}

.ep-chip.wednesday {
  color: #FACC15;
  background: rgba(250,204,21,.14);
}

.ep-day-card.is-wednesday .ep-chip {
  color: rgba(255,247,214,.80);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.08);
}

.ep-day-card.is-wednesday .ep-chip.wednesday,
.ep-day-card.is-wednesday .ep-chip.event {
  color: #FACC15;
  background: rgba(250,204,21,.16);
}

.ep-time-grid {
  gap: 7px;
  margin-top: 8px;
}

.ep-timebox {
  border-radius: 14px;
  padding: 8px;
  background: rgba(255,255,255,.76);
}

.ep-day-card.is-wednesday .ep-timebox {
  background: rgba(255,255,255,.08);
  border-color: rgba(250,204,21,.12);
}

.ep-timebox span {
  font-size: 8.5px;
}

.ep-day-card.is-wednesday .ep-timebox span {
  color: rgba(255,247,214,.58);
}

.ep-timebox b {
  font-size: 11px;
}

.ep-day-card.is-wednesday .ep-timebox b {
  color: #FFF7D6;
}

.ep-note-row {
  margin-top: 7px;
}

.ep-note {
  padding: 3px 7px;
  font-size: 9px;
  background: rgba(255,255,255,.68);
}

.ep-day-card.is-wednesday .ep-note {
  color: rgba(255,247,214,.70);
  background: rgba(255,255,255,.10);
}

/* ==========================================================================
   Tasks tab + bottom-sheet + refactored Requests — Mahajana brand pass.
   Uses --cream, --ink, --maroon, --gold tokens defined in the Hypermart
   alignment pass (~line 912) so the new feature reads cleanly on cream
   surfaces with high-contrast dark ink text. Designed for iOS standards:
   44px tap targets, 60/30/10 colour budget, hairline 1px borders, no
   white-on-white, generous corner radii.
   ========================================================================== */

/* --- Tone tokens (status / priority accents) ----------------------------- */
:root {
  --tone-blue-bg:   rgba(14,165,233,.10);
  --tone-blue-ink:  #0369A1;
  --tone-blue-rail: linear-gradient(180deg, #38BDF8, #0369A1);
  --tone-amber-bg:  rgba(217,119,6,.12);
  --tone-amber-ink: #92400E;
  --tone-amber-rail:linear-gradient(180deg, #F59E0B, #B45309);
  --tone-green-bg:  rgba(21,128,61,.12);
  --tone-green-ink: #166534;
  --tone-green-rail:linear-gradient(180deg, #22C55E, #15803D);
  --tone-red-bg:    rgba(185,28,28,.10);
  --tone-red-ink:   #B91C1C;
  --tone-red-rail:  linear-gradient(180deg, #F87171, #B91C1C);
  --tone-orange-bg: rgba(234,88,12,.12);
  --tone-orange-ink:#C2410C;
  --tone-orange-rail:linear-gradient(180deg, #FB923C, #C2410C);
  --tone-slate-bg:  rgba(26,14,8,.06);
  --tone-slate-ink: #4B362A;
  --tone-slate-rail:linear-gradient(180deg, #94A3B8, #475569);
  --tone-maroon-bg: rgba(123,45,65,.10);
  --tone-maroon-ink:#7B2D41;
  --tone-gold-bg:   rgba(212,167,106,.18);
  --tone-gold-ink:  #8A6A3B;
}

/* --- Tasks home summary (lives on home tab) ----------------------------- */
.ep-tasks-summary {
  display: grid;
  gap: 12px;
}
.ep-tasks-summary .ep-section-head { margin-top: 2px; }
.ep-section-link {
  appearance: none;
  background: rgba(123,45,65,.08);
  color: var(--maroon);
  border: 1px solid rgba(123,45,65,.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
}
.ep-section-link:active { transform: scale(.97); }

.ep-tasks-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ep-tasks-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F1 100%);
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 24px rgba(45,21,32,.06);
}
.ep-tasks-pill b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--maroon);
}
.ep-tasks-pill small {
  font-size: 9.5px;
  color: rgba(123,45,65,.56);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}
.ep-tasks-pill--alert {
  background: linear-gradient(145deg, #FFF5F5, #FCE5E7);
  border-color: rgba(185,28,28,.18);
}
.ep-tasks-pill--alert b { color: var(--tone-red-ink); }
.ep-tasks-pill--today {
  background: linear-gradient(145deg, #F4FBFF, #E0F2FE);
  border-color: rgba(14,165,233,.22);
}
.ep-tasks-pill--today b { color: var(--tone-blue-ink); }
.ep-tasks-pill--next {
  background: linear-gradient(145deg, #FFFAF0, #FDF2D9);
  border-color: rgba(212,167,106,.30);
}
.ep-tasks-pill--next b { color: var(--tone-gold-ink); }
.ep-tasks-next:empty { display: none; }

/* --- Tasks tab hero (dark, maroon, mirrors .ep-target-summary-card) ----- */
.ep-tasks-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 22px 22px 18px;
  border-radius: 28px;
  color: #fff;
  border: 1px solid rgba(212,167,106,.18);
  background:
    radial-gradient(circle at 92% 8%, rgba(212,167,106,.22), transparent 36%),
    linear-gradient(155deg, #1A0E08 0%, #5A1A2E 58%, #7B2D41 100%);
  box-shadow:
    0 18px 40px rgba(45,21,32,.22),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.ep-tasks-hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(212,167,106,.16), transparent 60%);
  pointer-events: none;
}
.ep-tasks-hero-head .ep-section-kicker,
.ep-tasks-hero-head > span {
  color: rgba(212,167,106,.82);
  font-size: 9.5px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ep-tasks-hero-head h2 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -.04em;
  font-weight: 800;
}
.ep-tasks-hero-head p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 600;
}
.ep-tasks-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ep-tasks-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(212,167,106,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.ep-tasks-stat b {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--gold);
  line-height: 1;
}
.ep-tasks-stat span {
  font-size: 9.5px;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.ep-tasks-stat--alert b { color: #FCA5A5; }
.ep-tasks-stat--today b { color: #7DD3FC; }
.ep-tasks-stat--done  b { color: #86EFAC; }

/* --- Filter chip rail --------------------------------------------------- */
.ep-tasks-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  margin: 14px 0 12px;
  scrollbar-width: none;
}
.ep-tasks-filter::-webkit-scrollbar { display: none; }
.ep-tasks-tab {
  appearance: none;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  box-shadow: 0 4px 12px rgba(45,21,32,.05);
}
.ep-tasks-tab:active { transform: scale(.97); }
.ep-tasks-tab.active {
  background: linear-gradient(155deg, #1A0E08, #5A1A2E);
  color: #fff;
  border-color: var(--maroon);
  box-shadow: 0 8px 18px rgba(123,45,65,.28);
}

.ep-tasks-list {
  display: grid;
  gap: 10px;
}

/* --- Task card (cream surface) ------------------------------------------ */
.ep-task-card {
  position: relative;
  display: grid;
  grid-template-columns: 6px 1fr 18px;
  gap: 12px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F1 100%);
  border: 1px solid var(--line-light);
  border-radius: 22px;
  padding: 14px 16px;
  cursor: pointer;
  align-items: center;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 12px 28px rgba(45,21,32,.08);
  width: 100%;
}
.ep-task-card:hover {
  box-shadow: 0 16px 36px rgba(45,21,32,.12);
  border-color: rgba(123,45,65,.18);
}
.ep-task-card:active { transform: scale(.985); }
.ep-task-rail {
  width: 6px;
  align-self: stretch;
  min-height: 56px;
  border-radius: 3px;
  background: var(--tone-blue-rail);
}
.ep-task-card--blue   .ep-task-rail { background: var(--tone-blue-rail); }
.ep-task-card--orange .ep-task-rail { background: var(--tone-orange-rail); }
.ep-task-card--red    .ep-task-rail { background: var(--tone-red-rail); }
.ep-task-card--slate  .ep-task-rail { background: var(--tone-slate-rail); }
.ep-task-card--overdue {
  border-color: rgba(185,28,28,.30);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF3F3 100%);
}
.ep-task-card--compact { padding: 12px 14px; }

.ep-task-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.ep-task-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.ep-task-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-task-meta {
  font-size: 11.5px;
  color: rgba(26,14,8,.62);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-task-chev {
  color: rgba(123,45,65,.45);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.ep-task-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--tone-slate-bg);
  color: var(--tone-slate-ink);
}
.ep-task-status--blue   { background: var(--tone-blue-bg);   color: var(--tone-blue-ink); }
.ep-task-status--amber  { background: var(--tone-amber-bg);  color: var(--tone-amber-ink); }
.ep-task-status--green  { background: var(--tone-green-bg);  color: var(--tone-green-ink); }
.ep-task-status--slate  { background: var(--tone-slate-bg);  color: var(--tone-slate-ink); }

.ep-task-due {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--tone-slate-bg);
  color: var(--tone-slate-ink);
  white-space: nowrap;
  letter-spacing: .01em;
}
.ep-task-due--overdue { background: var(--tone-red-bg);   color: var(--tone-red-ink); }
.ep-task-due--today   { background: var(--tone-blue-bg);  color: var(--tone-blue-ink); }
.ep-task-due--done    { background: var(--tone-green-bg); color: var(--tone-green-ink); }

.ep-task-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ep-task-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(123,45,65,.06);
  color: var(--tone-maroon-ink);
  font-weight: 700;
}

/* --- Bottom sheet (cream, light) ---------------------------------------- */
.ep-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.ep-sheet[aria-hidden="false"] { pointer-events: auto; }
.ep-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,14,8,.42);
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ep-sheet.open .ep-sheet-backdrop { opacity: 1; }
.ep-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(212,167,106,.10), transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF5EC 100%);
  border-radius: 28px 28px 0 0;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,.12,1);
  box-shadow: 0 -22px 60px rgba(45,21,32,.28);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ep-sheet.open .ep-sheet-panel { transform: translateY(0); }
.ep-sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(26,14,8,.18);
  margin: 10px auto 0;
  cursor: grab;
}
.ep-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 8px;
  gap: 12px;
}
.ep-sheet-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.025em;
  flex: 1;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-sheet-close {
  appearance: none;
  background: rgba(123,45,65,.06);
  color: var(--maroon);
  border: 1px solid rgba(123,45,65,.14);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -.005em;
}
.ep-sheet-close:active { transform: scale(.97); }
.ep-sheet-body {
  padding: 4px 22px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--ink);
}
.ep-no-scroll { overflow: hidden; }

/* --- Task detail layout (inside sheet, cream) --------------------------- */
.ep-task-detail {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}
.ep-task-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ep-task-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--tone-blue-bg);
  color: var(--tone-blue-ink);
}
.ep-task-priority--blue   { background: var(--tone-blue-bg);   color: var(--tone-blue-ink); }
.ep-task-priority--orange { background: var(--tone-orange-bg); color: var(--tone-orange-ink); }
.ep-task-priority--red    { background: var(--tone-red-bg);    color: var(--tone-red-ink); }
.ep-task-priority--slate  { background: var(--tone-slate-bg);  color: var(--tone-slate-ink); }

.ep-task-supervisor {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF, #FFF9F1);
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 24px rgba(45,21,32,.05);
}
.ep-task-supervisor span {
  color: rgba(123,45,65,.56);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.ep-task-supervisor strong {
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.01em;
}
.ep-task-supervisor small {
  color: rgba(26,14,8,.58);
  font-size: 12px;
  font-weight: 600;
}

.ep-task-description {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(26,14,8,.82);
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(212,167,106,.08);
  border: 1px solid rgba(212,167,106,.18);
}
.ep-task-section h4 {
  margin: 0 0 10px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(123,45,65,.56);
  font-weight: 900;
}
.ep-task-hint {
  margin: 6px 0 0;
  color: rgba(26,14,8,.58);
  font-size: 12.5px;
  font-weight: 600;
}

/* Status segmented control (cream) */
.ep-task-status-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #F4ECDF;
  border-radius: 14px;
  padding: 4px;
  border: 1px solid var(--line-light);
}
.ep-task-status-pill {
  appearance: none;
  background: transparent;
  color: rgba(26,14,8,.62);
  border: 0;
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ep-task-status-pill.active {
  background: #FFFFFF;
  color: var(--maroon);
  box-shadow: 0 6px 14px rgba(45,21,32,.10), inset 0 0 0 1px rgba(123,45,65,.12);
}
.ep-task-status-pill[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

/* Subtasks */
.ep-task-subtasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.ep-task-subtask {
  padding: 11px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}
.ep-task-subtask.done {
  opacity: .55;
  text-decoration: line-through;
}

/* Attachments grid */
.ep-task-attachments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ep-task-att {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-light);
  padding-bottom: 10px;
  box-shadow: 0 8px 18px rgba(45,21,32,.06);
}
.ep-task-att-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(135deg, #F4ECDF, #E8DAB8);
  overflow: hidden;
}
.ep-task-att-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-task-att-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--maroon);
}
.ep-task-att-meta {
  display: grid;
  gap: 2px;
  padding: 0 12px;
}
.ep-task-att-meta strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-task-att-meta small {
  color: rgba(26,14,8,.54);
  font-size: 11px;
  font-weight: 600;
}
.ep-task-att-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(26,14,8,.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* Upload control */
.ep-task-upload {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border: 1.5px dashed rgba(123,45,65,.24);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  margin-top: 10px;
  background: linear-gradient(145deg, rgba(212,167,106,.08), rgba(255,255,255,.0));
  transition: background .15s ease, border-color .15s ease;
}
.ep-task-upload:hover {
  background: rgba(212,167,106,.12);
  border-color: rgba(123,45,65,.42);
}
.ep-task-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}
.ep-task-upload-cta {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: -.005em;
}
.ep-task-upload small {
  color: rgba(26,14,8,.56);
  font-size: 11.5px;
  font-weight: 600;
}

/* Comments */
.ep-task-comments {
  display: grid;
  gap: 10px;
}
.ep-task-comment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  box-shadow: 0 6px 14px rgba(45,21,32,.04);
}
.ep-task-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7B2D41, #D4A76A);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ep-task-comment-body strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
}
.ep-task-comment-body small {
  color: rgba(26,14,8,.52);
  font-size: 11px;
  margin-left: 6px;
  font-weight: 600;
}
.ep-task-comment-body p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(26,14,8,.82);
  font-weight: 600;
}
.ep-task-comment-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.ep-task-comment-form textarea {
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 80px;
}
.ep-task-comment-form textarea:focus {
  outline: 0;
  border-color: rgba(123,45,65,.55);
  box-shadow: 0 0 0 3px rgba(123,45,65,.10);
}

/* Activity timeline (compact) */
.ep-task-activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ep-task-activity li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 12.5px;
  color: rgba(26,14,8,.68);
  font-weight: 600;
}
.ep-task-act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--maroon);
  margin-top: 6px;
}
.ep-task-activity strong {
  color: var(--ink);
  font-weight: 800;
}
.ep-task-activity em {
  color: var(--maroon);
  font-style: normal;
  font-weight: 700;
}
.ep-task-activity small {
  display: block;
  color: rgba(26,14,8,.46);
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: .04em;
}

/* --- Refactored Requests actions ---------------------------------------- */
.ep-request-actions {
  display: grid;
  gap: 10px;
}
.ep-request-action {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 14px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F1 100%);
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  padding: 14px 16px;
  cursor: pointer;
  align-items: center;
  text-align: left;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 12px 28px rgba(45,21,32,.08);
  width: 100%;
}
.ep-request-action:hover {
  box-shadow: 0 16px 36px rgba(45,21,32,.12);
  border-color: rgba(123,45,65,.18);
}
.ep-request-action:active { transform: scale(.985); }
.ep-request-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-blue-bg);
  color: var(--tone-blue-ink);
  border: 1px solid rgba(14,165,233,.18);
}
.ep-request-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ep-request-action--swap .ep-request-action-icon {
  background: var(--tone-gold-bg);
  color: var(--tone-gold-ink);
  border-color: rgba(212,167,106,.30);
}
.ep-request-action--other .ep-request-action-icon {
  background: var(--tone-green-bg);
  color: var(--tone-green-ink);
  border-color: rgba(21,128,61,.20);
}
.ep-request-action-body strong {
  display: block;
  font-size: 15.5px;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 800;
}
.ep-request-action-body small {
  display: block;
  color: rgba(26,14,8,.58);
  font-size: 12px;
  margin-top: 2px;
  font-weight: 600;
}
.ep-request-action-chev {
  color: rgba(123,45,65,.45);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

/* Sheet form layout (leave/swap/other) */
.ep-sheet-form {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}
.ep-sheet-form label {
  font-size: 10.5px;
  color: rgba(123,45,65,.56);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.ep-sheet-form input,
.ep-sheet-form select,
.ep-sheet-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 650;
}
.ep-sheet-form input:focus,
.ep-sheet-form select:focus,
.ep-sheet-form textarea:focus {
  outline: 0;
  border-color: rgba(123,45,65,.55);
  box-shadow: 0 0 0 3px rgba(123,45,65,.10);
}
.ep-sheet-form .ep-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ep-sheet-form button[type="submit"] {
  margin-top: 6px;
  background: linear-gradient(155deg, #1A0E08, #5A1A2E, #7B2D41);
  color: #fff;
  border: 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -.005em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(123,45,65,.24);
}
.ep-sheet-form button[type="submit"]:active { transform: scale(.985); }

/* --- Bottom-nav badge (cream pill bar) ---------------------------------- */
.ep-bottom-nav .ep-nav-icon { position: relative; }
.ep-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #B91C1C;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #FFFFFF, 0 4px 8px rgba(185,28,28,.40);
}

/* --- Shift swap picker (inside ep-sheet--swap) -------------------------- */
.ep-swap {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.ep-swap-step {
  display: grid;
  gap: 12px;
  transition: opacity .2s ease;
}
.ep-swap-step.is-locked {
  opacity: .42;
  pointer-events: none;
}

.ep-swap-step-head {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
}
.ep-swap-step-index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #1A0E08, #5A1A2E, #7B2D41);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.02em;
  box-shadow: 0 6px 14px rgba(123,45,65,.30);
}
.ep-swap-step-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-transform: none;
}
.ep-swap-step-head p {
  margin: 2px 0 0;
  color: rgba(26,14,8,.58);
  font-size: 12.5px;
  font-weight: 600;
}

/* Step 1 — shift cards (vertical list, scrollable in the sheet) */
/* Step 1 — pick a shift.
 * Layout is a single column of full-width cards, each one a generous
 * tap target (min 84px) optimised for thumb reach on phones. No nested
 * scroll: the sheet body owns scrolling so the user sees every shift in
 * one flow. */
.ep-swap-shifts {
  display: grid;
  gap: 10px;
  padding: 2px 0;
  overflow: visible;
}

.ep-swap-shift {
  position: relative;
  appearance: none;
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 12px 14px 12px 14px;
  padding-left: 22px;                     /* room for the colored side rail */
  border-radius: 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-light);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 14px rgba(45,21,32,.05);
  overflow: hidden;
}
.ep-swap-shift:active { transform: scale(.985); }
.ep-swap-shift.is-today {
  border-color: rgba(212,167,106,.55);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFAF1 100%);
}
.ep-swap-shift.is-active {
  border-color: var(--maroon);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF3F5 100%);
  box-shadow: 0 12px 24px rgba(123,45,65,.18);
}
/* Side rail uses absolute positioning so it always hugs the left edge at
 * the card's full height — fixes the previous flat strip look. */
.ep-swap-shift-rail {
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 6px;
  background: var(--maroon);
}

/* Date pill — chunky iOS-style box that always shows three lines:
 * day name on top, big number in the middle, month on the bottom. */
.ep-swap-shift-date {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(123,45,65,.06);
  text-align: center;
}
.ep-swap-shift.is-today .ep-swap-shift-date {
  background: linear-gradient(145deg, rgba(212,167,106,.18), rgba(212,167,106,.08));
}
.ep-swap-shift.is-active .ep-swap-shift-date {
  background: linear-gradient(145deg, rgba(123,45,65,.16), rgba(123,45,65,.08));
}
.ep-swap-shift-date small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: .72;
  line-height: 1;
}
.ep-swap-shift-date b {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.ep-swap-shift-date em {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: .72;
  line-height: 1;
}

/* Body — day label (TODAY / TOMORROW / TUE) sits above an iOS-style
 * two-pill time badge.  We deliberately drop the generic shift title
 * ("Global Shift 03") because it's the same name for every shift in the
 * roster and adds no meaning for the employee. */
.ep-swap-shift-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.ep-swap-shift-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--maroon);
  opacity: .82;
  line-height: 1;
}
.ep-swap-shift.is-today .ep-swap-shift-label {
  color: #B07330;
  opacity: 1;
}

/* In-time → out-time badge — two rounded pills joined by an arrow.
 * Tabular numerals keep the digits aligned so the cards feel uniform. */
.ep-swap-shift-times {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.ep-swap-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(123,45,65,.08);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(123,45,65,.10);
  white-space: nowrap;
}
.ep-swap-time-badge-single {
  font-size: 13px;
  font-weight: 700;
}
.ep-swap-time-arrow {
  color: var(--maroon);
  opacity: .55;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.ep-swap-shift.is-today .ep-swap-time-badge {
  background: linear-gradient(145deg, rgba(212,167,106,.20), rgba(212,167,106,.10));
  box-shadow: inset 0 0 0 1px rgba(212,167,106,.32);
  color: #5A3D14;
}
.ep-swap-shift.is-today .ep-swap-time-arrow {
  color: #B07330;
  opacity: .9;
}
.ep-swap-shift.is-active .ep-swap-time-badge {
  background: linear-gradient(145deg, rgba(123,45,65,.16), rgba(123,45,65,.08));
  box-shadow: inset 0 0 0 1px rgba(123,45,65,.26);
  color: var(--maroon);
}
.ep-swap-shift.is-active .ep-swap-time-arrow {
  color: var(--maroon);
  opacity: 1;
}

/* Tick — iOS-style filled circle that appears on the right when active. */
.ep-swap-shift-tick {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  transform: scale(.6);
}
.ep-swap-shift.is-active .ep-swap-shift-tick {
  opacity: 1;
  transform: scale(1);
}

/* Tiny screens — squeeze without breaking */
@media (max-width: 380px) {
  .ep-swap-shift { padding-left: 20px; gap: 12px; min-height: 80px; }
  .ep-swap-shift-date { flex-basis: 58px; }
  .ep-swap-shift-date b { font-size: 22px; }
  .ep-swap-time-badge { font-size: 14px; padding: 4px 10px; min-height: 28px; }
  .ep-swap-time-arrow { font-size: 13px; }
  .ep-swap-shift-times { gap: 5px; }
}

/* Step 2 — teammate grid. Two columns on phones gives each avatar enough
 * breathing room; the parent sheet handles scrolling. */
.ep-swap-mates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 2px 0;
  overflow: visible;
}
@media (min-width: 420px) {
  .ep-swap-mates { grid-template-columns: repeat(3, 1fr); }
}

.ep-swap-mate {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  min-height: 130px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-light);
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 10px rgba(45,21,32,.05);
}
.ep-swap-mate:active { transform: scale(.95); }
.ep-swap-mate.is-active {
  border-color: var(--maroon);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF3F5 100%);
  box-shadow: 0 12px 24px rgba(123,45,65,.18);
}
.ep-swap-mate-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7B2D41, #D4A76A);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(45,21,32,.16);
}
.ep-swap-mate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-swap-mate.is-active .ep-swap-mate-avatar {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123,45,65,.18);
}
.ep-swap-mate-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}
.ep-swap-mate small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(26,14,8,.55);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ep-swap-empty-mini {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(212,167,106,.10);
  border: 1px dashed rgba(212,167,106,.30);
  text-align: center;
  color: rgba(26,14,8,.62);
  font-size: 13px;
  font-weight: 700;
}

/* Step 3 — type segmented control + trade panel + note */
.ep-swap-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #F4ECDF;
  border-radius: 14px;
  padding: 4px;
  border: 1px solid var(--line-light);
}
.ep-swap-type-pill {
  appearance: none;
  background: transparent;
  color: rgba(26,14,8,.62);
  border: 0;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ep-swap-type-pill.is-active {
  background: #FFFFFF;
  color: var(--maroon);
  box-shadow: 0 6px 14px rgba(45,21,32,.10), inset 0 0 0 1px rgba(123,45,65,.14);
}

.ep-swap-trade-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(212,167,106,.10);
  border: 1px solid rgba(212,167,106,.22);
}
.ep-swap-trade-panel label {
  font-size: 10.5px;
  color: rgba(123,45,65,.62);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.ep-swap-trade-panel input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
}
.ep-swap-trade-panel input[type="date"]:focus {
  outline: 0;
  border-color: rgba(123,45,65,.55);
  box-shadow: 0 0 0 3px rgba(123,45,65,.10);
}
.ep-swap-hint {
  margin: 0;
  font-size: 11.5px;
  color: rgba(26,14,8,.58);
  font-weight: 600;
}

.ep-swap-note-label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(123,45,65,.56);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.ep-swap textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 72px;
  resize: vertical;
}
.ep-swap textarea:focus {
  outline: 0;
  border-color: rgba(123,45,65,.55);
  box-shadow: 0 0 0 3px rgba(123,45,65,.10);
}

/* Summary card + primary submit button */
.ep-swap-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(155deg, #1A0E08, #5A1A2E, #7B2D41);
  color: #fff;
  border: 1px solid rgba(212,167,106,.22);
  box-shadow: 0 14px 30px rgba(45,21,32,.22);
}
.ep-swap-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ep-swap-summary-row span {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(212,167,106,.82);
}
.ep-swap-summary-row strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  text-align: right;
}
.ep-swap-summary small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  font-weight: 650;
}
.ep-swap-summary small b {
  color: var(--gold);
  font-weight: 800;
}

.ep-primary-btn.ep-swap-submit {
  margin-top: 4px;
  padding: 15px 18px;
  background: linear-gradient(155deg, #1A0E08, #5A1A2E, #7B2D41);
  color: #fff;
  border: 0;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(123,45,65,.30);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}
.ep-primary-btn.ep-swap-submit:active { transform: scale(.985); }
.ep-primary-btn.ep-swap-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.ep-swap-empty {
  padding: 32px 12px;
  text-align: center;
}

/* --- Recent requests list (Requests tab footer) ------------------------- */
.ep-request-list {
  display: grid;
  gap: 10px;
}
.ep-request-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F1 100%);
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 22px rgba(45,21,32,.06);
}
.ep-request-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ep-request-item-kind {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  color: rgba(123,45,65,.56);
}
.ep-request-item b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.ep-request-item-date {
  font-size: 12.5px;
  color: rgba(26,14,8,.62);
  font-weight: 700;
}
.ep-request-item small {
  font-size: 12px;
  color: rgba(26,14,8,.55);
  font-weight: 600;
  line-height: 1.45;
}
.ep-request-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ep-request-status--amber { background: var(--tone-amber-bg); color: var(--tone-amber-ink); }
.ep-request-status--green { background: var(--tone-green-bg); color: var(--tone-green-ink); }
.ep-request-status--red   { background: var(--tone-red-bg);   color: var(--tone-red-ink); }

/* --- Responsive trims --------------------------------------------------- */
@media (max-width: 380px) {
  .ep-tasks-hero { padding: 18px 18px 16px; }
  .ep-tasks-hero-head h2 { font-size: 24px; }
  .ep-tasks-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ep-task-attachments { grid-template-columns: 1fr; }
  .ep-tasks-pills { grid-template-columns: repeat(3, 1fr); }
  .ep-task-status-picker { grid-template-columns: repeat(2, 1fr); }
  .ep-swap-mates { grid-template-columns: repeat(2, 1fr); }
}

/* --- MyMahajana launch / phone sign-in ---------------------------------- */
.ep-auth {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  align-content: stretch;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.86), transparent 30%),
    radial-gradient(circle at 92% 9%, rgba(212,167,106,.32), transparent 33%),
    radial-gradient(circle at 6% 90%, rgba(123,45,65,.14), transparent 34%),
    linear-gradient(155deg, #FFFDF8 0%, #FAF7F5 42%, #F2E8DD 100%);
}

.ep-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(90,26,46,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,26,46,.026) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 72%);
}

.ep-auth-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ep-auth-ambient span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(.2px);
}

.ep-auth-ambient span:nth-child(1) {
  width: 190px;
  height: 190px;
  top: -72px;
  right: -64px;
  background: linear-gradient(145deg, rgba(90,26,46,.28), rgba(212,167,106,.14));
}

.ep-auth-ambient span:nth-child(2) {
  width: 124px;
  height: 124px;
  left: -52px;
  bottom: 108px;
  border: 1px solid rgba(123,45,65,.14);
  background: rgba(255,255,255,.42);
}

.ep-auth-ambient span:nth-child(3) {
  width: 320px;
  height: 320px;
  right: -180px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(212,167,106,.22), transparent 66%);
}

.ep-auth-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  min-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 14px;
  align-items: end;
}

.ep-auth-brand {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 8px 2px 12px;
}

.ep-auth-logo {
  width: 92px;
  max-height: none;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  margin: 0;
  filter: drop-shadow(0 18px 28px rgba(45,21,32,.18));
}

.ep-auth-brand .ep-kicker {
  color: rgba(123,45,65,.62);
  letter-spacing: .20em;
}

.ep-auth h1 {
  max-width: 360px;
  margin: 6px 0 8px;
  color: #1A0E08;
  font-size: clamp(42px, 13vw, 56px);
  line-height: .88;
  letter-spacing: -.065em;
}

.ep-auth .ep-muted {
  max-width: 330px;
  color: rgba(26,14,8,.62);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}

.ep-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-auth-trust span {
  padding: 8px 11px;
  border: 1px solid rgba(123,45,65,.10);
  border-radius: 999px;
  color: #5A1A2E;
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 20px rgba(45,21,32,.06);
  font-size: 11px;
  font-weight: 950;
}

.ep-auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 34px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,249,241,.72)),
    rgba(255,255,255,.72);
  box-shadow:
    0 26px 62px rgba(45,21,32,.18),
    inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
}

.ep-auth-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -54px;
  width: 142px;
  height: 142px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,167,106,.20), transparent 68%);
  pointer-events: none;
}

.ep-auth-card > * {
  position: relative;
  z-index: 1;
}

.ep-login-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.ep-login-orb {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.78), transparent 30%),
    linear-gradient(145deg, #D4A76A, #7B2D41);
  box-shadow: 0 14px 24px rgba(123,45,65,.22);
}

.ep-login-panel-head h2 {
  margin: 3px 0 0;
  color: #1A0E08;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.045em;
}

.ep-auth .ep-form {
  gap: 12px;
  margin-top: 0;
}

.ep-auth .ep-form label {
  color: rgba(123,45,65,.72);
  font-size: 10px;
  letter-spacing: .18em;
}

.ep-phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 14px;
  border: 1px solid rgba(123,45,65,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.ep-phone-field span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-right: 10px;
  border-right: 1px solid rgba(123,45,65,.12);
  color: #7B2D41;
  font-size: 14px;
  font-weight: 950;
}

.ep-phone-field input,
.ep-auth #epOtp {
  min-height: 44px;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  color: #1A0E08;
  background: transparent;
  font-size: 17px;
  font-weight: 850;
}

.ep-auth #epOtp {
  min-height: 58px;
  padding: 0 15px;
  border: 1px solid rgba(123,45,65,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.ep-phone-field:focus-within,
.ep-auth #epOtp:focus {
  border-color: rgba(123,45,65,.42);
  box-shadow: 0 0 0 4px rgba(123,45,65,.10), inset 0 1px 0 rgba(255,255,255,.74);
}

.ep-auth .ep-primary-btn {
  min-height: 54px;
  border-radius: 19px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(212,167,106,.22), transparent 42%),
    linear-gradient(135deg, #7B2D41 0%, #5A1A2E 72%, #1A0E08 130%);
  box-shadow: 0 18px 30px rgba(90,26,46,.28);
  letter-spacing: -.01em;
}

.ep-auth .ep-link-btn {
  color: #7B2D41;
}

.ep-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.ep-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(216,160,23,.22), transparent 34%),
    rgba(30, 8, 16, .48);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.ep-auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 352px);
  animation: epAuthModalPop .38s cubic-bezier(.16,1,.3,1) both;
}

.ep-auth-lookup,
.ep-employee-confirm {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(123,45,65,.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 12%, rgba(216,160,23,.20), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,244,231,.78));
  box-shadow: 0 28px 70px rgba(30,8,16,.30), inset 0 1px 0 rgba(255,255,255,.78);
}

.ep-auth-lookup {
  place-items: center;
  min-height: 212px;
  text-align: center;
  overflow: hidden;
}

.ep-auth-lookup-orb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(133,16,31,.96), rgba(91,6,20,.98)),
    var(--mm-maroon);
  box-shadow: 0 20px 38px rgba(91,6,20,.24), inset 0 1px 0 rgba(255,255,255,.18);
}

.ep-auth-lookup-orb::before,
.ep-auth-lookup-orb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(216,160,23,.62);
  animation: epAuthScan 1.9s ease-in-out infinite;
}

.ep-auth-lookup-orb::after {
  inset: 25px 12px;
  border-left: 0;
  border-right: 0;
  border-radius: 999px;
  animation-delay: .38s;
}

.ep-auth-lookup b {
  color: var(--mm-maroon-deep);
  font-size: 19px;
  letter-spacing: -.02em;
}

.ep-auth-lookup span {
  min-height: 20px;
  color: rgba(26,14,8,.62);
  font-size: 13px;
  font-weight: 750;
  transition: opacity .18s ease, transform .18s ease;
}

.ep-auth-lookup span.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.ep-auth-lookup-bars {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 6px;
  margin-top: 2px;
}

.ep-auth-lookup-bars i {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(133,16,31,.28), rgba(216,160,23,.72), rgba(133,16,31,.28));
  background-size: 180% 100%;
  animation: epAuthSignal 1.15s ease-in-out infinite;
}

.ep-auth-lookup-bars i:nth-child(2) { animation-delay: .18s; }
.ep-auth-lookup-bars i:nth-child(3) { animation-delay: .36s; }

.ep-employee-confirm-head {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 13px;
}

.ep-employee-confirm-head > span {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--mm-maroon), var(--mm-maroon-deep));
  box-shadow: 0 16px 30px rgba(91,6,20,.22), 0 0 0 5px rgba(216,160,23,.14);
}

.ep-employee-confirm-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-employee-confirm-head small {
  display: block;
  color: rgba(133,16,31,.62);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.ep-employee-confirm-head b {
  display: block;
  margin-top: 4px;
  color: var(--mm-maroon-deep);
  font-size: 20px;
  letter-spacing: -.03em;
}

.ep-employee-confirm-head em {
  display: block;
  margin-top: 3px;
  color: rgba(26,14,8,.55);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.ep-employee-confirm p {
  margin: 2px 0 0;
  color: rgba(26,14,8,.64);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

@keyframes epAuthScan {
  0%, 100% { opacity: .45; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes epAuthSignal {
  0%, 100% { opacity: .45; background-position: 0% 50%; transform: scaleX(.76); }
  50% { opacity: 1; background-position: 100% 50%; transform: scaleX(1); }
}

@keyframes epAuthConfirmRise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes epAuthModalPop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ep-auth-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ep-auth-feature-grid article {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(123,45,65,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 14px 28px rgba(45,21,32,.07);
}

.ep-auth-feature-grid b {
  display: block;
  color: #5A1A2E;
  font-size: 16px;
  letter-spacing: -.03em;
}

.ep-auth-feature-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(26,14,8,.55);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 750;
}

.ep-auth .ep-status {
  min-height: 18px;
  color: rgba(26,14,8,.58);
}

@media (max-width: 380px) {
  .ep-auth {
    padding-inline: 14px;
  }
  .ep-auth-stage {
    width: min(100%, 360px);
    gap: 10px;
  }
  .ep-auth-logo {
    width: 78px;
    border-radius: 21px;
  }
  .ep-auth h1 {
    font-size: clamp(36px, 13vw, 46px);
  }
  .ep-auth-card {
    padding: 15px;
    border-radius: 30px;
  }
  .ep-auth-feature-grid {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-auth *,
  .ep-auth *::before,
  .ep-auth *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- MyMahajana maroon identity refresh --------------------------------- */
.ep-splash {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 24% 18%, rgba(212,167,106,.20), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.10), transparent 24%),
    radial-gradient(circle at 42% 86%, rgba(123,45,65,.38), transparent 36%),
    linear-gradient(155deg, #12060B 0%, #2A0F1A 42%, #5A1A2E 78%, #7B2D41 118%);
}

.ep-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 72%);
}

.ep-splash::after {
  content: "";
  position: relative;
  z-index: 2;
  width: 118px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #D4A76A, transparent);
  box-shadow: 0 0 22px rgba(212,167,106,.48);
  animation: epSplashLoad 2s cubic-bezier(.2,.8,.2,1) both;
}

.ep-splash-orbit {
  width: 292px;
  height: 292px;
  border: 1px solid rgba(212,167,106,.20);
  background:
    conic-gradient(from 0deg, transparent, rgba(212,167,106,.72), transparent 34%),
    radial-gradient(circle, rgba(255,255,255,.08), transparent 62%);
  animation: epSplashOrbit 2s linear infinite;
}

.ep-logo {
  width: min(68vw, 260px);
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,.34));
  animation: epSplashLogo 2s cubic-bezier(.2,.8,.2,1) both;
}

.ep-splash .ep-kicker {
  color: rgba(212,167,106,.86);
}

.ep-splash h1 {
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.24);
}

.ep-splash .ep-muted {
  color: rgba(255,255,255,.72);
}

.ep-auth {
  color: #fff;
  background:
    radial-gradient(circle at 10% -4%, rgba(212,167,106,.24), transparent 30%),
    radial-gradient(circle at 88% 9%, rgba(255,255,255,.11), transparent 26%),
    radial-gradient(circle at 10% 84%, rgba(123,45,65,.48), transparent 34%),
    linear-gradient(158deg, #13070C 0%, #2A0F1A 46%, #5A1A2E 86%, #7B2D41 128%);
}

.ep-auth::before {
  background:
    linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 74%);
}

.ep-auth-ambient span:nth-child(1) {
  background: linear-gradient(145deg, rgba(212,167,106,.32), rgba(255,255,255,.06));
}

.ep-auth-ambient span:nth-child(2) {
  border-color: rgba(212,167,106,.14);
  background: rgba(255,255,255,.06);
}

.ep-auth-logo {
  width: min(46vw, 178px);
  max-height: 142px;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.28));
}

.ep-auth-brand .ep-kicker {
  color: rgba(212,167,106,.88);
}

.ep-auth h1 {
  color: #fff;
  text-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.ep-auth .ep-muted {
  color: rgba(255,255,255,.72);
}

.ep-auth-trust span,
.ep-auth-feature-grid article {
  border-color: rgba(212,167,106,.16);
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}

.ep-auth-feature-grid b {
  color: #F8E2B8;
}

.ep-auth-feature-grid span {
  color: rgba(255,255,255,.68);
}

.ep-auth-card {
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,249,241,.78)),
    rgba(255,255,255,.78);
  box-shadow:
    0 28px 70px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.72);
}

@keyframes epSplashOrbit {
  to { transform: rotate(360deg); }
}

@keyframes epSplashTelemetry {
  0%, 100% { opacity: .72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes epSplashSignal {
  0% { background-position: 130% 0; opacity: .35; }
  36% { opacity: .92; }
  100% { background-position: -40% 0; opacity: .5; }
}

@keyframes epSplashStatus {
  0%, 58% { opacity: 0; transform: translateY(22px); }
  72%, 100% { opacity: .82; transform: translateY(0); }
}

@keyframes epSplashLogo {
  0% { opacity: 0; transform: translateY(16px) scale(.92); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  42% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 24px 44px rgba(0,0,0,.34)); }
}

@keyframes epSplashLoad {
  0% { opacity: 0; transform: scaleX(.15); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 380px) {
  .ep-logo { width: min(72vw, 230px); }
  .ep-auth-logo { width: min(50vw, 148px); }
}

/* --- Brand guideline alignment pass ------------------------------------- */
:root {
  --mm-cream: #FFF7EE;
  --mm-cream-2: #F7EBDD;
  --mm-paper: #FFFDF8;
  --mm-maroon: #85101F;
  --mm-maroon-rich: #A0162B;
  --mm-maroon-deep: #5B0614;
  --mm-gold: #D8A017;
  --mm-ink: #141414;
  --mm-muted: rgba(20,20,20,.58);
}

body {
  background:
    radial-gradient(circle at 92% 0%, rgba(216,160,23,.10), transparent 30%),
    linear-gradient(180deg, var(--mm-cream) 0%, #F2E4D5 100%);
}

.ep-app,
.ep-shell {
  background: var(--mm-cream);
}

.ep-splash {
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
  color: var(--mm-ink);
  background:
    radial-gradient(circle at 50% 42%, rgba(216,160,23,.10), transparent 36%),
    radial-gradient(circle at 96% -5%, rgba(133,16,31,.12), transparent 32%),
    linear-gradient(180deg, #FFFDF8 0%, var(--mm-cream) 62%, #F5E6D7 100%);
}

.ep-splash::before {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(133,16,31,.035) 50%, transparent 51%),
    linear-gradient(180deg, transparent 0 49%, rgba(216,160,23,.035) 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(216,160,23,.08) 43% 43.5%, transparent 44%),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(216,160,23,.07) 55% 55.5%, transparent 56%);
  background-size: 28px 28px, 28px 28px, 520px 520px, 520px 520px;
  background-position: center 34%;
  mask-image: none;
  opacity: .78;
}

.ep-splash::after {
  position: absolute;
  left: auto;
  right: -34px;
  bottom: -64px;
  width: 220px;
  height: 220px;
  border-radius: 58% 0 0 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(216,160,23,.55), transparent 32%),
    linear-gradient(145deg, var(--mm-maroon-rich), var(--mm-maroon-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  transform: none;
  animation: none;
}

.ep-splash-orbit {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  justify-self: center;
  width: 164px;
  height: 30px;
  order: 4;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid rgba(133,16,31,.12);
  background:
    linear-gradient(90deg, rgba(133,16,31,.08), rgba(216,160,23,.16), rgba(133,16,31,.08)),
    rgba(255,253,248,.74);
  box-shadow:
    0 16px 34px rgba(133,16,31,.08),
    inset 0 1px 0 rgba(255,255,255,.82);
  overflow: hidden;
  filter: none;
  animation: epSplashTelemetry 2s ease-in-out infinite;
}

.ep-splash-orbit::before {
  content: "";
  position: absolute;
  inset: 7px 12px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(133,16,31,.16) 0 12%, transparent 12% 22%, rgba(216,160,23,.55) 22% 36%, transparent 36% 48%, rgba(133,16,31,.22) 48% 58%, transparent 58% 72%, rgba(216,160,23,.42) 72% 84%, transparent 84% 100%);
  background-size: 180% 100%;
  animation: epSplashSignal 1.8s cubic-bezier(.45,0,.2,1) infinite;
}

.ep-splash-orbit::after {
  content: "SECURE SYNC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(91,6,20,.54);
  font-size: 8.5px;
  font-weight: 1000;
  letter-spacing: .22em;
  transform: translateY(22px);
  animation: epSplashStatus 2s ease-in-out infinite;
}

.ep-logo {
  width: min(58vw, 210px);
  margin-bottom: 8px;
  filter: drop-shadow(0 18px 34px rgba(133,16,31,.14));
}

.ep-splash .ep-kicker {
  color: var(--mm-gold);
}

.ep-splash h1 {
  color: var(--mm-maroon);
  font-size: clamp(31px, 9vw, 42px);
  text-shadow: none;
}

.ep-splash .ep-muted {
  max-width: 280px;
  color: rgba(20,20,20,.58);
}

.ep-auth {
  color: var(--mm-ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(216,160,23,.10), transparent 30%),
    radial-gradient(circle at 110% -10%, rgba(133,16,31,.14), transparent 34%),
    linear-gradient(180deg, #FFFDF8 0%, var(--mm-cream) 58%, #F3E3D4 100%);
}

.ep-auth::before {
  background:
    radial-gradient(circle at 50% 44%, transparent 0 42%, rgba(216,160,23,.07) 43% 43.5%, transparent 44%),
    linear-gradient(rgba(133,16,31,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133,16,31,.018) 1px, transparent 1px);
  background-size: 520px 520px, 44px 44px, 44px 44px;
  background-position: center 0, 0 0, 0 0;
  mask-image: none;
}

.ep-auth::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 170px;
  height: 170px;
  border-radius: 0 0 0 120px;
  background:
    radial-gradient(circle at 20% 80%, rgba(216,160,23,.62), transparent 26%),
    linear-gradient(145deg, var(--mm-maroon), var(--mm-maroon-rich));
  pointer-events: none;
}

.ep-auth-ambient span:nth-child(1),
.ep-auth-ambient span:nth-child(2),
.ep-auth-ambient span:nth-child(3) {
  opacity: .16;
}

.ep-auth-stage {
  width: min(100%, 374px);
  min-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}

.ep-auth-brand {
  align-self: start;
  padding-top: 18px;
  color: var(--mm-ink);
}

.ep-auth-logo {
  width: min(38vw, 132px);
  max-height: 108px;
  filter: drop-shadow(0 18px 28px rgba(133,16,31,.14));
}

.ep-auth-brand .ep-kicker,
.ep-auth .ep-form label,
.ep-login-panel-head .ep-kicker {
  color: rgba(133,16,31,.62);
}

.ep-auth h1 {
  max-width: 330px;
  color: var(--mm-ink);
  font-size: clamp(34px, 10vw, 46px);
  letter-spacing: -.07em;
  text-shadow: none;
}

.ep-auth .ep-muted {
  max-width: 310px;
  color: var(--mm-muted);
}

.ep-auth-trust span {
  color: var(--mm-maroon);
  border-color: rgba(133,16,31,.09);
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 24px rgba(133,16,31,.07);
}

.ep-auth-card {
  align-self: end;
  border-color: rgba(133,16,31,.08);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,249,241,.88)),
    var(--mm-paper);
  box-shadow: 0 24px 58px rgba(91,6,20,.16), inset 0 1px 0 rgba(255,255,255,.82);
}

.ep-login-orb {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.78), transparent 30%),
    linear-gradient(145deg, var(--mm-gold), var(--mm-maroon));
}

.ep-login-panel-head h2,
.ep-auth-feature-grid b {
  color: var(--mm-ink);
}

.ep-phone-field,
.ep-auth #epOtp {
  border-color: rgba(133,16,31,.12);
  background: rgba(255,255,255,.82);
}

.ep-phone-field span {
  color: var(--mm-maroon);
}

.ep-auth .ep-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #E0A126 0%, #D8A017 16%, var(--mm-maroon) 64%, var(--mm-maroon-deep) 100%);
  box-shadow: 0 16px 30px rgba(133,16,31,.24);
}

.ep-auth-feature-grid article {
  color: var(--mm-ink);
  border-color: rgba(133,16,31,.08);
  background: rgba(255,255,255,.70);
  box-shadow: 0 14px 28px rgba(133,16,31,.07);
}

.ep-auth-feature-grid span {
  color: var(--mm-muted);
}

/* Premium animated landing screen for MyMahajana. */
.ep-auth {
  isolation: isolate;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 92% 4%, rgba(133,16,31,.36), transparent 24%),
    radial-gradient(circle at 12% 16%, rgba(216,160,23,.20), transparent 28%),
    radial-gradient(circle at 50% 62%, rgba(133,16,31,.10), transparent 34%),
    linear-gradient(180deg, #FFFDF8 0%, #FFF4E7 48%, #E8D7CB 100%);
}

.ep-auth::before {
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255,255,255,.45) 40%, transparent 47%),
    radial-gradient(circle at 50% 42%, transparent 0 37%, rgba(216,160,23,.075) 38% 38.5%, transparent 39%),
    radial-gradient(circle at 50% 42%, transparent 0 53%, rgba(133,16,31,.055) 54% 54.4%, transparent 55%),
    linear-gradient(rgba(91,6,20,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,6,20,.022) 1px, transparent 1px);
  background-size: 220% 100%, 520px 520px, 620px 620px, 34px 34px, 34px 34px;
  background-position: -80% 0, center -12px, center 16px, 0 0, 0 0;
  opacity: .95;
  animation: epAuthSheen 7s cubic-bezier(.2,.8,.2,1) infinite;
}

.ep-auth::after {
  right: -36px;
  top: -32px;
  width: 168px;
  height: 168px;
  border-radius: 0 0 0 132px;
  background:
    radial-gradient(circle at 28% 82%, rgba(216,160,23,.72), transparent 25%),
    linear-gradient(145deg, #A0162B, #6A0718);
  box-shadow: 0 28px 70px rgba(133,16,31,.28);
  animation: epAuthCornerFloat 6s ease-in-out infinite;
}

.ep-auth-ambient span:nth-child(1) {
  opacity: .30;
  background: radial-gradient(circle, rgba(216,160,23,.34), transparent 65%);
  animation: epAuthFloatA 8s ease-in-out infinite;
}

.ep-auth-ambient span:nth-child(2) {
  opacity: .22;
  border-color: rgba(133,16,31,.16);
  background: radial-gradient(circle, rgba(255,255,255,.42), transparent 68%);
  animation: epAuthFloatB 9s ease-in-out infinite;
}

.ep-auth-ambient span:nth-child(3) {
  opacity: .18;
  background: radial-gradient(circle, rgba(133,16,31,.24), transparent 64%);
  animation: epAuthFloatC 10s ease-in-out infinite;
}

.ep-auth-stage {
  width: min(100%, 390px);
  min-height: auto;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  gap: 15px;
  padding-block: 4px;
}

.ep-auth-brand {
  position: relative;
  align-self: auto;
  padding-top: 4px;
  gap: 10px;
  animation: epAuthRise .8s cubic-bezier(.16,1,.3,1) both;
}

.ep-auth-logo {
  width: min(30vw, 104px);
  max-height: 92px;
  filter: drop-shadow(0 18px 28px rgba(133,16,31,.16));
  animation: epAuthLogoBreath 4.8s ease-in-out infinite;
}

.ep-auth h1 {
  max-width: 370px;
  margin-top: 4px;
  color: #150A0E;
  font-size: clamp(38px, 10.5vw, 49px);
  line-height: .88;
  letter-spacing: -.085em;
}

.ep-auth .ep-muted {
  max-width: 350px;
  color: rgba(21,10,14,.66);
  font-size: 13.5px;
  line-height: 1.48;
}

.ep-auth-trust {
  gap: 7px;
}

.ep-auth-trust span {
  border-color: rgba(133,16,31,.11);
  background: rgba(255,255,255,.76);
  color: #7A0C1C;
  box-shadow: 0 12px 24px rgba(91,6,20,.08);
  backdrop-filter: blur(14px);
}

.ep-auth-showcase {
  position: relative;
  min-height: 212px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(133,16,31,.11);
  background:
    radial-gradient(circle at 18% 10%, rgba(216,160,23,.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(133,16,31,.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,244,231,.50));
  box-shadow:
    0 24px 58px rgba(91,6,20,.12),
    inset 0 1px 0 rgba(255,255,255,.70);
  animation: epAuthRise .9s .08s cubic-bezier(.16,1,.3,1) both;
}

.ep-auth-showcase::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(216,160,23,.18);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(133,16,31,.04) 50%, transparent 52%),
    linear-gradient(180deg, transparent 0 48%, rgba(216,160,23,.045) 50%, transparent 52%);
  background-size: 28px 28px;
  animation: epAuthGridDrift 8s linear infinite;
}

.ep-auth-showcase::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -74px;
  bottom: -74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133,16,31,.26), transparent 66%);
  animation: epAuthPulse 4s ease-in-out infinite;
}

.ep-auth-orbit-card {
  position: absolute;
  z-index: 2;
  width: 138px;
  min-height: 66px;
  padding: 11px;
  border-radius: 22px;
  border: 1px solid rgba(133,16,31,.10);
  background: rgba(255,253,248,.72);
  box-shadow: 0 18px 38px rgba(91,6,20,.10), inset 0 1px 0 rgba(255,255,255,.80);
  backdrop-filter: blur(16px);
  transform: translate3d(0,0,0);
  animation: epAuthCardFloat 6s ease-in-out infinite;
  transition: transform .55s cubic-bezier(.16,1,.3,1), background .35s ease, box-shadow .35s ease;
}

.ep-auth-orbit-card:nth-child(1) { left: 16px; top: 16px; animation-delay: 0s; }
.ep-auth-orbit-card:nth-child(2) { right: 14px; top: 34px; animation-delay: -.9s; }
.ep-auth-orbit-card:nth-child(3) { left: 28px; bottom: 20px; animation-delay: -1.7s; }
.ep-auth-orbit-card:nth-child(4) { right: 24px; bottom: 16px; animation-delay: -2.6s; }

.ep-auth-orbit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 22px;
  border-radius: 999px;
  background: rgba(133,16,31,.08);
  color: rgba(133,16,31,.68);
  font-size: 10px;
  font-weight: 1000;
}

.ep-auth-orbit-card b {
  display: block;
  margin-top: 8px;
  color: #17090D;
  font-size: 14px;
  letter-spacing: -.035em;
}

.ep-auth-orbit-card small {
  display: none;
  margin-top: 4px;
  color: rgba(21,10,14,.55);
  font-size: 10.5px;
  line-height: 1.28;
  font-weight: 720;
}

.ep-auth-orbit-card.is-active {
  background: linear-gradient(145deg, rgba(133,16,31,.96), rgba(91,6,20,.96));
  box-shadow: 0 22px 44px rgba(91,6,20,.24), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translate3d(0,-5px,0) scale(1.035);
}

.ep-auth-orbit-card.is-active span {
  background: rgba(216,160,23,.18);
  color: #FFE6A6;
}

.ep-auth-orbit-card.is-active b,
.ep-auth-orbit-card.is-active small {
  color: #FFF7EA;
}

.ep-auth-orbit-card.is-active small {
  display: block;
}

.ep-auth-live-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(76%, 255px);
  min-height: 106px;
  padding: 18px;
  border-radius: 28px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(145deg, rgba(255,253,248,.92), rgba(255,246,234,.74)),
    rgba(255,255,255,.72);
  border: 1px solid rgba(216,160,23,.19);
  box-shadow: 0 22px 54px rgba(91,6,20,.16), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
}

.ep-auth-live-copy span {
  display: block;
  color: var(--mm-gold);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .20em;
}

.ep-auth-live-copy strong {
  display: block;
  margin-top: 7px;
  color: #18090D;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.ep-auth-live-copy p {
  margin: 7px 0 0;
  color: rgba(21,10,14,.58);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.38;
}

.ep-auth-live-copy.is-changing {
  animation: epAuthCopySwap .52s cubic-bezier(.16,1,.3,1) both;
}

.ep-auth-card {
  align-self: auto;
  border-radius: 31px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,248,237,.82)),
    rgba(255,253,248,.88);
  box-shadow: 0 24px 58px rgba(91,6,20,.18), inset 0 1px 0 rgba(255,255,255,.84);
  animation: epAuthRise .9s .16s cubic-bezier(.16,1,.3,1) both;
}

.ep-login-panel-head h2 {
  color: #16090D;
}

.ep-auth-feature-grid {
  display: none;
}

@keyframes epAuthRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes epAuthSheen {
  0%, 18% { background-position: -80% 0, center -12px, center 16px, 0 0, 0 0; }
  55%, 100% { background-position: 140% 0, center -12px, center 16px, 0 0, 0 0; }
}

@keyframes epAuthCornerFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-8px,8px,0) scale(1.04); }
}

@keyframes epAuthLogoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.025); }
}

@keyframes epAuthCardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes epAuthGridDrift {
  to { background-position: 28px 28px; }
}

@keyframes epAuthPulse {
  0%, 100% { opacity: .58; transform: scale(.94); }
  50% { opacity: .92; transform: scale(1.05); }
}

@keyframes epAuthCopySwap {
  0% { opacity: .35; transform: translate(-50%, -46%) scale(.985); filter: blur(4px); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes epAuthFloatA {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(16px,22px,0); }
}

@keyframes epAuthFloatB {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-18px,-12px,0); }
}

@keyframes epAuthFloatC {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-20px,0); }
}

@media (max-width: 380px) {
  .ep-auth {
    padding-inline: 13px;
  }
  .ep-auth-stage {
    width: min(100%, 356px);
    gap: 12px;
  }
  .ep-auth h1 {
    font-size: clamp(34px, 11.5vw, 43px);
  }
  .ep-auth-showcase {
    min-height: 190px;
  }
  .ep-auth-orbit-card {
    width: 132px;
    min-height: 76px;
    padding: 10px;
  }
  .ep-auth-live-copy {
    width: min(78%, 232px);
    padding: 15px;
  }
  .ep-auth-feature-grid {
    display: none;
  }
}

.ep-shell {
  color: var(--mm-ink);
  background:
    radial-gradient(circle at 94% -5%, rgba(216,160,23,.12), transparent 28%),
    linear-gradient(180deg, #FFFDF8 0%, var(--mm-cream) 62%, #F4E5D5 100%);
}

.ep-topbar {
  min-height: 188px;
  padding: max(env(safe-area-inset-top), 16px) 18px 58px;
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle at 88% 18%, rgba(216,160,23,.22), transparent 24%),
    linear-gradient(145deg, var(--mm-maroon-deep) 0%, var(--mm-maroon) 54%, #B31A31 126%);
}

.ep-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.ep-topbar-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

.ep-topbar .ep-kicker {
  color: rgba(216,160,23,.92);
}

.ep-topbar h1 {
  font-size: 22px;
}

.ep-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ep-notification-btn {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.22), transparent 34%),
    rgba(255,255,255,.11);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 24px rgba(91,6,20,.18);
  backdrop-filter: blur(14px);
}

.ep-notification-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.20));
}

.ep-notification-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #7A0C1C;
  border-radius: 999px;
  background: linear-gradient(145deg, #FFE1A3, var(--mm-gold));
  color: var(--mm-maroon-deep);
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 8px 16px rgba(0,0,0,.20);
}

.ep-profile-ambient {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.ep-sheet--notifications .ep-sheet-panel {
  background:
    radial-gradient(circle at 92% 0%, rgba(216,160,23,.16), transparent 30%),
    linear-gradient(180deg, #FFFDF8 0%, #FFF4E8 100%);
}

.ep-sheet--install .ep-sheet-panel {
  background:
    radial-gradient(circle at 84% 0%, rgba(10, 132, 255, .14), transparent 30%),
    radial-gradient(circle at 8% 10%, rgba(212, 167, 106, .18), transparent 34%),
    linear-gradient(180deg, #FFFDF9, #F7EFE8);
}

.ep-install-sheet {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.ep-install-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(123,45,65,.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 8%, rgba(10,132,255,.16), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,248,238,.78));
  box-shadow: 0 18px 36px rgba(45,21,32,.08), inset 0 1px 0 rgba(255,255,255,.86);
}

.ep-install-hero span {
  display: block;
  margin-bottom: 8px;
  color: rgba(123,45,65,.58);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ep-install-hero strong {
  display: block;
  max-width: 270px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.ep-install-hero p,
.ep-install-note {
  margin: 9px 0 0;
  color: rgba(26,14,8,.62);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.ep-install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ep-install-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(123,45,65,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 24px rgba(45,21,32,.06);
}

.ep-install-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #FFF8EE;
  background: linear-gradient(145deg, #1A0E08, #5A1A2E, #7B2D41);
  font-size: 13px;
  font-weight: 1000;
}

.ep-install-steps span {
  color: rgba(26,14,8,.72);
  font-size: 13.5px;
  font-weight: 760;
  line-height: 1.35;
}

.ep-install-steps strong {
  color: var(--maroon);
}

.ep-notification-sheet {
  display: grid;
  gap: 12px;
}

.ep-notification-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(216,160,23,.26), transparent 28%),
    linear-gradient(145deg, var(--mm-maroon-deep), var(--mm-maroon-rich));
  color: #fff;
  box-shadow: 0 18px 40px rgba(91,6,20,.22);
}

.ep-notification-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.ep-notification-hero span {
  color: var(--mm-gold);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ep-notification-hero h3 {
  margin: 7px 0 5px;
  font-size: 30px;
  line-height: .95;
  letter-spacing: -.06em;
}

.ep-notification-hero p {
  max-width: 280px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  font-weight: 720;
  line-height: 1.42;
}

.ep-notification-list {
  display: grid;
  gap: 10px;
}

.ep-notification-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  min-height: 78px;
  border: 1px solid rgba(133,16,31,.09);
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  color: var(--mm-ink);
  text-align: left;
  box-shadow: 0 12px 24px rgba(91,6,20,.08), inset 0 1px 0 rgba(255,255,255,.82);
}

.ep-notification-item.unread {
  border-color: rgba(133,16,31,.18);
  background:
    radial-gradient(circle at 0 0, rgba(216,160,23,.14), transparent 34%),
    rgba(255,255,255,.86);
}

.ep-notification-item.unread::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mm-gold);
  box-shadow: 0 0 0 5px rgba(216,160,23,.14);
}

.ep-notification-item-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--mm-maroon), var(--mm-maroon-deep));
  color: #FFF6DD;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 12px 22px rgba(91,6,20,.16);
}

.ep-notification-item-copy {
  min-width: 0;
}

.ep-notification-item-copy b,
.ep-notification-item-copy small,
.ep-notification-item-copy em {
  display: block;
}

.ep-notification-item-copy b {
  color: #16090D;
  font-size: 14px;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.ep-notification-item-copy small {
  margin-top: 4px;
  color: rgba(21,10,14,.58);
  font-size: 11.5px;
  line-height: 1.34;
  font-weight: 720;
}

.ep-notification-item-copy em {
  margin-top: 5px;
  color: rgba(133,16,31,.58);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
}

.ep-notification-item-arrow {
  color: rgba(133,16,31,.34);
  font-size: 24px;
  font-weight: 800;
}

.ep-scroll {
  margin-top: -44px;
  padding-inline: 14px;
}

.ep-view {
  gap: 12px;
}

.ep-hero-card {
  border: 1px solid rgba(133,16,31,.10);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF8EC 100%);
  color: var(--mm-ink);
  box-shadow: 0 14px 34px rgba(91,6,20,.10);
}

.ep-hero-card .ep-kicker {
  color: var(--mm-maroon);
}

.ep-hero-copy h2 {
  color: var(--mm-ink);
}

.ep-hero-card .ep-muted {
  color: var(--mm-muted);
}

.ep-metric-card,
.ep-summary-strip article,
.ep-install-card,
.ep-push-card,
.ep-message-card,
.ep-form-card,
.ep-day-card,
.ep-empty,
.ep-context-card,
.ep-request-item,
.ep-target-panel,
.ep-tasks-summary,
.ep-target-summary-card,
.ep-target-item,
.ep-tasks-next,
.ep-request-action,
.ep-boardroom-panel,
.ep-boardroom-status-card,
.ep-boardroom-compose {
  border-color: rgba(133,16,31,.08);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF8EC 100%);
  box-shadow: 0 12px 28px rgba(91,6,20,.08);
}

.ep-section-kicker,
.ep-metric-card span,
.ep-summary-strip span,
.ep-request-item-kind {
  color: rgba(133,16,31,.58);
}

.ep-metric-card b,
.ep-summary-strip b,
.ep-target-summary-card strong {
  color: var(--mm-maroon);
}

.ep-home-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.ep-home-actions button,
.ep-request-action-icon,
.ep-action-icon {
  border-color: rgba(133,16,31,.08);
  color: var(--mm-maroon);
  background: linear-gradient(145deg, #FFFFFF, #FFF2DC);
  box-shadow: 0 10px 22px rgba(91,6,20,.07);
}

.ep-action-icon {
  color: #fff;
  background: linear-gradient(145deg, var(--mm-maroon), var(--mm-maroon-deep));
}

.ep-secondary-btn {
  color: var(--mm-maroon);
  background: rgba(133,16,31,.08);
  border-color: rgba(133,16,31,.12);
}

.ep-schedule-hero,
.ep-tasks-hero,
.ep-boardroom-hero {
  background:
    radial-gradient(circle at 88% 4%, rgba(216,160,23,.28), transparent 28%),
    linear-gradient(145deg, var(--mm-maroon-deep), var(--mm-maroon) 68%, #B31A31 128%);
  box-shadow: 0 18px 38px rgba(91,6,20,.20), inset 0 1px 0 rgba(255,255,255,.14);
}

.ep-bottom-nav {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(390px, calc(100% - 22px));
  min-height: 70px;
  bottom: max(10px, env(safe-area-inset-bottom));
  padding: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 27px;
  background:
    linear-gradient(145deg, rgba(133,16,31,.98), rgba(91,6,20,.98)),
    var(--mm-maroon-deep);
  box-shadow: 0 20px 44px rgba(91,6,20,.32), inset 0 1px 0 rgba(255,255,255,.13);
}

.ep-bottom-nav::before {
  display: none;
}

.ep-bottom-nav > button {
  min-height: 54px;
  gap: 2px;
  border-radius: 20px;
  color: rgba(255,255,255,.68);
}

.ep-bottom-nav > button span:last-child {
  font-size: 8.6px;
  font-weight: 850;
}

.ep-bottom-nav > button .ep-nav-icon {
  color: inherit;
}

.ep-bottom-nav > button.active {
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.ep-bottom-nav > button.active .ep-nav-icon {
  color: var(--mm-gold);
  filter: drop-shadow(0 6px 10px rgba(216,160,23,.22));
}

@media (max-width: 380px) {
  .ep-auth-stage { width: min(100%, 350px); }
  .ep-topbar { min-height: 176px; }
  .ep-home-actions { grid-template-columns: repeat(3, 1fr); }
  .ep-home-actions button { padding: 11px 8px; }
  .ep-bottom-nav { width: calc(100% - 18px); }
  .ep-bottom-nav > button span:last-child { font-size: 7.7px; }
}

/* Target summary should read as a premium money card, not a white stat tile. */
.ep-target-summary-card {
  border: 1px solid rgba(216,160,23,.24);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(216,160,23,.24), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(145deg, #300812 0%, var(--mm-maroon-deep) 35%, var(--mm-maroon) 74%, #B31A31 128%);
  box-shadow:
    0 18px 38px rgba(91,6,20,.24),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.ep-target-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.12), transparent 34%),
    radial-gradient(circle at 74% 46%, rgba(216,160,23,.18), transparent 28%);
}

.ep-target-summary-card > * {
  position: relative;
  z-index: 1;
}

.ep-target-summary-card p {
  color: rgba(248,226,184,.86);
}

.ep-target-summary-card strong {
  color: #fff;
  text-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.ep-target-summary-card small {
  color: rgba(255,255,255,.68);
}

.ep-target-summary-card .ep-target-ring,
.ep-target-ring {
  color: #F8E2B8;
  background:
    radial-gradient(circle at 36% 24%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(145deg, rgba(216,160,23,.34), rgba(91,6,20,.28));
  border: 1px solid rgba(248,226,184,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 22px rgba(0,0,0,.18);
}

/* iOS-style employee header: compact brand, time-aware greeting, real avatar. */
.ep-topbar {
  min-height: 176px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: max(env(safe-area-inset-top), 16px) 18px 58px;
  background:
    radial-gradient(circle at 88% 12%, rgba(216,160,23,.20), transparent 28%),
    radial-gradient(circle at 16% 100%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(145deg, #5B0614 0%, #85101F 54%, #A0162B 120%);
}

.ep-topbar-brand {
  align-items: center;
  gap: 12px;
}

.ep-topbar-brand > img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.20));
}

.ep-topbar-brand .ep-kicker {
  color: rgba(216,160,23,.94);
  font-size: 9px;
  letter-spacing: .22em;
}

.ep-topbar h1 {
  max-width: 270px;
  margin-top: 3px;
  color: #fff;
  font-size: clamp(21px, 6vw, 28px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.ep-profile-ambient {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.20), rgba(91,6,20,.34));
  box-shadow:
    0 14px 28px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.20);
  pointer-events: none;
}

.ep-profile-ambient img,
.ep-profile-ambient span {
  position: static;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 999px;
  opacity: 1;
  transform: none;
  mask-image: none;
}

.ep-profile-ambient img {
  display: block;
  object-fit: cover;
}

.ep-profile-ambient span {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #A0162B, #5B0614);
  font-size: 20px;
  font-weight: 1000;
}

.ep-profile-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.30), transparent 42%);
  pointer-events: none;
}

@media (max-width: 380px) {
  .ep-topbar {
    min-height: 164px;
    padding-inline: 15px;
  }
  .ep-topbar-brand > img {
    width: 38px;
    height: 38px;
  }
  .ep-profile-ambient {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

/* Profile tab — employee-owned identity and HR document capture. */
.ep-profile-view {
  display: grid;
  gap: 14px;
}

.ep-profile-hero,
.ep-profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(123,45,65,.12);
  background:
    radial-gradient(circle at 14% 0%, rgba(216,160,23,.18), transparent 35%),
    linear-gradient(155deg, rgba(255,252,244,.96), rgba(255,245,232,.88));
  box-shadow: 0 20px 50px rgba(91,6,20,.10);
}

.ep-profile-hero {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 30px;
}

.ep-profile-photo {
  width: 78px;
  height: 78px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #A0162B, #5B0614);
  box-shadow: 0 18px 30px rgba(91,6,20,.24), 0 0 0 5px rgba(212,167,106,.16);
}

.ep-profile-photo img,
.ep-profile-photo span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-size: 28px;
  font-weight: 1000;
}

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

.ep-profile-hero-copy h2 {
  margin: 4px 0 5px;
  color: var(--mm-ink);
  font-size: clamp(24px, 8vw, 36px);
  line-height: .98;
  letter-spacing: -.06em;
}

.ep-profile-hero-copy p {
  margin: 0;
  color: rgba(55,30,28,.62);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.35;
}

.ep-profile-photo-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mm-maroon), var(--mm-maroon-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(123,45,65,.24);
}

.ep-profile-photo-action input,
.ep-doc-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ep-profile-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-radius: 28px;
}

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

.ep-profile-info-grid article {
  min-height: 72px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(123,45,65,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.ep-profile-info-grid span {
  display: block;
  margin-bottom: 6px;
  color: rgba(91,6,20,.48);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.ep-profile-info-grid b {
  display: block;
  color: var(--mm-ink);
  font-size: 13.5px;
  line-height: 1.2;
  word-break: break-word;
}

#epProfileDocStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(123,45,65,.10);
  color: var(--mm-maroon);
  font-size: 11px;
  font-weight: 950;
}

#epProfileDocStatus.complete {
  background: rgba(22,101,52,.12);
  color: #166534;
}

.ep-doc-upload-grid {
  display: grid;
  gap: 12px;
}

.ep-doc-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(123,45,65,.08), rgba(255,255,255,.78));
  border: 1px solid rgba(123,45,65,.12);
  box-shadow: 0 12px 24px rgba(91,6,20,.08);
}

.ep-doc-preview {
  width: 84px;
  height: 72px;
  border-radius: 19px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7B2D41, #3E0712);
  color: #FFF6DC;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ep-doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-doc-card b {
  display: block;
  color: var(--mm-ink);
  font-size: 15px;
  letter-spacing: -.025em;
}

.ep-doc-card small {
  display: block;
  margin-top: 4px;
  color: rgba(55,30,28,.58);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.35;
}

.ep-doc-card label {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 17px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(123,45,65,.13);
  color: var(--mm-maroon);
  font-size: 12.5px;
  font-weight: 950;
}

.ep-doc-card.is-uploading::after {
  content: "Uploading...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(255,248,236,.82);
  color: var(--mm-maroon);
  font-size: 12px;
  font-weight: 1000;
  backdrop-filter: blur(10px);
}

@media (max-width: 380px) {
  .ep-profile-hero {
    grid-template-columns: 68px minmax(0,1fr);
    padding: 15px;
  }
  .ep-profile-photo {
    width: 68px;
    height: 68px;
    border-radius: 24px;
  }
  .ep-profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Single-punch correction banner & sheet ───────────────────────────────
 * Surfaced inside .ep-day-card.ep-day-main whenever the API marks a day as
 * a single-punch case. Stays cream-and-maroon to match the rest of the
 * portal; uses the existing tap-target sizing convention (44px+).
 */
.ep-day-fix {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  min-height: 52px;
  background: linear-gradient(180deg, rgba(123, 45, 65, .07), rgba(123, 45, 65, .04));
  border: 1px solid rgba(123, 45, 65, .18);
  border-radius: 14px;
  color: var(--maroon);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.ep-day-fix:active { transform: scale(.985); }
.ep-day-fix-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  color: #FFF8EE;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}
.ep-day-fix-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ep-day-fix-body b {
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1.2;
}
.ep-day-fix-body small {
  font-size: 11.5px;
  color: rgba(26, 14, 8, .65);
  line-height: 1.3;
}
.ep-day-fix-chev {
  font-size: 22px;
  color: rgba(123, 45, 65, .55);
  flex-shrink: 0;
  margin-left: 4px;
}

.ep-day-fix.is-pending {
  background: linear-gradient(180deg, rgba(212, 167, 106, .18), rgba(212, 167, 106, .08));
  border-color: rgba(212, 167, 106, .35);
  color: #6B4A18;
}
.ep-day-fix.is-pending .ep-day-fix-icon {
  background: var(--gold);
  color: #3F2A05;
}
.ep-day-fix.is-pending .ep-day-fix-body b {
  color: #5A3D12;
}

.ep-day-fix.is-approved {
  cursor: default;
  background: linear-gradient(180deg, rgba(16, 122, 87, .12), rgba(16, 122, 87, .05));
  border-color: rgba(16, 122, 87, .22);
}
.ep-day-fix.is-approved .ep-day-fix-icon {
  background: #0F8F65;
  color: #FFF;
}
.ep-day-fix.is-approved .ep-day-fix-body b {
  color: #0B5A40;
}
.ep-day-fix.is-approved .ep-day-fix-body small {
  color: rgba(11, 90, 64, .75);
}

.ep-day-fix.is-rejected {
  background: linear-gradient(180deg, rgba(159, 18, 57, .12), rgba(159, 18, 57, .05));
  border-color: rgba(159, 18, 57, .25);
  color: #6B1430;
}
.ep-day-fix.is-rejected .ep-day-fix-icon {
  background: #9F1239;
  color: #FFF;
}
.ep-day-fix.is-rejected .ep-day-fix-body b {
  color: #6B1430;
}

/* Correction bottom sheet body */
.ep-punch-fix {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 2px 12px;
}
.ep-punch-fix-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.ep-punch-fix-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(26, 14, 8, .68);
}

.ep-punch-fix-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #FFF;
  border: 1px solid var(--line-light);
  border-radius: 14px;
}
.ep-punch-fix-date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  color: #FFF8EE;
  border-radius: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.ep-punch-fix-date-pill small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 2px;
}
.ep-punch-fix-date-pill b {
  font-size: 22px;
  font-weight: 700;
}
.ep-punch-fix-day > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ep-punch-fix-day b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.ep-punch-fix-day small {
  font-size: 12px;
  color: rgba(26, 14, 8, .6);
}

.ep-punch-fix-note {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(212, 167, 106, .12);
  border: 1px solid rgba(212, 167, 106, .30);
  color: #6B4A18;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ep-punch-fix-note.is-warn {
  background: rgba(159, 18, 57, .08);
  border-color: rgba(159, 18, 57, .22);
  color: #6B1430;
}
.ep-punch-fix-note b { font-size: 13px; }

.ep-punch-fix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ep-punch-fix-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ep-punch-fix-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(26, 14, 8, .55);
}
.ep-punch-fix-field input[type="time"] {
  width: 100%;
  padding: 14px 12px;
  font-size: 22px;
  font-weight: 600;
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  background: #FFF;
  color: var(--ink);
  border: 2px solid var(--line-light);
  border-radius: 14px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  cursor: text;
}
.ep-punch-fix-field input[type="time"]:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(123, 45, 65, .12);
}
.ep-punch-fix-field small {
  font-size: 11.5px;
  color: rgba(26, 14, 8, .55);
}
.ep-punch-fix-field small b {
  color: var(--maroon);
  font-weight: 700;
}
.ep-punch-fix-field.is-readonly .ep-punch-fix-value {
  padding: 14px 12px;
  font-size: 22px;
  font-weight: 600;
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  background: #F4EFE6;
  color: rgba(26, 14, 8, .85);
  border: 2px dashed var(--line-light);
  border-radius: 14px;
  text-align: center;
}

.ep-punch-fix-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(26, 14, 8, .55);
  margin-top: 4px;
}
.ep-punch-fix #epPunchFixReason {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: #FFF;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.ep-punch-fix #epPunchFixReason:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123, 45, 65, .12);
}
.ep-punch-fix-foot {
  margin: 0;
  font-size: 11.5px;
  text-align: center;
  color: rgba(26, 14, 8, .55);
}

@media (max-width: 380px) {
  .ep-punch-fix-grid { grid-template-columns: 1fr; }
}

@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  .ep-app {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    background: transparent;
    box-shadow: none;
  }

  .ep-desktop-landing {
    display: grid;
  }

  .ep-splash,
  .ep-auth,
  .ep-shell,
  .ep-sheet,
  .ep-toast {
    display: none !important;
  }

  .ep-desk-feature-grid article {
    transition: transform .28s ease, background .28s ease, border-color .28s ease;
  }

  .ep-desk-feature-grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.11);
  }
}

/* Desktop landing: dark premium cinematic treatment */
@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  html,
  body {
    background: #040105;
  }

  body {
    background:
      radial-gradient(circle at 16% 12%, rgba(123,45,65,.36), transparent 28%),
      radial-gradient(circle at 78% 8%, rgba(10,132,255,.20), transparent 26%),
      radial-gradient(circle at 60% 92%, rgba(212,167,106,.16), transparent 30%),
      linear-gradient(130deg, #040105 0%, #0B0308 38%, #170612 68%, #050207 100%);
  }

  .ep-desktop-landing {
    min-height: 100dvh;
    padding-top: 30px;
  }

  .ep-desk-bg::before {
    opacity: .20;
    background-image:
      linear-gradient(rgba(212,167,106,.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212,167,106,.07) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 52% 28%, #000 0 36%, transparent 72%);
  }

  .ep-desk-bg::after {
    background:
      linear-gradient(180deg, rgba(4,1,5,.20) 0%, rgba(4,1,5,.86) 100%),
      radial-gradient(circle at 50% -10%, rgba(255,255,255,.10), transparent 42%),
      linear-gradient(90deg, rgba(4,1,5,.92), transparent 32%, rgba(4,1,5,.84));
  }

  .ep-desk-bg span {
    opacity: .46;
    filter: blur(28px);
    mix-blend-mode: screen;
  }

  .ep-desk-bg span:nth-child(1) {
    left: -140px;
    top: 42px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(123,45,65,.78), rgba(123,45,65,.14) 52%, transparent 70%);
  }

  .ep-desk-bg span:nth-child(2) {
    right: -120px;
    top: 26px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10,132,255,.46), rgba(10,132,255,.10) 54%, transparent 72%);
  }

  .ep-desk-bg span:nth-child(3) {
    left: 38%;
    bottom: -230px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(212,167,106,.42), rgba(212,167,106,.10) 48%, transparent 72%);
  }

  .ep-desk-nav {
    margin-bottom: clamp(38px, 5vw, 74px);
  }

  .ep-desk-brand {
    padding: 8px 12px 8px 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .ep-desk-brand img {
    width: 38px;
    height: 38px;
  }

  .ep-desk-brand span {
    color: rgba(255,255,255,.92);
    font-size: 16px;
  }

  .ep-desk-device-pill {
    border-color: rgba(212,167,106,.22);
    color: rgba(255,236,209,.78);
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(212,167,106,.055));
    box-shadow: 0 18px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
  }

  .ep-desk-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .86fr);
  }

  .ep-desk-kicker {
    color: #FFD58A;
    background:
      linear-gradient(135deg, rgba(255,213,138,.16), rgba(255,255,255,.035));
    border-color: rgba(255,213,138,.24);
    box-shadow: 0 10px 30px rgba(212,167,106,.08), inset 0 1px 0 rgba(255,255,255,.10);
  }

  .ep-desk-copy h1 {
    max-width: 850px;
    background:
      linear-gradient(102deg, #FFF7EA 0%, #FFFFFF 24%, #FFD58A 48%, #FF7A9E 72%, #8CCBFF 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }

  .ep-desk-copy > p:not(.ep-desk-kicker) {
    color: rgba(255,246,236,.66);
    max-width: 650px;
  }

  .ep-desk-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .ep-desk-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 13px 0 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 900;
  }

  .ep-desk-proof-row b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #050207;
    background: linear-gradient(135deg, #FFD58A, #FFFFFF);
    font-size: 10px;
  }

  .ep-desk-cta-row {
    border-color: rgba(255,255,255,.13);
    background:
      radial-gradient(circle at 16% 18%, rgba(255,213,138,.14), transparent 30%),
      radial-gradient(circle at 94% 18%, rgba(10,132,255,.14), transparent 34%),
      linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.038));
    box-shadow:
      0 26px 90px rgba(0,0,0,.46),
      inset 0 1px 0 rgba(255,255,255,.13),
      inset 0 -1px 0 rgba(255,255,255,.04);
  }

  .ep-desk-qr {
    background:
      linear-gradient(#fff, #fff) padding-box,
      conic-gradient(from 220deg, #FFD58A, #7B2D41, #0A84FF, #FF2D55, #FFD58A) border-box;
    box-shadow:
      0 18px 50px rgba(10,132,255,.18),
      0 18px 54px rgba(123,45,65,.22),
      inset 0 1px 0 rgba(255,255,255,.90);
  }

  .ep-desk-qr::before {
    background: conic-gradient(from 140deg, rgba(255,213,138,.62), rgba(123,45,65,.48), rgba(10,132,255,.42), rgba(255,45,85,.42), rgba(255,213,138,.62));
    opacity: .62;
  }

  .ep-desk-qr span {
    background: linear-gradient(135deg, #7B2D41, #FF2D55 58%, #0A84FF);
  }

  .ep-desk-cta-row strong {
    color: #fff;
    font-size: 19px;
  }

  .ep-desk-cta-row span {
    color: rgba(255,246,236,.62);
  }

  .ep-desk-phone-stage::before {
    inset: 38px -8px 24px;
    background:
      radial-gradient(circle, rgba(255,213,138,.16), transparent 50%),
      radial-gradient(circle at 70% 42%, rgba(10,132,255,.13), transparent 40%);
    filter: blur(22px);
  }

  .ep-desk-phone {
    border-color: rgba(255,255,255,.15);
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,238,.88)),
      linear-gradient(145deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
    box-shadow:
      0 44px 100px rgba(0,0,0,.58),
      0 0 0 1px rgba(255,255,255,.08),
      0 0 70px rgba(123,45,65,.16),
      inset 0 1px 0 rgba(255,255,255,.88);
  }

  .ep-desk-phone-main {
    right: 150px;
  }

  .ep-desk-phone-alt {
    right: -2px;
  }

  .ep-desk-phone-top,
  .ep-desk-shift-card {
    background:
      radial-gradient(circle at 86% 2%, rgba(212,167,106,.28), transparent 30%),
      linear-gradient(145deg, #0B0308, #3B0E20 54%, #7B2D41);
  }

  .ep-desk-feature-grid article {
    position: relative;
    overflow: hidden;
    min-height: 226px;
    border-color: rgba(255,255,255,.12);
    background:
      radial-gradient(circle at 18% 10%, rgba(255,213,138,.10), transparent 28%),
      linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
    box-shadow: 0 22px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
  }

  .ep-desk-feature-grid article::after {
    content: "";
    position: absolute;
    right: -48px;
    top: -58px;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10,132,255,.16), transparent 64%);
  }

  .ep-desk-feature-grid article:nth-child(2)::after {
    background: radial-gradient(circle, rgba(255,45,85,.18), transparent 64%);
  }

  .ep-desk-feature-grid article:nth-child(3)::after {
    background: radial-gradient(circle, rgba(255,213,138,.18), transparent 64%);
  }

  .ep-desk-feature-grid span {
    color: #050207;
    background: linear-gradient(135deg, #FFD58A, #FFFFFF);
  }

  .ep-desk-feature-grid h2 {
    color: rgba(255,255,255,.94);
  }

  .ep-desk-feature-grid p {
    color: rgba(255,246,236,.58);
  }

  .ep-desk-feature-grid article:hover {
    background:
      radial-gradient(circle at 18% 10%, rgba(255,213,138,.14), transparent 28%),
      linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.044));
  }
}
