/* Approved soft selection. Navigation structure is rendered once by layout.mjs. */
@media screen and (max-width: 1100px) {
  html[data-theme='bridge'] #app .workspace-sections {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  html[data-theme='bridge'] #app .workspace-sections > a {
    flex-shrink: 0;
  }
}
html[data-theme='bridge'] #app .chrome-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  min-height: 64px;
  padding: 0 24px 0 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
html[data-theme='bridge'] #app .chrome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 208px;
  min-width: 0;
  height: 100%;
}
html[data-theme='bridge'] #app .chrome-brand > .brand {
  width: 149px;
  max-width: 149px;
  min-width: 0;
  flex: 0 0 149px;
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
html[data-theme='bridge'] #app .chrome-brand .bridge-wordmark {
  display: block;
  width: 149px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  margin: 0;
}
html[data-theme='bridge'] #app .chrome-brand .rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #43566d;
}
html[data-theme='bridge'] #app .chrome-brand .rail-toggle > span,
html[data-theme='bridge'] #app .chrome-brand .mobile-menu {
  display: none;
}
html[data-theme='bridge'] #app .chrome-search {
  display: flex;
  align-items: center;
  flex: 1 1 420px;
  min-width: 160px;
  max-width: 480px;
}
html[data-theme='bridge'] #app .chrome-search #global-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #7388a2;
  border-radius: 7px;
  box-shadow: none;
}
html[data-theme='bridge'] #app .chrome-search #global-search-form > .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-search input {
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.5;
  min-height: 0;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  box-shadow: none;
  min-width: 0;
  outline: none;
}
html[data-theme='bridge'] #app .chrome-search #global-search-form:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  background: #fff;
}
html[data-theme='bridge'] #app .chrome-search input::placeholder {
  color: #536274;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
  max-width: none;
  flex-wrap: nowrap;
}
html[data-theme='bridge'] #app .chrome-end > .d-search-trigger {
  display: none;
}
html[data-theme='bridge'] #app .chrome-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  min-width: 40px;
  width: auto;
  max-width: none;
  padding: 8px 10px;
  margin: 0;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #43566d;
  border-radius: 6px;
  text-decoration: none;
}
html[data-theme='bridge'] #app .chrome-home .icon {
  height: 18px;
  width: 18px;
  flex: 0 0 18px;
  opacity: 1;
}
html[data-theme='bridge'] #app :is(.chrome-home, .rail-toggle):hover {
  background: #edf2f8;
}
html[data-theme='bridge'] #app .chrome-account {
  position: relative;
  flex: 0 0 auto;
}
html[data-theme='bridge'] #app .chrome-account-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink);
}
html[data-theme='bridge'] #app .chrome-account-summary::-webkit-details-marker {
  display: none;
}
html[data-theme='bridge'] #app .chrome-account-summary::marker {
  content: '';
}
html[data-theme='bridge']
  #app
  :is(.chrome-account-summary:hover, .chrome-account[open] > .chrome-account-summary) {
  background: #edf2f8;
}
html[data-theme='bridge'] #app .chrome-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #eaf0f9;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #c3d0e1;
}
html[data-theme='bridge'] #app .chrome-account-label {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 10em;
}
html[data-theme='bridge'] #app .chrome-account-label strong {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme='bridge'] #app .chrome-account-label > span {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #536274;
  line-height: 1.5;
  white-space: nowrap;
}
html[data-theme='bridge'] #app .chrome-account-summary > .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-account:not([open]) > .chrome-account-panel {
  display: none;
}
html[data-theme='bridge'] #app .chrome-account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 296px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 96px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  background: #fff;
  border: 1px solid #acbdcf;
  border-radius: 9px;
  box-shadow: 0 10px 28px #2332471c;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
}
html[data-theme='bridge'] #app .account-panel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 8px 9px;
  color: var(--ink);
}
html[data-theme='bridge'] #app .account-panel-header .chrome-avatar {
  width: 36px;
  height: 36px;
}
html[data-theme='bridge'] #app .account-panel-identity {
  display: grid;
  gap: 2px;
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
html[data-theme='bridge'] #app .account-panel-identity > span {
  color: #536274;
  font-size: 0.8125rem;
}
html[data-theme='bridge'] #app .account-panel-context {
  background: #f1f5f9;
  border-radius: 6px;
}
html[data-theme='bridge'] #app .account-panel-actions {
  display: grid;
  gap: 2px;
}
html[data-theme='bridge'] #app .account-panel-session {
  border-block-start: 1px solid #d3dce6;
  padding-block-start: 5px;
}
html[data-theme='bridge'] #app .chrome-account-panel .account-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: #28455f;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  line-height: 1.6;
}
html[data-theme='bridge'] #app .chrome-account-panel :is(a, button).account-menu-item:hover {
  background: #e7eef7;
}
html[data-theme='bridge'] #app .account-menu-item > .icon {
  width: 18px;
  height: 18px;
  margin: 0;
  color: #3f5972;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-frame {
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100dvh - 64px);
}
html[data-theme='bridge'] #app .chrome-frame.rail-expanded {
  grid-template-columns: 224px minmax(0, 1fr);
}
html[data-theme='bridge'] #app .chrome-frame.rail-compact {
  grid-template-columns: 72px minmax(0, 1fr);
}
html[data-theme='bridge'] #app .chrome-rail {
  position: sticky;
  top: 64px;
  width: 100%;
  height: calc(100dvh - 64px);
  max-height: calc(100dvh - 64px);
  min-height: 0;
  min-width: 0;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  padding: 20px 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: none;
}
html[data-theme='bridge'] #app .chrome-rail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid #d5dfe9;
}
html[data-theme='bridge'] #app .chrome-workspace-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #536274;
}
html[data-theme='bridge'] #app .chrome-workspace-symbol .icon {
  width: 18px;
  height: 18px;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-rail .rail-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3a5168;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
html[data-theme='bridge'] #app .chrome-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
html[data-theme='bridge'] #app .chrome-nav-group {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  border: 0;
  background: none;
  min-width: 0;
}
html[data-theme='bridge'] #app .chrome-nav-label {
  font-size: 0.6875rem;
  line-height: 1.6;
  font-weight: 500;
  color: #5a6d81;
  padding: 0 12px;
  margin: 0 0 5px;
  letter-spacing: 0.025em;
}
html[data-theme='bridge'] #app .chrome-nav-group > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding: 10px 14px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  color: #3d526d;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 110ms ease,
    color 110ms ease;
}
html[data-theme='bridge'] #app .chrome-nav-group > a::before,
html[data-theme='bridge'] #app .chrome-nav-group > a::after {
  content: none;
  display: none;
  box-shadow: none;
  border: 0;
}
html[data-theme='bridge'] #app .chrome-nav-group > a > .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-nav-group > a:hover {
  background: #f1f4f8;
  color: #2d435b;
}
html[data-theme='bridge'] #app .chrome-nav-group > a:active {
  background: #dfe7f1;
}
html[data-theme='bridge'] #app .chrome-nav-group > a[aria-current='page'] {
  background: #e8eef7;
  color: #23468b;
  font-weight: 600;
  border: 0;
  box-shadow: none;
}
html[data-theme='bridge'] #app .chrome-nav-group > a[aria-current='page']:hover {
  background: #dfe8f5;
}
html[data-theme='bridge'] #app .chrome-nav-group > a[aria-current='page']:active {
  background: #d5e1f1;
}
html[data-theme='bridge'] #app .chrome-rail > .sidebar-bottom {
  margin-top: auto;
  padding: 23px 0 0;
  border: 0;
  display: block;
  background: transparent;
}
html[data-theme='bridge'] #app .chrome-utilities {
  padding-top: 12px;
  border-top: 1px solid #d5dfe9;
  display: grid;
  gap: 3px;
}
html[data-theme='bridge'] #app .chrome-utility-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-height: 40px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 20px;
  color: #536274;
  text-decoration: none;
}
html[data-theme='bridge'] #app .chrome-utility-link > .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 1;
}
html[data-theme='bridge'] #app .chrome-utility-link:hover {
  background: #eef2f7;
}
html[data-theme='bridge'] #app .rail-compact .chrome-rail {
  padding: 17px 10px 14px;
}
html[data-theme='bridge'] #app .rail-compact .chrome-rail-head {
  justify-content: center;
  padding: 0 0 12px;
  min-height: 35px;
}
html[data-theme='bridge'] #app .rail-compact :is(.rail-title, .chrome-nav-label) {
  display: none;
}
html[data-theme='bridge'] #app .rail-compact .chrome-nav {
  gap: 16px;
}
html[data-theme='bridge'] #app .rail-compact .chrome-nav-group > a {
  width: 52px;
  padding: 12px 16px;
  gap: 0;
}
html[data-theme='bridge'] #app .rail-compact .chrome-nav-group > a > span,
html[data-theme='bridge'] #app .rail-compact .chrome-utility-link > span {
  display: none;
}
html[data-theme='bridge'] #app .rail-compact .chrome-utility-link {
  width: 44px;
  padding: 12px 13px;
  gap: 0;
  min-height: 44px;
}
html[data-theme='bridge']
  #app
  :is(.chrome-header, .chrome-rail)
  :is(button, a, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  html[data-theme='bridge'] #app .chrome-account {
    position: static;
  }
  html[data-theme='bridge'] #app .chrome-account-panel {
    right: max(12px, env(safe-area-inset-right));
    top: calc(100% + 8px);
    max-width: calc(100% - 24px);
  }
  html[data-theme='bridge'] #app .chrome-header {
    gap: 16px;
    padding-right: 16px;
  }
  html[data-theme='bridge'] #app .chrome-brand {
    flex-basis: 208px;
    gap: 9px;
  }
  html[data-theme='bridge'] #app .chrome-end {
    gap: 10px;
  }
  html[data-theme='bridge'] #app .chrome-home > span {
    display: none;
  }
  html[data-theme='bridge'] #app .chrome-search {
    min-width: 180px;
  }
  html[data-theme='bridge'] #app .chrome-account-label {
    max-width: 8em;
  }
}
@media (max-width: 760px) {
  html[data-theme='bridge'] #app .chrome-header {
    height: 60px;
    min-height: 60px;
    padding: 0 12px;
    gap: 8px;
  }
  html[data-theme='bridge'] #app .chrome-brand {
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
  }
  html[data-theme='bridge'] #app .chrome-brand > .brand {
    width: 132px;
    max-width: 132px;
    flex-basis: 132px;
  }
  html[data-theme='bridge'] #app .chrome-brand .bridge-wordmark {
    width: 132px;
  }
  html[data-theme='bridge'] #app .chrome-brand .rail-toggle {
    display: none;
  }
  html[data-theme='bridge'] #app .chrome-brand .mobile-menu,
  html[data-theme='bridge'] #app .chrome-end > .d-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 11px;
    margin: 0;
  }
  html[data-theme='bridge'] #app .chrome-search {
    display: contents;
  }
  html[data-theme='bridge'] #app .chrome-search #global-search-form {
    display: none;
  }
  html[data-theme='bridge'] #app .chrome-search #global-search-form.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    height: 44px;
    z-index: 80;
    background: #fff;
    box-shadow: 0 5px 15px #23324716;
  }
  html[data-theme='bridge'] #app .chrome-end {
    gap: 4px;
    margin-left: 0;
  }
  html[data-theme='bridge'] #app :is(.chrome-account-label, .chrome-account-summary > .icon) {
    display: none;
  }
  html[data-theme='bridge'] #app .chrome-account-summary {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 6px;
  }
  html[data-theme='bridge'] #app .chrome-home {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
  }
  html[data-theme='bridge'] #app .chrome-frame,
  html[data-theme='bridge'] #app .chrome-frame:is(.rail-expanded, .rail-compact) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme='bridge'] #app .chrome-frame > .chrome-rail {
    position: fixed;
    z-index: 80;
    top: 60px;
    left: 0;
    width: 260px;
    max-width: calc(100vw - 48px);
    height: calc(100dvh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 22px 16px;
  }
  html[data-theme='bridge'] #app .chrome-frame:not(.nav-open) > .chrome-rail {
    display: none;
  }
  html[data-theme='bridge'] #app .chrome-frame.nav-open > .chrome-rail {
    display: flex;
  }
  html[data-theme='bridge'] #app .chrome-frame.nav-open > .d-rail-backdrop {
    display: block;
    position: fixed;
    inset: 60px 0 0;
    z-index: 75;
    background: #23324744;
    border: 0;
    border-radius: 0;
    backdrop-filter: blur(2px);
  }
  html[data-theme='bridge'] #app .chrome-nav-group > a {
    min-height: 44px;
    font-size: 0.875rem;
  }
  html[data-theme='bridge'] #app .chrome-rail .rail-title {
    font-size: 0.875rem;
  }
  html[data-theme='bridge'] #app .chrome-utility-link {
    min-height: 44px;
    font-size: 0.8125rem;
  }
  html[data-theme='bridge'] #app .chrome-rail > .sidebar-bottom {
    margin-top: 28px;
    padding-top: 0;
  }
}
@media (max-width: 420px) {
  html[data-theme='bridge'] #app .chrome-home {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme='bridge'] #app :is(.chrome-header, .chrome-rail, .chrome-frame) * {
    transition: none;
    animation: none;
  }
}
