/* Alloha Doctor: brand palette supplied by the user; glass belongs to controls. */
:root {
  --background: #f5f7fc;
  --surface: #ffffff;
  --surface-subtle: #f1f5fd;
  --surface-hover: #e6eeff;
  --sidebar: #edf2fc;
  --text: #111745;
  --text-secondary: #485575;
  --text-tertiary: #586682;
  --border: #d4dced;
  --control-border: #8192b1;
  --accent: #083acf;
  --accent-fill: #083acf;
  --accent-hover: #05077c;
  --accent-soft: #e6eeff;
  --accent-border: #acbfee;
  --focus: #083acf;
  --radius: 18px;
  --radius-small: 11px;
  --brand-ink: #05077c;
  --brand-doc: #083acf;
  --brand-green: #00ee52;
  --glass: #f1f5fc;
  --glass-edge: #fff;
  --glass-line: #cdd8ed;
  --glass-shadow: 0 8px 28px -20px #172c6b40, inset 0 1px 0 var(--glass-edge);
  --art-line: #b3d2ff;
  --art-paper: #ffffffbc;
  --art-soft: #b3d2ff50;
  --art-shadow: #05077c17;
  --ambient:
    radial-gradient(ellipse at 5% 5%, #b3d2ff38, transparent 44%),
    radial-gradient(ellipse at 90% 94%, #00ee5208, transparent 36%);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b1023;
    --surface: #141d34;
    --surface-subtle: #1b2744;
    --surface-hover: #26385b;
    --sidebar: #131e37;
    --text: #f1f5ff;
    --text-secondary: #bfcae2;
    --text-tertiary: #a6b6d3;
    --border: #334362;
    --control-border: #7186ad;
    --accent: #b3d2ff;
    --accent-fill: #083acf;
    --accent-hover: #194ce0;
    --accent-soft: #223558;
    --accent-border: #536fa3;
    --focus: #b3d2ff;
    --brand-ink: #e6eeff;
    --brand-doc: #00ee52;
    --glass: #18243d;
    --glass-edge: #b3d2ff2b;
    --glass-line: #3a4c70;
    --glass-shadow: 0 12px 32px -20px #0008, inset 0 1px 0 var(--glass-edge);
    --art-line: #8cacdb;
    --art-paper: #263a659e;
    --art-soft: #083acf24;
    --art-shadow: #0000004a;
    --ambient:
      radial-gradient(ellipse at 5% 5%, #083acf1f, transparent 44%),
      radial-gradient(ellipse at 90% 94%, #00ee5207, transparent 36%);
  }
}
body {
  background: var(--ambient), var(--background);
}
.doctor-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--brand-ink);
  white-space: nowrap;
  line-height: 1;
}
.alloha-wordmark {
  display: block;
  width: 142px;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
}
.doctor-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 44px;
  letter-spacing: -0.065em;
}
.doctor-name strong {
  color: var(--brand-doc);
  font-weight: 720;
  position: relative;
}
.doctor-name strong::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -7px;
  left: 3px;
  right: 2px;
  background: var(--brand-green);
  border-radius: 2px;
}
.doctor-name > span {
  font-weight: 330;
}
.doctor-brand.compact {
  gap: 10px;
}
.compact .alloha-wordmark {
  width: 82px;
}
.compact .doctor-name {
  font-size: 28px;
}
.compact .doctor-name strong::after {
  bottom: -5px;
  height: 2px;
}
.app {
  gap: 12px;
  padding: 12px;
  grid-template-columns: 228px minmax(0, 1fr);
}
.sidebar {
  top: 12px;
  height: calc(100dvh - 24px);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  padding: 28px 14px 18px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
}
.brand {
  margin: 3px 4px 44px;
}
.brand .doctor-brand {
  max-width: 100%;
}
.nav-item {
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 46px;
  gap: 11px;
}
.nav-item.selected {
  border-color: var(--accent-border);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 3px 8px -6px #05077c40;
  background: linear-gradient(150deg, var(--surface), var(--accent-soft)), var(--accent-soft);
}
.nav-item.selected .icon {
  stroke-width: 1.85;
}
.topbar {
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  padding: 12px 26px;
}
.page {
  padding: 32px 26px 64px;
}
.panel {
  box-shadow:
    0 6px 24px -20px var(--art-shadow),
    inset 0 1px 0 var(--glass-edge);
}
.primary,
.secondary {
  min-height: 44px;
  border-radius: 12px;
  transition:
    background-color 160ms,
    box-shadow 160ms,
    transform 160ms;
}
.primary {
  background: linear-gradient(155deg, #1249d8, #083acf), var(--accent-fill);
  border: 1px solid #ffffff26;
  box-shadow:
    inset 0 1px 0 #ffffff38,
    0 4px 12px -7px #083acfaa;
}
.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow:
    inset 0 1px 0 #ffffff28,
    0 5px 15px -7px #083acfaa;
}
.secondary {
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.primary:active:not(:disabled),
.secondary:active:not(:disabled) {
  transform: translateY(1px);
}
.environment {
  background: var(--surface);
  border-color: var(--border);
}
.monogram,
.upload-symbol,
.job-icon {
  border: 1px solid var(--accent-border);
  background: linear-gradient(145deg, var(--surface), var(--accent-soft));
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.profile .quiet {
  min-height: 44px;
}
.file-drop {
  background: var(--surface-subtle);
  border-radius: 15px;
}
.project-detail,
.project-diagram {
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
}
.project-metrics > div {
  background: var(--surface-subtle);
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(48px, 7vw, 108px);
  row-gap: 40px;
  width: 100%;
  max-width: 1392px;
  min-height: 100dvh;
  padding: 46px clamp(28px, 6vw, 88px) 28px;
  background: transparent;
}
.login-masthead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.login-masthead > .login-context {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.login-story {
  align-self: center;
  min-width: 0;
  padding-top: 20px;
}
.login-story h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 570;
  line-height: 1.09;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
}
.login-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.login-story > p:not(.eyebrow) {
  max-width: 395px;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}
.login-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
  color: var(--text-secondary);
}
.login-signature li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.login-signature .icon {
  color: var(--accent);
}
.login-card {
  position: relative;
  max-width: 402px;
  width: 100%;
  align-self: center;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  padding: 36px;
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 20px 65px -38px var(--art-shadow);
}
.login-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24%;
  right: 24%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-edge),
    transparent
  );
}
.login-card .login-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  color: var(--accent);
  background: linear-gradient(145deg, var(--surface), var(--accent-soft));
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.login-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.login-card h2 {
  font-size: 26px;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}
.login-card > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 26px;
}
.login-card label {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.login-card input {
  height: 48px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--control-border);
}
.login-card .primary {
  height: 48px;
  margin-top: 8px;
  justify-content: space-between;
}
.login-card > small {
  margin-top: 21px;
  font-size: 11px;
}
.login-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 11px;
}
.login-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* The hero is a bounded, static vector composition. No continuously rendered canvas. */
.login-art {
  position: relative;
  width: 100%;
  height: 328px;
  margin-top: 16px;
  isolation: isolate;
}
.art-orbit {
  position: absolute;
  border: 1px solid var(--art-soft);
  width: 83%;
  height: 180px;
  border-radius: 50%;
  left: 3%;
  top: 90px;
  transform: rotate(-22deg);
}
.orbit-two {
  width: 100%;
  height: 236px;
  top: 61px;
  left: -5%;
}
.art-routes {
  position: absolute;
  inset: -12px -20px 0;
  width: calc(100% + 30px);
  height: 100%;
  stroke-width: 1.4;
}
.route-muted {
  stroke: var(--art-line);
  opacity: 0.38;
}
.route-blue {
  stroke: var(--accent);
  opacity: 0.65;
}
.route-green {
  stroke: var(--brand-green);
}
.route-node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.route-node.green {
  stroke: var(--brand-green);
}
.art-sheet {
  position: absolute;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  height: 252px;
  width: 228px;
  left: 24%;
  top: 16px;
}
.sheet-back {
  background: linear-gradient(145deg, var(--art-soft), transparent);
  border-color: var(--art-line);
  transform: rotate(-13deg) translate(-17px, 9px);
  opacity: 0.65;
}
.sheet-front {
  transform: rotate(-7deg);
  background: linear-gradient(145deg, var(--surface), var(--art-paper));
  border-color: var(--glass-line);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    12px 22px 40px -22px var(--art-shadow);
  padding: 19px 21px 14px;
}
.sheet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--text-secondary);
}
.sheet-doc {
  font-weight: 710;
  font-size: 40px;
  letter-spacing: -0.075em;
  color: var(--brand-doc);
  line-height: 1.25;
  margin-top: 5px;
}
.sheet-doc span {
  color: var(--brand-green);
}
.sheet-rule {
  width: 30px;
  height: 2px;
  background: var(--brand-green);
  margin-top: 8px;
}
.sheet-network {
  display: block;
  width: 100%;
  height: 90px;
  margin: 4px 0;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.sheet-network circle {
  fill: var(--surface);
}
.sheet-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sheet-lines i {
  height: 3px;
  border-radius: 2px;
  width: 82%;
  background: var(--art-line);
  opacity: 0.5;
}
.sheet-lines i:nth-child(2) {
  width: 61%;
}
.sheet-lines i:nth-child(3) {
  width: 71%;
}
.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 6px;
  letter-spacing: 0.1em;
}
.sheet-footer > span:last-child {
  font-size: 15px;
}
.art-lens,
.art-node {
  position: absolute;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface), var(--art-paper));
  color: var(--brand-doc);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 12px 24px -15px var(--art-shadow);
}
.art-lens {
  width: 76px;
  height: 76px;
  border-radius: 23px;
  right: 4%;
  top: 37px;
  transform: rotate(9deg);
}
.art-node {
  width: 53px;
  height: 53px;
  border-radius: 17px;
  left: 8%;
  bottom: 67px;
  transform: rotate(-9deg);
}
.art-caption {
  position: absolute;
  bottom: 9px;
  left: 24%;
  color: var(--text-tertiary);
  font-size: 10px;
  letter-spacing: 0.03em;
}
@supports (backdrop-filter: blur(1px)) {
  :root {
    --glass: #f4f7ffe0;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --glass: #17223bdc;
    }
  }
  .sidebar,
  .topbar,
  .login-card {
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
  }
}
@media (max-width: 1100px) {
  .login-page {
    column-gap: 42px;
    padding-inline: 40px;
  }
  .login-story h1 {
    font-size: 47px;
  }
  .login-card {
    padding: 29px;
  }
  .art-sheet {
    left: 19%;
  }
  .art-lens {
    right: 0;
    width: 66px;
    height: 66px;
  }
}
@media (max-width: 820px) {
  .app {
    display: block;
    padding: 8px;
  }
  .sidebar {
    position: static;
    height: auto;
    border-radius: 20px;
    padding: 17px 16px 12px;
    margin-bottom: 8px;
  }
  .brand {
    margin: 0;
  }
  .topbar {
    padding: 14px 18px;
  }
  .page {
    padding: 24px 18px 40px;
  }
  .main-nav {
    gap: 8px;
  }
  .nav-item {
    padding: 10px;
  }
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.92fr);
    column-gap: 28px;
    row-gap: 34px;
    padding: 30px 28px 22px;
  }
  .login-masthead > .login-context {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
  .login-story h1 {
    font-size: 38px;
  }
  .login-story > p:not(.eyebrow) {
    font-size: 14px;
  }
  .login-signature {
    gap: 10px 12px;
  }
  .login-signature li {
    font-size: 11px;
  }
  .login-card {
    padding: 25px;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .login-art {
    height: 270px;
  }
  .art-sheet {
    left: 14%;
    width: 185px;
    height: 225px;
    padding: 15px;
  }
  .sheet-heading {
    font-size: 6px;
  }
  .sheet-doc {
    font-size: 34px;
  }
  .sheet-network {
    height: 75px;
  }
  .art-lens {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    right: -4px;
    top: 20px;
  }
  .art-lens .icon {
    width: 28px;
  }
  .art-node {
    left: 0;
    width: 44px;
    height: 44px;
    bottom: 46px;
    border-radius: 14px;
  }
  .art-caption {
    bottom: 0;
    left: 10%;
    font-size: 9px;
  }
  .art-routes {
    inset-inline: -8px;
    width: calc(100% + 8px);
  }
}
@media (max-width: 650px) {
  .login-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px 24px 24px;
  }
  .login-masthead {
    justify-content: center;
  }
  .login-masthead > .login-context {
    display: none;
  }
  .login-masthead .alloha-wordmark {
    width: 114px;
  }
  .login-masthead .doctor-name {
    font-size: 36px;
  }
  .login-story {
    text-align: center;
    padding: 10px 0 0;
    align-self: stretch;
  }
  .login-story h1 {
    font-size: 36px;
    margin-bottom: 14px;
  }
  .login-story > p:not(.eyebrow) {
    margin: 0 auto;
    max-width: 305px;
    font-size: 13px;
  }
  .login-signature {
    justify-content: center;
    margin-top: 17px;
  }
  .login-art {
    display: none;
  }
  .login-card {
    max-width: 410px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
  }
  .login-card .login-symbol {
    display: none;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .login-footer {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 10px;
  }
  .login-footer > span:last-child {
    flex-basis: 100%;
    text-align: center;
  }
}
@media (max-width: 400px) {
  .compact .alloha-wordmark {
    width: 70px;
  }
  .compact .doctor-name {
    font-size: 25px;
  }
  .compact.doctor-brand {
    gap: 8px;
  }
  .profile .avatar {
    display: none;
  }
  .page {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --glass: var(--surface);
    --art-paper: var(--surface);
    --glass-line: var(--control-border);
    --ambient: none;
  }
  .sidebar,
  .topbar,
  .login-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sheet-front,
  .art-lens,
  .art-node {
    background: var(--surface);
  }
  .sheet-back,
  .art-orbit {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .sidebar,
  .topbar,
  .login-card,
  .primary,
  .secondary,
  .panel {
    background: Canvas;
    color: CanvasText;
    border: 1px solid ButtonText;
    box-shadow: none;
    backdrop-filter: none;
  }
  .doctor-brand,
  .doctor-name strong {
    color: CanvasText;
  }
  .doctor-name strong::after {
    background: Highlight;
  }
  .login-art {
    display: none;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .sidebar,
  .topbar,
  .login-card,
  .panel {
    background: white;
    backdrop-filter: none;
    box-shadow: none;
  }
}
