/* ============================================================
   FlowCraft — Main Stylesheet
   ============================================================ */

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

:root {
  --bg:          #0f1117;
  --surface:     #1a1d27;
  --surface2:    #22263a;
  --surface3:    #2a2f45;
  --surface4:    #323754;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.13);
  --border3:     rgba(255,255,255,0.2);
  --text:        #eef0ff;
  --text2:       #8b90b0;
  --text3:       #50556e;
  --accent:      #6366f1;
  --accent2:     #818cf8;
  --accent3:     #a5b4fc;
  --green:       #10b981;
  --amber:       #f59e0b;
  --pink:        #ec4899;
  --cyan:        #06b6d4;
  --red:         #ef4444;
  --orange:      #f97316;
  --canvas-bg:   #0c0e16;
  --node-shadow: 0 4px 24px rgba(0,0,0,0.55);
  --font:        'DM Sans', -apple-system, sans-serif;
  --mono:        'DM Mono', monospace;
  --topbar-h:    52px;
  --left-w:      220px;
  --right-w:     268px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
}

/* ============================================================
   BASE
   ============================================================ */

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ============================================================
   TOPBAR
   ============================================================ */

#topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 16px; height: 16px; }

.logo-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sep {
  width: 1px;
  height: 22px;
  background: var(--border2);
  flex-shrink: 0;
}

.project-name-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-shrink: 1;
}

.project-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.save-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--green);
  flex-shrink: 0;
}

.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.save-status.saving .save-dot {
  background: var(--amber);
  animation: blink 1s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.spacer { flex: 1; }

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.08s;
  white-space: nowrap;
  outline: none;
}

.btn:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border3);
}

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

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
}

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

.btn-present {
  background: linear-gradient(135deg, #7c3aed, var(--pink));
  border-color: transparent;
  color: white;
}

.btn-present:hover {
  opacity: 0.88;
  background: linear-gradient(135deg, #6d28d9, #db2777);
  border-color: transparent;
  color: white;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.icon-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

#main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */

#leftpanel {
  width: var(--left-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}

.panel-section {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  outline: none;
}

.tool-btn svg { transition: color 0.12s; }

.tool-btn:hover {
  background: var(--surface3);
  color: var(--text);
  border-color: var(--border2);
}

.tool-btn.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--accent3);
}

/* Projects */
#project-list { display: flex; flex-direction: column; gap: 2px; }

.project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 400;
}

.project-item:hover { background: var(--surface2); color: var(--text); }
.project-item.active { background: rgba(99,102,241,0.12); color: var(--accent2); }

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

/* Stats */
.panel-stats { flex: 1; }

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
  padding: 3px 0;
}

.stat-val { font-weight: 500; color: var(--text); }

/* Shortcuts */
.shortcuts { padding-bottom: 16px; }

.shortcut {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  padding: 2px 0;
}

kbd {
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
}

/* ============================================================
   CANVAS
   ============================================================ */

#canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--canvas-bg);
  cursor: default;
}

#canvas-bg-el {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#canvas-bg-el.grid-on {
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

#canvas-content {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  width: 100%;
  height: 100%;
}

#conn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#nodes-layer, #annotations-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   NODES
   ============================================================ */

.node-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
}

.node-wrap:active { cursor: grabbing; }

.node-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.12);
  position: relative;
  transition: border-color 0.15s, transform 0.1s;
  box-shadow: var(--node-shadow);
}

.node-wrap:hover .node-circle {
  border-color: rgba(255,255,255,0.28);
  transform: scale(1.04);
}

.node-wrap.selected .node-circle {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.28), var(--node-shadow);
  transform: scale(1.04);
}

.node-icon {
  font-size: 24px;
  margin-bottom: 4px;
  pointer-events: none;
  line-height: 1;
}

.node-label {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  pointer-events: none;
  word-break: break-word;
  hyphens: auto;
}

.node-connector {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--canvas-bg);
  cursor: crosshair;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 5;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  box-shadow: 0 2px 8px rgba(99,102,241,0.5);
}

.node-wrap:hover .node-connector {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Pulse animation for selected node */
@keyframes pulse-ring {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1.65); opacity: 0; }
}

.pulse-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  pointer-events: none;
  animation: pulse-ring 2s ease-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* ============================================================
   CONNECTIONS
   ============================================================ */

.conn-group { cursor: pointer; }

.conn-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  cursor: pointer;
}

.conn-path {
  fill: none;
  stroke-width: 2;
  pointer-events: none;
  transition: stroke 0.15s;
}

.conn-group:hover .conn-path { stroke-width: 3; }

.conn-label-bg {
  pointer-events: none;
}

.conn-label-text {
  font-size: 10px;
  font-weight: 500;
  pointer-events: none;
  font-family: var(--font);
}

@keyframes dash-flow {
  to { stroke-dashoffset: -28; }
}

.conn-animated {
  stroke-dasharray: 7 5;
  animation: dash-flow 0.7s linear infinite;
}

/* ============================================================
   ANNOTATIONS
   ============================================================ */

.annotation {
  position: absolute;
  cursor: move;
  padding: 7px 13px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.28);
  border-radius: 24px;
  color: var(--accent2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(99,102,241,0.18);
  transform: translate(-50%, -50%);
  transition: border-color 0.15s;
}

.annotation:hover { border-color: rgba(99,102,241,0.5); }

/* ============================================================
   ZOOM CONTROLS
   ============================================================ */

#zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 4px;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  font-family: var(--mono);
}

.zoom-btn:hover { background: var(--surface2); color: var(--text); }

.zoom-label {
  font-size: 11.5px;
  color: var(--text2);
  padding: 0 6px;
  min-width: 46px;
  text-align: center;
  font-family: var(--mono);
}

.zoom-sep {
  width: 1px;
  height: 20px;
  background: var(--border2);
  margin: 0 2px;
}

/* ============================================================
   RIGHT SIDEBAR
   ============================================================ */

#sidebar {
  width: var(--right-w);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s, transform 0.2s;
  overflow: hidden;
}

#sidebar.hidden {
  width: 0;
}

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

.sidebar-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}

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

.field-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

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

.field-textarea {
  height: 72px;
  resize: none;
  line-height: 1.5;
}

.color-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.12s, border-color 0.12s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected { border-color: white; transform: scale(1.15); }

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

.icon-opt {
  padding: 7px;
  border-radius: 6px;
  text-align: center;
  font-size: 17px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface2);
  transition: background 0.12s, border-color 0.12s;
  line-height: 1;
}

.icon-opt:hover { background: var(--surface3); border-color: var(--border2); }
.icon-opt.selected { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.danger-btn {
  color: var(--red) !important;
  border-color: rgba(239,68,68,0.25) !important;
}

.danger-btn:hover {
  background: rgba(239,68,68,0.1) !important;
  border-color: rgba(239,68,68,0.45) !important;
  color: var(--red) !important;
}

/* ============================================================
   CONTEXT MENU
   ============================================================ */

#ctx-menu {
  position: fixed;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 5px;
  z-index: 500;
  display: none;
  box-shadow: 0 10px 36px rgba(0,0,0,0.55);
  min-width: 170px;
}

#ctx-menu.visible { display: block; }

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font);
  text-align: left;
}

.ctx-item:hover { background: rgba(99,102,241,0.12); color: var(--text); }
.ctx-danger:hover { background: rgba(239,68,68,0.12); color: var(--red); }

/* ============================================================
   MODAL
   ============================================================ */

#modal-overlay, #export-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  backdrop-filter: blur(4px);
}

#modal-overlay.active, #export-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.modal-body { display: flex; flex-direction: column; gap: 14px; }

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

/* Export modal */
.export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  background: var(--surface2);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: var(--font);
}

.export-option:hover {
  background: var(--surface3);
  border-color: var(--accent);
}

.export-icon { font-size: 28px; }
.export-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.export-desc { font-size: 10.5px; color: var(--text3); text-align: center; }

/* ============================================================
   PRESENTATION OVERLAY
   ============================================================ */

#presentation-overlay {
  position: fixed;
  inset: 0;
  background: #070910;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

#presentation-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#pres-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

#pres-title-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

#pres-project-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
}

#pres-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#pres-canvas {
  position: relative;
  width: min(900px, 95vw);
  height: min(520px, 70vh);
}

#pres-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pres-node {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.45s, filter 0.45s;
}

.pres-node.visible { opacity: 1; }

.pres-node.current {
  filter: drop-shadow(0 0 22px rgba(99,102,241,0.7));
}

.pres-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.pres-icon { font-size: 26px; margin-bottom: 4px; line-height: 1; }
.pres-label { font-size: 10.5px; font-weight: 500; color: white; line-height: 1.3; }

.pres-annotation {
  position: absolute;
  padding: 6px 13px;
  border-radius: 24px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  opacity: 0;
  transition: opacity 0.6s 0.5s;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.pres-annotation.visible { opacity: 1; }

#pres-step-desc {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  max-width: 500px;
  line-height: 1.5;
  min-height: 20px;
  transition: opacity 0.3s;
}

#pres-controls {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26,29,39,0.92);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.pres-step-text {
  font-size: 12px;
  color: var(--text2);
  padding: 0 10px;
  min-width: 120px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   TOAST
   ============================================================ */

#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 9px 18px;
  font-size: 12.5px;
  color: var(--text);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   SCROLLBAR (webkit)
   ============================================================ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  #leftpanel { display: none; }
  .logo-text { display: none; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { padding: 6px 8px; }
}

@media (max-width: 600px) {
  #sidebar { position: absolute; right: 0; top: 0; bottom: 0; z-index: 50; }
  .project-name { max-width: 120px; }
}
