@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
}

:root {
  --green-900: #073f3c;
  --green-850: #0a4844;
  --green-800: #10514d;
  --gold-500: #c99549;
  --gold-400: #d5a45a;
  --gold-300: #e1b76f;
  --gold-text: #76531d;
  --background: #f7f4ee;
  --surface: #fcfaf7;
  --surface-muted: #f1eee8;
  --text-primary: #113f3c;
  --deep-green: var(--text-primary);
  --text-secondary: #586b68;
  --text-disabled: #8b918f;
  --border-premium: rgba(19, 67, 63, 0.08);
  --radius-small: 14px;
  --radius-card: 22px;
  --radius-hero: 26px;
  --radius-pill: 999px;
  --card-shadow:
    0 12px 32px rgba(31, 43, 40, 0.07),
    0 2px 6px rgba(31, 43, 40, 0.03);
  --control-shadow: 0 8px 22px rgba(20, 50, 47, 0.12);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 55% 70px, rgba(255, 255, 255, 0.62), transparent 300px),
    var(--background);
  font-size: 14px;
  line-height: 1.4;
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

button {
  min-height: 44px;
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 50px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 67, 63, 0.13);
  border-radius: var(--radius-small);
  font-size: 16px;
}

textarea {
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 149, 73, 0.18);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

h4 {
  font-size: 17px;
  line-height: 1.3;
}

p {
  max-width: 100%;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.primary {
  color: white;
  background: linear-gradient(145deg, var(--green-900), var(--green-800));
  box-shadow: var(--control-shadow);
}

.primary:hover {
  background: linear-gradient(145deg, var(--green-850), var(--green-800));
}

.quiet,
a.quiet {
  color: var(--green-900);
  background: #eee9df;
}

.danger {
  color: white;
  background: #9a433d;
}

.connection-banner,
.warning-strip {
  width: 100%;
  max-width: 100%;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  font-size: 12px;
  line-height: 1.4;
}

/* Sign-in */

.centered-shell {
  min-height: 100dvh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.login-card {
  width: min(100%, 420px);
  padding: 28px 24px;
  background: rgba(252, 250, 247, 0.94);
  border: 1px solid var(--border-premium);
  border-radius: var(--radius-hero);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card .brand-mark {
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  color: var(--gold-400);
  background: var(--green-900);
  border: 1px solid rgba(225, 183, 111, 0.45);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
}

.login-card h1 {
  margin-bottom: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 0.95;
}

.login-card .stack {
  gap: 14px;
}

/* Header */

.app-header {
  position: relative;
  width: 100%;
  max-width: 1180px;
  min-height: 128px;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    12px
    max(16px, env(safe-area-inset-left));
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dog-mark {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  background: rgba(252, 250, 247, 0.46);
  border: 1px solid rgba(201, 149, 73, 0.72);
  border-radius: 50%;
}

.dog-mark img {
  position: absolute;
  width: 112px;
  max-width: none;
  height: auto;
  left: -18px;
  top: -13px;
  opacity: 0.92;
}

.app-identity h1 {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.app-identity p {
  margin-top: 7px;
  color: #a87a3b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.header-actions {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.profile-control {
  position: relative;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.profile-menu-button {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 3px;
  color: var(--green-900);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: none;
}

.profile-menu-button:hover,
.profile-menu-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(9, 78, 72, 0.12);
  box-shadow: 0 8px 22px rgba(20, 57, 52, 0.08);
}

.profile-menu-button[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.user-name {
  max-width: 88px;
  overflow: hidden;
  color: var(--green-900);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  color: white;
  background: var(--green-900);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(7, 63, 60, 0.16);
}

.user-avatar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--green-900);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: min(220px, calc(100vw - 32px));
  padding: 10px;
  background: rgba(252, 250, 247, 0.98);
  border: 1px solid rgba(9, 78, 72, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(20, 57, 52, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.profile-menu-label {
  margin: 0;
  padding: 5px 8px 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-menu-action {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  padding: 10px 12px;
  color: #7b2f2a;
  background: rgba(170, 70, 61, 0.08);
  border: 1px solid rgba(170, 70, 61, 0.12);
  border-radius: 13px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

/* Liquid-glass primary navigation */

.tab-bar {
  position: sticky;
  top: max(6px, env(safe-area-inset-top));
  z-index: 30;
  width: calc(100% - 32px);
  max-width: 920px;
  height: 98px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin: 0 auto 16px;
  padding: 5px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.73), rgba(249, 246, 240, 0.62)),
    rgba(252, 250, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow:
    0 10px 28px rgba(32, 48, 45, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.tab {
  position: relative;
  width: 100%;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 1px 6px;
  overflow: hidden;
  color: #6d807d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 19px;
  font-size: clamp(8px, 2.45vw, 11px);
  font-weight: 600;
  line-height: 1.06;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tab::before {
  content: "";
  position: absolute;
  inset: 1px 8% auto;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent);
  border-radius: inherit;
  opacity: 0;
}

.tab svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.tab span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
}

.tab.active {
  color: white;
  background:
    radial-gradient(circle at 35% 5%, rgba(104, 174, 159, 0.34), transparent 55%),
    linear-gradient(145deg, rgba(7, 63, 60, 0.98), rgba(16, 81, 77, 0.93));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 19px rgba(7, 63, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    inset 0 -10px 20px rgba(0, 26, 24, 0.14);
}

.tab.active::before {
  opacity: 1;
}

.tab:active {
  transform: scale(0.97);
}

.tab:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

/* Main layout and shared cards */

.content-shell {
  width: 100%;
  max-width: 1180px;
  min-height: 68vh;
  margin: 0 auto;
  padding:
    0
    max(16px, env(safe-area-inset-right))
    24px
    max(16px, env(safe-area-inset-left));
}

.panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

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

.section-heading,
.card-title-row {
  width: 100%;
  align-items: flex-start;
  gap: 12px;
}

.section-heading {
  margin: 6px 0 16px;
}

.section-heading > *,
.card-title-row > *,
.stack > *,
.two-column > *,
.capture-grid > *,
.search-row > *,
.vault-grid > *,
.vault-unlock > * {
  min-width: 0;
}

.card,
.transcript-card,
.master-import-card,
.living-section,
.item,
.vault-item {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-premium);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.card {
  padding: 20px;
}

.stack {
  gap: 14px;
}

.badge {
  max-width: min(100%, 190px);
  padding: 7px 10px;
  overflow: hidden;
  color: var(--green-900);
  background: #e4ece7;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.attribution-note {
  max-width: 100%;
  border-radius: var(--radius-small);
  white-space: normal;
}

#vault-state {
  overflow: visible;
  line-height: 1.25;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

/* Home: compact SAM-first shell */

#panel-home {
  max-width: 760px;
}

.home-panel {
  display: grid;
  gap: 18px;
}

.home-hero {
  width: 100%;
  padding: clamp(22px, 5vw, 34px);
  background:
    radial-gradient(circle at 92% 8%, rgba(225, 183, 111, 0.2), transparent 180px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.91), rgba(247, 243, 235, 0.88));
  border: 1px solid rgba(9, 78, 72, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(20, 57, 52, 0.09);
}

.home-sam-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-sam-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  background: var(--green-900);
  border: 1px solid rgba(225, 183, 111, 0.5);
  border-radius: 50%;
}

.home-sam-mark img {
  position: absolute;
  top: -11px;
  left: -15px;
  width: 88px;
  max-width: none;
  opacity: 0.92;
}

.home-sam-identity > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.home-sam-identity strong {
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-sam-identity small {
  color: var(--text-secondary);
  font-size: 12px;
}

.home-welcome {
  margin: 22px 0 20px;
}

.home-welcome h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-welcome p {
  max-width: 520px;
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.home-actions {
  display: grid;
  gap: 10px;
}

.home-talk-action {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  color: white;
  background:
    radial-gradient(circle at 15% 0%, rgba(104, 174, 159, 0.35), transparent 48%),
    linear-gradient(145deg, var(--green-900), #115952);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 13px 28px rgba(7, 63, 60, 0.22);
  text-align: left;
}

.home-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.home-action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-action-copy strong {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.15;
}

.home-action-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.home-action-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.home-chat-action {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 78, 72, 0.15);
  border-radius: 16px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.home-chat-action svg,
.home-shortcut svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.home-shortcuts {
  width: 100%;
}

.home-shortcuts-heading {
  margin: 0 0 10px;
}

.home-shortcuts-heading .eyebrow {
  margin: 0 0 2px;
}

.home-shortcuts-heading h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 17px;
  font-weight: 700;
}

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

.home-shortcut {
  min-width: 0;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 7px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(9, 78, 72, 0.11);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(20, 57, 52, 0.05);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

/* Selected Voice direction: Living Glass Orb */

#panel-voice {
  position: relative;
  isolation: isolate;
  max-width: 760px;
}

.voice-stage {
  --voice-stage-accent: var(--gold-300);
  --voice-orb-blue: #1014d9;
  --voice-orb-violet: #7449ff;
  --voice-orb-cyan: #78e9ff;
  --voice-orb-lime: #e6f17c;
  --voice-orb-amber: #ffc25e;
  --voice-orb-orange: #e56c27;
  --voice-orb-ice: #e8fbff;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 24px 28px 30px;
  color: #fffdf8;
  background:
    radial-gradient(circle at 50% 46%, rgba(12, 16, 93, 0.46), transparent 39%),
    radial-gradient(circle at 14% 6%, rgba(59, 97, 186, 0.09), transparent 34%),
    linear-gradient(160deg, #010108 0%, #03041a 56%, #010108 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow:
    0 20px 46px rgba(12, 51, 47, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.voice-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), transparent 28%);
}

.voice-stage-kicker {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.voice-stage-kicker svg,
.voice-aec-note svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.voice-orb-shell {
  position: relative;
  width: clamp(250px, 48vw, 330px);
  max-width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin: 0 auto 1px;
  isolation: isolate;
  contain: layout paint;
  transition: filter 260ms ease;
}

.voice-orb-shell::before {
  position: absolute;
  inset: 21%;
  z-index: -1;
  content: "";
  background: rgba(16, 20, 217, 0.24);
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
}

.voice-orb-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.voice-orb-stop-blue { stop-color: var(--voice-orb-blue); }
.voice-orb-stop-violet { stop-color: var(--voice-orb-violet); }
.voice-orb-stop-cyan { stop-color: var(--voice-orb-cyan); }
.voice-orb-stop-lime { stop-color: var(--voice-orb-lime); }
.voice-orb-stop-amber { stop-color: var(--voice-orb-amber); }
.voice-orb-stop-orange { stop-color: var(--voice-orb-orange); }
.voice-orb-stop-ice { stop-color: var(--voice-orb-ice); }

.voice-orb-halo {
  fill: url(#voice-orb-halo-gradient);
  filter: url(#voice-orb-halo-blur);
}

.voice-orb-body {
  fill: url(#voice-orb-shell-gradient);
  stroke: rgba(232, 251, 255, 0.42);
  stroke-width: 1.1;
}

.voice-orb-internal-blue,
.voice-orb-internal-violet,
.voice-orb-internal-warm,
.voice-orb-living-core,
.voice-orb-flow-ribbon,
.voice-orb-flow-thread,
.voice-orb-facet-sheen {
  mix-blend-mode: screen;
  pointer-events: none;
}

.voice-orb-internal-blue { fill: url(#voice-orb-blue-gradient); }
.voice-orb-internal-violet { fill: url(#voice-orb-violet-gradient); }
.voice-orb-internal-warm { fill: url(#voice-orb-warm-gradient); }

.voice-orb-living-core {
  fill: url(#voice-orb-core-gradient);
  filter: url(#voice-orb-flow-glow);
}

.voice-orb-flow-ribbon,
.voice-orb-flow-thread,
.voice-orb-rim-base,
.voice-orb-rim-prism,
.voice-orb-specular {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-orb-flow-ribbon { filter: url(#voice-orb-flow-glow); }
.voice-orb-flow-thread { filter: url(#voice-orb-fine-glow); }
.voice-orb-flow-cool { stroke: url(#voice-orb-flow-cool-gradient); }
.voice-orb-flow-violet { stroke: url(#voice-orb-flow-violet-gradient); }
.voice-orb-flow-warm { stroke: url(#voice-orb-flow-warm-gradient); }

.voice-orb-glass-shadow {
  fill: url(#voice-orb-shadow-gradient);
  opacity: 0.84;
}

.voice-orb-facet-dark { fill: rgba(1, 1, 15, 0.33); }

.voice-orb-facet-sheen {
  fill: url(#voice-orb-facet-gradient);
}

.voice-orb-rim-base {
  stroke: rgba(232, 251, 255, 0.9);
  stroke-width: 2.7;
  filter: url(#voice-orb-fine-glow);
}

.voice-orb-rim-inner {
  stroke: rgba(199, 219, 222, 0.48);
  stroke-width: 8;
  opacity: 0.66;
}

.voice-orb-rim-prism {
  stroke-width: 14;
  opacity: 0.92;
  filter: url(#voice-orb-prism-glow);
  mix-blend-mode: screen;
}

.voice-orb-rim-violet { stroke: var(--voice-orb-violet); }
.voice-orb-rim-blue { stroke: var(--voice-orb-blue); }
.voice-orb-rim-cyan { stroke: var(--voice-orb-cyan); }
.voice-orb-rim-lime { stroke: var(--voice-orb-lime); }
.voice-orb-rim-amber { stroke: var(--voice-orb-amber); }
.voice-orb-rim-orange { stroke: var(--voice-orb-orange); }

.voice-orb-specular {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 5.8;
  filter: url(#voice-orb-fine-glow);
}

.voice-orb-specular-secondary {
  stroke: rgba(199, 219, 222, 0.58);
  stroke-width: 2;
}

.voice-orb-shell[data-orb-state="muted"] {
  filter: saturate(0.28) brightness(0.72);
}

.voice-orb-shell[data-orb-state="error"] {
  filter: saturate(0.62) brightness(0.84);
}

.voice-stage-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.voice-stage h2 {
  margin: 0;
  color: #fffdf8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 8vw, 52px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.voice-primary-status {
  margin: 6px 0 0;
  color: var(--voice-stage-accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(29px, 7vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.voice-session-detail {
  max-width: 500px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: balance;
}

.voice-aec-note {
  width: min(100%, 500px);
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 22px auto 0;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.voice-aec-note svg {
  width: 30px;
  height: 30px;
  padding: 5px;
  color: var(--voice-stage-accent);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.voice-aec-note p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.voice-stage[data-voice-state="listening"] {
  --voice-stage-accent: #e1b76f;
  --voice-orb-blue: #111ce8;
  --voice-orb-violet: #6c47ff;
  --voice-orb-cyan: #87f3ff;
  --voice-orb-lime: #dff48a;
  --voice-orb-amber: #f8bd5c;
  --voice-orb-orange: #d8662a;
  --voice-orb-ice: #effdff;
}

.voice-stage[data-voice-state="parent_speaking"] {
  --voice-stage-accent: #9ed4c1;
  --voice-orb-blue: #1221ef;
  --voice-orb-violet: #6f4cff;
  --voice-orb-cyan: #94f6ff;
  --voice-orb-lime: #e8f58b;
  --voice-orb-amber: #f8c164;
  --voice-orb-orange: #df6d2c;
  --voice-orb-ice: #f4feff;
}

.voice-stage[data-voice-state="thinking"],
.voice-stage[data-voice-state="saving"] {
  --voice-orb-blue: #1412c8;
  --voice-orb-violet: #8757ff;
  --voice-orb-cyan: #66dff4;
  --voice-orb-lime: #cadb7e;
  --voice-orb-amber: #dba85d;
  --voice-orb-orange: #b45c35;
  --voice-orb-ice: #e2f4ff;
}

.voice-stage[data-voice-state="sam_speaking"] {
  --voice-stage-accent: #f0c77f;
  --voice-orb-blue: #1420e8;
  --voice-orb-violet: #7452ff;
  --voice-orb-cyan: #7eeaff;
  --voice-orb-lime: #f0f58e;
  --voice-orb-amber: #ffd06e;
  --voice-orb-orange: #f1782c;
  --voice-orb-ice: #ffffff;
}

.voice-stage[data-voice-state="muted"] {
  --voice-stage-accent: #efb29f;
  --voice-orb-blue: #27325e;
  --voice-orb-violet: #4b4e76;
  --voice-orb-cyan: #8aa8af;
  --voice-orb-lime: #aab1a0;
  --voice-orb-amber: #9e9279;
  --voice-orb-orange: #76645b;
  --voice-orb-ice: #c5d0d2;
}

.voice-stage[data-voice-state="reconnecting"] {
  --voice-stage-accent: #f1cf95;
}

.voice-stage[data-voice-state="error"] {
  --voice-stage-accent: #ffd0c6;
  --voice-orb-blue: #292454;
  --voice-orb-violet: #78546f;
  --voice-orb-cyan: #a6bec3;
  --voice-orb-lime: #b7b590;
  --voice-orb-amber: #d29a73;
  --voice-orb-orange: #a8584c;
  --voice-orb-ice: #d8e1e1;
  background:
    radial-gradient(circle at 50% 46%, rgba(120, 84, 111, 0.2), transparent 38%),
    linear-gradient(155deg, #090816, #1d111b);
}

.voice-stage[data-voice-state="saved"] {
  --voice-stage-accent: #b9ddc8;
  background:
    radial-gradient(circle at 50% 46%, rgba(185, 221, 200, 0.2), transparent 38%),
    linear-gradient(155deg, #0a5149, #176154);
}

.voice-stage[data-voice-state="requesting_permission"] .voice-orb-shell,
.voice-stage[data-voice-state="connecting"] .voice-orb-shell,
.voice-stage[data-voice-state="greeting"] .voice-orb-shell,
.voice-stage[data-voice-state="reconnecting"] .voice-orb-shell {
  opacity: 0.82;
}

.voice-stage[data-voice-state="error"] .voice-orb-body {
  stroke-width: 2.4;
}

.voice-stage[data-voice-state="saved"] .voice-orb-shell::before {
  background: rgba(185, 221, 200, 0.16);
}

/* Cream transcript sheet */

.transcript-card {
  position: relative;
  z-index: 4;
  min-height: 300px;
  margin-top: -16px;
  padding: 30px 28px 24px;
  background: #fbf8f2;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 32px 32px 24px 24px;
  box-shadow:
    0 -8px 28px rgba(31, 43, 40, 0.06),
    0 18px 36px rgba(31, 43, 40, 0.07);
}

.transcript-card .card-title-row {
  align-items: center;
}

.transcript-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.voice-save-state {
  max-width: 52%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  color: var(--green-900);
  background: #eeebe4;
  border: 1px solid rgba(19, 67, 63, 0.05);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: normal;
}

.voice-save-state::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #ae5c52;
  border-radius: 50%;
}

.voice-save-state[data-save-status="saving"]::after {
  background: var(--gold-500);
}

.voice-save-state[data-save-status="saved"]::after {
  background: #2f7b61;
}

.voice-save-state[data-save-status="error"] {
  color: #7c322d;
  background: #fae7df;
}

.transcript {
  width: 100%;
  min-height: 190px;
  max-height: min(480px, 56dvh);
  margin-top: 22px;
  padding: 0 0 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  scrollbar-gutter: stable;
}

.transcript .empty-state {
  margin: 20px 0 0;
  padding: 18px;
  color: var(--text-secondary);
  background: rgba(225, 231, 225, 0.55);
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.transcript-line,
.chat-bubble {
  max-width: 92%;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.transcript-line.user {
  margin-left: 0;
  background: #e5eeea;
}

.transcript-line.assistant {
  margin-left: 20px;
  background: #efece4;
}

.transcript-line.partial {
  border: 1px dashed rgba(19, 67, 63, 0.18);
  font-style: italic;
  opacity: 0.7;
}

.speaker {
  display: block;
  margin-bottom: 5px;
  color: #677c77;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.voice-return-live,
.voice-recovery-actions button {
  min-width: 44px;
  min-height: 44px;
}

.voice-return-live {
  width: 100%;
  margin-top: 8px;
  color: var(--green-900);
  background: #e5eeea;
}

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

.voice-recovery-actions:not(:has(> button:not([hidden]))) {
  display: none;
}

/* Anchored glass session dock */

.voice-control-dock {
  position: sticky;
  z-index: 40;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px;
  margin-top: 16px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 245, 239, 0.7)),
    rgba(252, 250, 247, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow:
    0 14px 38px rgba(31, 43, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.voice-primary-controls.voice-state-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.voice-state-card,
.voice-button,
.mic-button {
  position: relative;
  width: 100%;
  min-width: 44px;
  min-height: 82px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: none;
}

.voice-state-card-primary,
.voice-button {
  color: white;
  background: linear-gradient(145deg, var(--green-900), var(--green-800));
}

.voice-state-card-muted,
.mic-button {
  color: var(--green-900);
  background: rgba(246, 244, 238, 0.9);
  border-color: rgba(19, 67, 63, 0.08);
}

.voice-control-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  color: var(--gold-300);
  background: rgba(5, 52, 49, 0.82);
  border: 1px solid rgba(225, 183, 111, 0.52);
  border-radius: 50%;
}

.voice-state-card-muted .voice-control-orb {
  color: var(--green-800);
  background: rgba(19, 67, 63, 0.08);
  border-color: transparent;
}

.voice-control-orb svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.voice-icon,
.mic-icon {
  display: none;
}

.voice-control-label {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.voice-state-title,
.voice-state-hint {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.voice-state-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.voice-state-hint {
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.76;
}

.voice-button.active-session {
  display: none;
}

#panel-voice:has(.voice-stage[data-voice-state="greeting"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="listening"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="thinking"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="muted"]) .voice-button,
#panel-voice:has(.voice-stage[data-voice-state="reconnecting"]) .voice-button {
  display: none;
}

.mic-button.is-muted {
  color: #7c322d;
  background: #fae7df;
  border-color: rgba(154, 67, 61, 0.14);
}

.mic-button.is-muted .voice-control-orb {
  color: white;
  background: #9a433d;
}

.voice-session-actions {
  display: grid;
}

.voice-session-actions:not(:has(> button:not([hidden]))) {
  display: none;
}

.voice-session-actions button {
  min-width: 44px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.25;
  word-break: normal;
  box-shadow: 0 9px 22px rgba(122, 48, 42, 0.2);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .mic-button,
#panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]) .mic-button,
#panel-voice:has(.voice-stage[data-voice-state="connecting"]) .mic-button,
#panel-voice:has(.voice-stage[data-voice-state="ending"]) .mic-button,
#panel-voice:has(.voice-stage[data-voice-state="saving"]) .mic-button,
#panel-voice:has(.voice-stage[data-voice-state="saved"]) .mic-button {
  display: none;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-control-dock,
#panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]) .voice-control-dock,
#panel-voice:has(.voice-stage[data-voice-state="connecting"]) .voice-control-dock,
#panel-voice:has(.voice-stage[data-voice-state="ending"]) .voice-control-dock,
#panel-voice:has(.voice-stage[data-voice-state="saving"]) .voice-control-dock,
#panel-voice:has(.voice-stage[data-voice-state="saved"]) .voice-control-dock {
  grid-template-columns: minmax(0, 1fr);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-primary-controls,
#panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]) .voice-primary-controls,
#panel-voice:has(.voice-stage[data-voice-state="connecting"]) .voice-primary-controls,
#panel-voice:has(.voice-stage[data-voice-state="ending"]) .voice-primary-controls,
#panel-voice:has(.voice-stage[data-voice-state="saving"]) .voice-primary-controls,
#panel-voice:has(.voice-stage[data-voice-state="saved"]) .voice-primary-controls {
  grid-template-columns: minmax(0, 1fr);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-stage {
  --voice-stage-accent: #a87a3b;
  min-height: max(560px, calc(100dvh - 274px));
  padding-bottom: 132px;
  color: var(--green-900);
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 110, 236, 0.07), transparent 32%),
    linear-gradient(180deg, #faf8f3 0%, #f5f3ed 100%);
  border-color: rgba(19, 67, 63, 0.1);
  box-shadow:
    0 20px 46px rgba(12, 51, 47, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-stage::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.44), transparent 28%);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-stage-kicker {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(19, 67, 63, 0.1);
  box-shadow: 0 8px 20px rgba(20, 57, 52, 0.05);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-stage h2 {
  color: var(--green-900);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-session-detail {
  color: #5f706c;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-orb {
  width: min(250px, 48vw);
  margin: clamp(16px, 3dvh, 28px) auto 4px;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) {
  display: grid;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) > .voice-stage,
#panel-voice:has(.voice-stage[data-voice-state="ready"]) > .voice-control-dock {
  grid-area: 1 / 1;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) > .transcript-card {
  display: none;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) > .voice-control-dock {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 5;
  width: min(calc(100% - 36px), 500px);
  align-self: end;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-primary-controls {
  grid-template-columns: minmax(0, 1fr);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start {
  min-height: 88px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 42%, transparent 64%),
    radial-gradient(circle at 18% -28%, rgba(151, 222, 204, 0.34), transparent 52%),
    linear-gradient(145deg, rgba(7, 63, 60, 0.94), rgba(15, 88, 80, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  box-shadow:
    0 16px 34px rgba(9, 55, 51, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(0, 32, 29, 0.16);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start::after {
  width: 52px;
  height: 1px;
  content: "";
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start .voice-control-orb {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  color: #f1c97d;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 52%),
    rgba(3, 47, 44, 0.54);
  border-color: rgba(241, 201, 125, 0.58);
  box-shadow:
    0 8px 18px rgba(0, 28, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start .voice-control-label {
  justify-items: center;
  gap: 3px;
  text-align: center;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start .voice-state-title {
  font-size: clamp(16px, 4.4vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

#panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-start .voice-state-hint {
  font-size: clamp(11px, 3vw, 12px);
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.84;
}

/* Remaining pages: mobile-fit system */

#panel-home,
#panel-chat,
#panel-upload,
#panel-records,
#panel-vault,
#panel-outputs {
  width: 100%;
  max-width: 920px;
}

.chat-messages {
  width: 100%;
  min-height: 44dvh;
  max-height: 62dvh;
  overflow-x: hidden;
}

.composer {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(247, 244, 238, 0.2), var(--background) 28%);
}

.composer textarea {
  width: 100%;
}

.capture-grid,
.two-column,
.vault-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capture-button {
  width: 100%;
  min-height: 76px;
  border-radius: 18px;
  font-size: 13px;
}

.selected-files,
.form-message,
.privacy-note,
.master-safety-note,
.master-review-note,
.master-segment-meta,
.master-event p,
.item p,
.vault-item p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.master-import-card {
  padding: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(225, 183, 111, 0.18), transparent 180px),
    var(--surface);
}

.master-import-summary,
.master-segment,
.master-event {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
}

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

.master-action-row {
  width: 100%;
}

.master-action-row button {
  min-width: 0;
}

.master-json-editor {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  font-size: 13px;
}

.search-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
}

.item-list,
.living-grid,
.vault-content {
  width: 100%;
  max-width: 100%;
}

.item,
.living-section,
.vault-item {
  padding: 16px;
  overflow: hidden;
}

.item h4,
.item p,
.item a,
.living-section h4,
.vault-item strong,
.vault-item p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.living-section pre,
.vault-item pre,
.review-text {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-actions {
  width: 100%;
}

.item-actions > * {
  max-width: 100%;
}

#panel-outputs .card,
#generate-form,
#output-list,
#output-list .item {
  width: 100%;
  max-width: 100%;
}

#panel-outputs .item a {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.vault-unlock {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.app-footer {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 18px 0 max(20px, env(safe-area-inset-bottom));
  color: var(--text-secondary);
  border-top: 1px solid var(--border-premium);
  font-size: 11px;
  line-height: 1.5;
}

.upload-confirmation-dialog {
  width: min(calc(100% - 32px), 510px);
  max-width: calc(100% - 32px);
  border-radius: var(--radius-hero);
}

.upload-confirmation-dialog h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
}

/* Premium, source-grounded living record */
#panel-records {
  max-width: 1120px;
}

.records-heading {
  margin-bottom: 18px;
}

.records-heading h2 {
  max-width: 720px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.records-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.records-search {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 16px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(9, 78, 72, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 45px rgba(18, 63, 57, 0.06);
}

.records-search input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.records-search .primary {
  min-width: 112px;
  border-radius: 16px;
}

.record-search-results {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.record-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 2px 0;
}

.record-result-heading h3,
.record-result-heading p {
  margin: 0;
}

.record-result-heading p {
  color: var(--text-secondary);
  font-size: 13px;
}

.record-view-shell {
  position: sticky;
  z-index: 8;
  top: 6px;
  margin: 12px 0 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(250, 248, 243, 0.82);
  box-shadow: 0 18px 50px rgba(22, 62, 56, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.record-section-bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 6px;
  padding: 8px 10px;
  color: white;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a5b54 0%, #004d48 100%);
  box-shadow: 0 12px 26px rgba(7, 68, 62, 0.16);
}

.record-section-bar h3 {
  margin: 0;
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.record-section-bar-action {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.record-section-bar-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.record-view-tabs {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.record-view-tabs::-webkit-scrollbar {
  display: none;
}

.record-view-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text-secondary);
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.record-view-tab:hover {
  color: var(--deep-green);
  background: rgba(5, 93, 83, 0.07);
}

.record-view-tab.is-active {
  color: white;
  background:
    radial-gradient(circle at 50% -30%, rgba(190, 233, 217, 0.52), transparent 66%),
    linear-gradient(145deg, #1d6c63, #064f49);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 24px rgba(5, 78, 72, 0.22);
}

.record-view-description {
  margin: 8px 10px 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.record-dashboard {
  display: grid;
  gap: 26px;
  width: 100%;
}

.record-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  padding: 30px;
  color: white;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 98% 0%, rgba(216, 185, 121, 0.26), transparent 250px),
    linear-gradient(135deg, #064f49, #123f3d);
  box-shadow: 0 24px 58px rgba(11, 70, 64, 0.2);
}

.record-overview-copy .eyebrow {
  color: #e9bd75;
}

.record-overview-copy h3 {
  margin: 8px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.record-overview-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

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

.record-metric {
  display: grid;
  align-content: center;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.record-metric strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.record-metric span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

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

.physician-directory-section {
  gap: 22px;
}

.care-team-profile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 75, 68, 0.13);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 62px rgba(18, 69, 63, 0.12);
}

.care-team-profile-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-width: 0;
  color: white;
  background:
    radial-gradient(circle at 92% -20%, rgba(224, 190, 126, 0.3), transparent 48%),
    linear-gradient(135deg, #07554f, #123f3d);
}

.care-team-portrait {
  display: grid;
  place-items: center;
  min-height: 248px;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #e5e8e3;
}

.care-team-portrait img {
  width: 100%;
  height: 100%;
  min-height: 248px;
  object-fit: cover;
  object-position: center 30%;
}

.care-team-portrait.portrait-unavailable span {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--deep-green);
  font-size: 64px;
  font-weight: 600;
}

.care-team-identity {
  align-self: center;
  min-width: 0;
  padding: 32px 34px;
}

.care-team-identity .eyebrow {
  margin: 0 0 8px;
  color: #efc57f;
}

.care-team-identity h4 {
  max-width: 820px;
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.care-team-specialty {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.care-team-affiliation {
  max-width: 680px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.care-team-badges {
  margin-top: 17px;
}

.record-status-family-confirmed,
.record-status-verified-public {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.care-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.care-team-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.care-team-action:hover,
.care-team-action:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.care-team-profile-details {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  min-width: 0;
}

.care-team-detail-panel {
  min-width: 0;
  padding: 28px 30px 32px;
}

.care-team-detail-panel + .care-team-detail-panel {
  border-left: 1px solid rgba(12, 75, 68, 0.1);
}

.care-team-detail-panel .eyebrow {
  margin: 0 0 8px;
  color: var(--gold-text);
}

.care-team-detail-panel h5 {
  margin: 0 0 14px;
  color: var(--deep-green);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.care-team-detail-panel h5:not(:first-of-type) {
  margin-top: 24px;
}

.care-team-location address {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.care-team-contact-list,
.care-team-affiliation-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.care-team-contact-list .record-definition,
.care-team-affiliation-list .record-definition {
  grid-template-columns: minmax(105px, 0.38fr) minmax(0, 1fr);
}

.care-team-credential-list {
  display: grid;
  gap: 12px;
}

.care-team-credential {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(12, 75, 68, 0.09);
}

.care-team-credential span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.care-team-credential strong {
  color: var(--deep-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.care-team-fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--deep-green);
  font-size: 14px;
  line-height: 1.55;
}

.care-team-source-boundary {
  display: grid;
  gap: 5px;
  margin: 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 75, 68, 0.1);
  border-radius: 20px;
  background: rgba(231, 241, 237, 0.58);
}

.care-team-source-boundary strong {
  color: var(--deep-green);
  font-size: 13px;
}

.care-team-source-boundary p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.care-team-evidence-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px 28px;
}

.care-team-evidence-row > .record-evidence {
  margin: 0;
}

.care-team-public-sources .care-team-action {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #0a6a61;
  background: transparent;
  box-shadow: none;
}

.care-team-public-sources .care-team-action:hover,
.care-team-public-sources .care-team-action:focus-visible {
  color: #064f49;
  background: transparent;
}

.care-team-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
}

.care-team-subheading h4,
.care-team-subheading p {
  margin: 0;
}

.care-team-subheading h4 {
  color: var(--deep-green);
  font-size: 22px;
  font-weight: 600;
}

.care-team-subheading p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.physician-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.physician-card-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.physician-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(12, 75, 68, 0.12);
  border-radius: 18px;
  color: var(--deep-green);
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.8), transparent 55%),
    #dfece7;
  font-size: 16px;
  font-weight: 600;
}

.physician-card-identity {
  min-width: 0;
}

.physician-card-identity h4,
.physician-card-identity p {
  margin: 0;
}

.physician-card-identity p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.record-summary-card,
.record-card,
.record-timeline-body {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(12, 75, 68, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 42px rgba(24, 65, 59, 0.07);
}

.record-summary-card h4,
.record-card h4,
.record-section-heading h3 {
  margin: 0;
  color: var(--deep-green);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.record-summary-card h4,
.record-card h4 {
  font-size: 19px;
}

.record-summary-label,
.record-section-heading p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.record-compact-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
}

.record-summary-row,
.record-compact-row {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid rgba(12, 75, 68, 0.09);
}

.record-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.record-summary-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.record-summary-row > span:not(.record-status) {
  color: var(--text-secondary);
  font-size: 11px;
  text-align: right;
}

.record-compact-row {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: start;
}

.record-compact-row time {
  color: #a57427;
  font-size: 12px;
  font-weight: 600;
}

.record-compact-row p {
  margin: 0;
  color: var(--deep-green);
  font-size: 13px;
  line-height: 1.55;
}

.record-inline-button {
  min-height: 42px;
  margin-top: 14px;
  padding: 0 14px;
  color: var(--deep-green);
  border: 1px solid rgba(12, 75, 68, 0.14);
  border-radius: 14px;
  background: rgba(220, 237, 230, 0.55);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}

.record-section {
  display: grid;
  gap: 14px;
}

.record-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.record-section-heading h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
}

.record-section-heading p {
  max-width: 520px;
  text-align: right;
}

.record-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-card-heading time {
  color: var(--deep-green);
  font-size: 15px;
  font-weight: 600;
}

.record-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.record-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  color: #45635e;
  border: 1px solid rgba(8, 78, 71, 0.09);
  border-radius: 999px;
  background: #edf4f0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.record-status-current,
.record-status-documented-current,
.record-status-clinician,
.record-status-active,
.record-status-continued,
.record-status-started,
.record-status-prescribed {
  color: #07564e;
  background: #dceee8;
}

.record-status-allergy,
.record-status-warning,
.record-status-attention,
.record-status-open-question {
  color: #7a451b;
  background: #f7e8cf;
}

.record-status-inference,
.record-status-status-uncertain {
  color: #5a4c79;
  background: #ece7f5;
}

.record-status-historical,
.record-status-neutral,
.record-status-ruled-out,
.record-status-stopped,
.record-status-resolved {
  color: #5f6e6a;
  background: #eef0ee;
}

.record-primary-detail,
.record-excerpt,
.record-status-explanation,
.record-note,
.record-card > p {
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.record-primary-detail {
  color: var(--deep-green);
  font-size: 14px;
}

.record-status-explanation {
  padding: 12px;
  border-radius: 14px;
  background: rgba(224, 237, 231, 0.5);
}

.record-definition-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
}

.record-definition {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
}

.record-definition dt {
  color: var(--text-secondary);
  font-size: 11px;
}

.record-definition dd {
  margin: 0;
  color: var(--deep-green);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.record-evidence,
.record-history {
  margin-top: 16px;
  border-top: 1px solid rgba(12, 75, 68, 0.1);
}

.record-evidence > summary,
.record-history > summary {
  padding: 14px 0 0;
  color: #14665d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style-position: inside;
}

.record-evidence-list,
.record-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.record-evidence-source,
.record-history-event {
  padding: 13px;
  border-radius: 14px;
  background: rgba(242, 243, 237, 0.8);
}

.record-evidence-source strong {
  display: block;
  color: var(--deep-green);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.record-evidence-source p,
.record-evidence-source a,
.record-evidence-citation {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.record-evidence-source a,
.record-source-link {
  display: inline-flex;
  color: #075d54;
  font-weight: 600;
}

.record-evidence-source blockquote {
  margin: 10px 0 0;
  padding-left: 10px;
  color: #39534f;
  border-left: 2px solid #d4a75f;
  font-size: 11px;
  line-height: 1.55;
}

.record-technical-id {
  color: #89918e !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px !important;
  word-break: break-all;
}

.record-timeline {
  display: grid;
  gap: 0;
  padding-left: 12px;
}

.record-timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
}

.record-timeline-card::before {
  position: absolute;
  top: 14px;
  bottom: -5px;
  left: 8px;
  width: 1px;
  background: rgba(9, 84, 76, 0.18);
  content: "";
}

.record-timeline-card:last-child::before {
  display: none;
}

.record-timeline-marker {
  z-index: 1;
  width: 17px;
  height: 17px;
  margin-top: 13px;
  border: 4px solid #e3eee8;
  border-radius: 50%;
  background: #0a6259;
}

.record-event-list {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding-left: 20px;
  color: var(--deep-green);
  font-size: 13px;
  line-height: 1.6;
}

.record-allergy-section {
  padding: 20px;
  border: 1px solid rgba(176, 106, 39, 0.14);
  border-radius: 28px;
  background: rgba(248, 235, 214, 0.46);
}

.record-allergy-card {
  box-shadow: none;
}

.record-history-event .record-card-heading {
  align-items: center;
}

.record-history-event > p {
  margin: 8px 0 0;
  font-size: 11px;
}

.record-note.warning {
  color: #82451f;
}

.record-safety-note {
  padding: 18px 20px;
  border: 1px solid rgba(15, 93, 84, 0.12);
  border-radius: 20px;
  background: rgba(220, 237, 230, 0.54);
}

.record-safety-note strong {
  color: var(--deep-green);
  font-size: 13px;
}

.record-safety-note p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.record-followup-card,
.record-difference-card {
  border-color: rgba(184, 128, 49, 0.16);
}

.record-version-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.record-version {
  padding: 12px;
  border-radius: 14px;
  background: rgba(247, 239, 224, 0.7);
}

.record-version strong,
.record-version time {
  color: #7a5622;
  font-size: 10px;
}

.record-version p {
  margin: 5px 0;
  color: #4d5d59;
  font-size: 11px;
  line-height: 1.55;
}

.source-record-list {
  display: grid;
  gap: 12px;
}

.record-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.record-source-meta span {
  color: var(--text-secondary);
  font-size: 10px;
}

.record-source-meta span:not(:last-child)::after {
  margin-left: 7px;
  color: #d0a056;
  content: "•";
}

.record-empty {
  margin: 0;
  padding: 18px;
  color: var(--text-secondary);
  border: 1px dashed rgba(12, 75, 68, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .records-heading h2 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .records-intro {
    font-size: 14px;
  }

  .records-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .records-search .primary {
    width: 100%;
  }

  .record-view-shell {
    top: 4px;
    margin-inline: -4px;
    border-radius: 20px;
  }

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

  .record-view-tabs {
    display: grid;
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.55fr)
      minmax(0, 1fr)
      minmax(0, 1.1fr);
    gap: 4px;
    overflow: visible;
  }

  .record-view-tab {
    width: 100%;
    min-height: 56px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  .record-overview-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    border-radius: 25px;
  }

  .record-overview-copy h3 {
    font-size: 42px;
  }

  .record-metric {
    min-height: 92px;
    padding: 13px;
  }

  .record-metric strong {
    font-size: 34px;
  }

  .record-overview-grid,
  .record-card-grid,
  .physician-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-team-profile {
    border-radius: 25px;
  }

  .care-team-profile-hero {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .care-team-portrait,
  .care-team-portrait img {
    min-height: 156px;
  }

  .care-team-identity {
    padding: 22px 18px;
  }

  .care-team-identity h4 {
    font-size: clamp(29px, 8vw, 39px);
  }

  .care-team-specialty {
    margin-top: 8px;
    font-size: 14px;
  }

  .care-team-affiliation {
    font-size: 11px;
  }

  .care-team-badges {
    margin-top: 12px;
  }

  .care-team-actions {
    grid-column: 1 / -1;
    margin-top: 15px;
  }

  .care-team-action {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .care-team-profile-details,
  .care-team-evidence-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-team-detail-panel {
    padding: 22px 20px;
  }

  .care-team-detail-panel + .care-team-detail-panel {
    border-top: 1px solid rgba(12, 75, 68, 0.1);
    border-left: 0;
  }

  .care-team-source-boundary {
    margin-inline: 18px;
    padding: 16px;
  }

  .care-team-evidence-row {
    padding: 16px 18px 20px;
  }

  .care-team-subheading {
    display: block;
  }

  .care-team-subheading p {
    margin-top: 4px;
    text-align: left;
  }

  .record-summary-card,
  .record-card,
  .record-timeline-body {
    padding: 18px;
    border-radius: 20px;
  }

  .record-section-heading {
    display: block;
  }

  .record-section-heading h3 {
    font-size: 32px;
  }

  .record-section-heading p {
    margin-top: 4px;
    text-align: left;
  }

  .record-compact-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .record-compact-row p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .record-definition {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .record-card-heading {
    flex-wrap: wrap;
  }

  .record-allergy-section {
    margin-inline: -4px;
    padding: 14px;
    border-radius: 23px;
  }

  .record-result-heading {
    display: block;
  }

  .record-result-heading p {
    margin-top: 4px;
  }
}

@media (max-width: 390px) {
  .record-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-metric {
    min-height: 76px;
  }

  .record-definition {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (min-width: 720px) {
  .app-header {
    padding-inline: 24px;
  }

  .tab-bar {
    width: calc(100% - 48px);
  }

  .content-shell {
    padding-inline: 24px;
  }

  .panel {
    max-width: 920px;
  }

  #panel-voice {
    max-width: 760px;
  }

  .voice-stage {
    min-height: 540px;
  }

  .tab {
    font-size: 12px;
  }

  .tab svg {
    width: 24px;
    height: 24px;
  }

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

  .vault-unlock {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
  }
}

@media (max-width: 431px) {
  .app-header {
    gap: 6px;
    min-height: 72px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .app-brand {
    gap: 8px;
  }

  .dog-mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .dog-mark img {
    width: 84px;
    left: -14px;
    top: -10px;
  }

  .app-identity h1 {
    font-size: 34px;
  }

  .app-identity p {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .account-summary {
    display: flex;
  }

  .profile-menu-button {
    min-width: 44px;
    min-height: 44px;
    padding: 2px;
  }

  .tab-bar {
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 20px;
  }

  .tab {
    min-height: 50px;
    gap: 3px;
    padding: 4px 1px;
    font-size: 10px;
  }

  .tab svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .home-panel {
    gap: 14px;
  }

  .home-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .home-welcome {
    margin: 18px 0;
  }

  .home-welcome h2 {
    font-size: clamp(32px, 9vw, 38px);
  }

  .home-talk-action {
    min-height: 78px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 11px;
    padding: 12px 14px;
  }

  .home-action-icon {
    width: 44px;
    height: 44px;
  }

  .home-action-copy strong {
    font-size: 17px;
  }

  .home-shortcut {
    min-height: 72px;
  }

  .voice-stage {
    min-height: clamp(360px, 39dvh, 380px);
    padding: 14px 16px 18px;
    border-radius: 26px;
  }

  .voice-stage-kicker {
    min-height: 38px;
    padding: 7px 13px;
  }

  .voice-orb-shell {
    width: min(156px, 50vw);
    margin: 0 auto 1px;
  }

  .voice-stage h2 {
    font-size: 32px;
  }

  .voice-primary-status {
    font-size: 28px;
  }

  .voice-session-detail {
    margin-top: 6px;
    font-size: 12px;
  }

  .voice-aec-note {
    min-height: 50px;
    margin-top: 10px;
    padding: 8px 12px;
  }

  .voice-stage:is(
    [data-voice-state="greeting"],
    [data-voice-state="listening"],
    [data-voice-state="parent_speaking"],
    [data-voice-state="thinking"],
    [data-voice-state="sam_speaking"],
    [data-voice-state="muted"],
    [data-voice-state="reconnecting"],
    [data-voice-state="error"]
  ) .voice-stage-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 8px;
  }

  .voice-stage:is(
    [data-voice-state="greeting"],
    [data-voice-state="listening"],
    [data-voice-state="parent_speaking"],
    [data-voice-state="thinking"],
    [data-voice-state="sam_speaking"],
    [data-voice-state="muted"],
    [data-voice-state="reconnecting"],
    [data-voice-state="error"]
  ) .voice-stage-copy h2 {
    order: 2;
    font-size: 28px;
  }

  .voice-stage:is(
    [data-voice-state="greeting"],
    [data-voice-state="listening"],
    [data-voice-state="parent_speaking"],
    [data-voice-state="thinking"],
    [data-voice-state="sam_speaking"],
    [data-voice-state="muted"],
    [data-voice-state="reconnecting"],
    [data-voice-state="error"]
  ) .voice-primary-status {
    order: 1;
    margin-top: 0;
  }

  .voice-stage:is(
    [data-voice-state="greeting"],
    [data-voice-state="listening"],
    [data-voice-state="parent_speaking"],
    [data-voice-state="thinking"],
    [data-voice-state="sam_speaking"],
    [data-voice-state="muted"],
    [data-voice-state="reconnecting"],
    [data-voice-state="error"]
  ) .voice-session-detail {
    order: 3;
    flex: 0 0 100%;
  }

  .transcript-card {
    margin-top: -14px;
    padding: 22px 22px 20px;
    padding-top: 22px;
  }

  .transcript {
    --voice-mobile-transcript-height: clamp(
      64px,
      calc(100dvh - 764px - max(0px, calc(env(safe-area-inset-bottom) - 12px))),
      190px
    );
    height: var(--voice-mobile-transcript-height);
    min-height: 0;
    max-height: var(--voice-mobile-transcript-height);
    margin-top: 12px;
    padding-bottom: 8px;
  }

  .transcript .empty-state {
    margin-top: 4px;
    padding: 10px 12px;
  }

  .voice-control-dock {
    border-radius: 24px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]),
  #panel-voice:has(.voice-stage[data-voice-state="connecting"]),
  #panel-voice:has(.voice-stage[data-voice-state="greeting"]),
  #panel-voice:has(.voice-stage[data-voice-state="listening"]),
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]),
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]),
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]),
  #panel-voice:has(.voice-stage[data-voice-state="muted"]),
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]),
  #panel-voice:has(.voice-stage[data-voice-state="error"]) {
    padding-bottom: calc(220px + env(safe-area-inset-bottom));
  }

  #panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="connecting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="greeting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="listening"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="muted"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-control-dock {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(24px, env(safe-area-inset-left));
    width: auto;
    margin: 0;
  }

  #panel-voice:has(.voice-stage[data-voice-state="greeting"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="listening"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="muted"]) .voice-primary-controls,
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]) .voice-primary-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-state-card {
    min-height: 82px;
    gap: 8px;
    padding: 10px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-control-orb {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-control-dock {
    grid-template-columns: minmax(0, 1fr);
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-state-title {
    font-size: 13px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-state-hint {
    font-size: 9px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="ready"]) .voice-stage {
    min-height: max(600px, calc(100dvh - 222px));
    padding: 18px 18px max(118px, env(safe-area-inset-bottom));
  }

  #panel-voice:has(.voice-stage[data-voice-state="ready"]) #voice-orb {
    width: min(190px, 48vw);
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  #panel-voice:has(.voice-stage[data-voice-state="requesting_permission"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="connecting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="greeting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="listening"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="muted"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]) .voice-control-dock {
    right: max(16px, env(safe-area-inset-right));
    left: max(16px, env(safe-area-inset-left));
  }
}

@media (max-width: 370px) {
  .app-header {
    padding-inline: 12px;
  }

  .dog-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .app-identity h1 {
    font-size: 32px;
  }

  .user-name,
  .account-chevron {
    display: none;
  }

  .tab-bar {
    width: calc(100% - 24px);
    padding-inline: 3px;
  }

  .tab {
    gap: 3px;
    font-size: 9px;
  }

  .tab svg {
    width: 20px;
    height: 20px;
  }

  .content-shell {
    padding-inline: 12px;
  }

  .transcript-card {
    padding: 18px;
  }
}

@media (max-width: 349px) {
  .home-hero {
    padding: 18px;
  }

  .home-talk-action {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-inline: 12px;
  }

  .home-action-icon {
    width: 42px;
    height: 42px;
  }

  .home-action-copy small {
    font-size: 10px;
  }

  .home-shortcut {
    padding-inline: 5px;
    font-size: 10px;
  }

  .voice-stage {
    min-height: clamp(310px, 36dvh, 330px);
    padding: 12px 12px 14px;
  }

  .voice-stage-kicker {
    min-height: 36px;
    padding: 6px 12px;
  }

  .voice-orb-shell {
    width: min(140px, 46vw);
    margin: 0 auto 1px;
  }

  .voice-stage h2 {
    font-size: 29px;
  }

  .voice-primary-status {
    font-size: 25px;
  }

  .voice-stage:is(
    [data-voice-state="greeting"],
    [data-voice-state="listening"],
    [data-voice-state="parent_speaking"],
    [data-voice-state="thinking"],
    [data-voice-state="sam_speaking"],
    [data-voice-state="muted"],
    [data-voice-state="reconnecting"]
  ) .voice-stage-copy h2 {
    font-size: 25px;
  }

  .voice-aec-note {
    min-height: 48px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
  }

  .voice-aec-note svg {
    width: 26px;
    height: 26px;
  }

  .voice-aec-note p {
    font-size: 11px;
  }

  .transcript-card .card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .voice-save-state {
    max-width: 100%;
    justify-self: start;
  }

  .transcript-card {
    padding-top: 18px;
  }

  .voice-primary-controls.voice-state-grid {
    grid-template-columns: 1fr;
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-primary-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-state-card,
  .voice-button,
  .mic-button {
    min-height: 72px;
    padding: 10px 12px;
  }

  .voice-session-actions button {
    min-height: 72px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="greeting"]),
  #panel-voice:has(.voice-stage[data-voice-state="listening"]),
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]),
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]),
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]),
  #panel-voice:has(.voice-stage[data-voice-state="muted"]),
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]),
  #panel-voice:has(.voice-stage[data-voice-state="error"]) {
    padding-bottom: calc(340px + env(safe-area-inset-bottom));
  }

  #panel-voice:has(.voice-stage[data-voice-state="greeting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="listening"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="parent_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="thinking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="sam_speaking"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="muted"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="reconnecting"]) .voice-control-dock,
  #panel-voice:has(.voice-stage[data-voice-state="error"]) .voice-control-dock {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #panel-voice:has(.voice-stage[data-voice-state="error"]) {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .capture-grid,
  .two-column,
  .vault-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab {
    transition: none;
  }

  .voice-orb-shell {
    transition: none;
    will-change: auto;
  }

  .voice-orb-flow-ribbon,
  .voice-orb-living-core {
    filter: none;
  }
}

/* Record consolidation and legibility corrections */
.record-overview-copy h3 {
  color: #ffffff;
}

.record-metric strong {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.record-card-heading > h4 {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-status {
  max-width: min(100%, 250px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.record-allergy-card .record-card-heading {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: start;
}

.record-allergy-card .record-status {
  max-width: 190px;
  text-align: center;
}

.record-allergy-summary-card .record-summary-row {
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
}

.record-medication-summary-card .record-summary-row {
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.record-medication-summary-card .record-summary-row > span:not(.record-status) {
  max-width: none;
  text-align: left;
  line-height: 1.5;
}

.record-allergy-summary-card .record-summary-row > span:not(.record-status) {
  max-width: none;
  text-align: left;
  line-height: 1.5;
}

.allergy-safety-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  padding: 24px;
  color: white;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 0%, rgba(225, 183, 111, 0.22), transparent 210px),
    linear-gradient(135deg, #0c5d56, #153f3d);
  box-shadow: 0 18px 46px rgba(12, 75, 68, 0.15);
}

.allergy-safety-copy .eyebrow {
  color: #efc57f;
}

.allergy-safety-copy h3 {
  margin: 7px 0;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
}

.allergy-safety-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.allergy-chip-list {
  display: grid;
  align-content: center;
  gap: 8px;
}

.allergy-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
}

.allergy-chip strong {
  min-width: 0;
  color: #ffffff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.allergy-chip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  text-align: right;
}

.record-consolidation-note {
  margin: 11px 0 0;
  color: #71827e;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .allergy-safety-summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    border-radius: 22px;
  }

  .allergy-safety-copy h3 {
    font-size: 31px;
  }

  .record-allergy-card .record-card-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-allergy-card .record-status {
    max-width: 100%;
    text-align: left;
  }

  .record-allergy-summary-card .record-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-medication-summary-card .record-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .record-medication-summary-card .record-summary-row strong {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .record-medication-summary-card .record-summary-row > span:not(.record-status) {
    text-align: left;
  }

  .record-allergy-summary-card .record-summary-row > span:not(.record-status) {
    text-align: left;
  }
}

/* FHIR source ledger and connection review */
.record-card,
.record-summary-row,
.record-history-event,
.record-evidence-source,
.physician-card-identity {
  min-width: 0;
}

.record-card h4,
.record-card p,
.record-summary-row strong,
.record-summary-row span,
.record-primary-detail,
.record-evidence-source {
  overflow-wrap: anywhere;
  word-break: normal;
}

.record-provenance-note,
.health-connection-hero,
.fhir-gate-card {
  border: 1px solid rgba(9, 77, 70, 0.13);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(21, 70, 61, 0.08);
}

.record-provenance-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
}

.record-provenance-note strong {
  color: var(--deep-green);
}

.record-provenance-note p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.coverage-banner,
.coverage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  border: 1px solid rgba(9, 77, 70, 0.16);
  border-left: 5px solid #9a6a20;
  border-radius: 1.55rem;
  background: linear-gradient(135deg, rgba(255, 252, 241, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 45px rgba(21, 70, 61, 0.08);
}

.coverage-banner {
  padding: 1.25rem 1.4rem;
}

.coverage-hero {
  padding: 1.8rem;
}

.coverage-state-bounded-current {
  border-left-color: #237565;
}

.coverage-state-failed,
.coverage-state-incomplete {
  border-left-color: #a23832;
}

.coverage-banner h4,
.coverage-hero h3,
.coverage-form h4 {
  margin: 0.2rem 0 0.45rem;
  color: var(--deep-green);
}

.coverage-banner p,
.coverage-hero p,
.coverage-item p,
.coverage-source-card p,
.coverage-prose {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.coverage-banner-detail,
.coverage-banner-copy,
.coverage-hero-copy {
  min-width: 0;
}

.coverage-banner-detail {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.75rem;
}

.coverage-gap-preview {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.coverage-list,
.coverage-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.coverage-item,
.coverage-source-card,
.coverage-form {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(9, 77, 70, 0.13);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
}

.coverage-item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.45rem;
}

.coverage-source-card {
  display: grid;
  gap: 0.2rem;
  overflow-wrap: anywhere;
}

.coverage-tags,
.coverage-actions,
.coverage-declaration-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.coverage-form {
  margin-top: 1rem;
}

.coverage-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.coverage-form-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--deep-green);
  font-size: 0.82rem;
  font-weight: 600;
}

.coverage-form-field input,
.coverage-form-field select {
  width: 100%;
  min-width: 0;
}

.coverage-form-field small {
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .coverage-banner,
  .coverage-hero,
  .coverage-list,
  .coverage-source-list,
  .coverage-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.health-connection-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 90% 15%, rgba(239, 185, 112, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(7, 81, 73, 0.98), rgba(27, 83, 74, 0.88));
  color: white;
}

.health-connection-hero h3 {
  margin: 0.25rem 0 0.6rem;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.health-connection-hero p:last-child {
  max-width: 52rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.health-connection-hero .record-status {
  flex: 0 0 auto;
  max-width: 14rem;
  white-space: normal;
  text-align: center;
}

.fhir-gate-card {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: rgba(255, 248, 235, 0.9);
  border-color: rgba(180, 120, 47, 0.25);
}

.fhir-gate-card h3 {
  margin: 0;
  color: var(--deep-green);
}

.fhir-gate-card > p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.fhir-gate-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.3rem;
  color: #765027;
}

.fhir-connection-card .item-actions,
.fhir-review-section .item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.fhir-setup-section form {
  max-width: 58rem;
}

.fhir-setup-section input {
  width: 100%;
}

.clinical-physician-section {
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .health-connection-hero {
    display: grid;
  }

  .health-connection-hero .record-status {
    max-width: none;
    justify-self: start;
  }

  .fhir-connection-card .item-actions > *,
  .fhir-review-section .item-actions > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 260px) {
  .record-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Care Team */
.care-team-page {
  gap: 18px;
  width: 100%;
}

.care-team-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 0;
}

.care-team-page-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--gold-text);
}

.care-team-page-heading h3 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.care-team-page-heading p:last-child {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.care-team-search {
  flex: 0 1 320px;
}

.care-team-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(21, 70, 61, 0.07);
  font-size: 14px;
}

.care-team-primary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% -18%, rgba(227, 194, 132, 0.28), transparent 44%),
    linear-gradient(135deg, #075a52, #153f3c);
  box-shadow: 0 24px 58px rgba(11, 70, 64, 0.2);
}

.care-team-primary-portrait {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 238px;
  margin: 0;
  overflow: hidden;
  background: #dfe8e3;
}

.care-team-primary-portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.care-team-primary-portrait.portrait-unavailable span {
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 600;
}

.care-team-primary-identity {
  align-self: center;
  min-width: 0;
  padding: 26px 28px;
}

.care-team-primary-identity .eyebrow {
  margin: 0 0 7px;
  color: #efc57f;
}

.care-team-primary-identity h4 {
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.care-team-primary-specialty,
.care-team-primary-affiliation {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.45;
}

.care-team-primary-affiliation {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.care-team-primary-badges {
  margin-top: 15px;
}

.care-team-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.care-team-primary-details {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.care-team-primary-details > summary {
  min-height: 48px;
  padding: 14px 24px;
  color: var(--deep-green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.care-team-primary-details-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  color: var(--deep-green);
  border-top: 1px solid rgba(9, 78, 70, 0.1);
}

.care-team-primary-details-body > .care-team-evidence-row {
  grid-column: 1 / -1;
}

.care-team-primary-empty {
  display: block;
  padding: 26px 28px;
}

.care-team-primary-empty .eyebrow {
  margin: 0 0 7px;
  color: #efc57f;
}

.care-team-primary-empty h4 {
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
}

.care-team-primary-empty > p:last-of-type {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.care-team-primary-candidates {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: white;
  font-size: 14px;
}

.care-team-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 14px 36px rgba(21, 70, 61, 0.07);
}

.care-team-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  color: #56716c;
  border: 0;
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.care-team-tab[aria-selected="true"] {
  color: white;
  background:
    radial-gradient(circle at 50% -45%, rgba(195, 232, 219, 0.54), transparent 68%),
    linear-gradient(145deg, #26766c, #07534c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 24px rgba(5, 78, 72, 0.2);
}

.care-team-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: inherit;
  background: rgba(9, 78, 70, 0.08);
  font-size: 12px;
}

.care-team-tab[aria-selected="true"] .care-team-tab-count {
  background: rgba(255, 255, 255, 0.16);
}

.care-team-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.care-team-list-toolbar h4 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
}

.care-team-list-toolbar p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.care-team-organize {
  min-height: 44px;
  padding: 9px 16px;
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.14);
  border-radius: 14px;
  background: rgba(230, 240, 235, 0.72);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

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

.care-team-save,
.care-team-cancel,
.care-team-retry {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 14px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.care-team-save,
.care-team-retry {
  color: white;
  border: 1px solid #07544c;
  background: #07544c;
}

.care-team-cancel {
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.care-team-save-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #763d2d;
  border: 1px solid rgba(159, 66, 46, 0.2);
  border-radius: 17px;
  background: #fbede8;
}

.care-team-save-error p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.care-team-save-error p:first-child {
  font-weight: 600;
}

.care-team-save-error .care-team-retry {
  margin-left: auto;
}

.care-team-provider-list {
  overflow: hidden;
  border: 1px solid rgba(9, 78, 70, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(21, 70, 61, 0.08);
}

.care-team-provider-row + .care-team-provider-row {
  border-top: 1px solid rgba(9, 78, 70, 0.09);
}

.care-team-provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.care-team-provider-disclosure {
  min-width: 0;
}

.care-team-provider-disclosure > summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 12px 0;
  color: var(--deep-green);
  cursor: pointer;
  list-style: none;
}

.care-team-provider-disclosure > summary::-webkit-details-marker {
  display: none;
}

.care-team-provider-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 16px;
  color: var(--deep-green);
  background: #e1eee9;
  font-size: 15px;
  font-weight: 600;
}

.care-team-provider-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.care-team-provider-identity strong {
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.care-team-provider-identity > span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.care-team-provider-indicators {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.care-team-pin-label,
.care-team-disclosure-label {
  color: #55716b;
  font-size: 12px;
  font-weight: 600;
}

.care-team-pin-label {
  padding: 3px 8px;
  border-radius: 999px;
  color: #07564e;
  background: #dceee8;
}

.care-team-provider-body {
  padding: 0 0 18px 65px;
}

.care-team-provider-actions {
  display: flex;
  gap: 7px;
}

.care-team-provider-actions .care-team-action {
  min-height: 44px;
  color: var(--deep-green);
  border-color: rgba(9, 78, 70, 0.14);
  background: rgba(230, 240, 235, 0.66);
  box-shadow: none;
  font-size: 14px;
}

.care-team-provider-actions .care-team-action:hover,
.care-team-provider-actions .care-team-action:focus-visible {
  color: var(--deep-green);
  background: rgba(214, 234, 226, 0.9);
}

.care-team-row-organize {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto)) minmax(180px, 1fr);
  align-items: start;
  gap: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(9, 78, 70, 0.09);
}

.care-team-row-organize button,
.care-team-category-control select {
  min-height: 44px;
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.14);
  border-radius: 12px;
  background: rgba(236, 244, 240, 0.78);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.care-team-row-organize button {
  padding: 8px 12px;
}

.care-team-row-organize button:disabled {
  opacity: 0.42;
}

.care-team-drag-handle {
  touch-action: none;
  cursor: grab;
}

.care-team-drag-handle.is-dragging {
  cursor: grabbing;
  background: #d7eae3;
}

.care-team-category-control {
  display: grid;
  gap: 5px;
}

.care-team-category-control > span {
  color: var(--deep-green);
  font-size: 14px;
  font-weight: 600;
}

.care-team-category-control select {
  width: 100%;
  padding: 0 36px 0 12px;
}

.care-team-category-control small {
  color: #795a2f;
  font-size: 12px;
  line-height: 1.35;
}

.care-team-source-boundary {
  margin: 0;
  padding: 0;
}

.care-team-source-boundary > summary {
  min-height: 48px;
  padding: 13px 18px;
  color: var(--deep-green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.care-team-source-boundary > p {
  padding: 0 18px 16px;
  font-size: 14px;
}

.care-team-page button:focus-visible,
.care-team-page a:focus-visible,
.care-team-page summary:focus-visible,
.care-team-page input:focus-visible {
  outline: 3px solid #d3a75d;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .care-team-page-heading {
    display: grid;
    align-items: stretch;
    gap: 16px;
  }

  .care-team-search {
    width: 100%;
  }

  .care-team-primary {
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    border-radius: 26px;
  }

  .care-team-primary-portrait {
    min-height: 220px;
  }

  .care-team-primary-identity {
    padding: 22px 18px;
  }

  .care-team-primary-identity h4 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .care-team-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .care-team-primary-actions .care-team-action {
    width: 100%;
  }

  .care-team-primary-details-body {
    grid-template-columns: 1fr;
  }

  .care-team-primary-details-body > .care-team-detail-panel + .care-team-detail-panel {
    border-top: 1px solid rgba(9, 78, 70, 0.1);
    border-left: 0;
  }

  .care-team-tabs {
    gap: 4px;
    padding: 5px;
    border-radius: 19px;
  }

  .care-team-tab {
    min-height: 52px;
    padding: 7px 5px;
    font-size: 13px;
  }

  .care-team-provider-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 14px;
  }

  .care-team-provider-disclosure > summary {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 80px;
    gap: 10px;
  }

  .care-team-provider-avatar {
    width: 48px;
    height: 48px;
  }

  .care-team-provider-identity strong {
    font-size: 20px;
  }

  .care-team-provider-body {
    padding-left: 58px;
  }

  .care-team-provider-actions {
    justify-content: flex-end;
    padding: 0 0 14px 58px;
  }

  .care-team-row-organize {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 58px;
  }

  .care-team-row-organize .care-team-category-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .care-team-page-heading h3 {
    font-size: 42px;
  }

  .care-team-primary {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .care-team-primary-portrait {
    min-height: 202px;
  }

  .care-team-primary-identity {
    padding: 18px 14px;
  }

  .care-team-primary-identity h4 {
    font-size: clamp(28px, 8.2vw, 36px);
  }

  .care-team-primary-badges {
    display: none;
  }

  .care-team-primary-details > summary {
    padding-inline: 18px;
  }

  .care-team-list-toolbar {
    align-items: center;
  }

  .care-team-list-toolbar h4 {
    font-size: 29px;
  }

  .care-team-list-toolbar p {
    font-size: 13px;
  }

  .care-team-tab {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.15;
  }

  .care-team-tab-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .care-team-provider-identity strong {
    font-size: 19px;
  }

  .care-team-disclosure-label {
    display: none;
  }

  .care-team-provider-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 58px;
  }

  .care-team-organize-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-team-organize-actions > button {
    width: 100%;
  }

  .care-team-save-error {
    display: grid;
  }

  .care-team-save-error .care-team-retry {
    width: 100%;
    margin-left: 0;
  }

  .care-team-row-organize {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .care-team-page *,
  .care-team-page *::before,
  .care-team-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Care Team readiness correction - approved mobile reference */
.care-team-page {
  gap: 10px;
  max-width: 390px;
  margin-inline: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.care-team-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.care-team-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 0;
}

.care-team-page-heading h3 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.care-team-page-heading p:last-child {
  max-width: 270px;
  margin: 6px 0 0;
  color: #5d706d;
  font-size: 14px;
  line-height: 1.36;
}

.care-team-heading-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #07544e;
  border-radius: 50%;
  background: #e4f0eb;
}

.care-team-heading-mark .care-team-icon {
  width: 27px;
  height: 27px;
}

.care-team-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 13px 2px;
  border: 1px solid rgba(9, 78, 70, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(18, 63, 57, 0.05);
}

.care-team-summary-metric {
  display: grid;
  grid-template-columns: 22px auto;
  justify-content: center;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  padding: 0 2px;
  color: var(--deep-green);
  text-align: center;
}

.care-team-summary-metric + .care-team-summary-metric {
  border-left: 1px solid rgba(9, 78, 70, 0.08);
}

.care-team-summary-metric .care-team-icon {
  width: 19px;
  height: 19px;
}

.care-team-summary-metric dd,
.care-team-summary-metric dt {
  margin: 0;
}

.care-team-summary-metric dd {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.care-team-summary-metric dt {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #657673;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.18;
}

.care-team-primary {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #07544e;
  box-shadow: 0 18px 42px rgba(8, 73, 67, 0.2);
}

.care-team-primary-portrait {
  align-self: stretch;
  width: 100%;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #dce7e2;
}

.care-team-primary-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.care-team-primary-portrait.portrait-unavailable {
  display: grid;
  place-items: center;
}

.care-team-primary-portrait.portrait-unavailable span {
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
}

.care-team-primary-identity {
  align-self: stretch;
  min-width: 0;
  padding: 13px 13px 12px;
}

.care-team-primary-label {
  margin: 0 0 5px;
  color: #e8c984;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.care-team-primary-identity h4 {
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
}

.care-team-primary-specialty,
.care-team-primary-affiliation {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.35;
}

.care-team-primary-affiliation {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.care-team-primary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.care-team-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 5px 8px;
  color: #0b5851;
  border-radius: 999px;
  background: #e9f4ef;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.care-team-primary-badge .care-team-icon {
  width: 14px;
  height: 14px;
}

.care-team-primary-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(80px, 0.65fr);
  gap: 7px;
  align-items: stretch;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.care-team-primary-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 6px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.care-team-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.care-team-primary-secondary-action .care-team-icon {
  width: 13px;
  height: 13px;
}

.care-team-primary-empty {
  display: block;
  min-height: auto;
  padding: 24px;
}

.care-team-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

.care-team-list-toolbar h4 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.care-team-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 7px 2px 7px 10px;
  color: #0b5b54;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.care-team-view-all .care-team-icon {
  width: 15px;
  height: 15px;
}

.care-team-directory-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.care-team-search {
  width: 100%;
}

.care-team-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(9, 78, 70, 0.12);
  border-radius: 13px;
  background: white;
  font-size: 14px;
}

.care-team-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: #f1eee8;
  box-shadow: none;
}

.care-team-tab {
  min-height: 44px;
  padding: 6px;
  border-radius: 13px;
  font-size: 14px;
}

.care-team-tab[aria-selected="true"] {
  background: #07544e;
}

.care-team-provider-list {
  overflow: hidden;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(18, 63, 57, 0.07);
}

.care-team-provider-panel {
  margin-top: -10px;
}

.care-team-provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.care-team-provider-row + .care-team-provider-row {
  border-top: 1px solid rgba(9, 78, 70, 0.08);
}

.care-team-provider-disclosure {
  min-width: 0;
}

.care-team-provider-disclosure > summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 0;
  list-style: none;
}

.care-team-provider-disclosure > summary::-webkit-details-marker {
  display: none;
}

.care-team-provider-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.09);
  border-radius: 12px;
  background: #e2eee9;
  font-size: 13px;
  font-weight: 600;
}

.care-team-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.care-team-provider-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.care-team-provider-identity > .care-team-provider-specialty {
  color: #287067;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.care-team-provider-identity strong {
  color: var(--deep-green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.05;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.care-team-provider-identity > .care-team-provider-affiliation {
  color: #6a7976;
  font-size: 14px;
  line-height: 1.3;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.care-team-provider-chevron {
  display: grid;
  place-items: center;
  color: #7d918c;
}

.care-team-provider-chevron .care-team-icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.care-team-provider-disclosure[open] .care-team-provider-chevron .care-team-icon {
  transform: rotate(90deg);
}

.care-team-provider-disclosure[open] {
  grid-column: 1 / -1;
}

.care-team-provider-body {
  font-size: 14px;
  padding: 0 0 18px 52px;
}

.care-team-provider-body .record-definition dt,
.care-team-provider-body .record-definition dd,
.care-team-provider-body .record-note,
.care-team-provider-body .record-status-explanation,
.care-team-provider-body .record-evidence > summary,
.care-team-provider-body .record-evidence-source strong,
.care-team-provider-body .record-evidence-source p,
.care-team-provider-body .record-evidence-source a,
.care-team-provider-body .record-evidence-citation,
.care-team-provider-body .record-technical-id {
  font-size: 14px !important;
}

.care-team-provider-body .care-team-detail-panel {
  padding: 18px 0;
}

.care-team-provider-body .care-team-detail-panel + .care-team-detail-panel {
  border-top: 1px solid rgba(9, 78, 70, 0.1);
  border-left: 0;
}

.care-team-provider-body .care-team-location address,
.care-team-provider-body .care-team-credential span,
.care-team-provider-body .care-team-credential strong,
.care-team-provider-body .care-team-fact-list {
  font-size: 14px;
}

.care-team-provider-body .care-team-evidence-row {
  grid-template-columns: 1fr;
  padding: 14px 0 0;
}

.care-team-page .care-team-public-sources .care-team-action {
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
}

.care-team-provider-actions {
  display: flex;
  gap: 5px;
}

.care-team-provider-icon-action {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  color: #07544e;
  border: 0;
  border-radius: 50%;
  background: #e4f0eb;
  text-decoration: none;
}

.care-team-provider-icon-action .care-team-icon {
  width: 16px;
  height: 16px;
}

.care-team-provider-icon-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.care-team-row-organize {
  grid-column: 1 / -1;
}

.care-team-source-boundary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: -7px 0 0;
  padding: 5px 10px;
  color: var(--deep-green);
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 20px;
  background: #eaf3ef;
}

.care-team-source-boundary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(9, 78, 70, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
}

.care-team-source-boundary-icon .care-team-icon {
  width: 18px;
  height: 18px;
}

.care-team-source-boundary strong {
  display: block;
  font-size: 14px;
}

.care-team-source-boundary p {
  margin: 2px 0 0;
  color: #5c6f6b;
  font-size: 14px;
  line-height: 1.25;
}

.care-team-primary-details {
  grid-column: 1 / -1;
}

.care-team-primary-details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

.care-team-primary-details-body .care-team-detail-panel {
  padding: 20px;
}

.care-team-primary-details-body .eyebrow,
.care-team-primary-details-body .record-definition dt,
.care-team-primary-details-body .record-definition dd,
.care-team-primary-details-body .care-team-location address,
.care-team-primary-details-body .care-team-credential span,
.care-team-primary-details-body .care-team-credential strong,
.care-team-primary-details-body .care-team-fact-list,
.care-team-primary-details-body .record-evidence > summary,
.care-team-primary-details-body .record-evidence-source strong,
.care-team-primary-details-body .record-evidence-source p,
.care-team-primary-details-body .record-evidence-source a,
.care-team-primary-details-body .record-technical-id {
  font-size: 14px !important;
}

.care-team-primary-details-body .care-team-evidence-row {
  grid-template-columns: 1fr;
  padding: 16px 20px 20px;
}

@media (max-width: 430px) {
  .care-team-page {
    gap: 10px;
  }

  .care-team-summary-metric {
    padding-inline: 1px;
  }

  .care-team-primary {
    grid-template-columns: 30% minmax(0, 1fr);
  }

  .care-team-primary-identity {
    padding-inline: 12px;
  }

  .care-team-primary-identity h4 {
    font-size: clamp(22px, 6.2vw, 24px);
  }

  .care-team-provider-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .care-team-provider-actions {
    display: flex;
    padding: 0;
  }
}

@media (max-width: 340px) {
  .care-team-primary-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Care Team visual recovery - authoritative mobile reference */
.care-team-page {
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.care-team-page *,
.care-team-page *::before,
.care-team-page *::after {
  box-sizing: border-box;
}

.care-team-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 0;
}

.care-team-page-heading h3 {
  margin: 0;
  color: #064d48;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 8.6vw, 38px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.care-team-page-heading p:last-child {
  max-width: 315px;
  margin: 8px 0 0;
  color: #5a6d69;
  font-size: 16px;
  line-height: 1.42;
}

.care-team-heading-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #07544e;
  border-radius: 50%;
  background: #e3f0ea;
}

.care-team-heading-mark .care-team-icon {
  width: 32px;
  height: 32px;
}

.care-team-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 14px 4px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(18, 63, 57, 0.06);
}

.care-team-summary-metric {
  display: grid;
  grid-template-columns: 24px auto;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 3px;
  color: #07544e;
  text-align: center;
}

.care-team-summary-metric + .care-team-summary-metric {
  border-left: 1px solid rgba(9, 78, 70, 0.1);
}

.care-team-summary-metric .care-team-icon {
  width: 21px;
  height: 21px;
}

.care-team-summary-metric dd,
.care-team-summary-metric dt {
  margin: 0;
}

.care-team-summary-metric dd {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.care-team-summary-metric dt {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #60726e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.care-team-primary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(140deg, #176a60 0%, #07544e 55%, #034842 100%);
  box-shadow: 0 20px 45px rgba(8, 73, 67, 0.22);
}

.care-team-primary-portrait {
  align-self: start;
  width: 108px;
  min-width: 108px;
  height: 152px;
  min-height: 152px;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #dce7e2;
}

.care-team-primary-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.care-team-primary-portrait.portrait-unavailable {
  display: grid;
  place-items: center;
}

.care-team-primary-identity {
  min-width: 0;
  padding: 0;
}

.care-team-primary-label {
  margin: 0 0 8px;
  color: #f1ce82;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.care-team-primary-identity h4 {
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 6.6vw, 29px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
}

.care-team-primary-specialty,
.care-team-primary-affiliation {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  line-height: 1.4;
}

.care-team-primary-affiliation {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.care-team-primary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.care-team-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 5px;
  color: #0a5650;
  border-radius: 999px;
  background: #e8f3ee;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.care-team-primary-badge .care-team-icon {
  width: 14px;
  height: 14px;
}

.care-team-primary-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.care-team-primary-call-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.care-team-primary-call-action .care-team-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.care-team-primary-call-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.care-team-primary-call-copy strong {
  font-size: 14px;
}

.care-team-primary-call-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.care-team-primary-secondary-action,
.care-team-primary-details-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px 10px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.care-team-primary-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.care-team-primary-secondary-action {
  gap: 5px;
  padding-inline: 8px;
  font-size: 12px;
}

.care-team-primary-secondary-action .care-team-icon,
.care-team-primary-details-trigger .care-team-icon {
  width: 16px;
  height: 16px;
}

.care-team-primary-empty {
  display: block;
  min-height: 0;
  padding: 24px;
}

.care-team-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
}

.care-team-list-toolbar h4 {
  margin: 0;
  color: #064d48;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
}

.care-team-list-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.care-team-view-all,
.care-team-organize,
.care-team-reset-order,
.care-team-cancel,
.care-team-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.care-team-view-all {
  color: #0b5b54;
  border: 0;
  background: transparent;
}

.care-team-organize,
.care-team-save {
  color: white;
  border: 1px solid #07544e;
  background: #07544e;
}

.care-team-reset-order,
.care-team-cancel {
  color: #07544e;
  border: 1px solid rgba(7, 84, 78, 0.16);
  background: #edf4f1;
}

.care-team-directory-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.care-team-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: #f1eee8;
}

.care-team-tab,
.care-team-search input {
  min-height: 44px;
  font-size: 14px;
}

.care-team-reorder-guidance {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: -6px;
  padding: 11px 13px;
  color: #47645f;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 15px;
  background: #edf5f1;
}

.care-team-reorder-guidance p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.care-team-provider-panel {
  margin-top: -6px;
}

.care-team-provider-list {
  overflow: hidden;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(18, 63, 57, 0.07);
}

.care-team-provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.care-team-provider-row + .care-team-provider-row {
  border-top: 1px solid rgba(9, 78, 70, 0.09);
}

.care-team-provider-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.care-team-provider-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 62px;
  margin: 0;
  overflow: hidden;
  color: #07544e;
  border: 1px solid rgba(9, 78, 70, 0.09);
  border-radius: 15px;
  background: #e2eee9;
  font-size: 16px;
  font-weight: 600;
}

.care-team-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.care-team-provider-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.care-team-provider-identity > .care-team-provider-specialty {
  color: #287067;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.care-team-provider-identity strong {
  color: #064d48;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.care-team-provider-identity > .care-team-provider-affiliation {
  color: #687a76;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.care-team-provider-phone-target {
  color: #58706b;
  font-size: 11px;
  line-height: 1.2;
}

.care-team-provider-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding-left: 0;
}

.care-team-provider-call-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 6px 8px;
  color: #07544e;
  border: 0;
  border-radius: 14px;
  background: #e4f0eb;
  text-decoration: none;
}

.care-team-provider-call-action > span:first-of-type {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.care-team-provider-call-action .care-team-icon {
  width: 20px;
  height: 20px;
}

.care-team-provider-action-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.care-team-provider-action-copy strong,
.care-team-provider-action-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-team-provider-action-copy strong {
  font-size: 12px;
}

.care-team-provider-action-copy small {
  color: #58706b;
  font-size: 11px;
}

.care-team-provider-icon-action,
.care-team-provider-details-action {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  color: #07544e;
  border: 0;
  border-radius: 50%;
  background: #e4f0eb;
  text-decoration: none;
}

.care-team-provider-details-action > span,
.care-team-provider-icon-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.care-team-provider-icon-action .care-team-icon,
.care-team-provider-details-action .care-team-icon {
  width: 19px;
  height: 19px;
}

.care-team-provider-call-icon .care-team-icon {
  width: 20px;
  height: 20px;
}

.care-team-provider-row.is-reordering {
  background: #fbfdfc;
}

.care-team-provider-row.is-dragging {
  opacity: 0.72;
  box-shadow: inset 0 0 0 2px #d5ad55;
}

.care-team-provider-row.is-drop-target {
  background: #edf6f2;
  box-shadow: inset 0 3px 0 #c39435;
}

.care-team-row-organize {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(116px, 1fr) repeat(2, minmax(92px, auto));
  gap: 8px;
  padding: 10px 0 0 76px;
  border-top: 1px solid rgba(9, 78, 70, 0.08);
}

.care-team-row-organize button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  color: #07544e;
  border: 1px solid rgba(9, 78, 70, 0.13);
  border-radius: 12px;
  background: #edf4f1;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  touch-action: manipulation;
}

.care-team-row-organize button:disabled {
  opacity: 0.42;
}

.care-team-row-organize .care-team-icon {
  width: 17px;
  height: 17px;
}

.care-team-drag-handle {
  cursor: grab;
  touch-action: none !important;
}

.care-team-drag-handle.is-dragging {
  cursor: grabbing;
}

.care-team-history-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: #516963;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.care-team-history-summary span {
  flex: 1;
}

.care-team-source-boundary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px 16px;
  color: #064d48;
  border: 1px solid rgba(9, 78, 70, 0.11);
  border-radius: 22px;
  background: #e9f3ef;
}

.care-team-source-boundary-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(9, 78, 70, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.care-team-source-boundary strong {
  display: block;
  font-size: 15px;
}

.care-team-source-boundary p {
  margin: 3px 0 0;
  color: #5a6d69;
  font-size: 13px;
  line-height: 1.32;
}

.care-team-save-error {
  padding: 13px 15px;
  border: 1px solid #c68f50;
  border-radius: 15px;
  background: #fff5e7;
}

.care-team-save-error p {
  margin: 0;
  color: #754619;
  font-size: 13px;
}

.care-team-save-error p + p {
  margin-top: 3px;
}

.care-team-sheet-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  align-items: end;
  padding:
    max(18px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  background: rgba(4, 39, 36, 0.48);
}

.care-team-details-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 440px);
  max-height: min(82dvh, 760px);
  margin: 0 auto;
  overflow: hidden;
  color: #233e3a;
  border: 1px solid rgba(9, 78, 70, 0.12);
  border-radius: 26px 26px 18px 18px;
  background: #fbf9f4;
  box-shadow: 0 24px 65px rgba(4, 39, 36, 0.3);
}

.care-team-details-sheet-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(9, 78, 70, 0.1);
}

.care-team-details-sheet-bar .eyebrow {
  margin: 0 0 3px;
  color: #287067;
  font-size: 11px;
}

.care-team-details-sheet-bar h4 {
  margin: 0;
  color: #064d48;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1;
}

.care-team-details-close {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: #07544e;
  border: 1px solid rgba(9, 78, 70, 0.12);
  border-radius: 50%;
  background: #e5f0eb;
  box-shadow: none;
}

.care-team-details-content {
  min-height: 0;
  padding: 15px 16px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.care-team-details-status {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #edf5f1;
}

.care-team-details-status strong {
  color: #07544e;
  font-size: 13px;
}

.care-team-details-status span {
  color: #526b66;
  font-size: 12px;
  line-height: 1.35;
}

.care-team-details-content .record-definition-list {
  margin: 14px 0;
}

.care-team-details-content .care-team-detail-panel {
  padding: 16px 0;
}

.care-team-details-content .care-team-evidence-row {
  grid-template-columns: 1fr;
  padding: 14px 0;
}

.care-team-category-editor {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(9, 78, 70, 0.1);
  border-radius: 15px;
  background: white;
}

.care-team-category-editor label {
  display: grid;
  gap: 6px;
  color: #07544e;
  font-size: 13px;
  font-weight: 600;
}

.care-team-category-editor select,
.care-team-category-save {
  min-height: 44px;
}

.care-team-category-editor p {
  margin: 0;
  color: #62736f;
  font-size: 12px;
  line-height: 1.35;
}

.care-team-category-save {
  color: white;
  border: 0;
  border-radius: 12px;
  background: #07544e;
}

.care-team-history-intro {
  margin: 0 0 12px;
  color: #5b6e6a;
  font-size: 13px;
  line-height: 1.4;
}

.care-team-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(9, 78, 70, 0.09);
}

.care-team-history-row div {
  display: grid;
  gap: 3px;
}

.care-team-history-row strong {
  color: #064d48;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.care-team-history-row span {
  color: #6a7976;
  font-size: 12px;
}

.care-team-page button:focus-visible,
.care-team-page a:focus-visible,
.care-team-page select:focus-visible,
.care-team-page input:focus-visible {
  outline: 3px solid #d8aa4e;
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .care-team-page {
    gap: 13px;
  }

  .care-team-page-heading {
    grid-template-columns: minmax(0, 1fr) 52px;
    padding-inline: 6px;
  }

  .care-team-page-heading h3 {
    font-size: clamp(34px, 10vw, 39px);
  }

  .care-team-heading-mark {
    width: 52px;
    height: 52px;
  }

  .care-team-summary-metrics {
    padding-inline: 2px;
  }

  .care-team-summary-metric {
    grid-template-columns: 18px auto;
    gap: 3px;
    padding-inline: 1px;
  }

  .care-team-summary-metric dd {
    font-size: 22px;
  }

  .care-team-summary-metric dt {
    font-size: 11px;
  }

  .care-team-primary {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .care-team-primary-portrait {
    width: 92px;
    min-width: 92px;
    height: 138px;
    min-height: 138px;
    margin-top: 38px;
  }

  .care-team-primary-identity h4 {
    font-size: clamp(24px, 7.5vw, 29px);
  }

  .care-team-primary-badge {
    font-size: 11px;
  }

  .care-team-primary-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-team-list-toolbar {
    align-items: flex-start;
    padding-inline: 4px;
  }

  .care-team-list-toolbar-actions {
    max-width: 190px;
  }

  .care-team-provider-row {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 11px;
  }

  .care-team-provider-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .care-team-provider-avatar {
    width: 58px;
    min-width: 58px;
    height: 62px;
  }

  .care-team-provider-actions,
  .care-team-row-organize {
    padding-left: 68px;
  }

  .care-team-row-organize {
    grid-template-columns: minmax(0, 1fr) repeat(2, 44px);
  }

  .care-team-row-organize .care-team-move span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 330px) {
  .care-team-primary {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .care-team-primary-portrait {
    width: 80px;
    min-width: 80px;
    height: 122px;
    min-height: 122px;
  }

  .care-team-primary-label {
    font-size: 10px;
  }

  .care-team-primary-identity h4 {
    font-size: 23px;
  }

  .care-team-provider-actions {
    padding-left: 0;
  }

  .care-team-provider-call-action {
    flex: 1;
  }

  .care-team-row-organize {
    grid-template-columns: minmax(0, 1fr) repeat(2, 44px);
    padding-left: 0;
  }
}

@media (max-width: 260px) {
  .care-team-details-sheet .care-team-credential {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .care-team-details-sheet .care-team-credential strong {
    overflow-wrap: anywhere;
  }

  .care-team-page-heading {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .care-team-heading-mark {
    width: 44px;
    height: 44px;
  }

  .care-team-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
  }

  .care-team-summary-metric {
    min-height: 68px;
    padding: 7px 2px;
  }

  .care-team-summary-metric:nth-child(3) {
    border-left: 0;
  }

  .care-team-summary-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(9, 78, 70, 0.1);
  }

  .care-team-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-team-primary-portrait {
    width: 105px;
    min-width: 105px;
    height: 145px;
    min-height: 145px;
    margin: 0 auto;
  }

  .care-team-primary-identity h4,
  .care-team-primary-label,
  .care-team-provider-identity > .care-team-provider-specialty {
    overflow-wrap: anywhere;
  }

  .care-team-primary-badges {
    align-items: flex-start;
  }

  .care-team-primary-badge {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .care-team-list-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .care-team-list-toolbar-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .care-team-provider-summary {
    align-items: start;
  }

  .care-team-provider-identity > .care-team-provider-specialty {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .care-team-source-boundary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .care-team-provider-row,
  .care-team-provider-row *,
  .care-team-sheet-overlay,
  .care-team-details-sheet {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Active Voice focus: live transcript with close, orb, and mute only. */

html.voice-focus-mode,
body.voice-focus-mode {
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
}

body.voice-focus-mode {
  background: #f7f4ee;
}

body.voice-focus-mode #connection-banner,
body.voice-focus-mode #security-warning,
body.voice-focus-mode .app-header,
body.voice-focus-mode .tab-bar,
body.voice-focus-mode .profile-menu {
  display: none !important;
}

body.voice-focus-mode #app-view,
body.voice-focus-mode .content-shell {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
}

body.voice-focus-mode #panel-voice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  display: grid !important;
  grid-template-columns: minmax(58px, 1fr) clamp(150px, 44vw, 210px) minmax(58px, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "status status status"
    "transcript transcript transcript"
    "end orb mute";
  gap: clamp(8px, 1.8dvh, 16px) 8px;
  margin: 0;
  padding:
    max(20px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left)) !important;
  overflow: hidden;
  color: var(--green-900);
  background:
    radial-gradient(
      circle at 50% 93%,
      rgba(121, 110, 236, calc(0.035 + var(--voice-orb-live-energy, 0) * 0.035)),
      transparent 28%
    ),
    linear-gradient(180deg, #faf8f3 0%, #f5f3ed 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

body.voice-focus-mode #voice-stage,
body.voice-focus-mode #voice-control-dock,
body.voice-focus-mode .voice-primary-controls,
body.voice-focus-mode .voice-session-actions {
  display: contents !important;
}

body.voice-focus-mode .voice-stage-kicker,
body.voice-focus-mode .voice-stage::after,
body.voice-focus-mode .voice-aec-note,
body.voice-focus-mode .transcript-card .card-title-row,
body.voice-focus-mode .voice-save-state,
body.voice-focus-mode .voice-return-live,
body.voice-focus-mode .voice-recovery-actions,
body.voice-focus-mode #voice-start {
  display: none !important;
}

body.voice-focus-mode .voice-stage-copy {
  grid-area: status;
  width: min(100%, 720px);
  display: grid !important;
  justify-self: center;
  gap: 5px;
  margin: 0;
  padding: 0 clamp(8px, 3vw, 22px);
  color: var(--green-900);
  text-align: center;
}

body.voice-focus-mode .voice-stage-copy h2 {
  display: none;
}

body.voice-focus-mode .voice-primary-status {
  margin: 0;
  color: var(--green-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 9.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

body.voice-focus-mode .voice-session-detail {
  max-width: 560px;
  margin: 0 auto;
  color: #5f706c;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.45;
}

body.voice-focus-mode .transcript-card {
  grid-area: transcript;
  width: min(100%, 720px);
  height: 100%;
  min-height: 0;
  display: grid;
  justify-self: center;
  margin: 0;
  padding: clamp(8px, 2.4dvh, 22px) clamp(8px, 4vw, 28px);
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.voice-focus-mode #voice-transcript {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: clamp(10px, 2dvh, 18px);
  margin: 0;
  padding: 18px 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

body.voice-focus-mode #voice-transcript::-webkit-scrollbar {
  display: none;
}

body.voice-focus-mode .transcript .empty-state {
  width: min(100%, 620px);
  margin: auto;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: clamp(17px, 4.8vw, 23px);
  line-height: 1.5;
  text-align: center;
}

body.voice-focus-mode .transcript-line {
  width: min(100%, 680px);
  max-width: none;
  margin: 0 auto !important;
  padding: 0;
  color: var(--text-secondary);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(17px, 4.7vw, 23px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  opacity: 1;
}

body.voice-focus-mode .transcript-line:nth-last-child(2) {
  color: #344b46;
  opacity: 1;
}

body.voice-focus-mode .transcript-line:last-child {
  color: var(--green-900);
  opacity: 1;
}

body.voice-focus-mode .transcript-line.partial:last-child {
  opacity: 1;
}

body.voice-focus-mode .speaker {
  margin-bottom: 5px;
  color: #6d5fc3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.voice-focus-mode #voice-orb {
  grid-area: orb;
  width: clamp(150px, 44vw, 210px);
  max-width: 100%;
  align-self: end;
  justify-self: center;
  margin: 0;
  filter: drop-shadow(0 15px 22px rgba(45, 46, 95, 0.12));
}

body.voice-focus-mode #voice-mute,
body.voice-focus-mode #voice-stop {
  width: 58px !important;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  align-self: center;
  margin: 0;
  padding: 0;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 67, 63, 0.13);
  border-radius: 50%;
  box-shadow:
    0 10px 24px rgba(31, 43, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body.voice-focus-mode #voice-stop {
  grid-area: end;
  justify-self: end;
}

body.voice-focus-mode #voice-mute {
  grid-area: mute;
  justify-self: start;
}

body.voice-focus-mode #voice-stop:hover,
body.voice-focus-mode #voice-mute:hover {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(19, 67, 63, 0.2);
  transform: none;
}

body.voice-focus-mode #voice-stop:focus-visible,
body.voice-focus-mode #voice-mute:focus-visible {
  outline: 3px solid rgba(109, 95, 195, 0.35);
  outline-offset: 3px;
}

body.voice-focus-mode #voice-mute.is-muted {
  color: #8a3f39;
  background: #fae9e3;
  border-color: rgba(138, 63, 57, 0.18);
}

body.voice-focus-mode #voice-mute .voice-control-orb,
body.voice-focus-mode #voice-mute.is-muted .voice-control-orb,
body.voice-focus-mode .voice-end-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  margin: auto;
  color: currentColor;
  background: transparent;
  border: 0;
}

body.voice-focus-mode #voice-mute .voice-control-orb svg,
body.voice-focus-mode .voice-end-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.voice-focus-mode .voice-end-label,
body.voice-focus-mode #voice-mute .voice-control-label {
  display: none;
}

@media (max-height: 700px) {
  body.voice-focus-mode #panel-voice {
    grid-template-columns: minmax(54px, 1fr) clamp(132px, 35dvh, 168px) minmax(54px, 1fr);
    gap: 6px;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  body.voice-focus-mode #voice-orb {
    width: clamp(132px, 35dvh, 168px);
  }

  body.voice-focus-mode .voice-primary-status {
    font-size: clamp(28px, 7.8vw, 38px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.voice-focus-mode #panel-voice {
    background: linear-gradient(180deg, #faf8f3 0%, #f5f3ed 100%);
  }

  body.voice-focus-mode #voice-orb {
    filter: drop-shadow(0 12px 18px rgba(45, 46, 95, 0.1));
  }
}

/* A-16 accessibility baseline: bypass navigation and two-tone focus indicators. */

.skip-link {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 4000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--green-900);
  border-radius: 12px;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

a[href]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible,
.view-focus-target:focus {
  outline: 3px solid #0b4a46;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fffaf0 !important;
}

.file-input-label:has(+ input[type="file"]:focus-visible) {
  outline: 3px solid #0b4a46;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fffaf0 !important;
}

.view-focus-target {
  scroll-margin-top: 132px;
  border-radius: 6px;
}

body.voice-focus-mode .view-focus-target {
  scroll-margin-top: 20px;
}

@media (max-width: 431px) {
  .record-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
