@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Share+Tech+Mono&display=swap";

/* src/App.css */

/* src/features/portal/Portal.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --cyan: #00f5ff;
  --cyan-dim: rgba(0, 245, 255, 0.6);
  --cyan-faint: rgba(0, 245, 255, 0.08);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.6);
  --orange: #ff6b35;
  --purple: #b347ff;
  --red: #ff3b5c;
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.6);
  --bg: #020610;
  --bg2: #050d1a;
  --panel: rgba(0, 20, 50, 0.7);
  --panel-border: rgba(0, 245, 255, 0.15);
  --text: rgba(200, 240, 255, 0.9);
  --text-dim: rgba(140, 200, 230, 0.45);
  --mono: "Share Tech Mono", monospace;
}
.portal {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.portal--loaded {
  opacity: 1;
}
.portal__scanlines {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px);
  animation: scanline-drift 8s linear infinite;
}
@keyframes scanline-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 40px;
  }
}
.portal__vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 40%,
      rgba(0, 0, 0, 0.7) 100%);
}
.portal__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 32px 24px 0;
  gap: 32px;
}
.portal__footer {
  margin-top: auto;
  padding: 20px 0 24px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal__footer-brand {
  color: var(--cyan-dim);
  font-weight: 700;
}
.portal__footer-sep {
  color: rgba(0, 245, 255, 0.2);
}
.portal__footer-status {
  color: var(--green-dim);
  animation: status-blink 3s ease-in-out infinite;
}
@keyframes status-blink {
  0%, 90%, 100% {
    opacity: 1;
  }
  95% {
    opacity: 0.3;
  }
}

/* src/features/portal/Header.css */
.header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.header__top-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.header__top-bar-item {
  color: rgba(0, 245, 255, 0.35);
  transition: color 0.3s;
}
.header__top-bar-live {
  color: var(--green-dim) !important;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__emblem {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.header__emblem-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.5));
  animation: emblem-rotate 30s linear infinite;
}
@keyframes emblem-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.header__emblem-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(0, 245, 255, 0.25) 0%,
      transparent 70%);
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}
.header__emblem-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.15);
  animation: ring-rotate 15s linear infinite reverse;
}
@keyframes ring-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.header__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header__pre-title {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 0.1em;
}
.header__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.header__title-cyber {
  background:
    linear-gradient(
      135deg,
      #00f5ff 0%,
      #0088ff 50%,
      #b347ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
}
.header__title-white {
  color: rgba(220, 240, 255, 0.95);
}
.header__subtitle {
  font-size: 11px;
  color: rgba(0, 245, 255, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--mono);
}
@media (max-width: 600px) {
  .header__title {
    font-size: 32px;
  }
  .header__emblem,
  .header__emblem-svg {
    width: 56px;
    height: 56px;
  }
  .header__top-bar {
    gap: 14px;
  }
}

/* src/features/portal/ServiceGrid.css */
.service-grid {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-grid__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.service-grid__title {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 0.15em;
}
.service-grid__count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green-dim);
  letter-spacing: 0.12em;
}
.service-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 750px) {
  .service-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .service-grid__items {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* src/features/portal/ServiceCard.css */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 16px;
  background: rgba(0, 15, 40, 0.85);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
  animation: card-in 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: var(--card-delay, 0ms);
  will-change: transform;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.service-card--hovered {
  border-color: var(--card-color);
  box-shadow:
    0 0 0 1px var(--card-color),
    0 0 30px -5px var(--card-color),
    inset 0 0 30px rgba(0, 245, 255, 0.03);
}
.service-card__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--card-color, var(--cyan));
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card--hovered .service-card__corner {
  opacity: 0.8;
}
.service-card__corner--tl {
  top: 4px;
  left: 4px;
  border-width: 1px 0 0 1px;
}
.service-card__corner--tr {
  top: 4px;
  right: 4px;
  border-width: 1px 1px 0 0;
}
.service-card__corner--bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 1px 1px;
}
.service-card__corner--br {
  bottom: 4px;
  right: 4px;
  border-width: 0 1px 1px 0;
}
.service-card__shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(0, 245, 255, 0.04) 0%,
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card--hovered .service-card__shine {
  opacity: 1;
}
.service-card__glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      var(--card-color),
      transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  filter: blur(24px);
}
.service-card--hovered .service-card__glow {
  opacity: 0.12;
}
.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  padding: 8px;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.service-card--hovered .service-card__icon {
  background: rgba(0, 245, 255, 0.07);
  border-color: var(--card-color);
  transform: scale(1.08);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card__tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--card-color);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 245, 255, 0.08);
  font-family: var(--mono);
  transition: border-color 0.3s;
}
.service-card--hovered .service-card__tag {
  border-color: var(--card-color);
  background: rgba(0, 0, 0, 0.5);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.service-card__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(200, 235, 255, 0.92);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 245, 255, 0.06);
  transition: border-color 0.3s;
}
.service-card--hovered .service-card__footer {
  border-color: rgba(0, 245, 255, 0.15);
}
.service-card__url {
  font-size: 10px;
  color: rgba(0, 245, 255, 0.25);
  font-family: var(--mono);
  transition: color 0.3s;
}
.service-card--hovered .service-card__url {
  color: var(--card-color);
}
.service-card__arrow {
  width: 14px;
  height: 14px;
  color: rgba(0, 245, 255, 0.2);
  transition: color 0.3s, transform 0.3s;
}
.service-card--hovered .service-card__arrow {
  color: var(--card-color);
  transform: translateX(3px);
}

/* src/features/portal/Clock.css */
.clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}
.clock__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 40px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel);
  position: relative;
  width: 100%;
  overflow: hidden;
}
.clock__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--cyan),
      transparent);
  animation: scan-h 4s ease-in-out infinite;
}
@keyframes scan-h {
  0%, 100% {
    opacity: 0;
    transform: scaleX(0.1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}
.clock__label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.clock__time {
  display: flex;
  align-items: baseline;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5), 0 0 60px rgba(0, 245, 255, 0.2);
}
.clock__sep {
  color: rgba(0, 245, 255, 0.3);
  transition: color 0.1s;
}
.clock__sep--on {
  color: var(--cyan);
}
.clock__sec {
  font-size: 40px;
  color: var(--green);
  align-self: flex-end;
  padding-bottom: 8px;
  margin-left: 6px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}
.clock__date {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: capitalize;
  font-family: var(--mono);
}
.clock__unix {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 2px;
}
.clock__unix-label {
  color: rgba(0, 245, 255, 0.3);
}
.clock__unix-val {
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .clock__time {
    font-size: 52px;
  }
  .clock__sec {
    font-size: 26px;
  }
}

/* src/features/portal/ParticleBackground.css */
.particle-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* src/features/portal/SystemMonitor.css */
.sysmon {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sysmon__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.sysmon__title {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 0.15em;
}
.sysmon__badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-dim);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 2px;
  padding: 2px 8px;
  letter-spacing: 0.12em;
  animation: badge-glow 4s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
  }
}
.sysmon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 750px) {
  .sysmon__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .sysmon__grid {
    grid-template-columns: 1fr;
  }
}
.sysmon__card {
  background: rgba(0, 20, 50, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sysmon__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mc, var(--cyan));
  opacity: 0.5;
}
.sysmon__card--warn {
  border-color: rgba(255, 200, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 200, 0, 0.08);
}
.sysmon__card--crit {
  border-color: rgba(255, 59, 92, 0.4);
  box-shadow: 0 0 18px rgba(255, 59, 92, 0.15);
  animation: crit-flash 1.5s ease-in-out infinite;
}
@keyframes crit-flash {
  0%, 100% {
    box-shadow: 0 0 18px rgba(255, 59, 92, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 59, 92, 0.35);
  }
}
.sysmon__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sysmon__card-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(140, 200, 230, 0.5);
  letter-spacing: 0.15em;
}
.sysmon__card-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.sysmon__card-status--ok {
  color: var(--green-dim);
}
.sysmon__card-status--warn {
  color: #ffc800;
}
.sysmon__card-status--crit {
  color: var(--red);
  animation: crit-blink 0.8s step-end infinite;
}
@keyframes crit-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.sysmon__card-value {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--mc, var(--cyan));
  line-height: 1;
  text-shadow: 0 0 20px var(--mc, var(--cyan));
  letter-spacing: -0.02em;
}
.sysmon__card-unit {
  font-size: 13px;
  color: rgba(140, 200, 230, 0.4);
  margin-left: 3px;
}
.sysmon__graph {
  width: 100%;
  height: 32px;
  display: block;
}
.sysmon__bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.sysmon__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--mc, var(--cyan));
  box-shadow: 0 0 8px var(--mc, var(--cyan));
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.sysmon__bar-fill--warn {
  background: #ffc800;
  box-shadow: 0 0 8px #ffc800;
}
.sysmon__bar-fill--crit {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.sysmon__nasa {
  background: rgba(0, 10, 30, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}
.sysmon__nasa::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(0, 245, 255, 0.015) 60px,
      rgba(0, 245, 255, 0.015) 61px);
  pointer-events: none;
}
.sysmon__nasa-title {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0, 245, 255, 0.35);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.sysmon__nasa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
@media (max-width: 750px) {
  .sysmon__nasa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .sysmon__nasa-grid {
    grid-template-columns: 1fr;
  }
}
.sysmon__nasa-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.sysmon__nasa-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(140, 200, 230, 0.4);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sysmon__nasa-dots {
  flex: 1;
  min-width: 8px;
  border-bottom: 1px dotted rgba(0, 245, 255, 0.12);
}
.sysmon__nasa-val {
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  text-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

/* src/features/portal/MasonChat.css */
.mason-chat {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.mason-chat__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 15, 40, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.mason-chat__toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}
.mason-chat--open .mason-chat__toggle {
  border-radius: 4px 4px 0 0;
  border-bottom-color: transparent;
}
.mason-chat__toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mason-chat__toggle-label {
  flex: 1;
  text-align: left;
}
.mason-chat__toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  opacity: 0.6;
}
.mason-chat__toggle-dot--active {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  animation: dot-pulse 0.8s ease-in-out infinite;
  opacity: 1;
}
@keyframes dot-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.mason-chat__panel {
  background: rgba(0, 8, 24, 0.97);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panel-open 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes panel-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mason-chat__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
  background: rgba(0, 20, 50, 0.5);
}
.mason-chat__panel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mason-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: bold;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
  flex-shrink: 0;
}
.mason-chat__name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  font-weight: bold;
}
.mason-chat__status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green-dim);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.mason-chat__model {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-dim);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 2px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.mason-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.2) transparent;
}
.mason-chat__messages::-webkit-scrollbar {
  width: 4px;
}
.mason-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}
.mason-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.2);
  border-radius: 2px;
}
.mason-chat__boot {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  line-height: 1.8;
  padding: 8px;
  background: rgba(0, 255, 100, 0.03);
  border: 1px solid rgba(0, 255, 100, 0.08);
  border-radius: 4px;
}
.mason-chat__boot-prompt {
  color: var(--cyan);
  margin-right: 6px;
}
.mason-chat__cursor {
  animation: cursor-blink 0.8s step-end infinite;
  color: var(--green);
  font-size: 14px;
}
@keyframes cursor-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.mason-chat__msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
}
.mason-chat__msg--user {
  align-self: flex-end;
  align-items: flex-end;
}
.mason-chat__msg--mason {
  align-self: flex-start;
  align-items: flex-start;
}
.mason-chat__msg-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mason-chat__msg-author {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(0, 245, 255, 0.4);
}
.mason-chat__msg-time {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(140, 200, 230, 0.25);
}
.mason-chat__msg-text {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.mason-chat__msg--user .mason-chat__msg-text {
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.15);
  color: rgba(200, 240, 255, 0.9);
  border-bottom-right-radius: 0;
}
.mason-chat__msg--mason .mason-chat__msg-text {
  background: rgba(179, 71, 255, 0.06);
  border: 1px solid rgba(179, 71, 255, 0.15);
  color: rgba(220, 200, 255, 0.9);
  border-bottom-left-radius: 0;
}
.mason-chat__typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(179, 71, 255, 0.06);
  border: 1px solid rgba(179, 71, 255, 0.15);
  border-radius: 4px;
  border-bottom-left-radius: 0;
}
.mason-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.mason-chat__typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.mason-chat__typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.mason-chat__input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 245, 255, 0.08);
  background: rgba(0, 10, 30, 0.6);
  align-items: flex-end;
}
.mason-chat__input {
  flex: 1;
  background: rgba(0, 20, 50, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 14px;
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.mason-chat__input:focus {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.08);
}
.mason-chat__input::placeholder {
  color: rgba(0, 245, 255, 0.2);
}
.mason-chat__input:disabled {
  opacity: 0.4;
}
.mason-chat__send {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.mason-chat__send:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.2);
}
.mason-chat__send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.mason-chat__send svg {
  width: 18px;
  height: 18px;
}
.mason-chat__footer-info {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(0, 245, 255, 0.2);
  letter-spacing: 0.1em;
}
.mason-chat__enc {
  color: var(--green-dim);
  font-size: 9px;
}
