/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-0:    #f8fafc;
  --bg-1:    #ffffff;
  --bg-2:    #f1f5f9;
  --bg-3:    #e2e8f0;
  --accent:  #6366f1;
  --accent-h:#4338ca;
  --green:   #059669;
  --red:     #dc2626;
  --text-1:  #0f172a;
  --text-2:  #475569;
  --text-3:  #94a3b8;
  --border:  #e2e8f0;
  --h:       56px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  background: var(--bg-1);
  color: var(--text-1);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
  height: var(--h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  user-select: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: filter .15s, background .15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { filter: brightness(.9); }

.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary { background: var(--bg-3); color: var(--text-1); border: 1px solid var(--border); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-ai        { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }
.btn-ai:hover  { filter: brightness(1.15); }

.btn-icon {
  width: 26px; height: 26px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 5px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  user-select: none;
}
.btn-icon:hover { background: #cbd5e1; color: var(--text-1); }
.btn-icon.danger { border-color: #fca5a5; color: #dc2626; }
.btn-icon.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
main {
  display: flex;
  height: calc(100vh - var(--h));
  overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pres-section {
  flex: 0 0 auto;
  max-height: 45%;
  border-bottom: 1px solid var(--border);
}

.slides-section { flex: 1; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
  flex-shrink: 0;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  user-select: none;
}

.slide-controls { display: flex; gap: 4px; }

/* ─── Item Lists ─────────────────────────────────────────────────────────── */
.item-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 4px 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}
.item-list::-webkit-scrollbar { width: 4px; }
.item-list::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }

.item-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-2);
  transition: background .1s, color .1s;
  user-select: none;
}
.item-list li:hover { background: var(--bg-2); color: var(--text-1); }
.item-list li.active { background: #ede9fe; color: #3730a3; }
.item-list li.active .slide-num { background: #c7d2fe; color: #3730a3; }

.pres-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.btn-delete-item {
  opacity: 0;
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: opacity .1s;
}
.item-list li:hover .btn-delete-item { opacity: .6; }
.btn-delete-item:hover { opacity: 1 !important; }

.slide-num {
  min-width: 22px; height: 22px;
  background: var(--bg-3);
  color: var(--text-3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}

.slide-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.empty-list-hint {
  color: var(--text-3) !important;
  font-style: italic;
  font-size: 12px !important;
  cursor: default !important;
  padding: 8px !important;
}
.empty-list-hint:hover { background: transparent !important; }

/* ─── Folder Structure ───────────────────────────────────────────────────── */
.item-list li.folder-item {
  display: block;
  padding: 0;
  cursor: default;
  background: transparent;
}
.item-list li.folder-item:hover { background: transparent; }

.folder-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  transition: background .1s;
}
.folder-header:hover { background: var(--bg-2); color: var(--text-1); }
.folder-header:hover .btn-delete-item { opacity: .6; }

.folder-toggle {
  font-size: 9px;
  color: var(--text-3);
  flex-shrink: 0;
  width: 10px;
}

.folder-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-contents {
  list-style: none;
  padding-left: 14px;
}

.pres-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-2);
  transition: background .1s, color .1s;
  user-select: none;
}
.pres-item:hover { background: var(--bg-2); color: var(--text-1); }
.pres-item.active { background: #ede9fe; color: #3730a3; }

.pres-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .1s;
}
.pres-item:hover .pres-actions { opacity: 1; }

.btn-move-item {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 3px;
  transition: color .1s, background .1s;
}
.btn-move-item:hover { color: var(--text-1); background: var(--bg-3); }

/* ─── Move Menu ──────────────────────────────────────────────────────────── */
.move-menu {
  position: fixed;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  padding: 4px;
  min-width: 160px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.move-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-1);
  transition: background .1s;
}
.move-option:hover { background: var(--bg-2); }
.move-option.active { color: var(--accent); font-weight: 600; }

.move-sep {
  height: 1px;
  background: var(--border);
  margin: 3px 4px;
}

/* ─── Content Wrapper ────────────────────────────────────────────────────── */
.content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
  text-align: center;
  padding: 40px;
}

.empty-icon {
  font-size: 60px;
  opacity: .15;
  line-height: 1;
  color: var(--accent);
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}

.empty-state p {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ─── Editor ─────────────────────────────────────────────────────────────── */
.editor-section {
  flex: 1;
  display: none;          /* shown via JS as flex */
  flex-direction: column;
  overflow: hidden;
}

.editor-top {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-2);
}

.editor-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.editor-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.slide-title-row {
  padding: 10px 14px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.align-btns { display: flex; gap: 4px; flex-shrink: 0; }
.align-btn { font-size: 14px; font-weight: 600; width: 28px; height: 26px; }
.align-btn.active { background: #ede9fe; color: #3730a3; border-color: var(--accent); }

/* ─── Inputs ─────────────────────────────────────────────────────────────── */
.title-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-1);
  padding: 7px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.title-input:focus { border-color: var(--accent); background: var(--bg-1); }
.title-input::placeholder { color: var(--text-3); }
.pres-title { font-size: 15px; font-weight: 600; }

/* ─── Editor Toolbar ─────────────────────────────────────────────────────── */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
  min-height: 32px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
}
.tbtn {
  padding: 2px 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .1s, color .1s, border-color .1s;
  white-space: nowrap;
  line-height: 1.5;
  font-family: inherit;
}
.tbtn:hover    { background: var(--bg-3); color: var(--text-1); border-color: var(--border); }
.tbtn.pressed  { background: #ede9fe; color: #3730a3; border-color: var(--accent); }
.tbtn-mode     { margin-left: auto; border-color: var(--border); color: var(--text-3); flex-shrink: 0; font-weight: 500; }
.tbtn-mode:hover { background: var(--bg-3); color: var(--text-1); }
.tsep          { width: 1px; height: 14px; background: var(--border); margin: 0 3px; flex-shrink: 0; }

/* ─── Visual (WYSIWYG) Editor ────────────────────────────────────────────── */
#slide-visual {
  flex: 1;
  width: 100%;
  background: var(--bg-0);
  outline: none;
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  padding: 16px 18px;
  overflow-y: auto;
  cursor: text;
}
#slide-visual:empty::before {
  content: 'Inhalt hier eingeben…';
  color: var(--text-3);
  pointer-events: none;
}
#slide-visual h1 { font-size: 1.9em;  font-weight: 700; margin-bottom: .35em; }
#slide-visual h2 { font-size: 1.45em; font-weight: 600; margin-bottom: .35em; }
#slide-visual h3 { font-size: 1.2em;  font-weight: 600; margin-bottom: .3em; }
#slide-visual p  { margin-bottom: .75em; }
#slide-visual ul, #slide-visual ol { margin: 0 0 .75em 1.4em; }
#slide-visual li { margin-bottom: .25em; }
#slide-visual strong, #slide-visual b { font-weight: 700; }
#slide-visual em,     #slide-visual i { font-style: italic; }
#slide-visual code { background: var(--bg-3); padding: 1px 6px; border-radius: 4px; font-family: 'Cascadia Code', Consolas, monospace; font-size: .9em; }
#slide-visual pre  { background: var(--bg-3); padding: 12px 16px; border-radius: 6px; overflow-x: auto; margin-bottom: .75em; font-family: 'Cascadia Code', Consolas, monospace; font-size: .88em; }
#slide-visual a    { color: var(--accent); text-decoration: underline; }
#slide-visual blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--text-2); margin-bottom: .75em; }
#slide-visual table { border-collapse: collapse; margin-bottom: .75em; }
#slide-visual th, #slide-visual td { border: 1px solid var(--border); padding: 5px 10px; }
#slide-visual th { background: var(--bg-3); font-weight: 600; }

/* ─── Code Textarea ──────────────────────────────────────────────────────── */
#slide-content {
  flex: 1;
  width: 100%;
  background: var(--bg-0);
  border: none;
  outline: none;
  color: #1e3a5f;
  font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.75;
  padding: 16px 18px;
  resize: none;
  tab-size: 2;
}
#slide-content::placeholder { color: var(--text-3); font-family: inherit; }

/* ─── Preview ────────────────────────────────────────────────────────────── */
.preview-panel {
  width: 42%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-2);
}

.preview-header {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

#preview-iframe {
  flex: 1;
  border: none;
  background: #fff;
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  padding: 16px;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

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

.modal-header h2 {
  font-size: 16px; font-weight: 700; color: var(--text-1);
}

.modal-close {
  background: none; border: none; color: var(--text-3);
  font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px;
  transition: color .15s;
}
.modal-close:hover { color: var(--text-1); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}

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

/* ─── Form ────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex; flex-direction: column; gap: 7px;
}

.form-group label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3);
}

.required { color: #b91c1c; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-3); opacity: .7; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

select.title-input { cursor: pointer; }

.ai-notes-ta {
  height: 76px; resize: vertical;
  font-family: inherit; line-height: 1.5;
}

.import-file-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.import-or {
  font-size: 13px; color: var(--text-3);
}

.import-ta {
  height: 260px; resize: vertical;
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 12px; line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}
.import-ta.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Drop overlay */
#drop-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 3px dashed var(--accent);
  pointer-events: none;
  align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--accent);
  gap: 14px;
}
#drop-overlay.active { display: flex; }

.import-hint {
  font-size: 13px; color: var(--text-3); line-height: 1.6;
}
.import-hint code {
  background: var(--bg-3); padding: 1px 5px; border-radius: 3px;
  font-size: .85em; color: #0369a1;
}

.import-detect {
  font-size: 12px; min-height: 22px; font-weight: 500;
  transition: color .2s;
}
.detect-ok   { color: #10b981; }
.detect-warn { color: #f59e0b; }

.modal-wide { width: 680px; }
.modal-xl   { width: 780px; }

/* ─── Template Grid ──────────────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.template-card {
  border-radius: 10px;
  padding: 14px 10px 10px;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,.08);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.template-card.active-tpl { border-color: var(--accent); }
.template-name { font-size: 11px; font-weight: 700; }
.template-sample { font-size: 15px; font-weight: 700; opacity: .9; }
.template-swatches { display: flex; gap: 5px; justify-content: center; margin-top: 3px; }
.template-swatch {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
}

.style-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.style-option {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-3); border: 1px solid transparent;
  border-radius: 6px; padding: 6px 12px;
  cursor: pointer; font-size: 13px; color: var(--text-2);
  transition: all .15s; user-select: none;
}
.style-option:has(input:checked) {
  background: #ede9fe; border-color: var(--accent); color: #3730a3;
}
.style-option input { display: none; }

/* ─── Loading Overlay ────────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.loading-content {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding: 20px;
}

.loading-spinner {
  width: 52px; height: 52px;
  border: 3px solid var(--border);
  border-top-color: #7c3aed;
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-content p {
  font-size: 16px; font-weight: 500; color: #f1f5f9;
}

.loading-hint {
  font-size: 13px !important; font-weight: 400 !important;
  color: #94a3b8 !important; max-width: 300px; line-height: 1.5;
}

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.toast-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.toast-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }

/* ─── Notes Section ──────────────────────────────────────────────────────── */
.notes-section {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  background: var(--bg-2);
  flex-shrink: 0;
  user-select: none;
}
.notes-ta {
  flex: 1;
  width: 100%;
  background: var(--bg-1);
  border: none;
  outline: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 14px;
  resize: none;
}
.notes-ta::placeholder { color: var(--text-3); }

/* ─── Presentation Settings Bar ─────────────────────────────────────────── */
.pres-settings {
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px; flex-wrap: wrap;
}
.setting-item {
  display: flex; align-items: center; gap: 8px;
}
.setting-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); white-space: nowrap;
  user-select: none;
}
.setting-select {
  padding: 4px 8px; font-size: 12px; width: auto; cursor: pointer;
}
.setting-toggle {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; user-select: none;
}
.setting-toggle input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--accent); cursor: pointer;
}
.setting-toggle span {
  font-size: 12px; color: var(--text-2);
}

/* ─── Slide Background Row ───────────────────────────────────────────────────── */
.slide-bg-row {
  padding: 6px 14px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.slide-bg-input {
  font-size: 12px;
  padding: 5px 10px;
  color: var(--text-2);
}
.slide-bg-input::placeholder { font-size: 12px; }

/* ─── Toolbar Callout / Layout Buttons ──────────────────────────────────────── */
.tbtn-layout { color: var(--accent); }
.tbtn-info   { color: var(--accent); }
.tbtn-warn   { color: #b45309; }
.tbtn-ok     { color: #059669; }
.tbtn-layout:hover { background: #ede9fe; border-color: var(--accent); }
.tbtn-info:hover   { background: #ede9fe; border-color: var(--accent); }
.tbtn-warn:hover   { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.tbtn-ok:hover     { background: #d1fae5; border-color: #10b981; color: #065f46; }

/* ─── Callout Boxes (editor preview) ────────────────────────────────────────── */
#slide-visual .callout {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: .75em;
  border-left: 4px solid var(--accent);
  background: rgba(99,102,241,.07);
}
#slide-visual .callout-info { border-color: var(--accent); background: rgba(99,102,241,.07); }
#slide-visual .callout-warn { border-color: #f59e0b; background: rgba(245,158,11,.08); }
#slide-visual .callout-ok   { border-color: #10b981; background: rgba(16,185,129,.08); }
#slide-visual .callout strong { display: block; margin-bottom: .25em; font-size: .95em; }
#slide-visual .callout p { margin-bottom: 0; }

/* ─── Two-column layout (editor preview) ───────────────────────────────────── */
#slide-visual .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  width: 100%;
  margin-bottom: .75em;
  align-items: start;
}
#slide-visual .cols > * { min-width: 0; }

/* ─── Image float helpers (editor preview) ──────────────────────────────────── */
#slide-visual img.img-left  { float: left;  max-width: 42%; margin: 0 1.5em 1em 0; border-radius: 6px; }
#slide-visual img.img-right { float: right; max-width: 42%; margin: 0 0 1em 1.5em; border-radius: 6px; }

/* ─── Session Modal ─────────────────────────────────────────────────────────── */
.session-id-display {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-align: center;
  padding: 16px 12px;
  background: #0f172a;
  border-radius: 10px;
  font-family: 'Cascadia Code', Consolas, monospace;
  border: 1px solid #334155;
}

.session-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.session-url-row .title-input {
  flex: 1;
  font-size: 12px;
  font-family: 'Cascadia Code', Consolas, monospace;
  color: var(--text-2);
}
