:root {
  --bg: #f5fbfd;
  --panel: #ffffff;
  --panel-2: #eef9fb;
  --text: #12313b;
  --muted: #5e7480;
  --line: #d8eaf0;
  --blue: #0f8fc6;
  --blue-dark: #0874a4;
  --green: #14b884;
  --green-dark: #07986b;
  --yellow: #ffd449;
  --orange: #ff9f43;
  --shadow: 0 18px 45px rgba(15, 143, 198, 0.14);
  --page-pad: clamp(22px, 3vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 132, 0.13), transparent 30rem),
    radial-gradient(circle at 92% 16%, rgba(15, 143, 198, 0.15), transparent 34rem),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.top-contact {
  position: fixed;
  inset: 0 0 auto;
  z-index: 24;
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px var(--page-pad);
  color: #eaffff;
  background: linear-gradient(90deg, var(--blue), var(--green));
  font-size: 0.86rem;
  font-weight: 800;
}

.site-header {
  position: fixed;
  inset: 36px 0 auto;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--page-pad);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(18, 49, 59, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.desktop-nav,
.header-actions,
.hero-actions,
.section-heading,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(20, 184, 132, 0.25);
}

.brand-name {
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.desktop-nav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-actions {
  gap: 12px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
}

.mobile-menu {
  position: fixed;
  z-index: 21;
  inset: 112px 0 auto;
  display: none;
  grid-template-columns: 1fr;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
}

.mobile-menu.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 112px;
  background: linear-gradient(135deg, #e7f8ff, #f4fff8);
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-slide {
  width: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 6800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(245, 251, 253, 0.98) 0%, rgba(245, 251, 253, 0.86) 42%, rgba(245, 251, 253, 0.18) 78%),
    linear-gradient(0deg, var(--bg), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - var(--page-pad) * 2));
  margin-left: var(--page-pad);
  padding: 70px 0;
}

.eyebrow,
.card-meta {
  margin: 0 0 12px;
  color: var(--green-dark);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(58px, 10vw, 126px);
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.5;
}

.hero-catalog-count {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 143, 198, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(15, 143, 198, 0.12);
}

.hero-catalog-count span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-catalog-count strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--green);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.button.secondary {
  border-color: rgba(15, 143, 198, 0.25);
  background: rgba(255, 255, 255, 0.82);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(15, 143, 198, 0.25);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.button.compact {
  min-height: 42px;
  padding: 0 17px;
  font-size: 13px;
}

.hero-next {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 143, 198, 0.25);
}

.hero-dots button.is-active {
  width: 58px;
  background: var(--green);
}

.section {
  width: 100%;
  padding: 86px var(--page-pad);
}

.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.55);
}

.section-heading {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section h2 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.04em;
}

.split-heading {
  align-items: end;
}

.split-heading p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-card,
.support-panel,
.system-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.feature-image img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.feature-copy h3,
.news-card h3,
.info-tile h3,
.support-panel h2,
.source-card h3,
.clinical-block h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.feature-copy p:not(.card-meta),
.info-tile p,
.support-panel p,
.source-card span,
.notice,
.clinical-block p,
.result-card p {
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  width: fit-content;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.media-strip {
  width: 100%;
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.media-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 14px;
  animation: media-scroll 34s linear infinite;
}

.media-strip:hover .media-track {
  animation-play-state: paused;
}

.media-track img {
  width: min(48vw, 420px);
  height: 235px;
  border-radius: 16px;
  object-fit: cover;
}

@keyframes media-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

.news-grid,
.tile-grid,
.command-strip,
.metrics,
.source-grid {
  display: grid;
  gap: 18px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.tile-grid,
.command-strip,
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.news-card,
.info-tile,
.command-strip article,
.metric,
.source-card,
.search-panel,
.detail-panel,
.table-wrap,
.section-head,
.auth-panel,
.clinical-block,
.login-box,
.notice,
.empty,
.result-card,
.price-poster {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 143, 198, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-card:hover,
.info-tile:hover,
.command-strip article:hover,
.metric:hover,
.source-card:hover,
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 132, 0.45);
  box-shadow: var(--shadow);
}

.news-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card div,
.info-tile,
.command-strip article,
.metric,
.source-card,
.section-head,
.search-panel,
.detail-panel,
.clinical-block,
.login-box,
.notice,
.empty {
  padding: 24px;
}

.info-tile {
  min-height: 260px;
}

.info-tile span,
.command-strip span,
.metric span,
th,
.tag {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.info-tile h3 {
  margin-top: 56px;
  font-size: 26px;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 212, 73, 0.3), transparent 14rem),
    linear-gradient(135deg, #ffffff, #e9fbf7);
}

.price-poster {
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 143, 198, 0.9), rgba(20, 184, 132, 0.92)),
    var(--blue);
}

.price-poster span,
.price-poster small,
.command-strip small {
  color: rgba(255, 255, 255, 0.86);
}

.price-poster strong,
.command-strip strong,
.metric strong {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.price-poster strong {
  color: #fff;
}

.app-section {
  background: linear-gradient(180deg, #f7fdff, #eef9fb);
}

.system-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-height: 760px;
}

.system-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #eaf9fb);
}

.system-brand {
  align-items: flex-start;
}

.system-brand small,
.user-panel span,
td span,
.plan-card small,
.source-card small {
  display: block;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue-dark);
  background: #fff;
  text-align: left;
  font-weight: 850;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--green);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.user-panel {
  margin-top: auto;
  color: var(--muted);
}

.user-panel strong {
  display: block;
  color: var(--text);
}

.system-main {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  background: #fbfeff;
}

.auth-panel,
.content-view {
  display: none;
}

.auth-panel {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.auth-panel:not([style*="none"]) {
  display: grid;
}

.auth-copy {
  padding: 24px;
  background: linear-gradient(135deg, #e9fbff, #f4fff7);
}

.auth-form,
.content-view.active,
.detail-grid,
.results-list {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 143, 198, 0.12);
}

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

.plan-card {
  position: relative;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.plan-card:has(input:checked) {
  border-color: var(--green);
  background: #effdf8;
}

.plan-card input {
  position: absolute;
  inset: 14px 14px auto auto;
  width: auto;
  min-height: auto;
}

.plan-card span,
.plan-card strong {
  display: block;
}

.plan-card strong {
  margin: 8px 0 4px;
  color: var(--blue);
  font-size: 1.55rem;
}

.student-plan strong {
  color: var(--green-dark);
}

.pricing-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-price {
  background: linear-gradient(135deg, #17c48d, #0f8fc6);
}

.login-box {
  grid-column: 1 / -1;
}

.login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-head,
.section-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.search-head span {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  white-space: nowrap;
  font-weight: 900;
}

.search-submit {
  width: fit-content;
  max-width: 100%;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}

.result-card.active {
  border-color: var(--green);
  background: #f2fff9;
}

.result-card button {
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.disease-card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.disease-card-body h3 {
  margin: 0;
}

.disease-card-body p {
  margin: 0;
}

.disease-detail-head {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, #f8fdff, #effdf8);
}

.disease-detail-head h2 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.result-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 18px 18px;
  color: var(--blue-dark);
}

.scenario-check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f9fdff;
}

.scenario-check input {
  width: auto;
  min-height: auto;
}

.result-check input {
  width: auto;
  min-height: auto;
}

.student-app {
  min-height: 100vh;
}

.student-main {
  padding: 144px var(--page-pad) 56px;
}

.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.student-hero > div,
.student-profile,
.student-search-panel,
.student-results,
.student-detail,
.student-medicine-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.student-hero > div {
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(15, 143, 198, 0.12), rgba(20, 184, 132, 0.13)),
    #fff;
}

.student-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.student-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.student-profile {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
}

.student-profile span,
.student-profile small {
  font-weight: 850;
  opacity: 0.9;
}

.student-profile strong {
  font-size: 2rem;
  line-height: 1;
}

.student-search-panel {
  margin-bottom: 18px;
  padding: 24px;
}

.doctor-study-panel {
  margin-bottom: 0;
}

.student-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.55fr) auto;
  gap: 12px;
  align-items: end;
}

.doctor-study-search-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.65fr) auto;
}

.student-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.doctor-study-shell {
  align-items: stretch;
}

.student-results,
.student-detail {
  padding: 20px;
}

.doctor-study-shell .student-results,
.doctor-study-shell .student-detail {
  min-height: 420px;
}

.student-result-list {
  display: grid;
  gap: 10px;
}

.student-result-card {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: inherit;
  text-align: left;
  background: #fff;
  overflow: hidden;
}

.student-result-card.active {
  border-color: var(--green);
  background: #effdf8;
}

.student-result-card span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.student-result-card strong {
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.student-result-card small,
.empty-result span {
  color: var(--muted);
  line-height: 1.55;
}

.student-result-card small {
  padding: 0;
}

.empty-result {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #f8fdff;
}

.student-detail-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.student-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.student-detail h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.student-detail h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.student-detail p,
.student-detail li {
  color: var(--muted);
  line-height: 1.65;
}

.wide-detail {
  grid-column: 1 / -1;
}

.relation-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.medicine-table {
  display: grid;
  gap: 12px;
}

.student-medicine-section {
  margin-top: 18px;
  padding: 24px;
}

.medicine-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.medicine-row strong {
  color: var(--blue-dark);
}

.medicine-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e6f8ff;
}

.detail-panel {
  position: sticky;
  top: 128px;
}

.clinical-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
}

.prescription {
  margin-bottom: 14px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.cid-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue-dark);
  background: #e6f8ff;
  font-weight: 900;
}

.medical-docs {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.doc-controls,
.document-layout {
  display: grid;
  gap: 16px;
}

.doc-controls {
  grid-template-columns: minmax(220px, 1fr) 180px 170px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--panel);
}

.wide-field {
  grid-column: 1 / -1;
}

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

.document-paper {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  min-height: 520px;
  border: 1px solid #dce7ec;
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 49, 59, 0.08);
}

.doc-watermark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 128px;
  height: 46px;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--blue-dark);
  border: 1px solid rgba(15, 143, 198, 0.32);
  background: linear-gradient(135deg, rgba(15, 143, 198, 0.12), rgba(20, 184, 132, 0.12));
  font-weight: 950;
  letter-spacing: 0.02em;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.doc-watermark::after {
  content: "ReceitasMedi";
  font-size: 12px;
  letter-spacing: 0;
}

.document-paper > :not(.doc-watermark) {
  position: relative;
  z-index: 1;
}

.editable-document {
  outline: none;
}

.editable-document:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 143, 198, 0.12), 0 12px 30px rgba(18, 49, 59, 0.08);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 143, 198, 0.08);
}

.certificate-paper {
  border-color: rgba(20, 184, 132, 0.38);
  background:
    linear-gradient(180deg, rgba(232, 252, 246, 0.78), #fff 34%),
    #fff;
}

.certificate-badge {
  width: fit-content;
  border-radius: 999px;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.certificate-head {
  border-bottom-color: rgba(20, 184, 132, 0.45);
}

.certificate-signature {
  border-top-color: var(--green-dark);
}

.doc-watermark {
  position: absolute;
  inset: 22px 22px auto auto;
  color: rgba(8, 116, 164, 0.72);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.02em;
  transform: none;
  pointer-events: none;
}

.document-paper:not(.certificate-paper) .doc-watermark {
  inset: auto auto 18px 18px;
}

.login-card .quick-login {
  display: none;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.doc-head strong {
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.doc-section h3 {
  margin: 20px 0 12px;
}

.doc-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.doc-block pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.55;
}

.doc-signature {
  margin-top: 54px;
  border-top: 1px solid var(--text);
  padding-top: 10px;
  text-align: center;
}

.doc-signature strong,
.doc-signature span,
.muted {
  display: block;
}

.muted {
  color: var(--muted);
}

.public-test-section {
  background: linear-gradient(180deg, #f7fdff, #eef9fb);
}

.download-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(20, 184, 132, 0.14), transparent 24rem),
    linear-gradient(180deg, #ffffff, #eef9fb);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-card span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.download-card p,
.download-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.public-test-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.test-controls {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-condition-list {
  display: grid;
  gap: 10px;
}

.demo-condition-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f9fdff;
}

.demo-condition-list input {
  width: auto;
  min-height: auto;
}

.demo-documents {
  user-select: none;
}

.demo-locked {
  cursor: not-allowed;
}

.demo-notice {
  margin: 0;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 143, 198, 0.08);
}

.history-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
}

.history-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.patient-panel,
.patient-summary,
.patient-timeline {
  display: grid;
  gap: 16px;
}

.patient-search-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--panel);
}

.patient-summary-card,
.patient-note-form,
.patient-timeline-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 143, 198, 0.08);
}

.patient-summary-card h3,
.patient-timeline-card strong {
  margin: 0 0 10px;
  color: var(--blue-dark);
}

.patient-summary-card p,
.patient-timeline-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.patient-timeline-card {
  position: relative;
  border-left: 5px solid var(--blue);
}

.patient-timeline-card.note-card {
  border-left-color: var(--green);
}

.patient-timeline-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 850;
}

.patient-timeline-card pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 12px 0 0;
  border-radius: 14px;
  padding: 12px;
  background: #f6fbfd;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.anamnesis-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.anamnesis-form,
.anamnesis-results,
.anamnesis-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 143, 198, 0.08);
}

.anamnesis-form,
.anamnesis-results {
  padding: 20px;
}

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

.compact-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.small-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.anamnesis-results {
  display: grid;
  gap: 14px;
}

.anamnesis-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
}

.anamnesis-rank {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 100%;
  padding: 18px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.anamnesis-rank strong {
  font-size: 2rem;
  line-height: 1;
}

.anamnesis-rank span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.anamnesis-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.anamnesis-card-body h3,
.anamnesis-card-body p {
  margin: 0;
}

.anamnesis-reason {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  background: #f8fdff;
  line-height: 1.45;
}

.anamnesis-reason strong {
  color: var(--blue-dark);
}

.anamnesis-meds {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.anamnesis-meds > strong {
  color: var(--blue-dark);
}

.compact-relation {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fdff;
}

.compact-relation p {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status.active,
.status.paid {
  color: var(--green-dark);
  background: #e7fbf2;
}

.status.pending {
  color: #a36800;
  background: #fff6d5;
}

.source-card a,
.source-card small {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.install-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 28;
  width: min(720px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.install-banner span {
  color: var(--text);
  font-weight: 850;
}

.install-banner .button,
.install-banner .ghost {
  margin: 0;
  min-height: 38px;
  white-space: nowrap;
}

.site-footer {
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 42px var(--page-pad) 54px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--blue-dark);
}

.site-footer p {
  max-width: 700px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(20, 184, 132, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(15, 143, 198, 0.18), transparent 30rem),
    linear-gradient(180deg, #f8fdff, #eef9fb);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: 160px var(--page-pad) 70px;
}

.login-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 0.7fr);
  justify-content: center;
}

.auth-hero-card,
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-hero-card {
  position: sticky;
  top: 140px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 252, 246, 0.9)),
    url("./assets/receitasmedi-hero-clinica-v2.png") center right / cover no-repeat;
}

.auth-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
}

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

.auth-hero-card h1 {
  max-width: 620px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-hero-card p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-benefits span {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--green-dark);
  background: #e9fbf3;
  font-weight: 850;
}

.checkout-card {
  padding: clamp(20px, 3vw, 34px);
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-step {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: #fff;
}

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

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

.payment-tabs label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #f9fdff;
}

.payment-tabs label:has(input:checked) {
  border-color: var(--green);
  background: #effdf8;
}

.payment-tabs input {
  width: auto;
  min-height: auto;
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
}

.pix-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px dashed rgba(15, 143, 198, 0.34);
  border-radius: 20px;
  padding: 18px;
  background: #f4fbff;
}

.qr-mock {
  width: 132px;
  height: 132px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 48%, #12313b 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #12313b 48% 52%, transparent 52%),
    #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-mock span {
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue), var(--green));
}

.card-grid {
  grid-template-columns: 1.3fr 1.4fr 0.7fr 0.6fr;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 22px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.checkout-summary span,
.checkout-summary small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.checkout-summary strong {
  font-size: clamp(28px, 4vw, 44px);
}

.checkout-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.login-card {
  align-self: start;
}

.quick-login {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quick-login-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.quick-login-card:hover {
  border-color: var(--green);
  background: #f2fff9;
}

.quick-login-card strong,
.quick-login-card span {
  display: block;
}

.quick-login-card span {
  margin-top: 4px;
  color: var(--muted);
}

.support-main {
  padding: 144px var(--page-pad) 60px;
}

.support-hero,
.support-grid,
.support-admin-shell,
.admin-layout {
  display: grid;
  gap: 18px;
}

.support-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.support-hero > div,
.support-summary,
.support-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.support-hero > div {
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(15, 143, 198, 0.12), rgba(20, 184, 132, 0.13)),
    #fff;
}

.support-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.support-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.support-summary {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.support-summary span,
.support-summary small {
  font-weight: 850;
  opacity: 0.92;
}

.support-summary strong {
  font-size: 1.8rem;
  line-height: 1.05;
}

.support-grid,
.admin-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.admin-layout > section:first-child {
  grid-column: 1 / -1;
}

.support-card {
  padding: clamp(18px, 3vw, 28px);
}

.support-form,
.ticket-list {
  display: grid;
  gap: 12px;
}

.admin-user-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f8fdff;
}

.support-admin-shell {
  margin-top: 18px;
}

.ticket-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.ticket-card.waiting {
  border-color: rgba(255, 159, 67, 0.55);
  background: #fffaf2;
}

.ticket-card.closed {
  opacity: 0.72;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ticket-head span,
.ticket-head small {
  display: block;
  color: var(--muted);
}

.ticket-head span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ticket-head mark {
  width: fit-content;
  height: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.ticket-replies {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .feature-card,
  .support-panel,
  .split-heading,
  .system-shell,
  .public-test-shell,
  .auth-panel,
  .result-layout,
  .document-layout,
  .doc-controls,
  .auth-layout,
  .login-layout,
  .student-hero,
  .student-shell,
  .student-search-grid,
  .doctor-study-shell,
  .doctor-study-search-grid,
  .anamnesis-panel,
  .pricing-posters,
  .support-hero,
  .support-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .history-card {
    grid-template-columns: 1fr;
  }

  .history-actions {
    justify-content: flex-start;
  }

  .anamnesis-grid,
  .anamnesis-card {
    grid-template-columns: 1fr;
  }

  .anamnesis-rank {
    min-height: auto;
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .auth-hero-card {
    position: relative;
    top: auto;
  }

  .system-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .news-grid,
  .tile-grid,
  .command-strip,
  .metrics,
  .download-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .student-main {
    padding-top: 132px;
  }

  .media-track img {
    width: 78vw;
    height: 190px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 14px;
  }

  .top-contact {
    display: none;
  }

  .site-header {
    inset: 0 0 auto;
    height: 64px;
    padding: 0 14px;
  }

  .mobile-menu {
    inset: 64px 0 auto;
    max-height: calc(100svh - 64px);
    overflow-y: auto;
  }

  .brand-name,
  .hero-next {
    display: none;
  }

  body:not(.student-app):not(.doctor-app):not(.auth-page) .header-actions .button {
    display: none;
  }

  .student-app .header-actions,
  .doctor-app .header-actions,
  .auth-page .header-actions {
    display: flex;
  }

  .student-app .header-actions .button,
  .doctor-app .header-actions .button,
  .auth-page .header-actions .button {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .student-app .header-actions .secondary,
  .doctor-app .header-actions .secondary {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 64px;
  }

  .hero-content {
    width: auto;
    max-width: calc(100vw - var(--page-pad) * 2);
    margin: 0 var(--page-pad);
    padding: 34px 0 64px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 72px);
    line-height: 0.95;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .section {
    padding: 48px var(--page-pad);
    overflow: hidden;
  }

  .doctor-app .section {
    overflow: visible;
  }

  .media-strip {
    overflow: hidden;
    max-width: 100%;
  }

  .media-track {
    max-width: 100%;
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .media-track img {
    flex: 0 0 78vw;
    width: 78vw;
    max-width: 310px;
    scroll-snap-align: start;
  }

  .section h2,
  .auth-hero-card h1,
  .student-detail h2 {
    letter-spacing: 0;
  }

  .section h2 {
    font-size: clamp(30px, 10vw, 46px);
    line-height: 1.02;
  }

  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
    bottom: 20px;
    transform: none;
  }

  .button,
  .login-row {
    width: 100%;
  }

  .doctor-app .button,
  .doctor-app .secondary,
  .doctor-app button {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .search-submit,
  .doc-actions .button,
  .history-actions .button {
    width: 100%;
  }

  .plan-grid,
  .search-grid,
  .login-row,
  .form-grid,
  .payment-tabs,
  .card-grid,
  .pix-card,
  .doc-controls,
  .document-layout,
  .public-test-shell,
  .demo-documents,
  .download-grid,
  .pricing-posters {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    padding: 82px var(--page-pad) 38px;
    gap: 16px;
  }

  .auth-hero-card,
  .checkout-card {
    border-radius: 20px;
  }

  .auth-hero-card {
    padding: 22px;
  }

  .auth-hero-card h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1;
  }

  .checkout-card,
  .checkout-step {
    padding: 16px;
  }

  .student-main {
    padding: 82px var(--page-pad) 34px;
  }

  .support-main {
    padding: 82px var(--page-pad) 34px;
  }

  .student-hero h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1;
  }

  .student-hero,
  .student-shell {
    gap: 12px;
  }

  .student-hero > div,
  .support-hero > div,
  .support-summary,
  .support-card,
  .student-profile,
  .student-search-panel,
  .student-results,
  .student-detail,
  .student-medicine-section {
    border-radius: 18px;
    padding: 16px;
  }

  .student-profile {
    min-height: auto;
  }

  .student-search-grid {
    grid-template-columns: 1fr;
  }

  .anamnesis-panel,
  .anamnesis-grid,
  .anamnesis-card {
    grid-template-columns: 1fr;
  }

  .anamnesis-rank {
    min-height: auto;
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .student-detail-head {
    display: grid;
  }

  .support-hero h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1;
  }

  .ticket-head,
  .ticket-actions {
    display: grid;
  }

  .student-result-card,
  .medicine-row,
  .clinical-block,
  .doc-block {
    border-radius: 14px;
  }

  .relation-list,
  .student-detail ul,
  .clinical-block ul {
    padding-left: 18px;
  }

  .system-main,
  .system-sidebar {
    padding: 16px;
  }

  .app-section {
    padding: 82px 12px 34px;
  }

  .system-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    border-radius: 18px;
  }

  .doctor-app .system-main,
  .doctor-app .system-shell *,
  .doctor-app .content-view,
  .doctor-app .search-panel,
  .doctor-app .detail-panel,
  .doctor-app .medical-docs,
  .doctor-app .doc-controls,
  .doctor-app .doc-actions,
  .doctor-app .notice,
  .doctor-app .result-card,
  .doctor-app .clinical-block,
  .doctor-app .student-results,
  .doctor-app .student-detail {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .doctor-app .search-head > div,
  .doctor-app .section-head > div {
    min-width: 0;
    max-width: 100%;
  }

  .system-sidebar {
    gap: 12px;
  }

  .system-brand {
    display: none;
  }

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

  .nav-item {
    justify-content: center;
    min-height: 44px;
    padding: 10px;
    text-align: center;
  }

  .user-panel {
    padding: 12px;
  }

  .search-head,
  .section-head,
  .student-detail-head {
    display: grid;
    gap: 10px;
  }

  .search-head h2,
  .section-head h2,
  .student-detail h2 {
    max-width: 100%;
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .student-detail-head {
    grid-template-columns: 1fr;
  }

  .student-detail-title {
    display: grid;
    gap: 10px;
  }

  .search-head span {
    width: fit-content;
  }

  .disease-card-body {
    padding: 14px;
  }

  .result-check {
    margin: 0 14px 14px;
  }

  .detail-grid {
    gap: 12px;
  }

  .doc-controls {
    gap: 10px;
  }

  .document-paper {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    aspect-ratio: 210 / 297;
    padding: 18px;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .document-paper pre {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .doc-head {
    display: grid;
    gap: 6px;
  }

  .doc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doctor-app .doc-actions .button,
  .doctor-app .compact-actions .button {
    min-height: 48px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.15;
  }

  .public-test-shell,
  .download-card,
  .info-tile,
  .feature-card,
  .news-card,
  .price-poster {
    border-radius: 18px;
  }

  .install-banner {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 720px;
  }
}

@media (max-width: 420px) {
  .command-strip,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .student-hero h1,
  .hero h1 {
    overflow-wrap: anywhere;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    border-radius: 12px;
  }

  .quick-login-card,
  .plan-card {
    min-height: auto;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff !important;
  }

  #teste {
    display: none !important;
  }

  .document-paper {
    width: 100%;
    min-height: auto;
    aspect-ratio: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
}
