/* Anamnesist is the parent workspace; Logbook retains its own clinical shell. */
.anamnesist-shell {
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% -30%, #dceaff 0, transparent 60%), var(--bg);
  font-family: var(--font-text);
}
.portal-topbar {
  height: 88px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
}
.anamnesist-wordmark {
  display: flex;
  align-items: center;
  width: 175px;
  flex: none;
}
.anamnesist-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-dark {
  display: none !important;
}
.auth-logo {
  width: 180px;
  height: auto;
  border-radius: 0;
  margin-bottom: 30px;
}
.auth-page .account-panel {
  padding: 35px;
  border-radius: 28px;
}
:root[data-theme='dark'] .brand-dark {
  display: block !important;
}
:root[data-theme='dark'] .brand-light {
  display: none !important;
}
.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.portal-user {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.portal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.portal-home-link .icon {
  width: 17px;
}
.portal-home-link:hover {
  color: var(--blue);
}
.portal-logbook-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 180ms,
    border-color 180ms,
    background 180ms;
}
.portal-logbook-back .icon {
  width: 15px;
  height: 15px;
}
.portal-logbook-back:hover {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
}
.admin-plan-expiry[hidden] {
  display: none;
}
.fmh-period-end-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.account-panel .fmh-period-end-field > label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 450;
}
.fmh-period-end-control {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
}
.fmh-period-end-control input[type='date'] {
  flex: 1;
  width: 0;
}
.fmh-ongoing-end {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.fmh-ongoing-end > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex: 1;
  flex-wrap: wrap;
}
.fmh-ongoing-end small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.fmh-ongoing-end > .icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.fmh-ongoing-end > .icon:last-child {
  color: var(--muted);
}
.fmh-reset-end {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  border-radius: 8px;
}
.fmh-reset-end .icon {
  width: 16px;
  height: 16px;
}
.fmh-reset-end:hover {
  background: var(--selection);
}
.fmh-period-end-control [hidden] {
  display: none !important;
}
.fmh-ongoing-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.fmh-ongoing-hint .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}
@media (max-width: 760px) {
  .portal-header-actions:has(.portal-logbook-back) .portal-home-link {
    display: none;
  }
  .portal-logbook-back {
    gap: 5px;
    padding-inline: 9px;
  }
  .fmh-ongoing-end small {
    display: none;
  }
}
.portal-main {
  padding: 36px clamp(22px, 4vw, 64px) 60px;
  outline: none;
}
.portal-main .account-layout {
  max-width: 1220px;
}
.portal-main .account-navigation {
  top: 24px;
  max-height: calc(100dvh - 48px);
}
.portal-home {
  max-width: 1040px;
  margin: 0 auto;
}
.portal-welcome {
  text-align: center;
  padding: 40px 0 48px;
}
.portal-emblem {
  display: block;
  width: 76px;
  margin: 0 auto 27px;
}
.portal-emblem img {
  display: block;
  width: 100%;
  height: 80px;
}
.portal-welcome p {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--muted);
}
.portal-welcome h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.065em;
  margin: 0 0 15px;
}
.portal-welcome h1 > span {
  color: #367aff;
}
.portal-welcome > div {
  font-size: 14px;
  color: var(--muted);
}
.portal-app-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
.portal-launch-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 35px #10255005;
  font: inherit;
  cursor: pointer;
  transition:
    transform 400ms var(--ease-response),
    box-shadow 300ms,
    border-color 250ms;
}
.portal-launch-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: 0 22px 45px #16357012;
}
.portal-launch-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.portal-launch-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border-radius: 19px;
  margin-bottom: 28px;
  z-index: 1;
}
.portal-launch-icon img {
  width: 100%;
  border-radius: inherit;
}
.account-launch .portal-launch-icon {
  color: #64748b;
  background: linear-gradient(140deg, #f6f8fb, #e4e8ef);
  border: 1px solid #dbe0e8;
}
.portal-launch-icon > .icon {
  width: 30px;
  height: 30px;
}
.portal-launch-copy {
  display: grid;
  position: relative;
  gap: 8px;
  z-index: 1;
  max-width: 85%;
}
.portal-launch-copy strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.portal-launch-copy small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 28ch;
}
.portal-launch-arrow {
  position: absolute;
  right: 28px;
  top: 32px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    transform 300ms var(--ease-response),
    color 200ms;
}
.portal-launch-arrow .icon {
  width: 17px;
}
.portal-launch-card:hover .portal-launch-arrow {
  color: var(--blue);
  transform: translateX(3px);
}
.portal-logbook-art {
  position: absolute;
  right: 30px;
  bottom: -17px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  opacity: 0.13;
  transform: rotate(-12deg);
  pointer-events: none;
}
.portal-logbook-art i {
  width: 27px;
  height: 55%;
  background: #1469f2;
  border-radius: 10px 10px 0 0;
  transition: height 550ms var(--ease-response);
}
.portal-logbook-art i:nth-child(2) {
  height: 75%;
}
.portal-logbook-art i:nth-child(3) {
  height: 48%;
}
.portal-logbook-art i:nth-child(4) {
  height: 90%;
}
.portal-logbook-art i:nth-child(5) {
  height: 100%;
}
.logbook-launch:hover .portal-logbook-art i:nth-child(odd) {
  height: 85%;
}
.portal-account-art {
  position: absolute;
  right: -15px;
  bottom: -45px;
  width: 190px;
  height: 190px;
  color: #60718a;
  opacity: 0.07;
  transform: rotate(-10deg);
  pointer-events: none;
}
.portal-account-art .icon {
  width: 100%;
  height: 100%;
  stroke-width: 1;
}
.portal-home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
}
.portal-home-footer > span,
.portal-plan-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.portal-home-footer .icon {
  width: 14px;
  height: 14px;
}
.portal-plan-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 8px;
}
.anamnesist-entry {
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  margin-bottom: 13px;
  padding-inline: 11px;
  min-height: 36px;
  border-radius: 12px;
}
.anamnesist-entry:hover {
  background: var(--surface);
  border-color: var(--line);
}
.anamnesist-entry .portal-mark {
  background: transparent;
}
.portal-mark img {
  width: 18px;
  height: 20px;
}
.anamnesist-entry > span:nth-child(2) {
  font-size: 12px;
}
.anamnesist-entry .portal-open .icon {
  width: 15px;
}
:root[data-theme='dark'] .anamnesist-shell {
  background: radial-gradient(ellipse at 50% -50%, #142852 0, transparent 65%), var(--bg);
}
:root[data-theme='dark'] .account-launch .portal-launch-icon {
  background: linear-gradient(140deg, #424957, #252c38);
  color: #d8e2ef;
  border-color: #ffffff15;
}
:root[data-theme='dark'] .portal-logbook-art {
  opacity: 0.24;
}
:root[data-theme='dark'] .portal-account-art {
  color: #aab7ca;
  opacity: 0.13;
}

/* V1's travelling, raised selection, in the compact V2 footprint. */
.dashboard-page .brief-panel .metrics {
  position: relative;
  padding: 5px;
  gap: 3px;
  border-radius: 21px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 65%, var(--surface));
  isolation: isolate;
}
.brief-slider {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 0;
  top: 0;
  width: var(--metric-width, 25%);
  height: var(--metric-height, 100%);
  transform: translate(var(--metric-x, 0px), var(--metric-y, 0px));
  background: var(--surface);
  border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  box-shadow:
    0 5px 18px #15213a09,
    0 1px 3px #15213a03;
  transition:
    transform 420ms var(--ease-response),
    width 420ms var(--ease-response),
    height 420ms var(--ease-response);
}
.dashboard-page .brief-panel .metrics > .metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'label' 'value';
  row-gap: 12px;
  padding: 12px 17px 13px;
  min-height: 132px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  border-radius: 17px;
  z-index: 1;
  transform: none;
  overflow: visible;
}
.dashboard-page .brief-panel .metric::before {
  display: none;
}
.dashboard-page .brief-panel .metric.rose {
  --metric-vivid: #dc378c;
}
.dashboard-page .brief-panel .metric .tile-icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--metric-vivid);
}
.dashboard-page .brief-panel .metric .tile-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}
.dashboard-page .brief-panel .metric-top {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.dashboard-page .brief-panel .metric-value {
  grid-area: value;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  align-self: end;
}
.dashboard-page .brief-panel .metric-value strong {
  font-family: var(--font-display);
  font-size: clamp(31px, 2.5vw, 38px);
  font-weight: 630;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .brief-panel .metric-value small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.dashboard-page .brief-panel .metric.is-highlighted .tile-icon {
  background: var(--metric-vivid);
  color: var(--metric-ink);
  transition:
    background 250ms ease,
    color 250ms ease;
}
.dashboard-page .brief-panel .metric.amber .tile-icon {
  color: #bc8900;
}
:root[data-theme='dark'] .dashboard-page .brief-panel .metric.amber .tile-icon {
  color: #ffd60a;
}
.dashboard-page .brief-panel .metric .metric-name {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.25;
  transition: color 250ms;
}
.dashboard-page .brief-panel .metric:is(.is-highlighted, :focus-visible) .metric-name {
  color: var(--text);
}
.dashboard-page .brief-panel .metrics > .metric:is(:hover, :active, :focus-visible) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text);
  transform: none;
}
.dashboard-page .brief-panel .metric:is(:hover, :active, :focus-visible) .metric-sub {
  color: var(--muted);
}
.dashboard-page .brief-panel .metric:is(:hover, :active, :focus-visible) .metric-name {
  color: var(--text);
}
.dashboard-page .brief-panel .metric .metric-arrow {
  position: absolute;
  right: 15px;
  top: 21px;
  width: 15px;
  color: var(--metric-vivid);
  opacity: 0;
}
.dashboard-page .brief-panel .metric.is-highlighted .metric-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.dashboard-page .brief-panel .metric:is(:hover, :active, :focus-visible) .metric-arrow {
  color: var(--metric-vivid);
}
:root[data-theme='dark'] .dashboard-page .brief-panel .metrics {
  background: #17191d;
}
:root[data-theme='dark']
  .dashboard-page
  .brief-panel
  .metric:not(.is-highlighted):not(.amber)
  .tile-icon {
  color: color-mix(in srgb, var(--metric-vivid) 70%, white);
}
:root[data-theme='dark'] .brief-slider {
  background: #2a2d33;
  border-color: #ffffff0c;
  box-shadow:
    0 5px 20px #0003,
    inset 0 1px 0 #ffffff08;
}
.dashboard-page .brief-panel .metric:hover .tile-icon {
  transform: none;
}
.dashboard-page .brief-panel .metric:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.dashboard-page .brief-scope {
  border: 0;
  background: transparent;
  padding: 0;
}

/* One settings workspace, with a restrained and consistent icon language. */
.portal-main .account-layout {
  margin-inline: auto;
  gap: 28px;
}
.account-nav-identity > div {
  flex: 1;
  overflow: hidden;
}
.account-nav-identity :is(strong, small) {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
.account-navigation nav .account-section-icon {
  background: transparent;
  color: var(--muted);
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 0;
  box-shadow: none;
}
.account-navigation nav .account-section-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.account-navigation nav button[aria-current] .account-section-icon {
  color: var(--blue);
}
.account-navigation nav button {
  gap: 11px;
  min-height: 45px;
}
.account-navigation nav button > small {
  font-size: 10px;
}
.account-content :is(.account-row-icon, .profile-block-icon, .account-backup-symbol) {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.account-content .account-panel :is(h2, p) {
  text-wrap: pretty;
}
.account-content .account-identity p {
  overflow-wrap: anywhere;
}
.account-content .admin-plan-expiry small {
  max-width: 65ch;
  line-height: 1.6;
}
.workspace-loading {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.workspace-loading > img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.workspace-loading > strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.workspace-loading > p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.workspace-loading-track {
  width: 90px;
  height: 3px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
  margin-top: 8px;
}
.workspace-loading-track::after {
  content: '';
  display: block;
  height: 100%;
  width: 45%;
  background: var(--blue);
  border-radius: inherit;
  animation: registry-loading 1.2s ease-in-out infinite alternate;
}
@keyframes registry-loading {
  to {
    transform: translateX(120%);
  }
}
@media (max-width: 760px) {
  .portal-main .account-layout {
    gap: 16px;
  }
  .dashboard-page .brief-panel .metrics > .metric {
    padding: 15px;
    row-gap: 16px;
    min-height: 140px;
  }
  .dashboard-page .brief-panel .metric-value strong {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-loading-track::after {
    animation: none;
    width: 100%;
    opacity: 0.5;
  }
}

/* An unmistakable view-as state, using glass rather than an opaque warning box. */
.workspace-banner {
  top: 90px;
  padding: 13px 16px;
  border: 1px solid #518eff6b;
  border-radius: 18px;
  background: linear-gradient(115deg, #eaf3ffdf, #ffffffb5);
  color: #124c9b;
  box-shadow:
    0 7px 24px #0d39721a,
    inset 0 1px 0 #ffffffcc;
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}
.workspace-banner > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.workspace-banner > span > .icon {
  background: #146cf2;
  color: white;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  padding: 8px;
  flex: none;
}
.workspace-banner > span > span {
  display: grid;
  gap: 2px;
}
.workspace-banner small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.035em;
  color: #466d9f;
}
.workspace-banner strong {
  font-size: 14px;
  font-weight: 650;
}
.workspace-banner .workspace-exit {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid #7c9ecc55;
  background: #ffffffb0;
  color: #174c93;
  font-size: 12px;
  padding: 9px 14px;
  white-space: nowrap;
}
.portal-main .workspace-banner {
  top: 15px;
  max-width: 1220px;
  margin-inline: auto;
  margin-bottom: 24px;
}
:root[data-theme='dark'] .workspace-banner {
  background: linear-gradient(115deg, #17355be6, #132239cc);
  border-color: #6baaff5e;
  color: #e2edff;
  box-shadow:
    0 7px 24px #0004,
    inset 0 1px 0 #ffffff10;
}
:root[data-theme='dark'] .workspace-banner small {
  color: #9fbde6;
}
:root[data-theme='dark'] .workspace-banner .workspace-exit {
  background: #ffffff12;
  color: #d9eaff;
  border-color: #ffffff22;
}
.account-content .admin-view-as {
  background: linear-gradient(120deg, #edf5ffcc, #f7faff99);
  border-color: #a3c4f169;
  color: #1559b2;
  border-radius: 13px;
  padding: 12px 17px;
  box-shadow: inset 0 1px 0 white;
  backdrop-filter: blur(18px) saturate(160%);
}
.subscription-expiry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.subscription-expiry .icon {
  width: 19px;
  color: var(--muted);
}
.subscription-expiry > span {
  display: grid;
  gap: 5px;
}
.subscription-expiry small {
  color: var(--muted);
}
.max-badge {
  background: #151e34;
  color: #e8edff;
  border-color: #151e34;
}
.app-shell:has(.workspace-banner) .protocol-chat-page {
  height: calc(100dvh - 232px);
  min-height: 440px;
}
.protocol-preference {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  cursor: pointer;
}
.protocol-preference input {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
}
.protocol-preferences {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.protocol-preferences > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 32px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.protocol-preferences > summary::-webkit-details-marker {
  display: none;
}
.protocol-preferences > summary .icon {
  width: 15px;
  height: 15px;
}
.protocol-preferences > summary .icon:last-child {
  transition: transform 200ms ease;
}
.protocol-preferences[open] > summary .icon:last-child {
  transform: rotate(180deg);
}
.protocol-preferences .protocol-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 6px;
  margin: 0;
  color: var(--text);
}
.protocol-preference > span {
  display: grid;
  gap: 5px;
}
.protocol-preference strong {
  font-size: 13px;
  font-weight: 550;
}
.protocol-preference small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.protocol-preferences .protocol-preference input {
  appearance: none;
  flex: 0 0 36px;
  width: 36px;
  height: 22px;
  border-radius: 20px;
  border: 0;
  background: var(--line);
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: background 180ms ease;
}
.protocol-preferences .protocol-preference input::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: transform 180ms ease;
}
.protocol-preferences .protocol-preference input:checked {
  background: var(--blue);
}
.protocol-preferences .protocol-preference input:checked::after {
  transform: translateX(14px);
}
.protocol-preferences .protocol-preference input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.protocol-sources .repertoire-source {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.protocol-sources .repertoire-source small {
  color: var(--muted);
  font-size: 11px;
}
.repertoire-admin > header {
  margin-bottom: 22px;
}
.repertoire-admin-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.repertoire-admin-row > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.repertoire-admin-row strong {
  font-size: 14px;
}
.repertoire-admin-row small {
  color: var(--muted);
}
.repertoire-create {
  margin-top: 22px;
}
.repertoire-create > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  padding-block: 12px;
  list-style: none;
}
.repertoire-create > summary .icon {
  width: 18px;
}
.repertoire-create textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  padding: 15px;
  resize: vertical;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
}
.account-content .repertoire-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.5;
}
.repertoire-check input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: none;
  accent-color: var(--blue);
}
.account-tier-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-plan-expiry {
  margin-block: 10px 20px;
}
@media (max-width: 760px) {
  .portal-topbar {
    height: 72px;
    padding-inline: 20px;
    gap: 15px;
  }
  .anamnesist-wordmark {
    width: 143px;
  }
  .portal-header-actions {
    gap: 10px;
  }
  .portal-header-actions .theme-switcher {
    display: none;
  }
  .portal-home-link span {
    display: none;
  }
  .portal-main {
    padding: 24px 18px 40px;
  }
  .portal-welcome {
    padding: 27px 0 32px;
  }
  .portal-app-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .portal-launch-card {
    min-height: 220px;
    padding: 24px;
    border-radius: 26px;
  }
  .portal-launch-icon {
    margin-bottom: 22px;
    width: 53px;
    height: 53px;
  }
  .portal-launch-copy strong {
    font-size: 25px;
  }
  .portal-home-footer {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
  .workspace-banner {
    top: 72px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 11px;
  }
  .workspace-banner .workspace-exit {
    white-space: normal;
    max-width: 115px;
    padding: 8px 10px;
    line-height: 1.3;
  }
  .workspace-banner small {
    font-size: 9px;
  }
  .workspace-banner strong {
    font-size: 12px;
  }
  .workspace-banner > span {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brief-slider,
  .portal-launch-card,
  .portal-launch-arrow,
  .portal-logbook-art i {
    transition: none;
  }
}
