@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&display=swap');

    :root {
      --bg: #080c10;
      --surface: #0e1318;
      --border: #1c2530;
      --accent: #00ff88;
      --danger: #ff3b5c;
      --warn: #ffaa00;
      --text: #e8edf2;
      --muted: #4a5a6a;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Syne', sans-serif;
      min-height: 100vh
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: linear-gradient(rgba(0, 255, 136, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, .02) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0
    }

    .login-wrap {
      position: relative;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh
    }

    .login-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 40px;
      width: 360px
    }

    .login-box h1 {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 6px
    }

    .login-box .sub {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 28px
    }

    .field {
      margin-bottom: 16px
    }

    .field label {
      display: block;
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 6px
    }

    .field input {
      width: 100%;
      padding: 10px 14px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: 'Space Mono', monospace;
      font-size: 13px;
      outline: none
    }

    .field input:focus {
      border-color: var(--accent)
    }

    .btn-primary {
      width: 100%;
      padding: 12px;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 8px;
      font-family: 'Syne', sans-serif;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .2s
    }

    .btn-primary:hover {
      opacity: .85
    }

    .btn-primary:disabled {
      opacity: .5;
      cursor: not-allowed
    }

    .err {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--danger);
      margin-top: 10px;
      text-align: center
    }

    header {
      position: sticky;
      top: 0;
      z-index: 10;
      padding: 14px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(8, 12, 16, .95);
      backdrop-filter: blur(10px)
    }

    .logo {
      font-size: 16px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px
    }

    .logo-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent);
      animation: pulse 2s infinite
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .4
      }
    }

    .user-info {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 12px
    }

    .btn-sm {
      padding: 5px 12px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--muted);
      cursor: pointer;
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      transition: all .2s
    }

    .btn-sm:hover {
      border-color: var(--danger);
      color: var(--danger)
    }

    .main {
      position: relative;
      z-index: 5;
      padding: 20px;
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 16px;
      min-height: calc(100vh - 57px)
    }

    .sidebar h2 {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      margin-bottom: 12px;
      letter-spacing: 1px
    }

    .ch-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: all .2s
    }

    .ch-item:hover,
    .ch-item.active {
      border-color: var(--accent)
    }

    .ch-item.active {
      background: rgba(0, 255, 136, .05)
    }

    .ch-name {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 4px
    }

    .ch-desc {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--muted)
    }

    .ch-status {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      font-family: 'Space Mono', monospace;
      font-size: 10px
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%
    }

    .dot-g {
      background: var(--accent)
    }

    .dot-r {
      background: var(--danger);
      animation: blink 1s infinite
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .3
      }
    }

    .panel {
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px
    }

    .ptt-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 30px
    }

    .ptt-btn {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 3px solid var(--border);
      background: var(--surface);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .15s;
      user-select: none;
      -webkit-user-select: none;
      touch-action: none;
    }

    .ptt-btn:hover:not(.busy) {
      border-color: var(--accent)
    }

    .ptt-btn.talking {
      border-color: var(--danger);
      background: rgba(255, 59, 92, .1);
      box-shadow: 0 0 50px rgba(255, 59, 92, .4);
      transform: scale(1.08)
    }

    .ptt-btn.busy {
      border-color: var(--warn);
      opacity: .6;
      cursor: not-allowed
    }

    .ptt-icon {
      font-size: 56px
    }

    .ptt-hint {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      margin-top: 8px;
      text-align: center
    }

    .ptt-status {
      font-family: 'Space Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      min-height: 24px
    }

    .ptt-status.talking {
      color: var(--danger)
    }

    .ptt-status.free {
      color: var(--accent)
    }

    .ptt-status.busy {
      color: var(--warn)
    }

    .log-box {
      max-height: 200px;
      overflow-y: auto
    }

    .log-entry {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 10px
    }

    .log-time {
      color: var(--muted);
      white-space: nowrap
    }

    .t-join {
      color: var(--accent)
    }

    .t-talk {
      color: var(--warn)
    }

    .t-stop {
      color: var(--muted)
    }

    .t-err {
      color: var(--danger)
    }

    .no-ch {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: var(--muted);
      font-family: 'Space Mono', monospace;
      font-size: 13px;
      gap: 12px
    }

    .badge {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid
    }

    .badge-green {
      border-color: var(--accent);
      color: var(--accent)
    }

    .badge-red {
      border-color: var(--danger);
      color: var(--danger)
    }

    .ch-header {
      display: flex;
      align-items: center;
      justify-content: space-between
    }