@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap");

:root {
  --text-main: #1f2a30;
  --text-muted: #55646f;
  --glass-bg: rgba(249, 245, 235, 0.78);
  --glass-border: rgba(140, 116, 82, 0.28);
  --glass-shadow: 0 18px 40px rgba(65, 53, 38, 0.14);
  --focus: #0f766e;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --bg-top: #f7efe0;
  --bg-mid: #efe4d1;
  --bg-bottom: #e2d5bf;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(165deg, rgba(250, 245, 236, 0.9), rgba(238, 228, 211, 0.88)),
    url("../images/lab-bg.svg"),
    radial-gradient(circle at 14% 18%, rgba(15, 118, 110, 0.12), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(180, 83, 9, 0.12), transparent 34%),
    linear-gradient(145deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 601px) {
  body {
    background-attachment: scroll;
  }

  .search-box,
  .fact-carousel,
  .group-hints,
  .quick-tools-panel,
  .menu-panel,
  .card,
  .draw-modal,
  .draw-modal-card,
  .profile-modal,
  .profile-modal-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .search-box::before {
    animation: none;
    opacity: 0.35;
  }

  .card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .critical-prep-field-alert,
  .critical-prep-field-alert::after {
    animation: none;
  }
}

body.modal-open {
  overflow: hidden;
}

body.has-selection-cart {
  padding-bottom: 24px;
}

body.has-selection-cart .container {
  padding-bottom: clamp(96px, 10vw, 116px);
}

body.modal-open .container {
  filter: blur(3px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
}

body::before {
  width: 260px;
  height: 260px;
  background: rgba(15, 118, 110, 0.16);
  top: -70px;
  left: -60px;
}

body::after {
  width: 320px;
  height: 320px;
  background: rgba(180, 83, 9, 0.14);
  right: -100px;
  bottom: -120px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.header {
  position: relative;
  margin-bottom: 24px;
}

.header-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.menu-toggle-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.88);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(65, 53, 38, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle-btn:hover,
.menu-toggle-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.54);
  box-shadow: 0 14px 24px rgba(65, 53, 38, 0.14);
}

.menu-toggle-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0d605a;
}

.menu-panel {
  position: absolute;
  top: 54px;
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(140, 116, 82, 0.26);
  background: linear-gradient(145deg, rgba(255, 251, 245, 0.98), rgba(246, 239, 227, 0.96));
  box-shadow: 0 22px 40px rgba(65, 53, 38, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-panel[hidden] {
  display: none !important;
}

.menu-group + .menu-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 116, 82, 0.18);
}

.menu-group-label {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0b5d57;
}

.menu-action-btn {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.46);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(236, 251, 249, 0.95), rgba(220, 244, 240, 0.9));
  color: #0d605a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.12);
}

.menu-about p:last-child {
  color: #465963;
  font-size: 0.88rem;
  line-height: 1.45;
}

.header h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  text-align: center;
  color: #1f2a30;
}

.brand-title {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.01em;
  width: 100%;
  font-weight: 800;
}

.brand-home-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.brand-home-btn:hover {
  color: #0d605a;
}

.brand-home-btn:focus-visible {
  outline: 2px solid rgba(13, 96, 90, 0.38);
  outline-offset: 8px;
  border-radius: 12px;
}

.brand-gap {
  width: 0.4ch;
}

.brand-i-tube {
  --cap: #1f2a30;
  --glass: rgba(31, 42, 48, 0.08);
  --fill: #1f2a30;
  position: relative;
  width: 0.22em;
  height: 0.72em;
  margin: 0 0.045em 0.19em 0.04em;
  border-radius: 0.09em 0.09em 0.22em 0.22em;
  border: 1px solid rgba(31, 42, 48, 0.7);
  background:
    linear-gradient(180deg, rgba(31, 42, 48, 0.08), rgba(31, 42, 48, 0.02) 40%, rgba(31, 42, 48, 0.08) 100%),
    var(--glass);
  box-shadow:
    inset 0 0 0 1px rgba(31, 42, 48, 0.12),
    0 1px 1px rgba(15, 23, 42, 0.12);
}

.brand-i-tube::before {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: -0.09em;
  height: 0.09em;
  border-radius: 0.07em;
  border: 1px solid rgba(31, 42, 48, 0.72);
  background: var(--cap);
}

.brand-i-tube::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.04em;
  height: 0.42em;
  border-radius: 0.05em 0.05em 0.16em 0.16em;
  background: linear-gradient(180deg, rgba(31, 42, 48, 0.9), rgba(31, 42, 48, 0.82));
}

.header > p {
  color: #4c5b64;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.94rem, 2.5vw, 1rem);
}

.install-helper {
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.26);
  background: rgba(237, 252, 250, 0.72);
  color: #2f4957;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  max-width: none;
  margin: 0;
  padding: 12px;
}

.install-helper p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: left;
}

.install-helper-btn {
  border: 1px solid rgba(15, 118, 110, 0.36);
  background: rgba(255, 255, 255, 0.86);
  color: #0e5f59;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(249, 245, 235, 0.9), rgba(241, 232, 216, 0.78));
  border: 1px solid rgba(140, 116, 82, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 32px rgba(65, 53, 38, 0.14),
    0 0 0 1px rgba(15, 118, 110, 0.08) inset;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.search-box::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 55%;
  height: 300%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: rotate(16deg);
  animation: searchSheen 5.2s linear infinite;
  pointer-events: none;
}

.search-box:hover,
.search-box:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(65, 53, 38, 0.18),
    0 0 0 1px rgba(15, 118, 110, 0.24) inset;
}

.search-box input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1px solid rgba(140, 116, 82, 0.34);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 252, 247, 0.86);
  color: var(--text-main);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
  background: rgba(255, 252, 247, 0.96);
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(140, 116, 82, 0.18);
  color: rgba(65, 53, 38, 0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-clear-btn:hover,
.search-clear-btn:focus-visible {
  background: rgba(15, 118, 110, 0.24);
  transform: translateY(-50%) scale(1.04);
}


.pre-search {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pre-search-primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact-carousel,
.group-hints,
.quick-tools-panel {
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(140, 116, 82, 0.26);
  background: linear-gradient(135deg, rgba(252, 247, 238, 0.85), rgba(245, 236, 223, 0.68));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(65, 53, 38, 0.14);
}

.fact-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-tools-panel {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(237, 252, 250, 0.92), rgba(224, 245, 241, 0.84));
  border-color: rgba(15, 118, 110, 0.24);
}

.quick-tools-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b5d57;
  margin-bottom: 6px;
}

.quick-tools-panel h3 {
  color: #17343a;
  margin-bottom: 8px;
}

.quick-tools-panel p:last-of-type {
  color: #45616a;
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.quick-tool-launch-btn,
.quick-tools-toggle-btn {
  border: 1px solid rgba(15, 118, 110, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(237, 252, 250, 0.92));
  color: #0d605a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.1);
}

.quick-tool-launch-btn {
  width: 100%;
}

.quick-tool-launch-btn:hover,
.quick-tool-launch-btn:focus-visible,
.quick-tools-toggle-btn:hover,
.quick-tools-toggle-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 14px 22px rgba(15, 118, 110, 0.14);
}

.quick-tools-toggle-btn {
  display: none;
  justify-content: center;
}

.quick-tools-toggle-btn[hidden] {
  display: none !important;
}

.selection-cart-bar {
  position: fixed;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  z-index: 1050;
  width: 92px;
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: 24px;
  padding: 42px 12px 12px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 34%),
    linear-gradient(140deg, rgba(253, 249, 241, 0.98), rgba(238, 251, 248, 0.96));
  color: #15363c;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: bottom 0.22s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 24px 50px rgba(32, 40, 47, 0.18),
    0 10px 18px rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.selection-cart-bar[hidden] {
  display: none !important;
}

.selection-cart-bar::before {
  content: none;
}

.selection-cart-bar::after {
  content: none;
}

.selection-cart-bar:hover,
.selection-cart-bar:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow:
    0 28px 56px rgba(32, 40, 47, 0.2),
    0 12px 20px rgba(15, 118, 110, 0.16);
}

.selection-cart-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.selection-cart-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #0b5d57;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(223, 246, 241, 0.92));
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
  z-index: 1;
}

.selection-cart-icon svg {
  width: 21px;
  height: 21px;
}

.selection-cart-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b5d57;
}

.selection-cart-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1d3139;
  line-height: 1;
}

.selection-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(13, 96, 90, 1), rgba(11, 73, 69, 0.98));
  color: #f8fffd;
  border: 2px solid rgba(255, 251, 245, 0.98);
  box-shadow: 0 10px 20px rgba(13, 96, 90, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  z-index: 2;
}

.fact-carousel-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mini-carousel {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(140, 116, 82, 0.24);
  background: rgba(255, 250, 242, 0.64);
}

.fact-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 10px;
}

.fact-text {
  font-size: 1.03rem;
  line-height: 1.5;
  color: #2b3c45;
  min-height: 76px;
}

.group-hints h3 {
  color: #1e3139;
  margin-bottom: 6px;
}

.group-hints p {
  color: #4f5f69;
  margin-bottom: 12px;
  font-size: 0.93rem;
}

.group-chips {
  display: grid;
  gap: 10px;
}

.group-chip {
  border: 1px solid rgba(140, 116, 82, 0.34);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.84);
  padding: 10px 12px 10px 14px;
  text-align: left;
  color: #243740;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.group-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.56);
  background: rgba(255, 253, 249, 0.96);
}

.group-chip.active {
  border-color: rgba(15, 118, 110, 0.72);
  background: linear-gradient(180deg, rgba(223, 248, 244, 0.96), rgba(236, 251, 249, 0.94));
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.12);
}

.group-chip.active .group-chip-icon {
  background: rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.3);
}

.group-chip-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.group-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: #0d605a;
  border: 1px solid rgba(15, 118, 110, 0.18);
  flex-shrink: 0;
}

.group-chip-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(28, 33, 38, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.2s ease;
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal-card {
  width: min(520px, calc(100vw - 28px));
  max-height: 80vh;
  overflow: auto;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(120, 102, 74, 0.3);
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 20px 40px rgba(10, 12, 15, 0.26);
  animation: modalCardIn 0.24s ease;
}

.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-modal-head h3 {
  font-size: 1rem;
  color: #1e3139;
}

.profile-modal-close-btn {
  border: 1px solid rgba(120, 102, 74, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #3d5360;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.profile-modal-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.profile-modal-list li {
  border: 1px solid rgba(120, 102, 74, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #31444f;
  font-size: 0.9rem;
  padding: 9px 10px;
}

.legal-modal-card {
  width: min(680px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.99), rgba(246, 240, 229, 0.98));
}

.legal-modal-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.legal-modal-body {
  display: grid;
  gap: 14px;
}

.legal-copy {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(120, 102, 74, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.legal-copy h4 {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b5d57;
}

.legal-copy p,
.legal-copy li {
  color: #31444f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-copy ul {
  margin-left: 18px;
  display: grid;
  gap: 6px;
}

.legal-copy-note {
  font-size: 0.82rem;
  color: #5a6d79;
}

.draw-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 18px;
  background: rgba(28, 33, 38, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.2s ease;
}

.draw-modal[hidden] {
  display: none !important;
}

.draw-modal-card {
  width: min(460px, 100%);
  height: calc(100vh - 36px);
  height: calc(100dvh - 36px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: auto;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(120, 102, 74, 0.26);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.99), rgba(245, 239, 229, 0.98));
  box-shadow: 0 24px 52px rgba(25, 31, 36, 0.22);
  animation: drawPanelSlideIn 0.24s ease;
}

.draw-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.draw-selection-head h3 {
  font-size: 1.08rem;
  color: #1e3139;
}

.draw-cart-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b5d57;
  margin-bottom: 5px;
}

.draw-close-btn {
  border: 1px solid rgba(120, 102, 74, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #3d5360;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.draw-tool-btn {
  border: 1px solid rgba(120, 102, 74, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #35505d;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

.draw-tool-btn.ghost {
  background: rgba(255, 251, 245, 0.8);
}

.draw-return-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
}

.draw-tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.draw-selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
}

.draw-selection-count {
  font-size: 0.84rem;
  color: #40545f;
  font-weight: 600;
}

.draw-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draw-selected-empty {
  width: 100%;
  border: 1px dashed rgba(120, 102, 74, 0.28);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4d606b;
  background: rgba(255, 255, 255, 0.74);
}

.draw-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 7px 8px 7px 12px;
  background: rgba(234, 249, 245, 0.9);
}

.draw-selected-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3139;
}

.draw-selected-chip-remove {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0d605a;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.draw-result-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  background: rgba(236, 251, 249, 0.9);
  padding: 12px;
}

.draw-planner-sub,
.draw-planner-count,
.draw-planner-note {
  color: #35505d;
  font-size: 0.9rem;
}

.draw-planner-sub {
  margin-bottom: 8px;
}

.draw-planner-count {
  margin-bottom: 10px;
  font-weight: 700;
}

.draw-planner-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.draw-planner-alert {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 241, 225, 0.94));
}

.draw-planner-alert h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #8a3d12;
}

.draw-planner-alert ul {
  margin: 0;
  padding-left: 18px;
  color: #6f4326;
  font-size: 0.82rem;
  line-height: 1.45;
}

.draw-planner-alert li + li {
  margin-top: 4px;
}

.draw-planner-note {
  margin-top: 10px;
  font-size: 0.84rem;
}

.draw-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.draw-group-card {
  border-radius: 12px;
  border: 1px solid rgba(120, 102, 74, 0.26);
  background: rgba(255, 251, 245, 0.9);
  padding: 11px;
}

.draw-group-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.draw-group-top h3 {
  font-size: 0.92rem;
  color: #1e3139;
}

.draw-group-top p {
  font-size: 0.81rem;
  color: #4d606b;
}

.draw-group-tests {
  font-size: 0.82rem;
  color: #40545f;
  line-height: 1.45;
}

.draw-group-detail {
  font-size: 0.8rem;
  color: #536975;
  margin-bottom: 6px;
}

.draw-result-updated {
  animation: drawPlannerPulse 0.45s ease;
}

.results-info {
  margin-bottom: 16px;
  color: #31444f;
  font-size: 0.96rem;
  font-weight: 500;
}

.selection-notice {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 16px);
  left: 50%;
  z-index: 60;
  width: min(460px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(244, 236, 223, 0.96));
  box-shadow: 0 18px 32px rgba(65, 53, 38, 0.2);
  color: #21414d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.selection-notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.selection-notice[hidden] {
  display: none !important;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  padding: 16px 18px;
  border: 1px solid rgba(120, 102, 74, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 34%),
    linear-gradient(140deg, rgba(255, 251, 245, 0.96), rgba(247, 240, 229, 0.94));
  box-shadow: 0 16px 30px rgba(65, 53, 38, 0.12);
}

.site-footer-copy {
  display: grid;
  gap: 4px;
  max-width: 620px;
}

.site-footer-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1d3139;
}

.site-footer-note {
  color: #55646f;
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #21414d;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.5);
  background: rgba(241, 252, 249, 0.96);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.12);
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  animation: cardIn 0.38s ease both;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 45%, transparent);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(65, 53, 38, 0.2);
}

.card.card-selected {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow:
    0 22px 44px rgba(65, 53, 38, 0.2),
    0 0 0 2px rgba(15, 118, 110, 0.14) inset;
}

.card h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-head {
  margin-bottom: 8px;
}

.card-head h2 {
  margin-bottom: 0;
}

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

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

.card-summary-grid .field {
  margin-bottom: 0;
}

.card-summary-field {
  border: 1px solid rgba(120, 102, 74, 0.18);
  border-radius: 12px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.7);
}

.card-summary-action {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-summary-action:hover,
.card-summary-action:focus-visible {
  border-color: rgba(15, 118, 110, 0.44);
  background: rgba(244, 252, 250, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.08);
}

.card-summary-action.selected {
  border-color: rgba(15, 118, 110, 0.52);
  background: rgba(228, 248, 244, 0.92);
}

.card-summary-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-summary-action-indicator {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: #0d605a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.card-summary-action-indicator.is-add {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0d605a;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 0.9;
}

.card-summary-action-indicator.is-add::before,
.card-summary-action-indicator.is-add::after {
  content: none;
}

.card-summary-action.selected .card-summary-action-indicator {
  border-color: rgba(15, 118, 110, 0.58);
  background: rgba(15, 118, 110, 0.92);
  color: #f7fffd;
}

.card-summary-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0d605a;
}

.card-summary-field .label {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #58707c;
}

.card-summary-value {
  display: block;
  color: #213741;
  font-size: 0.84rem;
  line-height: 1.3;
}

.field {
  margin-bottom: 10px;
  line-height: 1.45;
}

.critical-prep-field {
  border-left: 3px solid rgba(180, 83, 9, 0.5);
  padding-left: 10px;
  background: rgba(255, 248, 237, 0.52);
  border-radius: 8px;
}

.card.card-critical-alert {
  border-color: rgba(185, 28, 28, 0.32);
  box-shadow:
    0 22px 44px rgba(65, 53, 38, 0.2),
    0 0 0 2px rgba(185, 28, 28, 0.12) inset;
}

.critical-prep-field-alert {
  position: relative;
  overflow: hidden;
  border-left-color: rgba(185, 28, 28, 0.8);
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.95), rgba(255, 247, 247, 0.92));
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.1);
  animation: criticalPrepPulse 1.05s ease-out 2;
}

.critical-prep-field-alert .label {
  color: #991b1b;
}

.critical-prep-field-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(248, 113, 113, 0.24) 45%, transparent 100%);
  transform: translateX(-115%);
  animation: criticalPrepSweep 1s ease-out 1;
  pointer-events: none;
}

.card.card-critical-alert .card-toggle-btn {
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(255, 244, 244, 0.95);
  color: #991b1b;
}

.card-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.profile-components {
  border: 1px solid rgba(120, 102, 74, 0.24);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.72);
  width: 100%;
  margin-bottom: 10px;
}

.profile-components .label {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.profile-component-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-component-chip {
  border: 1px solid rgba(120, 102, 74, 0.24);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  color: #35505d;
  background: rgba(255, 251, 245, 0.9);
}

.profile-tests-btn {
  border: 1px solid rgba(120, 102, 74, 0.3);
  background: rgba(255, 252, 247, 0.95);
  color: #3d5360;
  border-radius: 10px;
  padding: 5px 9px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.test-subgroup-badge {
  display: inline-flex;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  margin: 0 0 10px 0;
  color: #35505d;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(120, 102, 74, 0.25);
}

.card-extra {
  display: none;
  margin-top: 8px;
}

.card.expanded .card-extra {
  display: block;
}

.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-toggle-btn {
  display: inline-flex;
  border: 1px solid rgba(120, 102, 74, 0.3);
  background: rgba(255, 252, 247, 0.95);
  color: #3d5360;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.label {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  color: #26424f;
}

.tube-color-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tube-color-row.multiple {
  display: block;
}

.tube-option-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.tube-option-grid.compact {
  gap: 6px 8px;
}

.tube-option-grid.dense {
  gap: 5px 7px;
}

.tube-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tube-option.alternative {
  flex-shrink: 0;
}

.tube-option-separator {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5e7280;
}

.tube-option-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tube-option-label {
  font-size: 0.74rem;
  color: #35505d;
  font-weight: 700;
  white-space: nowrap;
}

.tube-option-additive {
  font-size: 0.64rem;
  color: #617684;
  line-height: 1.2;
  white-space: nowrap;
}

.tube-option-grid.compact .tube-option-label {
  font-size: 0.74rem;
}

.tube-option-grid.dense .tube-option-label {
  font-size: 0.7rem;
}

.tube-option-grid.compact .tube-option-additive,
.tube-option-grid.dense .tube-option-additive {
  font-size: 0.6rem;
}

.tube-choice-note {
  display: block;
  margin-top: 5px;
  color: #5a6d79;
  font-size: 0.75rem;
  line-height: 1.3;
}

.tube-icon {
  --tube-color: #cbd5e1;
  position: relative;
  display: inline-block;
  width: 16px;
  height: 36px;
  border-radius: 4px 4px 10px 10px;
  border: 1px solid rgba(15, 23, 42, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset -2px -8px 12px rgba(148, 163, 184, 0.22),
    0 1px 2px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.tube-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3px;
  width: 20px;
  height: 8px;
  border-radius: 4px 4px 3px 3px;
  border: 1px solid rgba(15, 23, 42, 0.45);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tube-color) 85%, white), color-mix(in srgb, var(--tube-color) 70%, black 12%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tube-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 45%;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tube-color) 75%, white 12%), color-mix(in srgb, var(--tube-color) 88%, black 5%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tube-icon.tube-icon-sm {
  width: 14px;
  height: 31px;
  border-radius: 4px 4px 9px 9px;
}

.tube-icon.tube-icon-sm::before {
  top: -5px;
  left: -2px;
  width: 18px;
  height: 7px;
}

.tube-icon.tube-icon-sm::after {
  border-radius: 0 0 7px 7px;
}

.tube-icon.tube-icon-mini {
  width: 12px;
  height: 27px;
  border-radius: 3px 3px 7px 7px;
}

.tube-icon.tube-icon-mini::before {
  top: -4px;
  left: -2px;
  width: 16px;
  height: 6px;
  border-radius: 4px 4px 2px 2px;
}

.tube-icon.tube-icon-mini::after {
  left: 1px;
  right: 1px;
  border-radius: 0 0 6px 6px;
}

.no-results {
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  color: #425460;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

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

@keyframes searchSheen {
  from {
    left: -35%;
  }
  to {
    left: 120%;
  }
}

@keyframes drawPlannerPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.12);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.12);
  }
}

@keyframes criticalPrepPulse {
  0% {
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.06), 0 0 0 0 rgba(185, 28, 28, 0.14);
  }
  55% {
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.16), 0 0 0 6px rgba(185, 28, 28, 0);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.1), 0 0 0 0 rgba(185, 28, 28, 0);
  }
}

@keyframes criticalPrepSweep {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(115%);
  }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawPanelSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px;
    background-attachment: scroll;
  }

  .brand-title {
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  .menu-panel {
    top: 50px;
    width: min(320px, calc(100vw - 20px));
  }

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

  .quick-tools-toggle-btn {
    display: inline-flex;
    order: 0;
    justify-self: start;
  }

  .quick-tools-panel {
    display: none !important;
  }

  .group-hints {
    order: 4;
  }

  .fact-carousel {
    order: 3;
    padding: 12px;
    gap: 10px;
  }

  .fact-carousel.mobile-facts .fact-text {
    font-size: 0.93rem;
    min-height: 0;
  }

  .selection-notice {
    top: calc(env(safe-area-inset-top) + 10px);
    width: calc(100vw - 20px);
    padding: 11px 12px;
    font-size: 0.84rem;
  }

  .fact-text {
    min-height: 0;
  }

  .profile-modal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 10px 10px;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
  }

  .draw-modal {
    justify-content: center;
    align-items: flex-end;
    padding: 10px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
  }

  .selection-cart-bar {
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    width: 82px;
    min-height: 82px;
    padding: 38px 10px 10px;
    border-radius: 18px;
  }

  .selection-cart-icon {
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .selection-cart-icon svg {
    width: 18px;
    height: 18px;
  }

  .selection-cart-badge {
    min-width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .selection-cart-kicker {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .selection-cart-label {
    font-size: 0.82rem;
  }

  .draw-modal-card,
  .profile-modal-card,
  .legal-modal-card {
    width: 100%;
  }

  .draw-modal-card {
    height: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 22px 22px 18px 18px;
  }

  .profile-modal-card {
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
  }

  .legal-modal-card {
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
    padding: 16px;
  }

  .draw-selection-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .draw-close-btn {
    width: 100%;
  }

  .profile-modal-close-btn {
    width: 100%;
  }

  .profile-modal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .draw-selection-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    padding: 14px;
  }

  .card {
    border-radius: 14px;
    padding: 12px;
  }

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

  .site-footer {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
  }

  .site-footer-links {
    width: 100%;
  }

  .footer-link-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .card h2 {
    font-size: 0.96rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .card-head {
    margin-bottom: 8px;
  }

  .card-meta-row {
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .card-summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-summary-field {
    padding: 7px 8px;
  }

  .card-summary-action-indicator {
    width: 22px;
    height: 22px;
    font-size: 0.92rem;
  }

  .card-summary-hint {
    font-size: 0.64rem;
  }

  .card-summary-field .label {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }

  .profile-components {
    width: 100%;
  }

  .field {
    margin-bottom: 6px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .label {
    font-size: 0.72rem;
  }

  .test-subgroup-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
    margin-bottom: 8px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-toggle-btn {
    font-size: 0.76rem;
    padding: 6px 9px;
  }

  .card-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .critical-prep-field {
    padding-left: 8px;
  }

  .legal-copy {
    padding: 10px;
    gap: 8px;
  }

  .legal-copy p,
  .legal-copy li {
    font-size: 0.86rem;
  }
}
