/* ==========================================================================
   Chat Terminal — design system
   Diturunkan dari desain referensi "Modern Developer Chat Workspace" (Figma
   Make): palet #1e1e1e / #252526, aksen #007acc, DM Sans + JetBrains Mono.
   Berkas ini = kerangka (shell) + komponen umum (kartu, tabel, tombol, form).
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #1e1e1e;
  --panel: #252526;
  --panel-soft: #2d2d30;
  --panel-raised: #333;
  --line: #3c3c3c;
  --line-bright: #4a4a4a;
  --sunken: #1a1a1a;
  --muted: #9d9d9d;
  --muted-2: #7d8590;
  --text: #d4d4d4;
  --text-strong: #f0f3f9;
  --blue: #007acc;
  --blue-hi: #118bd3;
  --cyan: #4fc1ff;
  --violet: #c586c0;
  --green: #4ec9b0;
  --amber: #e2b357;
  --red: #f48771;
  --red-bg: #3a1d1d;
  --font-ui: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg);
  font-family: var(--font-ui);
  color: var(--text);
}

*, *:before, *:after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 13px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
::selection { color: #fff; background: #007acc66; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================== SHELL ================================== */
.app-shell {
  height: 100vh;
  min-height: 520px;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 25px;
  background: var(--bg);
  overflow: hidden;
}

/* ------------------------------ topbar -------------------------------- */
.topbar {
  z-index: 30;
  position: relative;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) auto;
  align-items: center;
  background: #181818;
  border-bottom: 1px solid var(--line);
}
.brand {
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  font-weight: 650;
  letter-spacing: -.01em;
  color: #e7e7e7;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
  flex: none;
}
.brand-mark span { font: 600 10px/1 var(--font-mono); letter-spacing: .02em; }
.brand-mark i { position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; background: var(--cyan); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.version {
  color: #8490a5;
  border: 1px solid #2d394d;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  flex: none;
}
.workspace-path {
  display: flex; align-items: center; gap: 8px;
  padding-left: 18px;
  font-size: 12px;
  color: #77849a;
  min-width: 0;
}
.workspace-path span, .workspace-path strong {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.workspace-path strong { color: #a5afc2; font-weight: 500; }
.workspace-path .slash { color: #394456; }
.workspace-path svg { flex: none; }
.top-actions { display: flex; align-items: center; gap: 6px; padding-right: 12px; }
.top-actions form { display: flex; }
.icon-button {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: #969696;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.icon-button:hover { color: #fff; background: #2a2d2e; border-color: #3c3c3c; text-decoration: none; }
.icon-button i { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 3px 8px 3px 4px;
  border-radius: 4px;
}
.user-chip:hover { background: #2a2d2e; }
.avatar {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: #3a3d41;
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .02em;
  flex: none;
}
.user-meta { display: grid; text-align: left; line-height: 1.1; }
.user-meta strong { font-size: 12px; font-weight: 600; color: #e7e7e7; }
.user-meta small { margin-top: 3px; font-size: 10px; color: var(--muted); text-transform: capitalize; }
.mobile-menu { display: none; }

/* ---------------------------- workspace ------------------------------- */
.workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 0;
}
.sidebar {
  z-index: 20;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.mobile-sidebar-head { display: none; }

.activity-rail {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  gap: 4px;
  padding: 8px 0 10px;
  background: #181818;
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: auto;
}
.activity-rail > div { display: grid; gap: 4px; }
.activity-rail button, .activity-rail a {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #6f7d92;
  transition: background .18s, color .18s;
}
.activity-rail button:hover, .activity-rail a:hover { color: #f0f0f0; background: #2a2d2e; text-decoration: none; }
.activity-rail .active { color: #fff; background: #252526; }
.activity-rail .active:before {
  content: "";
  position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 23px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.activity-rail [data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute; left: 48px; top: 50%;
  transform: translate(5px, -50%);
  z-index: 50;
  padding: 7px 9px;
  border: 1px solid #344158;
  border-radius: 6px;
  background: #182130;
  color: #dce3ef;
  font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  box-shadow: 0 8px 22px #0008;
  transition: opacity .15s, transform .15s;
}
.activity-rail [data-tooltip]:hover:after { opacity: 1; transform: translate(0, -50%); }
.activity-badge {
  position: absolute; top: 5px; right: 4px;
  min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center;
  border-radius: 8px; border: 2px solid #181818;
  background: var(--blue); color: #fff;
  font-size: 8px; font-weight: 700;
}

.explorer-pane {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--panel);
}
.primary-nav { padding: 16px 12px 12px; border-bottom: 1px solid #1e1e1e; }
.eyebrow {
  margin: 0 5px 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: #69778d;
}
.nav-switcher {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 2px;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
}
.nav-switcher.three { grid-template-columns: repeat(3, 1fr); }
.nav-switcher button {
  height: 32px; padding: 0 6px;
  background: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 3px;
  color: #969696;
  font-size: 11px;
  white-space: nowrap; overflow: hidden;
}
.nav-switcher button svg { flex: none; }
.nav-switcher button:hover { color: #cdd4e5; background: #2a2d2e; }
.nav-switcher button.active { color: #edf1fa; background: #37373d; }
.nav-switcher button.active svg { color: #4fc1ff; }
.nav-switcher kbd { display: none; }

.primary-nav .nav-stack { display: grid; gap: 3px; margin-top: 10px; }
.primary-nav .nav-stack a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border-radius: 4px;
  color: #969696;
  font-size: 11px;
}
.primary-nav .nav-stack a:hover { color: #cdd4e5; background: #2a2d2e; text-decoration: none; }
.primary-nav .nav-stack a.active { color: #edf1fa; background: #37373d; }
.primary-nav .nav-stack a.active svg { color: #4fc1ff; }
.primary-nav .nav-stack em { margin-left: auto; font-style: normal; color: #748096; font-size: 9px; }

.project-explorer { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 16px 12px; }
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: #aeb8ca;
}
.section-heading button { display: grid; place-items: center; color: #748096; background: none; }
.section-heading button:hover { color: #d9dfed; }
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #728096;
}
.sidebar-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.sidebar-search input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: #cbd2e2; font-size: 11px;
}
.sidebar-search input::placeholder { color: #6b788e; }
.sidebar-search span {
  padding: 3px 5px;
  border: 1px solid #2a3343; border-radius: 4px;
  font-size: 8px; color: #647188;
}
.sidebar-search button { color: #748096; display: grid; place-items: center; background: none; padding: 2px; }
.sidebar-search button:hover { color: #d9dfed; }

/* daftar isi sidebar (proyek · tanggal · user) */
.side-list { margin-top: 10px; overflow: auto; min-height: 0; padding-bottom: 8px; }
.side-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  color: #b7c0d2;
  font-size: 11px;
  text-align: left;
}
.side-item:hover { background: #2a2d2e; text-decoration: none; }
.side-item.selected { background: #37373d; outline: 1px solid #4a4a4a; }
.side-item.selected .side-item-name { color: #eff2fa; }
.side-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: #c5c5c5;
  background: #2a2a2a;
}
.side-item-info { display: grid; gap: 2px; min-width: 0; }
.side-item-name {
  color: #b7c0d2; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-item-sub {
  display: flex; align-items: center; gap: 4px;
  color: #7d8590; font-size: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-item-count { color: #6d7a8f; font-size: 9px; font-variant-numeric: tabular-nums; }
.side-item.flat { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 8px 6px 10px; }
.side-hint { padding: 8px 6px; color: #6d7a8f; font-size: 10px; }
.side-divider { height: 1px; margin: 8px 4px; background: #1e1e1e; }
.side-group { margin-bottom: 4px; }
.side-group > summary {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px;
  border-radius: 4px;
  color: #9aa6b8; font-size: 10px; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary:hover { background: #2a2d2e; color: #d9dfed; }
.side-group > summary:before { content: "▸"; color: #748096; font-size: 9px; }
.side-group[open] > summary:before { content: "▾"; }
.side-group .month-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group .month-badge { color: #748096; font-size: 9px; font-variant-numeric: tabular-nums; }
.side-group .side-list-inner { padding-left: 6px; }

/* ----------------------------- content -------------------------------- */
.content {
  min-width: 0; min-height: 0;
  display: grid;
  grid-template-rows: 42px auto minmax(0, 1fr);
  background: #1e1e1e;
}
.content.scrollable { display: block; overflow: auto; padding: 22px max(20px, calc(50% - 620px)) 44px; }
.content.scrollable > h1 { font-size: 18px; margin-bottom: 6px; }
.content.scrollable > p.muted:first-of-type { margin-bottom: 16px; }
.content.scrollable .page-wrap { max-width: 1080px; margin: 0 auto; }

/* tab strip */
.editor-tabs {
  position: relative;
  display: flex; align-items: stretch;
  background: #1e1e1e;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tab {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-width: 178px; padding: 0 12px;
  border-right: 1px solid var(--line);
  background: #2d2d2d;
  color: #9aa4b4;
  font-size: 11px;
  white-space: nowrap;
}
.tab:hover { color: #d4d4d4; }
.tab.active { background: #1e1e1e; color: #fff; }
.tab.active:after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: var(--blue); }
.tab > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.tab svg:first-child { color: #4fc1ff; flex: none; }
.tab-status { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: none; }
.tab-status.idle { background: #5a5a5a; }
.tab-close { margin-left: auto; padding: 3px; border-radius: 4px; display: grid; place-items: center; color: #8a8a8a; }
.tab-close:hover { background: #3a3d41; color: #fff; }
.tab-add { width: 35px; display: grid; place-items: center; color: #748096; background: none; }
.tab-add:hover { color: #d9dfed; }
.tab-tools { margin-left: auto; display: flex; }
.tab-tools button { width: 34px; display: grid; place-items: center; color: #748096; background: none; }
.tab-tools button:hover, .tab-tools button.tool-active { color: #fff; background: #37373d; }

/* chat header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 26px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.chat-header > div { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #647187; }
.breadcrumb span, .breadcrumb strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.breadcrumb strong { color: #77859b; font-weight: 500; }
.breadcrumb a { color: #647187; }
.breadcrumb a:hover { color: #9aa4b4; text-decoration: none; }
.chat-header h1 {
  display: flex; align-items: center; gap: 9px;
  margin: 6px 0 3px;
  font-size: 18px; color: var(--text-strong); letter-spacing: -.025em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-header p { font-size: 11px; color: #7a879b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.live-dot.busy { background: var(--amber); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.collaborators { display: flex; padding-right: 4px; }
.collaborators span {
  width: 28px; height: 28px; margin-left: -6px;
  display: grid; place-items: center;
  border-radius: 8px; border: 2px solid var(--panel);
  background: #37415a; color: #e2e6f4;
  font-size: 8px; font-weight: 700;
}
.collaborators span:nth-child(2) { background: #3d5360; }
.collaborators span:nth-child(3) { background: #303649; color: #9ca7bb; }
.secondary-button {
  display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border: 1px solid #2d3a4f; border-radius: 8px;
  background: #151d2a; color: #a6b1c3;
  font-size: 11px;
}
.secondary-button:hover { color: #dce2ef; border-color: #3f4c61; text-decoration: none; }
.secondary-button em {
  min-width: 17px; padding: 2px 4px;
  border-radius: 6px; background: #263143;
  color: #8f9cb1; font-size: 9px; font-style: normal;
}
.secondary-button.on { border-color: var(--blue); color: #fff; background: #0b2f45; }

/* ============================== GENERAL UI ============================= */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.card .title { color: #4fc1ff; font-size: 14px; font-weight: 650; }
a.title:hover { color: #79d1ff; text-decoration: none; }
.card .meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.muted { color: var(--muted); font-size: 12px; }
h1 { font-size: 20px; color: var(--text-strong); }
h2 { font-size: 14px; color: var(--text-strong); margin: 16px 0 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 18px; }
.page-head .muted { max-width: 720px; }

button, .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 11px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--blue-hi); text-decoration: none; }
button.small, .btn.small {
  padding: 5px 9px;
  background: #333; color: #d4d4d4;
  border: 1px solid #4a4a4a;
  font-size: 10px;
}
button.small:hover, .btn.small:hover { background: #3a3d41; border-color: #565656; }
button.danger, .btn.danger { background: #a12d2d; color: #fff; border-color: #7d2323; }
button.danger:hover, .btn.danger:hover { background: #b83838; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost, .btn.ghost { background: none; color: #9aa4b4; border-color: #3c3c3c; }
button.ghost:hover, .btn.ghost:hover { background: #2a2d2e; color: #fff; }

input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  background: #1e1e1e;
  border: 1px solid #454545;
  border-radius: 4px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, input[type=password]:focus, input[type=search]:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
input::placeholder, textarea::placeholder { color: #5c6675; }
label { font-size: 11px; color: #bdbdbd; }
.searchbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.searchbar input[type=search] { flex: 1; min-width: 160px; }

.flash {
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 12px;
  border: 1px solid #3c3c3c;
  background: var(--panel);
}
.flash.ok { background: #12291f; border-color: #2c6a4c; color: #9adfbc; }
.flash.error { background: var(--red-bg); border-color: #7d2b2b; color: #ffb3a7; }

.table-wrap { overflow-x: auto; }
table.table, table { width: 100%; border-collapse: collapse; font-size: 12px; }
table th, table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #2a2a2a; vertical-align: middle; }
table th {
  color: #8696aa; font-weight: 600; font-size: 9px;
  text-transform: uppercase; letter-spacing: .07em;
  background: #1e1e1e;
}
table tr:hover td { background: #222222; }

.pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px; font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid transparent;
}
.pill.admin { background: #3a1d1d; color: #ff9c8f; border-color: #6d2b2b; }
.pill.member { background: #10293d; color: #7cc4ff; border-color: #23506f; }

/* menu mengambang (dropdown) */
.context-menu {
  position: absolute; z-index: 60;
  width: 210px; padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  box-shadow: 0 10px 28px #0009;
}
.context-menu[hidden] { display: none; }
.context-menu button, .context-menu a {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 9px;
  border-radius: 4px;
  color: #d4d4d4; font-size: 11px; text-align: left;
  background: none;
}
.context-menu button:hover, .context-menu a:hover { background: #094771; color: #fff; text-decoration: none; }
.context-menu .menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.context-menu .menu-label {
  padding: 7px 9px 5px;
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  color: #748096;
}

/* ============================ toast (pesan kilat) ===================== */
.toast-stack {
  position: fixed; right: 18px; bottom: 38px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.toast-stack.leaving { opacity: 0; transform: translateY(6px); }
.toast {
  display: flex; align-items: center; gap: 8px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 13px;
  border: 1px solid var(--line-bright); border-radius: 7px;
  background: var(--panel-raised);
  color: #e7e7e7;
  font-size: 11px;
  box-shadow: 0 8px 25px #0008;
}
.toast span { color: var(--green); font-weight: 700; }
.toast.error { border-color: #7d2b2b; background: #3a1d1d; color: #ffd7d1; }
.toast.error span { color: #ff9c8f; }

/* ============================ statusbar ================================ */
.statusbar {
  z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: #007acc;
  border-top: 1px solid #007acc;
  color: #fff;
  font-size: 9px;
  letter-spacing: .01em;
}
.statusbar > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.statusbar span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.statusbar a { color: #fff; }
.statusbar b { font-weight: 500; color: #ffe0a3; }
.statusbar .sb-muted { color: #cfe4f2; }

.mobile-backdrop { display: none; }

/* ============================= RESPONSIVE ============================== */
@media (max-width: 1050px) {
  .workspace { grid-template-columns: 258px minmax(0, 1fr); }
  .topbar { grid-template-columns: 258px minmax(0, 1fr) auto; }
  .collaborators { display: none; }
  .chat-header { padding-inline: 20px; }
}

@media (max-width: 800px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand { border-right: 0; grid-column: 2; grid-row: 1; }
  .workspace-path { display: none; }
  .top-actions { grid-column: 3; grid-row: 1; padding-right: 8px; }
  .top-actions .hide-sm { display: none; }
  .user-meta, .user-chip > svg { display: none; }
  .mobile-menu { display: grid; grid-column: 1; grid-row: 1; margin: 0 0 0 8px; }
  .workspace { display: block; }
  .sidebar {
    position: fixed;
    inset: 56px auto 25px 0;
    width: 286px;
    grid-template-columns: 48px minmax(0, 1fr);
    transform: translateX(-102%);
    transition: transform .25s;
    box-shadow: 20px 0 60px #0009;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    grid-column: 1 / -1;
    height: 40px; padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: #181818;
    color: #aab4c5;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
  }
  .mobile-sidebar-head button { display: grid; place-items: center; color: #7a869a; padding: 4px; }
  .mobile-backdrop {
    display: block;
    position: fixed; inset: 56px 0 25px;
    z-index: 15;
    background: #02040a9c;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  .mobile-backdrop[hidden] { display: none; }
  .content { height: 100%; }
  .tab.secondary-tab { display: none; }
  .chat-header { padding-inline: 16px; }
  .header-actions .header-optional { display: none; }
  .content.scrollable { padding: 16px 14px 32px; }
}

@media (max-width: 560px) {
  .chat-header { padding-block: 10px; }
  .chat-header h1 { font-size: 15px; margin: 4px 0 2px; }
  .chat-header p, .breadcrumb { max-width: 210px; }
  .secondary-button { width: 32px; padding: 0; justify-content: center; }
  .secondary-button span, .secondary-button em { display: none; }
  .tab { min-width: 150px; }
  .statusbar .sb-hide-sm { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Tombol yang tampil sebagai ikon/teks saja (bukan tombol biru utama).
   Ditulis paling bawah supaya menang dari aturan dasar `button`.
   ========================================================================== */
.tab-add, .tab-tools button, .nav-switcher button, .icon-button, .user-chip,
.section-heading button, .sidebar-search button, .vp-op, .del-btn, .reply-btn,
.tab-close { background: none; }
