:root {
  --ep-bg: #f9fcff;
  --ep-surface: rgba(251, 249, 245, 0.68);
  --ep-surface-alt: rgba(237, 246, 255, 0.54);
  --ep-glass: linear-gradient(125deg, rgba(251, 249, 245, 0.82), rgba(251, 249, 245, 0.36) 48%, rgba(238, 248, 255, 0.28));
  --ep-glass-border: rgba(255, 255, 255, 0.94);
  --ep-reading-surface: linear-gradient(112deg, #fbf9f5 0%, #fbfcff 58%, #f1f5fe 100%);
  --ep-primary: #1769aa;
  --ep-primary-hover: #10578f;
  --ep-button-silk: linear-gradient(180deg, #ffffff, #dbe6f7);
  --ep-button-ink: #27427a;
  --ep-button-line: #b4c5e0;
  --ep-button-dark: linear-gradient(125deg, #25324d, #526c98 54%, #304263);
  --ep-primary-soft: #edf5fc;
  --ep-mountain: #0e3b5f;
  --ep-text: #153451;
  --ep-text-muted: #4d6680;
  --ep-border: rgba(165, 193, 218, 0.24);
  --ep-success: #247a72;
  --ep-warning: #b06c22;
  --ep-danger: #c84c55;
  --ep-shadow-sm: inset 0 1px 1px #ffffff, inset 0 -1px 0 rgba(183, 207, 230, 0.12), 0 4px 16px rgba(70, 115, 153, 0.035);
  --ep-shadow-md: inset 1px 1px 1px #ffffff, inset -1px -1px 1px rgba(181, 208, 232, 0.15), 0 12px 36px rgba(70, 115, 153, 0.045);
  --ep-radius-sm: 10px;
  --ep-radius-md: 16px;
  --ep-radius-lg: 24px;
  --ep-content-width: 1180px;
}

html,
body,
[data-testid="stAppViewContainer"] {
  overflow-x: hidden;
}

body,
[data-testid="stAppViewContainer"],
[data-testid="stSidebar"] {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ep-text);
}

[data-testid="stAppViewContainer"] {
  background:
    linear-gradient(118deg, transparent 36%, rgba(251, 249, 245, 0.88) 40%, transparent 46%),
    linear-gradient(155deg, transparent 60%, rgba(251, 249, 245, 0.8) 64%, transparent 71%),
    radial-gradient(ellipse at 100% 35%, rgba(207, 230, 252, 0.42), transparent 48%),
    radial-gradient(ellipse at 12% 94%, rgba(220, 237, 252, 0.48), transparent 42%),
    radial-gradient(ellipse at 75% 82%, rgba(255, 237, 214, 0.22), transparent 28%),
    linear-gradient(130deg, #fbf9f5 8%, var(--ep-bg) 54%, #f4faff);
  background-attachment: fixed;
}

/* Give the learning home a quiet reading surface. */
[data-testid="stAppViewContainer"]:has(.ep-home-heading, .ep-home-welcome) {
  background: linear-gradient(145deg, #fbfcff 0%, #edf3fb 62%, #e8f0f9 100%);
}

[data-testid="stHeader"] {
  background: rgba(251, 249, 245, 0.58);
  border-bottom: 1px solid var(--ep-glass-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ep-global-site-entry {
  position: fixed;
  z-index: 1000001;
  top: 0.34rem;
  right: 22rem;
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.62rem;
  box-sizing: border-box;
  padding: 0.34rem 0.72rem;
  border: 1px solid #9abbd3;
  border-radius: 12px;
  background: rgba(251, 249, 245, 0.94);
  color: #10578f !important;
  box-shadow: 0 3px 12px rgba(14, 59, 95, 0.1);
  line-height: 1.05;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
}

.ep-global-site-entry strong {
  color: #10578f !important;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.ep-global-site-entry small {
  padding-left: 0.62rem;
  border-left: 1px solid #c4d5e1;
  color: #4a6274;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.ep-global-site-entry:hover {
  border-color: var(--ep-primary);
  background: #fbf9f5;
  color: var(--ep-primary-hover) !important;
  box-shadow: 0 5px 16px rgba(14, 59, 95, 0.14);
}

.block-container {
  width: min(100%, var(--ep-content-width));
  max-width: var(--ep-content-width);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

h1,
h2,
h3,
h4,
[data-testid="stMarkdownContainer"] strong {
  color: var(--ep-text);
}

h1 {
  font-weight: 780;
  letter-spacing: -0.035em;
}

h2,
h3 {
  letter-spacing: -0.018em;
}

p,
label,
li,
.stCaption {
  color: var(--ep-text-muted);
}

a {
  color: var(--ep-primary-hover);
}

[data-testid="stSidebar"] {
  background: linear-gradient(160deg, rgba(251, 249, 245, 0.72), rgba(245, 251, 255, 0.34));
  border-right: 1px solid var(--ep-glass-border);
  box-shadow: 1px 0 0 rgba(206, 226, 242, 0.15), 8px 0 36px rgba(80, 127, 167, 0.018);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

[data-testid="stSidebar"] > div:first-child {
  background: transparent;
}

[data-testid="stSidebar"] h2 {
  color: var(--ep-mountain);
  letter-spacing: -0.03em;
}

[data-testid="stSidebar"] [data-testid="stButton"] button {
  justify-content: flex-start;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

[data-testid="stSidebar"] [data-testid="stButton"] button:hover {
  border-color: var(--ep-border);
  background: var(--ep-primary-soft);
  transform: none;
}

div[data-testid="stTextArea"] textarea,
div[data-testid="stTextInput"] input,
[data-baseweb="select"] > div {
  color: var(--ep-text);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-reading-surface);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

div[data-testid="stTextArea"] textarea::placeholder,
div[data-testid="stTextInput"] input::placeholder {
  color: #758997;
  opacity: 1;
}

div[data-testid="stTextArea"] textarea:focus,
div[data-testid="stTextInput"] input:focus,
[data-baseweb="select"] > div:focus-within {
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.13);
}

div.stButton > button,
div.stDownloadButton > button,
[data-testid="stFormSubmitButton"] button {
  min-height: 46px;
  border: 1px solid #b8cbd9;
  border-radius: 12px;
  background: var(--ep-surface);
  color: var(--ep-primary-hover);
  font-weight: 720;
  box-shadow: 0 1px 2px rgba(14, 59, 95, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

div.stButton > button:hover,
div.stDownloadButton > button:hover,
[data-testid="stFormSubmitButton"] button:hover {
  border-color: var(--ep-primary);
  background: #f8fbfd;
  color: var(--ep-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--ep-shadow-sm);
}

div.stButton > button:active,
div.stDownloadButton > button:active,
[data-testid="stFormSubmitButton"] button:active {
  transform: translateY(0);
}

[data-testid="stBaseButton-primary"],
button[kind="primary"] {
  border-color: var(--ep-primary) !important;
  background: var(--ep-primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(23, 105, 170, 0.18) !important;
}

[data-testid="stBaseButton-primary"] *,
button[kind="primary"] * {
  color: #fff !important;
}

[data-testid="stBaseButton-primary"]:hover,
button[kind="primary"]:hover {
  border-color: var(--ep-primary-hover) !important;
  background: var(--ep-primary-hover) !important;
}

[data-testid="stAlert"] {
  border-radius: var(--ep-radius-md);
  border-width: 1px;
}

[data-testid="stExpander"] {
  overflow: hidden;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: none;
}

[data-testid="stVerticalBlockBorderWrapper"] {
  border-color: var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
}

[data-testid="stTabs"] [data-baseweb="tab-list"] {
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 13px;
  background: var(--ep-surface-alt);
}

[data-testid="stTabs"] [role="tab"] {
  border-radius: 10px;
  color: var(--ep-text-muted);
}

[data-testid="stTabs"] [aria-selected="true"] {
  background: var(--ep-surface);
  color: var(--ep-mountain);
  box-shadow: 0 1px 4px rgba(14, 59, 95, 0.08);
}

div[class*="st-key-correction_history_card_"] {
  margin-bottom: 0.9rem;
}

div[class*="st-key-correction_history_card_"] [data-testid="stVerticalBlockBorderWrapper"] {
  border: 1px solid #b7cad8;
  background: #fbf9f5;
  box-shadow: 0 8px 24px rgba(14, 59, 95, 0.09);
}

.correction-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #425b6d;
  font-size: 0.84rem;
  font-weight: 650;
}

.correction-history-meta strong {
  padding: 0.24rem 0.58rem;
  border: 1px solid #8db4d1;
  border-radius: 999px;
  background: #d9eaf6;
  color: #0e4f80 !important;
  font-size: 0.76rem;
  font-weight: 800;
}

.correction-history-question {
  margin-top: -0.25rem;
  color: #142c3e;
  font-size: 1.02rem;
  font-weight: 780;
  line-height: 1.55;
}

.correction-history-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #24445c;
  font-size: 0.88rem;
  font-weight: 720;
}

.correction-history-scores strong,
.correction-history-scores span {
  padding: 0.34rem 0.58rem;
  border-radius: 8px;
  background: #e5eef5;
  color: #24445c !important;
}

.correction-history-scores strong {
  background: #1769aa;
  color: #ffffff !important;
}

.correction-history-preview {
  padding: 0.7rem 0.8rem;
  border-left: 3px solid #6f9fbe;
  border-radius: 0 8px 8px 0;
  background: #f0f5f8;
  color: #385064;
  font-size: 0.86rem;
  line-height: 1.65;
}

.ep-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  height: 480px;
  min-height: 0;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-md);
  animation: ep-rise 320ms ease-out both;
}

.ep-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(105deg, var(--ep-surface) 74%, rgba(251, 249, 245, 0.76) 90%, transparent 100%);
}

.ep-hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='620' height='420' viewBox='0 0 620 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231769AA' stroke-opacity='.08'%3E%3Cpath d='M-20 330C90 250 160 360 280 270s190-80 360-190'/%3E%3Cpath d='M-20 365C90 285 175 390 300 300S510 210 650 120'/%3E%3Cpath d='M-10 400C120 320 205 420 330 335s200-100 340-170'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left bottom;
  background-repeat: no-repeat;
}

.ep-eyebrow,
.eyebrow,
.section-kicker {
  position: relative;
  z-index: 1;
  color: var(--ep-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ep-eyebrow {
  margin-bottom: 1rem;
}

.section-kicker {
  margin-bottom: -0.35rem;
}

.ep-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0;
  color: var(--ep-mountain);
  font-size: clamp(2.45rem, 4.3vw, 4rem);
  font-weight: 790;
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.ep-hero p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 1.2rem 0 0;
  color: var(--ep-text-muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.ep-hero__trail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  width: 220px;
  margin-top: 2rem;
}

.ep-hero__trail span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ep-primary);
  border-radius: 50%;
  background: var(--ep-surface);
}

.ep-hero__trail span:not(:last-child)::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin: 2px 0 0 8px;
  background: var(--ep-border);
}

.ep-hero__media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ep-surface-alt);
}

.ep-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ep-surface) 0%, rgba(251, 249, 245, 0.64) 12%, transparent 44%);
}

.ep-hero__media picture,
.ep-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.ep-hero__media img {
  min-height: 480px;
  object-fit: cover;
  object-position: 54% 50%;
  filter: saturate(0.94) contrast(0.97);
}

.ep-hero__media figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 2;
  max-width: 250px;
  padding: 0.45rem 0.62rem;
  border-radius: 8px;
  background: rgba(14, 59, 95, 0.76);
  color: #fff;
  font-size: 0.67rem;
  line-height: 1.35;
  backdrop-filter: blur(6px);
}

.ep-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 2rem;
}

.ep-bento__card {
  min-height: 178px;
  padding: 1.35rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ep-bento__card:hover {
  border-color: #b6cad8;
  transform: translateY(-2px);
  box-shadow: var(--ep-shadow-md);
}

.ep-bento__card--wide {
  grid-column: span 2;
  background: linear-gradient(145deg, var(--ep-surface), #f4f9fc);
}

.ep-bento__index {
  color: var(--ep-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.ep-bento h3 {
  margin: 0.95rem 0 0.45rem;
  color: var(--ep-mountain);
  font-size: 1.25rem;
}

.ep-bento p {
  margin: 0;
  color: var(--ep-text-muted);
  line-height: 1.65;
}

.ep-bento__action {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ep-border);
  border-radius: 10px;
  color: var(--ep-primary) !important;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none !important;
}

.ep-bento__action:hover {
  border-color: var(--ep-primary);
  background: var(--ep-primary-soft);
}

.ep-home-heading {
  min-width: 0;
  margin: 0 0 0.75rem;
}

.ep-home-heading__brand,
.ep-home-action__eyebrow,
.ep-home-welcome__eyebrow {
  display: block;
  color: var(--ep-primary);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ep-home-heading__logo {
  display: block;
  width: clamp(175px, 16vw, 215px);
  max-width: 58vw;
  height: auto;
}

.ep-home-heading h1 {
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-mountain);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.ep-home-heading p {
  max-width: 680px;
  margin: 0.42rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ep-home-action {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
  min-width: 0;
  margin: 0 0 1rem;
  padding: clamp(1.55rem, 3.5vw, 2.6rem);
  overflow: hidden;
  border: 1px solid rgba(167, 200, 224, 0.8);
  border-radius: var(--ep-radius-lg);
  background:
    radial-gradient(circle at 10% 118%, rgba(71, 145, 207, 0.14), transparent 42%),
    radial-gradient(circle at 96% 2%, rgba(115, 185, 225, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(251, 249, 245, 0.96) 0%, rgba(239, 247, 253, 0.9) 100%);
  box-shadow: 0 22px 58px rgba(14, 59, 95, 0.11);
  backdrop-filter: blur(12px);
  animation: ep-rise 300ms ease-out both;
}

.ep-home-action::before,
.ep-home-action::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ep-home-action::before {
  right: 7%;
  bottom: -128px;
  width: 260px;
  height: 260px;
  background: rgba(102, 174, 219, 0.12);
  filter: blur(26px);
}

.ep-home-action::after {
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(23, 105, 170, 0.13);
}

.ep-home-action__copy,
.ep-home-action__facts,
.ep-home-action__actions,
.ep-home-action__fact {
  min-width: 0;
}

.ep-home-action__copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding-right: clamp(0.5rem, 3vw, 2.5rem);
}

.ep-home-action h2 {
  margin: 0.48rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-mountain);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.ep-home-action__copy p {
  max-width: 700px;
  margin: 0.65rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-text-muted);
  line-height: 1.65;
}

.ep-home-action__facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 0;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(167, 200, 224, 0.65);
}

.ep-home-action__fact {
  flex: 1 1 160px;
  padding: 0.1rem 1rem;
  border-left: 1px solid rgba(167, 200, 224, 0.7);
}

.ep-home-action__fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.ep-home-action__fact span,
.ep-home-action__fact strong {
  display: block;
  overflow-wrap: anywhere;
}

.ep-home-action__fact span {
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.ep-home-action__fact strong {
  margin-top: 0.22rem;
  color: var(--ep-mountain);
  font-size: 0.98rem;
  line-height: 1.35;
}

.ep-home-action__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  gap: 0.55rem;
}

.ep-home-action__link {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--ep-primary);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 790;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}

.ep-home-action__link--primary {
  background: var(--ep-primary);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(23, 105, 170, 0.18);
}

.ep-home-action__link--primary:hover {
  background: var(--ep-primary-hover);
}

.ep-home-action__link--secondary {
  min-height: 40px;
  padding: 0.48rem 0.7rem;
  border-color: transparent;
  background: transparent;
  color: var(--ep-primary-hover) !important;
  font-weight: 720;
}

.ep-home-action__link--secondary:hover {
  border-color: rgba(23, 105, 170, 0.2);
  background: rgba(251, 249, 245, 0.62);
}

.ep-home-welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.72fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  min-width: 0;
  margin: 0.45rem 0 1rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  overflow: hidden;
  border: 1px solid rgba(167, 200, 224, 0.78);
  border-radius: var(--ep-radius-lg);
  background:
    radial-gradient(circle at 4% 108%, rgba(71, 145, 207, 0.16), transparent 40%),
    radial-gradient(circle at 92% 0%, rgba(140, 202, 234, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(251, 249, 245, 0.97) 0%, rgba(239, 247, 253, 0.92) 100%);
  box-shadow: 0 22px 58px rgba(14, 59, 95, 0.1);
  backdrop-filter: blur(12px);
}

.ep-home-welcome::before {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -160px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(87, 164, 214, 0.1);
  filter: blur(30px);
  pointer-events: none;
}

.ep-home-welcome__copy,
.ep-home-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ep-home-welcome h1 {
  max-width: 780px;
  margin: 0.5rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-mountain);
  font-size: clamp(2.25rem, 5.3vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.ep-home-welcome__copy > p {
  max-width: 720px;
  margin: 0.8rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-text-muted);
  line-height: 1.68;
}

.ep-home-welcome ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.ep-home-welcome li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.42rem;
  overflow-wrap: anywhere;
  color: #466175;
  font-size: 0.8rem;
  font-weight: 710;
}

.ep-home-welcome li span {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ep-primary-soft);
  color: var(--ep-primary-hover);
  font-size: 0.7rem;
  font-weight: 820;
}

.ep-home-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.ep-home-welcome__actions .ep-home-action__link {
  min-width: min(190px, 100%);
}

.ep-home-preview {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(251, 249, 245, 0.62);
  color: var(--ep-text) !important;
  box-shadow: inset 0 0 0 1px rgba(167, 200, 224, 0.32), 0 12px 30px rgba(14, 59, 95, 0.08);
  text-decoration: none !important;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ep-home-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 170, 0.3);
  background: rgba(251, 249, 245, 0.82);
}

.ep-home-preview > span {
  color: var(--ep-primary);
  font-size: 0.66rem;
  font-weight: 830;
  letter-spacing: 0.1em;
}

.ep-home-preview > strong,
.ep-home-preview > small,
.ep-home-preview > b {
  display: block;
  overflow-wrap: anywhere;
}

.ep-home-preview > strong {
  margin-top: 0.45rem;
  color: var(--ep-mountain);
  font-size: 1.18rem;
  line-height: 1.25;
}

.ep-home-preview > small {
  margin-top: 0.5rem;
  color: var(--ep-text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.ep-home-preview > b {
  margin-top: 0.85rem;
  color: var(--ep-primary-hover);
  font-size: 0.8rem;
}

.ep-home-preview--inline {
  min-height: 0;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  border-color: var(--ep-border);
  border-radius: 14px;
  background: rgba(251, 249, 245, 0.68);
  box-shadow: var(--ep-shadow-sm);
}

.ep-home-preview--inline > strong,
.ep-home-preview--inline > small,
.ep-home-preview--inline > b {
  margin-top: 0;
}

.ep-home-preview--inline > small {
  margin-left: auto;
}

.ep-home-action__link:focus-visible,
.ep-home-preview:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.3);
  outline-offset: 3px;
}

.ep-demo-intro {
  position: relative;
  min-width: 0;
  margin: 0.35rem 0 1rem;
  padding: clamp(1.35rem, 3.6vw, 2.65rem);
  overflow: hidden;
  border: 1px solid rgba(167, 200, 224, 0.78);
  border-radius: var(--ep-radius-lg);
  background:
    radial-gradient(circle at 92% 4%, rgba(111, 184, 225, 0.24), transparent 34%),
    radial-gradient(circle at 8% 116%, rgba(71, 145, 207, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(251, 249, 245, 0.97), rgba(239, 247, 253, 0.92));
  box-shadow: 0 20px 52px rgba(14, 59, 95, 0.1);
  backdrop-filter: blur(12px);
}

.ep-demo-intro > span {
  display: block;
  color: var(--ep-primary);
  font-size: 0.68rem;
  font-weight: 830;
  letter-spacing: 0.1em;
}

.ep-demo-intro h1 {
  max-width: 850px;
  margin: 0.55rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-mountain);
  font-size: clamp(2rem, 4.8vw, 3.55rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ep-demo-intro p {
  max-width: 780px;
  margin: 0.8rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ep-text-muted);
  line-height: 1.65;
}

.ep-demo-intro div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.ep-demo-intro div b {
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(167, 200, 224, 0.74);
  border-radius: 999px;
  background: rgba(251, 249, 245, 0.66);
  color: var(--ep-mountain);
  font-size: 0.76rem;
}

.ep-demo-intro div i {
  color: var(--ep-primary);
  font-style: normal;
}

.score-card,
.dashboard-stat-card {
  min-width: 0;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
}

.score-card {
  padding: 1.15rem 1.2rem;
  animation: ep-rise 300ms ease-out both;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.score-card:hover {
  border-color: #b6cad8;
  transform: translateY(-2px);
  box-shadow: var(--ep-shadow-md);
}

.score-label {
  color: var(--ep-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.score-value {
  margin: 0.22rem 0;
  color: var(--ep-mountain);
  font-size: 1.8rem;
  font-weight: 820;
  line-height: 1.1;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(var(--stat-columns, 3), minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.7rem 0 1.15rem;
}

.dashboard-stat-card {
  padding: 1rem 1.05rem;
}

.dashboard-stat-label {
  color: var(--ep-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-stat-value {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: var(--ep-mountain);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 810;
  line-height: 1.2;
}

.dashboard-stat-note {
  min-height: 1.2em;
  margin-top: 0.35rem;
  color: #718593;
  font-size: 0.72rem;
  line-height: 1.4;
}

.st-key-essay_editor {
  max-width: 860px;
  margin: 0.75rem auto 1.2rem;
  padding: clamp(1rem, 3.2vw, 2rem);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-md);
}

.st-key-essay_editor [data-testid="stTextArea"] textarea {
  line-height: 1.75;
  box-shadow: inset 0 1px 2px rgba(14, 59, 95, 0.025);
}

.st-key-topic_input textarea {
  min-height: 120px;
}

.st-key-essay_input textarea {
  min-height: 420px;
}

.ep-editor-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ep-border);
  color: var(--ep-text-muted);
  font-size: 0.78rem;
}

.st-key-topic_bank_panel,
.st-key-topic_expression_panel {
  width: min(100%, 860px);
  min-width: 0;
  margin: 0 auto 1rem;
}

[class*="st-key-topic_card_"] {
  min-width: 0;
  margin: 0.75rem 0;
  overflow-wrap: anywhere;
  border-color: var(--ep-border) !important;
  background: var(--ep-surface) !important;
  box-shadow: var(--ep-shadow-sm);
}

[class*="st-key-topic_card_"] p {
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.ep-topic-type {
  display: inline-flex;
  margin-bottom: 0.25rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--ep-primary-soft);
  color: var(--ep-primary-hover);
  font-size: 0.72rem;
  font-weight: 780;
}

.ep-topic-home-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0.85rem 0 1.15rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #b9d4e7;
  border-radius: var(--ep-radius-md);
  background: linear-gradient(135deg, #f8fbfd, var(--ep-primary-soft));
  box-shadow: var(--ep-shadow-sm);
}

.ep-topic-home-entry span {
  color: var(--ep-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ep-topic-home-entry h3 {
  margin: 0.25rem 0 0.2rem;
  color: var(--ep-mountain);
  font-size: 1.25rem;
}

.ep-topic-home-entry p {
  margin: 0;
  color: var(--ep-text-muted);
  line-height: 1.55;
}

.ep-topic-home-entry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: var(--ep-primary);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none !important;
  white-space: nowrap;
}

.ep-topic-home-entry a:hover {
  background: var(--ep-primary-hover);
}

.ep-topic-expression {
  min-width: 0;
  margin: 0.65rem 0;
  padding: 0.85rem 0.95rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-surface);
}

.ep-topic-expression strong,
.ep-topic-expression span {
  display: block;
}

.ep-topic-expression strong {
  color: var(--ep-mountain);
}

.ep-topic-expression span {
  margin-top: 0.2rem;
  color: var(--ep-primary-hover);
  font-size: 0.84rem;
}

.ep-topic-expression p {
  margin: 0.45rem 0 0;
  color: var(--ep-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.ep-overall-card {
  position: relative;
  overflow: hidden;
  margin: 0.25rem 0 1rem;
  padding: 1.7rem 1.2rem;
  border: 1px solid #b9d4e7;
  border-radius: var(--ep-radius-lg);
  background: linear-gradient(145deg, #f8fbfd, var(--ep-primary-soft));
  text-align: center;
  box-shadow: var(--ep-shadow-sm);
  animation: ep-rise 320ms ease-out both;
}

.ep-overall-card__label {
  color: var(--ep-mountain);
  font-size: 0.88rem;
  font-weight: 760;
}

.ep-overall-card__value {
  margin: 0.28rem 0;
  color: var(--ep-primary-hover);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.ep-overall-card__note {
  color: var(--ep-text-muted);
  font-size: 0.82rem;
}

.ep-result-summary {
  margin: 0.8rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ep-primary);
  border-radius: 0 var(--ep-radius-sm) var(--ep-radius-sm) 0;
  background: var(--ep-surface);
  color: var(--ep-text);
  box-shadow: var(--ep-shadow-sm);
}

.issue-map {
  margin: 0.75rem 0 1.2rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  color: var(--ep-text);
  font-size: 1rem;
  line-height: 1.95;
  white-space: pre-wrap;
  box-shadow: var(--ep-shadow-sm);
}

.issue-mark {
  padding: 0 0.08rem;
  background: linear-gradient(transparent 48%, rgba(200, 76, 85, 0.22) 48%);
  color: inherit;
}

.issue-mark sup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.18rem;
  border-radius: 999px;
  background: var(--ep-danger);
  color: #fff;
  font: 700 0.68rem/1 Arial, sans-serif;
}

.problem-span {
  text-decoration-line: underline;
  text-decoration-color: #a51f2c;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.correction-original {
  margin: 0.5rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--ep-danger);
  border-radius: 0 var(--ep-radius-sm) var(--ep-radius-sm) 0;
  background: rgba(200, 76, 85, 0.1);
  color: #762a31;
  line-height: 1.75;
}

.dictionary-card {
  position: relative;
  margin: 1.8rem 0 0.7rem 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-left: 3px solid var(--ep-primary);
  border-radius: var(--ep-radius-sm);
  background: #f7fbff;
}

.dictionary-card::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1.25rem;
  width: 2px;
  height: 1.8rem;
  background: var(--ep-primary);
}

.dictionary-card h4 { margin: 0.15rem 0 0.65rem; color: var(--ep-mountain); }
.dictionary-card h4 span { color: var(--ep-text-muted); font-size: 0.78rem; font-weight: 600; }
.dictionary-card p { margin: 0.38rem 0; font-size: 0.9rem; }
.dictionary-card__source { color: var(--ep-text-muted); font-size: 0.78rem; }
.dictionary-card__route {
  margin: 0.55rem 0 0.75rem;
  padding: 0.48rem 0.62rem;
  border-radius: 9px;
  background: #eaf4fb;
  font-size: 0.84rem;
}
.dictionary-card__route span { color: #8f3038; text-decoration: line-through; }
.dictionary-card__route b { color: var(--ep-primary); }
.dictionary-card__route strong { color: #155e57; }
.dictionary-card code { color: var(--ep-mountain); font-weight: 700; }

.ep-stepper {
  display: grid !important;
  width: 100% !important;
  box-sizing: border-box;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
  list-style: none;
}

.ep-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  color: #7b8e9b;
  font-size: 0.82rem;
}

.ep-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13%;
  width: 26%;
  height: 1px;
  background: var(--ep-border);
}

.ep-stepper li span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 1px solid var(--ep-border);
  border-radius: 50%;
  background: var(--ep-bg);
  color: var(--ep-text-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.ep-stepper .is-done,
.ep-stepper .is-active {
  color: var(--ep-mountain);
}

.ep-stepper .is-done span {
  border-color: var(--ep-success);
  background: #e1f1ef;
  color: var(--ep-success);
}

.ep-stepper .is-active span {
  border-color: var(--ep-primary);
  background: var(--ep-primary);
  color: #fff;
}

.ep-loader-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
}

.ep-loader-panel strong {
  color: var(--ep-mountain);
}

.ep-loader-panel p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.ep-loader {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.ep-loader i {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--ep-primary);
  border-radius: 50%;
  animation: ep-spin 1.2s linear infinite;
}

.ep-loader i:nth-child(2) {
  inset: 7px;
  border-top-color: var(--ep-primary-soft);
  border-right-color: var(--ep-primary);
  animation-direction: reverse;
  animation-duration: 1.05s;
}

.ep-loader i:nth-child(3) {
  inset: 14px;
  border-top-color: var(--ep-mountain);
  animation-duration: 0.9s;
}

.ep-diff {
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
}

.ep-diff__legend {
  display: flex;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ep-border);
  color: var(--ep-text-muted);
  font-size: 0.74rem;
}

.ep-diff__legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 2px;
}

.ep-diff__legend .is-removed::before {
  background: rgba(200, 76, 85, 0.32);
}

.ep-diff__legend .is-added::before {
  background: rgba(36, 122, 114, 0.32);
}

.ep-diff__text {
  padding: 1.2rem;
  color: var(--ep-text);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.85;
  white-space: normal;
}

.ep-diff del,
.ep-diff ins {
  padding: 0.08rem 0.16rem;
  border-radius: 4px;
  text-decoration: none;
}

.ep-paragraph-diffs {
  display: grid;
  gap: 0.9rem;
  margin: 0.8rem 0 1.2rem;
}

.ep-paragraph-diff {
  overflow: hidden;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow-sm);
}

.issue-map-tree {
  display: grid;
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
  padding: 1.15rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: linear-gradient(145deg, #fbf9f5, #f4f8fc);
  box-shadow: var(--ep-shadow-sm);
}

.issue-map-tree__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--ep-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.issue-map-tree__header span,
.issue-map-tree__header strong {
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: #e9f2fa;
  color: var(--ep-mountain);
}

.issue-map-tree__header strong { background: var(--ep-primary); color: #fff; }
.issue-map-tree__header b { color: var(--ep-primary); }

.issue-map-branch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.24fr) 1fr;
  gap: 1.05rem;
  align-items: stretch;
}

.issue-map-criterion::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.05rem;
  width: 1.05rem;
  height: 2px;
  background: rgba(23, 105, 170, 0.45);
}

.issue-map-criterion {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
  align-content: center;
  min-height: 5.2rem;
  padding: 0.85rem;
  border: 1px solid rgba(23, 105, 170, 0.24);
  border-left: 5px solid var(--ep-primary);
  border-radius: var(--ep-radius-sm);
  background: #edf6fd;
  color: var(--ep-mountain);
}

.issue-map-criterion h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.issue-map-criterion h4 strong { font: 800 1rem/1 Arial, sans-serif; }
.issue-map-criterion h4 span { font-size: 0.9rem; font-weight: 720; }
.issue-map-criterion em {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--ep-primary);
  color: #fff;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.issue-map-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.issue-map-node {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  background: #fbf9f5;
}

.issue-map-node__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ep-mountain);
  margin: 0;
  font-size: 0.92rem;
  font-weight: 760;
}

.issue-map-node__title span {
  color: var(--ep-danger);
  font: 800 0.78rem/1 Arial, sans-serif;
}

.issue-map-node__evidence {
  margin: 0.58rem 0 0;
  padding: 0.52rem 0.62rem;
  border: 0;
  border-left: 3px solid var(--ep-danger);
  border-radius: 0 8px 8px 0;
  background: #fff5f5;
  color: var(--ep-text);
  font-size: 0.84rem;
  line-height: 1.55;
}

.issue-map-node p.issue-map-node__problem {
  margin: 0.42rem 0 0;
  color: var(--ep-text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.issue-map-replacement,
.dictionary-trigger,
.dictionary-card__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.issue-map-replacement {
  margin-top: 0.58rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--ep-border);
  font-size: 0.82rem;
}

.issue-map-replacement span { color: #8f3038; text-decoration: line-through; }
.issue-map-replacement b { color: var(--ep-primary); }
.issue-map-replacement strong { color: #155e57; }

.dictionary-trigger {
  justify-content: space-between;
  margin: 0.9rem 0 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px dashed rgba(23, 105, 170, 0.38);
  border-radius: var(--ep-radius-sm);
  background: #f2f8fd;
  color: var(--ep-text-muted);
  font-size: 0.84rem;
}

.dictionary-trigger strong { color: var(--ep-primary-hover); font-size: 0.92rem; }

.vocab-learning-panel {
  margin: 0.7rem 0 1.65rem;
  padding: 1rem;
  border: 1px solid #eadcc9;
  border-radius: var(--ep-radius-md);
  background: linear-gradient(145deg, #fffdf8, #fbf3e8);
  box-shadow: var(--ep-shadow-sm);
}

.vocab-learning-panel__legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.vocab-learning-panel__legend > span,
.vocab-card__kind {
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.vocab-learning-panel__legend .recommended,
.vocab-card--recommended .vocab-card__kind {
  background: #e8f4ef;
  color: #155e57;
}

.vocab-learning-panel__legend .upgrade,
.vocab-card--upgrade .vocab-card__kind {
  background: #fff0dc;
  color: #96521f;
}

.vocab-learning-panel__legend small {
  margin-left: auto;
  color: var(--ep-text-muted);
  font-size: 0.78rem;
}

.vocab-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.vocab-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #eadcc9;
  border-top: 4px solid #72a8a0;
  border-radius: var(--ep-radius-sm);
  background: rgba(255, 250, 242, 0.96);
}

.vocab-card--upgrade { border-top-color: #d68d53; }

.vocab-card > header {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 0.65rem;
}

.vocab-card__number {
  color: var(--ep-primary-hover);
  font: 800 0.78rem/1 Arial, sans-serif;
}

.vocab-card__evidence {
  margin: 0 0 0.72rem;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-left: 3px solid #ca5b63;
  border-radius: 0 8px 8px 0;
  background: #fbf9f5;
  color: var(--ep-text);
  font-size: 0.86rem;
  line-height: 1.6;
}

.vocab-source-mark {
  padding: 0 0.08rem;
  background: transparent;
  color: #b23842;
  font-weight: 800;
  text-decoration: underline 2px #d96d74;
  text-underline-offset: 3px;
}

.vocab-card__route,
.vocab-card__target {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
}

.vocab-card__route span { color: #9a3c43; text-decoration: line-through; }
.vocab-card__route b { color: var(--ep-primary); }
.vocab-card__route strong,
.vocab-card__target strong { color: #155e57; }

.vocab-card h4 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.7rem;
  color: #152c73;
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: underline 2px #d7555d;
  text-underline-offset: 4px;
}

.vocab-card h4 span {
  color: #202735;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.vocab-card h4 em {
  color: #6c5b4f;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.vocab-card__sense {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.42rem;
  align-items: start;
}

.vocab-card__sense > b { color: var(--ep-text); }
.vocab-card__sense p { margin: 0; color: var(--ep-text); font-size: 0.88rem; line-height: 1.55; }
.vocab-card__sense p span { display: block; color: #6b5180; font-weight: 650; }

.vocab-card__pattern {
  margin: 0.6rem 0;
  color: #152c73;
}

.vocab-card__pattern code {
  padding: 0.22rem 0.42rem;
  border-radius: 6px;
  background: #eee9f7;
  color: #42305c;
  font-weight: 750;
}

.vocab-card__collocations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin: 0.55rem 0;
}

.vocab-card__collocations strong { margin-right: 0.15rem; font-size: 0.8rem; }
.vocab-card__collocations span {
  padding: 0.22rem 0.42rem;
  border-radius: 6px;
  background: #e7f4f2;
  color: #176b65;
  font-size: 0.78rem;
  font-weight: 700;
}

.vocab-card__example {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.42rem;
  margin-top: 0.58rem;
  color: #0d7d78;
}

.vocab-card__example p { margin: 0; }
.vocab-card__example strong { display: block; font-size: 0.86rem; line-height: 1.55; }
.vocab-card__example span { display: block; color: var(--ep-text-muted); font-size: 0.8rem; }

.vocab-card footer {
  margin-top: 0.68rem;
  padding-top: 0.58rem;
  border-top: 1px dashed #ddcbb3;
  color: var(--ep-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.ep-paragraph-diff header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--ep-bg);
  color: var(--ep-mountain);
  font-size: 0.78rem;
  font-weight: 760;
}

.ep-paragraph-diff header span { color: var(--ep-text-muted); font-weight: 600; }
.ep-paragraph-diff__after,
.ep-paragraph-diff__changes { padding: 0.9rem 1rem; line-height: 1.75; white-space: pre-wrap; }
.ep-paragraph-diff__after { background: rgba(36, 122, 114, 0.07); }
.ep-paragraph-diff__changes { border-top: 1px solid var(--ep-border); }
.ep-paragraph-diff__changes del { background: rgba(200, 76, 85, 0.16); color: #8f3038; text-decoration: line-through; }
.ep-paragraph-diff__changes ins { background: rgba(36, 122, 114, 0.17); color: #155e57; text-decoration: none; }
.ep-diff__empty { color: var(--ep-text-muted); font-style: italic; }

.ep-diff del {
  background: rgba(200, 76, 85, 0.16);
  color: #8f3038;
  text-decoration: line-through;
}

.ep-diff ins {
  background: rgba(36, 122, 114, 0.17);
  color: #155e57;
}

.workspace-note {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.7rem 0 1.3rem;
}

.feature-chip {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: var(--ep-surface);
  color: var(--ep-text-muted);
  font-size: 0.86rem;
  box-shadow: var(--ep-shadow-sm);
}

.feature-chip strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ep-mountain);
}

.demo-step {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: var(--ep-primary-soft);
  color: var(--ep-primary-hover);
  font-size: 0.72rem;
  font-weight: 800;
}

[data-testid="stElementContainer"]:has(.bookmark-rail) {
  position: sticky !important;
  top: 1rem;
  z-index: 999;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.bookmark-rail {
  position: absolute;
  top: 110px;
  right: -94px;
  display: flex;
  width: 118px;
  max-height: calc(100vh - 150px);
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  overflow-y: auto;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-md);
  background: rgba(251, 249, 245, 0.96);
  box-shadow: var(--ep-shadow-sm);
  pointer-events: auto;
}

.bookmark-rail span {
  padding: 0.12rem 0.35rem 0.28rem;
  color: #7b8e9b;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.bookmark-rail a {
  padding: 0.46rem 0.54rem;
  border-radius: 9px;
  color: var(--ep-text-muted) !important;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.bookmark-rail a:hover {
  background: var(--ep-primary-soft);
  color: var(--ep-primary-hover) !important;
}

.scroll-anchor {
  scroll-margin-top: 5rem;
}

.mobile-product-nav {
  display: none;
}

[data-testid="stElementContainer"]:has(.mobile-product-nav) {
  display: none;
}

.st-key-mobile_account_bar {
  display: none;
}

.st-key-desktop_account_bar {
  margin-bottom: 0.2rem;
  border-color: var(--ep-border);
  background: rgba(251, 249, 245, 0.88);
  box-shadow: var(--ep-shadow-sm);
}

.st-key-desktop_account_bar [data-testid="stCaptionContainer"] p {
  margin: 0.5rem 0 0;
}

[data-testid="stMarkdownContainer"]:has(table) {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
}

[data-testid="stMarkdownContainer"] table {
  width: 100%;
  background: var(--ep-surface);
}

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

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

@media (max-width: 1180px) {
  .block-container {
    padding-right: 1.4rem;
    padding-left: 1.4rem;
  }

  .bookmark-rail {
    right: 0;
  }
}

@media (max-width: 1024px) {
  .ep-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    height: 440px;
    min-height: 0;
  }

  .ep-hero__copy {
    padding: 2.4rem;
  }

  .ep-hero__media img {
    min-height: 440px;
  }

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

  .ep-bento__card--wide {
    grid-column: span 1;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-testid="stElementContainer"]:has(.bookmark-rail) {
    top: 0.5rem;
    height: 50px;
    margin-bottom: 0.55rem;
    overflow: hidden;
    pointer-events: auto;
  }

  .bookmark-rail {
    position: relative;
    inset: 0;
    width: 100%;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }

  .bookmark-rail span {
    display: none;
  }
}

@media (max-width: 768px) {
  .block-container {
    /* Clear the fixed toolbar, then start the page immediately below it. */
    padding-top: 4.25rem;
    padding-right: 1rem;
    padding-bottom: 5.5rem;
    padding-left: 1rem;
  }

  .ep-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .ep-hero__copy {
    min-height: 300px;
    padding: 2rem 1.5rem 1.7rem;
    background: var(--ep-surface);
  }

  .ep-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .ep-hero__trail {
    margin-top: 1.3rem;
  }

  .ep-hero__media,
  .ep-hero__media img {
    min-height: 280px;
    max-height: 320px;
  }

  .ep-hero__media::after {
    background: linear-gradient(180deg, var(--ep-surface) 0%, transparent 26%);
  }

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

  .ep-bento__card {
    min-height: 0;
  }

  .ep-home-heading {
    margin-top: 0.15rem;
  }

  .ep-home-action {
    grid-template-columns: 1fr;
    padding: 1.15rem;
    border-radius: var(--ep-radius-md);
  }

  .ep-home-action__copy {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }

  .ep-home-action__actions {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1rem;
  }

  .ep-home-action__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
    grid-column: 1;
    grid-row: 3;
    gap: 0.7rem;
    margin-top: 1.05rem;
  }

  .ep-home-action__link {
    width: 100%;
  }

  .ep-home-action__fact,
  .ep-home-action__fact:first-child {
    padding: 0;
    border-left: 0;
  }

  .ep-home-welcome {
    grid-template-columns: 1fr;
    padding: 1.15rem;
    border-radius: var(--ep-radius-md);
  }

  .ep-home-welcome ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-home-welcome__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ep-home-welcome__actions .ep-home-action__link {
    width: 100%;
  }

  .ep-home-preview {
    min-height: 0;
  }

  .ep-home-preview--inline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ep-home-preview--inline > small {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
  }

  .ep-demo-intro {
    padding: 1.2rem;
    border-radius: var(--ep-radius-md);
  }

  .ep-demo-intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .ep-topic-home-entry {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .ep-topic-home-entry a {
    width: 100%;
    white-space: normal;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .ep-stepper {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .ep-stepper li {
    justify-content: flex-start;
  }

  .ep-stepper li:not(:last-child)::after {
    top: 25px;
    left: 12px;
    width: 1px;
    height: 17px;
  }

  .st-key-mobile_account_bar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 0.55rem;
    padding: 0.75rem;
    border-color: var(--ep-border);
    background: rgba(251, 249, 245, 0.96);
    box-shadow: var(--ep-shadow-sm);
  }

  .st-key-desktop_account_bar,
  [data-testid="stLayoutWrapper"]:has(> .st-key-desktop_account_bar) {
    display: none;
  }

  [data-testid="stElementContainer"]:has(.ep-global-site-entry) {
    position: absolute;
    width: 0;
    height: 0;
  }

  .st-key-mobile_account_bar [data-testid="stCaptionContainer"] {
    /* Streamlit's negative caption margin otherwise pulls the button over text. */
    margin: 0;
    overflow-wrap: anywhere;
  }

  .st-key-mobile_account_bar [data-testid="stCaptionContainer"] p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .st-key-mobile_account_bar [data-testid="stButton"] button {
    min-height: 44px;
  }

  [data-testid="stElementContainer"]:has(.mobile-product-nav) {
    display: block;
    position: relative !important;
    top: auto;
    z-index: 1000;
    margin: 0 0 0.75rem;
  }

  .mobile-product-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
    width: 100%;
    padding: 0.32rem;
    border: 1px solid var(--ep-border);
    border-radius: 13px;
    background: rgba(251, 249, 245, 0.96);
    box-shadow: var(--ep-shadow-sm);
  }

  .mobile-product-nav a {
    min-width: 0;
    padding: 0.52rem 0.18rem;
    overflow: hidden;
    border-radius: 9px;
    color: var(--ep-text-muted) !important;
    font-size: 0.72rem;
    font-weight: 720;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-product-nav a.active {
    background: var(--ep-primary-soft);
    color: var(--ep-primary-hover) !important;
  }

  .st-key-essay_editor {
    padding: 1rem;
    border-radius: var(--ep-radius-md);
  }

  .st-key-essay_input textarea {
    min-height: 360px;
  }

  .ep-loader-panel {
    align-items: flex-start;
  }

  .ep-global-site-entry {
    top: 0.38rem;
    right: auto;
    left: 3.35rem;
    min-height: 2.2rem;
    gap: 0.4rem;
    padding: 0.3rem 0.58rem;
    border-radius: 10px;
  }

  .ep-global-site-entry strong span { display: none; }
  .ep-global-site-entry small { padding-left: 0.4rem; font-size: 0.62rem; }
  .dictionary-card { margin-left: 0; }
  .issue-map-branch { grid-template-columns: 1fr; gap: 0.55rem; }
  .issue-map-criterion::after { display: none; }
  .issue-map-nodes { grid-template-columns: 1fr; }
  .issue-map-criterion { min-height: auto; }
  .issue-map-tree__header { gap: 0.35rem; }
  .dictionary-trigger { align-items: flex-start; }
  .vocab-card-grid { grid-template-columns: 1fr; }
  .vocab-learning-panel { padding: 0.78rem; }
  .vocab-learning-panel__legend small { width: 100%; margin-left: 0; }

  div.stButton > button,
  div.stDownloadButton > button,
  [data-testid="stFormSubmitButton"] button {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 390px) {
  .block-container {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .ep-hero {
    border-radius: 18px;
  }

  .ep-hero__copy {
    min-height: 280px;
    padding: 1.6rem 1.15rem;
  }

  .ep-hero__media,
  .ep-hero__media img {
    min-height: 260px;
    max-height: 280px;
  }

  .ep-hero__media figcaption {
    right: 0.65rem;
    bottom: 0.55rem;
    max-width: 220px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .ep-home-welcome ol {
    grid-template-columns: 1fr;
  }

  .mobile-product-nav a {
    font-size: 0.68rem;
  }
}

/* Frosted chrome; dense writing and evidence retain a quieter reading surface. */
.ep-home-welcome,
.ep-home-action,
.ep-demo-intro,
.ep-bento__card,
.score-card,
.dashboard-stat-card,
.ep-stepper,
.ep-loader-panel,
.ep-overall-card,
.ep-topic-home-entry,
.feature-chip,
.st-key-essay_editor,
.st-key-desktop_account_bar,
.st-key-mobile_account_bar,
.mobile-product-nav {
  border-color: var(--ep-glass-border);
  background: var(--ep-glass);
  box-shadow: var(--ep-shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(105%);
  backdrop-filter: blur(18px) saturate(105%);
}

.ep-home-welcome,
.ep-home-action {
  border-radius: 28px;
}

.st-key-desktop_account_bar:not(:has(button)):not(:has(p)) {
  display: none;
}

.ep-home-welcome {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.ep-home-welcome::before {
  background: rgba(220, 239, 255, 0.16);
}

.ep-home-preview {
  padding-top: 150px;
  background: linear-gradient(140deg, rgba(251, 249, 245, 0.72), rgba(239, 249, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 8px 28px rgba(83, 132, 172, 0.04);
}

/* A code-drawn glass ring: decorative only, never over the copy or controls. */
.ep-home-preview:not(.ep-home-preview--inline)::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 28px;
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  border: 17px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 224, 254, 0.18), rgba(251, 249, 245, 0.04));
  box-shadow: inset 3px 3px 6px rgba(255, 255, 255, 0.95), inset -3px -3px 8px rgba(145, 181, 226, 0.32), 2px 2px 0 rgba(255, 255, 255, 0.86), -2px -2px 0 rgba(160, 193, 234, 0.24), 8px 14px 24px rgba(93, 133, 184, 0.12);
  transform: rotate(-24deg) scaleX(0.84);
  pointer-events: none;
}

.ep-home-preview--inline {
  padding-top: 0.85rem;
}

/* The first task leads; the example remains a compact supporting link. */
.ep-home-welcome {
  padding-top: clamp(1.4rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.5rem);
}
.ep-home-welcome h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
}
.ep-home-preview:not(.ep-home-preview--inline) {
  min-height: 0;
  align-self: center;
  padding: 1.15rem;
  background: rgba(251, 249, 245, 0.7);
}
.ep-home-preview:not(.ep-home-preview--inline)::before { content: none; }

.ep-home-action__link--primary,
.ep-topic-home-entry a,
[data-testid="stBaseButton-primary"],
button[kind="primary"] {
  /* Soft overlapping folds, scaled for a short button rather than a hero image. */
  background: var(--ep-button-silk) !important;
  background-size: 115% 150% !important;
  background-position: 50% 45% !important;
  border-color: rgba(62, 94, 144, 0.28) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(216, 234, 255, 0.24), inset 0 -1px 0 rgba(24, 43, 80, 0.12), 0 8px 22px rgba(40, 71, 116, 0.12) !important;
  transition: background-position 280ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ep-home-action__link--primary:hover,
.ep-topic-home-entry a:hover,
[data-testid="stBaseButton-primary"]:hover:not(:disabled),
button[kind="primary"]:hover:not(:disabled) {
  background: var(--ep-button-silk) !important;
  background-size: 115% 150% !important;
  background-position: 62% 55% !important;
  box-shadow: inset 0 1px 0 rgba(224, 240, 255, 0.34), 0 10px 26px rgba(40, 71, 116, 0.18) !important;
}

.ep-home-action__link--primary:focus-visible,
.ep-topic-home-entry a:focus-visible,
button[kind="primary"]:focus-visible {
  outline: 2px solid #426fa9;
  outline-offset: 3px;
}

button[kind="primary"]:disabled {
  opacity: 0.5;
}

.ep-home-action__link--secondary,
div.stButton > button[kind="secondary"],
div.stDownloadButton > button {
  background: rgba(251, 249, 245, 0.58);
}

[data-testid="stExpander"],
[data-testid="stVerticalBlockBorderWrapper"],
.ep-result-summary,
.issue-map,
.issue-map-tree,
.ep-diff,
.ep-paragraph-diff {
  background: var(--ep-reading-surface);
}

[data-testid="stExpander"] summary {
  background: rgba(235, 244, 254, 0.5);
}

[data-testid="stTabs"] [data-baseweb="tab-list"] {
  border: 1px solid var(--ep-glass-border);
  background: rgba(242, 248, 255, 0.58);
}

/* Floating menus need an opaque background above other content. */
[data-baseweb="popover"] [role="listbox"],
[data-baseweb="popover"] [role="menu"],
[data-testid="stDialog"] [role="dialog"] {
  background: #f9fbff;
  color: var(--ep-text);
}

@media (max-width: 768px) {
  .ep-home-welcome,
  .ep-home-action {
    border-radius: 20px;
  }

  .ep-home-preview:not(.ep-home-preview--inline) {
    min-height: 0;
    padding-top: 1.15rem;
  }

  .ep-home-preview:not(.ep-home-preview--inline)::before {
    display: none;
  }

  .ep-stepper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
    padding: 0.8rem 0.5rem;
  }

  .ep-stepper li {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
  }

  .ep-stepper li:not(:last-child)::after {
    display: none;
  }
}

/* Editorial empty state: purposeful space, sculpted glass, clear next action. */
.ep-report-start {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 510px;
  gap: 1rem;
  padding: 2.5rem 1rem 1.5rem;
}
.ep-report-start__eyebrow {
  color: #617e9d;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .18em;
  margin-bottom: 1.5rem;
}
.ep-report-start h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: -.04em;
  font-weight: 700;
  padding: 0;
  margin: 0 0 1.6rem;
}
.ep-report-start__lead { font-size: 1.04rem; margin-bottom: .65rem; color: #375773; }
.ep-report-start__description { font-size: .88rem; line-height: 1.95; color: #637b92; }
.ep-report-start__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.ep-report-start__actions .ep-home-action__link { min-width: 150px; border-radius: 14px; justify-content: space-between; gap: 1.6rem; }
.ep-report-start__demo { color: #3c6084; font-size: .85rem; text-decoration: none; padding: .75rem 0; }
.ep-report-start__demo:hover { text-decoration: underline; }
.ep-report-start__art { position: relative; height: 380px; isolation: isolate; pointer-events: none; }
.ep-glass-orbit {
  position: absolute; width: 235px; height: 275px; right: 2%; top: 10px;
  border: 24px solid rgba(255,255,255,.42); border-radius: 50%;
  background: linear-gradient(130deg, rgba(223,240,255,.15), rgba(251,249,245,.04));
  box-shadow: inset 4px 3px 5px #fff, inset -6px -4px 12px #a9c4e26b, 2px 1px 1px #fff, -2px -2px 2px #adc6e188, 16px 25px 35px #547dab1c;
  transform: rotate(28deg);
}
.ep-glass-sheet {
  position: absolute; width: 240px; height: 285px; left: 8%; top: 55px;
  border: 1px solid rgba(255,255,255,.96); border-radius: 20px;
  background: linear-gradient(125deg, #fbf9f5ab, #f7fbff33 50%, #c9dff455);
  box-shadow: inset 2px 2px 1px #ffffffd9, inset -1px -1px 2px #97b5d566, 15px 28px 40px #537daa26;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.ep-glass-sheet--back { transform: rotate(-20deg) translate(-12px, 5px); opacity: .65; }
.ep-glass-sheet--front { transform: rotate(10deg); padding: 25px; box-sizing: border-box; }
.ep-glass-sheet__mark { display: block; font-size: .85rem; letter-spacing: .18em; color: #477299; margin-bottom: 34px; }
.ep-glass-sheet i { display: block; height: 4px; border-radius: 9px; background: #8faecc40; margin: 15px 0; }
.ep-glass-sheet i:nth-of-type(2) { width: 80%; }
.ep-glass-sheet i:nth-of-type(4) { width: 65%; }
.ep-glass-sheet__note { display: block; margin-top: 32px; font-size: .58rem; letter-spacing: .05em; color: #557796; }
.ep-glass-spark { position: absolute; bottom: 15px; right: 8%; color: #fff; font-size: 4rem; text-shadow: 1px 2px 2px #9abadd, 0 0 24px white; }
.ep-report-start__path { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #a8bfd33d; padding: 1.75rem 1rem; gap: 1.5rem; }
.ep-report-start__path > div { display: grid; grid-template-columns: 24px 1fr; column-gap: .6rem; align-items: baseline; }
.ep-report-start__path span { color: #7996b1; font-size: .7rem; }
.ep-report-start__path strong { color: #284d6d; font-size: .92rem; font-weight: 600; }
.ep-report-start__path small { grid-column: 2; color: #6c8297; font-size: .72rem; margin-top: .4rem; line-height: 1.6; }

@media (max-width: 768px) {
  .st-key-mobile_account_bar:not(:has(button)) { display: none; }
  .mobile-product-nav { border-radius: 15px; padding: .2rem; box-shadow: inset 0 1px 0 #fff, 0 5px 20px #4973a10a; }
  .mobile-product-nav a { padding: .6rem .18rem; font-size: .76rem; }
  [data-testid="stElementContainer"]:has(.mobile-product-nav) { margin-bottom: .25rem; }
  .ep-report-start { grid-template-columns: 1fr; gap: 0; padding: 1.25rem .25rem 0; min-height: 0; }
  .ep-report-start__eyebrow { margin-bottom: 1rem; font-size: .63rem; }
  .ep-report-start h1 { font-size: clamp(1.8rem, 7.7vw, 2.7rem); margin-bottom: 1rem; }
  .ep-report-start__lead { font-size: .92rem; }
  .ep-report-start__description { font-size: .8rem; }
  .ep-desktop-break { display: none; }
  .ep-report-start__actions { gap: 1rem; margin-top: 1.25rem; }
  .ep-report-start__actions .ep-home-action__link { min-width: 135px; width: auto; }
  .ep-report-start__demo { font-size: .78rem; }
  .ep-report-start__art { height: 245px; width: 285px; max-width: 100%; margin: .5rem auto 0; }
  .ep-glass-orbit { width: 150px; height: 175px; border-width: 17px; right: 7%; top: 14px; }
  .ep-glass-sheet { width: 158px; height: 185px; top: 28px; left: 14%; border-radius: 14px; }
  .ep-glass-sheet--front { padding: 17px; }
  .ep-glass-sheet__mark { font-size: .6rem; margin-bottom: 20px; }
  .ep-glass-sheet i { height: 3px; margin: 10px 0; }
  .ep-glass-sheet__note { font-size: .4rem; margin-top: 18px; }
  .ep-glass-spark { font-size: 2.6rem; right: 11%; bottom: 8px; }
  .ep-report-start__path { gap: .6rem; padding: 1rem .25rem; }
  .ep-report-start__path > div { display: flex; flex-direction: column; gap: .35rem; }
  .ep-report-start__path strong { font-size: .76rem; }
  .ep-report-start__path small { font-size: .65rem; margin: 0; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --ep-glass: #f4f8fe;
    --ep-surface: #fbf9f5;
  }

  [data-testid="stSidebar"],
  [data-testid="stHeader"] {
    background: #f4f8fe;
  }
}

/* Shared satin actions and porcelain reading surfaces. */
div[data-testid="stTextArea"] textarea,
div[data-testid="stTextInput"] input,
[data-baseweb="select"] > div,
[class*="st-key-topic_card_"],
.ep-topic-expression,
.ep-topic-home-entry,
.ep-home-preview,
.ep-home-action__link--secondary,
div.stButton > button[kind="secondary"],
div.stDownloadButton > button {
  border-color: rgba(151, 175, 208, 0.48) !important;
  background: var(--ep-reading-surface) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 22px rgba(53, 81, 124, 0.06) !important;
}

.ep-home-preview:hover,
.ep-home-action__link--secondary:hover,
div.stButton > button[kind="secondary"]:hover,
div.stDownloadButton > button:hover {
  border-color: rgba(90, 119, 167, 0.72) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 25px rgba(53, 81, 124, 0.11) !important;
}

.ep-stepper .is-active span,
.issue-map-tree__header strong,
.issue-map-criterion em {
  border-color: rgba(62, 94, 144, 0.28);
  background: var(--ep-button-silk);
  color: #fff;
}

[data-baseweb="popover"] [role="listbox"] {
  background: var(--ep-reading-surface);
}

[data-baseweb="popover"] [role="option"][aria-selected="true"] {
  background: var(--ep-button-silk);
  color: #fff;
}

/* Native buttons keep mobile navigation in the current Streamlit session. */
.st-key-mobile_product_nav { display: none; }
@media (max-width: 768px) {
  .st-key-mobile_product_nav {
    display: block;
    padding: .2rem;
    margin-bottom: .25rem;
    border: 1px solid var(--ep-glass-border);
    border-radius: 15px;
    background: var(--ep-glass);
    box-shadow: inset 0 1px 0 #fff, 0 5px 20px #4973a10a;
    backdrop-filter: blur(18px) saturate(105%);
    -webkit-backdrop-filter: blur(18px) saturate(105%);
  }
  .st-key-mobile_product_nav [data-testid="stHorizontalBlock"] {
    flex-wrap: nowrap !important;
    gap: .2rem !important;
  }
  .st-key-mobile_product_nav [data-testid="stColumn"] {
    min-width: 0 !important;
    width: calc(20% - .16rem) !important;
    flex: 1 1 0 !important;
  }
  .st-key-mobile_product_nav [data-testid="stButton"] button {
    min-height: 44px;
    padding: .6rem .18rem !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--ep-text-muted) !important;
    transform: none !important;
  }
  .st-key-mobile_product_nav [data-testid="stButton"] button p {
    font-size: .76rem !important;
    font-weight: 720;
    white-space: nowrap;
    color: inherit !important;
  }
  .st-key-mobile_product_nav [data-testid="stButton"] button * {
    color: inherit !important;
  }
  .st-key-mobile_product_nav [data-testid="stButton"] button[kind="primary"] {
    background: var(--ep-primary-soft) !important;
    color: var(--ep-primary-hover) !important;
  }
  .st-key-mobile_product_nav [data-testid="stButton"] button:hover {
    background: var(--ep-primary-soft) !important;
  }
}

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