.ep-app {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #172033;
  --muted: #667085;
  --line: #d8e0ec;
  --blue: #2357c6;
  --green: #14804a;
  --yellow: #b7791f;
  --red: #c9322f;
  --gray: #677083;
  --ink: #0d1b2e;
  min-height: 100vh;
  padding: 22px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.ep-app * { box-sizing: border-box; }
.ep-app a { color: inherit; text-decoration: none; }
.ep-app button, .ep-app input, .ep-app select, .ep-app textarea { font: inherit; }

.ep-mp-home {
  --mp-bg: #f3f6fb;
  --mp-card: #ffffff;
  --mp-text: #102033;
  --mp-muted: #64748b;
  --mp-line: #dbe4f0;
  --mp-primary: #5b63ff;
  --mp-primary-2: #7c4dff;
  --mp-primary-soft: rgba(91, 99, 255, 0.11);
  --mp-success: #16a34a;
  --mp-warning: #f59e0b;
  --mp-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  --mp-shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.06);
  --mp-max: 1180px;
  padding: 0;
  color: var(--mp-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 99, 255, 0.12), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(124, 77, 255, 0.12), transparent 30%),
    var(--mp-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.ep-mp-container {
  width: min(100% - 36px, var(--mp-max));
  margin: 0 auto;
}

.ep-mp-topbar { padding: 26px 0 10px; }

.ep-mp-nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--mp-shadow-soft);
  backdrop-filter: blur(18px);
}

.ep-mp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.ep-mp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #3157e8, #6d4dff);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(91, 99, 255, 0.24);
}

.ep-mp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ep-mp-mini-pill,
.ep-mp-language {
  min-height: 34px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--mp-text);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.ep-mp-interface-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ep-mp-interface-status::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mp-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.11);
}

.ep-mp-hero {
  padding: 26px 0 18px;
  text-align: center;
}

.ep-mp-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  color: var(--mp-primary);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--mp-shadow-soft);
}

.ep-mp-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mp-primary);
  box-shadow: 0 0 0 5px var(--mp-primary-soft);
}

.ep-mp-product-name {
  margin-bottom: 6px;
  color: var(--mp-primary);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ep-mp-home h1 {
  max-width: 920px;
  margin: 0 auto 14px;
  color: var(--mp-text);
  font-size: clamp(2.55rem, 6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.ep-mp-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--mp-muted);
  font-size: 1.04rem;
}

.ep-mp-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ep-mp-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 780;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ep-mp-badges span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mp-primary);
}

.ep-mp-access-card {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--mp-shadow);
}

.ep-mp-access-card h2 {
  margin: 0 0 4px;
  color: var(--mp-text);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.ep-mp-access-card > p,
.ep-mp-environment-card p {
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.ep-mp-environment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.ep-mp-environment-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  text-align: left;
  transition: 0.2s ease;
  overflow: hidden;
}

.ep-mp-environment-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(91, 99, 255, 0.08);
}

.ep-mp-environment-card.active {
  border-color: rgba(91, 99, 255, 0.28);
  box-shadow: 0 16px 36px rgba(91, 99, 255, 0.11);
}

.ep-mp-environment-card.disabled {
  opacity: 0.72;
  background: #f8fafc;
}

.ep-mp-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 16px;
}

.ep-mp-env-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-2));
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(91, 99, 255, 0.22);
}

.ep-mp-status-chip {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(91, 99, 255, 0.16);
  background: var(--mp-primary-soft);
  color: var(--mp-primary);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ep-mp-status-chip.future {
  color: #8a5a00;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
}

.ep-mp-environment-card h3 {
  margin: 0 0 4px;
  color: var(--mp-text);
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.ep-mp-environment-card strong {
  color: var(--mp-primary);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.ep-mp-button-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.ep-mp-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 850;
  transition: 0.2s ease;
  width: 100%;
}

.ep-mp-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-2));
  box-shadow: 0 14px 28px rgba(91, 99, 255, 0.2);
}

.ep-mp-btn-disabled {
  color: #94a3b8;
  background: #eef2f7;
  border-color: var(--mp-line);
  cursor: not-allowed;
}

.ep-mp-quick-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.ep-mp-quick-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mp-primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.ep-mp-fine-print {
  margin-top: 14px;
  color: #7c8da5;
  font-size: 0.76rem;
}

.ep-mp-tabs-section { padding: 22px 0 18px; }

.ep-mp-tabs-shell {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--mp-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--mp-shadow-soft);
  overflow: hidden;
}

.ep-mp-tabs {
  display: flex;
  padding: 8px;
  border-bottom: 1px solid var(--mp-line);
  background: #f8fbff;
  overflow-x: auto;
}

.ep-mp-tabs button {
  flex: 1;
  min-width: 140px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--mp-muted);
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
}

.ep-mp-tabs button.active {
  color: var(--mp-primary);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ep-mp-tab-panel {
  display: none;
  padding: 22px;
}

.ep-mp-tab-panel.active { display: block; }

.ep-mp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ep-mp-info-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  background: #ffffff;
}

.ep-mp-info-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.ep-mp-info-grid h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mp-primary);
  box-shadow: 0 0 0 5px var(--mp-primary-soft);
}

.ep-mp-info-grid p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.ep-mp-footer {
  padding: 18px 0 28px;
  text-align: center;
  color: #718198;
  font-size: 0.78rem;
}

.ep-mp-footer a {
  color: var(--mp-primary);
  font-weight: 750;
}

.ep-home {
  display: block;
  background: #f3f6fb;
}

.ep-home-shell {
  width: min(100%, 1180px);
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.ep-home-nav {
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(35, 48, 75, 0.08);
}

.ep-mini-brand span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.78rem;
  box-shadow: inset 0 0 0 1px #dbe3ff;
}

.ep-mini-brand strong {
  color: #172033;
  font-size: 0.94rem;
}

.ep-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ep-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.ep-interface-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b8aa0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-interface-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #23c55e;
  box-shadow: 0 0 0 4px rgba(35, 197, 94, 0.12);
}

.ep-hero-compact {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 16px 6px;
  text-align: center;
}

.ep-standard-pill,
.ep-feature-pills span,
.ep-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 11px;
  border: 1px solid #dde6f2;
  border-radius: 999px;
  background: #fff;
  color: #6366f1;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(35, 48, 75, 0.06);
}

.ep-product-name {
  margin: 0;
  color: #6c63ff;
  font-size: 1rem;
  font-weight: 950;
}

.ep-hero-compact h1 {
  max-width: 860px;
  margin: 0;
  color: #13233b;
  font-size: clamp(2.25rem, 5vw, 4.05rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.ep-hero-copy {
  width: min(100%, 650px);
  margin: 0;
  color: #617087;
  font-size: 0.98rem;
  line-height: 1.65;
}

.ep-feature-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.ep-feature-pills span {
  color: #44546a;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.ep-feature-pills span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #6c63ff;
}

.ep-choice-card,
.ep-start-card,
.ep-info-card {
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(35, 48, 75, 0.08);
}

.ep-choice-card {
  width: min(100%, 780px);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 22px 24px;
  text-align: center;
}

.ep-choice-kicker {
  color: #8793a6;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ep-choice-card h2,
.ep-start-card h2,
.ep-info-card h2 {
  margin: 0;
  color: #16243a;
  font-size: 1.08rem;
  line-height: 1.25;
}

.ep-choice-card p,
.ep-start-card p,
.ep-start-card small,
.ep-info-card p,
.ep-info-card li {
  color: #67758b;
}

.ep-choice-card p,
.ep-start-card p,
.ep-start-card small {
  margin: 0;
  font-size: 0.78rem;
}

.ep-env-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px 0;
}

.ep-env-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8fafc;
  color: #172033;
}

.ep-env-option span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6672ff, #8b5cf6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
}

.ep-env-option.is-active {
  border-color: #c8d2ff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(102, 114, 255, 0.14);
}

.ep-env-option.is-disabled {
  opacity: 0.48;
}

.ep-start-card {
  width: min(100%, 430px);
  display: grid;
  justify-items: stretch;
  gap: 10px;
  margin: -2px auto 10px;
  padding: 22px;
  text-align: center;
}

.ep-start-button,
.ep-secondary-button,
.ep-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 950;
}

.ep-start-button,
.ep-card-button {
  border: 0;
  background: linear-gradient(135deg, #6672ff, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(102, 114, 255, 0.22);
}

.ep-secondary-button {
  border: 1px solid #cfd8ff;
  background: #fff;
  color: #5964df;
}

.ep-start-divider {
  height: 1px;
  background: #e5eaf2;
}

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

.ep-info-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 310px;
  padding: 24px;
}

.ep-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-card-tags span {
  min-height: 24px;
  color: #64748b;
  font-size: 0.64rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.ep-info-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.ep-info-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ep-info-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
}

.ep-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6672ff;
}

.ep-role-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.ep-role-links a {
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  color: #4f5f76;
  background: #f8fafc;
  font-weight: 850;
  font-size: 0.82rem;
}

.ep-home-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 0 10px;
  color: #8190a5;
  font-size: 0.78rem;
  text-align: center;
}

.ep-home-footer a {
  color: #5964df;
  font-weight: 850;
}

.ep-brandbar,
.ep-topbar,
.ep-page-head,
.ep-panel,
.ep-card,
.ep-access-card,
.ep-tab-panels article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.ep-brandbar,
.ep-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.ep-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.ep-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.ep-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-topbar nav a,
.ep-quick-links a,
.ep-tabs button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.ep-topbar nav a.is-active {
  border-color: #2457c5;
  background: #e9efff;
  color: #1b4296;
  box-shadow: inset 0 0 0 1px rgba(36, 87, 197, 0.12);
}

.ep-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.ep-home-grid > div:first-child,
.ep-page-head {
  padding: 28px;
}

.ep-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ep-home h1,
.ep-page-head h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.ep-home p,
.ep-page-head p,
.ep-muted {
  color: var(--muted);
}

.ep-age-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.ep-age-minor {
  color: #b42318;
  background: #fee4e2;
  border: 1px solid #fecdca;
}

.ep-age-major {
  color: #067647;
  background: #dcfae6;
  border: 1px solid #abefc6;
}

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

.ep-access-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.ep-access-card strong { font-size: 1.25rem; }
.ep-access-card span { color: var(--muted); }
.ep-access-card.is-active { border-color: rgba(35, 87, 198, 0.45); }
.ep-access-card.is-disabled { opacity: 0.58; background: #f2f4f7; }

.ep-tabs,
.ep-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-tabs button {
  cursor: pointer;
}

.ep-tabs button.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.ep-tab-panels article {
  display: none;
  padding: 18px;
  color: var(--muted);
}

.ep-tab-panels article.is-active { display: block; }

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  background: #fff;
}

.ep-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.ep-danger { background: #fee4e2; color: var(--red); border-color: #fecdca; }
.ep-success { background: #dcfae6; color: var(--green); border-color: #abefc6; }
.ep-ghost { background: #f8fafc; }

.ep-login {
  display: grid;
  place-items: center;
}

.ep-panel { padding: 20px; }
.ep-panel h1 { margin: 0 0 8px; }

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

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

.ep-card {
  padding: 16px;
}

.ep-card h3 {
  margin: 0 0 10px;
}

.ep-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ep-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  color: var(--ink);
}

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

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

.ep-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ep-field input,
.ep-field select,
.ep-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.ep-field textarea { min-height: 86px; resize: vertical; }

.ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ep-student-list,
.ep-list {
  display: grid;
  gap: 8px;
}

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

.ep-toggle {
  min-width: 110px;
}

.ep-toggle.is-absent {
  background: #fee4e2;
  color: var(--red);
  border-color: #fecdca;
}

.ep-toggle.is-present {
  background: #dcfae6;
  color: var(--green);
  border-color: #abefc6;
}

.ep-justification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #fedf89;
  border-radius: 999px;
  background: #fffaeb;
  color: #b54708;
  font-size: 0.74rem;
  font-weight: 900;
  vertical-align: middle;
  white-space: nowrap;
}

.ep-mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ep-mode-buttons button {
  min-height: 86px;
  font-size: 1.08rem;
}

.ep-status-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ep-status-box.is-green { border-color: #75e0a7; background: #ecfdf3; color: var(--green); }
.ep-status-box.is-red { border-color: #fda29b; background: #fef3f2; color: var(--red); }

.ep-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ep-control-tabs button.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.ep-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ep-table-wrap { overflow-x: auto; }
.ep-table th, .ep-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.ep-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }

.ep-status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.ep-cor-verde { background: #dcfae6; color: var(--green); }
.ep-cor-amarelo { background: #fef0c7; color: var(--yellow); }
.ep-cor-vermelho { background: #fee4e2; color: var(--red); }
.ep-cor-cinza { background: #eef2f7; color: var(--gray); }

.ep-bigscreen {
  background: #0d1b2e;
  color: #f8fafc;
}
.ep-bigscreen .ep-card,
.ep-bigscreen .ep-panel {
  background: #132238;
  border-color: rgba(255,255,255,0.12);
  color: #f8fafc;
}
.ep-bigscreen .ep-stat strong { color: #fff; font-size: 3rem; }
.ep-bigscreen h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 4rem); }

.ep-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}
.ep-toast.is-visible { opacity: 1; transform: translateY(0); }

.ep-gate {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  background: #f3f6fb;
}

.ep-gate .ep-topbar,
.ep-gate .ep-page-head,
.ep-gate .ep-panel,
.ep-gate .ep-card {
  border-color: #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.ep-gate .ep-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.ep-gate .ep-brand span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ep-gate .ep-brand strong {
  font-size: 1rem;
}

.ep-gate .ep-topbar nav {
  gap: 6px;
}

.ep-gate .ep-topbar nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.ep-gate .ep-page-head {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 18px;
}

.ep-gate .ep-page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.04em;
}

.ep-gate .ep-page-head p {
  margin: 0;
  max-width: 520px;
  font-size: 0.98rem;
}

.ep-gate .ep-mode-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ep-gate .ep-mode-buttons .ep-btn {
  min-height: 62px;
  border-radius: 14px;
  font-size: 0.98rem;
  box-shadow: none;
}

.ep-gate .ep-mode-buttons .ep-primary {
  background: linear-gradient(135deg, #2457c5, #426ee8);
}

.ep-gate [data-work] {
  display: grid;
  gap: 14px;
}

.ep-gate [data-work] h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.ep-search-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.ep-search-grid .ep-field:last-child {
  grid-column: 1 / -1;
}

.ep-gate .ep-field span {
  font-size: 0.78rem;
}

.ep-gate .ep-field input,
.ep-gate .ep-field select {
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
}

.ep-gate .ep-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin-top: 0;
}

.ep-gate .ep-actions .ep-btn {
  min-height: 48px;
  border-radius: 12px;
}

.ep-gate .ep-actions .ep-primary {
  font-size: 1rem;
}

.ep-gate > .ep-grid-2 {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.ep-gate .ep-stat strong {
  font-size: 2rem;
}

.ep-gate .ep-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.ep-gate [data-local-list] {
  min-height: 58px;
}

.ep-gate [data-local-list]:empty::before {
  content: "Nenhum registro nesta sessão.";
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.ep-gate .ep-toast {
  left: 50%;
  right: auto;
  bottom: 16px;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%) translateY(12px);
  text-align: center;
}

.ep-gate .ep-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.ep-mp-home.ep-home h1 {
  max-width: 920px;
  margin: 0 auto 14px;
  color: var(--mp-text);
  font-size: clamp(2.55rem, 6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.ep-mp-home.ep-home p {
  color: var(--mp-muted);
}

.ep-mp-home .ep-mp-access-card p,
.ep-mp-home .ep-mp-info-grid p {
  color: var(--mp-muted);
}

@media (max-width: 900px) {
  .ep-mp-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .ep-mp-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ep-mp-environment-grid,
  .ep-mp-info-grid {
    grid-template-columns: 1fr;
  }

  .ep-mp-hero {
    padding-top: 18px;
  }

  .ep-mp-access-card {
    padding: 16px;
  }

  .ep-mp-environment-card {
    min-height: auto;
  }

  .ep-home-grid,
  .ep-info-grid,
  .ep-grid,
  .ep-grid-2 {
    grid-template-columns: 1fr;
  }
  .ep-topbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .ep-app { padding: 14px; }
  .ep-mp-home.ep-app { padding: 0; }
  .ep-mp-container { width: min(100% - 24px, var(--mp-max)); }
  .ep-mp-topbar { padding-top: 14px; }
  .ep-mp-home.ep-home h1 { font-size: 2.35rem; }
  .ep-mp-subtitle { font-size: 0.95rem; }
  .ep-mp-mini-pill,
  .ep-mp-language,
  .ep-mp-interface-status { font-size: 0.7rem; }
  .ep-mp-quick-actions { grid-template-columns: 1fr; }
  .ep-home h1, .ep-page-head h1 { font-size: 2.15rem; }
  .ep-home-nav,
  .ep-nav-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ep-nav-actions,
  .ep-pill-button {
    width: 100%;
  }
  .ep-choice-card,
  .ep-start-card,
  .ep-info-card {
    border-radius: 16px;
  }
  .ep-env-options,
  .ep-env-option {
    width: 100%;
  }
  .ep-role-links {
    grid-template-columns: 1fr;
  }
  .ep-mode-buttons { grid-template-columns: 1fr; }
  .ep-row { grid-template-columns: 1fr; }
  .ep-btn, .ep-toggle { width: 100%; }
}

@media (max-width: 720px) {
  .ep-gate {
    padding: 10px;
  }

  .ep-gate .ep-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ep-gate .ep-topbar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .ep-gate .ep-topbar nav a {
    justify-content: center;
    padding-inline: 6px;
    font-size: 0.78rem;
  }

  .ep-gate .ep-page-head {
    padding: 16px;
  }

  .ep-gate .ep-mode-buttons,
  .ep-gate > .ep-grid-2,
  .ep-search-grid,
  .ep-gate .ep-actions {
    grid-template-columns: 1fr;
  }

  .ep-search-grid .ep-field:last-child {
    grid-column: auto;
  }

  .ep-gate .ep-panel,
  .ep-gate .ep-card {
    padding: 14px;
  }

  .ep-gate .ep-mode-buttons .ep-btn {
    min-height: 56px;
  }
}

.ep-professor,
.ep-control {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
  background: #f3f6fb;
}

.ep-professor .ep-topbar,
.ep-control .ep-topbar,
.ep-professor .ep-page-head,
.ep-control .ep-page-head,
.ep-professor .ep-panel,
.ep-control .ep-panel,
.ep-professor .ep-card,
.ep-control .ep-card {
  border-color: #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.ep-professor .ep-topbar,
.ep-control .ep-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.ep-professor .ep-brand span,
.ep-control .ep-brand span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ep-professor .ep-brand strong,
.ep-control .ep-brand strong {
  font-size: 1rem;
}

.ep-professor .ep-topbar nav,
.ep-control .ep-topbar nav {
  gap: 6px;
}

.ep-professor .ep-topbar nav a,
.ep-control .ep-topbar nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.ep-professor .ep-page-head,
.ep-control .ep-page-head {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 18px;
}

.ep-professor .ep-page-head h1,
.ep-control .ep-page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.04em;
}

.ep-professor .ep-page-head p,
.ep-control .ep-page-head p {
  margin: 0;
  max-width: 640px;
  font-size: 0.98rem;
}

.ep-professor [data-ep-teacher],
.ep-control [data-ep-control] {
  display: grid;
  gap: 10px;
}

.ep-professor .ep-panel,
.ep-control .ep-panel {
  padding: 16px;
}

.ep-professor .ep-panel h2,
.ep-control .ep-panel h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ep-professor .ep-grid-2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 10px;
}

.ep-professor .ep-field input,
.ep-professor .ep-field select,
.ep-professor .ep-field textarea,
.ep-control .ep-field input,
.ep-control .ep-field select,
.ep-control .ep-field textarea {
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.98rem;
}

.ep-professor .ep-student-list {
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.ep-professor .ep-row {
  grid-template-columns: minmax(0, 1fr) 116px;
  border-radius: 12px;
}

.ep-professor .ep-toggle {
  min-height: 42px;
  border-radius: 12px;
}

.ep-professor [data-save] {
  min-height: 50px;
  border-radius: 12px;
  font-size: 1rem;
}

.ep-control .ep-control-tabs {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 0;
  scrollbar-width: thin;
}

.ep-control .ep-control-tabs .ep-btn {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 12px;
  white-space: nowrap;
}

.ep-control .ep-control-tabs .ep-btn.is-active {
  border-color: #2457c5;
  background: linear-gradient(135deg, #2457c5, #426ee8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(36, 87, 197, 0.2);
}

.ep-control .ep-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ep-control .ep-stat strong {
  font-size: 1.75rem;
}

.ep-control .ep-table {
  min-width: 640px;
}

.ep-control .ep-table-wrap {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #fff;
}

.ep-control .ep-search-grid {
  grid-template-columns: 150px minmax(0, 1fr);
}

.ep-bigscreen {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

.ep-bigscreen .ep-actions {
  align-items: center;
  margin-bottom: 14px;
}

.ep-bigscreen .ep-actions h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.ep-bigscreen .ep-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ep-bigscreen .ep-card,
.ep-bigscreen .ep-panel {
  border-radius: 16px;
}

@media (max-width: 900px) {
  .ep-control .ep-grid,
  .ep-bigscreen .ep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-professor .ep-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ep-professor,
  .ep-control,
  .ep-bigscreen {
    padding: 10px;
  }

  .ep-professor .ep-topbar,
  .ep-control .ep-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ep-professor .ep-topbar nav,
  .ep-control .ep-topbar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .ep-professor .ep-topbar nav a,
  .ep-control .ep-topbar nav a {
    justify-content: center;
    padding-inline: 6px;
    font-size: 0.78rem;
  }

  .ep-professor .ep-page-head,
  .ep-control .ep-page-head {
    padding: 16px;
  }

  .ep-professor .ep-row {
    grid-template-columns: 1fr;
  }

  .ep-professor .ep-toggle,
  .ep-professor .ep-btn {
    width: 100%;
  }

  .ep-professor .ep-student-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .ep-control .ep-grid,
  .ep-bigscreen .ep-grid,
  .ep-control .ep-search-grid {
    grid-template-columns: 1fr;
  }

  .ep-control .ep-control-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

  .ep-bigscreen .ep-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
