:root {
  color-scheme: light;
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #dce6f1;
  --line-strong: #c5d4e5;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --blue: #1f5fbf;
  --blue-2: #174f9b;
  --cyan: #1589b5;
  --teal: #0b8f83;
  --green: #15966a;
  --clinical: #66867d;
  --bluegray: #64748b;
  --shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .13);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(203, 213, 225, .34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(203, 213, 225, .28) 1px, transparent 1px),
    linear-gradient(135deg, rgba(232, 247, 244, .76) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 48%, #edf4f8 100%);
  background-size: 44px 44px, 44px 44px, auto;
}
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
i[data-lucide] { min-width: 1em; min-height: 1em; display: inline-grid; place-items: center; font-style: normal; }
i[data-lucide]::before { content: attr(data-fallback); font-size: 11px; font-weight: 900; }
i.local-lucide-icon::before { content: none; }
i.local-lucide-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); border-color: #bdd5ff; }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.btn.secondary { color: #0f766e; border-color: #b7e4dc; background: linear-gradient(180deg, #f0fdfa, #ffffff); }
.btn.ghost { height: 34px; background: #f8fafc; }
.btn:disabled { cursor: not-allowed; color: var(--muted-2); background: #f1f5f9; transform: none; box-shadow: none; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 26px rgba(31, 95, 191, .18);
}
.brand strong, .brand > span { display: block; font-size: 18px; }
.brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .78fr);
}
.login-hero {
  position: relative;
  padding: 54px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(31, 95, 191, .12);
  border-radius: 8px;
  pointer-events: none;
}
.login-hero-inner {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
}
.login-kicker {
  width: max-content;
  margin-top: 42px;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #174f9b;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}
.login-hero h1 { margin: 16px 0 12px; font-size: 44px; line-height: 1.1; letter-spacing: 0; }
.login-hero p { max-width: 590px; margin: 0; color: var(--body); font-size: 15px; line-height: 1.78; }
.login-system-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.login-system-strip a {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.login-system-strip a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.login-system-strip b { display: block; font-size: 24px; line-height: 1; }
.login-system-strip span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.login-flow {
  width: min(570px, 100%);
  margin-top: 16px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #cde2f8;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}
.login-flow div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #174f9b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.login-flow i {
  height: 1px;
  background: linear-gradient(90deg, #bfdbfe, #99f6e4);
}
.clinical-panel {
  width: min(570px, 100%);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cde2f8;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff, #f0f9ff);
  box-shadow: var(--shadow);
}
.clinical-panel span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.clinical-panel b { display: block; margin-top: 6px; color: #075985; font-size: 13px; }
.medical-grid-card {
  position: absolute;
  z-index: 0;
  right: 4.8vw;
  top: 86px;
  width: 238px;
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, .20);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}
.grid-head, .grid-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid-head span { color: var(--muted); font-size: 11px; font-weight: 900; }
.grid-head b { color: #0f766e; font-size: 12px; }
.vital-line { display: grid; gap: 6px; margin: 13px 0; }
.vital-line i { display: block; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #dbeafe, #0ea5e9); }
.vital-line i:nth-child(2) { width: 72%; background: linear-gradient(90deg, #dbeafe, #14b8a6); }
.vital-line i:nth-child(3) { width: 88%; background: linear-gradient(90deg, #dbeafe, #94a3b8); }
.vital-line i:nth-child(4) { width: 54%; background: linear-gradient(90deg, #dbeafe, #22c55e); }
.grid-foot span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 900; }
.login-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 34px clamp(52px, 7vw, 110px) 34px clamp(28px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(247,252,255,.94) 42%, rgba(239,248,251,.98) 100%);
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, .14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 54% 48%, #000 0%, rgba(0,0,0,.66) 42%, transparent 78%);
}
.login-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(520px, 82%);
  aspect-ratio: 1;
  right: -130px;
  top: 12%;
  border: 1px solid rgba(14, 137, 181, .16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, rgba(31, 95, 191, .16), transparent 32%),
    radial-gradient(circle at 64% 62%, rgba(11, 143, 131, .18), transparent 34%);
  box-shadow:
    -120px 190px 130px rgba(14, 137, 181, .11),
    -220px -80px 150px rgba(31, 95, 191, .08);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(448px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-lg);
}
.login-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
  border-radius: 999px;
}
.login-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-card-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.login-card h2 { margin: 0 0 4px; font-size: 23px; }
.login-card p { margin: 0; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field span { color: var(--muted); font-size: 12px; font-weight: 800; }
.field-row { display: grid; grid-template-columns: minmax(112px, .68fr) minmax(0, 1.32fr); gap: 10px; }
.field input, .field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: 0;
  background: #fff;
}
.field input:focus, .field select:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.login-card .btn.primary { width: 100%; height: 44px; margin-top: 4px; }
.login-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.login-assurance span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}
.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.portal {
  min-height: 100vh;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px 32px 46px;
}
.topbar {
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.topbar-center {
  justify-self: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.topbar-center span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.topbar-center span:first-child { color: #0f766e; background: #ecfdf5; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  font-weight: 900;
}
.user-pill strong { font-size: 13px; }
.user-pill small { color: var(--muted); font-size: 11px; font-weight: 700; }

.portal-hero {
  position: relative;
  min-height: 166px;
  margin-top: 10px;
  padding: 20px 24px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(135deg, #174f9b 0%, #0b7181 55%, #0f766e 100%);
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 18px;
  overflow: hidden;
}
.portal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #2dd4bf, #34d399, #fbbf24);
}
.hero-copy { position: relative; z-index: 1; align-self: center; }
.eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 900;
}
.portal-hero h1 { margin: 10px 0 6px; font-size: 32px; line-height: 1.12; letter-spacing: 0; }
.portal-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.84); line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero-actions .btn { min-width: 136px; }
.hero-console {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(15,23,42,.22);
  backdrop-filter: blur(14px);
}
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.console-head span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.console-head b { color: #bbf7d0; }
.console-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.console-grid div {
  min-height: 56px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.10);
}
.console-grid small { display: block; color: rgba(255,255,255,.66); font-weight: 800; }
.console-grid strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.signal-lines { display: grid; gap: 6px; margin-top: 12px; }
.signal-lines i { display: block; height: 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(125, 211, 252, .92)); }
.signal-lines i:nth-child(2) { width: 76%; }
.signal-lines i:nth-child(3) { width: 58%; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(52, 211, 153, .9)); }
.signal-lines i:nth-child(4) { width: 88%; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(148, 163, 184, .78)); }

.workspace-strip {
  min-height: 52px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.workspace-strip span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.workspace-strip strong { display: block; margin-top: 3px; font-size: 16px; }
.workspace-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.workspace-status b {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #174f9b;
  background: #eff6ff;
  font-size: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.metric-card {
  position: relative;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: .78;
}
.metric-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: #174f9b; border-radius: 8px; background: #eff6ff; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.metric-card strong { display: block; margin-top: 3px; font-size: 22px; line-height: 1.08; }
.metric-card small { display: block; margin-top: 3px; color: var(--muted); font-weight: 700; }

.systems-panel, .foundation-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}
.section-head span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.section-head h2 { margin: 3px 0 0; font-size: 22px; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.section-head.compact { align-items: start; margin-bottom: 10px; }
.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.system-grid > *, .metric-grid > *, .foundation-list > * { min-width: 0; }
.system-card {
  position: relative;
  min-height: 158px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  display: grid;
  align-content: space-between;
  overflow: hidden;
}
.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #dbe7f5;
}
.system-card.ready::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.system-card.prototype::before { background: linear-gradient(90deg, #2563eb, #6f8f85); }
.system-card.progress::before { background: linear-gradient(90deg, var(--clinical), #38bdf8); }
.system-card.plan::before { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.system-card.accent-teal::before { background: linear-gradient(90deg, #0d9488, #22c55e); }
.system-card.accent-clinical::before { background: linear-gradient(90deg, #6f8f85, #38bdf8); }
.system-card.accent-green::before { background: linear-gradient(90deg, #10b981, #14b8a6); }
.system-card.accent-bluegray::before { background: linear-gradient(90deg, #475569, #0f9f8d); }
.system-card.accent-slate::before { background: linear-gradient(90deg, #64748b, #94a3b8); }
.system-card:hover { border-color: #bdd5ff; box-shadow: var(--shadow); }
.system-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.system-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.system-title > div { min-width: 0; }
.system-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}
.system-card.plan .system-icon { background: linear-gradient(135deg, #64748b, #94a3b8); box-shadow: 0 10px 20px rgba(100, 116, 139, .16); }
.system-card.prototype .system-icon { background: linear-gradient(135deg, #2563eb, #6f8f85); box-shadow: 0 10px 20px rgba(37, 99, 235, .14); }
.system-card.progress .system-icon { background: linear-gradient(135deg, #6f8f85, #0ea5e9); box-shadow: 0 10px 20px rgba(100, 116, 139, .14); }
.system-card.accent-teal .system-icon { background: linear-gradient(135deg, #0d9488, #22c55e); }
.system-card.accent-clinical .system-icon { background: linear-gradient(135deg, #6f8f85, #0ea5e9); }
.system-card.accent-green .system-icon { background: linear-gradient(135deg, #10b981, #14b8a6); }
.system-card.accent-bluegray .system-icon { background: linear-gradient(135deg, #475569, #0f9f8d); }
.system-card.accent-slate .system-icon { background: linear-gradient(135deg, #64748b, #94a3b8); }
.status {
  display: inline-flex;
  height: 22px;
  min-width: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}
.status.ready { color: #047857; background: #ecfdf5; }
.status.prototype { color: #1d4ed8; background: #eff6ff; }
.status.progress { color: #5f6f52; background: #f3f7f4; }
.status.plan { color: #475569; background: #f1f5f9; }
.system-stat { color: #2563eb; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.system-card.accent-teal .system-stat { color: #0f766e; }
.system-card.accent-clinical .system-stat { color: #5f6f52; }
.system-card.accent-green .system-stat { color: #047857; }
.system-card.accent-bluegray .system-stat { color: #475569; }
.system-card.accent-slate .system-stat { color: #475569; }
.system-card h2 { max-width: 100%; margin: 3px 0 0; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.46; font-size: 12px; min-height: 35px; position: relative; z-index: 1; }
.system-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; position: relative; z-index: 1; }
.system-meta span { height: 21px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; color: #526174; background: #f1f5f9; font-size: 11px; font-weight: 800; }
.system-foot { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
.system-highlight {
  min-width: 48px;
  height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}
.system-card.accent-teal .system-highlight { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.system-card.accent-clinical .system-highlight { color: #5f6f52; border-color: #d5ddd7; background: #f6f8f6; }
.system-card.accent-green .system-highlight { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.system-card.accent-bluegray .system-highlight { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.system-card.accent-slate .system-highlight { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.system-actions { flex: 0 0 auto; display: flex; gap: 6px; margin-top: 0; position: relative; z-index: 1; }
.system-actions .btn { height: 30px; padding: 0 9px; font-size: 12px; }
.system-actions .primary { width: auto; min-width: 74px; }

.foundation-panel { display: block; }
.foundation-panel .section-head { margin-bottom: 12px; }
.foundation-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.foundation-card {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.foundation-card div {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0f766e;
  background: #ecfdf5;
}
.foundation-card strong { display: block; font-size: 14px; }
.foundation-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #b7e4dc;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fdfa, #eff6ff);
  color: #0f766e;
  font-weight: 800;
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1180px) {
  .system-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foundation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .medical-grid-card { display: none; }
}

@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr; }
  .login-panel { padding-top: 0; }
  .portal-hero { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-strip { align-items: flex-start; flex-direction: column; }
  .topbar { grid-template-columns: 1fr; height: auto; align-items: stretch; }
  .topbar-center { justify-self: stretch; justify-content: center; flex-wrap: wrap; border-radius: 8px; }
  .user-pill { justify-content: space-between; border-radius: 8px; }
}

@media (max-width: 700px) {
  .portal { padding: 16px 14px 36px; }
  .login-hero { padding: 46px 22px 26px; }
  .login-hero::before { inset: 14px; }
  .login-panel { padding: 20px; }
  .login-hero h1, .portal-hero h1 { font-size: 32px; }
  .login-system-strip, .metric-grid, .system-grid, .console-grid, .foundation-list { grid-template-columns: 1fr; }
  .login-flow { grid-template-columns: 1fr; }
  .login-flow i { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .workspace-status { align-items: flex-start; flex-direction: column; }
  .section-head { align-items: start; display: block; }
  .section-head p { margin-top: 8px; }
  .portal-hero { padding: 20px; }
}

/* Industry-inspired application launcher layout */
.industry-login {
  grid-template-columns: clamp(620px, 58vw, 820px) minmax(420px, 1fr);
  gap: 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(14, 137, 181, .10), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(11, 143, 131, .10), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef6fb 52%, #f6fbf9 100%);
}
.industry-login .login-hero {
  padding: 0;
}
.industry-login .login-hero::before {
  display: none;
}
.login-visual-card {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #eaf4f7;
  box-shadow: none;
}
.login-visual-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 44% center;
}
.login-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 50, 86, .50), rgba(9, 50, 86, .16) 58%, rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(15,23,42,.32));
}
.login-visual-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(45, 212, 191, .65), transparent);
}
.login-visual-overlay {
  position: absolute;
  inset: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.login-visual-overlay .brand {
  width: max-content;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 8px;
  background: rgba(6, 38, 70, .30);
  backdrop-filter: blur(12px);
}
.login-visual-overlay .brand span {
  color: rgba(255,255,255,.84);
}
.login-visual-overlay > div:last-child {
  width: min(460px, 100%);
}
.login-visual-overlay > div:last-child > span {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(6, 38, 70, .22);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.login-visual-overlay h1 {
  margin: 15px 0 10px;
  color: #fff;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 8px 30px rgba(15, 23, 42, .28);
}
.login-visual-overlay p {
  max-width: 420px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.72;
}
.industry-login-card {
  box-shadow: 0 28px 70px rgba(15, 23, 42, .15), 0 1px 0 rgba(255,255,255,.82) inset;
}
.login-window {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid rgba(178, 198, 218, .92);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,253,255,.94) 56%, rgba(246,251,250,.96));
  backdrop-filter: blur(18px);
}
.login-window::before {
  content: "";
  position: absolute;
  right: 19px;
  top: 19px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(14, 137, 181, .22);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 47%, rgba(14, 137, 181, .16) 48%, transparent 50%),
    linear-gradient(90deg, transparent 49%, rgba(14, 137, 181, .22) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(14, 137, 181, .22) 50%, transparent 51%);
  opacity: .78;
  pointer-events: none;
}
.login-window::after {
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #0891b2 46%, #0f9f7a 100%);
  box-shadow: 0 0 18px rgba(8, 145, 178, .22);
}
.login-window .login-card-head {
  margin-bottom: 24px;
  padding-right: 68px;
}
.login-window .login-card-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  box-shadow: 0 14px 26px rgba(31, 95, 191, .20);
}
.login-window h2 {
  font-size: 25px;
  letter-spacing: 0;
}
.login-window p {
  color: #64748b;
  font-weight: 700;
}
.login-window .field {
  margin-bottom: 16px;
}
.login-window .field span {
  color: #52667e;
  font-weight: 900;
}
.login-window .field input {
  min-height: 48px;
  border-color: #d4e1ee;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 1px 0 rgba(255,255,255,.84) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-window .field input:hover {
  border-color: #b8cce0;
  background: #fff;
}
.login-window .field input:focus {
  border-color: #1f8bbf;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, .12), 0 1px 0 rgba(255,255,255,.9) inset;
}
.login-window .btn.primary {
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, #1f5fbf 0%, #1686b0 56%, #0b8f83 100%);
  box-shadow: 0 15px 28px rgba(31, 95, 191, .20);
}
.login-window .btn.primary:hover {
  box-shadow: 0 18px 34px rgba(31, 95, 191, .26);
}
.login-help-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.remember-login{display:grid;grid-template-columns:18px 1fr;column-gap:8px;align-items:center;margin:2px 0 8px;color:#34445c;cursor:pointer}
.remember-login input{grid-row:1/3;width:16px;height:16px;margin:0;accent-color:var(--blue)}
.remember-login span{font-size:12px;font-weight:800}
.remember-login small{color:var(--muted);font-size:10px;line-height:1.35}
.login-help-row a {
  color: #155e95;
  text-decoration: none;
}
.login-help-row a:hover {
  color: #0f766e;
}

.portal-launcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 16px;
}
.launcher-main,
.launcher-side > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.launcher-main {
  min-height: calc(100vh - 112px);
  padding: 22px;
}
.launcher-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.launcher-head span,
.all-apps-head span,
.recent-entry > span,
.platform-services > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.launcher-head h1 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.1;
}
.launcher-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.featured-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.featured-app {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240,253,250,.92), rgba(255,255,255,.96));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.featured-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.featured-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.featured-copy span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}
.featured-copy h2 {
  margin: 5px 0 4px;
  font-size: 26px;
}
.featured-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.all-apps-head {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.all-apps-head b {
  color: var(--muted);
  font-size: 12px;
}
.app-launch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.app-tile {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15,23,42,.035);
}
.app-tile:hover {
  border-color: #bdd5ff;
  box-shadow: var(--shadow);
}
.app-tile.plan,
.app-tile.progress {
  background: rgba(248,250,252,.92);
}
.app-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #64748b, #0f766e);
}
.app-tile strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}
.app-tile span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.more-app-mask[hidden] {
  display: none;
}

.more-app-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .24);
  backdrop-filter: blur(3px);
}

.more-app-dialog {
  width: min(460px, 100%);
  padding: 18px;
  border: 1px solid rgba(191, 207, 222, .92);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(30, 55, 78, .20);
}

.more-app-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.more-app-dialog > header span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.more-app-dialog h2 {
  margin: 3px 0 0;
  color: #15344b;
  font-size: 18px;
}

.more-app-options {
  display: grid;
  gap: 9px;
}

.more-app-options a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 9px;
  color: #15344b;
  background: #f8fbfd;
  text-decoration: none;
}

.more-app-options a:hover,
.more-app-options a:focus-visible {
  border-color: #7cbeb7;
  background: #f0faf8;
  outline: none;
}

.more-app-options a > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.more-app-options strong,
.more-app-options small {
  display: block;
}

.more-app-options small {
  margin-top: 3px;
  color: #6b7f8d;
}
.launcher-side {
  display: grid;
  gap: 12px;
  align-content: start;
}
.session-summary,
.recent-entry,
.platform-services {
  padding: 16px;
}
.session-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}
.session-summary h2 {
  margin: 12px 0 3px;
  font-size: 18px;
}
.session-summary p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.session-meta {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.session-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.session-meta b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.recent-entry a {
  height: 40px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: #fff;
}
.platform-services div {
  height: 34px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.platform-services b {
  color: var(--text);
  font-size: 13px;
}

/* Portal v2 polished application launcher */
.portal {
  width: min(1480px, 100%);
  padding: 18px 34px 42px;
  position: relative;
}
.portal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 16%, rgba(31,95,191,.12), transparent 28%),
    radial-gradient(circle at 80% 28%, rgba(11,143,131,.12), transparent 26%),
    linear-gradient(90deg, rgba(203,213,225,.20) 1px, transparent 1px),
    linear-gradient(180deg, rgba(203,213,225,.16) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eef6fb 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}
.portal-launcher {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  margin-top: 14px;
}
.launcher-main,
.launcher-side > section {
  border-color: rgba(197, 212, 229, .86);
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 44px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}
.launcher-main {
  min-height: 0;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.launcher-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0891b2, #0f9f7a);
}
.launcher-head {
  padding: 2px 2px 18px;
}
.launcher-head h1 {
  font-size: 32px;
}
.launcher-head p {
  max-width: 460px;
}
.featured-apps {
  gap: 14px;
}
.featured-app {
  min-height: 152px;
  padding: 18px;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(190, 211, 230, .92);
  background:
    radial-gradient(circle at 90% 18%, rgba(14,137,181,.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,250,248,.94));
  box-shadow: 0 12px 28px rgba(15,23,42,.055);
}
.featured-icon {
  width: 56px;
  height: 56px;
}
.featured-copy h2 {
  font-size: 28px;
}
.featured-app .btn {
  grid-column: 2;
  width: max-content;
  min-width: 92px;
  margin-top: 12px;
}
.all-apps-head {
  margin-top: 20px;
}
.app-launch-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.app-tile {
  min-height: 78px;
  padding: 11px;
  border-color: rgba(213, 225, 237, .92);
  background: rgba(255,255,255,.86);
}
.app-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
.app-tile strong {
  font-size: 14px;
  line-height: 1.1;
}
.app-tile span {
  margin-top: 6px;
  font-size: 11px;
}
.session-summary {
  background:
    radial-gradient(circle at 50% 0%, rgba(14,137,181,.12), transparent 40%),
    rgba(255,255,255,.86);
  text-align: center;
}
.session-avatar {
  margin: 0 auto;
}
.recent-entry a {
  background: rgba(255,255,255,.76);
}

/* Portal reference migration */
.topbar {
  height: 70px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #4c5f79;
  background: transparent;
}
.icon-btn:hover {
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.icon-btn.notify {
  position: relative;
}
.icon-btn.notify::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #f8fbff;
  border-radius: 50%;
  background: #f05260;
}
.topbar-center {
  gap: 10px;
  border: 0;
  background: transparent;
}
.topbar-center span {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #dbe7f4;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}
.topbar-center span:first-child {
  color: #42526b;
  background: rgba(255,255,255,.86);
}
.topbar-center span:nth-child(2) {
  color: #087f78;
  background: rgba(240,253,250,.86);
}
.user-pill {
  min-width: 238px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
}
.portal-launcher {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}
.launcher-main,
.launcher-side > section {
  border-radius: 14px;
  border-color: #dbe7f4;
  background: rgba(255,255,255,.90);
}
.launcher-main {
  padding: 28px;
}
.launcher-head {
  min-height: 108px;
  align-items: start;
  padding: 0 0 24px;
  border-bottom: 0;
  position: relative;
}
.launcher-head h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.08;
}
.launcher-head p {
  max-width: 760px;
  color: #53657d;
  font-size: 15px;
}
.portal-visual-cube {
  width: 150px;
  height: 98px;
  position: relative;
  overflow: visible;
}
.portal-visual-cube::before,
.portal-visual-cube::after,
.portal-visual-cube span {
  content: "";
  position: absolute;
  border-radius: 14px;
  transform: rotateX(58deg) rotateZ(45deg);
}
.portal-visual-cube::before {
  width: 82px;
  height: 82px;
  right: 20px;
  top: 8px;
  border: 1px solid rgba(37,99,235,.22);
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(8,145,178,.10));
  box-shadow: 0 28px 44px rgba(37,99,235,.14);
}
.portal-visual-cube::after {
  width: 42px;
  height: 42px;
  right: 40px;
  top: 25px;
  background: linear-gradient(135deg, #4f8cf7, #0ea5e9);
  box-shadow: 0 0 26px rgba(37,99,235,.22);
}
.portal-visual-cube span {
  width: 112px;
  height: 42px;
  right: 6px;
  bottom: 2px;
  border: 1px solid rgba(37,99,235,.12);
  background: rgba(255,255,255,.64);
}
.launcher-block {
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
}
.core-block {
  padding: 22px;
}
.all-block {
  margin-top: 0;
  padding: 18px 20px 22px;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #14233f;
  font-weight: 900;
}
.block-title span {
  width: 9px;
  height: 9px;
  border: 2px solid #dbeafe;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.featured-apps {
  margin-top: 18px;
  gap: 22px;
}
.featured-app {
  min-height: 264px;
  padding: 26px;
  grid-template-columns: 92px minmax(0, 1fr) minmax(150px, .7fr);
  border-radius: 14px;
  border-color: rgba(94, 211, 204, .58);
  background:
    radial-gradient(circle at 78% 50%, rgba(28, 185, 178, .22), transparent 26%),
    linear-gradient(135deg, rgba(239,253,250,.95), rgba(255,255,255,.92));
}
.featured-app.prototype {
  border-color: rgba(96,165,250,.55);
  background:
    radial-gradient(circle at 76% 48%, rgba(96,165,250,.20), transparent 30%),
    linear-gradient(135deg, rgba(248,251,255,.98), rgba(239,246,255,.90));
}
.featured-icon {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(8,145,178,.20);
}
.featured-app.prototype .featured-icon {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 18px 30px rgba(37,99,235,.20);
}
.featured-copy span {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #04756f;
  background: #ccfbf1;
}
.featured-app.prototype .featured-copy span {
  color: #1d4ed8;
  background: #dbeafe;
}
.featured-copy h2 {
  margin-top: 20px;
  font-size: 32px;
}
.featured-copy p {
  color: #2e405c;
  font-size: 15px;
}
.featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.featured-chips em {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  color: #53657d;
  background: rgba(255,255,255,.74);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.featured-app .btn {
  grid-column: 2;
  height: 42px;
  min-width: 132px;
  margin-top: 28px;
}
.featured-visual {
  min-height: 160px;
  position: relative;
  align-self: stretch;
}
.featured-visual::before,
.featured-visual::after,
.featured-visual span {
  content: "";
  position: absolute;
}
.featured-visual.cidg::before {
  width: 104px;
  height: 104px;
  right: 18px;
  top: 42px;
  border: 1px solid rgba(20,184,166,.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45,212,191,.45), rgba(255,255,255,.62));
  transform: rotateX(58deg) rotateZ(45deg);
  box-shadow: 0 24px 42px rgba(20,184,166,.22);
}
.featured-visual.cidg::after {
  width: 142px;
  height: 142px;
  right: -2px;
  top: 22px;
  border: 2px solid rgba(20,184,166,.14);
  border-radius: 50%;
}
.featured-visual.edc::before {
  width: 100px;
  height: 132px;
  right: 22px;
  top: 26px;
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(219,234,254,.90), rgba(255,255,255,.72));
  box-shadow: 0 24px 42px rgba(37,99,235,.18);
}
.featured-visual.edc::after {
  width: 132px;
  height: 38px;
  right: 6px;
  bottom: 22px;
  border: 12px solid rgba(96,165,250,.20);
  border-radius: 50%;
}
.featured-visual.edc span {
  width: 58px;
  height: 8px;
  right: 43px;
  top: 58px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 24px 0 #93c5fd, 0 48px 0 #bfdbfe;
}
.all-apps-head {
  margin: 0 0 16px;
}
.all-apps-head > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.app-launch-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.app-tile {
  min-height: 88px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.app-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}
.app-tile:nth-child(2n) .app-icon {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.app-tile:nth-child(7n) .app-icon {
  background: linear-gradient(135deg, #8b5cf6, #2563eb);
}
.launcher-side > section {
  border-radius: 14px;
}
.launcher-side {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.launcher-main {
  height: 100%;
}
.session-summary {
  position: relative;
  min-height: 296px;
  padding: 30px 28px;
  text-align: left;
  overflow: hidden;
}
.session-graphic {
  position: absolute;
  right: -12px;
  top: 52px;
  width: 160px;
  height: 150px;
  opacity: .45;
  background:
    linear-gradient(135deg, rgba(96,165,250,.12), rgba(255,255,255,.40));
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}
.session-avatar {
  width: 66px;
  height: 66px;
  margin: 0;
  font-size: 22px;
  box-shadow: 0 18px 30px rgba(37,99,235,.18);
}
.session-summary h2 {
  margin-top: 18px;
  font-size: 20px;
}
.session-meta-grid {
  display: grid;
  gap: 0;
  margin: 18px -28px -30px;
  padding: 12px 28px 20px;
  border-top: 1px solid #dbe7f4;
  background: rgba(255,255,255,.56);
}
.session-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  border-top: 0;
}
.session-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.recent-entry,
.platform-services {
  padding: 20px;
}
.recent-entry a {
  height: 62px;
  padding: 0 16px;
  justify-content: space-between;
}
.recent-entry a > b {
  margin-right: auto;
}
.platform-services div {
  height: 44px;
  justify-content: space-between;
}
.platform-services div > b {
  margin-right: auto;
}

/* P-BASE-009 core application card alignment */
.featured-app {
  min-height: 264px;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: stretch;
}
.featured-info {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
}
.featured-status {
  width: max-content;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #04756f;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 900;
}
.featured-app.prototype .featured-status {
  color: #1d4ed8;
  background: #dbeafe;
}
.featured-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.featured-icon {
  width: 78px;
  height: 78px;
  flex-basis: 78px;
}
.featured-icon i.local-lucide-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.25;
}
.featured-copy h2 {
  margin: 0 0 9px;
  font-size: 32px;
  line-height: 1.02;
}
.featured-copy p {
  font-size: 15px;
  line-height: 1.35;
}
.featured-chips {
  margin-top: 24px;
}
.featured-action {
  align-self: end;
  margin-top: 26px;
}
.featured-action .btn {
  margin-top: 0;
}
.featured-app .btn {
  grid-column: auto;
}
.featured-visual {
  min-height: 100%;
}
.featured-visual.cidg::before {
  right: 28px;
  top: 58px;
}
.featured-visual.cidg::after {
  right: 8px;
  top: 38px;
}
.featured-visual.edc::before {
  right: 28px;
  top: 38px;
}
.featured-visual.edc::after {
  right: 12px;
  bottom: 36px;
}
.featured-visual.edc span {
  right: 49px;
  top: 72px;
}

/* P-BASE-009 latest requested refinements */
.featured-info {
  grid-template-rows: auto minmax(0, 1fr);
}
.featured-chips {
  margin-top: 18px;
}
.featured-action {
  align-self: auto;
  margin-top: 18px;
}
.featured-icon svg,
.featured-icon i.local-lucide-icon svg {
  width: 36px !important;
  height: 36px !important;
  stroke-width: 2.25;
}
.app-launch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.app-tile {
  min-height: 92px;
  padding: 14px;
}
.app-tile span {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

/* P-BASE-009 compact core-card layout */
.featured-app {
  min-height: 212px;
  padding: 18px 22px;
  grid-template-columns: minmax(0, 1fr) 154px;
}
.featured-info {
  display: grid;
  grid-template-rows: 28px auto auto;
  align-content: start;
}
.featured-row {
  align-items: start;
  margin-top: 14px;
}
.featured-icon {
  margin-top: 0;
}
.featured-copy {
  min-width: 0;
}
.featured-copy h2 {
  margin: 0 0 6px;
}
.featured-copy p {
  margin-bottom: 0;
}
.featured-chips {
  width: max-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 7px;
}
.featured-chips em {
  height: 24px;
  padding: 0 9px;
}
.featured-chips em {
  width: max-content;
}
.featured-action {
  margin-top: 14px;
  margin-left: 0;
}
.featured-action .btn {
  height: 38px;
}
.featured-visual.cidg::before {
  top: 38px;
}
.featured-visual.cidg::after {
  top: 18px;
}
.featured-visual.edc::before {
  top: 20px;
}
.featured-visual.edc span {
  top: 54px;
}
.featured-visual .featured-chips {
  position: absolute;
  z-index: 2;
  left: 6px;
  top: 42px;
  margin-top: 0;
}
.featured-visual.cidg .featured-chips {
  left: 4px;
  top: 42px;
}
.featured-visual.edc .featured-chips {
  left: 0;
  top: 42px;
}
.featured-visual .featured-chips em {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}

@media (max-width: 1280px) {
  .featured-app {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-visual {
    display: none;
  }
  .app-launch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .portal-launcher {
    grid-template-columns: 1fr;
  }
  .launcher-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .session-summary {
    min-height: 0;
  }
  .session-meta {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
  }
  .topbar-center,
  .topbar-actions {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .portal-launcher {
    margin-top: 18px;
  }
  .launcher-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .featured-apps {
    grid-template-columns: 1fr;
  }
  .featured-app {
    min-height: 230px;
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .app-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .launcher-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .portal {
    padding: 14px 12px 32px;
  }
  .topbar-center span {
    width: 100%;
    justify-content: center;
  }
  .topbar-actions .user-pill {
    width: 100%;
  }
  .launcher-main {
    padding: 16px;
  }
  .launcher-head {
    grid-template-columns: 1fr;
  }
  .portal-visual-cube {
    display: none;
  }
  .launcher-head h1 {
    font-size: 30px;
  }
  .core-block,
  .all-block {
    padding: 14px;
  }
  .featured-app {
    min-height: 0;
    padding: 18px;
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .featured-icon {
    width: 56px;
    height: 56px;
  }
  .featured-copy h2 {
    margin-top: 10px;
    font-size: 28px;
  }
  .featured-chips {
    margin-top: 16px;
  }
  .featured-app .btn {
    grid-column: 1 / -1;
    margin-top: 18px;
  }
  .app-launch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .portal-launcher { grid-template-columns: 1fr; }
  .launcher-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-launch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .industry-login {
    grid-template-columns: clamp(620px, 62vw, 720px) minmax(360px, 1fr);
  }
  .login-visual-card {
    height: 100vh;
  }
  .login-panel {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .industry-login { grid-template-columns: 1fr; }
  .industry-login .login-hero {
    padding: 0;
  }
  .login-visual-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: clamp(320px, 46vw, 430px);
    min-height: 0;
    border-radius: 0;
  }
  .login-visual-card img {
    object-position: 50% center;
  }
  .login-panel {
    padding: 22px;
  }
  .launcher-side { grid-template-columns: 1fr; }
  .featured-apps { grid-template-columns: 1fr; }
  .app-launch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .login-visual-card { height: clamp(260px, 62vw, 340px); min-height: 0; }
  .login-visual-card img { object-position: 47% center; }
  .login-visual-overlay { inset: 18px; }
  .login-visual-overlay h1 { font-size: 30px; }
  .login-visual-overlay p { font-size: 13px; }
  .login-window { padding: 22px; }
  .launcher-main { padding: 14px; }
  .launcher-head { display: block; }
  .launcher-head p { margin-top: 8px; }
  .featured-app { grid-template-columns: 44px minmax(0, 1fr); }
  .featured-app .btn { grid-column: 1 / -1; }
  .app-launch-grid { grid-template-columns: 1fr; }
}
