@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');


:root {
  --bg-base:            #070910;
  --bg-surface:         #0c0f1c;
  --glass-bg:           rgba(255, 255, 255, 0.035);
  --glass-bg-hover:     rgba(255, 255, 255, 0.065);
  --glass-border:       rgba(255, 255, 255, 0.075);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --accent:             #38bdf8;
  --accent-glow:        rgba(56, 189, 248, 0.18);
  --accent-purple:      #a78bfa;
  --accent-green:       #34d399;
  --accent-orange:      #fb923c;
  --text-primary:       #f0f6fc;
  --text-secondary:     #94a3b8;
  --text-muted:         #475569;
  --danger:             #f87171;
  --font-ui:            'Sora', sans-serif;
  --font-mono:          'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm:          8px;
  --radius:             12px;
  --radius-lg:          18px;
  --ease:               cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:         0.18s var(--ease);
}


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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 5%,  rgba(56, 189, 248, 0.09)  0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 95%, rgba(167, 139, 250, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 55% 48%, rgba(52,  211, 153, 0.03)  0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}


body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}


#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}


.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(7, 9, 16, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  z-index: 20;
  min-height: 52px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  padding-right: 12px;
  border-right: 1px solid var(--glass-border);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.logo svg { color: var(--accent); flex-shrink: 0; }


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

.toolbar::-webkit-scrollbar { display: none; }

.toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--glass-border);
  margin: 0 5px;
  flex-shrink: 0;
  border-radius: 1px;
}


.toolbar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.1s;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.toolbar-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.toolbar-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.toolbar-btn:active {
  transform: scale(0.88);
  background: rgba(255,255,255,0.08);
}


.toolbar-btn[title]::after {
  content: attr(title);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 7, 15, 0.96);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  z-index: 200;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.15s;
}

.toolbar-btn[title]:hover::after {
  opacity: 1;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}


.view-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

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

.view-btn:hover { color: var(--text-primary); background: var(--glass-bg-hover); }

.view-btn.active {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.view-btn svg { pointer-events: none; }


.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.action-btn svg { flex-shrink: 0; }

.action-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.action-btn:active { transform: scale(0.96); }

.action-btn.primary {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
  color: var(--accent);
}

.action-btn.primary:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
}


.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(8, 10, 20, 0.97);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 190px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  display: none;
}

.dropdown-menu.open {
  display: block;
  animation: dropIn 0.14s var(--ease-spring);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  transition: all var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-ui);
}

.dropdown-item:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.dropdown-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 2px;
}


.editor-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}


.editor-pane,
.preview-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: flex 0.25s var(--ease);
}

.editor-pane {
  border-right: 1px solid var(--glass-border);
}

.editor-pane.hidden,
.preview-pane.hidden {
  display: none;
}

.editor-pane.full,
.preview-pane.full {
  flex: 1;
}


.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--glass-border);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
  font-family: var(--font-mono);
  user-select: none;
}


#editor {
  flex: 1;
  width: 100%;
  padding: 28px 28px 40px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-primary);
  caret-color: var(--accent);
  tab-size: 2;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

#editor::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

#editor::selection {
  background: rgba(56, 189, 248, 0.18);
}


#preview {
  flex: 1;
  padding: 28px 32px 40px;
  overflow-y: auto;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.8;
}


#preview > *:first-child { margin-top: 0; }

#preview h1, #preview h2, #preview h3,
#preview h4, #preview h5, #preview h6 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 1.6em 0 0.5em;
}

#preview h1 {
  font-size: 1.95em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--glass-border);
}

#preview h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--glass-border);
}

#preview h3 { font-size: 1.22em; }
#preview h4 { font-size: 1em; }
#preview h5 { font-size: 0.9em; }

#preview p {
  margin: 0.75em 0;
  color: var(--text-secondary);
}

#preview a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  transition: border-color var(--transition), color var(--transition);
}

#preview a:hover {
  border-color: var(--accent);
  color: #7dd3fc;
}

#preview strong { color: var(--text-primary); font-weight: 600; }
#preview em     { color: #c4b5fd; }

#preview del    { color: var(--text-muted); }

#preview code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 2px 7px;
  border-radius: 5px;
  color: #c4b5fd;
}

#preview pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.1em 0;
  position: relative;
}

#preview pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.7;
}

#preview blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.1em 0;
  padding: 0.6em 1.2em;
  background: rgba(56, 189, 248, 0.045);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

#preview blockquote p { margin: 0; color: inherit; }

#preview ul, #preview ol {
  padding-left: 1.6em;
  color: var(--text-secondary);
  margin: 0.5em 0;
}

#preview li { margin: 0.3em 0; }
#preview li p { margin: 0; }

#preview ul li::marker { color: var(--accent); }
#preview ol li::marker { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85em; }

#preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

#preview thead { background: rgba(255, 255, 255, 0.04); }

#preview th {
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
}

#preview td {
  padding: 9px 14px;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

#preview tr:nth-child(even) td { background: rgba(255, 255, 255, 0.016); }

#preview img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  margin: 0.5em 0;
}

#preview hr {
  border: none;
  height: 1px;
  background: var(--glass-border);
  margin: 2em 0;
}


#preview input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
  cursor: default;
  background: transparent;
}

#preview input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

#preview input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -1px;
  width: 8px;
  height: 6px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}


.statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 16px;
  background: rgba(7, 9, 16, 0.6);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
  min-height: 30px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.status-item svg { opacity: 0.5; }
.status-sep { opacity: 0.3; }

.save-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  color: var(--text-muted);
}

.save-indicator.saving { color: var(--accent-orange); }
.save-indicator.saved  { color: var(--accent-green); }

.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.save-indicator.saving .save-dot {
  animation: pulse 0.8s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}


.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  background: rgba(7, 9, 16, 0.4);
  user-select: none;
  letter-spacing: 0.02em;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s var(--ease);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.modal {
  background: rgba(9, 11, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: slideUp 0.22s var(--ease-spring);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.modal-icon svg { width: 20px; height: 20px; }

.modal h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.modal p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-preview {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  max-height: 110px;
  overflow: hidden;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  line-height: 1.6;
}

.modal-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  pointer-events: none;
}

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


.btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
  line-height: 1;
}

.btn:active { transform: scale(0.96); }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.btn-primary {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
  color: var(--accent);
}
.btn-primary:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.5);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.28);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
}


.modal-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}

.modal-input:focus {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.modal-input::placeholder { color: var(--text-muted); }


.sessions-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  margin-bottom: 6px;
  transition: all var(--transition);
  background: var(--glass-bg);
}

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

.session-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding-right: 8px;
}

.session-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.session-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

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

.icon-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.icon-btn.danger:hover { color: var(--danger); }
.icon-btn svg { width: 13px; height: 13px; pointer-events: none; }


.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}


.toast {
  position: fixed;
  bottom: 52px;
  right: 18px;
  background: rgba(8, 10, 20, 0.97);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 3000;
  max-width: 290px;
  animation: toastIn 0.25s var(--ease-spring);
  backdrop-filter: blur(16px);
}

.toast.hiding {
  animation: toastOut 0.18s var(--ease) forwards;
}

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

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

.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--accent-green); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.info    .toast-icon { color: var(--accent); }


.drag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(56, 189, 248, 0.04);
  border: 2px dashed rgba(56, 189, 248, 0.45);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.drag-overlay.active { display: flex; }

.drag-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
  animation: floatUp 2s ease infinite;
}

.drag-content svg { opacity: 0.8; }

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}


::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }


::selection {
  background: rgba(56, 189, 248, 0.18);
  color: inherit;
}


@media (max-width: 768px) {
  .logo span { display: none; }
  .action-btn span { display: none; }
  .action-btn { padding: 6px 8px; }
  #editor, #preview { padding: 18px; }
}

@media (max-width: 560px) {
  .header { padding: 8px 10px; gap: 6px; }
  .toolbar-btn { width: 26px; height: 26px; }
  .view-toggle { display: none; }
}
