/* Homepage-only presentation. Shared theme values come from design-tokens.css. */
html[data-compact-home] #auth-screen > main {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-wide, 1328px);
  padding-right: var(--page-gutter, 32px);
  padding-left: var(--page-gutter, 32px);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

html[data-compact-home] #auth-screen > main > .grid { display: block; padding-bottom: 0; }
html[data-compact-home] #auth-screen > header .site-header-inner,
html[data-compact-home] #auth-screen > footer .site-footer-inner { max-width: var(--layout-wide, 1328px); }
html[data-compact-home] #auth-screen > header .site-header-inner { min-height: 72px; }
html[data-compact-home] #auth-screen > header .site-brand,
html[data-compact-home] #auth-screen > footer { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif; }
html[data-compact-home] #auth-screen > header .site-brand { font-size: 24px; }
html[data-compact-home] #auth-screen > header .site-mark { width: 30px; height: 30px; }
html[data-compact-home] #auth-screen > header .site-header-controls { gap: 14px; }
html[data-compact-home] #home-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--action-link); font-family: Georgia, "Iowan Old Style", serif; font-size: 16px; white-space: nowrap; }
html[data-compact-home] #home-login[hidden],
html[data-compact-home] [data-home-member][hidden] { display: none !important; }
html[data-compact-home] .site-header-controls > .site-themes { border-left: 1px solid var(--surface-border); padding-left: 14px; }
html[data-compact-home] .site-header-controls > .site-themes .theme-toggle { width: 40px; height: 40px; border: 0; background: transparent; }
html[data-compact-home] .home-member-profile { position: relative; font-family: Georgia, "Iowan Old Style", serif; }
html[data-compact-home] .home-member-profile > .home-member-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
html[data-compact-home] .home-member-profile > .home-member-toggle:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
html[data-compact-home] .home-member-profile [data-home-member-name] { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-compact-home] .home-member-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-muted); color: var(--text-strong); font-size: 16px; }
html[data-compact-home] .home-member-profile-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 7px;
  border: 1px solid var(--surface-border);
  background: var(--surface-panel);
  box-shadow: 0 8px 24px rgb(3 30 34 / .12);
}
html[data-compact-home] .home-member-profile-menu[hidden] { display: none !important; }
html[data-compact-home] .home-member-profile-menu :is(a, button) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text-body);
  font: 15px Georgia, "Iowan Old Style", serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
html[data-compact-home] .home-member-profile-menu :is(a, button):hover { color: var(--action-link); background: var(--surface-muted); }

html[data-compact-home] #auth-screen .home-member-profile-menu > button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

html[data-compact-home] #auth-screen > main { padding-bottom: 0; }
html[data-compact-home] #home-intro { padding: 30px 0 36px; }
html[data-compact-home] .home-visitor-hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .98fr); gap: 48px; align-items: center; }
html[data-compact-home] .home-intro-copy { min-width: 0; }
html[data-compact-home] .home-eyebrow { margin: 0 0 10px; color: var(--text-body); font: 600 12px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
html[data-compact-home] .home-intro-copy h1,
html[data-compact-home] .home-member-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font: 700 clamp(42px, 5vw, 68px)/1.05 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
html[data-compact-home] .home-member-hero h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
html[data-compact-home] .home-member-hero h1[data-personal-nudge-pending] { visibility: hidden; }
html[data-compact-home] .home-intro-copy h1 span,
html[data-compact-home] .home-rust-period { color: var(--action); }
html[data-compact-home] .home-intro-subtitle { margin: 10px 0 22px; color: var(--text-strong); font: 27px/1.2 Georgia, "Iowan Old Style", "Palatino Linotype", serif; }
html[data-compact-home] .home-hero-search { max-width: 680px; }
html[data-compact-home] #exam-catalog-discovery { margin: 0; }
html[data-compact-home] #exam-catalog-discovery .discovery-search-label {
  position: relative;
  display: block;
  color: var(--text-muted);
  font: 14px var(--font-body);
}
html[data-compact-home] #exam-catalog-discovery .discovery-search-label::after {
  position: absolute;
  left: 15px;
  bottom: 9px;
  color: var(--text-strong);
  content: "⌕";
  font: 30px/1 Georgia, serif;
  pointer-events: none;
}
html[data-compact-home] #exam-catalog-discovery .discovery-search {
  box-sizing: border-box;
  min-height: 54px;
  margin-top: 8px;
  padding: 10px 14px 10px 48px;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  background: var(--surface-panel);
  color: var(--text-strong);
  font: 17px Georgia, "Iowan Old Style", serif;
}
html[data-compact-home] #exam-catalog-discovery .discovery-search::placeholder { color: var(--text-muted); opacity: 1; }
html[data-compact-home] #exam-catalog-discovery .discovery-categories { gap: 6px; margin-top: 9px; }
html[data-compact-home] #exam-catalog-discovery .discovery-categories button {
  min-height: 44px;
  padding: 7px 10px;
  border-color: transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  font: 13px var(--font-body);
}
html[data-compact-home] #exam-catalog-discovery .discovery-categories button[aria-pressed="true"] { border-color: var(--surface-border); background: var(--surface-muted); color: var(--text-strong); box-shadow: none; }
html[data-compact-home] #exam-catalog-discovery .discovery-status { margin-top: 5px; color: var(--text-muted); font: 13px Georgia, serif; }
html[data-compact-home] #exam-catalog-discovery .discovery-reset { min-height: 44px; border: 0; background: transparent; color: var(--action-link); font: 13px var(--font-body); }
html[data-compact-home] .home-intro-actions { display: flex; align-items: center; gap: 18px; margin-top: 11px; }
html[data-compact-home] .home-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--action);
  border-radius: 4px;
  background: var(--action);
  color: var(--action-text);
  font: 600 16px Georgia, "Iowan Old Style", serif;
  text-decoration: none;
}
html[data-compact-home] .home-primary-link:hover { background: var(--action-hover); color: var(--action-text); }
html[data-compact-home] .home-primary-link:focus-visible { outline: 3px solid var(--action-link); outline-offset: 3px; }
html[data-compact-home] .home-featured-card {
  position: relative;
  display: flex;
  min-height: 322px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: linear-gradient(120deg, var(--surface-page), var(--surface-muted));
}
html[data-compact-home] .home-featured-copy { position: relative; z-index: 2; width: 62%; padding: 28px 0 28px 32px; }
html[data-compact-home] .home-rust-rule { display: block; width: 38px; height: 3px; margin-bottom: 13px; background: var(--action); }
html[data-compact-home] .home-featured-copy .home-eyebrow { margin-bottom: 8px; }
html[data-compact-home] .home-featured-copy h2 { margin: 0; color: var(--text-strong); font: 700 56px/1 Georgia, "Iowan Old Style", serif; letter-spacing: -.04em; }
html[data-compact-home] .home-featured-count { margin: 9px 0 3px; color: var(--text-strong); font: 23px/1.25 Georgia, serif; }
html[data-compact-home] .home-featured-note { margin: 0 0 24px; color: var(--text-muted); font: 16px/1.4 Georgia, serif; }
html[data-compact-home] .home-paper-art { position: absolute; inset: 0 0 0 auto; width: 43%; }
html[data-compact-home] .home-paper { position: absolute; display: block; width: 54%; height: 84%; border: 1px solid var(--surface-border); background: var(--surface-page); box-shadow: 0 7px 20px rgb(3 30 34 / .07); }
html[data-compact-home] .home-paper-back { top: 13%; right: -3%; transform: rotate(5deg); opacity: .7; }
html[data-compact-home] .home-paper-front { top: 8%; right: 4%; display: flex; flex-direction: column; gap: 13px; padding: 28px 15px 10px 28px; transform: rotate(2deg); }
html[data-compact-home] .home-paper-front i { display: block; width: 100%; border-top: 1px solid var(--surface-border); }
html[data-compact-home] .home-paper-spine { position: absolute; top: 8%; right: 17%; width: 1px; height: 84%; background: var(--action); }
html[data-compact-home] .home-paper-dots { position: absolute; top: 40%; left: 3%; width: 38px; height: 54px; background-image: radial-gradient(var(--action) 1px, transparent 1px); background-size: 12px 12px; opacity: .45; }

html[data-compact-home] #start { margin: 0 auto 26px; scroll-margin-top: 24px; }
html[data-compact-home] body:not(.personal-home):not([data-home-login="open"]) #start { display: none; }
html[data-compact-home] body:not(.personal-home)[data-home-login="open"] #start { width: min(100%, 640px); }
html[data-compact-home] #home-login-close { display: block; min-height: 48px; padding: 8px 20px; margin-left: auto; color: var(--action-link); }
html[data-compact-home] #auth-screen #start > .bg-slate-800 { border: 1px solid var(--surface-border); border-radius: 4px; background: var(--surface-panel); box-shadow: none; }
html[data-compact-home] #auth-screen #start .home-access-heading { padding: 22px 24px 18px; }
html[data-compact-home] #auth-screen #start .home-access-heading h2 { color: var(--text-strong); font: 700 28px/1.2 Georgia, serif; }
html[data-compact-home] #auth-screen #start .perforated { border-color: var(--surface-border); padding: 20px 24px 24px; }
html[data-compact-home] #auth-screen #auth-form { max-width: none; }
html[data-compact-home] #auth-screen :is(button, summary) { min-height: 44px; }
html[data-compact-home] #auth-screen #auth-form :is(input, select, button) { font-family: var(--font-body); }
html[data-compact-home] #auth-screen #auth-form :is(label, p, .rule-eyebrow) { font-family: var(--font-body); }
html[data-compact-home] #auth-screen #auth-form :is(.home-exam-start, .home-exam-details):hover { text-decoration: underline; }
html[data-compact-home].session-booting :is(#home-intro, #patterns, .home-access-heading, #home-login-close, #home-login, #home-member-profile) { display: none !important; }

html[data-compact-home] #patterns { padding: 0 0 24px; border: 0; }
html[data-compact-home] #patterns > .home-exam-group { margin-top: 32px; }
html[data-compact-home] #patterns > .home-exam-group:first-of-type { margin-top: 0; }
html[data-compact-home] .home-exam-group > h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px;
  color: var(--text-strong);
  font: 700 27px/1.25 Georgia, "Iowan Old Style", serif;
  letter-spacing: -.025em;
}
html[data-compact-home] .home-exam-group > h2::after { flex: 1; border-top: 1px solid var(--surface-border); content: ""; }
html[data-compact-home] .home-exam-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; }
html[data-compact-home] .home-exam-group > .home-exam-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html[data-compact-home] .home-exam-group[data-category="Engineering & medical"] > .home-exam-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
html[data-compact-home] .home-exam-group[data-category="Teaching & civil services"] > .home-exam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-compact-home] .home-exam-row,
html[data-compact-home] .home-exam-family { min-width: 0; }
html[data-compact-home] .home-exam-row[hidden],
html[data-compact-home] .home-exam-group[hidden],
html[data-compact-home] .home-exam-family[hidden] { display: none !important; }
html[data-compact-home] .home-exam-row { display: flex; align-items: stretch; gap: 8px; border: 0; }
html[data-compact-home] .home-exam-start {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px 6px 16px;
  border-left: 1px solid var(--surface-border);
  color: var(--text-strong);
  font: 600 16px/1.35 Georgia, "Iowan Old Style", serif;
  overflow-wrap: anywhere;
  text-decoration: none;
}
html[data-compact-home] .home-exam-start small { display: block; color: var(--text-muted); font: 13px/1.3 Georgia, serif; }
html[data-compact-home] .home-exam-start:hover { color: var(--action-link); }
html[data-compact-home] .home-exam-details { display: none; }
html[data-compact-home] .home-exam-family > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--surface-border);
  padding: 6px 8px 6px 16px;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
html[data-compact-home] .home-exam-family > summary::-webkit-details-marker { display: none; }
html[data-compact-home] .home-exam-family > summary::before { order: 2; margin-left: auto; color: var(--action-link); content: "+"; font: 20px/1 var(--font-body); }
html[data-compact-home] .home-exam-family[open] > summary::before { content: "−"; }
html[data-compact-home] .home-exam-family > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
html[data-compact-home] .home-family-name { color: inherit; font: 700 16px/1.3 Georgia, "Iowan Old Style", serif; }
html[data-compact-home] .home-family-count { color: var(--text-muted); font: 13px/1.3 Georgia, serif; }
html[data-compact-home] .home-exam-family-items { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 0 10px; }
html[data-compact-home] .home-exam-family-items .home-exam-row { border-top: 1px solid var(--surface-border); }
html[data-compact-home] .home-exam-family-items .home-exam-start { min-height: 48px; border-left: 0; padding-left: 8px; font-size: 14px; }
html[data-compact-home] .discovery-reset { padding: 0 8px; color: var(--action-link); }

html[data-compact-home] body.personal-home #home-intro { padding: 27px 0 20px; }
html[data-compact-home] body.personal-home .home-visitor-hero,
html[data-compact-home] body.personal-home #patterns,
html[data-compact-home] body.personal-home .home-access-heading,
html[data-compact-home] body.personal-home #home-login-close { display: none; }
html[data-compact-home] .home-member-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 28px; }
html[data-compact-home] .home-member-hero .home-eyebrow { margin-bottom: 7px; }
html[data-compact-home] .home-member-hero .home-intro-subtitle { margin: 6px 0 0; font-size: 23px; }
html[data-compact-home] body.personal-home #start { margin: 0 0 28px; }
html[data-compact-home] body.personal-home #start > .bg-slate-800 { border: 0; background: transparent; }
html[data-compact-home] body.personal-home #start .perforated { padding: 0; border: 0; }
html[data-compact-home] body.personal-home #auth-form { max-width: none; }
html[data-compact-home] body.personal-home #signed-in-panel { padding: 0; border: 0; background: transparent; }
html[data-compact-home] body.personal-home #signed-in-panel > .rule-eyebrow,
html[data-compact-home] body.personal-home #signed-in-panel > .mt-1 { display: none; }
html[data-compact-home] body.personal-home #dashboard-error:not(.hidden) { margin: 0 0 16px; }
html[data-compact-home] body.personal-home #personal-home-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin: 0; }
html[data-compact-home] #personal-home-content:not(.has-active-attempt) #personal-start-card { grid-column: 1 / -1; }
html[data-compact-home] #personal-home-content [hidden] { display: none !important; }

html[data-compact-home] .personal-start-heading-row { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 8px; }
html[data-compact-home] #personal-exam-picker { min-width: 0; }
html[data-compact-home] #personal-exam-picker > summary { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; border-left: 1px solid var(--surface-border); padding-left: 18px; color: var(--action-link); font: 15px Georgia, serif; white-space: nowrap; cursor: pointer; list-style: none; }
html[data-compact-home] #personal-exam-picker > summary::-webkit-details-marker { display: none; }
html[data-compact-home] #personal-exam-picker > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
html[data-compact-home] #personal-exam-picker[open] { z-index: 30; }
html[data-compact-home] #personal-picker-host { position: absolute; top: 100%; left: 0; right: 0; z-index: 31; max-height: min(68vh, 540px); padding: 12px 16px 16px; overflow: auto; border: 1px solid var(--surface-border); background: var(--surface-panel); box-shadow: 0 12px 28px rgb(3 30 34 / .22); }
html[data-compact-home] #personal-picker-host #paper-selection { margin: 0; }
html[data-compact-home] #personal-picker-host #exam-select,
html[data-compact-home] #personal-picker-host label[for="exam-select"],
html[data-compact-home] #personal-picker-host #paper-selection > dl,
html[data-compact-home] #personal-picker-host select + span,
html[data-compact-home] #personal-picker-host #paper-selection > div > p:not(#selected-exam-coverage) { display: none; }
html[data-compact-home] #personal-picker-host .discovery-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 340px; gap: 0 14px; margin-top: 8px; overflow: auto; }
html[data-compact-home] #personal-picker-host .discovery-choice { min-width: 0; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--surface-border); border-radius: 0; background: transparent; box-shadow: none !important; color: var(--text-body); font: 14px Georgia, serif; overflow-wrap: anywhere; }
html[data-compact-home] #personal-picker-host .discovery-choice[aria-pressed="true"] { color: var(--action-link); font-weight: 700; }
html[data-compact-home] #personal-picker-host .discovery-categories { gap: 4px; }
html[data-compact-home] #personal-picker-host .discovery-categories button { min-height: 44px; padding: 6px 8px; font-size: 12px; }
html[data-compact-home] #personal-picker-host .discovery-search { min-height: 46px; font-family: var(--font-body); }

html[data-compact-home] #personal-home-content .personal-link:hover { text-decoration: underline; }
html[data-compact-home] body.personal-home [data-home-actions] { justify-items: start; margin-top: 20px; }
html[data-compact-home] body.personal-home [data-home-actions] #auth-submit { width: auto; min-width: 180px; }
html[data-compact-home] body.personal-home [data-home-actions] #offline-paper-start { width: auto; border: 0; background: transparent; padding: 0; color: var(--action-link); }
html[data-compact-home] #personal-recent li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
html[data-compact-home] #personal-recent li :is(span, time) { grid-column: 1; }
html[data-compact-home] #personal-recent li .personal-view { grid-column: 2; grid-row: 1 / 5; align-self: center; color: var(--action-link); text-decoration: none; }
html[data-compact-home] #personal-home-content :is(a, summary):focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

html:not([data-compact-home]) #home-login,
html:not([data-compact-home]) #home-login-close,
html:not([data-compact-home]) #home-member-profile { display: none; }
@media (min-width: 768px) {
  html[data-compact-home] #auth-screen > main { padding-inline: 42px; }
  html[data-compact-home] .home-exam-family-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  html[data-compact-home] .home-visitor-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: 28px; }
  html[data-compact-home] .home-intro-copy h1,
  html[data-compact-home] .home-member-hero h1 { font-size: clamp(40px, 5.6vw, 56px); }
  html[data-compact-home] .home-intro-subtitle { font-size: 23px; }
  html[data-compact-home] .home-featured-card { min-height: 290px; }
}
@media (max-width: 900px) {
  html[data-compact-home] #auth-screen > header .site-header-inner { min-height: 64px; }
  html[data-compact-home] #auth-screen > header .site-header-controls { gap: 6px; }
  html[data-compact-home] #auth-screen > header .site-header-controls > .site-themes { padding-left: 5px; }
  html[data-compact-home] .home-member-profile > .home-member-toggle { gap: 6px; }
  html[data-compact-home] .home-member-profile > .home-member-toggle > [data-home-member-name] { display: none; }
  html[data-compact-home] .home-visitor-hero { grid-template-columns: 1fr; gap: 22px; }
  html[data-compact-home] .home-featured-card { min-height: 260px; }
  html[data-compact-home] .home-featured-copy { width: 65%; }
  html[data-compact-home] .home-member-hero { grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
  html[data-compact-home] .home-exam-group > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Engineering & medical"] > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Teaching & civil services"] > .home-exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  html[data-compact-home] #auth-screen > main { padding-inline: 18px; }
  html[data-compact-home] #auth-screen > header .site-header-inner { padding-inline: 18px; gap: 8px; }
  html[data-compact-home] #auth-screen > header .site-brand { gap: 7px; font-size: 20px; }
  html[data-compact-home] #auth-screen > header .site-mark { width: 28px; height: 28px; }
  html[data-compact-home] #home-intro { padding: 24px 0 28px; }
  html[data-compact-home] .home-intro-copy h1,
  html[data-compact-home] .home-member-hero h1 { font-size: clamp(38px, 10vw, 52px); }
  html[data-compact-home] .home-member-hero h1 { font-size: clamp(28px, 7vw, 36px); line-height: 1.12; }
  html[data-compact-home] .home-intro-subtitle { margin: 8px 0 18px; font-size: 21px; }
  html[data-compact-home] .home-desktop-break { display: none; }
  html[data-compact-home] .home-featured-card { min-height: 238px; }
  html[data-compact-home] .home-featured-copy { width: 72%; padding: 22px 0 22px 20px; }
  html[data-compact-home] .home-featured-copy h2 { font-size: 44px; }
  html[data-compact-home] .home-featured-count { font-size: 19px; }
  html[data-compact-home] .home-featured-note { max-width: 180px; margin-bottom: 17px; font-size: 14px; }
  html[data-compact-home] .home-featured-copy .home-primary-link { min-height: 44px; padding-inline: 12px; font-size: 14px; }
  html[data-compact-home] #exam-catalog-discovery .discovery-categories { gap: 2px; }
  html[data-compact-home] #exam-catalog-discovery .discovery-categories button { padding-inline: 7px; font-size: 12px; }
  html[data-compact-home] .home-intro-actions .home-primary-link { min-height: 46px; }
  html[data-compact-home] .home-exam-group > h2 { gap: 10px; font-size: 22px; }
  html[data-compact-home] .home-exam-group > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Engineering & medical"] > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Teaching & civil services"] > .home-exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  html[data-compact-home] .home-exam-family > summary { min-height: 56px; gap: 4px; padding-left: 10px; }
  html[data-compact-home] .home-family-name { font-size: 14px; }
  html[data-compact-home] .home-family-count { font-size: 12px; }
  html[data-compact-home] .home-exam-start { min-height: 56px; padding-left: 10px; font-size: 14px; }
  html[data-compact-home] body.personal-home #personal-home-content { grid-template-columns: minmax(0, 1fr); }
  html[data-compact-home] body.personal-home #personal-start-controls #auth-submit { box-sizing: border-box; width: min(100%, 220px); min-width: 0; max-width: 100%; }
  html[data-compact-home] #personal-picker-host .discovery-results { grid-template-columns: minmax(0, 1fr); }
  html[data-compact-home] .personal-start-heading-row { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 7px; }
  html[data-compact-home] #personal-exam-picker > summary { width: 100%; min-height: 44px; margin-top: 4px; border-top: 1px solid var(--surface-border); border-left: 0; padding: 8px 0 0; font-size: 14px; }
  html[data-compact-home] #auth-screen #start .home-access-heading { padding-inline: 18px; }
  html[data-compact-home] #auth-screen #start .perforated { padding-inline: 18px; }
}
@media (max-width: 380px) {
  html[data-compact-home] #auth-screen > main { padding-inline: 14px; }
  html[data-compact-home] #auth-screen > header .site-header-inner { padding-inline: 14px; }
  html[data-compact-home] #home-login { padding-inline: 6px; }
  html[data-compact-home] #auth-screen > header .site-header-controls { gap: 2px; }
  html[data-compact-home] #auth-screen > header .site-header-controls > .site-themes { padding-left: 2px; }
  html[data-compact-home] .home-exam-group > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Engineering & medical"] > .home-exam-grid,
  html[data-compact-home] .home-exam-group[data-category="Teaching & civil services"] > .home-exam-grid { grid-template-columns: minmax(0, 1fr); }
}
