body {
  background: #0f1614;
  color: #dfe7e3;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* LOGIN */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(97, 149, 143, 0.08), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(170, 185, 120, 0.06), transparent 28%),
    #0b110f;
}

.login-panel {
  width: min(460px, calc(100vw - 40px));
  padding: 28px;
  border-radius: 18px;
  background: rgba(16, 22, 20, 0.92);
  border: 1px solid #26332e;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.login-eyebrow,
.header-eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  color: #95a7a0;
  margin-bottom: 8px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.login-text {
  color: #aebcb7;
  line-height: 1.45;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: #95a7a0;
  margin-bottom: 6px;
}

.login-input,
button,
select {
  background: #18211e;
  color: #dfe7e3;
  border: 1px solid #33443d;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.login-input {
  width: 100%;
  box-sizing: border-box;
}

.password-row {
  margin: 14px 0 18px;
}

.password-mask {
  min-height: 20px;
  letter-spacing: .18em;
  color: #d6ca71;
  font-size: 18px;
}

.login-btn:hover,
button:hover {
  background: #1f2b27;
}

.desktop-app {
  min-height: 100vh;
}

.header {
  padding: 16px;
  border-bottom: 1px solid #2a3a35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.session-box {
  border: 1px solid #2a3a35;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 180px;
}

.session-label {
  font-size: 12px;
  color: #95a7a0;
  margin-bottom: 4px;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: calc(100vh - 76px);
}

.board-section {
  padding: 16px;
}

.board {
  position: relative;
  background: #0c1311;
  min-height: 520px;
  border: 1px solid #2a3a35;
  border-radius: 12px;
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(200,200,200,0.05), transparent),
    radial-gradient(circle at 70% 70%, rgba(200,200,200,0.03), transparent);
  pointer-events: none;
}

#links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#links line {
  stroke: rgba(220, 230, 225, 0.35);
  stroke-width: 2;
}

.node {
  position: absolute;
  width: 150px;
  background: #1c2622;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.node:hover {
  transform: scale(1.04);
  border-color: rgba(255,255,255,0.24);
}

.node.selected {
  border-color: #d6ca71;
}

.node-title {
  font-weight: bold;
}

.node-status {
  opacity: .75;
  font-size: 12px;
  margin-top: 4px;
}

.controls {
  margin-top: 12px;
}

.sidebar {
  border-left: 1px solid #2a3a35;
  padding: 16px;
}

.file-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.photo-placeholder {
  padding: 28px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 8px;
  text-align: center;
  opacity: .55;
  margin-bottom: 10px;
}

.phone {
  margin-top: 8px;
  background: #111716;
  border: 1px solid #26332e;
  border-radius: 24px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 560px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.camera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #26312d;
}

.speaker-slot {
  width: 70px;
  height: 8px;
  border-radius: 999px;
  background: #202926;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #17201d;
  margin-bottom: 10px;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2d3b36;
}

.phone-contact-meta {
  display: flex;
  flex-direction: column;
}

#chatName {
  font-weight: bold;
}

#chatStatus {
  color: #9fb0aa;
}

.chat {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background:
    linear-gradient(rgba(12,18,17,.82), rgba(12,18,17,.82)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.02), transparent);
  border-radius: 14px;
}

.system-note {
  font-size: 13px;
  color: #97a8a2;
}

.msg {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.msg.me {
  align-self: flex-end;
  background: #285a46;
}

.msg.them {
  align-self: flex-start;
  background: #293330;
}

.msg.typing {
  align-self: flex-start;
  background: #293330;
  color: #aebcb7;
  font-style: italic;
}

.phone-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-left: 0;
    border-top: 1px solid #2a3a35;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}
