:root {
  --bg-darkest: #07090e;
  --bg-sidebar: #0d111a;
  --bg-main: #0b0f17;
  --bg-card: #131926;
  --bg-input: #080c14;
  --bg-hover: #1c2436;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-purple: #c084fc;
  --font-mono: "SF Mono", Monaco, Inconsolata, "Fira Code", Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* App Container */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Sidebar */
aside.sidebar {
  width: 290px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.brand h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Tool Search in Sidebar */
.search-box {
  padding: 12px 16px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 34px;
  font-size: 0.86rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

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

.search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.kbd-shortcut {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  pointer-events: none;
}

/* Nav Groups */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-item svg.tool-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.nav-item:hover svg.tool-icon {
  color: var(--text-muted);
}

.nav-item.active {
  background-color: rgba(99, 102, 241, 0.15);
  color: #fff;
  font-weight: 600;
}

.nav-item.active svg.tool-icon {
  color: var(--accent-cyan);
}

.star-btn {
  opacity: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.nav-item:hover .star-btn, .star-btn.starred {
  opacity: 1;
}

.star-btn.starred {
  color: var(--accent-amber);
}

.star-btn:hover {
  color: var(--accent-amber);
  transform: scale(1.15);
}

/* Sidebar Native Ad Unit */
.sidebar-ad-card {
  margin: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.ad-content {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
}

.ad-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent-cyan);
}

.ad-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

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

/* Sidebar Footer (About, Privacy, Terms) */
.sidebar-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.sidebar-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-footer a:hover {
  color: var(--accent-cyan);
}

/* Main Workspace */
main.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
}

/* Top App Bar */
.top-bar {
  height: 58px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(12px);
}

.current-tool-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-tool-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-refresh-pill {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.btn-header {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Top Responsive Tech Ad Banner */
.banner-ad-container {
  padding: 12px 24px 0;
  flex-shrink: 0;
}

.leaderboard-ad {
  background: linear-gradient(90deg, #101524 0%, #151b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-sponsor-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sponsor-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.sponsor-copy h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.sponsor-copy p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-ad-cta {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Tool Viewport */
.tool-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
}

.tool-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

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

/* Controls Row */
.tool-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  border: none;
}

select.select-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

/* Split Code Editor Style */
.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 420px;
}

.editor-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-header {
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

textarea.code-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
  resize: none;
  outline: none;
  tab-size: 2;
}

textarea.code-textarea:focus {
  background: rgba(0, 0, 0, 0.15);
}

/* Tool Cards */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.text-field {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
}

.text-field:focus {
  border-color: var(--accent-indigo);
}

.result-row {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Timestamp Hero */
.timestamp-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-epoch-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

/* Diff Viewer */
.diff-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.diff-output-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  min-height: 250px;
}

.diff-line {
  display: flex;
  padding: 2px 10px;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line.added {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.diff-line.deleted {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
}

.diff-line.unchanged {
  color: var(--text-dim);
}

.diff-prefix {
  width: 24px;
  user-select: none;
  font-weight: 700;
  flex-shrink: 0;
}

/* Color Studio */
.color-preview-card {
  height: 120px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.15s ease;
}

.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.contrast-badge.pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.contrast-badge.fail {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Markdown Preview Viewport */
.markdown-preview {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  color: var(--text-main);
  line-height: 1.65;
  font-size: 0.95rem;
}

.markdown-preview h1 { font-size: 1.8rem; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; color: #fff; }
.markdown-preview h2 { font-size: 1.4rem; margin-top: 18px; margin-bottom: 10px; color: #fff; }
.markdown-preview h3 { font-size: 1.15rem; margin-top: 14px; margin-bottom: 8px; color: var(--accent-cyan); }
.markdown-preview p { margin-bottom: 12px; }
.markdown-preview code { font-family: var(--font-mono); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 4px; font-size: 0.88rem; color: var(--accent-cyan); }
.markdown-preview pre { background: var(--bg-input); padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); margin-bottom: 14px; overflow-x: auto; }
.markdown-preview pre code { background: transparent; padding: 0; color: #f8fafc; }
.markdown-preview ul, .markdown-preview ol { margin-left: 24px; margin-bottom: 14px; }
.markdown-preview blockquote { border-left: 3px solid var(--accent-indigo); padding-left: 14px; color: var(--text-muted); margin-bottom: 14px; }
.markdown-preview table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.markdown-preview th, .markdown-preview td { border: 1px solid var(--border-subtle); padding: 8px 12px; text-align: left; }
.markdown-preview th { background: rgba(0, 0, 0, 0.3); font-weight: 600; color: #fff; }

/* QR Code Box */
.qr-preview-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qr-preview-box svg {
  display: block;
}

/* Legal & Compliance Articles (Privacy, Terms, About) */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-card h2 { font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.legal-card h3 { font-size: 1.15rem; color: #fff; margin-top: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 4px; }
.legal-card p { margin-bottom: 14px; }
.legal-card ul { margin-left: 20px; margin-bottom: 14px; }
.legal-card li { margin-bottom: 6px; }
.legal-card strong { color: var(--text-main); }
.legal-card a { color: var(--accent-cyan); text-decoration: underline; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 25, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 14px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10000;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 90vw;
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cookie-banner a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Modals */
.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

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

.command-palette-dialog {
  width: 580px;
  max-width: 92vw;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.15s ease;
}

.command-palette-backdrop.open .command-palette-dialog {
  transform: translateY(0) scale(1);
}

.palette-input-wrap {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.palette-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #fff;
  outline: none;
}

.palette-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
}

.palette-item.active, .palette-item:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
}

.palette-item-left svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.palette-footer {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* Cheat Sheet Table */
.cheat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.cheat-desc {
  font-size: 0.88rem;
  color: var(--text-main);
}

.cheat-cmd {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.cheat-cmd:hover {
  border-color: var(--accent-cyan);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #fff;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  aside.sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .editor-split, .grid-cards {
    grid-template-columns: 1fr;
  }
}
