/* Exact chrome from temp/11_58_01.png */

.app-sidebar {
  position: relative;
  width: 248px;
  padding: 1rem 0.85rem 0.75rem;
  background: #070f1c url("/img/sidebar-mountain.png?v=20260911ui11") no-repeat center bottom;
  background-size: 248px auto;
  border-right: 0;
  overflow: hidden;
}

.app-sidebar::after {
  display: none;
}

.sidebar-brand {
  align-items: center;
  border-bottom: 0 !important;
  margin-bottom: 1rem;
  padding: 0.15rem 0.25rem 0.35rem !important;
}

.sidebar-brand-visual {
  width: 36px;
  height: 36px;
}

.brand-ring {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-mark {
  display: none !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.brand-text strong,
.brand-tag {
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 700;
}

.brand-sub {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8ba0;
}

.sidebar-nav-label {
  color: #7d8ba0 !important;
}

.sidebar-nav-item {
  gap: 0.65rem;
  border-radius: 999px !important;
  padding: 0.55rem 0.85rem !important;
}

.sidebar-nav-item::before {
  display: none !important;
}

.sidebar-nav-item.active {
  background: #2f6bff !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(47, 107, 255, 0.28) !important;
}

.sidebar-nav-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.sidebar-section--sessions {
  flex: 1 1 0;
  min-height: 8rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-section--sessions > .sidebar-nav-label,
.sidebar-section--sessions h3 {
  display: block !important;
  color: #7d8ba0 !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section--sessions h3 {
  margin: 0.55rem 0 0.25rem;
  padding-left: 0.5rem;
}

.session-carousel {
  display: flex !important;
  min-height: 0;
}

.session-list li {
  color: #c5d0e0;
}

.session-name {
  color: #e8eef8 !important;
}

.session-list li:hover,
.session-list li.active {
  background: rgba(47, 107, 255, 0.28) !important;
  color: #fff;
}

.session-del {
  color: #8b97ab;
}

.sidebar-clear-all {
  display: block !important;
  color: #9aa8bd;
}

#newSession.btn,
.sidebar-section--sessions > .btn {
  border: 0;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-weight: 600;
  min-height: 2.55rem;
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.3);
}

.sidebar-footer {
  border-top: 0;
  padding-top: 0.35rem;
}

.sidebar-motto,
.sidebar-motto-sub {
  display: none !important;
}

#topbarThemeToggle {
  display: none;
}

.app-topbar {
  background: transparent !important;
  border-bottom: 0 !important;
  min-height: 3.6rem;
  padding: 0.65rem 1.35rem 0 !important;
}

.topbar-search {
  flex: 1;
  max-width: 26rem;
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  background: #fff;
}

.topbar-search input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 0.84rem;
  background: transparent;
}

.topbar-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  background: #fff;
}

.topbar-user-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar-avatar {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2f6bff;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.topbar-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar-user-meta strong {
  font-size: 0.8rem;
}

.topbar-user-meta small {
  font-size: 0.68rem;
  color: #64748b;
}

.page-head--hero {
  background: transparent !important;
  border: 0 !important;
  padding: 0.15rem 1.35rem 0 !important;
}

.assist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
  align-items: center;
  gap: 0.75rem;
  min-height: 11rem;
}

.page-title {
  margin: 0;
  font-size: 2.05rem;
  letter-spacing: -0.04em;
}

.assist-hero-lead {
  margin: 0.4rem 0 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
}

.assist-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assist-hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}

.assist-hero-features li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.page-product-brand:not([hidden]) {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: #eef3ff;
}

.page-product-name {
  color: #2f6bff;
  font-size: 0.8rem;
  font-weight: 700;
}

.assist-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 9.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, #e9f1ff 0%, #f4f9ff 55%, #eef5ff 100%);
}

.assist-hero-visual img {
  display: block;
  width: 12rem;
  max-width: 42%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.assist-hero-bubble {
  margin: 0 0 2.2rem;
  max-width: 9rem;
  padding: 0.5rem 0.7rem;
  border-radius: 14px 14px 14px 4px;
  background: #eaf1ff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.assist-hero-tag {
  align-self: center;
  max-width: 8.5rem;
  margin: 0;
  color: #1e3a8a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.25;
}

.chat-main:not(:has(.assist-empty-state:not([hidden]))) .assist-hero-visual,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .assist-hero-lead,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .assist-hero-features,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .composer-examples,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .composer-hint,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .composer-quote {
  display: none;
}

/* One scrolling page instead of nested clipped panes. */
.chat-feed:has(.assist-empty-state:not([hidden])) {
  overflow-y: auto;
  overflow-x: hidden;
}

.assist-empty-state:not([hidden]) {
  position: static !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

.assist-home-layout {
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 0.9rem;
  padding: 0.2rem 1.2rem 0.6rem;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  align-items: start;
}

.assist-home-main {
  padding: 0;
  height: auto !important;
  overflow: visible !important;
}

.assist-home-rail {
  height: auto !important;
  overflow: visible !important;
}

.assist-product-picker,
.assist-product-list,
.assist-product-list-viewport {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.assist-home-layout .assist-digest-sections {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto auto !important;
  grid-template-areas:
    "topics topics"
    "daily top"
    "assistant tips" !important;
  gap: 0.75rem !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

.assist-home-layout .assist-digest-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.assist-home-layout .chips-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#assist-section-topics { grid-area: topics !important; }
#assist-section-daily { grid-area: daily !important; }
#assist-section-top { grid-area: top !important; }
#assist-section-assistant { grid-area: assistant !important; }
#assist-section-tips { grid-area: tips !important; }

.assist-home-layout .assist-digest-section {
  margin: 0;
  padding: 0.85rem 0.95rem 0.7rem;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.assist-home-layout .assist-digest-section:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.assist-home-layout .assist-digest-section--feature {
  grid-column: 1 / -1;
}

.assist-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.assist-section-more {
  color: #2f6bff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.assist-home-layout .assist-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}

.assist-home-layout .assist-section-lead {
  margin: 0.15rem 0 0 1.85rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

.assist-home-layout .assist-section-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e8f0ff;
  color: #2f6bff;
}

.assist-home-layout .assist-section-mark svg {
  width: 0.95rem;
  height: 0.95rem;
}

.assist-home-layout .assist-section-mark--topics { background: #e8f0ff; color: #2f6bff; }
.assist-home-layout .assist-section-mark--daily { background: #f3e8ff; color: #7c3aed; }
.assist-home-layout .assist-section-mark--top { background: #ffe4e6; color: #fb7185; }
.assist-home-layout .assist-section-mark--assistant { background: #e8f0ff; color: #2f6bff; }
.assist-home-layout .assist-section-mark--tips { background: #dcfce7; color: #16a34a; }

.chip-ico {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8f0ff;
  color: #2f6bff;
}

.chip-ico svg { width: 0.75rem; height: 0.75rem; }
.chip-daily .chip-ico { background: #f3e8ff; color: #7c3aed; }
.chip-top .chip-ico { background: #ffe4e6; color: #fb7185; }
.chip-assistant .chip-ico { background: #e8f0ff; color: #2f6bff; }
.chip-topic .chip-ico { background: #e8f0ff; color: #2f6bff; }

.assist-home-layout .chips-list--feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.assist-home-layout .assist-digest-section .chip {
  width: 100%;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #eef2f7;
  box-shadow: none;
}

.assist-home-layout .chips-list--feature .chip {
  min-height: 4.2rem;
  align-items: flex-start;
  background: #f8fbff;
}

.assist-home-layout .assist-digest-section .chip::before,
.assist-home-layout .assist-digest-section .chip::after {
  display: none;
}

.chip-text { flex: 1; min-width: 0; text-align: left; }
.chip-arrow {
  margin-left: auto;
  color: #94a3b8;
}

.app-shell:has(.assist-empty-state:not([hidden])) #micBtn {
  display: none;
}

.assist-home-rail {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 0.7rem;
}

.assist-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.2rem 0;
  border: 0;
}

.assist-rail-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: #0f172a;
  text-align: left;
}

.assist-product-picker {
  padding: 0;
}

.assist-product-list,
.assist-product-list-viewport {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.assist-product-list {
  padding: 0.35rem;
}

.assist-product-list-btn {
  display: none !important;
}

.assist-product-list-item {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.85rem;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.assist-product-list-item {
  cursor: default;
}

.assist-product-list-item:hover,
.assist-product-list-item.is-active {
  background: transparent;
}

.assist-product-list-item.is-active .assist-product-list-name {
  color: #0f172a;
}

.assist-product-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  overflow: hidden;
}

.assist-product-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  background: transparent;
}

.assist-product-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.assist-help-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8eef6;
}

.assist-help-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.assist-help-card p {
  margin: 0 0 0.55rem;
  color: #64748b;
  font-size: 0.75rem;
}

.assist-help-card .btn {
  border: 0;
  border-radius: 10px;
  background: #2f6bff;
}

.composer {
  background: transparent;
  border: 0;
  padding: 0.25rem 1.2rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.composer-gpt { order: 1; }
.composer-examples { order: 2; }
.composer-hint { order: 3; }
.composer-quote { order: 4; margin: 0.25rem 0 0; color: #94a3b8; font-size: 0.72rem; font-style: italic; }

.composer-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
}

.composer-examples::before {
  content: "Примеры запроса:";
  color: #94a3b8;
  font-size: 0.72rem;
}

.composer-example {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.composer-gpt {
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.composer-model {
  align-self: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.composer-send-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px !important;
  padding: 0 !important;
  text-indent: -999px;
  overflow: hidden;
  background: #2f6bff !important;
  position: relative;
}

.composer-send-btn::after {
  content: "➤";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  color: #fff;
}

.composer-hint {
  margin: 0.35rem 0 0;
  text-align: right;
  color: #94a3b8;
  font-size: 0.72rem;
}

.page-product-brand {
  display: none !important;
}

.product-switch-offer {
  display: none !important;
}

.chat-main:not(:has(.assist-empty-state:not([hidden]))) .messages {
  padding: 1.1rem 2rem 2rem;
  max-width: none;
}

.chat-main:not(:has(.assist-empty-state:not([hidden]))) .msg.assistant,
.chat-main:not(:has(.assist-empty-state:not([hidden]))) .msg.assistant-streaming {
  max-width: none;
  width: 100%;
  align-self: stretch;
  padding: 1.25rem 1.5rem 1.4rem;
}

.chat-main:not(:has(.assist-empty-state:not([hidden]))) .msg.user {
  max-width: min(40rem, 70%);
}

.msg.assistant .msg-body {
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1e293b;
}

.msg.assistant .msg-body h1,
.msg.assistant .msg-body h2,
.msg.assistant .msg-body h3 {
  margin: 1.15rem 0 0.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.msg.assistant .msg-body h1 { font-size: 1.45rem; }
.msg.assistant .msg-body h2 { font-size: 1.2rem; }
.msg.assistant .msg-body h3 { font-size: 1.05rem; }

.msg.assistant .msg-body p {
  margin: 0.55rem 0;
}

.msg.assistant .msg-body ul,
.msg.assistant .msg-body ol {
  margin: 0.45rem 0 0.65rem;
  padding-left: 1.3rem;
}

.msg.assistant .msg-body li + li {
  margin-top: 0.28rem;
}

.msg.assistant .msg-body pre {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.msg.assistant .msg-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
}

.msg.assistant .msg-body :not(pre) > code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #eef2f7;
  color: #0f172a;
}

/* Inline-code decoration must never leak into fenced code blocks. */
.msg.assistant .msg-body pre > code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: inherit;
  tab-size: 2;
}

@media (max-width: 1100px) {
  .assist-hero,
  .assist-digest-sections,
  .assist-home-layout,
  .assist-home-layout .chips-list--feature {
    grid-template-columns: 1fr;
  }
  .assist-hero-visual { display: none; }
}
/* Assist home alignment with temp/11_58_01.png. */
@media (min-width: 1440px) {
  .app-sidebar {
    width: 268px;
    background-size: 268px auto;
    background-position: center bottom 6rem;
  }

  .sidebar-brand-visual,
  .brand-ring {
    width: 42px;
    height: 42px;
  }

  .brand-text { display: block; }

  .brand-text strong,
  .brand-tag {
    display: inline;
    font-size: 1.35rem;
    line-height: 1;
  }

  .brand-sub {
    display: block;
    grid-column: 1 / -1;
  }

  .sidebar-nav-item {
    border-radius: 10px !important;
  }

  .topbar-search {
    flex: 0 1 19rem;
    max-width: 19rem;
    margin-left: auto;
  }

  .assist-hero {
    grid-template-columns: minmax(32rem, 1fr) minmax(40rem, 1.08fr);
    min-height: 10rem;
  }

  .assist-hero-copy {
    align-self: start;
    padding-top: 0.75rem;
  }

  .assist-hero-visual {
    height: 10rem;
    min-height: 10rem;
  }

  .assist-hero-visual img {
    width: 22rem;
    height: 100%;
    max-width: 54%;
    object-fit: cover;
  }

  .assist-home-layout .assist-digest-section .chips-list--feature {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-main:has(.assist-empty-state:not([hidden])) .composer {
    position: relative;
    padding-right: calc(18rem + 2.1rem);
  }

  .chat-main:has(.assist-empty-state:not([hidden])) .composer-quote {
    position: absolute;
    right: 1.2rem;
    bottom: 0.85rem;
    width: 18rem;
    margin: 0;
    padding: 0 0.8rem 0.7rem;
    border-bottom: 1px solid #4f6fff;
    color: #35518f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
  }
}

.assist-rail-more {
  color: #2f6bff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.assist-product-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  color: #56729f;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    min-height: 100vh;
    height: auto;
    overflow: auto;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.55rem 0.7rem;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    background: #070f1c;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar-brand {
    display: flex !important;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 !important;
  }

  .sidebar-brand-visual,
  .brand-ring {
    width: 32px;
    height: 32px;
  }

  .brand-text,
  .sidebar-nav-label,
  .sidebar-section--sessions,
  .sidebar-footer,
  .sidebar-motto {
    display: none !important;
  }

  .sidebar-nav,
  #sidebarModulesGroup {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .sidebar-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem !important;
  }

  .app-main {
    height: auto;
    min-height: calc(100vh - 3.25rem);
    overflow: visible;
  }

  .app-topbar {
    min-height: 3rem;
    padding: 0.45rem 0.75rem !important;
  }

  .topbar-search,
  .topbar-icon-btn,
  .topbar-user-meta,
  #logoutBtn {
    display: none !important;
  }

  .app-content,
  .chat-main {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .page-head--hero {
    padding: 0.8rem 0.9rem 0 !important;
  }

  .assist-hero {
    min-height: 0;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .assist-hero-features {
    display: none;
  }

  .assist-home-layout {
    padding: 0.75rem 0.8rem;
  }

  .assist-home-layout .assist-digest-sections {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "topics"
      "daily"
      "top"
      "assistant"
      "tips" !important;
    grid-template-rows: none !important;
  }

  .composer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 0.65rem 0.8rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
  }

  .composer-quote,
  .composer-hint {
    display: none;
  }
}

/* Layout stability pass — keep branding, navigation and long content readable. */
.sidebar-brand {
  min-width: 0;
}

.brand-text {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  column-gap: 0.22rem;
  row-gap: 0.08rem;
}

.brand-text strong,
.brand-tag {
  line-height: 1.05;
  white-space: nowrap;
}

.brand-sub {
  grid-column: 1 / -1;
  max-width: 100%;
  font-size: 0.46rem;
  letter-spacing: 0.045em;
  line-height: 1.25;
  white-space: nowrap;
}

.sidebar-footer {
  z-index: 2 !important;
  background: #070f1c;
}

.documentation-doc-item {
  align-items: start;
}

.documentation-product-card {
  grid-template-columns: 2.05rem minmax(0, 1fr) auto;
  gap: 0.35rem;
}

.documentation-product-copy strong {
  display: -webkit-box;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.documentation-product-chevron {
  display: none;
}

.documentation-doc-title {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 901px) and (max-height: 1050px) {
  /* The source image contains lettering that otherwise sits behind the footer. */
  .app-sidebar {
    background-image: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .app-topbar {
    gap: 0.65rem;
  }

  .breadcrumbs {
    flex: 0 1 8.5rem;
    min-width: 5.5rem;
    line-height: 1.25;
  }

  .topbar-search {
    min-width: 9rem;
  }

  .topbar-actions {
    gap: 0.45rem;
  }

  .topbar-user-meta {
    display: none;
  }

  .documentation-doc-item {
    grid-template-columns: 1.1rem minmax(0, 1fr);
    padding-block: 0.34rem;
  }

  .documentation-doc-kind {
    display: none;
  }
}

@media (max-width: 900px) {
  body,
  .app-shell {
    overflow-x: hidden;
  }

  .app-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem 0.7rem;
    overflow: visible;
  }

  .sidebar-brand {
    width: fit-content;
    display: flex !important;
    gap: 0.55rem;
    margin: 0;
    padding: 0 !important;
  }

  .sidebar-brand-visual,
  .brand-ring {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    display: grid !important;
  }

  .sidebar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
  }

  #sidebarModulesGroup,
  #sidebarAdminGroup:not([hidden]) {
    display: contents !important;
  }

  .sidebar-nav > .sidebar-nav-group:not([hidden]) {
    display: contents !important;
  }

  .app-sidebar:has(#adminSidebarNav) #sidebarAdminGroup:not([hidden]) {
    display: contents !important;
  }

  #sidebarAdminGroup[hidden] {
    display: none !important;
  }

  .sidebar-nav-label,
  .sidebar-section--sessions,
  .sidebar-footer,
  .sidebar-motto {
    display: none !important;
  }

  .sidebar-nav-item {
    min-width: 0;
    width: 100%;
    min-height: 2.35rem;
    display: flex;
    justify-content: center;
    padding: 0.45rem 0.5rem !important;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-topbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .breadcrumbs {
    flex: 1 1 12rem;
    white-space: normal;
    line-height: 1.25;
  }

  .topbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.4rem;
  }

  .composer {
    position: static;
    padding-bottom: 0.85rem;
    backdrop-filter: none;
  }

  .admin-page {
    padding-inline: 0.75rem;
  }

  .admin-page .table-wrap,
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .knowledge-table .col-name,
  .knowledge-table .col-description {
    min-width: 12rem;
    max-width: 20rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sidebar-section--docs {
    width: 100%;
    max-height: 18rem !important;
  }
}

@media (max-width: 640px) {
  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-topbar {
    align-items: flex-start;
  }

  .breadcrumbs {
    flex-basis: 100%;
  }

  .page-title {
    font-size: 1.55rem;
  }
}

/* Responsive viewport and sidebar legibility hotfix — 2026-09-11. */
@media (min-width: 901px) {
  .app-sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .sidebar-brand,
  .sidebar-nav,
  .sidebar-section--sessions,
  .sidebar-footer {
    position: relative;
    z-index: 1;
  }

  .sidebar-section--sessions {
    min-height: 0;
    margin-top: 0.55rem;
    padding: 0.6rem 0.45rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(5, 12, 23, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
  }

  .session-carousel-viewport {
    border-radius: 10px;
    background: rgba(1, 6, 14, 0.42);
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 139, 160, 0.45) transparent;
  }

  .session-carousel-viewport::-webkit-scrollbar {
    display: block;
    width: 4px;
  }

  .session-carousel-viewport::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(125, 139, 160, 0.45);
  }

  .session-list {
    padding: 0.3rem;
  }

  .session-list li {
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(15, 27, 45, 0.72);
  }

  .session-list li:hover,
  .session-list li.active {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(47, 107, 255, 0.36) !important;
  }
}

@media (min-width: 901px) and (max-width: 1439px) {
  .app-sidebar {
    width: 232px;
    background-size: 232px auto;
    background-position: center bottom 5rem;
  }

  .app-topbar,
  .page-head--hero {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .assist-hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 40%);
  }

  .assist-hero-visual img {
    max-width: 50%;
  }

  .assist-home-layout {
    grid-template-columns: minmax(0, 1fr) 15rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 1101px) and (max-width: 1439px) {
  .chat-main:has(.assist-empty-state:not([hidden])) .composer {
    padding-right: calc(15rem + 1.9rem);
  }

  .chat-main:has(.assist-empty-state:not([hidden])) .composer-quote {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    width: 15rem;
    margin: 0;
    padding: 0 0.7rem 0.65rem;
    border-bottom: 1px solid #4f6fff;
    color: #35518f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .app-sidebar {
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
    background: #070f1c;
  }

  .sidebar-brand {
    margin-bottom: 0.55rem;
  }

  .sidebar-nav-item {
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
  }

  .sidebar-section--sessions {
    margin-top: 0.4rem;
    padding-top: 0.45rem;
  }

  .sidebar-section--sessions h3 {
    margin-top: 0.4rem;
  }

  .session-list li {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}

@media (max-width: 640px) {
  .app-sidebar {
    scrollbar-width: none;
  }

  .app-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav-item {
    font-size: 0.76rem;
    padding: 0.42rem 0.58rem !important;
  }

  .page-head--hero {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .assist-home-layout {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .assist-digest-section {
    padding: 0.8rem;
  }

  .composer-gpt {
    border-radius: 14px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .assist-hero,
  .assist-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .assist-hero-visual {
    display: none;
  }
}
/* External responsive sidebar hotfix — ui11. */
@media (min-width: 901px) {
  .app-sidebar {
    width: clamp(220px, 17vw, 268px);
    background: #070f1c !important;
  }

  .app-sidebar::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4.25rem;
    height: clamp(7rem, 18vh, 11rem);
    background: url("/img/sidebar-mountain.png?v=20260911ui11") no-repeat center bottom / 100% auto;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
  }

  .sidebar-section--sessions {
    isolation: isolate;
    background: #091426 !important;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: none;
  }

  .session-carousel-viewport {
    background: #050d19;
  }

  .session-list li {
    background: #101d30;
  }

  .session-name {
    overflow-wrap: anywhere;
  }

  .assist-home-layout,
  .assist-home-main,
  .assist-digest-sections,
  .assist-digest-section,
  .chips-list,
  .chip {
    min-width: 0;
  }
}

@media (min-width: 1101px) and (max-width: 1439px) {
  .assist-hero {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 40%);
  }

  .assist-home-layout {
    grid-template-columns: minmax(0, 1fr) clamp(14rem, 20vw, 17rem);
  }

  .assist-home-layout .assist-digest-section .chips-list--feature {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1440px) {
  .assist-hero {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 48%);
  }

  .assist-home-layout {
    grid-template-columns: minmax(0, 1fr) clamp(16rem, 19vw, 18rem);
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .app-sidebar::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-sidebar::before {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 1050px) {
  .app-sidebar::before {
    display: none;
  }
}

/* Keep the Fusion AI.iQ lockup balanced and fully inside the sidebar. */
.sidebar-brand {
  gap: 0.72rem;
}

.sidebar-brand-visual {
  display: grid;
  place-items: center;
  overflow: visible;
}

.sidebar-brand-visual .brand-ring {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: grid !important;
  grid-template-columns: max-content;
  grid-template-areas:
    "name"
    "sub";
  row-gap: 0.18rem;
  align-items: baseline;
}

.brand-text strong {
  grid-area: name;
}

.brand-text strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1;
}

.brand-sub {
  grid-area: sub;
  grid-column: auto;
  font-size: 0.5rem;
  line-height: 1.2;
  letter-spacing: 0.055em;
}

@media (min-width: 1440px) {
  .brand-text strong {
    font-size: 1.28rem;
  }

  .brand-sub {
    font-size: 0.52rem;
  }
}

/* Shared interaction and layout contract, UI audit 2026-09-23. */
:root {
  --ui-control-height: 2.25rem;
  --ui-page-gutter: 1.5rem;
  --ui-body-size: 0.875rem;
  --ui-title-size: 1.75rem;
}

body.app-shell :is(button, input, textarea, select) { font-family: var(--font); }
body.app-shell :is(.btn, .btn-sm, .btn-ghost, .ref-tab, .admin-tab) {
  min-height: var(--ui-control-height);
  font-size: var(--ui-body-size);
  line-height: 1.4;
  border-radius: 8px;
}
body.app-shell :is(.btn, .btn-primary) { background: var(--primary); box-shadow: none; }
body.app-shell :is(.btn-outline, .btn-secondary, .btn-ghost) {
  background: transparent;
  color: var(--text-secondary);
}
body.app-shell .btn-danger { background: var(--danger); color: #fff; }
body.app-shell :is(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
body.app-shell button:disabled { cursor: not-allowed; opacity: 0.55; }
body.app-shell .page-title { font-size: var(--ui-title-size); line-height: 1.25; letter-spacing: -0.025em; }
body.app-shell .page-head { padding: 1.25rem var(--ui-page-gutter); }
body.app-shell .page-head p { margin-bottom: 0; line-height: 1.5; }
body.app-shell .app-topbar { padding-inline: var(--ui-page-gutter); gap: 1rem; }
body.app-shell .breadcrumbs { line-height: 1.4; }
body.app-shell .sidebar-nav-item { font-size: var(--ui-body-size); min-height: 36px; box-shadow: none; }
body.app-shell .sidebar-nav-icon { width: 18px; height: 18px; flex: 0 0 18px; }
body.app-shell .sidebar-nav-group:not(#sidebarModulesGroup) .sidebar-nav-item {
  padding-left: 1.25rem;
}
body.app-shell .sidebar-nav-label { font-size: 0.6875rem; letter-spacing: 0.035em; }
body.app-shell .topbar-user-card { min-width: 0; flex-shrink: 0; }
body.app-shell .topbar-user-meta { min-width: 0; }
body.app-shell .topbar-user-meta strong { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.app-shell .ref-tabs { margin: 0 var(--ui-page-gutter); padding: 0; border-bottom: 1px solid var(--border); gap: 0.25rem; }
body.app-shell .ref-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.65rem 0.8rem; }
body.app-shell .ref-tab.active { background: transparent; border-bottom-color: var(--primary); color: var(--primary); box-shadow: none; }
body.app-shell #refPanelHost { margin: 1rem var(--ui-page-gutter); }
body.app-shell :is(.reference-search, .ref-select, .search-input) { font-size: var(--ui-body-size); min-height: var(--ui-control-height); }
body.app-shell ::selection { background: #dbeafe; color: #172554; }

dialog:not([open]) { display: none; }
dialog.reference-dialog {
  padding: 0;
  width: min(52rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--card);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.2);
  overflow: auto;
}
dialog.reference-dialog::backdrop,
.fusion-sidebar-dialog::backdrop { background: rgb(15 23 42 / 0.55); }
dialog.reference-dialog > .modal-card {
  width: 100%; max-width: none; max-height: none; margin: 0; border: 0; box-shadow: none;
}
.reference-modal-status { color: var(--text-secondary); margin: 0.75rem 0; line-height: 1.5; }
.reference-modal-status.error { color: var(--danger); }
.reference-modal-status:empty { display: none; }
.documentation-doc-copy { min-width: 0; display: block; }
.documentation-doc-tree { list-style: none; padding: 0; margin: 0; }
.documentation-folder > summary { cursor: pointer; padding: 0.65rem 0.25rem; font-size: var(--ui-body-size); overflow-wrap: anywhere; }
.documentation-folder > .documentation-doc-tree { padding-left: 0.8rem; margin-left: 0.4rem; border-left: 1px solid var(--sidebar-text); }
.documentation-doc-path { display: block; font-size: 0.75rem; line-height: 1.45; overflow-wrap: anywhere; color: inherit; opacity: 0.85; }
.documentation-reader-path { font-size: 0.8125rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.ui-empty-state { padding: 2rem 1rem; max-width: 42rem; margin: auto; text-align: center; line-height: 1.6; }
.ui-empty-state h2 { margin-top: 0; font-size: 1.25rem; }
.ui-empty-state p { color: var(--text-secondary); }

.sidebar-menu-toggle { display: none; }
.fusion-sidebar-dialog { padding: 0; border: 0; margin: 0; width: min(340px, calc(100vw - 40px)); max-width: none; height: 100dvh; max-height: none; background: var(--sidebar-bg); color: var(--sidebar-text-active); }
.sidebar-mobile-close { margin: 0.75rem; min-height: 44px; padding: 0.5rem 0.75rem; background: transparent; border: 1px solid var(--sidebar-text); border-radius: 8px; color: var(--sidebar-text-active); cursor: pointer; }

/* One recommendation list, one composer, one scrollable conversation. */
body.assist-page { padding-top: 0; }
.assist-page .app-content:has(.chat-main) { overflow: hidden; }
.assist-page .chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; height: 100%; }
.assist-page .chat-feed { flex: 1 1 0; min-height: 0; height: auto; overflow-y: auto; }
.assist-page .chat-main .messages { flex: none; min-height: 0; height: auto; overflow: visible; }
.assist-page .msg.assistant .msg-body { color: var(--text); }
.assist-page .msg.assistant .msg-body :is(h1, h2, h3) { color: var(--text); }
.assist-page .messages--empty { display: none; }
.assist-page .assist-empty-state { min-height: 0; overflow: visible; }
.assist-page .assist-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); gap: 1.5rem; padding: 0 var(--ui-page-gutter) 1rem; }
.assist-page .assist-digest-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.assist-page .assist-digest-section::before { display: none; }
.assist-page .assist-section-title { font-size: 1.125rem; margin: 0.5rem 0; }
.assist-page .assist-section-lead { color: var(--text-secondary); margin-bottom: 1rem; }
.assist-page .chips-list { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.assist-page .chip { min-height: 44px; padding: 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); box-shadow: none; font-size: var(--ui-body-size); }
.assist-page .chip:hover { border-color: var(--primary); background: var(--primary-soft); transform: none; }
.assist-page .chip-text { color: inherit; font-size: inherit; font-weight: 500; }
.assist-home-details { margin-top: 1.5rem; font-size: var(--ui-body-size); color: var(--text-secondary); line-height: 1.6; }
.assist-home-details summary { cursor: pointer; padding-block: 0.6rem; color: var(--text); }
.assist-home-details .chips-list { margin-block: 0.75rem; }
.assist-page .chat-main .composer { flex: 0 0 auto; position: relative; width: 100%; margin: 0; padding: 0.75rem var(--ui-page-gutter) 1rem; background: var(--bg); border-top: 1px solid var(--border); }
.assist-page .composer-gpt { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
.assist-page #input { color: var(--text); font-size: 1rem; min-height: 44px; }
.assist-page .composer-send-btn { font-size: var(--ui-body-size); width: auto; min-width: 44px; min-height: 44px; text-indent: 0; color: #fff; background: var(--primary); padding: 0.5rem 1rem !important; }
.assist-page .composer-send-btn::after { display: none; }
.assist-page .composer-hint { color: var(--text-secondary); font-size: 0.75rem; }

@media (min-width: 901px) {
  body.app-shell > .app-sidebar { width: 248px; flex: 0 0 248px; overflow-y: auto; }
}

@media (max-width: 900px) {
  :root { --ui-page-gutter: 1rem; --ui-title-size: 1.5rem; }
  body.app-shell { height: 100dvh; overflow: hidden; }
  body.app-shell > .app-main { flex: 1; width: 100%; min-width: 0; height: 100dvh; min-height: 0; }
  body.app-shell > .app-sidebar { display: none; }
  body.app-shell .app-topbar { flex: 0 0 auto; min-height: 60px; flex-wrap: nowrap; align-items: center; padding: 0.5rem var(--ui-page-gutter) !important; gap: 0.5rem; }
  .sidebar-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font-size: var(--ui-body-size); }
  body.app-shell .breadcrumbs { flex: 1 1 auto; min-width: 0; font-size: 0.75rem; overflow-wrap: anywhere; }
  body.app-shell .topbar-actions { gap: 0.3rem; margin: 0; flex: 0 0 auto; }
  body.app-shell #logoutBtn { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0.5rem; font-size: 0.8125rem; }
  body.app-shell #topbarThemeToggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  body.app-shell .topbar-user-card { display: none; }
  body.app-shell .app-content { min-height: 0; overflow-y: auto; }
  .fusion-sidebar-dialog[open] { display: flex; flex-direction: column; }
  .fusion-sidebar-dialog .app-sidebar { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; width: 100%; min-height: 0; height: auto; max-height: none; padding: 0 1rem 1rem; overflow-y: auto; overflow-x: hidden; background: var(--sidebar-bg); }
  .fusion-sidebar-dialog .sidebar-brand { display: flex !important; margin: 0.5rem 0 1rem; flex-shrink: 0; }
  .fusion-sidebar-dialog .sidebar-nav { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 auto; gap: 1rem; width: 100%; overflow: visible; }
  .fusion-sidebar-dialog .sidebar-nav > .sidebar-nav-group:not([hidden]),
  .fusion-sidebar-dialog #sidebarModulesGroup:not([hidden]),
  .fusion-sidebar-dialog #sidebarAdminGroup:not([hidden]),
  .fusion-sidebar-dialog .app-sidebar:has(#adminSidebarNav) #sidebarAdminGroup:not([hidden]) { display: flex !important; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0; width: 100%; }
  .fusion-sidebar-dialog .sidebar-nav-label:not([hidden]) { display: block !important; text-align: left; margin-block: 0.5rem; }
  .fusion-sidebar-dialog .sidebar-nav-item:not([hidden]) { display: flex; justify-content: flex-start; width: 100%; min-height: 44px; padding: 0.65rem 0.75rem !important; font-size: 0.875rem; text-align: left; white-space: normal; }
  .fusion-sidebar-dialog .sidebar-section:not([hidden]),
  .fusion-sidebar-dialog .sidebar-footer:not([hidden]) { display: flex !important; flex-direction: column; flex-shrink: 0; width: 100%; min-height: 0; max-height: none !important; margin-top: 1rem; }
  .fusion-sidebar-dialog .sidebar-section--sessions { height: 16rem; }
  .fusion-sidebar-dialog .session-carousel { min-height: 0; flex: 1; }
  .fusion-sidebar-dialog .sidebar-footer { padding-top: 1rem; }
  .fusion-sidebar-dialog .dotai-sidebar-slot { flex: 0 0 auto; min-height: 24rem; }
  .assist-page .app-content:has(.chat-main) { height: 100%; overflow: hidden; }
  .assist-page .assist-home-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .assist-page .assist-home-rail { width: 100%; min-width: 0; }
  .assist-page .chat-main .composer { padding: 0.65rem var(--ui-page-gutter) max(0.65rem, env(safe-area-inset-bottom)); }
  .assist-page .composer-hint { display: none; }
  .assist-page .assist-page-head { padding-block: 1rem; }
  body.app-shell .ref-tabs { overflow-x: auto; flex-wrap: nowrap; }
  body.app-shell .ref-tab { flex-shrink: 0; min-height: 44px; }
}

@media (max-width: 480px) {
  body.app-shell .breadcrumbs { display: none; }
  body.app-shell .topbar-actions { margin-left: auto; }
  body.app-shell #refreshBtn { width: 44px; min-width: 44px; min-height: 44px; padding: 0.5rem; font-size: 0; }
  body.app-shell #refreshBtn::before { content: "↻"; font-size: 1.25rem; }
}
