:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #07111f;
  --panel: rgba(6, 18, 36, 0.74);
  --panel-strong: rgba(8, 24, 44, 0.94);
  --line: rgba(103, 232, 249, 0.22);
  --line-strong: rgba(34, 211, 238, 0.48);
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --green: #34d399;
  --violet: #a78bfa;
  --danger: #fb7185;
  --text: #ecfeff;
  --muted: #9db5c8;
  --shadow: 0 24px 90px rgba(8, 145, 178, 0.18);
  --shadow-strong: 0 28px 120px rgba(34, 211, 238, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(34, 211, 238, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(167, 139, 250, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 84%, rgba(52, 211, 153, 0.12), transparent 24rem),
    linear-gradient(145deg, #01030a 0%, #020617 50%, #06111f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 50% 0%, transparent 0 16rem, rgba(34, 211, 238, 0.11) 16.1rem 16.2rem, transparent 16.3rem),
    radial-gradient(circle at 16% 72%, transparent 0 10rem, rgba(52, 211, 153, 0.10) 10.1rem 10.2rem, transparent 10.3rem),
    linear-gradient(120deg, transparent 0 35%, rgba(103, 232, 249, 0.035) 35.2% 35.35%, transparent 35.55% 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  color: #03111a;
  background: linear-gradient(135deg, var(--cyan), #8ff7ff);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.ambient {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient-a {
  left: -180px;
  top: 120px;
  background: var(--cyan);
}

.ambient-b {
  right: -160px;
  bottom: 40px;
  background: var(--violet);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar,
.hero,
.overview,
.workspace,
.onboarding-card,
.catalog {
  margin-bottom: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.24);
}

.brand strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0;
  color: var(--cyan-2);
  letter-spacing: 0.24em;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-card,
.pro-card,
.metric-card,
.onboarding-card,
.panel,
.chat,
.catalog {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 35, 0.86), rgba(3, 10, 24, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 20px;
}

.status-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 18px currentColor;
}

.dot.ok {
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.stable-card {
  border-radius: 34px;
  padding: clamp(24px, 4vw, 42px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(8, 18, 35, 0.70)),
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.16), transparent 21rem);
  box-shadow: var(--shadow);
}

.release-lockup {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
}

.release-lockup::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% -8% -18% 28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.release-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(13px, 2vw, 24px);
  margin: 0;
  max-width: 100%;
  line-height: 0.86;
}

.release-wordmark {
  display: block;
  color: #ecfeff;
  font-size: clamp(52px, 7.3vw, 104px);
  font-weight: 950;
  letter-spacing: -0.075em;
  background: linear-gradient(135deg, #ffffff 0%, #dffcff 52%, #8fefff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.18));
}

.release-edition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(103, 232, 249, 0.46);
  border-radius: 20px;
  color: #dffcff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.12)),
    rgba(3, 13, 30, 0.82);
  box-shadow:
    inset 0 0 22px rgba(34, 211, 238, 0.08),
    0 0 34px rgba(34, 211, 238, 0.13);
  font-size: clamp(15px, 1.65vw, 23px);
  font-weight: 950;
  letter-spacing: 0.19em;
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.38);
}

.release-edition b {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #02111c;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.34);
  font-size: 1.2em;
  letter-spacing: 0;
}

.release-version {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  margin-top: 17px;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(8, 24, 44, 0.96), rgba(16, 22, 48, 0.88)),
    rgba(2, 6, 23, 0.88);
  box-shadow:
    inset 0 0 28px rgba(34, 211, 238, 0.07),
    0 18px 48px rgba(2, 6, 23, 0.30);
}

.release-version::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(103, 232, 249, 0.12) 48%, transparent 68%);
  transform: translateX(-130%);
  animation: release-shine 6s ease-in-out infinite;
  pointer-events: none;
}

.release-version-label {
  color: #c7d9e7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.release-version strong {
  color: var(--cyan-2);
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.50);
}

.release-uptime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-left: 14px;
  border-left: 1px solid rgba(103, 232, 249, 0.22);
  color: #b6f7de;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.release-uptime::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.88);
}

@keyframes release-shine {
  0%, 68% {
    transform: translateX(-130%);
  }
  82%, 100% {
    transform: translateX(130%);
  }
}

.subtitle {
  margin: 24px 0 0;
  max-width: 760px;
  color: #c5d8e7;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  max-width: calc(100% - 455px);
}

.hero-badges span {
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dbfbff;
  background: rgba(103, 232, 249, 0.07);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sharnet-persona {
  --look-x: 0px;
  --look-y: 0px;
  --head-x: 0px;
  --head-y: 0px;
  --mouth-gap: 0.2px;
  --mouth-width: 0.88;
  --mouth-shift: 0px;
  --mouth-scale-y: 1;
  --mouth-opacity: 0;
  --lip-opacity: 0;
  --voice-energy: 0;
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  display: grid;
  grid-template-columns: 184px minmax(150px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(430px, calc(100% - 40px));
  max-width: none;
  min-height: 218px;
  margin: 0;
  padding: 17px 22px 17px 17px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(103, 232, 249, 0.30);
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 30%, rgba(34, 211, 238, 0.20), transparent 36%),
    linear-gradient(135deg, rgba(2, 8, 23, 0.94), rgba(7, 25, 46, 0.80));
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.08),
    inset 0 0 42px rgba(34, 211, 238, 0.07),
    0 24px 80px rgba(2, 8, 23, 0.48),
    0 0 34px rgba(8, 145, 178, 0.10);
  backdrop-filter: blur(20px) saturate(1.18);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.sharnet-persona::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(120deg, transparent 12%, rgba(103, 232, 249, 0.16) 28%, transparent 44%),
    radial-gradient(circle at 84% 18%, rgba(167, 139, 250, 0.16), transparent 36%);
  pointer-events: none;
}

.sharnet-persona::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 18px;
  bottom: 18px;
  left: 208px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.36), transparent);
  pointer-events: none;
}

.sharnet-persona[data-state="listening"],
.sharnet-persona[data-state="thinking"] {
  border-color: rgba(52, 211, 153, 0.44);
  box-shadow: inset 0 0 42px rgba(52, 211, 153, 0.07), 0 24px 80px rgba(2, 8, 23, 0.48), 0 0 36px rgba(52, 211, 153, 0.10);
}

.sharnet-persona[data-state="speaking"] {
  border-color: rgba(103, 232, 249, 0.56);
  box-shadow: inset 0 0 46px rgba(34, 211, 238, 0.10), 0 24px 80px rgba(2, 8, 23, 0.48), 0 0 42px rgba(34, 211, 238, 0.17);
}

.persona-core {
  position: relative;
  width: 126px;
  height: 142px;
  display: grid;
  place-items: center;
}

.persona-halo {
  position: absolute;
  inset: 4px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  box-shadow:
    0 0 26px rgba(34, 211, 238, 0.32),
    inset 0 0 24px rgba(34, 211, 238, 0.16);
  animation: persona-halo 4.2s ease-in-out infinite;
}

.persona-head {
  position: relative;
  width: 90px;
  height: 104px;
  margin-top: -8px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.54);
  border-radius: 45% 45% 50% 50% / 34% 34% 62% 62%;
  background:
    radial-gradient(circle at 48% 20%, rgba(236, 254, 255, 0.42), transparent 13%),
    radial-gradient(ellipse at 34% 58%, rgba(244, 114, 182, 0.18), transparent 25%),
    radial-gradient(ellipse at 66% 58%, rgba(244, 114, 182, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(239, 210, 190, 0.88), rgba(92, 61, 77, 0.82) 58%, rgba(3, 14, 30, 0.96));
  box-shadow:
    0 0 32px rgba(34, 211, 238, 0.34),
    inset 0 -24px 46px rgba(34, 211, 238, 0.13);
}

.persona-hair {
  position: absolute;
  z-index: 2;
  left: -2px;
  right: -2px;
  top: -6px;
  height: 38px;
  border-radius: 52% 48% 38% 42%;
  background:
    radial-gradient(ellipse at 34% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(130deg, rgba(36, 29, 35, 0.96), rgba(116, 76, 74, 0.82) 50%, rgba(23, 20, 27, 0.96));
  box-shadow: inset 0 -8px 16px rgba(2, 8, 23, 0.35), 0 0 18px rgba(34, 211, 238, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 72% 50%, 54% 78%, 35% 47%, 0 66%);
}

.persona-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  width: 12px;
  height: 25px;
  transform: translateX(-50%);
  border-right: 1px solid rgba(186, 230, 253, 0.42);
  border-bottom: 1px solid rgba(186, 230, 253, 0.36);
  border-radius: 0 0 11px 9px;
  opacity: 0.72;
}

.persona-head::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  top: 25px;
  height: 8px;
  border-top: 1px solid rgba(103, 232, 249, 0.36);
  border-radius: 50%;
  opacity: 0.85;
}

.persona-face-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.25) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0 56%, transparent 78%);
}

.persona-eye {
  position: absolute;
  z-index: 3;
  top: 39px;
  width: 22px;
  height: 13px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, #f8fdff 0 58%, #b8f7ff 59% 100%);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.92);
  animation: persona-blink 5.8s infinite;
}

.persona-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 55% 45%, #fff 0 10%, transparent 12%),
    radial-gradient(circle, #050816 0 34%, #155e75 36% 62%, #22d3ee 64% 100%);
  transform: translate(calc(-50% + var(--look-x)), calc(-50% + var(--look-y)));
  transition: transform 90ms ease-out;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.72);
}

.persona-eye::after {
  content: "";
  position: absolute;
  inset: -7px -5px auto;
  height: 8px;
  border-top: 1px solid rgba(236, 254, 255, 0.40);
  border-radius: 50%;
}

.persona-eye-left {
  left: 20px;
}

.persona-eye-right {
  right: 20px;
}

.persona-brow {
  position: absolute;
  top: 30px;
  width: 24px;
  height: 7px;
  border-top: 2px solid rgba(219, 251, 255, 0.72);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.5));
  transition: transform 180ms ease, opacity 180ms ease;
}

.persona-brow-left {
  left: 17px;
  transform: rotate(-8deg);
}

.persona-brow-right {
  right: 17px;
  transform: rotate(8deg);
}

.persona-cheek {
  position: absolute;
  top: 58px;
  width: 16px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.36), transparent 70%);
  opacity: 0.42;
  transition: opacity 200ms ease, transform 200ms ease;
}

.persona-cheek-left {
  left: 15px;
}

.persona-cheek-right {
  right: 15px;
}

.persona-mouth {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 42px;
  height: 13px;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.56);
  border-radius: 42% 42% 70% 70% / 45% 45% 86% 86%;
  background: rgba(2, 8, 23, 0.82);
  box-shadow: inset 0 0 9px rgba(34, 211, 238, 0.22);
}

.persona-mouth span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0.18) translateY(2px);
  transform-origin: center;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.88), rgba(52, 211, 153, 0.72));
  opacity: 0.9;
}

.sharnet-persona[data-expression="soft"] .persona-mouth {
  height: 10px;
  border-top-color: transparent;
  border-radius: 0 0 999px 999px;
  background: transparent;
  box-shadow: inset 0 -2px 0 rgba(103, 232, 249, 0.82), 0 6px 14px rgba(34, 211, 238, 0.12);
}

.sharnet-persona[data-expression="smile"] .persona-mouth {
  height: 15px;
  width: 48px;
  bottom: 21px;
  border-top-color: transparent;
  border-radius: 0 0 999px 999px;
  background: transparent;
  box-shadow: inset 0 -3px 0 rgba(52, 211, 153, 0.95), 0 8px 18px rgba(52, 211, 153, 0.18);
}

.sharnet-persona[data-expression="smile"] .persona-cheek {
  opacity: 0.85;
  transform: scale(1.08);
}

.sharnet-persona[data-expression="focus"] .persona-brow-left {
  transform: translateY(-2px) rotate(-15deg);
}

.sharnet-persona[data-expression="focus"] .persona-brow-right {
  transform: translateY(-2px) rotate(15deg);
}

.persona-neck {
  position: absolute;
  bottom: 25px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-top: 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(2, 8, 23, 0.84));
}

.persona-shoulders {
  position: absolute;
  bottom: 5px;
  width: 110px;
  height: 38px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 60px 60px 18px 18px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.15), rgba(2, 8, 23, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(236, 254, 255, 0.16), transparent 60%);
}

.persona-info {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.persona-state-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #a7f3d0;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.persona-state-line > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.persona-state-light {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.86);
  animation: persona-status-pulse 2.2s ease-in-out infinite;
}

.persona-info strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(103, 232, 249, 0.20);
  white-space: normal;
}

.persona-info strong span {
  display: block;
  margin-bottom: 5px;
  color: #bcd5e6;
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.persona-info small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.persona-vocalizer {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 72px;
  height: 22px;
  margin-top: 17px;
  padding: 0 8px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.06);
}

.persona-vocalizer i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ecfeff, #22d3ee);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.48);
  opacity: 0.55;
  transition: height 160ms ease, opacity 160ms ease;
}

.sharnet-persona[data-state="speaking"] .persona-vocalizer i {
  opacity: 1;
  animation: persona-voice-level 520ms ease-in-out infinite alternate;
}

.sharnet-persona[data-state="speaking"] .persona-vocalizer i:nth-child(2) { animation-delay: -360ms; }
.sharnet-persona[data-state="speaking"] .persona-vocalizer i:nth-child(3) { animation-delay: -180ms; }
.sharnet-persona[data-state="speaking"] .persona-vocalizer i:nth-child(4) { animation-delay: -420ms; }
.sharnet-persona[data-state="speaking"] .persona-vocalizer i:nth-child(5) { animation-delay: -80ms; }

.sharnet-persona[data-state="thinking"] .persona-halo,
.sharnet-persona[data-state="listening"] .persona-halo {
  border-color: rgba(52, 211, 153, 0.58);
  box-shadow: 0 0 34px rgba(52, 211, 153, 0.30), inset 0 0 28px rgba(52, 211, 153, 0.15);
}

.sharnet-persona[data-state="listening"] .persona-eye {
  animation: persona-listen 1.8s ease-in-out infinite;
}

.sharnet-persona[data-state="speaking"] .persona-mouth span {
  animation: persona-talk 0.18s ease-in-out infinite alternate;
}

.sharnet-persona[data-state="speaking"] .persona-head {
  animation: persona-nod 1.45s ease-in-out infinite;
}

.sharnet-persona[data-state="speaking"] .persona-eye {
  animation: persona-speak-eye 2.7s ease-in-out infinite;
}

.sharnet-persona[data-state="speaking"] .persona-cheek {
  opacity: 0.7;
}

.sharnet-persona[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.38);
}

.sharnet-persona[data-state="error"] .persona-eye {
  background: #fecdd3;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.85);
}

@keyframes persona-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(0.08); }
}

@keyframes persona-talk {
  0% { transform: scaleY(0.16) translateY(3px); border-radius: 999px; }
  45% { transform: scaleY(0.92) translateY(0); }
  100% { transform: scaleY(0.48) translateY(1px); }
}

@keyframes persona-listen {
  0%, 100% { transform: translateX(0) scaleY(1); }
  45% { transform: translateX(2px) scaleY(1.08); }
  55% { transform: translateX(2px) scaleY(1.08); }
}

@keyframes persona-nod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

@keyframes persona-speak-eye {
  0%, 88%, 100% { transform: scaleY(1); }
  92%, 94% { transform: scaleY(0.16); }
}

@keyframes persona-halo {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.035); opacity: 1; }
}

/* Live portrait: the photo is treated as a responsive avatar surface. */
.persona-stage {
  position: relative;
  z-index: 4;
  width: 184px;
  height: 184px;
  display: grid;
  place-items: center;
}

.persona-orbit {
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 38px;
  pointer-events: none;
}

.persona-orbit::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #a5f3fc;
  box-shadow: 0 0 13px rgba(34, 211, 238, 0.86);
}

.persona-orbit-one {
  transform: rotate(8deg);
  animation: persona-orbit 13s linear infinite;
}

.persona-orbit-one::before { top: 17px; right: 21px; }

.persona-orbit-two {
  inset: 7px;
  opacity: 0.56;
  transform: rotate(-11deg);
  animation: persona-orbit-reverse 18s linear infinite;
}

.persona-orbit-two::before { bottom: 18px; left: 14px; width: 5px; height: 5px; }

.persona-portrait-core {
  width: 168px;
  height: 168px;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.16), rgba(2, 8, 23, 0.92) 72%);
  filter: drop-shadow(0 18px 24px rgba(2, 8, 23, 0.48));
  animation: persona-breathe 5.6s ease-in-out infinite;
}

.persona-portrait-core .persona-halo {
  inset: -5px;
  border-radius: 38px;
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.24), inset 0 0 30px rgba(34, 211, 238, 0.12);
}

.persona-portrait-frame {
  position: absolute;
  inset: 5px;
  overflow: hidden;
  border: 1px solid rgba(165, 243, 252, 0.30);
  border-radius: 30px;
  background: #020817;
  box-shadow: inset 0 0 0 1px rgba(2, 8, 23, 0.66), 0 14px 42px rgba(8, 145, 178, 0.22);
  transform: translate(var(--head-x), var(--head-y));
  transition: transform 120ms ease-out, filter 180ms ease;
}

.persona-portrait-frame::before,
.persona-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.persona-portrait-frame::before {
  z-index: 3;
  background:
    linear-gradient(125deg, rgba(236, 254, 255, 0.13), transparent 29%),
    radial-gradient(circle at 50% 42%, transparent 42%, rgba(2, 8, 23, 0.30) 100%);
  mix-blend-mode: screen;
}

.persona-portrait-frame::after {
  z-index: 2;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 8, 23, 0.34) 100%);
}

.persona-portrait-image,
.persona-portrait-mouth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.persona-portrait-image { z-index: 1; }

.persona-portrait-mouth {
  z-index: 4;
  clip-path: polygon(46.5% 46.5%, 62% 46.5%, 62% 53.5%, 46.5% 53.5%);
  transform-origin: 54% 50%;
  transition: transform 58ms linear;
}

.persona-portrait-lid {
  --lid-angle: 0deg;
  position: absolute;
  z-index: 6;
  width: 9.5%;
  height: 4.2%;
  border-radius: 52% 52% 45% 45%;
  background: linear-gradient(180deg, rgba(27, 20, 29, 0.96), rgba(136, 80, 82, 0.82) 72%, rgba(222, 151, 137, 0.72));
  box-shadow: 0 1px 2px rgba(2, 8, 23, 0.34);
  transform-origin: 50% 0;
  animation: persona-portrait-blink 6.4s infinite;
}

.persona-portrait-lid-left {
  --lid-angle: 3deg;
  left: 45.4%;
  top: 34.1%;
}

.persona-portrait-lid-right {
  --lid-angle: 7deg;
  left: 59.7%;
  top: 36.7%;
  width: 8.4%;
}

.persona-portrait-glint {
  position: absolute;
  z-index: 7;
  width: 1.45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ecfeff;
  box-shadow: 0 0 7px rgba(34, 211, 238, 0.95);
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 90ms ease-out;
}

.persona-portrait-glint-left { left: 50.1%; top: 35.7%; }
.persona-portrait-glint-right { left: 64.1%; top: 38.4%; }

.persona-portrait-mouth-open {
  position: absolute;
  z-index: 5;
  left: 50.2%;
  top: 49.4%;
  width: 8.5%;
  height: 1px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, rgba(18, 2, 9, 0.96), rgba(89, 21, 39, 0.72) 60%, transparent 74%);
  box-shadow: inset 0 -1px 1px rgba(251, 113, 133, 0.34);
  transform-origin: center top;
  transition: height 58ms linear, opacity 58ms linear, transform 58ms linear;
}

.persona-portrait-lip-highlight {
  position: absolute;
  z-index: 6;
  left: 51%;
  top: 51.8%;
  width: 7.1%;
  height: 1.4px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 193, 0.72) 28% 72%, transparent);
  filter: blur(0.15px);
  transform-origin: center;
  transition: opacity 58ms linear, transform 58ms linear;
}

.persona-portrait-scan {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0.055;
  background: linear-gradient(180deg, transparent 0 48%, rgba(103, 232, 249, 0.48) 50%, transparent 52%);
  background-size: 100% 18px;
  mix-blend-mode: screen;
  animation: persona-portrait-scan 9s linear infinite;
}

.sharnet-persona[data-state="thinking"] .persona-portrait-frame {
  filter: brightness(0.91) saturate(0.96) hue-rotate(7deg);
}

.sharnet-persona[data-state="speaking"] .persona-portrait-mouth {
  animation: none;
  transform: translateY(var(--mouth-shift)) scaleY(var(--mouth-scale-y));
}

.sharnet-persona[data-state="speaking"] .persona-portrait-mouth-open {
  height: var(--mouth-gap);
  opacity: var(--mouth-opacity);
  animation: none;
  transform: translateY(var(--mouth-shift)) scaleX(var(--mouth-width));
}

.sharnet-persona[data-state="speaking"] .persona-portrait-lip-highlight {
  opacity: var(--lip-opacity);
  transform: translateY(var(--mouth-shift)) scaleX(var(--mouth-width));
}

.sharnet-persona[data-state="speaking"] .persona-portrait-frame {
  animation: persona-portrait-nod 1.6s ease-in-out infinite;
}

.sharnet-persona[data-state="listening"] .persona-portrait-core .persona-halo,
.sharnet-persona[data-state="thinking"] .persona-portrait-core .persona-halo {
  border-color: rgba(52, 211, 153, 0.66);
  box-shadow: 0 0 38px rgba(52, 211, 153, 0.30), inset 0 0 30px rgba(52, 211, 153, 0.15);
}

@keyframes persona-portrait-blink {
  0%, 90%, 94.8%, 100% { transform: rotate(var(--lid-angle)) scaleY(0.02); }
  91.6%, 93.2% { transform: rotate(var(--lid-angle)) scaleY(1); }
}

@keyframes persona-portrait-talk {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(2px) scaleY(1.085); }
}

@keyframes persona-portrait-mouth-open {
  from { height: 1px; transform: translateY(0) scaleX(0.84); }
  to { height: 5px; transform: translateY(1px) scaleX(1.04); }
}

@keyframes persona-portrait-nod {
  0%, 100% { transform: translate(var(--head-x), var(--head-y)); }
  50% { transform: translate(var(--head-x), calc(var(--head-y) + 2px)); }
}

@keyframes persona-portrait-scan {
  from { background-position: 0 -120%; }
  to { background-position: 0 220%; }
}

@keyframes persona-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.006); }
}

@keyframes persona-orbit {
  to { transform: rotate(368deg); }
}

@keyframes persona-orbit-reverse {
  to { transform: rotate(-371deg); }
}

@keyframes persona-status-pulse {
  0%, 100% { opacity: 0.68; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes persona-voice-level {
  from { height: 4px; }
  to { height: 15px; }
}

.stable-card {
  display: grid;
  align-content: stretch;
  gap: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 211, 153, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(9, 24, 44, 0.94), rgba(2, 8, 23, 0.84));
  position: relative;
  overflow: hidden;
}

.stable-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 20%, rgba(103, 232, 249, 0.10) 36%, transparent 56%),
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.20), transparent 28%);
  opacity: 0.72;
}

.stable-card > * {
  position: relative;
  z-index: 1;
}

.stable-card[data-pc="online"] {
  border-color: rgba(52, 211, 153, 0.58);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(52, 211, 153, 0.12) inset;
}

.stable-card[data-pc="waiting"] {
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 26px 90px rgba(250, 204, 21, 0.10), inset 0 0 0 1px rgba(250, 204, 21, 0.08);
}

.stable-card[data-pc="locked"] {
  border-color: rgba(251, 113, 133, 0.34);
}

.card-heading {
  display: grid;
  gap: 8px;
}

.stable-display {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.76), rgba(8, 18, 35, 0.46)),
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.12), transparent 56%);
}

.stable-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#stable-url {
  color: #fff;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.35;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secure-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.10);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.secure-chip.warning {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.10);
}

.stable-url-detail {
  font-size: 12px;
}

.stable-card p,
.stable-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auto-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.82), rgba(8, 18, 35, 0.54)),
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.14), transparent 54%);
}

.auto-bridge span {
  display: block;
  color: var(--cyan-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auto-bridge strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 18px;
}

.auto-bridge small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.auto-bridge[data-state="off"] {
  border-color: rgba(251, 113, 133, 0.22);
  background: rgba(251, 113, 133, 0.055);
}

.auto-bridge[data-state="searching"] {
  border-color: rgba(250, 204, 21, 0.30);
  background:
    linear-gradient(180deg, rgba(30, 20, 4, 0.48), rgba(8, 18, 35, 0.52)),
    radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.16), transparent 52%);
}

.auto-bridge[data-state="ready"] {
  border-color: rgba(52, 211, 153, 0.34);
  background:
    linear-gradient(180deg, rgba(5, 32, 25, 0.45), rgba(8, 18, 35, 0.52)),
    radial-gradient(circle at 0% 0%, rgba(52, 211, 153, 0.16), transparent 52%);
}

.auto-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
}

.auto-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
  transition: width 0.12s linear;
}

.bridge-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.78), rgba(8, 18, 35, 0.48)),
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.10), transparent 60%);
}

.stable-card[data-pc="online"] .bridge-console {
  border-color: rgba(52, 211, 153, 0.26);
}

.bridge-console div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(103, 232, 249, 0.10);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.075), rgba(2, 8, 23, 0.24));
}

.bridge-console span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bridge-console strong {
  display: block;
  margin-top: 6px;
  color: #eaffff;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.stable-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stable-actions button {
  min-height: 54px;
  line-height: 1.2;
  padding-inline: 12px;
}

.ghost,
.quick button,
#voice-button {
  color: var(--cyan-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

.danger-soft {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.08);
}

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

.mission-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.mission-card {
  position: relative;
  min-height: 168px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 18, 35, 0.82), rgba(2, 8, 23, 0.62)),
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.12), transparent 54%);
  box-shadow: 0 20px 70px rgba(8, 145, 178, 0.12);
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -56px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.20);
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.12);
}

.mission-card.primary {
  border-color: rgba(34, 211, 238, 0.36);
  background:
    linear-gradient(135deg, rgba(8, 18, 35, 0.94), rgba(6, 28, 50, 0.70)),
    radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.22), transparent 50%);
}

.mission-card span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.mission-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(19px, 2vw, 27px);
}

.mission-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.onboarding-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
  border-radius: 30px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(6, 18, 36, 0.92), rgba(2, 6, 23, 0.80)),
    radial-gradient(circle at 8% 18%, rgba(34, 211, 238, 0.18), transparent 22rem),
    radial-gradient(circle at 90% 72%, rgba(52, 211, 153, 0.12), transparent 18rem);
}

.onboarding-copy h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.onboarding-copy p:not(.eyebrow) {
  margin: 0;
  color: #c5d8e7;
  line-height: 1.65;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-steps article {
  min-height: 150px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 22px;
  padding: 16px;
  background: rgba(2, 8, 23, 0.54);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.045);
}

.onboarding-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #03111a;
  background: linear-gradient(135deg, var(--cyan), #8ff7ff);
  font-weight: 950;
}

.onboarding-steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.onboarding-steps small {
  color: var(--muted);
  line-height: 1.5;
}

.metric-card {
  min-height: 126px;
  border-radius: 24px;
  padding: 18px;
}

.metric-card span,
.panel-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 23px;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.panel,
.chat,
.catalog {
  border-radius: 28px;
}

.panel {
  padding: 20px;
}

.panel-title strong {
  display: block;
  margin-top: 4px;
  color: var(--cyan-2);
  font-size: 20px;
}

.label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 8, 23, 0.86);
  outline: none;
}

input,
select {
  padding: 12px;
}

textarea {
  min-height: 58px;
  max-height: 190px;
  resize: vertical;
  padding: 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.button-grid button {
  width: 100%;
}

.remote-access-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 18, 35, 0.78), rgba(2, 8, 23, 0.58)),
    radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.12), transparent 56%);
}

.remote-access-card span {
  color: var(--cyan-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.remote-access-card strong {
  color: #fff;
  font-size: 17px;
}

.remote-access-card small {
  color: var(--muted);
  line-height: 1.45;
}

.remote-access-card[data-role="operator"],
.remote-access-card[data-role="viewer"] {
  border-color: rgba(250, 204, 21, 0.30);
}

.remote-access-card[data-role="owner"] {
  border-color: rgba(52, 211, 153, 0.30);
}

.quick {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick button {
  text-align: left;
}

.hidden {
  display: none !important;
}

.capabilities {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.capabilities h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 15px;
}

.capabilities ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.capabilities li {
  margin-bottom: 6px;
}

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

.diagnostics {
  margin: 16px 0 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text);
  background: rgba(2, 8, 23, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 16px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.chat {
  display: grid;
  grid-template-rows: auto minmax(520px, 64vh) auto;
  overflow: hidden;
  min-height: 720px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(103, 232, 249, 0.15);
}

.chat-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-head strong {
  display: block;
  margin-top: 4px;
  color: #fff;
}

.chat-head small {
  color: var(--green);
  font-weight: 900;
}

.messages {
  padding: 22px;
  overflow: auto;
  scrollbar-color: rgba(34, 211, 238, 0.55) rgba(2, 8, 23, 0.65);
  scrollbar-width: thin;
}

.messages::-webkit-scrollbar,
.diagnostics::-webkit-scrollbar {
  width: 10px;
}

.messages::-webkit-scrollbar-thumb,
.diagnostics::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.72), rgba(52, 211, 153, 0.50));
}

.messages::-webkit-scrollbar-track,
.diagnostics::-webkit-scrollbar-track {
  background: rgba(2, 8, 23, 0.65);
}

.message {
  max-width: min(760px, 92%);
  margin: 0 0 14px;
  padding: 15px 17px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.message.user {
  margin-left: auto;
  color: #03111a;
  background: linear-gradient(135deg, var(--cyan), #a5f3fc);
}

.message.assistant {
  background: var(--panel-strong);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.message.system {
  max-width: 100%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(103, 232, 249, 0.15);
}

.attach-button {
  display: inline-flex;
  min-width: 92px;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 13px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 16px;
  color: var(--cyan-2);
  background: rgba(34, 211, 238, 0.08);
  font-weight: 950;
  cursor: pointer;
}

.attach-button:hover,
.attach-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.52);
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.14);
}

.attach-button small {
  color: #a7d7e6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attachment-status {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -6px 16px 14px;
  padding: 11px 12px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 18px;
  color: #bbf7d0;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.09), rgba(34, 211, 238, 0.06)),
    rgba(2, 10, 24, 0.84);
  font-size: 13px;
}

.attachment-preview {
  width: 64px;
  height: 54px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.72);
}

.attachment-copy {
  min-width: 0;
}

.attachment-copy strong,
.attachment-copy small {
  display: block;
}

.attachment-copy strong {
  overflow: hidden;
  color: #e7fff6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-copy small {
  margin-top: 4px;
  color: #9ed4c0;
  line-height: 1.35;
}

.attachment-remove {
  padding: 9px 11px;
  border: 1px solid rgba(251, 113, 133, 0.26);
  border-radius: 12px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.08);
  font-size: 11px;
}

.attachment-remove:hover,
.attachment-remove:focus-visible {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(251, 113, 133, 0.14);
  box-shadow: none;
}

.catalog {
  padding: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.catalog article {
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 20px;
  background: rgba(103, 232, 249, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.catalog article:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(103, 232, 249, 0.085);
}

.catalog b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.catalog span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .sharnet-persona {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 580px);
    max-width: 580px;
    margin-top: 28px;
  }

  .hero-badges {
    max-width: none;
  }

  .overview,
  .mission-grid,
  .onboarding-card,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .chat {
    grid-template-rows: auto minmax(460px, 58vh) auto;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100vw - 18px, 1440px);
    padding-top: 8px;
  }

  .topbar {
    display: grid;
  }

  .status-card {
    width: 100%;
    min-width: 0;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
  }

  .hero-copy,
  .stable-card,
  .panel,
  .chat,
  .catalog {
    border-radius: 22px;
  }

  .overview,
  .catalog-grid,
  .mission-grid,
  .onboarding-card,
  .onboarding-steps,
  .bridge-console,
  .auto-bridge,
  .button-grid,
  .stable-actions {
    grid-template-columns: 1fr;
  }

  .auto-progress {
    grid-column: auto;
  }

  .hero-copy {
    min-height: 0;
  }

  .release-title {
    align-items: flex-start;
    gap: 12px;
  }

  .release-wordmark {
    font-size: clamp(45px, 16.5vw, 72px);
  }

  .release-edition {
    padding: 7px 8px 7px 14px;
    border-radius: 16px;
    font-size: clamp(13px, 4.2vw, 18px);
  }

  .release-edition b {
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .release-version {
    width: 100%;
    gap: 10px;
    min-height: 60px;
    padding: 9px 13px;
  }

  .release-version strong {
    font-size: clamp(34px, 12vw, 48px);
  }

  .release-uptime {
    margin-left: auto;
    padding-left: 10px;
    font-size: 9px;
  }

  .sharnet-persona {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 22px;
    padding: 12px 14px 12px 12px;
    grid-template-columns: clamp(116px, 34vw, 148px) minmax(0, 1fr);
    gap: clamp(12px, 4vw, 18px);
    text-align: left;
    border-radius: 26px;
  }

  .sharnet-persona::after {
    display: none;
  }

  .persona-stage {
    width: clamp(116px, 34vw, 148px);
    height: clamp(116px, 34vw, 148px);
  }

  .persona-portrait-core {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 27px;
  }

  .persona-portrait-core .persona-halo,
  .persona-orbit {
    border-radius: 30px;
  }

  .persona-portrait-frame {
    border-radius: 24px;
  }

  .persona-info strong {
    margin-top: 9px;
    font-size: clamp(20px, 6.4vw, 26px);
  }

  .persona-vocalizer {
    margin-top: 12px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .attachment-status {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .attachment-preview {
    width: 58px;
    height: 52px;
  }

  .attachment-remove {
    grid-column: 1 / -1;
    width: 100%;
  }

  .messages {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-version::after,
  .persona-halo,
  .persona-orbit,
  .persona-portrait-core,
  .persona-portrait-lid,
  .persona-portrait-scan,
  .persona-state-light,
  .persona-vocalizer i,
  .sharnet-persona[data-state="speaking"] .persona-portrait-frame,
  .sharnet-persona[data-state="speaking"] .persona-portrait-mouth,
  .sharnet-persona[data-state="speaking"] .persona-portrait-mouth-open {
    animation: none;
  }

  .sharnet-persona[data-state="speaking"] .persona-portrait-mouth-open {
    height: 3px;
    opacity: 0.78;
  }
}
