:root {
  --navy: #08285f;
  --navy-2: #0e3676;
  --ink: #10233f;
  --muted: #66758d;
  --line: #dbe4ef;
  --line-strong: #c8d6e8;
  --surface: #f6f9fd;
  --panel: #ffffff;
  --yellow: #ffc21a;
  --yellow-2: #fff6d8;
  --green: #18a957;
  --red: #ea3d3d;
  --orange: #f5a524;
  --blue-soft: #eef5ff;
  --shadow: 0 14px 40px rgba(8, 40, 95, 0.10);
  --font-body: "BIZ UDPGothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Noto Sans JP", "BIZ UDPGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfdff 0%, var(--surface) 48%, #ffffff 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

h1,
h2,
h3,
.brand,
.section-kicker,
.rank-number,
.score,
.tag,
.diagnosis-button,
.purchase-button {
  font-family: var(--font-display);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1480px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: #fff6d8;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.6;
}

.top-nav,
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-actions[data-auth-state="loading"],
.auth-actions[data-auth-state="disabled"] {
  display: none;
}

.auth-actions[data-auth-state="signed-in"] .auth-button {
  display: none;
}

.auth-actions[data-auth-state="signed-out"] .user-button-mount {
  display: none;
}

.auth-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--navy);
  background: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-button.primary {
  border-color: transparent;
  color: #3d2b00;
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(255, 194, 26, 0.2);
}

.user-button-mount {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
}

.top-nav a,
.account-button,
.link-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  background: transparent;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.top-nav svg,
.account-button svg,
.link-button svg {
  width: 17px;
  height: 17px;
}

.nav-cta {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d2b00;
  background: var(--yellow);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 194, 26, 0.28);
}

.account-button {
  min-height: 42px;
  padding: 0;
}

.dashboard {
  width: min(1480px, calc(100% - 48px));
  margin: 30px auto 32px;
}

.hero-panel {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel h1 {
  margin: 0;
  max-width: 680px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 710px;
  margin: 16px 0 0;
  color: #233a61;
  font-size: 16px;
  line-height: 1.85;
}

.hero-insight-board {
  position: relative;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.94)),
    #fff;
  box-shadow: var(--shadow);
}

.insight-pill,
.insight-side-card {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.insight-pill.top {
  position: absolute;
  top: 18px;
  right: 18px;
}

.insight-panel {
  width: min(100%, 430px);
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 40, 95, 0.12);
}

.mini-window-bar {
  margin-bottom: 14px;
  display: flex;
  gap: 6px;
}

.mini-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d6e8;
}

.mini-program-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.mini-program-list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  background: #fbfdff;
}

.mini-program-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.mini-program-list span {
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.mini-program-list em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.insight-side-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 260px;
  border-radius: 16px;
  align-items: flex-start;
  background: #fff;
}

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

.insight-side-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.trust-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.68fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 18px;
}

.diagnosis-card,
.actions-card,
.results-panel,
.report-banner,
.watch-card,
.source-section,
.utility-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.diagnosis-card {
  padding: 20px;
}

.diagnosis-progress {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.diagnosis-progress span {
  position: relative;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.diagnosis-progress span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  width: 8px;
  border-top: 1px dashed var(--line-strong);
}

.diagnosis-progress span:last-child::after {
  display: none;
}

.diagnosis-progress strong {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f2f5f8;
  font-size: 13px;
}

.diagnosis-progress .is-current {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--blue-soft);
}

.diagnosis-progress .is-current strong {
  color: #fff;
  background: var(--navy);
}

.card-title-row,
.results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-kicker {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.card-title-row h2,
.results-heading h2,
.actions-card h2,
.report-banner h2,
.watch-card h2,
.source-section h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.form-line {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.form-line.compact-line {
  margin-top: 8px;
}

.line-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.line-label svg {
  width: 20px;
  height: 20px;
}

select,
textarea,
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
}

.segmented,
.checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented.inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
}

.segmented label,
.checkbox-pills label {
  position: relative;
  min-width: 0;
}

.segmented input,
.checkbox-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span,
.checkbox-pills span {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #31445f;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.segmented input:checked + span,
.checkbox-pills input:checked + span {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.checkbox-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.single-check {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #31445f;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.single-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.notice-line {
  margin-top: 18px;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a4d00;
  background: var(--yellow-2);
  font-size: 13px;
  font-weight: 700;
}

.diagnosis-button,
.purchase-button {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.diagnosis-button {
  width: 100%;
  margin-top: 18px;
  color: #3d2b00;
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(255, 194, 26, 0.30);
}

.diagnosis-button:disabled {
  cursor: progress;
  opacity: 0.82;
}

.diagnosis-button.is-loading {
  color: var(--navy);
  background: #ffe17a;
}

.results-panel {
  position: relative;
  padding: 20px;
}

.results-panel.is-loading .result-list {
  opacity: 0.44;
}

.summary-strip {
  display: none;
  margin-top: 14px;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 10px;
}

.summary-strip > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.summary-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.result-fetch-status {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: #435976;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.result-loading {
  margin-top: 14px;
  border: 1px solid #ffd26a;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  background: #fff9e6;
}

.result-loading[hidden] {
  display: none;
}

.result-loading strong,
.result-loading small {
  display: block;
}

.result-loading small {
  margin-top: 2px;
  color: #5d6d84;
  font-size: 12px;
  line-height: 1.5;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ffe3a1;
  border-top-color: var(--navy);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.result-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(220px, 270px);
  gap: 16px;
  background: #fff;
}

.rank-block {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.score {
  min-width: 58px;
  border: 1px solid #ffb9b9;
  border-radius: 10px;
  padding: 8px 7px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff4f4;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.score.is-low {
  border-color: #ffe0a6;
  color: #b26b00;
  background: #fff8e8;
}

.score.is-stop {
  border-color: #d5dde8;
  color: #5b6878;
  background: #f2f5f8;
}

.score.is-next {
  border-color: #bed7ff;
  color: var(--navy-2);
  background: #eef5ff;
}

.tag {
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.result-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.result-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.favorite-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
}

.favorite-button.is-active {
  border-color: #ffd26a;
  color: #9b6600;
  background: var(--yellow-2);
}

.description {
  margin: 9px 0 0;
  color: #455a77;
  font-size: 14px;
  line-height: 1.65;
}

.evidence-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.evidence-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfdff;
}

.evidence-grid h4 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 13px;
}

.evidence-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #384d69;
  font-size: 12px;
  line-height: 1.55;
}

.pass-list li::marker {
  color: var(--green);
}

.unknown-list li::marker {
  color: var(--red);
}

.result-side {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.card-meta {
  display: grid;
  gap: 10px;
}

.card-meta div {
  display: grid;
  gap: 3px;
}

.card-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.card-actions a,
.card-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  gap: 8px;
}

.result-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.actions-card {
  padding: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.action-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px 118px;
  align-items: center;
  gap: 10px;
}

.action-list li > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.action-list label {
  display: flex;
  align-items: center;
  color: #2b405d;
  font-size: 13px;
  font-weight: 700;
}

.action-list strong {
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 12px;
  text-align: center;
}

.action-list a,
.action-list button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.action-list a svg,
.action-list button svg {
  width: 16px;
  height: 16px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(8, 40, 95, 0.30);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.score-modal {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.score-modal h2 {
  margin: 4px 44px 0 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}

.score-modal p {
  margin: 12px 0 0;
  color: #31445f;
  font-size: 14px;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
}

.score-guide-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-guide-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.score-guide-grid strong {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}

.score-guide-grid span {
  display: block;
  margin-top: 10px;
  color: #2b405d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.score-modal .modal-note {
  margin-top: 16px;
  border-radius: 10px;
  padding: 12px 14px;
  color: #6f4d00;
  background: var(--yellow-2);
  font-weight: 700;
}

.bottom-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
}

.report-banner {
  border-color: #ffd26a;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  background: linear-gradient(90deg, #fff 0%, #fff9e8 100%);
}

.monthly-report-banner {
  background: linear-gradient(90deg, #ffffff 0%, #eef5ff 100%);
  border-color: #c8d6e8;
}

.report-banner .section-kicker span {
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #7a4d00;
  background: var(--yellow);
  font-size: 11px;
}

.report-banner p,
.watch-card p {
  color: #435976;
  line-height: 1.75;
}

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

.feature-tags span {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.report-banner strong {
  margin-top: 18px;
  display: block;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}

.report-banner small {
  margin-left: 4px;
  font-size: 13px;
}

.purchase-button {
  width: min(360px, 100%);
  margin-top: 12px;
  color: #3d2b00;
  background: var(--yellow);
}

.report-art {
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  align-self: center;
  box-shadow: 0 10px 28px rgba(8, 40, 95, 0.16);
}

.report-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.watch-card {
  padding: 22px;
}

.watch-price {
  margin: 16px 0;
  border: 1px solid #ffd26a;
  border-radius: 10px;
  padding: 13px;
  background: var(--yellow-2);
}

.watch-price strong,
.watch-price span {
  display: block;
}

.watch-price strong {
  color: var(--navy);
  font-size: 26px;
}

.watch-price span {
  color: #7a4d00;
  font-size: 12px;
  font-weight: 700;
}

.watch-card ul {
  margin: 0;
  padding-left: 20px;
  color: #435976;
  line-height: 1.75;
  font-size: 14px;
}

.watch-form {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.watch-form label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.watch-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.watch-form button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

.watch-auth-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.watch-paid-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.watch-paid-actions .purchase-button {
  width: 100%;
  margin-top: 0;
}

.watch-paid-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.watch-signup-result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #fbfdff;
}

.watch-signup-result strong {
  color: var(--navy);
  font-size: 14px;
}

.watch-signup-result span {
  color: #435976;
  font-size: 13px;
  line-height: 1.6;
}

.watch-signup-result a {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  color: #3d2b00;
  background: var(--yellow);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.watch-signup-result.is-error {
  border-color: #ffb9b9;
  background: #fff4f4;
}

.purchase-button.secondary {
  width: 100%;
  margin-top: 14px;
  background: var(--navy);
  color: #fff;
}

.utility-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.utility-card {
  padding: 20px;
}

.utility-note {
  margin: 12px 0 0;
  color: #435976;
  font-size: 13px;
  line-height: 1.7;
}

.saved-list,
.live-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.saved-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 13px;
}

.saved-item,
.live-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.saved-item strong,
.live-item strong {
  color: var(--ink);
  line-height: 1.45;
}

.saved-item small,
.live-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.saved-item div,
.live-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-item button,
.saved-item a,
.live-item a {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.alert-dashboard {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.alert-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.alert-dashboard-head h2,
.watchlist-preview h3,
.notification-preview h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}

.alert-dashboard-head p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #435976;
  font-size: 14px;
  line-height: 1.75;
}

.secondary-pill-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.alert-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.alert-card {
  min-height: 162px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  background: #fff;
}

.alert-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.alert-yellow .alert-icon {
  color: #9b6600;
  background: #fff4cf;
}

.alert-red .alert-icon {
  color: #c12f45;
  background: #ffe2e8;
}

.alert-blue .alert-icon {
  color: var(--navy);
  background: var(--blue-soft);
}

.alert-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.alert-red span {
  color: #b61d35;
  background: #ffe2e8;
}

.alert-yellow span {
  color: #8a5a00;
  background: #fff4cf;
}

.alert-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.alert-card p {
  margin: 6px 0 0;
  color: #435976;
  font-size: 13px;
  line-height: 1.6;
}

.alert-card a {
  grid-column: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.watch-ux-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 14px;
}

.watchlist-preview,
.notification-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.watchlist-preview ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.watchlist-preview li {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  background: #fbfdff;
}

.watchlist-preview strong {
  color: var(--ink);
  font-size: 14px;
}

.watchlist-preview span {
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.watchlist-preview span.pink {
  color: #b61d35;
  background: #ffe2e8;
}

.watchlist-preview small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toggle-row {
  min-height: 66px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.toggle-row:first-of-type {
  margin-top: 12px;
}

.toggle-row span:first-child {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--navy);
}

.toggle-row strong,
.toggle-row small {
  grid-column: 2;
  display: block;
}

.toggle-row strong {
  color: var(--ink);
  font-size: 14px;
}

.toggle-row small {
  color: var(--muted);
  font-size: 12px;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  justify-content: flex-start;
  background: #d8e1ec;
  flex: 0 0 auto;
}

.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(8, 40, 95, 0.18);
}

.toggle.is-on {
  justify-content: flex-end;
  background: var(--green);
}

.source-section {
  margin-top: 22px;
  padding: 20px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.mobile-tabbar {
  display: none;
}

.hidden-form {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.legal-page,
.sample-report {
  width: min(980px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.legal-page,
.sample-report-header,
.sample-report-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-page h1,
.sample-report h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 34px;
}

.legal-page h2,
.sample-report h2 {
  margin: 24px 0 10px;
  color: var(--ink);
}

.legal-page p,
.sample-report p {
  color: var(--muted);
  line-height: 1.8;
}

.settings-page {
  width: min(1320px, calc(100% - 48px));
  margin: 32px auto 56px;
  display: grid;
  gap: 18px;
}

.settings-hero,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.settings-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.35;
}

.settings-hero p {
  max-width: 820px;
  color: var(--muted);
}

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

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-card label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.settings-card textarea {
  resize: vertical;
}

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

.settings-checks label,
.settings-card .inline-check {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2b405d;
  background: #fbfdff;
}

.settings-checks input,
.settings-card .inline-check input {
  width: auto;
}

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

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.primary-button {
  border: 0;
  color: #3d2b00;
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(255, 194, 26, 0.24);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--navy);
  background: #fff;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.mini-status {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.muted-card {
  margin-top: 4px;
  padding: 16px;
  box-shadow: none;
  background: #fbfdff;
}

.muted-card ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.muted-card li {
  color: #2b405d;
  font-size: 13px;
}

.muted-card li span {
  margin-left: 6px;
  color: var(--muted);
}

.candidate-preference-list {
  display: grid;
  gap: 10px;
}

.candidate-manual-form {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.candidate-manual-form label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.candidate-manual-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.candidate-manual-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.candidate-manual-form button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.candidate-preference-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.candidate-preference-item div {
  display: grid;
  gap: 3px;
}

.candidate-preference-item strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
}

.candidate-preference-item span,
.candidate-preference-item a,
.empty-note {
  color: var(--muted);
  font-size: 12px;
}

.candidate-preference-item a {
  justify-self: start;
}

.candidate-preference-item button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--navy);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.candidate-preference-item button:disabled {
  color: var(--muted);
  background: var(--line);
}

.notification-history {
  display: grid;
  gap: 10px;
}

.notification-history article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #fff;
}

.notification-history strong {
  color: var(--navy);
  font-size: 13px;
}

.notification-history span,
.notification-history small {
  color: var(--muted);
  font-size: 12px;
}

.notification-history p {
  margin: 0;
  color: #2b405d;
  font-size: 13px;
  line-height: 1.6;
}

.line-link-box {
  border: 1px solid #ffd26a;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: var(--yellow-2);
}

.line-link-box strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.line-link-box p {
  margin: 0;
  color: #435976;
  font-size: 13px;
}

.sample-report {
  display: grid;
  gap: 16px;
}

.sample-report-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 18px;
  align-items: end;
}

.report-score-box {
  border: 1px solid #ffd26a;
  border-radius: 12px;
  padding: 16px;
  background: var(--yellow-2);
}

.report-score-box strong,
.report-score-box span {
  display: block;
}

.report-score-box strong {
  color: var(--navy);
  font-size: 34px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.report-frame {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.report-actions {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-page {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.admin-panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-panel h1 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.3;
}

.admin-token-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
  gap: 10px;
}

.admin-token-row button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

.admin-send-button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  color: #3d2b00;
  background: var(--yellow);
  font-weight: 800;
}

.admin-send-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--line);
}

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

.admin-card h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.admin-card h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 15px;
}

.admin-card pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
  white-space: pre-wrap;
}

.ok-text,
.risk-text {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.ok-text {
  color: var(--green);
}

.risk-text {
  color: var(--red);
}

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

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

.watchlist-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fbfdff;
}

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

.watchlist-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.review-candidate-list {
  display: grid;
  gap: 10px;
}

.review-candidate {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #fbfdff;
}

.review-candidate-list.is-muted .review-candidate {
  background: #fff;
}

.review-candidate strong {
  color: var(--navy);
  font-size: 14px;
}

.review-candidate ul {
  margin: 0;
  padding-left: 20px;
  color: #2b405d;
  font-size: 13px;
}

.review-candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-candidate-links a {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.timeline-list,
.mail-template {
  display: grid;
  gap: 10px;
}

.timeline-list article,
.mail-template {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}

button:focus,
a:focus,
select:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 194, 26, 0.38);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: auto auto;
  }

  .top-nav {
    display: none;
  }

  .main-grid,
  .bottom-grid,
  .utility-grid,
  .source-section,
  .settings-grid,
  .hero-panel,
  .watch-ux-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-insight-board {
    min-height: 300px;
  }

  .alert-grid {
    grid-template-columns: 1fr;
  }

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

  .result-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .result-side {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 78px;
  }

  .topbar-inner,
  .dashboard,
  .settings-page,
  .site-footer {
    width: min(100% - 24px, 1480px);
  }

  .topbar-inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .top-actions {
    gap: 8px;
  }

  .auth-actions {
    gap: 6px;
  }

  .auth-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-cta span,
  .account-button span,
  .account-button svg:last-child {
    display: none;
  }

  .nav-cta {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero-panel h1 {
    font-size: 30px;
  }

  .hero-insight-board {
    min-height: 0;
    padding: 14px;
  }

  .insight-pill.top,
  .insight-side-card {
    position: static;
    margin-bottom: 10px;
    width: 100%;
    max-width: none;
  }

  .insight-panel {
    margin-top: 0;
  }

  .hero-panel p {
    font-size: 14px;
  }

  .trust-row span {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

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

  .form-line.compact-line {
    margin-top: 10px;
  }

  .segmented.inline,
  .checkbox-pills,
  .summary-strip,
  .evidence-grid,
  .sample-report-header,
  .diagnosis-progress {
    grid-template-columns: 1fr;
  }

  .diagnosis-progress span::after {
    display: none;
  }

  .alert-dashboard-head {
    display: grid;
  }

  .alert-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 14px;
  }

  .alert-icon {
    width: 44px;
    height: 44px;
  }

  .alert-card a {
    grid-column: 1 / -1;
  }

  .watchlist-preview li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .watchlist-preview span {
    grid-column: 2;
    width: fit-content;
  }

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

  .rank-block {
    display: flex;
    justify-content: space-between;
  }

  .result-side {
    grid-column: auto;
  }

  .action-list li {
    grid-template-columns: 30px minmax(0, 1fr) 38px;
  }

  .action-list a,
  .action-list button {
    grid-column: 2 / 4;
  }

  .score-modal {
    padding: 20px;
  }

  .score-guide-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-card,
  .actions-card,
  .results-panel,
  .report-banner,
  .watch-card,
  .alert-dashboard,
  .watchlist-preview,
  .notification-preview,
  .settings-hero,
  .settings-card,
  .source-section,
  .utility-card {
    padding: 14px;
    border-radius: 12px;
  }

  .settings-hero h1 {
    font-size: 28px;
  }

  .settings-checks,
  .settings-actions {
    grid-template-columns: 1fr;
  }

  .watch-form div {
    grid-template-columns: 1fr;
  }

  .admin-token-row {
    grid-template-columns: 1fr;
  }

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

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

  .report-art {
    min-height: 170px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 -8px 24px rgba(8, 40, 95, 0.08);
  }

  .mobile-tabbar a {
    min-height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #51627a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-tabbar a:focus,
  .mobile-tabbar a:hover {
    color: var(--navy);
    background: var(--blue-soft);
  }

  .mobile-tabbar svg {
    width: 20px;
    height: 20px;
  }
}

@media print {
  .topbar,
  .diagnosis-card,
  .actions-card,
  .bottom-grid,
  .alert-dashboard,
  .source-section,
  .site-footer,
  .mobile-tabbar,
  .report-actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .dashboard {
    width: 100%;
    margin: 0;
  }

  .main-grid {
    display: block;
  }

  .results-panel {
    box-shadow: none;
    border: 0;
  }

  .report-frame {
    min-height: 0;
    border: 0;
  }
}
