:root {
  --bg: #0c0f14;
  --surface: #141923;
  --surface-2: #1b2230;
  --surface-3: #242d3f;
  --border: #2a3447;
  --text: #e6edf7;
  --muted: #8b9bb4;
  --accent: #4f8cff;
  --accent-hover: #6ca0ff;
  --success: #2ecc71;
  --danger: #ff5c6c;
  --warn: #f5b041;
  --radius: 8px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  overflow: hidden;
  user-select: none;
}

.hidden {
  display: none !important;
}

.workspace-shell {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* ==================== TAB BAR ==================== */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 8px;
  background: #090c10;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.tab-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  min-width: 110px;
  max-width: 210px;
  padding: 0 8px 0 10px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.tab-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.tab-item.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
}

.tab-item.in-right-pane {
  border-color: #9b6dff;
}

.tab-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.tab-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.tab-rename-input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12px;
  outline: none;
}

.tab-close {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.tab-close:hover {
  background: rgba(255, 92, 108, 0.2);
  color: var(--danger);
}

.quick-dock {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dock-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.dock-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

/* ==================== NAV / ADDRESS BAR ==================== */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-controls, .tool-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}

.icon-btn:hover {
  background: var(--surface-3);
}

.icon-btn.small {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.tab-add-btn {
  background: var(--surface);
  border-color: var(--border);
}

.address-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.address-form:focus-within {
  border-color: var(--accent);
}

.address-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--accent);
  letter-spacing: 0.4px;
}

.address-badge.web {
  background: rgba(46, 204, 113, 0.16);
  color: var(--success);
}

.address-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
  user-select: text;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.tool-btn:hover {
  background: var(--surface-3);
  border-color: var(--accent);
}

.tool-btn.active {
  background: rgba(79, 140, 255, 0.2);
  border-color: var(--accent);
  color: #fff;
}

.tool-btn.small {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.tool-btn.danger {
  border-color: rgba(255, 92, 108, 0.4);
  color: var(--danger);
}

.tool-btn.danger:hover {
  background: rgba(255, 92, 108, 0.15);
}

.quality-select {
  height: 28px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 11px;
  cursor: pointer;
  outline: none;
}

.bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bridge-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.bridge-pill.online {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.12);
}

.bridge-pill.online .status-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ==================== VIEWPORT & SPLIT-SCREEN ==================== */
.viewport {
  flex: 1;
  display: flex;
  min-height: 0;
  background: var(--bg);
  position: relative;
}

.pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  min-height: 0;
  position: relative;
  border: 2px solid transparent;
}

.viewport.split-active .pane.active-pane {
  border-color: var(--accent);
}

.pane-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pane-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pane-tab-select {
  flex: 1;
  max-width: 260px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  outline: none;
}

.pane-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.split-divider {
  width: 6px;
  background: var(--border);
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
}

.split-divider:hover, .split-divider.dragging {
  background: var(--accent);
}

/* ==================== CLOUD CHROME STAGE ==================== */
.chrome-stage {
  width: 100%;
  height: 100%;
  position: relative;
  background: #0a0d12;
  outline: none;
  display: flex;
  flex-direction: column;
}

.chrome-live-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0d12;
  display: block;
}

.dt-native-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dt-native-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #1e1e1e;
}

.dt-empty-msg {
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}

.chrome-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at top, #172033, var(--bg));
  color: var(--text);
  z-index: 5;
}

.chrome-loading-overlay .spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.chrome-hud {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.78);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  pointer-events: none;
}

.offline-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at top, #172033, var(--bg));
}

.offline-banner h2 {
  font-size: 18px;
}

.offline-banner p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.5;
}

.offline-banner code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
}

/* ==================== F12 DEVTOOLS DRAWER ==================== */
.devtools-drawer {
  height: 260px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  background: #0b0e14;
  border-top: 2px solid var(--accent);
  flex-shrink: 0;
}

.devtools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.devtools-tabs {
  display: flex;
  gap: 4px;
}

.dt-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dt-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.devtools-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-target-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.devtools-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.dt-panel {
  display: none;
  flex-direction: column;
  height: 100%;
}

.dt-panel.active {
  display: flex;
}

.dt-console-output {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  user-select: text;
}

.dt-log-line {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: pre-wrap;
  word-break: break-word;
}

.dt-log-line.error { color: var(--danger); }
.dt-log-line.warn { color: var(--warn); }
.dt-log-line.eval-in { color: var(--accent); }
.dt-log-line.eval-out { color: var(--success); }

.dt-console-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.dt-prompt {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.dt-console-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  user-select: text;
}

.dt-network-wrap {
  flex: 1;
  overflow-y: auto;
  user-select: text;
}

.dt-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 11px;
}

.dt-table th, .dt-table td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dt-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--muted);
}

.dt-status-ok { color: var(--success); }
.dt-status-err { color: var(--danger); }

.dt-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dt-toolbar input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  user-select: text;
}

.dt-code-output {
  flex: 1;
  overflow: auto;
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: #c8d6eb;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

/* ==================== MINI-APPS ==================== */
.mini-app {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
  user-select: text;
}

/* New Tab Dashboard */
.newtab-wrap {
  max-width: 860px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.newtab-hero {
  text-align: center;
}

.newtab-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.newtab-hero p {
  color: var(--muted);
}

.newtab-search {
  display: flex;
  gap: 8px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.newtab-search input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.newtab-search input:focus {
  border-color: var(--accent);
}

.tile-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 10px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.tile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.tile-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.tile-emoji {
  font-size: 22px;
}

.tile-title {
  font-weight: 600;
  font-size: 13px;
}

.tile-sub {
  font-size: 11px;
  color: var(--muted);
}

/* File Explorer */
.explorer-app {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.explorer-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
}

.crumb-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.crumb-btn:hover {
  border-color: var(--accent);
}

.explorer-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 0;
}

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

.explorer-list {
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
  gap: 10px;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.file-card:hover, .file-card.selected {
  border-color: var(--accent);
  background: var(--surface-2);
}

.file-thumb {
  height: 82px;
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  overflow: hidden;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  font-size: 10px;
  color: var(--muted);
}

.explorer-preview {
  border-left: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.preview-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.preview-text {
  width: 100%;
  min-height: 220px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
  resize: vertical;
}

/* Markdown Notes */
.notes-app {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.notes-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.notes-editor {
  background: var(--bg);
  color: var(--text);
  border: none;
  border-right: 1px solid var(--border);
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.notes-preview {
  padding: 16px 20px;
  overflow-y: auto;
  line-height: 1.65;
}

.notes-preview h1, .notes-preview h2, .notes-preview h3 { margin: 12px 0 6px; }
.notes-preview p { margin: 6px 0; }
.notes-preview code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; font-family: var(--mono); }
.notes-preview pre { background: var(--surface); padding: 10px; border-radius: 6px; overflow-x: auto; margin: 8px 0; }
.notes-preview ul { padding-left: 20px; margin: 6px 0; }

/* Pomodoro */
.pomo-card {
  max-width: 420px;
  margin: 28px auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pomo-modes {
  display: flex;
  gap: 6px;
}

.pomo-clock {
  font-size: 56px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 2px;
}

/* Calculator */
.calc-card {
  max-width: 340px;
  margin: 24px auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-display {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: right;
  font-family: var(--mono);
}

.calc-expr {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.calc-val {
  font-size: 28px;
  font-weight: 700;
  overflow-x: auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-btn {
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.calc-btn:hover { background: var(--surface-3); }
.calc-btn.op { color: var(--accent); }
.calc-btn.eq { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Direct Iframe App */
.iframe-app {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.iframe-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.iframe-bar input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--text);
  outline: none;
}

.iframe-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

/* ==================== MODAL & TOASTS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  width: 92%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 15px;
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
}

.inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.text-input {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  outline: none;
}

.primary-btn {
  height: 32px;
  padding: 0 14px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn:hover {
  background: var(--accent-hover);
}

.perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.hint code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}
