:root {
  --bg: #1e1e1e;
  --sidebar: #252526;
  --activity: #333333;
  --titlebar: #2d2d30;
  --tab-active: #1e1e1e;
  --tab-inactive: #2d2d30;
  --accent: #007acc;
  --text: #d4d4d4;
  --text-dim: #858585;
  --border: #3e3e42;
  --selection: #264f78;
  --hover: #2a2d2e;
  --tree-active: #37373d;
  /* syntax */
  --s-string: #ce9178;
  --s-comment: #6a9955;
  --s-keyword: #c586c0;
  --s-export: #4ec9b0;
  --s-fn: #dcdcaa;
  --s-num: #b5cea8;
  --s-prop: #9cdcfe;
  --s-punct: #d4d4d4;
  --s-bool: #569cd6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.vscode {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Title bar */
.title-bar {
  height: 30px;
  background: var(--titlebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
  user-select: none;
}
.tb-left { display: flex; align-items: center; gap: 10px; }
.traffic { display: flex; gap: 8px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.tb-center { font-size: 12px; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 16px; cursor: pointer; }

.body { flex: 1; display: flex; min-height: 0; }

/* Activity bar */
.activity-bar {
  width: 48px;
  background: var(--activity);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.act {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  position: relative;
}
.act svg { width: 24px; height: 24px; }
.act:hover { color: #fff; }
.act.active { color: #fff; border-left-color: var(--accent); }
.act-spacer { flex: 1; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--sidebar);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  height: 35px;
  display: flex; align-items: center;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.side-section-title {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  display: flex; align-items: center; gap: 4px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.chev { display: inline-block; font-size: 10px; transition: transform .12s; color: var(--text-dim); }
.chev.open { transform: rotate(90deg); }
.file-tree { font-size: 13px; }
.tree-folder, .tree-file {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 12px;
  cursor: pointer;
  white-space: nowrap;
  height: 22px;
  user-select: none;
}
.tree-file { padding-left: 28px; }
.tree-file.root { padding-left: 12px; }
.tree-folder:hover, .tree-file:hover { background: var(--hover); }
.tree-file.active { background: var(--tree-active); box-shadow: inset 2px 0 0 var(--accent); }
.tree-children { overflow: hidden; }
.tree-children.collapsed { display: none; }
.ficon { font-size: 11px; width: 16px; text-align: center; display: inline-block; flex-shrink: 0; }
.ficon.ts { color: #fff; background: #007acc; border-radius: 2px; font-size: 9px; font-weight: 700; line-height: 14px; }
.ficon.json { color: #cbcb41; }
.ficon.md { color: #c586c0; }
.ficon.css { color: #42a5f5; font-weight: 700; }
.ficon.pdf { color: #e2574c; }
.ficon.folder { font-size: 13px; }

.sidebar-overlay { display: none; }

/* Search / git / placeholder views */
.side-placeholder { padding: 14px; font-size: 12px; color: var(--text-dim); line-height: 1.7; }
.side-search-box { padding: 8px; }
.side-search-box input { width: 100%; background: #ffffff10; border: 1px solid var(--border); color: var(--text); padding: 5px 8px; font-family: inherit; font-size: 12px; outline: none; }
.side-search-box input:focus { border-color: var(--accent); }

/* Search results */
.search-results { overflow-y: auto; }
.search-summary { font-size: 11px; color: var(--text-dim); padding: 6px 12px; }
.search-file-name { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; color: var(--text); position: sticky; top: 0; background: var(--sidebar); }
.search-file-name .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; border-radius: 9px; padding: 0 6px; }
.search-hit { font-size: 12px; padding: 3px 10px 3px 30px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.search-hit:hover { background: var(--hover); color: var(--text); }
.search-hit mark { background: #ea5c0055; color: inherit; border-radius: 2px; }

/* Settings view — theme list */
.settings-group { padding: 8px 0; }
.settings-label { font-size: 11px; font-weight: 700; color: var(--text-dim); padding: 4px 12px; letter-spacing: .05em; }
.theme-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text); }
.theme-row:hover { background: var(--hover); }
.theme-row.active { background: var(--tree-active); box-shadow: inset 2px 0 0 var(--accent); }
.theme-row .theme-kind { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.theme-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); flex-shrink: 0; display: inline-block; }

/* Editor */
.editor-area { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.tab-bar {
  height: 35px;
  display: flex;
  background: var(--tab-inactive);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  height: 35px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px 0 12px;
  background: var(--tab-inactive);
  color: var(--text-dim);
  font-size: 13px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}
.tab.active {
  background: var(--tab-active);
  color: #fff;
}
.tab.active::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent);
}
.tab .tab-close {
  width: 16px; height: 16px; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0;
}
.tab:hover .tab-close { opacity: .7; }
.tab.active .tab-close { opacity: .7; }
.tab .tab-close:hover { background: #ffffff22; opacity: 1; }
.tab .dirty { width: 8px; height: 8px; border-radius: 50%; background: var(--text); }

.breadcrumb {
  height: 22px;
  display: flex; align-items: center;
  padding: 0 14px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg);
  border-bottom: 1px solid #2b2b2b;
  gap: 6px;
}
.breadcrumb .crumb-sep { opacity: .5; }

.editor-scroll { flex: 1; overflow: auto; position: relative; }
.editor-grid { display: flex; min-height: 100%; }
.editor-scroll.has-actions .editor-grid { min-height: auto; }
.editor-scroll.home-mode .editor-grid,
.editor-scroll.pdf-mode .editor-grid { display: none; }
.editor-scroll.pdf-mode { display: flex; flex-direction: column; }

/* Home hero (rendered landing page) */
.home-view { padding: 40px 56px 24px; }
.home-inner { max-width: 980px; }
.home-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -1px;
}
.home-title .accent-name { color: var(--accent); }
.home-code {
  background: #ffffff08;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 24px;
}
.home-code .line { display: block; }
.home-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 26px;
}
.home-intro b { color: var(--text); font-weight: 700; }
.home-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.home-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: filter .12s;
}
.home-btn:hover { filter: brightness(1.12); }
.home-btn.primary { background: var(--accent); color: #fff; }
.home-btn.ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.home-links { border-top: 1px solid var(--border); padding-top: 26px; }
.home-links-title { font-size: 12px; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 16px; }
.home-links-row { display: flex; flex-wrap: wrap; gap: 48px; }
.home-link { color: var(--accent); cursor: pointer; font-size: 14px; text-decoration: none; }
.home-link:hover { text-decoration: underline; }

/* Resume (PDF) view */
.resume-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.resume-view[hidden], .home-view[hidden] { display: none; }
.resume-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.resume-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.resume-bar .resume-name { color: var(--text); font-size: 13px; margin-right: auto; }
.resume-bar .home-btn { padding: 7px 16px; font-size: 13px; }
.resume-object { flex: 1; width: 100%; border: none; min-height: 420px; background: #525659; }
.resume-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px; color: var(--text); background: var(--bg);
}
.resume-placeholder .rp-icon { font-size: 56px; margin-bottom: 16px; }
.resume-placeholder h2 { font-size: 22px; margin-bottom: 12px; }
.resume-placeholder p { color: var(--text-dim); max-width: 460px; line-height: 1.6; margin-bottom: 8px; }
.resume-placeholder p.dim { font-size: 12px; }
.resume-placeholder code { background: #ffffff14; padding: 1px 6px; border-radius: 3px; color: var(--s-string); }

@media (max-width: 700px) {
  .home-view { padding: 24px 20px; }
  .home-title { font-size: 34px; }
  .home-intro { font-size: 17px; }
  .home-links-row { gap: 24px; }
}
.gutter {
  padding: 10px 0;
  text-align: right;
  color: var(--text-dim);
  user-select: none;
  min-width: 52px;
  flex-shrink: 0;
}
.gutter .ln { padding: 0 18px 0 12px; line-height: 21px; height: 21px; font-size: 14px; }
.code {
  flex: 1;
  padding: 10px 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  tab-size: 2;
  white-space: pre;
  overflow: visible;
}
.code .line {
  padding: 0 16px;
  height: 21px;
  display: block;
}
.code .line.active-line { background: var(--hover); }
.cursor-blink {
  display: inline-block;
  width: 2px; height: 16px;
  background: #aeafad;
  vertical-align: text-bottom;
  animation: blink 1.06s steps(1) infinite;
  margin-left: 1px;
}
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* syntax tokens */
.tok-str { color: var(--s-string); }
.tok-com { color: var(--s-comment); font-style: italic; }
.tok-kw { color: var(--s-keyword); }
.tok-exp { color: var(--s-export); }
.tok-fn { color: var(--s-fn); }
.tok-num { color: var(--s-num); }
.tok-prop { color: var(--s-prop); }
.tok-punct { color: var(--s-punct); }
.tok-bool { color: var(--s-bool); }

/* progress bars in json */
.bar-wrap { display: inline-flex; align-items: center; gap: 8px; }
.bar { display: inline-block; width: 110px; height: 8px; background: #3c3c3c; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg,#007acc,#4ec9b0); }

/* CSS clickable url() links */
.css-link { color: #569cd6; text-decoration: underline; cursor: pointer; }
.css-link:hover { color: #4ec9b0; }

/* Contact action buttons */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px 28px 16px;
}
.contact-actions[hidden] { display: none; }
/* VS Code-native button styling (flat, 2px radius, 13px) */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .1s;
}
.contact-btn .cb-ico { font-size: 13px; display: inline-flex; align-items: center; }
/* primary = VS Code accent button */
.contact-btn.mail { background: var(--accent); color: #fff; }
.contact-btn.mail:hover { filter: brightness(1.12); }
/* secondary = VS Code subtle button */
.contact-btn.whatsapp { background: var(--hover); color: var(--text); border-color: var(--border); }
.contact-btn.whatsapp:hover { background: var(--tree-active); }

/* Markdown preview split */
.md-preview {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow: auto;
  padding: 24px 32px;
  line-height: 1.6;
}
.editor-scroll.split .editor-grid { width: 50%; }
.md-preview h1 { font-size: 24px; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.md-preview h2 { font-size: 19px; margin: 20px 0 10px; color: var(--s-export); }
.md-preview h3 { font-size: 15px; margin: 14px 0 6px; }
.md-preview p { margin: 8px 0; }
.md-preview ul { margin: 8px 0 8px 20px; }
.md-preview li { margin: 3px 0; }
.md-preview a { color: var(--accent); }
.md-preview code { background: #ffffff14; padding: 1px 5px; border-radius: 3px; font-size: 13px; color: var(--s-string); }
.md-preview strong { color: #fff; }
.md-preview .badge { display: inline-block; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 3px; font-size: 11px; margin: 2px 4px 2px 0; }

/* Panel / terminal */
.panel {
  height: 220px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg);
  flex-shrink: 0;
}
.panel.hidden { display: none; }
.panel-tabs {
  height: 30px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: .05em;
  border-bottom: 1px solid #2b2b2b;
}
.panel-tab { color: var(--text-dim); cursor: pointer; height: 30px; display: flex; align-items: center; border-bottom: 1px solid transparent; }
.panel-tab.active { color: var(--text); border-bottom-color: var(--text); }
.panel-close { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; }
.terminal { flex: 1; overflow: auto; padding: 6px 12px; font-size: 13px; line-height: 1.5; }
.term-output .line { white-space: pre-wrap; word-break: break-word; }
.term-output .err { color: #f48771; }
.term-output .ok { color: #4ec9b0; }
.term-output .accent { color: #569cd6; }
.term-output .dim { color: var(--text-dim); }
.term-input-line { display: flex; align-items: center; gap: 6px; }
.term-prompt { color: #4ec9b0; white-space: nowrap; }
.term-path { color: #569cd6; }
.term-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 13px; }

/* ============================================================
   Copilot Chat panel (right secondary sidebar)
   ============================================================ */
.chat-panel {
  width: 380px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-panel[hidden] { display: none; }

.chat-header {
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border);
}
.chat-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.chat-spark { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.chat-head-actions { display: flex; gap: 2px; }
.chat-ic {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); border-radius: 5px;
}
.chat-ic svg { width: 16px; height: 16px; }
.chat-ic:hover { background: var(--hover); color: var(--text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Welcome / empty state */
.chat-welcome { text-align: center; padding: 26px 16px 8px; color: var(--text-dim); }
.chat-welcome .cw-spark {
  width: 40px; height: 40px; color: var(--accent);
  margin: 0 auto 14px; display: block;
}
.chat-welcome h3 { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.chat-welcome p { font-size: 12.5px; line-height: 1.6; max-width: 280px; margin: 0 auto; }
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 18px;
}
.chat-chip {
  font-family: inherit; font-size: 12px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 5px 12px; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.chat-chip:hover { background: var(--hover); border-color: var(--accent); }

/* Message rows */
.chat-msg { display: flex; gap: 9px; align-items: flex-start; }
.chat-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.chat-msg.bot .chat-avatar { background: linear-gradient(135deg,var(--accent),var(--s-export)); color: #fff; }
.chat-msg.bot .chat-avatar svg { width: 15px; height: 15px; }
.chat-msg.user .chat-avatar { background: var(--accent); color: #fff; }
.chat-body { flex: 1; min-width: 0; }
.chat-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.chat-text {
  font-size: 13px; line-height: 1.65; color: var(--text);
  word-wrap: break-word;
}
.chat-text p { margin: 0 0 8px; }
.chat-text p:last-child { margin-bottom: 0; }
.chat-text b, .chat-text strong { color: var(--text); font-weight: 700; }
.chat-text ul { margin: 4px 0 8px; padding-left: 18px; }
.chat-text li { margin: 3px 0; }
.chat-text a { color: var(--accent); text-decoration: none; }
.chat-text a:hover { text-decoration: underline; }
.chat-text code {
  background: #ffffff14; padding: 1px 5px; border-radius: 3px;
  font-size: 12px; color: var(--s-string);
}
.chat-text .chat-link { color: var(--accent); cursor: pointer; }
.chat-text .chat-link:hover { text-decoration: underline; }

/* typing indicator */
.chat-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
  animation: chatBlink 1s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chatBlink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* Input */
.chat-input-wrap { flex-shrink: 0; padding: 8px 12px 14px; }
.chat-input-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 8px 10px 6px;
}
.chat-input-box:focus-within { border-color: var(--accent); }
.chat-input {
  width: 100%;
  background: none; border: none; outline: none; resize: none;
  color: var(--text); font-family: inherit; font-size: 13px;
  line-height: 1.5; max-height: 120px;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-input-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.chat-model { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px; }
.chat-send {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-send svg { width: 15px; height: 15px; }
.chat-send:hover { filter: brightness(1.12); }
.chat-send:disabled { opacity: .4; cursor: default; filter: none; }

@media (max-width: 900px) {
  .chat-panel {
    position: absolute;
    right: 0; top: 30px; bottom: 24px;
    z-index: 50;
    box-shadow: -4px 0 16px #0008;
  }
}
@media (max-width: 600px) {
  .chat-panel { width: 100%; left: 0; }
}

/* Status bar */
.status-bar {
  height: 24px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
}
.sb-left, .sb-right { display: flex; align-items: center; }
.sb-item { padding: 0 8px; height: 24px; display: flex; align-items: center; gap: 4px; cursor: default; }
.sb-right .sb-item { cursor: pointer; }
.sb-item:hover { background: #ffffff22; }

/* Command palette */
.cmd-overlay {
  position: fixed; inset: 0;
  background: #00000033;
  display: flex; justify-content: center;
  padding-top: 0;
  z-index: 100;
}
.cmd-overlay[hidden] { display: none; }
.cmd-palette {
  margin-top: 8px;
  width: 600px; max-width: 90vw;
  background: #252526;
  border: 1px solid #454545;
  box-shadow: 0 6px 24px #000a;
  border-radius: 5px;
  overflow: hidden;
}
.cmd-input {
  width: 100%;
  background: #3c3c3c;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
}
.cmd-list { list-style: none; max-height: 320px; overflow: auto; }
.cmd-list li {
  padding: 6px 12px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.cmd-list li .ci { font-size: 11px; }
.cmd-list li.sel, .cmd-list li:hover { background: var(--selection); }
.cmd-list li .desc { color: var(--text-dim); font-size: 11px; margin-left: auto; }
.cmd-list li .theme-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); flex-shrink: 0; }

/* scrollbars */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #424242; border: 3px solid transparent; background-clip: content-box; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4f4f4f; background-clip: content-box; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    position: absolute;
    left: 48px; top: 30px; bottom: 24px;
    z-index: 50;
    box-shadow: 4px 0 16px #0008;
    transform: translateX(-110%);
    transition: transform .18s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; position: absolute; inset: 30px 0 24px 48px; background: #0006; z-index: 40; }
  .md-preview { position: relative; width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .editor-scroll.split .editor-grid { width: 100%; }
  .editor-scroll.split { display: flex; flex-direction: column; }
}
@media (max-width: 600px) {
  .activity-bar { width: 40px; }
  .act { width: 40px; }
  .hamburger { display: block; }
  .tb-center { display: none; }
  .sidebar { left: 40px; }
  .sidebar-overlay.show { left: 40px; }
  .panel { height: 170px; }
  .sb-item.opt { display: none; }
}
