:root {
  --livia-sidebar-width: 272px;
  --livia-sidebar-bg: #f7f7f5;
  --livia-sidebar-text: #252623;
  --livia-sidebar-muted: #858780;
  --livia-sidebar-hover: #ecece9;
  --livia-sidebar-selected: #e3e3df;
  --livia-sidebar-line: #e2e2de;
}

.livia-sidebar[hidden], .livia-sidebar-backdrop[hidden], .livia-sidebar-context[hidden],
.livia-sidebar-results[hidden], .livia-sidebar-tree[hidden] { display: none !important; }

.livia-sidebar {
  position: fixed;
  z-index: 2400;
  inset: 0 auto 0 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--livia-sidebar-width);
  min-height: 100dvh;
  overflow: hidden;
  color: var(--livia-sidebar-text);
  background: var(--livia-sidebar-bg);
  border-right: 1px solid var(--livia-sidebar-line);
  box-shadow: 8px 0 22px rgb(24 25 22 / 3%);
  font: 400 13px/1.35 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
  animation: livia-sidebar-in 140ms cubic-bezier(.2, .72, .3, 1) both;
}
.livia-sidebar *, .livia-sidebar *::before, .livia-sidebar *::after { box-sizing: border-box; }
.livia-sidebar button, .livia-sidebar input { font: inherit; }
.livia-sidebar button, .livia-sidebar a { -webkit-tap-highlight-color: transparent; }
.livia-sidebar svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

@keyframes livia-sidebar-in {
  from { opacity: .45; transform: translateX(-7px); }
  to { opacity: 1; transform: translateX(0); }
}

.livia-sidebar-head { padding: 8px 8px 5px; }
.livia-sidebar-titlebar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 3px;
  color: #1f201e;
}
.livia-sidebar-mark { display: grid; place-items: center; width: 24px; height: 24px; }
.livia-sidebar-mark img { display: block; width: 20px; height: 20px; object-fit: contain; }
.livia-sidebar-mark.has-workspace-image img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.livia-sidebar-workspace-name { overflow: hidden; font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.livia-sidebar-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #74776f; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.livia-sidebar-close:hover { color: #292a27; background: var(--livia-sidebar-hover); }
.livia-sidebar-close svg { width: 14px; height: 14px; }

.livia-sidebar-search {
  display: flex;
  align-items: center;
  height: 34px;
  margin: 6px 1px 7px;
  color: #73766f;
  background: #fff;
  border: 1px solid #deded9;
  border-radius: 6px;
  transition: border-color 100ms ease, box-shadow 100ms ease;
}
.livia-sidebar-search:focus-within { border-color: #aeb0aa; box-shadow: 0 0 0 2px rgb(36 37 34 / 5%); }
.livia-sidebar-search > svg { width: 15px; height: 15px; margin-left: 9px; }
.livia-sidebar-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 9px 0 7px;
  color: #292a27;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 12px;
}
.livia-sidebar-search input::placeholder { color: #969892; }
.livia-sidebar-search input::-webkit-search-cancel-button { opacity: .45; }

.livia-sidebar-shortcuts { display: flex; align-items: center; gap: 3px; min-height: 32px; padding: 0 1px; }
.livia-sidebar-shortcut {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  gap: 6px;
  padding: 0;
  color: #73766f;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: width 100ms ease, color 100ms ease, background 100ms ease;
}
.livia-sidebar-shortcut:hover:not(:disabled) { color: #272825; background: var(--livia-sidebar-hover); }
.livia-sidebar-shortcut:disabled { opacity: .38; cursor: default; }
.livia-sidebar-shortcut:nth-child(4) { margin-left: auto; }
.livia-sidebar-shortcut svg { width: 16px; height: 16px; }
.livia-sidebar-shortcut.is-active { width: auto; padding: 0 9px; color: #292a27; background: var(--livia-sidebar-selected); }
.livia-sidebar-shortcut-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.livia-sidebar-shortcut.is-active::after { display: none; }
.livia-sidebar-shortcut[data-tooltip]::after {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  left: 50%;
  padding: 4px 6px;
  color: #fff;
  background: #262724;
  border-radius: 4px;
  content: attr(data-tooltip);
  font-size: 9px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition: opacity 90ms ease, transform 90ms ease;
  white-space: nowrap;
}
.livia-sidebar-shortcut:hover::after, .livia-sidebar-shortcut:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.livia-sidebar-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 7px 16px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transition: opacity 100ms ease, transform 100ms ease;
}
.livia-sidebar-scroll::-webkit-scrollbar { display: none; }
.livia-sidebar.is-switching .livia-sidebar-scroll, .livia-sidebar.is-switching .livia-sidebar-foot { opacity: .25; transform: translateY(2px); }

.livia-sidebar-context-title {
  height: 27px;
  padding: 9px 8px 0;
  color: #92948d;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.livia-sidebar-favorites { margin-bottom: 7px; }
.livia-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  padding: 0 7px 0 3px;
  color: #5d6059;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 560;
}
.livia-sidebar-section-title:hover { background: var(--livia-sidebar-hover); }
.livia-sidebar-section-title > svg { width: 14px; height: 14px; }
.livia-sidebar-section-title > small { margin-left: auto; color: #9b9d97; font-size: 9px; font-weight: 500; }
.livia-sidebar-chevron { display: grid; place-items: center; width: 13px; }
.livia-sidebar-chevron svg { width: 10px !important; height: 10px !important; transition: transform 100ms ease; }
.livia-sidebar-section-title[aria-expanded="true"] .livia-sidebar-chevron svg,
.livia-sidebar-menu-toggle[aria-expanded="true"] .livia-sidebar-chevron svg { transform: rotate(90deg); }
.livia-sidebar-section-empty, .livia-sidebar-menu-empty { margin: 2px 8px 7px 33px; color: #a0a29c; font-size: 10px; line-height: 1.35; }

.livia-sidebar-menu { margin-bottom: 1px; }
.livia-sidebar-row { position: relative; display: flex; align-items: center; min-height: 30px; border-radius: 6px; }
.livia-sidebar-row:hover { background: var(--livia-sidebar-hover); }
.livia-sidebar-row.is-active, .livia-sidebar-menu-row.is-current-menu { background: var(--livia-sidebar-selected); }
.livia-sidebar-link {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 30px;
  flex: 1;
  gap: 7px;
  padding: 0 6px 0 24px;
  color: #3f413c;
  text-decoration: none;
  cursor: pointer;
}
.livia-sidebar-row.is-compact .livia-sidebar-link { padding-left: 6px; }
.livia-sidebar-link small { overflow: hidden; color: #a0a29c; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.livia-sidebar-label { overflow: hidden; min-width: 0; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.livia-sidebar-type-icon { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; color: #7d8079; }
.livia-sidebar-type-icon svg { width: 14px; height: 14px; }
.livia-sidebar-menu-appearance-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--menu-icon-color, #f2f2f2);
  color: #30322e;
}
.livia-sidebar-menu-appearance-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.livia-sidebar-row-actions { display: flex; align-items: center; gap: 1px; padding-right: 2px; opacity: 0; pointer-events: none; }
.livia-sidebar-row:hover .livia-sidebar-row-actions, .livia-sidebar-row:focus-within .livia-sidebar-row-actions { opacity: 1; pointer-events: auto; }
.livia-sidebar-row-action {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #777a73;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.livia-sidebar-row-action:hover { color: #242522; background: #d8d8d4; }
.livia-sidebar-row-action svg { width: 13px; height: 13px; }
.livia-sidebar-favorite[aria-pressed="true"], .livia-sidebar-row-action[aria-pressed="true"] { color: #a77e00; }
.livia-sidebar-favorite[aria-pressed="true"] svg, .livia-sidebar-row-action[aria-pressed="true"] svg { fill: #f2c94c; stroke: #9a7400; }

.livia-sidebar-menu-row { min-height: 31px; }
.livia-sidebar-menu-toggle {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 31px;
  flex: 1;
  gap: 5px;
  padding: 0 3px;
  color: #343632;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 560;
}
.livia-sidebar-menu-content { position: relative; margin-left: 11px; padding-left: 3px; }
.livia-sidebar-menu-content::before { position: absolute; inset: 2px auto 4px 4px; width: 1px; background: #deded9; content: ""; }
.livia-sidebar-group-row .livia-sidebar-menu-toggle { padding-left: 1px; color: #696c65; font-weight: 520; }
.livia-sidebar-group-more { margin-left: auto; margin-right: 2px; opacity: 0; }
.livia-sidebar-group-row:hover .livia-sidebar-group-more, .livia-sidebar-group-row:focus-within .livia-sidebar-group-more { opacity: 1; }
.livia-sidebar-group-pages .livia-sidebar-link { padding-left: 43px; }

.livia-sidebar-add-page {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  margin-top: 2px;
  padding: 0 8px 0 25px;
  color: #5e615a;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -.01em;
}
.livia-sidebar-add-page:hover { color: #252623; background: var(--livia-sidebar-hover); }
.livia-sidebar-add-page svg { width: 15px; height: 15px; }

.livia-sidebar-empty { display: grid; justify-items: center; gap: 4px; padding: 28px 18px; color: #9a9c96; text-align: center; }
.livia-sidebar-empty svg { width: 20px; height: 20px; }
.livia-sidebar-empty strong { color: #666963; font-size: 11px; }
.livia-sidebar-empty span { max-width: 170px; font-size: 10px; line-height: 1.4; }

.livia-sidebar-section-panel {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px;
  color: #8b8d86;
  text-align: center;
}
.livia-sidebar-section-icon { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 8px; background: #ecece8; color: #555851; }
.livia-sidebar-section-icon svg { width: 17px; height: 17px; }
.livia-sidebar-section-panel strong { color: #454742; font-size: 12px; font-weight: 620; }
.livia-sidebar-section-panel p { max-width: 190px; margin: 0; font-size: 10px; line-height: 1.45; }
.livia-sidebar-section-panel small { margin-top: 4px; color: #a0a29b; font-size: 9px; }

.livia-chat-section { margin-bottom: 7px; }
.livia-chat-section-head { display: grid; grid-template-columns: minmax(0,1fr) 27px; align-items: center; min-height: 31px; }
.livia-chat-section-head > button:first-child { min-width: 0; height: 31px; display: flex; align-items: center; gap: 5px; padding: 0 5px 0 2px; border: 0; border-radius: 6px; background: transparent; color: #555852; cursor: pointer; text-align: left; }
.livia-chat-section-head > button:first-child:hover, .livia-chat-section-add:hover { background: var(--livia-sidebar-hover); }
.livia-chat-section-head strong { overflow: hidden; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.livia-chat-section-head small { margin-left: auto; color: #a0a29b; font-size: 8px; font-weight: 500; }
.livia-chat-section-add { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #7d8079; cursor: pointer; }
.livia-chat-section-add svg { width: 14px; height: 14px; }
.livia-chat-section-content { display: grid; gap: 1px; }
.livia-chat-row { position: relative; min-width: 0; min-height: 43px; display: flex; align-items: center; border-radius: 7px; }
.livia-chat-row:hover { background: var(--livia-sidebar-hover); }
.livia-chat-row.is-active { background: var(--livia-sidebar-selected); }
.livia-chat-link { min-width: 0; min-height: 43px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; flex: 1; padding: 4px 7px; color: #343632; text-decoration: none; }
.livia-chat-avatar { position: relative; width: 29px; height: 29px; display: grid; place-items: center; overflow: visible; border-radius: 50%; background: #e9e9e5; color: #60635c; font-size: 9px; font-weight: 650; }
.livia-chat-avatar > img { width: 100%; height: 100%; overflow: hidden; border-radius: inherit; object-fit: cover; }
.livia-chat-avatar.is-department { width: 29px; height: 29px; overflow: hidden; border-radius: 6px; background: #ecece8; color: #62655e; }
.livia-chat-avatar.is-department > svg { width: 15px; height: 15px; }
.livia-chat-presence { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border: 2px solid var(--livia-sidebar-bg); border-radius: 3px; background: var(--chat-presence, #989b94); }
.livia-chat-row:hover .livia-chat-presence, .livia-chat-row.is-active .livia-chat-presence { border-color: var(--livia-sidebar-hover); }
.livia-chat-row.is-active .livia-chat-presence { border-color: var(--livia-sidebar-selected); }
.livia-chat-avatar-stack { display: flex; align-items: center; padding-left: 5px; }
.livia-chat-avatar-stack > span { width: 21px; height: 21px; display: grid; place-items: center; overflow: hidden; margin-left: -7px; border: 2px solid var(--livia-sidebar-bg); border-radius: 50%; background: #e8e8e4; color: #64675f; font-size: 7px; }
.livia-chat-row:hover .livia-chat-avatar-stack > span { border-color: var(--livia-sidebar-hover); }
.livia-chat-row.is-active .livia-chat-avatar-stack > span { border-color: var(--livia-sidebar-selected); }
.livia-chat-avatar-stack img { width: 100%; height: 100%; object-fit: cover; }
.livia-chat-row-copy { min-width: 0; }
.livia-chat-row-copy strong, .livia-chat-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-chat-row-copy strong { color: #3a3c37; font-size: 10.5px; font-weight: 580; }
.livia-chat-row-copy small { margin-top: 2px; color: #989a94; font-size: 8px; }
.livia-chat-row-meta { display: flex; align-items: center; gap: 4px; padding-right: 1px; }
.livia-chat-row-meta b { min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border-radius: 8px; background: #3f413c; color: #fff; font-size: 7px; font-weight: 600; }
.livia-chat-muted { color: #9a9c96; font-size: 10px; font-style: normal; }
.livia-chat-more { position: absolute; right: 4px; width: 25px; height: 25px; display: none; place-items: center; padding: 0; border: 0; border-radius: 5px; background: var(--livia-sidebar-hover); color: #74776f; cursor: pointer; }
.livia-chat-row:hover .livia-chat-more, .livia-chat-row:focus-within .livia-chat-more { display: grid; }
.livia-chat-row.is-active .livia-chat-more { background: var(--livia-sidebar-selected); }
.livia-chat-more:hover { color: #292a27; background: #d9d9d5 !important; }
.livia-chat-more svg { width: 13px; height: 13px; }
.livia-chat-section-empty { margin: 4px 8px 9px 27px; color: #9c9e98; font-size: 9px; line-height: 1.45; }

.livia-sidebar-context.is-chat { width: 224px; gap: 1px; padding: 6px; border: 0; border-radius: 10px; box-shadow: 0 16px 42px rgb(24 25 22 / 15%), 0 2px 7px rgb(24 25 22 / 6%); }
.livia-sidebar-context.is-chat .livia-chat-menu-title { min-height: 29px; display: flex; align-items: center; padding: 0 7px; color: #898b85; font-size: 9px; font-weight: 600; }
.livia-sidebar-context.is-chat button { min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; padding: 5px 7px; border-radius: 7px; }
.livia-sidebar-context.is-chat button:has(.livia-chat-picker-avatar) { grid-template-columns: 28px minmax(0,1fr); gap: 8px; }
.livia-sidebar-context.is-chat button strong, .livia-sidebar-context.is-chat button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-sidebar-context.is-chat button strong { color: #383a35; font-size: 10px; font-weight: 600; }
.livia-sidebar-context.is-chat button small { margin-top: 2px; color: #979993; font-size: 8px; }
.livia-chat-picker-avatar { width: 27px; height: 27px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #ebebe7; color: #60635c; font-size: 8px; font-weight: 650; }
.livia-chat-picker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.livia-sidebar-context.is-chat-editor { width: 252px; max-height: min(520px, calc(100vh - 16px)); overflow: hidden; }
.livia-chat-field { display: grid; gap: 4px; padding: 2px 7px 8px; color: #898b85; font-size: 9px; }
.livia-chat-field input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #deded9; border-radius: 6px; outline: 0; background: #fff; color: #292a27; font-size: 11px; }
.livia-chat-field input:focus { border-color: #aaa; box-shadow: 0 0 0 2px rgb(40 41 37 / 5%); }
.livia-chat-field-label { display: block; padding: 3px 7px 5px; color: #898b85; font-size: 9px; font-weight: 600; }
.livia-chat-icon-grid { display: grid; grid-template-columns: repeat(4, 34px); gap: 5px; padding: 0 7px 8px; }
.livia-sidebar-context.is-chat .livia-chat-icon-grid .livia-chat-icon-choice { min-height: 34px; display: grid; grid-template-columns: 1fr; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; color: #666962; }
.livia-sidebar-context.is-chat .livia-chat-icon-grid .livia-chat-icon-choice:hover { background: #f1f1ee; }
.livia-sidebar-context.is-chat .livia-chat-icon-grid .livia-chat-icon-choice[aria-pressed="true"] { border-color: #d6d6d1; background: #ecece8; color: #292a27; }
.livia-chat-icon-choice svg { width: 16px; height: 16px; }
.livia-chat-member-picker { max-height: 176px; display: grid; gap: 1px; overflow-y: auto; padding: 0 4px 6px; scrollbar-width: thin; scrollbar-color: #d1d1cc transparent; }
.livia-chat-member-picker label { min-width: 0; min-height: 38px; display: grid; grid-template-columns: 18px 27px minmax(0,1fr); align-items: center; gap: 7px; padding: 4px; border-radius: 7px; cursor: pointer; }
.livia-chat-member-picker label:hover { background: #f3f3f1; }
.livia-chat-member-picker input { width: 14px; height: 14px; accent-color: #343632; }
.livia-chat-member-picker label > span:last-child { min-width: 0; }
.livia-chat-member-picker strong, .livia-chat-member-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livia-chat-member-picker strong { color: #383a35; font-size: 10px; }
.livia-chat-member-picker small { margin-top: 2px; color: #979993; font-size: 8px; }
.livia-sidebar-context.is-chat .livia-chat-primary-action { width: calc(100% - 14px); min-height: 32px; display: flex; justify-content: center; margin: 3px 7px 1px; background: #292a27; color: #fff; font-size: 10px; font-weight: 620; }
.livia-sidebar-context.is-chat .livia-chat-primary-action:hover { background: #111; }

.livia-sidebar-foot { padding: 7px; border-top: 1px solid var(--livia-sidebar-line); background: var(--livia-sidebar-bg); transition: opacity 100ms ease, transform 100ms ease; }
.livia-sidebar-context-switch {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 7px;
  color: #30312e;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.livia-sidebar-context-switch:hover { background: var(--livia-sidebar-hover); }
.livia-sidebar-context-switch > svg { width: 11px; height: 11px; color: #8b8d87; }
.livia-sidebar-identity-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  color: #fff;
  background: #292a27;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 650;
}
.livia-sidebar-identity-avatar.is-company { color: #30312e; background: #e8e8e4; border-radius: 6px; }
.livia-sidebar-identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.livia-sidebar-context-label { overflow: hidden; font-size: 11.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.livia-sidebar-context {
  position: fixed;
  z-index: 5;
  display: grid;
  width: 178px;
  padding: 4px;
  background: #fff;
  border: 1px solid #deded9;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgb(24 25 22 / 13%), 0 2px 6px rgb(24 25 22 / 5%);
}
.livia-sidebar-context button { min-height: 30px; padding: 6px 8px; color: #353631; text-align: left; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 11px; }
.livia-sidebar-context button:hover, .livia-sidebar-context button:focus-visible { background: #f0f0ed; outline: 0; }

.livia-sidebar-backdrop { position: fixed; z-index: 2350; inset: 0; padding: 0; background: rgb(20 21 18 / 20%); border: 0; animation: livia-sidebar-fade 120ms ease both; }
@keyframes livia-sidebar-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 901px) {
  .livia-sidebar-backdrop { display: none !important; }
  html.livia-sidebar-open {
    --livia-app-left: var(--livia-sidebar-width);
    --livia-app-width: calc(100vw - var(--livia-sidebar-width));
    --livia-shell-gutter: clamp(72px, 7.3vw, 140px);
  }
  html.livia-sidebar-open #global-header {
    left: var(--livia-app-left) !important;
    right: auto !important;
    width: var(--livia-app-width) !important;
    transition: left 140ms ease, width 140ms ease;
  }
  html.livia-sidebar-open #global-header-logo { visibility: hidden !important; pointer-events: none !important; }

  html.livia-sidebar-open body > main:not(.qa-public) {
    width: var(--livia-app-width) !important;
    margin-left: var(--livia-app-left) !important;
    transition: width 140ms ease, margin-left 140ms ease;
  }

  /* Blank Page keeps the header in document flow, while its canvas is fixed. */
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] {
    --page-column-default-width: min(1400px, max(650px, calc(var(--livia-app-width) - (var(--livia-shell-gutter) * 2))));
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] #workspace-page-column-navigation {
    left: calc(var(--livia-app-left) + 22px) !important;
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] #workspace-page-columns {
    right: auto !important;
    left: var(--livia-app-left) !important;
    width: var(--livia-app-width) !important;
    padding-right: var(--livia-shell-gutter) !important;
    padding-left: var(--livia-shell-gutter) !important;
    box-sizing: border-box;
    scroll-padding-inline: var(--livia-shell-gutter);
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] .page-title-group {
    width: min(650px, calc(var(--livia-app-width) - 330px));
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] #workspace-page-back {
    margin-left: max(30px, calc(var(--livia-shell-gutter) - 42px));
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] .workspace-column-lane,
  html.livia-sidebar-open[data-livia-sidebar-layout="page"] .workspace-column {
    max-width: calc(var(--livia-app-width) - (var(--livia-shell-gutter) * 2)) !important;
  }

  /* Pipe must measure against the remaining viewport and keep horizontal scroll inside Kanban. */
  html.livia-sidebar-open[data-livia-sidebar-layout="pipe"] .pipe-page {
    min-width: 0 !important;
    overflow-x: hidden;
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="pipe"] :is(.pipe-page-head, .pipe-dashboard-region, .pipe-archive-bar, .pipe-table-view) {
    width: min(1460px, calc(var(--livia-app-width) - (var(--pipe-gutter) * 2))) !important;
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="pipe"] .pipe-kanban-region {
    width: min(1460px, calc(var(--livia-app-width) - (var(--pipe-gutter) * 2))) !important;
    min-width: 0 !important;
  }
  html.livia-sidebar-open[data-livia-sidebar-layout="pipe"] .pipe-board-scroll {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
  }

  /* Hub follows the same content gutter as Pipe instead of touching the sidebar edge. */
  html.livia-sidebar-open[data-livia-sidebar-layout="hub"] .lv-workspace {
    width: var(--livia-app-width) !important;
    max-width: var(--livia-app-width) !important;
    margin-left: var(--livia-app-left) !important;
    margin-right: 0 !important;
    padding-right: var(--livia-shell-gutter) !important;
    padding-left: var(--livia-shell-gutter) !important;
    box-sizing: border-box;
  }

  /* Fixed-size product shells now use the same available viewport. */
  html.livia-sidebar-open[data-livia-sidebar-layout="database"] .cloud-shell,
  html.livia-sidebar-open[data-livia-sidebar-layout="profile"] #profile-main,
  html.livia-sidebar-open[data-livia-sidebar-layout="qa"] .qa-page {
    max-width: var(--livia-app-width) !important;
  }
}

@media (max-width: 900px) {
  :root { --livia-sidebar-width: min(82vw, 280px); }
  .livia-sidebar { box-shadow: 16px 0 42px rgb(20 21 18 / 18%); }
}

@media (hover: none) {
  .livia-sidebar-row-actions { opacity: 1; pointer-events: auto; }
  .livia-sidebar-group-more { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .livia-sidebar, .livia-sidebar-backdrop { animation: none; }
  .livia-sidebar *, .livia-sidebar *::before, .livia-sidebar *::after { transition-duration: 0s !important; }
}

/* 2026 product pivot: ChatGPT-inspired primary navigation. */
:root {
  --livia-sidebar-width: 272px;
  --livia-sidebar-bg: #f9f9f9;
  --livia-sidebar-text: #202123;
  --livia-sidebar-muted: #8e8e8e;
  --livia-sidebar-hover: #ececec;
  --livia-sidebar-selected: #e7e7e7;
  --livia-sidebar-line: #e8e8e8;
}

.livia-sidebar { border-right: 0; box-shadow: none; font: 500 13px/1.35 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.livia-sidebar-head { padding: 8px 8px 4px; }
.livia-sidebar-titlebar { grid-template-columns: minmax(0, 1fr) 32px 32px; height: 40px; padding: 0 4px 0 9px; }
.livia-sidebar-brand { overflow: hidden; color: #0d0d0d; font-size: 17.5px; font-weight: 600; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.livia-sidebar-head-action { position: relative; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #5d5d5d; cursor: pointer; }
.livia-sidebar-head-action:hover, .livia-sidebar-head-action:focus-visible, .livia-sidebar-head-action[aria-expanded="true"] { background: #ececec; color: #202123; outline: 0; }
.livia-sidebar-head-action svg { width: 18px; height: 18px; stroke-width: 1.65; }
.livia-sidebar-head-action[data-tooltip]::after, .livia-sidebar-section-add[data-tooltip]::after {
  position: absolute; z-index: 9; top: calc(100% + 7px); right: 0; padding: 7px 10px; border-radius: 8px; background: #171717; color: #fff; content: attr(data-tooltip); font-size: 10.5px; font-weight: 500; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(-2px); transition: opacity 100ms ease, transform 100ms ease; white-space: nowrap;
}
.livia-sidebar-head-action:hover::after, .livia-sidebar-head-action:focus-visible::after, .livia-sidebar-section-add:hover::after, .livia-sidebar-section-add:focus-visible::after { opacity: 1; transform: translateY(0); }

.livia-sidebar-search { height: 34px; margin: 3px 4px 7px; border: 1px solid #dedede; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); }
.livia-sidebar-search > svg { width: 15px; height: 15px; }
.livia-sidebar-search input { font-size: 12.5px; font-weight: 500; }

.livia-sidebar-shortcuts { min-height: 0; display: grid; gap: 1px; padding: 3px 0 9px; }
.livia-sidebar-shortcut, .livia-sidebar-shortcut.is-active {
  width: 100%; height: 34px; display: flex; justify-content: flex-start; gap: 8px; padding: 0 9px; border-radius: 7px; background: transparent; color: #303030; font-size: 13px; font-weight: 500; text-align: left; transition: background 100ms ease, color 100ms ease;
}
.livia-sidebar-shortcut:nth-child(4) { margin-left: 0; }
.livia-sidebar-shortcut:hover:not(:disabled), .livia-sidebar-shortcut:focus-visible, .livia-sidebar-shortcut.is-active { background: #ececec; color: #111; outline: 0; }
.livia-sidebar-shortcut svg { width: 17px; height: 17px; stroke-width: 1.65; }
.livia-sidebar-shortcut-label { font-size: 13px; font-weight: 500; letter-spacing: -.005em; }
.livia-sidebar-shortcut[data-tooltip]::after { display: none; }

.livia-sidebar-scroll { padding: 7px 8px 16px; }
.livia-sidebar-results { padding-top: 4px; }
.livia-sidebar-tree { display: grid; gap: 9px; }
.livia-sidebar-favorites, .livia-sidebar-projects { margin: 0; }
.livia-sidebar-projects-head { display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; }
.livia-sidebar-section-title {
  height: 32px; justify-content: flex-start; gap: 4px; padding: 0 9px; border-radius: 7px; color: #8b8b8b; font-size: 12.5px; font-weight: 500;
}
.livia-sidebar-section-title:hover, .livia-sidebar-section-title:focus-visible { background: #ececec; color: #555; outline: 0; }
.livia-sidebar-section-title .livia-sidebar-chevron { width: 15px; order: 2; }
.livia-sidebar-section-title .livia-sidebar-chevron svg { width: 11px !important; height: 11px !important; }
.livia-sidebar-section-title[aria-expanded="true"] .livia-sidebar-chevron svg { transform: rotate(90deg); }
.livia-sidebar-section-add { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #8b8b8b; text-decoration: none; }
.livia-sidebar-section-add:hover, .livia-sidebar-section-add:focus-visible { background: #e9e9e9; color: #303030; outline: 0; }
.livia-sidebar-section-add svg { width: 17px; height: 17px; }
.livia-sidebar-favorite-list, .livia-sidebar-project-list { display: grid; gap: 1px; padding-top: 2px; }
.livia-sidebar-section-empty, .livia-sidebar-menu-empty { margin: 3px 9px 7px; color: #b0b0b0; font-size: 12px; font-weight: 500; }
.livia-sidebar-context-title { height: 26px; padding: 7px 10px 0; font-size: 11px; }

.livia-sidebar-row, .livia-sidebar-menu-row { min-height: 31px; border-radius: 7px; }
.livia-sidebar-link { height: 31px; gap: 7px; padding: 0 7px 0 28px; color: #3a3a3a; font-weight: 500; }
.livia-sidebar-row.is-compact .livia-sidebar-link { padding-left: 10px; }
.livia-sidebar-label { font-size: 12.5px; font-weight: 500; }
.livia-sidebar-menu-toggle { height: 31px; gap: 6px; padding: 0 7px; font-weight: 500; }
.livia-sidebar-menu-content { margin-left: 12px; }
.livia-sidebar-menu-content::before { display: none; }
.livia-sidebar-menu-appearance-icon { width: 19px; height: 19px; }
.livia-sidebar-row-actions { display: none; }
.livia-sidebar-add-page { height: 31px; padding-left: 29px; font-size: 12.5px; font-weight: 500; }

.livia-sidebar-foot { padding: 6px 8px; border-top: 0; }
.livia-sidebar-user { width: 100%; height: 42px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #202123; text-align: left; cursor: pointer; }
.livia-sidebar-user:hover, .livia-sidebar-user:focus-visible { background: #ececec; outline: 0; }
.livia-sidebar-identity-avatar { width: 26px; height: 26px; border-radius: 50%; background: #805ad5; font-size: 8.5px; }
.livia-sidebar-context-label { font-size: 12.5px; font-weight: 500; }
.livia-sidebar-plan { max-width: 76px; overflow: hidden; padding: 3px 7px; border: 1px solid #dedede; border-radius: 999px; background: #fff; color: #696969; font-size: 9.5px; font-weight: 500; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }

.livia-sidebar-context { width: 224px; gap: 1px; padding: 7px; border: 0; border-radius: 11px; box-shadow: 0 12px 34px rgb(0 0 0 / 14%), 0 2px 8px rgb(0 0 0 / 6%); }
.livia-sidebar-popover-title { min-height: 26px; display: flex; align-items: center; padding: 0 8px; color: #8b8b8b; font-size: 10.5px; font-weight: 500; }
.livia-sidebar-context > button, .livia-sidebar-popover-row { min-height: 34px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #303030; text-align: left; text-decoration: none; cursor: pointer; font-size: 12.5px; font-weight: 500; }
.livia-sidebar-context > button:hover, .livia-sidebar-popover-row:hover { background: #f1f1f1; }
.livia-sidebar-context > button svg, .livia-sidebar-popover-row svg { width: 15px; height: 15px; }
.livia-sidebar-context > button small { color: #999; font-size: 9.5px; font-weight: 500; }
.livia-sidebar-context > button.is-danger { color: #c54444; }
.livia-sidebar-popover-row strong, .livia-sidebar-popover-row small { display: block; }
.livia-sidebar-popover-row strong { font-size: 12.5px; font-weight: 500; }
.livia-sidebar-popover-row small { margin-top: 1px; color: #999; font-size: 10px; }
.livia-sidebar-popover-divider { height: 1px; margin: 4px 6px; background: #ededed; }
.livia-sidebar-popover-empty { margin: 4px 8px 8px; color: #999; font-size: 12px; }
.livia-sidebar-status-dot { width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: var(--presence-color, #6ca875); }
.livia-sidebar-context > button[aria-pressed="true"] { background: #f1f1f1; }
.livia-sidebar-context > button b { font-size: 11px; font-weight: 600; }
.livia-sidebar-account-status { min-width: 0; display: flex; align-items: baseline; gap: 3px; }
.livia-sidebar-account-status strong { font-weight: 500; }
.livia-sidebar :is(button, a, input, strong, small) { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; }
.livia-sidebar .livia-sidebar-brand { font-weight: 600; }

