/* ==========================================================================
   Intent CDN - Clean Light Theme & Unified Single Header
   100% Vanilla CSS with 2px Stroke Hugeicons & Refined Typography
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.96);
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcfd;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;

  --border-subtle: #f1f5f9;
  --border-medium: #e2e8f0;
  --border-darker: #cbd5e1;
  --border-focus: #4f46e5;
  --border-glow: rgba(79, 70, 229, 0.15);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-light: #fef2f2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09);

  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400; /* refined base weight */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hugeicons 2px stroke enforcement */
.hgi-stroke {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  stroke-width: 2px !important;
  vertical-align: middle;
  font-style: normal;
  transition: transform var(--transition-fast);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* App Wrapper Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(2, 132, 199, 0.02) 0%, transparent 40%);
}

/* Centerised Container */
.center-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* Single Top Navigation Bar (No additional bar under header) */
.top-nav {
  height: 64px;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 600; /* refined weight, not overly bold */
  letter-spacing: -0.02em;
  color: #0f172a !important;
  display: inline-block;
  white-space: nowrap;
}

.brand-section:hover .brand-title {
  opacity: 0.85;
}

/* Inline Breadcrumbs in Header */
.breadcrumbs-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.85rem;
}

.breadcrumb-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  font-weight: 500;
}

.breadcrumb-crumb:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.breadcrumb-crumb.active {
  color: #4f46e5;
  font-weight: 500;
  background: #eef2ff;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* Realtime Status Indicator */
.realtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--success-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--success);
}

.realtime-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* View Mode Toggle */
.view-mode-toggle {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.view-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 30px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-mode-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500; /* non-bold clean weight */
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2);
}

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

.btn-secondary {
  background: #ffffff;
  color: #334155 !important;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-darker);
  color: #0f172a !important;
}

.btn-ghost {
  background: transparent;
  color: #475569 !important;
  border-color: transparent;
}

.btn-ghost:hover {
  background: #f1f5f9;
  color: #0f172a !important;
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger) !important;
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff !important;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Main Drive Workspace (Centerised) */
.main-content {
  flex: 1;
  padding: 24px 0 40px 0;
}

/* Fullscreen Drag & Drop Visual Overlay */
.dropzone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
  border: 3px dashed var(--primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.dropzone-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dropzone-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #0f172a;
}

.dropzone-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

/* Section Headings */
.section-heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

/* Cards */
.drive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  box-shadow: var(--shadow-xs);
}

.drive-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.drive-card.selected {
  border-color: var(--primary);
  background: #f5f3ff;
  box-shadow: 0 0 0 1px var(--primary);
}

/* Card Checkbox */
.card-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 5;
}

.drive-card:hover .card-checkbox,
.drive-card.selected .card-checkbox {
  opacity: 1;
}

.card-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.card-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

/* Folder Card Specifics */
.folder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.folder-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.folder-info {
  flex: 1;
  min-width: 0;
}

.folder-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* File Card Specifics */
.file-card-preview {
  height: 120px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.file-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.file-card:hover .file-thumbnail {
  transform: scale(1.04);
}

.file-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

/* Card Quick Action Bar */
.card-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  opacity: 0.9;
}

/* Table View */
.table-container {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 28px;
}

.drive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.drive-table th {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid var(--border-medium);
  background: #f8fafc;
}

.drive-table td {
  padding: 10px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.drive-table tr {
  transition: background var(--transition-fast);
  cursor: pointer;
}

.drive-table tbody tr:hover {
  background: #f8fafc;
}

.drive-table tbody tr.selected {
  background: #f5f3ff;
}

.drive-table .col-name {
  color: #0f172a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Floating Batch Selection Bar */
.selection-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.selection-action-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.selection-count-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  padding-right: 10px;
  border-right: 1px solid var(--border-medium);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: #94a3b8;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}

.empty-state-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 380px;
  margin-bottom: 18px;
}

/* Slide-over Inspector Drawer */
.inspector-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #ffffff;
  border-left: 1px solid var(--border-medium);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.08);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.inspector-drawer.open {
  transform: translateX(0);
}

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

.inspector-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.inspector-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-preview-box {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.inspector-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.param-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.param-input, .param-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #0f172a;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.param-input:focus, .param-select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.param-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.param-row-key {
  color: #64748b;
}

.param-row-val {
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.param-url-box {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-url-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-medium);
  display: flex;
  gap: 8px;
  background: #f8fafc;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 500px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-medium);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* In-Browser Code & Text Editor Modal */
.editor-modal .modal-card {
  width: 90vw;
  height: 85vh;
  max-width: 1080px;
}

.editor-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  border-radius: var(--radius-md);
  background: #0f172a;
  overflow: hidden;
}

.editor-container {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.editor-line-numbers {
  width: 44px;
  padding: 12px 8px;
  background: #090e1a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  overflow: hidden;
}

.editor-textarea {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border: none;
  outline: none;
  resize: none;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}

/* Media Preview Modal */
.preview-modal .modal-card {
  width: 800px;
  max-width: 95vw;
}

.preview-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 65vh;
  overflow: hidden;
  background: #0f172a;
  border-radius: var(--radius-md);
}

.preview-media-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.preview-media-container video,
.preview-media-container audio {
  width: 100%;
  max-height: 65vh;
  outline: none;
}

/* Floating Upload Progress Drawer */
.upload-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 350px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  overflow: hidden;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
}

.upload-drawer.visible {
  transform: translateY(0);
  opacity: 1;
}

.upload-drawer-header {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upload-drawer-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-drawer-body {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.upload-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.upload-item-name {
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.upload-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.upload-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  width: 0%;
  transition: width 0.15s ease-out;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }

@keyframes slideToast {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .grid-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .inspector-drawer { width: 100vw; }
  .editor-modal .modal-card { width: 96vw; height: 92vh; }
  .breadcrumbs-container { display: none; }
}
