  :root {
      --primary: #EF5B0C;
      --primary-dark: #c44a08;
      --bg: #f6f7fb;
      --card: #ffffff;
      --text: #1e1e1e;
      --muted: #666;
      --border: #e5e7eb;
      --success: #22c55e;
      --danger: #ef4444;
      --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
      --radius: 16px;
  }

  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      font-family: Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      padding: 12px;
  }

  .panel {
      width: 100%;
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      border: 1px solid var(--border);
  }

  .panel-header {
      background: linear-gradient(135deg, var(--primary), #ff7a2f);
      padding: 18px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #fff;
  }

  .panel-header h2 {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.2px;
  }

  .status-badge {
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      gap: 6px;
      align-items: center;
      background: rgba(255, 255, 255, 0.2);
  }

  .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--danger);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .dot.online {
      background: var(--success);
  }

  .panel-body {
      padding: 20px;
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 18px;
      height: 100%;
  }

  .card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      height: 90%;
  }

  .field {
      margin-bottom: 12px;
  }

  label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--muted);
  }

  input {
      width: 100%;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      outline: none;
      font-size: 14px;
      transition: 0.2s ease;
  }

  input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(239, 91, 12, 0.15);
  }

  .btns {
      display: flex;
      gap: 10px;
      margin-top: 8px;
  }

  .btn {
      flex: 1;
      border: none;
      padding: 12px;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 800;
      transition: 0.2s ease;
      font-size: 14px;
  }

  .btn-online {
      background: var(--success);
      color: #fff;
  }

  .btn-online:hover {
      transform: translateY(-1px);
      filter: brightness(0.95);
  }

  .btn-offline {
      background: var(--danger);
      ;
      color: #fff;
  }

  .btn-offline:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
  }

  .chat-area {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      height: 90%;
  }

  .chat-topbar {
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: #fff;
  }

  .chat-topbar-title {
      font-size: 14px;
      font-weight: 800;
  }

  .chat-topbar-sub {
      font-size: 12px;
      color: var(--muted);
  }

  .chat-box {
      flex: 1;
      padding: 14px;
      overflow-y: auto;
      background: #fafafa;
  }

  .message-row {
      display: flex;
      margin-bottom: 12px;
  }

  .message-row.user {
      justify-content: flex-start;
  }

  .message-row.agent {
      justify-content: flex-end;
  }

  .bubble {
      max-width: 75%;
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 0.3;
      position: relative;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
      white-space: pre-wrap;
      word-break: break-word;
  }

  .bubble.user {
      background: #fff;
      border: 1px solid var(--border);
      border-bottom-left-radius: 6px;
  }

  .bubble.agent {
      background: linear-gradient(135deg, var(--primary), #ff7a2f);
      color: #fff;
      border-bottom-right-radius: 6px;
  }

  .meta {
      margin-top: 6px;
      font-size: 11px;
      opacity: 0.75;
  }

  .chat-input-area {
      display: flex;
      gap: 10px;
      padding: 12px;
      border-top: 1px solid var(--border);
      background: #fff;
  }

  .chat-input-area input {
      flex: 1;
  }

  .send-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 12px 16px;
      cursor: pointer;
      font-weight: 800;
      transition: 0.2s ease;
  }

  .send-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
  }

  .disabled {
      opacity: 0.6;
      pointer-events: none;
  }

  @media (max-width: 900px) {
      .panel-body {
          grid-template-columns: 1fr;
      }

      .chat-area {
          height: 520px;
      }
  }