/* ============================================================
   Factoreee — central stylesheet (Microsoft Teams-inspired, light)
   All colors ride on CSS custom properties set in layout/header.php
   (admin-configurable via Settings -> Appearance).
   ============================================================ */
:root {
  --base-font-size: 14px;
  --text: #1f1f1f;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .10);
  --border: #e2e5ea;
  --border-soft: #edeff3;

  /* Three panes + bubbles */
  --pane-menu: #f1f4f7;
  --pane-list: #f0f0f0;
  --pane-chat: #f5f5f7;
  --bubble-user: #cfe5ff;
  --bubble-agent: #ffffff;

  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 10px;
  --font: "Segoe UI", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--base-font-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
.wrapper { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px clamp(14px, 2.5vw, 30px) 40px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code {
  background: var(--surface-2); color: #23518f; border: 1px solid var(--border-soft);
  border-radius: 5px; padding: 1px 6px; font-size: 12.5px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- Top bar ---------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 54px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #4f46e5, var(--accent));
  color: #fff; font-weight: 600; font-size: 15px;
}
.brand-mark.large { width: 50px; height: 50px; font-size: 24px; }

/* Team-member live search */
.team-search { flex: 1; max-width: 420px; position: relative; margin-left: 6px; }
.team-search input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-family: inherit; outline: none; transition: .15s;
}
.team-search input::placeholder { color: #9aa1ab; }
.team-search input:focus { border-color: var(--accent); background: #fff; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.10); overflow: hidden; z-index: 60; max-height: 320px; overflow-y: auto;
}
.search-no-results { padding: 12px 16px; color: var(--muted); font-size: 13px; }
.search-result {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; color: var(--text); border-bottom: 1px solid var(--border-soft);
}
.search-result:hover { background: var(--accent-soft); text-decoration: none; }
.search-result:last-child { border-bottom: none; }
.search-result .sr-name { font-size: 14px; }
.search-result .sr-role { font-size: 12px; color: var(--muted); }

/* Top bar right */
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.admin-mode { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.profile-dropdown { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-family: inherit; }
.profile-trigger:hover { background: var(--surface-2); }
.pf-icon { color: var(--muted); }
.profile-name { font-size: 13.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { font-size: 11px; color: var(--muted); }
.dropdown-content { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.12); z-index: 60; }
.profile-dropdown.open .dropdown-content { display: block; }
.dropdown-content .user-name { padding: 6px 8px; font-size: 13.5px; color: var(--text); }
.dropdown-content .user-name .small { font-size: 11px; color: var(--muted); font-weight: 400; }
.dropdown-content hr { border: none; border-top: 1px solid var(--border-soft); margin: 6px 0; }
.dropdown-content a { display: block; padding: 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.dropdown-content a:hover { background: var(--surface-2); color: var(--accent); }

/* Impersonation + flash */
.impersonate-bar { display: flex; align-items: center; gap: 12px; justify-content: center; background: #7f1d1d; color: #fff; padding: 8px 16px; font-size: 13px; }
.impersonate-bar .imp-label strong { color: #ffd7d7; }
.flash { padding: 11px 18px; text-align: center; font-size: 13.5px; }
.flash-ok { background: var(--ok); color: #fff; }
.flash-err { background: var(--err); color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--border); background: #fff;
  color: var(--text); padding: 8px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 400; font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; text-align: center; display: block; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.icon-btn { width: 40px; padding: 8px 0; text-align: center; }

/* ---------------- Cards / lists ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card-title { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.profile-card { border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.profile-desc { margin: 0; color: var(--muted); }
.empty { color: var(--muted); }

/* Avatar (uses --p-color inline for profile accent) */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 500; flex-shrink: 0;
  background: var(--p-color, var(--accent));
}
.avatar.lg { width: 50px; height: 50px; font-size: 20px; }
.avatar.xs { width: 18px; height: 18px; font-size: 10px; display: inline-flex; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }

/* Chips / badges */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.ok { background: rgba(22,163,74,.15); color: #15803d; }
.badge.off { background: rgba(220,38,38,.15); color: #b91c1c; }

/* Stats (Dashboard) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0 22px; }
.stat-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card:hover { border-color: var(--accent); text-decoration: none; }
.stat-num { font-size: 30px; font-weight: 500; }
.stat-label { color: var(--muted); }
.stat-hint { color: var(--accent); margin-top: 6px; }

/* Session / file lists */
.session-list, .file-list { list-style: none; margin: 0; padding: 0; }
.session-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.session-list li:last-child { border-bottom: none; }
.session-list a { flex: 1; }
.file-list { max-height: 320px; overflow: auto; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.file-ico { flex-shrink: 0; }
.file-path { word-break: break-all; }
.session-list .delete-session { margin-left: auto; }

/* Activity page */
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); }
.activity-row:hover { background: var(--surface-2); text-decoration: none; }
.activity-body { flex: 1; min-width: 0; }
.activity-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activity-top strong { font-weight: 500; }

/* Member page */
.member-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.member-hero-text { flex: 1; }
.member-hero-text .page-title { margin: 0 0 2px; }
.back-link { font-size: 13px; color: var(--muted); }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.member-tools { margin-bottom: 12px; }
.last-commit { color: var(--muted); font-size: 13px; margin: 6px 0 2px; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 400; font-size: 12.5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=file], input[type=color], select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; outline: none;
}
select { appearance: auto; -webkit-appearance: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input[type=color] { height: 40px; padding: 3px; cursor: pointer; }
.field-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.theme-grid .field { flex: 1 1 140px; }
.theme-sub { margin: 14px 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Auth */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 360px; text-align: center; }
.auth-logo { margin-bottom: 10px; }
.auth-card h1 { margin: 6px 0 0; font-weight: 500; }

/* Table */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.table th { color: var(--muted); font-weight: 500; }
.th-actions { white-space: nowrap; }
.th-actions form.inline-form { display: inline-block; }
.inline-form { display: inline; }
.inline-panel td { background: var(--surface-2); }
.panel-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-form input { flex: 1 1 150px; }
.add-user { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 16px; }
.add-user input { flex: 1 1 150px; }
.checkline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.checkline input { width: auto; }
.chip-check { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(20,25,35,.5); align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.modal-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 460px; width: 100%; position: relative; max-height: 85vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.card.narrow { max-width: 520px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 14px 20px; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; background: var(--surface); margin-top: auto; }

/* Page titles */
.page-title { margin: 4px 0 2px; font-size: 22px; font-weight: 500; }

/* ============================================================
   HOME — Teams-style 3-pane chat
   ============================================================ */
.home-body { overflow: hidden; }
.home-body .footer { display: none; }
.home-body .topbar { z-index: 45; }
.home-wrap { flex: 1 1 auto; width: 100%; max-width: none; margin: 0; padding: 0; display: flex; min-height: 0; }

.app-shell { flex: 1 1 auto; display: flex; width: 100%; height: calc(100vh - 54px); min-height: 0; }

/* Non-home pages: persistent left menu + scrollable content pane (0b) */
.app-shell .pane-content {
  flex: 1 1 auto; min-width: 0; overflow-y: auto; height: 100%;
  max-width: none !important; margin: 0; padding: 22px clamp(14px, 2.5vw, 34px) 40px; align-self: stretch;
}

/* LEFT pane: menu (5%) */
.app-menu {
  width: 5%; min-width: 54px; background: var(--pane-menu); border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; flex-shrink: 0;
}
.menu-btn {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 19px; transition: .15s;
}
.menu-btn:hover { background: rgba(0,0,0,.06); text-decoration: none; }
.menu-btn.active { background: var(--accent-soft); color: var(--accent); }
.menu-ico { line-height: 1; }
.app-menu .menu-spacer { flex: 1; }

/* MIDDLE pane: user list (20%) */
.app-userlist {
  width: 20%; min-width: 240px; max-width: 320px; background: var(--pane-list); border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; flex-shrink: 0; min-height: 0;
}
.ul-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; flex-shrink: 0; }
.ul-header h2 { margin: 0; font-size: 18px; font-weight: 500; }
.ul-new {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--accent); color: #fff;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s;
}
.ul-new:hover { background: #1d4ed8; }
.ul-sections { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 0 10px; }
.ul-section { margin-top: 2px; }
.ul-label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none;
  padding: 6px 6px 2px 16px;
}
.ul-label { padding: 2px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); flex: 1; }
.ul-chev {
  border: none; background: transparent; color: var(--muted); font-size: 13px; line-height: 1;
  padding: 3px 9px; border-radius: 6px; cursor: pointer; transition: transform .18s ease, color .15s;
}
.ul-chev:hover { background: rgba(0,0,0,.06); color: var(--text); }
.ul-chev:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ul-section.collapsed .ul-body { display: none; }
.ul-section.collapsed .ul-chev { transform: rotate(-90deg); }
.ul-body { padding: 0 0 4px; }
.ul-empty { padding: 6px 16px; color: var(--muted); font-size: 12.5px; }
.ul-showall {
  display: block; width: calc(100% - 24px); margin: 6px 12px 2px; padding: 6px;
  border: 1px dashed var(--border); background: transparent; color: var(--muted); border-radius: 8px;
  font-size: 12.5px; cursor: pointer; font-family: inherit; transition: .15s;
}
.ul-showall:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.recent-more { padding: 0; }
.recent-more[hidden] { display: none !important; }

/* Workspaces rows (sidebar) - squircle tone avatars + mini member stack */
.ws-row-wrap { position: relative; }
.ws-row { padding-right: 6px; }
.ws-avatar { border-radius: 8px; }                 /* distinct squircle vs round profile avatars */
.ws-members { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: 6px; }
.ws-mini { margin-left: -5px; border: 1.5px solid var(--pane-list); }
.ws-mini:first-child { margin-left: 0; }
.ws-more { font-size: 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 0 5px; margin-left: 4px; font-weight: 500; }
.ws-del {
  flex-shrink: 0; font-size: 12px; opacity: 0; cursor: pointer; transition: .15s;
  background: transparent; border: none; color: var(--err); padding: 4px; line-height: 1; border-radius: 6px;
}
.ws-row-wrap:hover .ws-del { opacity: .85; }
.ws-del:hover { opacity: 1; background: rgba(220,38,38,.10); color: var(--err); }

/* Workspace chat header: member avatar stack + click-to-expand info card */
.ws-head-wrap { position: relative; margin-left: 12px; display: inline-flex; align-items: center; }
.ws-head-avs { display: inline-flex; align-items: center; }
.ws-head-av {
  display: inline-flex; align-items: center; justify-content: center; appearance: none; cursor: pointer;
  background: none; border: 1.5px solid var(--pane-list); border-radius: 999px; padding: 0; margin: 0;
  width: 34px; height: 34px; transition: transform .15s, border-color .15s;
}
.ws-head-av + .ws-head-av { margin-left: -8px; }
.ws-head-av:hover { transform: translateY(-2px); border-color: var(--accent); z-index: 2; }
.ws-head-av .avatar { width: 28px; height: 28px; font-size: 13px; }
.ws-head-card {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 210px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-2, #1b2032); color: var(--text, #e7e9f4);
  border: 1px solid var(--border-soft, #2a3050); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ws-head-card[hidden] { display: none; }
.ws-head-card .avatar { flex-shrink: 0; width: 34px; height: 34px; font-size: 15px; }
.wsc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wsc-txt b { font-size: 14px; line-height: 1.2; }
.wsc-role { font-size: 12px; color: var(--muted, #9aa3c0); line-height: 1.2; }

/* Workspace Members modal */
.ws-members-card { max-width: 420px; width: 100%; }
.ws-modal-x {
  position: absolute; top: 10px; right: 12px; background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted, #9aa3c0); padding: 2px 6px; border-radius: 6px;
}
.ws-modal-x:hover { color: var(--text, #e7e9f4); background: rgba(255,255,255,.06); }
.ws-mem-list-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #9aa3c0); margin: 14px 0 6px; }
.ws-mem-list, .ws-add-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.ws-mem-item, .ws-add-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.ws-mem-item:hover, .ws-add-item:hover { background: rgba(255,255,255,.06); }
.ws-mem-name { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; font-size: 14px; }
.ws-mem-del {
  appearance: none; cursor: pointer; background: none; border: none; color: var(--err, #ef6b6b);
  font-size: 14px; padding: 4px 6px; border-radius: 6px; line-height: 1;
}
.ws-mem-del:hover { background: rgba(220,38,38,.12); }
.ws-add-btn {
  appearance: none; cursor: pointer; flex-shrink: 0; font-size: 13px; font-weight: 600;
  color: #22c55e; background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.25); border-radius: 999px; padding: 4px 12px;
}
.ws-add-btn:hover { background: rgba(34,197,94,.18); }
.ws-add-search {
  width: 100%; padding: 9px 12px; font-size: 14px; margin: 4px 0 8px;
  background: var(--surface-1, #151929); color: var(--text, #e7e9f4); border: 1px solid var(--border-soft, #2a3050); border-radius: 8px;
}
.ws-add-search:focus { outline: none; border-color: var(--accent, #6d28d9); }
.ws-member-sel {
  appearance: none; cursor: pointer; padding: 8px 10px; font-size: 13px; border-radius: 8px;
  background: var(--surface-1, #151929); color: var(--text, #e7e9f4); border: 1px solid var(--border-soft, #2a3050); min-width: 120px;
}
.ws-none-members { padding: 4px 2px; }

.chat-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; position: relative; color: var(--text);
  border-left: 3px solid transparent;
}
.chat-row-wrap { position: relative; }
.chat-row:hover { background: rgba(0,0,0,.04); text-decoration: none; }
.chat-row-wrap.active .chat-row { background: var(--accent-soft); border-left-color: var(--accent); }
.chat-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-row-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.chat-row-msg { font-size: 12.5px; color: var(--muted); }
.chat-row.active .chat-row-msg { color: var(--muted); }
.chat-row-pin {
  position: absolute; right: 8px; top: 8px; font-size: 12px; opacity: 0; cursor: pointer; transition: .15s; z-index: 2;
}
.chat-row:hover .chat-row-pin { opacity: .7; }
.chat-row-pin:hover { opacity: 1; transform: scale(1.15); }
.chat-row-pin[data-pinned="1"] { opacity: .8; }
/* delete button on the chat list row (hover) */
.chat-row-del {
  position: absolute; right: 8px; top: 26px; font-size: 12px; opacity: 0; cursor: pointer; transition: .15s;
  background: transparent; border: none; color: var(--err); padding: 0; line-height: 1; z-index: 3;
}
.chat-row-wrap:hover .chat-row-del { opacity: .8; }
.chat-row-del:hover { opacity: 1; transform: scale(1.15); }

.ul-group {
  margin: 8px 12px 14px; padding: 9px; border: 1px dashed var(--border); border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.ul-group:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* RIGHT pane: chat (rest) */
.app-chat { flex: 1 1 auto; background: var(--pane-chat); display: flex; flex-direction: column; min-width: 0; position: relative; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px; }
.chat-empty h1 { font-size: 20px; font-weight: 500; margin: 0; }
.ce-ico { font-size: 44px; opacity: .4; }

/* New-chat popover */
.newchat-pop {
  position: absolute; top: 58px; left: 16px; width: 300px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14); z-index: 70; overflow: hidden;
}
.newchat-head { padding: 12px 14px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--border-soft); }
.newchat-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text); }
.newchat-row:hover { background: var(--accent-soft); text-decoration: none; }
.newchat-name { font-size: 13.5px; }
.newchat-empty { padding: 12px 14px; }

/* ============================================================
   CHAT window (shared partial, used in standalone + home pane)
   ============================================================ */
.standalone-chat { flex: 1 0 auto; width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px; display: flex; }
.standalone-chat .chat-layout { flex: 1; }

.chat-layout { flex: 1 1 auto; display: flex; min-height: 0; }
.app-chat .chat-layout { height: 100%; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-main[hidden], .chat-files[hidden], .fm-editor[hidden] { display: none !important; }

.chat-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,.65); border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-avatar { width: 34px; height: 34px; }
.chat-head-text h1 { margin: 0; font-size: 16px; font-weight: 500; }
.chat-header-right { display: flex; align-items: center; gap: 8px; }

.messages { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 18px clamp(12px, 3vw, 42px) 12px; min-height: 0; }
.message { display: flex; flex-direction: column; max-width: 100%; position: relative; }
.message.user { align-self: flex-end; align-items: flex-end; max-width: 70%; }
.message.agent, .message.system { align-self: flex-start; align-items: flex-start; max-width: 100%; }
.msg-meta { font-size: 10.5px; color: #a0a6b0; padding: 0 6px 3px; }
.bubble {
  padding: 9px 14px; border-radius: 12px; white-space: pre-wrap; word-break: break-word;
  line-height: 1.5; font-size: inherit;
}
.message.user .bubble { background: var(--bubble-user); color: #12203a; border-bottom-right-radius: 3px; }
.message.agent.done .bubble { background: var(--bubble-agent); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.message.system .bubble { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-size: 12.5px; }

/* Copy buttons */
.copy-btn {
  position: absolute; top: 24px; right: 6px; width: 24px; height: 24px; padding: 0; line-height: 1; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease;
}
.message:hover .copy-btn, .copy-btn:focus-visible { opacity: .8; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-chat-btn {
  padding: 6px 12px; font-size: 12.5px; white-space: nowrap;
  border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; cursor: pointer; font-family: inherit;
}
.copy-chat-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Composer (sticky bottom) */
.composer { position: sticky; bottom: 0; z-index: 30; background: var(--pane-chat); padding: 10px 16px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; flex-shrink: 0; border-top: 1px solid var(--border-soft); }
.composer textarea {
  flex: 1 1 240px; min-width: 0; resize: vertical; min-height: 42px; max-height: 160px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 13.5px; outline: none;
  transition: min-height .15s ease, height .15s ease;
}
.composer textarea:focus { border-color: var(--accent); }
.composer.compact textarea { min-height: 0; height: 40px; }
.composer #stop-btn { display: none; border-color: var(--err); color: var(--err); }
.composer #stop-btn:hover { background: var(--err); color: #fff; }

/* Thinking card + live log */
.think-card {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
  padding: 11px 14px; border-left: 3px solid var(--accent);
}
.think-row { display: flex; align-items: center; gap: 12px; }
.spinner {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent); animation: fact-spin .8s linear infinite;
}
@keyframes fact-spin { to { transform: rotate(360deg); } }
.think-msg { color: var(--text); font-weight: 400; }
.think-model-chip { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.think-status { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.think-status .think-model-name { color: var(--text); }
.think-status .think-elapsed { color: var(--accent); font-variant-numeric: tabular-nums; }

.log-pane { width: 100%; margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; background: #0f1720; overflow: hidden; display: block; }
.log-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; color: #c7d2e0; background: #1a2532; }
.log-title { font-weight: 400; letter-spacing: .02em; }
.log-toggle { background: #0f1720; border: 1px solid #2b3b4d; color: #c7d2e0; padding: 2px 9px; border-radius: 6px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.log-toggle:hover { border-color: var(--accent); }
.log-body { margin: 0; padding: 8px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.45; color: #b9c8e4; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 150px; }
.log-pane.expanded .log-body { max-height: 2300px; }

/* ============================================================
   Markdown AI replies
   ============================================================ */
.bubble.md { white-space: normal; }
.md-content { line-height: 1.55; font-size: inherit; }
.md-content > :first-child { margin-top: 0; }
.md-content > :last-child { margin-bottom: 0; }
.md-content p { margin: 0 0 10px; }
.md-content h1, .md-content h2, .md-content h3, .md-content h4 { margin: 15px 0 8px; line-height: 1.3; font-weight: 500; }
.md-content h1 { font-size: 19px; }
.md-content h2 { font-size: 16px; }
.md-content h3 { font-size: 14.5px; }
.md-content ul, .md-content ol { margin: 0 0 10px; padding-left: 22px; }
.md-content li { margin: 3px 0; }
.md-content blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--muted); }
.md-content a { color: var(--accent); text-decoration: underline; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.md-content code { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; color: #23518f; }
.md-content table { border-collapse: collapse; margin: 0 0 12px; width: 100%; }
.md-content th, .md-content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.md-content th { background: var(--surface-2); }
.md-code-wrap { position: relative; margin: 0 0 12px; }
.md-code-wrap pre { margin: 0; }
.md-content pre { background: #0f1720; color: #c7d5ef; border: none; border-radius: 10px; padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.55; }
.md-content pre code { background: transparent; border: none; padding: 0; font-size: inherit; color: inherit; }
.md-copy-code { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid #2b3b4d; background: #1a2532; color: #c7d2e0; border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .15s ease; font-size: 12px; }
.md-code-wrap:hover .md-copy-code, .md-copy-code:focus-visible { opacity: 1; }
.md-copy-code:hover { color: var(--accent); }

/* Assets modal */
.assets-modal { width: 940px; max-width: 96vw; }
.asset-preview-wrap { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface-2); }
.asset-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; font-size: 13px; }
.asset-file-name { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
pre.asset-preview { margin: 0; padding: 12px; background: #0f1720; color: #c7d5ef; font-size: 12px; line-height: 1.55; max-height: 58vh; overflow: auto; white-space: pre-wrap; word-break: break-word; }
#asset-list li { cursor: pointer; }
#asset-list li:hover { background: var(--surface-2); }

/* Settings accordion */
.tabs { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-link { padding: 8px 16px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; }
.tab-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-pane > .card { margin-bottom: 16px; }
.profile-edit { margin-bottom: 18px; }
.profile-form .field { margin-bottom: 10px; }
.profile-form .field textarea { width: 100%; }
.profile-summary { cursor: pointer; }
.profile-summary:hover td { background: var(--surface-2); }
.profile-summary td, .profile-detail td { vertical-align: middle; }
.profile-detail .profile-edit { margin: 8px 0; padding: 18px 20px; }

/* Responsive fallbacks for non-home pages */
@media (max-width: 860px) {
  .member-grid, .two-col { grid-template-columns: 1fr; }
  .standalone-chat { padding: 10px; }
  .team-search { max-width: 220px; }
}
@media (max-width: 680px) {
  .profile-name { display: none; }
  .team-search { display: none; }
  .app-userlist { min-width: 200px; }
}
/* Chat analytics modal */
.analytics-modal { width: 680px; max-width: 96vw; }
.analytics-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 10px; margin: 14px 0 6px; }
.an-card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px; text-align: center; }
.an-num { font-size: 20px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.an-lab { font-size: 11px; color: var(--muted); margin-top: 2px; }
.an-tabs { display: flex; gap: 6px; margin: 12px 0 8px; }
.an-tab { padding: 5px 14px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 999px; cursor: pointer; font-size: 12.5px; font-family: inherit; }
.an-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.an-table { margin-top: 4px; }

/* ============================================================
   Workspace FILE MANAGER + chat attachments
   ============================================================ */
.chat-files { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.files-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,.6); border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.fm-spacer { flex: 1; }
.fm-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.copy-chat-btn.danger { color: var(--err); border-color: var(--err); }
.copy-chat-btn.danger:hover { background: var(--err); color: #fff; }
.copy-chat-btn.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.copy-chat-btn.fm-select.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.files-body { flex: 1 1 auto; display: flex; min-height: 0; }
.files-tree { width: 38%; min-width: 220px; max-width: 420px; overflow: auto; border-right: 1px solid var(--border-soft); padding: 8px 4px; background: rgba(255,255,255,.4); }
.files-preview { flex: 1 1 auto; overflow: auto; padding: 16px; background: var(--surface); }
.fp-empty { padding: 20px; color: var(--muted); }
.fp-empty.err { color: var(--err); }
.fp-loading { color: var(--muted); }
.fp-img { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }
.fp-frame { width: 100%; height: 100%; min-height: 400px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.fp-code { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 8px; padding: 14px; overflow: auto; font-size: 12.5px; line-height: 1.55; white-space: pre; }
.fp-md { font-size: 14px; }
/* Collabora (WOPI) office preview + the read-only PDF fallback notice */
.fp-note { background: #fff7e6; border: 1px solid #f2c94c; color: #7a5b00; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; line-height: 1.45; }
.collabora-frame { min-height: 520px; }

.ftree { list-style: none; margin: 0; padding: 0; }
.fnode { margin: 0; }
.frow { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.frow:hover { background: rgba(0,0,0,.04); }
.frow.sel { background: var(--bubble-user); }
.up-row { color: var(--accent); cursor: pointer; border-bottom: 1px dashed var(--border-soft); margin-bottom: 4px; }
.up-name { font-style: italic; }
.fcaret { width: 12px; color: var(--muted); font-size: 10px; flex-shrink: 0; }
.fico { flex-shrink: 0; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcheck { margin: 0 4px 0 0; accent-color: var(--accent); }

.fm-editor { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--border-soft); }
.fm-editor-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface-2); }
#fm-editor-content { flex: 1; min-height: 260px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; padding: 14px; border: none; outline: none; resize: none; color: var(--text); background: #fff; }

/* syntax highlight */
.h-kw { color: #7c3aed; font-weight: 500; }
.h-str { color: #0a7a2f; }
.h-com { color: #8a919c; font-style: italic; }

/* attachment chips under composer */
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; order: -1; padding: 4px 2px 6px; }
.attach-row[hidden] { display: none !important; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; font-size: 12px; }
.attach-chip .aco { flex-shrink: 0; }
.attach-chip .anm { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip .ax { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px; }
.attach-chip .ax:hover { color: var(--err); }

/* settings: inline checkbox row (chat features, etc.) */
.checkbox-inline { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.checkbox-inline input[type=checkbox] { width: auto; margin: 0; accent-color: var(--accent); }

/* file preview tabs (Preview | Code View) */
.fp-tabs { display: flex; gap: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); padding-bottom: 6px; }
.fp-tab { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 8px 8px 0 0; padding: 6px 14px; font-size: 13px; cursor: pointer; margin: 0; }
.fp-tab:hover { border-color: var(--accent); color: var(--accent); }
.fp-tab.active { background: #fff; border-color: var(--accent); color: var(--accent); font-weight: 500; }
.fp-tab-body { flex: 1 1 auto; min-height: 0; display: flex; }
.fp-tab-body .fp-frame, .fp-tab-body .fp-code, .fp-tab-body .md-content { width: 100%; }

/* file preview full width (true fullscreen): the preview body fills the whole
   app area. Hide topbar, user-list pane, files toolbar, tree and tabs — only the
   rendered preview shows. Left menu (pane 1) stays visible. */
.fm-exit-full { display: none; }
body.files-full .fm-exit-full { display: flex; color: var(--accent); }
body.files-full .topbar { display: none; }
body.files-full .app-userlist { display: none; }
body.files-full .files-toolbar { display: none; }
body.files-full .files-tree { display: none; }
body.files-full .fp-tabs { display: none; }
body.files-full .files-preview { flex: 1 1 100%; max-width: 100%; height: 100%; border: none; }
body.files-full .files-body { display: block; }
body.files-full .fp-tab-body { flex: 1 1 auto; min-height: 0; display: flex; height: 100%; }
body.files-full .fp-frame { min-height: 0; height: 100%; border: none; }
body.files-full .files-preview .md-content { width: 100%; height: 100%; overflow: auto; }
body.files-full .fm-editor, body.files-full .fm-editor-head { display: none; }
/* the app-shell still occupies viewport below topbar; since topbar is hidden,
   give the shell 100vh so the preview truly fills the screen */
body.files-full .app-shell { height: 100vh; }

/* delete-chat confirmation modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,25,35,.45); z-index: 85; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.del-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.del-card h3 { margin: 0 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* upload modal: mini folder tree (folders only, selectable) */
.upload-tree { border: 1px solid var(--border); border-radius: 8px; max-height: 180px; overflow: auto; padding: 6px; background: var(--surface); margin: 2px 0 10px; }
.upload-tree .uproot { font-size: 12px; color: var(--accent); padding: 4px 6px; cursor: pointer; border-bottom: 1px dashed var(--border-soft); }
.upload-tree .uproot:hover { background: var(--accent-soft); }
.upload-tree .ufile { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.upload-tree .ufile:hover { background: rgba(0,0,0,.04); }
.upload-tree .ufile.selected { background: var(--bubble-user); }
.up-folder-label { display: block; font-weight: 500; margin: 2px 0 4px; font-size: 13px; }
.upload-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; font-size: 12.5px; margin: 0 0 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2, #fbfbfd); }
.uc-seg { cursor: pointer; padding: 1px 5px; border-radius: 5px; color: var(--accent); }
.uc-seg:hover { background: var(--accent-soft); }
.uc-seg.uc-here { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.uc-sep { color: var(--muted); }
.uc-hint { margin-left: auto; color: var(--muted); font-style: italic; }
.uploader input[type=file] { margin: 4px 0 10px; }

/* create-new-file modal */
.cf-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.cf-type { border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 12px 6px; font-size: 12.5px; cursor: pointer; text-align: center; transition: .12s; }
.cf-type:hover { border-color: var(--accent); }
.cf-type.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.cf-name-row { margin-top: 4px; }
.cf-name-wrap { display: flex; align-items: center; gap: 6px; }
.cf-name-wrap input { flex: 1; }
.cf-ext { font-weight: 600; color: var(--muted); min-width: 42px; text-align: left; }

/* tree row: hover delete icon (files & folders) */
.frow .fdel { opacity: 0; margin-left: auto; cursor: pointer; font-size: 13px; padding: 0 2px; border-radius: 4px; transition: opacity .12s; }
.frow:hover .fdel { opacity: .7; }
.frow .fdel:hover { opacity: 1; background: var(--accent-soft); }

/* delete-file/folder confirm modal */
.del-card { background: var(--bubble-agent, #fff); border-radius: 12px; max-width: 440px; width: 100%; box-shadow: 0 12px 34px rgba(0,0,0,.25); padding: 18px 22px; }
.del-card h3 { margin: 0 0 8px; }
.del-card .del-warn { display: flex; gap: 8px; background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: #b91c1c; border-radius: 8px; padding: 9px 11px; margin: 6px 0 12px; font-size: 13px; }
.del-card .del-path { font-weight: 600; word-break: break-all; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.modal-actions .btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.modal-actions .btn-danger:hover { background: #b91c1c; }

/* chat header: model info chip + expandable panel */
.model-chip { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 3px 4px; border-radius: 6px; }
.model-chip:hover { background: var(--accent-soft); color: var(--text); }
.model-chip .model-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.model-chip .model-caret { font-size: 9px; opacity: .7; }
.model-panel { margin-top: 6px; background: var(--bubble-agent, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.12); width: 300px; }
.model-panel .mp-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.model-panel .mp-lab { color: var(--muted); }
.model-panel .mp-note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 11.5px; }
