#root[hidden] { display: none !important; }
.risen-boot-gate:not([hidden]) {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow: auto;
  color: #f4f6fa;
  background: #12151b;
  font-family: system-ui, sans-serif;
}
.risen-boot-card {
  width: min(100%, 440px);
  padding: 26px;
  border: 1px solid rgba(170, 185, 208, .2);
  border-radius: 20px;
  background: #1d222b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.risen-boot-eyebrow { margin: 0 0 12px; color: #a8b5c8; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.risen-boot-card h1 { margin: 0 0 10px; font-size: clamp(23px, 6vw, 30px); line-height: 1.15; }
.risen-boot-copy { margin: 0 0 22px; color: #c0c8d4; line-height: 1.5; }
.risen-boot-field { display: grid; gap: 8px; color: #c0c8d4; font-size: 13px; }
.risen-boot-field select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #475365; border-radius: 10px; color: #f4f6fa; background: #151922; font: inherit; }
.risen-boot-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.risen-boot-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; color: #10151d; background: #c8dcff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.risen-boot-link { color: #c8dcff; font-size: 13px; text-decoration: none; }
.risen-boot-link:hover, .risen-boot-link:focus-visible { text-decoration: underline; }
@media (max-width: 520px) {
  .risen-boot-card { padding: 22px; }
}

/* Gate занимает только нативную область, не закрывая навигацию платформы. */
.workspace-coding .risen-boot-gate:not([hidden]) { position: absolute; inset: 0; z-index: 10; }

/* Каталог вставлен в штатный sidebar через Cordis slot. */
.risen-native-conversations { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow: auto; padding: 8px 12px 16px; color: var(--dsw-alias-label-primary,CanvasText); font: 14px system-ui,sans-serif; }
.risen-native-conversations h2 { margin: 20px 8px 6px; color: var(--dsw-alias-label-secondary,#666); font-size: 12px; font-weight: 600; }
.risen-native-search { display: grid; gap: 6px; margin: 4px 0 8px; }
.risen-native-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.risen-native-search input { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--dsw-alias-border-l2,#ddd); border-radius: 6px; background: var(--dsw-alias-bg-base,Canvas); color: inherit; font: inherit; }
.risen-native-conversation { display: grid; gap: 4px; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.risen-native-conversation small { color: var(--dsw-alias-label-secondary,#666); font-size: 11px; }
.risen-native-conversation[aria-current='page'] { border-color: currentColor; font-weight: 600; }
.risen-native-conversation:hover { background: var(--dsw-alias-bg-layer-1,#eee); }
.risen-native-conversation:disabled { opacity: .6; cursor: default; }
.risen-native-project > .risen-native-conversation ~ .risen-native-conversation { width: calc(100% - 14px); margin-left: 14px; font-size: 12px; }
.risen-native-more { min-height: 40px; margin: 4px 0; padding: 8px 12px; border: 1px solid var(--dsw-alias-border-l2,#ddd); border-radius: 6px; background: var(--dsw-alias-bg-base,Canvas); color: inherit; font: 12px system-ui,sans-serif; cursor: pointer; }
.risen-native-shared-home { padding: 10px; color: inherit; font-size: 12px; text-underline-offset: 3px; }
.risen-native-nav-status { margin: 8px; font-size: 12px; color: var(--dsw-alias-label-secondary,#666); line-height: 1.5; }
.risen-native-conversations :is(button,input,a):focus-visible,.risen-native-conversations-expand:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.risen-native-conversations-expand { display: block; width: 40px; height: 44px; margin: 4px auto; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.risen-native-switch-status { display: grid; place-content: center; justify-items: center; gap: 12px; height: 100%; padding: 24px; color: var(--dsw-alias-label-primary,CanvasText); font: 14px system-ui,sans-serif; text-align: center; }
@media(max-width:520px) { .risen-native-search input { font-size: 16px; }.risen-native-conversation { min-height: 48px; } }
.risen-offline-shell { display: grid; grid-template-columns: minmax(220px,280px) minmax(0,1fr); height: 100%; min-height: 360px; color: var(--text,CanvasText); background: var(--bg,Canvas); }
.risen-offline-shell > nav { border-right: 1px solid var(--line,#ddd); }
@media(max-width:600px) { .risen-offline-shell { grid-template-columns: 1fr; grid-template-rows: minmax(180px,1fr) auto; }.risen-offline-shell > nav { max-height: 55dvh; border-right: 0; border-bottom: 1px solid var(--line,#ddd); }.risen-offline-shell .risen-native-switch-status { min-height: 120px; } }

/* Штатный WorkspaceBrowser рисует строки и раскрытие; каталог не предоставляет
   rename/delete/new-session/reorder RPC. Скрываем их штатные affordance только
   в этой узкой области. Даты отсутствующих гостевых метаданных не выдумываем. */
.risen-native-directories { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
.risen-native-directories > :first-child { flex:1; min-height:0; }
.risen-native-directories .YDXeBa_rowActions,
.risen-native-directories .YDXeBa_time,
.risen-native-directories .YDXeBa_hoverTime,
.risen-native-directories button[aria-label='Add workspace'],
.risen-native-directories button[aria-label='添加工作区'],
.risen-native-directories button[aria-label='Добавить пространство'],
.risen-native-directories button[aria-label='Arbeitsbereich hinzufügen'] { display:none!important; }
.risen-native-directory-footer { flex:none; max-height:30%; overflow:auto; padding:0 12px 6px; }
.risen-native-directory-footer:has(> .risen-native-more) { border-top:1px solid var(--dsw-alias-stroke-primary,#ddd); }
.risen-native-directory-footer .risen-native-more { display:block; width:100%; text-align:left; }
.risen-native-directory-footer .risen-native-nav-status:empty { display:none; }
/* Верхние native creation/management пути не входят в scoped adapter. */
#root button[aria-label='New session'],#root button[aria-label='New Session'],
#root button[aria-label='新会话'],#root button[aria-label='Plugins'],
#root button[aria-label='插件'] { display:none!important; }
/* Hover карточка портальная: отсутствие дат относится и к её времени создания. */
body:has(.risen-native-directories) .YDXeBa_hoverTime { display:none!important; }
