
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

    :root {
      --vh: 1vh;
      --bg-page: #f9fafb;
      --bg-card: #ffffff;
      --bg-panel: #f9fafb;
      --bg-input: #ffffff;
      --bg-hover: #f3f4f6;
      --border-subtle: #e5e7eb;
      --border-focus: #d1d5db;
      --text-main: #111827;
      --text-secondary: #374151;
      --text-muted: #6b7280;
      --text-placeholder: #9ca3af;
      --accent: #404a5f;
      --accent-hover: #404a5f8a;
      --accent-soft: rgba(16, 163, 127, 0.1);
      --radius-card: 0.75rem;
      --radius-inner: 0.5rem;
      --radius-outer: calc(0.5rem + 2px);
      --radius-full: 9999px;
      --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      --grid-dot: rgba(0, 0, 0, 0.02);
      --bubble-user: #f3f4f6;
      --bubble-assistant: #ffffff;
      --bubble-border: transparent;
      --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
      --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: calc(var(--vh, 1vh) * 100);
      font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color:var(--bg-panel);
      color: var(--text-main);
      position: relative;
      overflow-x: hidden;
      touch-action: pan-x pan-y;
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    p {
      margin: 0;
    }

    a {
      color: var(--accent);
      text-decoration: none;
      transition: color var(--transition-fast);
    }

    a:hover {
      color: var(--accent-hover);
    }

    input,
    textarea {
      outline: none !important;
      color: var(--text-main);
      font-family: inherit;
    }

    input::placeholder,
    textarea::placeholder {
      color: var(--text-placeholder);
    }

    button {
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      border-radius: var(--radius-inner);
      padding: 8px 12px;
      cursor: pointer;
      color: var(--text-main);
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      transition: all var(--transition-fast);
    }

    button:hover:not(:disabled) {
      background: var(--bg-hover);
    }

    button:active:not(:disabled) {
      transform: scale(0.98);
    }

    /* Firefox + general hint */
    * {
      /* Firefox: thin colored scrollbars */
      scrollbar-width: thin;
      scrollbar-color: var(--text-muted) var(--bg-panel);
    }

    /* WebKit browsers: Chrome, Edge, Safari, Opera */
    *::-webkit-scrollbar {
      overflow: clip;
      border-radius: 0.5rem;
      width: 0px;
      /* vertical scrollbar */
      height: 0px;
      /* horizontal scrollbar */
    }

    /* Track (background area) */
    *::-webkit-scrollbar-track {
      overflow: clip;
      border-radius: 0.5rem;
      background: var(--bg-panel);
    }

    /* Thumb (draggable handle) */
    *::-webkit-scrollbar-thumb {
      overflow: clip;
      background-color: var(--text-muted);
      border-radius: 999px;
      border: 2px solid var(--bg-panel);
      /* “pill” look against panel bg */
    }

    /* Hover state for thumb */
    *::-webkit-scrollbar-thumb:hover {
      /* Slightly brighten the thumb without needing a new color variable */
      filter: brightness(1.15);
    }

    /* Corner where horizontal & vertical scrollbars meet */
    *::-webkit-scrollbar-corner {
      border-radius: 0.5rem;
      background: var(--bg-panel);
    }

    .app-shell {
      min-height: calc(var(--vh, 1vh) * 100);
      display: flex;
      flex-direction: column;
      position: relative;
      z-index: 1;
    }

    .app-header {
      padding: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      background: var(--bg-panel);
      backdrop-filter: blur(8px);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .app-header-title {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--text-main);
    }

    .app-header-sub {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 400;
    }

    .session-status-full {
      opacity:0.5;
      display: inline;
    }

    .session-status-compact {
      display: none;
      font-weight: 600;
    }

    .app-header-right {
      display: flex;
      flex-flow: wrap;
      align-items: center;
      gap: 6px;
    }

    .settings-btn {
      border: 1px solid transparent;
      background: transparent;
      border-radius: var(--radius-inner);
      padding: 6px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-weight: 500;
      color: var(--text-secondary);
      transition: all var(--transition-fast);
    }

    .settings-btn:hover {
      background: var(--bg-hover);
      color: var(--text-main);
    }

    .settings-btn svg {
      width: 16px;
      height: 16px;
      opacity: 0.9;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px;
      max-width: 200px;
      max-height: 2rem;
      overflow: clip;
      text-overflow: ellipsis;
      white-space: nowrap;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      font-size: 12px;
      box-shadow: none;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .status-pill.status-green {
      background: rgba(34, 197, 94, 0.5);
      color: #16a34a;
    }

    .status-pill.status-yellow {
      background: rgba(234, 179, 8, 0.5);
      color: #b45309;
    }

    .status-pill.status-red {
      background: rgba(239, 68, 68, 0.5);
      color: #dc2626;
    }

    .status-pill.status-pink {
      background: rgba(236, 72, 147, 0.5);
      color: #ec4899;
    }

    .model-status-pill {
      display: inline;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: var(--radius-inner);
      font-size: 12px;
      max-height: 2rem;
      font-weight: 600;
      background: #e5e7eb;
      color: var(--text-main);
      border: 1px solid var(--border-subtle);
      box-shadow: none;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
      cursor: pointer;
      position: relative;
    }

    .model-status-pill::after {
      content: '▾';
      font-size: 11px;
      color: var(--text-muted);
    }

    .model-status-pill:hover {
      background: #f0f0f0;
      transform: translateY(-1px);
    }

    .model-status-pill[data-phase="idle"] {
      background: rgba(187, 247, 208, 0.9);
      color: #16a34a;
    }

    .model-status-pill[data-phase="loading"] {
      background: rgba(252, 211, 77, 0.9);
      color: #92400e;
    }

    .model-status-pill[data-phase="streaming"] {
      background: rgba(190, 242, 255, 0.9);
      color: #0c4a6e;
    }

    .model-status-pill[data-phase="error"] {
      background: rgba(254, 226, 226, 0.9);
      color: #b91c1c;
    }

    .model-status-wrapper {
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
    }

    .system-prompt-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      font-size: 11px;
      color: var(--text-secondary);
      cursor: pointer;
      box-shadow: none;
      transition: all var(--transition-fast);
    }

    .system-prompt-btn:hover:not(:disabled) {
      background: var(--bg-hover);
      color: var(--text-main);
    }

    .system-prompt-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .system-prompt-btn svg {
      width: 14px;
      height: 14px;
    }

    .system-prompt-btn.active {
      background: var(--accent-soft);
      border-color: var(--accent);
      color: var(--accent);
    }

    .model-spinner {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 3px solid rgba(0, 0, 0, 0.08);
      border-top-color: var(--accent);
      animation: spinner-rotate 1.2s linear infinite;
    }

    .model-spinner.hidden {
      display: none;
    }

    @keyframes spinner-rotate {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .model-metrics {
      display: flex;
      flex-direction: column;
      font-size: 11px;
      color: var(--text-muted);
      gap: 4px;
      min-width: 120px;
    }

    .model-metrics span {
      display: block;
    }

    .peer-picker {
      display: inline-flex;
      min-width: 180px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 6px 10px;
      background: var(--bg-card);
      font-size: 13px;
      color: var(--text-main);
      cursor: pointer;
      box-shadow: none;
    }

    .peer-picker.hidden {
      display: none;
    }

    .peer-picker:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .app-main {
      flex: 1;
      padding: 0;
      display: flex;
      justify-content: center;
      overflow: hidden;
    }

    .card {
      width: 100%;
      max-width: 100%;
      background: var(--bg-card);
      border-radius: 0;
      padding: 0;
      border-top-left-radius: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow: hidden;
    }

    .card-title {
      font-size: 20px;
      font-weight: 600;
      margin: 0;
      letter-spacing: -0.01em;
    }

    .card-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 400;
    }

    .conn-bar {
      justify-content: space-between;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      background: var(--bg-panel);
      padding: 16px 18px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
    }

    .conn-bar label {
      font-size: 12px;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 0.04em;
    }

    .conn-bar input {
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      padding: 10px 16px;
      font-size: 16px;
      box-shadow: none;
    }

    .conn-bar button {
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      padding: 10px;
      font-size: 13px;
      background: var(--accent);
      color: white;
      cursor: pointer;
      box-shadow: none;
    }

    .conn-bar button:disabled {
      opacity: .5;
      cursor: not-allowed;
    }

    .auth-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .auth-forms {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .auth-card {
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    }

    .auth-card label {
      font-size: 12px;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 0.04em;
    }

    .auth-card input {
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      padding: 10px 14px;
      font-size: 16px;
      background: var(--bg-input);
      box-shadow: none;
    }

    .auth-card button {
      align-self: flex-start;
      padding: 8px 16px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--accent);
      color: #fff;
      cursor: pointer;
      box-shadow: none;
    }

    .session-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      justify-content: flex-start;
      padding: 1rem;
      border-radius: 0;
      border: none;
      border-bottom: 1px solid var(--border-subtle);
      background: var(--bg-card);
      flex-shrink: 0;
      flex-flow: wrap;
      box-shadow: none;
    }

    .quick-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 0;
      padding: 1rem;
      border-bottom: 1px solid var(--border-subtle);
    }

    .quick-btn {
      border: 1px solid var(--border-subtle);
      background: transparent;
      border-radius: var(--radius-inner);
      padding: 6px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      transition: all var(--transition-fast);
    }

    .quick-btn:hover {
      background: var(--bg-hover);
      border-color: var(--border-focus);
    }

    .session-hardware-inline {
      display: none;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--text-muted);
      min-width: 140px;
    }

    .session-hardware-bar {
      flex: 1;
      height: 5px;
      border-radius: var(--radius-inner);
      background: rgba(0, 0, 0, 0.05);
      overflow: hidden;
      position: relative;
    }

    .session-hardware-bar span {
      position: absolute;
      inset: 0;
      border-radius: var(--radius-inner);
      background: var(--accent);
      width: 0%;
      transition: width 0.4s ease;
    }

    .session-hardware-inline span:last-child {
      white-space: nowrap;
      font-size: 10px;
    }

    .hardware-panel {
      padding: 12px 16px;
      background: var(--accent-soft);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      position: relative;
    }

    .hardware-panel.collapsed .hardware-row:not(.primary-metric),
    .hardware-panel.collapsed .model-metrics {
      display: none;
    }

    .hardware-row {
      display: grid;
      grid-template-columns: 120px 1fr auto;
      align-items: center;
      gap: 12px;
    }

    .hardware-row>span:first-child {
      width: 120px;
      min-width: 120px;
      display: inline-flex;
      align-items: center;
    }

    .hardware-row.primary-metric {
      gap: 12px;
    }

    .hardware-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .metric-sparkline {
      width: 180px;
      height: 32px;
      display: block;
      filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.06));
    }

    .hardware-toggle {
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: var(--text-main);
      border-radius: var(--radius-inner);
      padding: 4px 8px;
      font-size: 11px;
      cursor: pointer;
      box-shadow: none;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .hardware-toggle:hover {
      background: var(--bg-hover);
      transform: translateY(-1px);
    }

    .sidebar-inline-toggle {
      display: none;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 6px 10px;
      background: var(--bg-panel);
      color: var(--text-main);
      cursor: pointer;
      box-shadow: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .sidebar-inline-toggle:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    }

    .sessions-sidebar.hidden+.card .session-bar .sidebar-inline-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .session-bar button {
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      color: var(--text-main);
      padding: 6px 8px;
      cursor: pointer;
      box-shadow: none;
      height: 2rem;
    }

    .sidebar-inline-toggle svg {
      width: 16px;
      height: 16px;
      transform: rotate(0deg);
      transition: transform var(--transition-fast);
    }

    .sidebar-inline-toggle[data-sidebar-state="open"] svg {
      transform: rotate(180deg);
    }

    .status-log {
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-panel);
      padding: 12px 14px;
      min-height: 48px;
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-height: 160px;
      overflow-y: auto;
    }

    .status-log div.ok {
      color: #15803d;
    }

    .status-log div.err {
      color: #be123c;
    }

    .chat-messages {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      background: var(--bg-card);
      border-radius: 0;
      border: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      box-shadow: none;
      scroll-behavior: smooth;
      position: relative;
    }

    .chat-message {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid var(--accent-soft);
      gap: 6px;
      padding: 16px 20px;
      transition: background var(--transition-fast);
    }

    .chat-message:hover {}

    .chat-message-user {
      align-items: flex-start;
    }

    .chat-message-user:hover {}

    .chat-message-assistant {
      align-items: flex-start;
    }

    .chat-meta {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .chat-bubble {
      max-width: 100%;
      padding: 0;
      border-radius: 0;
      font-size: 15px;
      line-height: 1.7;
      box-shadow: none;
      position: relative;
      overflow: visible;
      background: transparent;
      border: none;
      color: var(--text-secondary);
    }

    .chat-bubble-user {
      background: transparent;
      border: none;
      color: var(--text-main);
    }

    .chat-bubble-assistant {
      background: transparent;
      border: none;
    }

    .typing-reveal {
      position: absolute;
      inset: 0;
      background: inherit;
      transform-origin: left;
      animation: typingReveal 260ms ease-out forwards;
      pointer-events: none;
      z-index: 2;
    }

    @keyframes typingReveal {
      0% {
        transform: scaleX(1);
      }

      100% {
        transform: scaleX(0);
      }
    }

    .chat-input-wrap {
      display: flex;
      flex-flow: wrap;
      justify-content: flex-start;
      gap: 10px;
      flex-shrink: 0;
      max-height: 50%;
      padding: 16px 20px 20px;
      background: var(--bg-card);
      border-top: 1px solid var(--border-subtle);
    }

    .chat-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 12px;
      color: var(--text-muted);
    }

    .tool-btn {
      border: 1px solid var(--border-subtle);
      background: transparent;
      border-radius: var(--radius-inner);
      padding: 6px 12px;
      cursor: pointer;
      color: var(--text-secondary);
      font-size: 13px;
      transition: all var(--transition-fast);
    }

    .tool-btn:hover:not(:disabled) {
      background: var(--bg-hover);
      border-color: var(--border-focus);
    }

    .tool-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    #image-chip {
      padding: 0px 10px !important;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      color: var(--text-main);
      font-size: 12px;
    }

    .thinking-chip {
      cursor: pointer;
      position: relative;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .thinking-chip input[type="checkbox"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .thinking-chip.on {
      background: var(--text-main);
      color: var(--bubble-user);
      border-color: var(--text-muted);
    }

    .thinking-chip .thinking-label {
      pointer-events: none;
    }

    .upload-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: var(--radius-inner);
      border: 1px dashed var(--border-subtle);
      background: var(--bg-panel);
      color: var(--text-main);
      font-size: 12px;
      max-width: 80%;
      flex-wrap: wrap;
    }

    .upload-status .progress {
      font-weight: 600;
    }

    .upload-status .status-icon {
      width: 16px;
      height: 16px;
      display: inline-block;
    }

    .upload-status.success {
      border-color: #22c55e;
    }

    .upload-status.error {
      border-color: #ef4444;
      color: #b91c1c;
    }

    .upload-meta {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .upload-name {
      font-weight: 600;
    }

    .upload-thumb {
      width: 38px;
      height: 38px;
      border-radius: 8px;
      object-fit: cover;
      border: 1px solid var(--border-subtle);
      background: #f8fafc;
    }

    .upload-retry-btn {
      border: 1px solid var(--border-subtle);
      background: #fff;
      padding: 4px 10px;
      border-radius: var(--radius-inner);
      font-size: 12px;
      cursor: pointer;
    }

    .upload-retry-btn:hover {
      background: var(--bg-input);
    }

    .chat-thumb {
      width: 120px;
      height: auto;
      max-height: 160px;
      border: 1px solid var(--border-subtle);
      display: block;
      margin-bottom: 8px;
      object-fit: contain;
    }

    .theme-toggle {
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      border-radius: var(--radius-inner);
      padding: 6px 10px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text-main);
    }

    .theme-toggle svg {
      width: 18px;
      height: 18px;
    }

    .theme-toggle .theme-icon {
      display: block;
    }

    .theme-toggle .icon-moon {
      display: none;
    }

    .theme-dark .theme-toggle .icon-sun {
      display: none;
    }

    .theme-dark .theme-toggle .icon-moon {
      display: block;
    }

    .theme-toggle:hover {
      background: var(--bg-panel);
    }

    .theme-dark {
      --bg-page: #212121;
      --bg-card: #2f2f2f;
      --bg-panel: #1a1a1a;
      --bg-input: #3f3f3f;
      --bg-hover: #3a3a3a;
      --border-subtle: #4a4a4a;
      --border-focus: #5a5a5a;
      --text-main: #ececec;
      --text-secondary: #d1d1d1;
      --text-muted: #9a9a9a;
      --text-placeholder: #7a7a7a;
      --accent: #5d8172;
      --accent-hover: #5d817263;
      --accent-soft: rgba(25, 195, 125, 0.12);
      --shadow-card: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
      --grid-dot: rgba(255, 255, 255, 0.03);
      --bubble-user: #343541;
      --bubble-assistant: #2f2f2f;
      --bubble-border: transparent;
    }

    .chat-thumb {
      width: 120px;
      height: auto;
      max-height: 160px;
      border: 1px solid var(--border-subtle);
      display: block;
      margin-bottom: 8px;
      object-fit: contain;
    }

    .chip .remove {
      border: none;
      background: transparent;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1;
    }

    .chat-input-field {
      position: relative;
      width: 100%;
      max-height: 100%;
      line-height: 1;
      display: flex;
    }

    #guest-connect {
      width: 100%;
      font-weight: bold;
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .chat-input-field-control {
      width: 100%;
      min-height: 52px;
      border-radius: var(--radius-card);
      border: 1px solid var(--border-subtle);
      padding: 14px 52px 14px 16px;
      font-size: 15px;
      background: var(--bg-input);
      font-family: inherit;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
      max-height: 100%;
      transition: all var(--transition-base);
      resize: none;
    }

    .chat-input-field-control:hover {
      border-color: var(--border-focus);
    }

    .chat-input-field-control:focus {
      outline: none;
      border-color: var(--text-muted);
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .chat-input-field-control:disabled {
      background: var(--bg-hover);
      cursor: not-allowed;
      opacity: 0.6;
    }

    .chat-input-field-control.multiline {
      padding-bottom: 90px;
      resize: vertical;
    }

    .chat-input-submit {
      position: absolute;
      bottom: 1px;
      right: 1px;
      border-radius: 12px !important;
      border-top-left-radius: 0% !important;
      border-bottom-left-radius: 0% !important;
      padding: 8px 14px;
      font-size: 16px;
      box-shadow: none;
      color: white;
      border: none;
      font-weight: 600;
      min-width: 48px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: unset !important;
    }

    .chat-input-submit:hover:not(:disabled) {
      background: var(--accent-hover);
    }

    .chat-input-submit:disabled {
      opacity: 0.5;
      background: var(--text-muted);
    }

    .chat-input-submit.textarea-mode {
      border-top-right-radius: 0 !important;
      border-top-left-radius: 12px !important;
    }

    .scroll-resume-btn {
      position: sticky;
      width: 2rem;
      right: 12px;
      bottom: 12px;
      margin-left: auto;
      aspect-radiuo: 1/1;
      z-index: 20;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 999px;
      aspect-ratio: 1/1;
      background: var(--accent);
      color: var(--bubble-user);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
      font-size: 12px;
      cursor: pointer;
      transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    }

    .scroll-resume-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    }

    .btn {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 12px 28px;
      font-size: 14px;
      color: white;
      font-weight: 600;
      box-shadow: none;
      cursor: pointer;
      line-height: 1;
    }

    .btn:disabled {
      opacity: .6;
      cursor: not-allowed;
    }

    .chat-hint {
      font-size: 12px;
      color: var(--text-muted);
    }

    .chat-area {
      display: flex;
      flex-direction: column;
      gap: 0;
      flex: 1;
      min-height: 0;
      overflow: hidden;
      background: var(--bg-card);
    }

    .reauth-action {
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .reauth-action button {
      border-radius: var(--radius-inner);
      padding: 4px 12px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      color: var(--text-main);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .reauth-action button:hover {
      transform: translateY(-1px);
      opacity: 0.85;
    }

    .chat-area.chat-disabled {
      opacity: 0.55;
      pointer-events: none;
    }

    .hidden {
      display: none !important;
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--bg-card);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      backdrop-filter: blur(4px);
    }

    .modal-content {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      padding: 32px;
      max-width: 520px;
      width: min(520px, 100%);
      position: relative;
      overflow: hidden;
    }

    .modal-spinner {
      --modal-indicator-color: var(--accent);
      --modal-indicator-shadow: rgba(7, 56, 163, 0.35);
      position: absolute;
      top: 24px;
      right: 24px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--modal-indicator-color);
      box-shadow:
        0 0 0 3px var(--modal-indicator-shadow),
        0 0 12px var(--modal-indicator-color),
        0 0 22px var(--modal-indicator-shadow);
      opacity: 1;
      pointer-events: none;
      animation: modal-glow 2.2s ease-in-out infinite;
      transition: box-shadow 0.3s ease, background 0.3s ease;
    }

    .modal-spinner.status-green {
      --modal-indicator-color: #16a34a;
      --modal-indicator-shadow: rgba(22, 163, 74, 0.35);
    }

    .modal-spinner.status-yellow {
      --modal-indicator-color: #b45309;
      --modal-indicator-shadow: rgba(180, 83, 9, 0.35);
    }

    .modal-spinner.status-red {
      --modal-indicator-color: #dc2626;
      --modal-indicator-shadow: rgba(220, 38, 38, 0.35);
    }

    .modal-spinner.status-pink {
      --modal-indicator-color: #ec4899;
      --modal-indicator-shadow: rgba(236, 72, 147, 0.35);
    }

    @keyframes modal-glow {

      0%,
      100% {
        box-shadow:
          0 0 0 3px var(--modal-indicator-shadow),
          0 0 12px var(--modal-indicator-color),
          0 0 22px var(--modal-indicator-shadow);
        transform: scale(1);
      }

      50% {
        box-shadow:
          0 0 0 4px var(--modal-indicator-shadow),
          0 0 20px var(--modal-indicator-color),
          0 0 32px var(--modal-indicator-shadow);
        transform: scale(1.05);
      }
    }

    .modal-title {
      text-align: center;
      font-size: 24px;
      font-weight: 700;
      margin: 0 0 8px 0;
      color: var(--text-main);
    }

    .modal-subtitle {
      text-align: center;
      font-size: 14px;
      color: var(--text-muted);
      margin: 0 0 24px 0;
    }

    .inline-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      color: var(--text-main);
      font-weight: 600;
      justify-content: center;
      width: 100%;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
      animation: pulse-dot 1.2s ease-in-out infinite;
    }

    .status-dot.status-green {
      background: #16a34a;
    }

    .status-dot.status-yellow {
      background: #facc15;
    }

    .status-dot.status-red {
      background: #ef4444;
    }

    @keyframes pulse-dot {
      0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.3);
      }

      70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 69, 0, 0);
      }

      100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
      }
    }

    .visually-hidden {
      position: absolute !important;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Model picker */
    .model-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 1100;
      backdrop-filter: blur(10px);
    }

    .model-modal.hidden {
      display: none;
    }

    .model-modal-content {
      width: min(900px, 100%);
      max-height: calc(100% - 10rem);
      overflow: auto;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .pushRight {
      margin-right: auto;
    }

    .tools-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .tool-row {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 10px 12px;
      background: var(--bg-panel);
      display: flex;
      gap: 12px;
      justify-content: space-between;
      align-items: flex-start;
    }

    .tool-row .tool-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .tool-row .tool-title {
      font-weight: 700;
      color: var(--text-main);
    }

    .tool-row .tool-desc {
      color: var(--text-muted);
      font-size: 12px;
      word-break: break-word;
    }

    .tool-row .tool-actions {
      display: flex;
      gap: 8px;
    }

    .tool-row button {
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      border-radius: var(--radius-inner);
      padding: 6px 10px;
      cursor: pointer;
      color: var(--text-main);
    }

    .tool-form {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 8px;
    }

    .tool-form label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-muted);
    }

    .tool-form input[type="checkbox"] {
      width: auto;
      margin-right: 6px;
    }

    .tool-form input,
    .tool-form textarea {
      width: 100%;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 10px 12px;
      background: var(--bg-input);
      font-family: inherit;
    }

    .tool-form textarea {
      min-height: 120px;
      resize: vertical;
    }

    .tool-form .tool-actions-inline {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .tool-form .tool-error {
      color: #b91c1c;
      font-size: 12px;
    }

    .tool-form button[type="submit"] {
      background: var(--accent);
      color: #fff;
    }

    .tool-form-hint {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .model-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .model-modal-title {
      font-size: 20px;
      font-weight: 700;
      margin: 0;
    }

    .model-modal-sub {
      margin: 0;
      color: var(--text-muted);
      font-size: 13px;
    }

    .model-modal-close {
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      border-radius: var(--radius-inner);
      padding: 6px 10px;
      cursor: pointer;
      color: var(--text-main);
    }

    .model-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .model-card {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 12px 14px;
      background: var(--bg-panel);
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 160px;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
    }

    .model-card:hover {
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      transform: translateY(-1px);
    }

    .model-card.active {
      border-color: var(--text-main);
      background: var(--bubble-user);
    }

    .model-card-title {
      font-weight: 700;
      color: var(--text-main);
    }

    .model-card-meta {
      font-size: 12px;
      color: var(--text-muted);
    }

    .model-card.empty {
      background: var(--bg-input);
      color: var(--text-muted);
      cursor: default;
    }

    .view-login .chat-interface {
      display: none !important;
    }

    .view-chat .login-modal {
      display: none !important;
    }

    /* Login flow states */
    .login-modal .auth-section {
      display: flex;
      flex-flow: column;
      gap: 16px;
    }

    .markdown-body {
      font-size: 14px;
      position: relative;
    }

    .markdown-body code {
      background: rgba(0, 0, 0, 0.05);
      padding: 2px 4px;
      border-radius: 4px;
      font-size: 12px;
    }

    .markdown-body pre {
      background: transparent;
      color: inherit;
      padding: 0;
      border-radius: 0;
      overflow-x: visible;
      font-size: 12px;
    }

    .code-block-wrapper {
      position: relative;
      margin: 16px 0;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
      box-shadow: var(--shadow-card);
      overflow: hidden;
    }

    .code-block-wrapper pre {
      margin: 0;
      padding: 16px;
      overflow-x: auto;
      border-radius: 0;
      background: transparent;
    }

    .copy-code-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 6px 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-inner);
      background: rgba(255, 255, 255, 0.08);
      color: #e5e7eb;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition-fast);
      backdrop-filter: blur(8px);
    }

    .copy-code-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.2);
      color: #fff;
    }

    .copy-code-btn.copied {
      background: rgba(34, 197, 94, 0.2);
      color: #34d399;
      border-color: rgba(34, 197, 94, 0.3);
    }

    /* Sessions Sidebar */
    .chat-interface {
      position: absolute;
      width: 100vw;
      max-height: 100vh;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .app-main {
      display: flex;
      flex-direction: row;
      gap: 0;
      align-items: stretch;
    }

    .sessions-sidebar {
      width: 260px;
      background: var(--bg-panel);
      border-radius: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 16px 12px;
      transition: margin-left 0.3s ease, opacity 0.3s ease;
      max-height: 100%;
      overflow: hidden;
    }

    .sessions-sidebar.hidden {
      margin-left: -260px;
      opacity: 0;
      pointer-events: none;
    }

    .sidebar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 8px 12px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .sidebar-title {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--text-main);
    }

    .sidebar-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sidebar-tab-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 2px;
    }

    .tab-toggle {
      border: none;
      background: transparent;
      color: var(--text-muted);
      padding: 6px 10px;
      border-radius: 8px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .tab-toggle.active {
      background: var(--bg-card);
      color: var(--text-main);
      box-shadow: var(--shadow-card);
    }

    .peer-start-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .modal-stack {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .media-modules {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
    }

    .dm-form,
    .media-row,
    .notification-actions,
    .friend-form,
    .peer-start-list,
    .public-peer-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .media-call-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 14px;
      align-items: start;
    }

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

      .novio-connect {
        width: 100% !important;
      }

      .app-header {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-flow: wrap;
        gap: 0px;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(8px);
        position: sticky;
        top: 0;
        z-index: 10;
      }
    }

    .media-call-panel {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 14px;
      background: var(--bg-panel);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .media-call-header {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .media-peer-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .media-peer-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-card);
    }

    .media-peer-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .media-call-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .media-call-actions button {
      min-width: 96px;
    }

    .media-preview {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .media-preview-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      align-items: stretch;
    }

    .media-preview-box {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-height: 200px;
    }

    .media-preview-box h4 {
      margin: 0;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.02em;
    }

    .media-preview-box video,
    .media-preview-box img {
      width: 100%;
      border-radius: var(--radius-inner);
      object-fit: cover;
      min-height: 180px;
      background: var(--bg-hover);
    }

    .call-popup {
      position: fixed;
      left: 16px;
      bottom: 16px;
      width: min(360px, 90vw);
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-lg);
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 1200;
    }

    .call-popup.hidden {
      display: none;
    }

    .call-popup .title {
      font-weight: 700;
      font-size: 14px;
    }

    .call-popup .meta {
      font-size: 12px;
      color: var(--text-muted);
    }

    .call-popup .actions {
      display: flex;
      gap: 8px;
    }

    .call-popup .actions button {
      flex: 1;
      border-radius: var(--radius-inner);
      padding: 8px 10px;
      font-weight: 700;
    }

    .call-popup .actions .accept {
      background: #16a34a;
      border: 1px solid #15803d;
      color: #fff;
    }

    .call-popup .actions .decline {
      background: #ef4444;
      border: 1px solid #b91c1c;
      color: #fff;
    }

    .scene-area {
      padding: 12px;
      background: var(--bg-panel);
      height:calc(100% - 11.5);
      display: flex;
      flex-direction: column;
      gap: 0;
      flex: 1;
      min-height: 0;
      overflow: hidden;
      background: var(--bg-card);
    }

    .scene-area.hidden {
      display: none;
    }

    .scene-meta {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: start;
      margin-bottom: 10px;
      padding: 8px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius);
      background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(129,140,248,0.06));
    }

    .scene-forwarder-label {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .scene-forwarder-input {
      width: 100%;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: var(--text-main);
      border-radius: var(--radius-inner);
      padding: 8px 10px;
      font-size: 12px;
    }

    .scene-forwarder-input:focus {
      outline: 2px solid var(--accent, #60a5fa);
      border-color: transparent;
    }

    .scene-chunk-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
      font-size: 12px;
      color: var(--text-muted);
    }

    .scene-chunk-slider {
      width: 100%;
      accent-color: var(--accent, #60a5fa);
    }

    .scene-chunk-value {
      font-variant-numeric: tabular-nums;
      color: var(--text-main);
      font-weight: 600;
    }

    .scene-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 8px;
    }

    .scene-metric-group {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 6px;
    }

    .scene-metric-title {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .scene-metric-stream {
      display: grid;
      gap: 4px;
      cursor: default;
    }

    .scene-metric-stream.chunk-collapsible {
      cursor: pointer;
    }

    .scene-metric-row {
      display: grid;
      grid-template-columns: 14px 1fr auto;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--text-main);
      background: rgba(255,255,255,0.04);
      border-radius: 6px;
      padding: 4px 6px;
      animation: blink 0.5s ease;
    }

    .scene-metric-row.tx .scene-dot { background: #22c55e; }
    .scene-metric-row.rx .scene-dot { background: #60a5fa; }

    .scene-dot {
      width: 12px;
      height: 12px;
      border-radius: 4px;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
    }

    .scene-metric-label {
      color: var(--text-muted);
    }

    .scene-metric-more {
      text-align: right;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.02em;
    }

    @keyframes blink {
      0% { transform: scale(0.96); opacity: 0.5; }
      50% { transform: scale(1); opacity: 1; }
      100% { transform: scale(0.98); opacity: 0.7; }
    }

    .scene-canvas {
      width: 100%;
      height: calc(100% - 11rem);
      border-radius: var(--radius-inner);
      background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.1), transparent 40%), radial-gradient(circle at 80% 30%, rgba(129, 140, 248, 0.12), transparent 45%), var(--bg-card);
      border: 1px solid var(--border-subtle);
      position: relative;
      overflow: hidden;
    }

    .scene-canvas canvas {
      width: 100%;
      height: 100%;
      display: block;
    }

    .scene-canvas iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
      border-radius: inherit;
    }

    /* Scene settings + gear */
    .scene-gear-btn {
      position: absolute;
      right: 14px;
      bottom: 14px;
      z-index: 7;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #1a2332;
      border: 1px solid #2a344a;
      cursor: pointer;
      font-size: 24px;
      transition: 150ms ease;
      color: var(--text-main);
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }

    .scene-gear-btn:hover {
      background: #243448;
      transform: rotate(90deg);
    }

    .scene-settings-modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      background: rgba(11,13,18,0.85);
      z-index: 40;
      backdrop-filter: blur(6px);
    }

    .scene-settings-modal.show {
      display: grid;
    }

    .scene-settings-modal .modal-content {
      max-width: 620px;
      width: 92%;
      max-height: 86vh;
      overflow-y: auto;
      padding: 20px 22px;
      border: 1px solid #263149;
      border-radius: 16px;
      background: #0d1220;
      box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    }

    .scene-settings-modal h3 {
      margin: 0 0 14px;
      font-size: 20px;
    }

    .scene-settings-modal h4 {
      margin: 18px 0 8px;
      font-size: 15px;
      opacity: 0.9;
    }

    .scene-settings-modal label {
      display: block;
      margin: 14px 0 8px;
      font-weight: 600;
      color: #dfe6ee;
    }

    .scene-settings-modal input[type=text],
    .scene-settings-modal input[type=number] {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #2a344a;
      background: #101525;
      color: #dfe6ee;
    }

    .scene-settings-modal .slider-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: center;
      margin: 8px 0;
    }

    .scene-settings-modal input[type=range] {
      width: 100%;
    }

    .scene-settings-modal .value-display {
      padding: 8px 12px;
      border: 1px solid #2a344a;
      border-radius: 8px;
      background: #101525;
      min-width: 88px;
      text-align: center;
      color: #dfe6ee;
    }

    .scene-settings-modal .btn-row {
      display: flex;
      gap: 8px;
      margin-top: 18px;
    }

    .scene-settings-modal .btn-row button {
      flex: 1;
    }

    .scene-settings-modal .setting-note {
      font-size: 12px;
      opacity: 0.75;
      margin: -6px 0 12px;
      line-height: 1.4;
    }

    #scene-metrics-overlay {
      position: absolute;
      left: 14px;
      bottom: 14px;
      display: none;
      flex-direction: column;
      gap: 6px;
      min-width: 240px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: var(--text-main);
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
      backdrop-filter: blur(6px);
      pointer-events: none;
      z-index: 6;
    }

    #scene-metrics-overlay.show {
      display: flex;
    }

    #scene-metrics-overlay .metric-line {
      font-size: 12px;
      opacity: 0.9;
    }

    .scene-meta-btn {
      margin-top: 6px;
      align-self: flex-start;
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-panel);
      color: var(--text-main);
      cursor: pointer;
      font-weight: 600;
      transition: 120ms ease;
    }

    .scene-meta-btn:hover {
      background: var(--bg-elevated);
      border-color: var(--border-strong);
    }

    .media-tuning {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 8px 10px;
      background: var(--bg-panel);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .media-tuning section {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .media-tuning-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
    }

    .media-tuning-row input[type="range"] {
      width: 100%;
    }

    .media-tuning-labels {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      color: var(--text-muted);
    }

    .media-row {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .media-module {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 10px;
      background: var(--bg-panel);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .media-module video,
    .media-module img {
      width: 100%;
      height: auto;
      ;
      object-fit: contain;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
    }

    .media-module .chip-actions {
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 8px;
    }

    .media-controls {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .peer-start-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 10px 12px;
      background: var(--bg-panel);
    }

    .peer-start-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .peer-start-name {
      font-weight: 700;
      color: var(--text-main);
    }

    .peer-start-id {
      color: var(--text-muted);
      font-size: 12px;
    }

    .sidebar-toggle-btn {
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 6px;
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
      color: var(--text-main);
      transition: all 0.2s;
    }

    .sidebar-toggle-btn:hover {
      background: var(--accent-soft);
      border-color: var(--accent);
    }

    .new-chat-btn {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 9px 14px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-main);
      cursor: pointer;
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      transition: all var(--transition-fast);
    }

    .new-chat-btn:hover {
      background: var(--bg-hover);
    }

    .new-chat-btn span:first-child {
      font-size: 18px;
      font-weight: 400;
    }

    .sessions-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      overflow-y: auto;
      min-height: 0;
      margin: 0;
      padding: 0;
    }

    .session-item {
      background: transparent;
      border: 1px solid transparent;
      border-radius: var(--radius-inner);
      padding: 10px 12px;
      cursor: pointer;
      transition: all var(--transition-fast);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      box-shadow: none;
    }

    .session-item:hover {
      background: var(--bg-hover);
    }

    .hljs {
      color: var(--text-main);
    }

    .btn-icon {
      padding: 6px;
      background: transparent !important;
      max-height: 2rem;
    }

    .session-item.active {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      box-shadow: none;
    }

    .session-item-content {
      flex: 1;
      min-width: 0;
    }

    .session-item-title {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .session-item-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
      font-weight: 400;
    }

    .session-item-delete {
      background: transparent;
      border: none;
      padding: 4px 6px;
      cursor: pointer;
      font-size: 16px;
      color: var(--text-muted);
      opacity: 0;
      transition: all var(--transition-fast);
      border-radius: var(--radius-inner);
    }

    .session-item:hover .session-item-delete {
      opacity: 1;
    }

    .session-item-delete:hover {
      color: #dc2626;
      background: var(--accent-soft);
    }

    .card {
      max-height: 100%;
      display: flex;
      flex-direction: column;
      overflow: auto;
    }

    .sessions-sidebar.hidden+.card {
      border-top-left-radius:unset;
    }

    @media (max-width: 640px) {
      .card{border-top-left-radius:unset;}
      .app-header {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
      }

      .session-bar {
        padding: 0.5rem;
      }

      #notification-dropdown {
        right: unset;
        left: 0px;
      }

      .status-pill {
        max-width: 170px;
      }

      .session-item-delete {
        display: flex;
      }

      .novio-connect {
        width: 100% !important;
      }

      .connect-button {
        width: 100% !important;
      }

      .app-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 2px;
      }

      .session-status-full {
        display: none;
      }

      .session-status-compact {
        text-align: center;
        display: flex;
        font-size: 8px;
        flex-flow: wrap;
      }

      .chat-message {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--accent-soft);
        gap: 6px;
        padding: 0.5rem;
        transition: background var(--transition-fast);
      }

      #settings-btn span {
        display: none;
      }

      .session-bar .sidebar-inline-toggle {
        display: inline-flex;
      }

      .system-prompt-btn span {
        display: none;
      }

      #settings-btn,
      #theme-toggle {
        padding: 8px;
      }

      .system-prompt-btn {
        padding: 8px;
        gap: 0;
      }

      .quick-row {
        padding: 8px 12px;
        gap: 4px;
      }

      .app-main {}

      .modal-content {
        padding: 1rem;
      }

      .card {
        background: unset;
        width: 100%;
        padding: unset;
        box-sizing: border-box;
        box-shadow: unset;
      }

      .chat-bubble {
        max-width: 100%;
      }

      .chat-messages {
        padding: 16px;
        min-height: 200px;
      }

      .chat-textarea {
        min-height: 60px;
      }

      .conn-bar {
        flex-direction: column;
        align-items: stretch;
      }

      .sessions-sidebar {
        width: 100%;
        border-radius: 0px !important;
        position: absolute;
        z-index: 100;
        height: 100%;
      }

      .chat-interface.sidebar-hidden .chat-main-content {
        padding-left: 16px;
      }

      .hardware-panel {
        display: none;
      }

      .model-card {
        width: 100%;
      }

      .session-bar {
        justify-content: flex-start;
      }

      .session-bar .model-metrics {
        order: 4;
        flex-direction: row;
        gap: 12px;
      }

      .session-hardware-inline {
        order: 5;
        display: flex;
        width: 100%;
      }

      .session-hardware-inline[data-gpu-available="false"] {
        display: none;
      }

      .session-hardware-bar {
        width: 100px;
        height: 4px;
      }
    }

    /* Compact controls; legacy cards hidden in modals now */
    .qr-media-panel {
      display: none;
    }

    .friend-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .pill-btn {
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 12px;
      cursor: pointer;
    }

    .text-control {
      width: 100%;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 10px 12px;
      color: var(--text-main);
      background: var(--bg-input);
      font-family: inherit;
      font-size: 14px;
    }

    .input-with-button {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }

    .input-with-button .text-control {
      flex: 1;
    }

    .admin-key-fetch {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
      color: var(--text-main);
      padding: 8px;
      cursor: pointer;
      transition: background var(--transition-fast), transform var(--transition-fast);
    }

    .admin-key-fetch:hover:not(:disabled) {
      background: var(--bg-hover);
      transform: translateY(-1px);
    }

    .admin-key-fetch:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .admin-key-fetch svg {
      width: 16px;
      height: 16px;
      transition: transform var(--transition-fast);
    }

    .admin-key-fetch .icon-spinner {
      display: none;
    }

    .admin-key-fetch.loading .icon-arrow {
      display: none;
    }

    .admin-key-fetch.loading .icon-spinner {
      display: block;
      animation: spinner-rotate 0.9s linear infinite;
    }

    .btn-inline-spinner {
      width: 14px;
      height: 14px;
      border-radius: 999px;
      border: 2px solid var(--border-subtle);
      border-top-color: var(--accent);
      animation: spinner-rotate 0.9s linear infinite;
    }

    .text-control:focus {
      outline: none;
      border-color: #9ca3af;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }

    .dm-form textarea {
      flex: 1;
      min-width: 200px;
      resize: vertical;
    }

    .friend-list,
    .friend-requests,
    .notification-list,
    .media-session-list,
    .public-peer-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: calc(100vh - 200px);
      overflow-y: auto;
    }

    .bell-badge {
      display: inline-flex;
      min-width: 18px;
      height: 18px;
      padding: 0 6px;
      align-items: center;
      justify-content: center;
      background: #dc2626;
      color: #fff;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      margin-left: 6px;
    }

    .bell-badge.glow {
      box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
    }

    .session-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
    }

    .session-tab {
      padding: 4px 10px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-panel);
      cursor: pointer;
      font-weight: 600;
    }

    .session-tab.active {
      background: var(--bubble-user);
      border-color: var(--text-main);
    }

    .notification-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .chip-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
    }

    .chip-actions {
      margin-left: auto;
      display: inline-flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .chip-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 8px;
      font-size: 11px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-input);
    }

    .chip-badge.state-pending {
      background: rgba(252, 211, 77, 0.25);
    }

    .chip-badge.state-read,
    .chip-badge.state-seen {
      background: rgba(187, 247, 208, 0.35);
    }

    .media-frame {
      width: 120px;
      height: 80px;
      object-fit: cover;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-panel);
    }

    .local-preview {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 10px 0;
    }

    .local-preview video {
      width: 140px;
      height: 90px;
      border-radius: var(--radius-inner);
      border: 1px solid var(--border-subtle);
      background: var(--bg-panel);
      object-fit: cover;
    }

    .chip-row strong {
      font-size: 13px;
    }

    .qr-scan-view {
      width: 100%;
      min-height: 160px;
      border: 1px dashed var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
    }

    /* Voice Integration Styles */
    .chat-voice-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn-voice {
      padding: 8px 14px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--accent);
      color: white;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition-fast);
    }

    .btn-voice:hover:not(:disabled) {
      background: var(--accent-hover);
    }

    .btn-voice:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-voice.recording {
      background: #ef4444;
      animation: pulse-recording 1.5s ease-in-out infinite;
    }

    @keyframes pulse-recording {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }

    .btn-voice-config {
      padding: 6px 12px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-input);
      color: var(--text-secondary);
      font-size: 12px;
      cursor: pointer;
      transition: all var(--transition-fast);
    }

    .btn-voice-config:hover {
      background: var(--bg-hover);
      color: var(--text-main);
    }

    .voice-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      background: var(--bg-panel);
      font-size: 12px;
      color: var(--text-secondary);
      cursor: pointer;
    }

    .voice-toggle input[type="checkbox"] {
      accent-color: var(--accent);
    }

    .voice-toggle span {
      user-select: none;
    }

    .recording-indicator {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: var(--radius-inner);
      font-size: 12px;
      color: #ef4444;
    }

    .recording-indicator:not(.hidden) {
      display: flex;
    }

    .recording-dot {
      width: 8px;
      height: 8px;
      background: #ef4444;
      border-radius: 50%;
      animation: pulse-dot 1.5s ease-in-out infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.9); }
    }

    .status-card {
      background: var(--bg-panel);
      border-radius: var(--radius-inner);
      padding: 16px;
      border: 1px solid var(--border-subtle);
      position: relative;
      overflow: hidden;
    }

    .status-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: #3b82f6;
      transition: background 0.3s;
    }

    .status-card.ready::before {
      background: #10b981;
    }

    .status-card.loading::before {
      background: #f59e0b;
    }

    .status-card.error::before {
      background: #ef4444;
    }

    .status-card h3 {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      font-weight: 500;
    }

    .status-card p {
      font-size: 13px;
      color: var(--text-main);
      margin: 4px 0;
    }

    .progress-bar {
      width: 100%;
      height: 4px;
      background: var(--bg-hover);
      border-radius: 2px;
      overflow: hidden;
      margin-top: 8px;
    }

    .progress-fill {
      height: 100%;
      background: var(--accent);
      border-radius: 2px;
      transition: width 0.3s;
    }

    .chat-meta-speak {
      border: none;
      background: transparent;
      cursor: pointer;
      margin-left: 8px;
      font-size: 14px;
      opacity: 0.6;
      padding: 4px;
      transition: opacity var(--transition-fast);
    }

    .chat-message:hover .chat-meta-speak {
      opacity: 1;
    }

    .chat-meta-speak:hover {
      opacity: 1 !important;
      background: var(--bg-hover);
      border-radius: var(--radius-inner);
    }

    /* Custom TTS Models */
    .custom-models-section {
      border-top: 1px solid var(--border-subtle);
      padding-top: 12px;
    }

    .btn-add-custom {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 1px solid var(--accent);
      background: var(--accent);
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast);
      line-height: 1;
      padding: 0;
    }

    .btn-add-custom:hover {
      background: var(--accent-hover);
      transform: scale(1.1);
    }

    .custom-model-form {
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      padding: 12px;
      margin-bottom: 12px;
    }

    .custom-models-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .custom-model-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-inner);
      cursor: pointer;
      transition: all var(--transition-fast);
    }

    .custom-model-item:hover {
      background: var(--bg-hover);
      border-color: var(--accent);
    }

    .custom-model-item.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .custom-model-info {
      flex: 1;
    }

    .custom-model-name {
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 2px;
    }

    .custom-model-urls {
      font-size: 11px;
      opacity: 0.7;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .custom-model-remove {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid var(--border-subtle);
      background: transparent;
      color: #ef4444;
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast);
      padding: 0;
      line-height: 1;
    }

    .custom-model-remove:hover {
      background: #ef4444;
      color: white;
      border-color: #ef4444;
    }
/* Debug Log Viewer */
.debug-bug-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.debug-bug-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.debug-bug-btn svg {
  width: 24px;
  height: 24px;
}

.debug-log-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.debug-log-overlay.visible {
  backdrop-filter: blur(10px);
  opacity: 1;
  pointer-events: all;
}

.debug-log-overlay.hidden {
  display: none;
}

.debug-log-container {
  width: 100%;
  max-width: 1200px;
  max-height: 70vh;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.debug-log-overlay.visible .debug-log-container {
  transform: translateY(0);
}

.debug-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
}

.debug-log-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.debug-log-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-primary);
}

.debug-log-content .log-time {
  color: var(--text-muted);
  margin-right: 8px;
}

.debug-log-content .log-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.debug-log-content .log-entry.error {
  color: #ef4444;
}

.debug-log-content .log-entry.warn {
  color: #f59e0b;
}

@media (max-width: 640px) {
  .debug-bug-btn {
    bottom: 16px;
    left:unset;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .debug-log-container {
    max-height: 80vh;
  }

  .debug-log-header {
    padding: 12px 16px;
  }

  .debug-log-content {
    padding: 12px 16px;
    font-size: 12px;
  }
}
