:root {
  --blue: #1477ff;
  --blue-dark: #0d55d9;
  --ink: #101823;
  --muted: #66748a;
  --line: rgba(255, 255, 255, 0.58);
  --panel: rgba(242, 247, 255, 0.72);
  --white: #ffffff;
  --app-bg: #f7fbff;
  --app-surface: rgba(255, 255, 255, 0.82);
  --app-surface-strong: rgba(255, 255, 255, 0.94);
  --app-border: rgba(196, 213, 235, 0.58);
  --app-border-soft: rgba(214, 226, 242, 0.62);
  --app-muted-surface: rgba(238, 245, 255, 0.72);
  --app-shadow: 0 24px 70px rgba(24, 55, 101, 0.12);
  --app-shadow-soft: 0 14px 40px rgba(24, 55, 101, 0.08);
  --app-radius-lg: 28px;
  --app-radius-md: 22px;
  --app-radius-sm: 16px;
  --shadow: 0 28px 80px rgba(19, 49, 96, 0.18);
  --inner: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.home-page {
  min-height: 100vh;
  background: #dbe7f7 url("./assets/radiohub-building-bg.png") center / cover no-repeat fixed;
}

.home-page::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(228, 238, 250, 0.24) 0%, rgba(228, 238, 250, 0.1) 25%, rgba(8, 31, 66, 0.16) 74%, rgba(4, 24, 56, 0.32) 100%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.06) 0%, rgba(20, 52, 92, 0.1) 52%, rgba(8, 30, 64, 0.28) 100%);
  content: "";
}

.access-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-items: center;
  width: min(1480px, calc(100% - clamp(84px, 11vw, 250px)));
  margin: 0 auto;
  padding: 48px 0;
}

.access-panel {
  position: relative;
  width: min(390px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.access-panel::before {
  position: absolute;
  inset: -50px -42px -42px -58px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 42% 50%, rgba(225, 236, 250, 0.16) 0%, rgba(225, 236, 250, 0.09) 38%, rgba(225, 236, 250, 0.03) 62%, transparent 80%);
  content: "";
}

.product-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-image {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(20, 119, 255, 0.22);
}

.product-logo strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 22px rgba(12, 35, 70, 0.1);
}

.product-logo em {
  display: block;
  margin-top: 5px;
  color: #62718a;
  font-size: 14px;
  font-style: normal;
  font-weight: 620;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34), 0 7px 18px rgba(12, 35, 70, 0.08);
}

.access-copy {
  margin-top: 62px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.access-copy h1 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 28px rgba(12, 35, 70, 0.12);
}

.access-copy p {
  max-width: 440px;
  margin-top: 12px;
  color: rgba(64, 82, 111, 0.76);
  font-size: 17px;
  line-height: 1.46;
  font-weight: 620;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px rgba(12, 35, 70, 0.08);
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 32px;
}

.field {
  position: relative;
  display: block;
}

.field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.field svg {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 21px;
  height: 21px;
  color: #8da0bc;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  outline: none;
  color: var(--ink);
  background: rgba(37, 66, 109, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 16px 34px rgba(23, 48, 86, 0.08);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 650;
}

.field input::placeholder {
  color: rgba(95, 113, 139, 0.58);
}

.field input:focus {
  border-color: rgba(20, 119, 255, 0.7);
  box-shadow: 0 0 0 5px rgba(20, 119, 255, 0.12), var(--inner);
}

.presentation-link a {
  color: var(--blue);
}

.primary-submit,
.secondary-action,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-submit {
  gap: 18px;
  width: 100%;
  min-height: 60px;
  margin-top: 4px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, #2987ff 0%, #0872f4 100%);
  box-shadow: 0 22px 46px rgba(20, 119, 255, 0.34);
  font-size: 16px;
  font-weight: 780;
}

.primary-submit:hover,
.secondary-action:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.primary-submit svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.presentation-link {
  display: block;
  margin-top: 20px;
  color: rgba(64, 82, 111, 0.76);
  font-size: 16px;
  font-weight: 650;
  text-align: center;
  text-shadow: 0 1px 0 rgba(238, 247, 255, 0.42), 0 8px 20px rgba(7, 55, 132, 0.12);
}

.presentation-link a {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 15px;
  font-weight: 820;
  text-shadow: 0 1px 0 rgba(238, 247, 255, 0.52), 0 0 14px rgba(235, 247, 255, 0.26), 0 8px 18px rgba(7, 55, 132, 0.1);
}

.presentation-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgba(20, 119, 255, 0.17), transparent 30%),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 48%, #eaf1fb 100%);
}

.presentation-header {
  position: sticky;
  top: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 18px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  background: rgba(246, 250, 255, 0.78);
  box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(22px);
}

.presentation-header .logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 25px;
}

.presentation-header .logo-image {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.presentation-header .product-logo {
  gap: 13px;
}

.presentation-header .product-logo strong {
  font-size: 22px;
}

.presentation-header .product-logo em {
  margin-top: 3px;
  font-size: 13px;
}

.presentation-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #4e5e76;
  font-size: 15px;
  font-weight: 760;
}

.nav-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  color: var(--white);
  background: var(--blue);
}

.presentation-hero,
.slide-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.presentation-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 98px);
  padding: 70px 0 58px;
}

.presentation-hero h1,
.slide-section h2 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.presentation-hero p,
.section-heading p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.56;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.compact {
  width: auto;
  min-height: 52px;
  margin: 0;
  padding: 0 22px;
}

.secondary-action {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 25px;
  color: #33445a;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--inner), 0 16px 34px rgba(44, 76, 120, 0.1);
  font-weight: 790;
}

.mockup-frame,
.screen-grid article,
.workflow-strip article {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(248, 251, 255, 0.76);
  box-shadow: var(--shadow), var(--inner);
}

.mockup-frame {
  padding: 14px;
  border-radius: 36px;
}

.mockup-frame img,
.screen-grid img {
  display: block;
  width: 100%;
  border-radius: 26px;
}

.slide-section {
  padding: 80px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.52fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.86fr 0.86fr;
  gap: 18px;
}

.screen-grid article,
.workflow-strip article {
  border-radius: 30px;
}

.screen-grid article {
  overflow: hidden;
  padding: 18px;
}

.screen-grid article:first-child h3,
.screen-grid article:first-child p {
  padding: 0 8px;
}

.screen-grid h3,
.workflow-strip strong {
  display: block;
  margin-top: 22px;
  font-size: 23px;
  line-height: 1.12;
}

.screen-grid p,
.workflow-strip p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 620;
}

.ui-card {
  min-height: 360px;
}

.card-dot {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 10px rgba(20, 119, 255, 0.1);
}

.table-preview {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.table-preview div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.table-preview span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
}

.draft-preview {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

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

.workflow-strip article {
  min-height: 230px;
  padding: 24px;
}

.workflow-strip span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.app-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 119, 255, 0.08), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(117, 169, 238, 0.12), transparent 30%),
    linear-gradient(180deg, var(--white) 0%, var(--app-bg) 54%, #eef5ff 100%);
}

.app-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.app-header,
.studies-panel,
.upload-panel,
.queue-panel,
.findings-panel,
.ai-chat-panel,
.draft-panel {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow), var(--inner);
  backdrop-filter: blur(22px);
}

.app-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(280px, 0.7fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: center;
  min-height: 78px;
  padding: 14px 18px;
  border-radius: 34px;
}

.app-topnav,
.app-actions,
.findings-summary,
.draft-tools,
.review-actions,
.list-controls {
  display: flex;
  align-items: center;
}

.app-topnav {
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.68);
}

.app-topnav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #526177;
  font-size: 14px;
  font-weight: 760;
}

.app-topnav a.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--app-shadow-soft), var(--inner);
}

.app-actions {
  justify-content: flex-end;
  gap: 12px;
}

.app-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 430px;
}

.app-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.app-search svg {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #44536a;
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
}

.app-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 50px 0 18px;
  border: 1px solid var(--app-border-soft);
  border-radius: 24px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 680;
}

.app-search input:focus {
  border-color: rgba(20, 119, 255, 0.64);
  box-shadow: 0 0 0 5px rgba(20, 119, 255, 0.1);
}

.logout-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--inner), 0 12px 28px rgba(42, 78, 124, 0.08);
  font-weight: 820;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(20, 119, 255, 0.1);
  content: "";
}

.study-workspace,
.work-surface,
.work-bottom {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.study-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 620;
}

.study-workspace {
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
  align-items: start;
}

.studies-panel,
.upload-panel,
.queue-panel,
.findings-panel,
.ai-chat-panel,
.draft-panel {
  min-width: 0;
  border-radius: var(--app-radius-lg);
}

.studies-panel,
.upload-panel,
.queue-panel,
.findings-panel,
.ai-chat-panel,
.draft-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.panel-heading h2 {
  font-size: 22px;
  line-height: 1.12;
}

.panel-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 620;
}

.studies-panel {
  position: sticky;
  top: 116px;
}

.new-study-button {
  width: 100%;
  margin-top: 22px;
}

.list-controls {
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.68);
}

.list-controls button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #526177;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.list-controls button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--app-shadow-soft), var(--inner);
}

.side-search {
  display: block;
  margin-top: 14px;
}

.side-search span,
.chat-input span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.side-search input,
.chat-input input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--app-border-soft);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 680;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.sort-row button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 840;
}

.modality-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 6px;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.68);
  box-shadow: var(--inner), 0 14px 34px rgba(24, 55, 101, 0.06);
}

.modality-control legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.modality-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #526177;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.modality-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modality-choice span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(20, 119, 255, 0.24);
}

.modality-choice.is-selected,
.modality-choice:has(input:checked) {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--app-shadow-soft), var(--inner);
}

.modality-choice.is-selected span,
.modality-choice:has(input:checked) span {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(20, 119, 255, 0.1);
}

.drop-zone {
  display: grid;
  justify-items: center;
  margin-top: 22px;
  min-height: 300px;
  align-content: center;
  padding: 52px 28px;
  border: 1px dashed rgba(20, 119, 255, 0.4);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 119, 255, 0.1), transparent 46%),
    rgba(246, 250, 255, 0.78);
  text-align: center;
  cursor: pointer;
}

.drop-visual {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 30px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 22px 50px rgba(20, 119, 255, 0.16), var(--inner);
}

.drop-visual span {
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background: rgba(20, 119, 255, 0.08);
}

.drop-visual svg,
.draft-tools svg {
  position: relative;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-zone h3 {
  margin-top: 18px;
  font-size: 24px;
}

.drop-zone p {
  max-width: 520px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 620;
}

.drop-zone .compact {
  margin-top: 22px;
}

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

.study-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 13px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--app-border-soft);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
}

.study-row.is-current {
  border-color: rgba(20, 119, 255, 0.5);
  background: var(--white);
}

.study-type {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: rgba(20, 119, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.study-row strong {
  font-size: 15px;
}

.study-row b {
  grid-column: 2;
  grid-row: 3;
  color: var(--blue);
  font-size: 12px;
  text-align: left;
}

.findings-summary {
  gap: 10px;
  margin-top: 22px;
}

.findings-summary div {
  flex: 1;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(237, 246, 255, 0.78);
}

.findings-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.findings-summary span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.finding-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--inner), 0 14px 32px rgba(24, 55, 101, 0.07);
}

.scan-preview {
  overflow: hidden;
  aspect-ratio: 1.2;
  border-radius: 20px;
  background: #dce8f7;
}

.scan-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 66%;
  transform: scale(2.55);
  filter: saturate(0.78) contrast(1.04);
}

.finding-tier {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(20, 119, 255, 0.1);
  font-size: 12px;
  font-weight: 840;
}

.finding-card h3 {
  margin-top: 10px;
  font-size: 20px;
}

.finding-card p,
.folded-list p,
.draft-box p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 620;
}

.finding-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.finding-meta div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(237, 246, 255, 0.76);
}

.finding-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.finding-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.review-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.review-actions button,
.draft-tools button {
  min-height: 40px;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  color: #40516a;
  background: rgba(246, 250, 255, 0.82);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.review-actions button {
  padding: 0 12px;
}

.folded-list {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--app-border-soft);
  border-radius: 20px;
  background: rgba(246, 250, 255, 0.72);
}

.folded-list summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 820;
}

.mini-finding-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-finding-list button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--app-border-soft);
  border-radius: 16px;
  color: #40516a;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 740;
}

.mini-finding-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
}

.work-bottom {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
}

.chat-thread {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.chat-message {
  max-width: 88%;
  padding: 14px;
  border-radius: 18px;
  color: #40516a;
  background: rgba(237, 246, 255, 0.76);
  line-height: 1.45;
  font-size: 14px;
  font-weight: 640;
}

.chat-message.user {
  justify-self: end;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--inner), 0 12px 26px rgba(24, 55, 101, 0.07);
}

.chat-input {
  display: block;
  margin-top: 16px;
}

.draft-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--inner), 0 14px 32px rgba(24, 55, 101, 0.07);
}

.draft-box p:first-child {
  margin-top: 0;
  color: var(--ink);
}

.draft-tools {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.draft-tools button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
}

.draft-tools svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

@media (max-width: 1200px) and (min-width: 981px) {
  .access-screen {
    width: min(100% - clamp(152px, 16vw, 208px), 1180px);
  }
}

@media (max-width: 980px) {
  .access-screen {
    width: min(100% - clamp(44px, 8vw, 76px), 1180px);
    align-items: start;
    justify-items: center;
  }

  .access-panel {
    margin-top: 24px;
  }

  .presentation-header nav a:not(.nav-button) {
    display: none;
  }

  .presentation-hero,
  .section-heading,
  .screen-grid {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    width: min(100% - 32px, 1480px);
    padding-top: 16px;
  }

  .app-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 28px;
  }

  .app-topnav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .app-topnav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-actions {
    justify-content: stretch;
  }

  .app-search {
    max-width: none;
  }

  .study-workspace,
  .work-bottom {
    grid-template-columns: 1fr;
  }

  .studies-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .access-screen,
  .presentation-header,
  .presentation-hero,
  .slide-section {
    width: min(100% - 32px, 1180px);
  }

  .access-screen {
    padding: 18px 0;
    justify-items: center;
  }

  .access-panel {
    width: min(100%, 338px);
    padding: 20px 8px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .access-panel::before {
    inset: -30px -14px -28px -14px;
    background:
      radial-gradient(ellipse at 42% 48%, rgba(210, 226, 246, 0.12) 0%, rgba(210, 226, 246, 0.07) 38%, rgba(210, 226, 246, 0.02) 62%, transparent 82%);
  }

  .logo-image {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .product-logo strong {
    font-size: 23px;
  }

  .product-logo em {
    font-size: 14px;
  }

  .access-copy {
    margin-top: 48px;
  }

  .access-copy h1 {
    font-size: 33px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 9px 24px rgba(12, 35, 70, 0.16);
  }

  .access-copy p,
  .presentation-hero p,
  .section-heading p {
    font-size: 17px;
  }

  .product-logo strong,
  .product-logo em,
  .access-copy p {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 20px rgba(12, 35, 70, 0.12);
  }

  .field input {
    height: 56px;
    border-radius: 19px;
    font-size: 16px;
    background: rgba(225, 236, 250, 0.36);
    backdrop-filter: blur(5px);
  }

  .field input::placeholder {
    color: rgba(83, 101, 129, 0.52);
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-submit {
    min-height: 58px;
  }

  .presentation-header {
    min-height: 68px;
    padding: 0 12px;
  }

  .presentation-header .product-logo em {
    display: none;
  }

  .presentation-hero {
    min-height: auto;
    padding: 46px 0 30px;
  }

  .presentation-hero h1,
  .slide-section h2 {
    font-size: 40px;
  }

  .hero-actions,
  .compact,
  .secondary-action {
    width: 100%;
  }

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

  .app-shell {
    width: min(100% - 24px, 1480px);
    padding: 12px 0 28px;
  }

  .app-header,
  .studies-panel,
  .upload-panel,
  .queue-panel,
  .findings-panel,
  .ai-chat-panel,
  .draft-panel {
    border-radius: 24px;
  }

  .app-header {
    padding: 14px;
  }

  .app-topnav {
    gap: 3px;
    padding: 5px;
  }

  .app-topnav a {
    flex: 1;
    min-width: 0;
    padding: 0 7px;
    font-size: 12px;
    text-align: center;
  }

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

  .app-search {
    flex: none;
    width: 100%;
  }

  .logout-link {
    justify-content: center;
  }

  .modality-control {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .modality-choice {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .upload-panel,
  .studies-panel,
  .queue-panel,
  .findings-panel,
  .ai-chat-panel,
  .draft-panel {
    padding: 18px;
  }

  .drop-zone {
    min-height: 280px;
    padding: 34px 18px;
  }

  .drop-zone h3 {
    font-size: 22px;
  }

  .findings-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .findings-summary div {
    padding: 13px 10px;
  }

  .findings-summary strong {
    font-size: 24px;
  }

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

  .finding-meta {
    grid-template-columns: 1fr;
  }

  .scan-preview {
    max-height: 180px;
  }

}
