:root {
  --ucmu-sidebar-w: 292px;
  --ucmu-sidebar-compact-w: 92px;
  --ucmu-sidebar-width: var(--ucmu-sidebar-w);
  --ucmu-work-zone-w: 980px;
  --ucmu-work-pad-x: 14px;
  --ucmu-work-pad-y: 18px;
  --ucmu-site-w: calc(var(--ucmu-sidebar-w) + var(--ucmu-work-zone-w));
  --ucmu-mobile-nav-h: 76px;
}









.ucmu-shell {
  width: min(100%, var(--ucmu-site-w));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--ucmu-sidebar-w) minmax(0, 1fr);
  color: var(--ucmu-text);
}

.ucmu-sidebar {
  position: sticky;
  top: 0;
  width: var(--ucmu-sidebar-w);
  height: 100vh;
  box-sizing: border-box;
  padding: 22px 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  background: linear-gradient(180deg, #343b44 0%, #293039 56%, #20262d 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 50px rgba(31,38,50,.12);
  overflow: hidden;
}

.ucmu-sidebar,
.ucmu-sidebar * {
  -webkit-user-select: none;
  user-select: none;
}

.ucmu-brand {
  min-height: 62px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ucmu-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: block;
  background: radial-gradient(circle at 35% 30%, #fff 0 7px, transparent 8px), linear-gradient(135deg, var(--ucmu-red), #681018);
  box-shadow: 0 14px 30px rgba(215,38,49,.22);
}

.ucmu-brand-copy,
.ucmu-nav-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ucmu-brand-copy b,
.ucmu-nav-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
}

.ucmu-brand-copy small,
.ucmu-nav-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 800;
}

.ucmu-nav {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  scrollbar-width: none;
}

.ucmu-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ucmu-nav-item,
.ucmu-collapse-button {
  width: 100%;
  border: 0;
  border-radius: 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.86);
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 28px rgba(0,0,0,.055);
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ucmu-nav-item {
  min-height: 62px;
  padding: 10px 12px;
}

.ucmu-nav-item:hover,
.ucmu-collapse-button:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.ucmu-nav-item:active,
.ucmu-collapse-button:active {
  transform: scale(.985);
}

.ucmu-nav-item.active,
.ucmu-nav-item[aria-current="page"] {
  background: var(--ucmu-red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(215,38,49,.22);
}

.ucmu-nav-item.active b,
.ucmu-nav-item.active small,
.ucmu-nav-item[aria-current="page"] b,
.ucmu-nav-item[aria-current="page"] small {
  color: #fff;
}

.ucmu-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: currentColor;
  font-size: 15px;
  font-weight: 950;
}

.ucmu-hub-mark {
  font-size: 11px;
  letter-spacing: .04em;
}

.ucmu-sidebar-bottom {
  display: grid;
  gap: 10px;
}

.ucmu-favorites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}

.ucmu-favorites-head button {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.64);
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.ucmu-collapse-button {
  min-height: 46px;
  padding: 9px 12px;
}

.ucmu-collapse-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  font-size: 22px;
  font-weight: 950;
}

.ucmu-collapse-label {
  color: currentColor;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.ucmu-work {
  min-width: 0;
  width: min(100%, var(--ucmu-work-zone-w));
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0;
  overflow-x: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(244,246,249,.58));
  
}

.ucmu-route-mount {
  width: 100%;
  min-width: 0;
}

.ucmu-shell.is-collapsed {
  --ucmu-sidebar-w: var(--ucmu-sidebar-compact-w);
  --ucmu-sidebar-width: var(--ucmu-sidebar-w);
  --ucmu-site-w: calc(var(--ucmu-sidebar-w) + var(--ucmu-work-zone-w));
}

.ucmu-shell.is-collapsed .ucmu-sidebar {
  width: var(--ucmu-sidebar-w);
  padding-left: 12px;
  padding-right: 12px;
}

.ucmu-shell.is-collapsed .ucmu-brand {
  grid-template-columns: 1fr;
  justify-items: center;
}

.ucmu-shell.is-collapsed .ucmu-brand-copy,
.ucmu-shell.is-collapsed .ucmu-nav-copy,
.ucmu-shell.is-collapsed .ucmu-hub-copy,
.ucmu-shell.is-collapsed .ucmu-favorites-head,
.ucmu-shell.is-collapsed .ucmu-collapse-label {
  display: none;
}

.ucmu-shell.is-collapsed .ucmu-nav-item,
.ucmu-shell.is-collapsed .ucmu-hub-card,
.ucmu-shell.is-collapsed .ucmu-collapse-button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.ucmu-shell.is-collapsed .ucmu-collapse-arrow {
  transform: rotate(180deg);
}

@media (max-width: 1180px) {
  :root {
    --ucmu-sidebar-w: var(--ucmu-sidebar-compact-w);
    --ucmu-sidebar-width: var(--ucmu-sidebar-w);
  }

  .ucmu-brand {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .ucmu-brand-copy,
  .ucmu-nav-copy,
  .ucmu-hub-copy,
  .ucmu-favorites-head,
  .ucmu-collapse-label {
    display: none;
  }

  .ucmu-nav-item,
  .ucmu-hub-card,
  .ucmu-collapse-button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --ucmu-sidebar-w: 0px;
    --ucmu-sidebar-width: 0px;
    --ucmu-work-zone-w: 100%;
    --ucmu-work-pad-x: 12px;
    --ucmu-work-pad-y: 10px;
    --ucmu-mobile-nav-h: 66px;
    --ucmu-route-bg: #eef1f5;
    --ucmu-route-surface: #fff;
    --ucmu-route-surface-2: #f5f6f8;
    --ucmu-route-text: #242b33;
    --ucmu-route-muted: rgba(47,54,62,.62);
    --ucmu-route-accent: var(--ucmu-red);
    --ucmu-system-bar: #eef1f5;
  }

  html:has(.ucmu-shell),
  body:has(.ucmu-shell),
  body:has(.ucmu-shell) #app {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--ucmu-system-bar);
  }

  .ucmu-shell,
  .ucmu-shell.is-collapsed {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    color: var(--ucmu-route-text);
    background:
      radial-gradient(circle at 90% 0%, rgba(215,38,49,.08), transparent 34%), linear-gradient(180deg, #f7f8fa 0%, var(--ucmu-route-bg) 48%, #e7ebf1 100%);
  }

  .ucmu-work {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(var(--ucmu-mobile-nav-h) + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: calc(10px + env(safe-area-inset-top)) 12px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: var(--ucmu-route-bg);
  }

  .ucmu-route-mount,
  .ucmu-screen {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .ucmu-mobile-title {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .ucmu-mobile-title small {
    color: var(--ucmu-route-muted);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .ucmu-mobile-title b {
    color: var(--ucmu-route-text);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.03em;
  }

  .ucmu-mobile-action {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    color: var(--ucmu-route-text);
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
  }

  .ucmu-sidebar,
  .ucmu-shell.is-collapsed .ucmu-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 60;
    width: 100%;
    max-width: 100%;
    height: calc(var(--ucmu-mobile-nav-h) + env(safe-area-inset-bottom));
    min-height: calc(var(--ucmu-mobile-nav-h) + env(safe-area-inset-bottom));
    box-sizing: border-box;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    overflow: hidden;
    background: rgba(255,255,255,.94);
    border: 0;
    border-top: 1px solid rgba(31,38,50,.08);
    box-shadow: 0 -16px 42px rgba(31,38,50,.12);
    backdrop-filter: blur(18px);
  }

  .ucmu-brand,
  .ucmu-favorites,
  .ucmu-sidebar-bottom,
  .ucmu-collapse-button {
    display: none;
  }

  .ucmu-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 430px;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    padding: 0;
  }

  .ucmu-nav-item,
  .ucmu-hub-card,
  .ucmu-shell.is-collapsed .ucmu-nav-item,
  .ucmu-shell.is-collapsed .ucmu-hub-card {
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 54px;
    padding: 5px 2px 4px;
    display: grid;
    grid-template-rows: 27px 1fr;
    place-items: center;
    gap: 2px;
    border-radius: 16px;
    background: transparent;
    color: rgba(47,54,62,.62);
    box-shadow: none;
    text-align: center;
  }

  .ucmu-nav-item.active,
  .ucmu-nav-item[aria-current="page"] {
    color: var(--ucmu-route-accent);
    background: rgba(215,38,49,.08);
    box-shadow: none;
  }

  .ucmu-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: transparent;
    font-size: 16px;
    line-height: 1;
  }

  .ucmu-nav-item.active .ucmu-nav-icon,
  .ucmu-nav-item[aria-current="page"] .ucmu-nav-icon {
    background: rgba(215,38,49,.14);
  }

  .ucmu-nav-copy,
  .ucmu-shell.is-collapsed .ucmu-nav-copy,
  .ucmu-hub-copy,
  .ucmu-shell.is-collapsed .ucmu-hub-copy {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .ucmu-nav-copy b,
  .ucmu-hub-copy b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: currentColor;
    font-size: 9px;
    line-height: 1.05;
    letter-spacing: .02em;
  }

  .ucmu-nav-copy small,
  .ucmu-hub-copy small {
    display: none;
  }

  .ucmu-page-head,
  .ucmu-screen-head,
  .ucmu-panel {
    background: var(--ucmu-route-surface);
    border: 1px solid rgba(31,38,50,.07);
    box-shadow: 0 14px 34px rgba(31,38,50,.08);
    color: var(--ucmu-route-text);
  }

  .ucmu-page-head,
  .ucmu-screen-head {
    margin: 0 0 12px;
    padding: 14px 14px 12px;
    border-radius: 22px;
  }

  .ucmu-page-head h1 {
    font-size: 21px;
    line-height: 1.05;
  }
}

.ucmu-route-mount{position:relative;min-width:0;max-width:100%;overflow-x:hidden}
.ucmu-route-loading,.ucmu-route-error{min-height:220px;display:grid;place-items:center;align-content:center;gap:8px;color:var(--ucmu-muted);text-align:center}
.ucmu-route-loading b,.ucmu-route-error b{color:var(--ucmu-text);font-size:13px;font-weight:950;letter-spacing:.18em}
.ucmu-route-loading span,.ucmu-route-error span{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.12em}
.ucmu-search-icon{position:relative;display:block;width:21px;height:21px;color:currentColor}
.ucmu-search-icon::before{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border:2px solid currentColor;border-radius:50%;box-sizing:border-box}
.ucmu-search-icon::after{content:"";position:absolute;left:13px;top:14px;width:8px;height:2px;border-radius:999px;background:currentColor;transform:rotate(45deg);transform-origin:left center}

/* SHELL_LEFT_MENU_BACKGROUND_VISUAL_CONTRACT_V1 | owner:shell/layout | theme-ready */
:root{--ucmu-theme-page-bg:#171a1f;--ucmu-theme-shell-bg:#2b2f35;--ucmu-theme-shell-item-bg:rgba(255,255,255,.045);--ucmu-theme-shell-item-hover:rgba(255,255,255,.075);--ucmu-theme-work-bg:#fff;--ucmu-theme-selected-bg:#fff;--ucmu-theme-selected-text:#20242a;--ucmu-theme-shell-text:rgba(255,255,255,.86);--ucmu-theme-shell-muted:rgba(255,255,255,.52);--ucmu-work-zone-w:900px}
html,body,#app{min-height:100%;background:var(--ucmu-theme-page-bg)}
body{user-select:none;-webkit-user-select:none}
.ucmu-route-mount :where(p,span,b,strong,em,small,time,h1,h2,h3,h4,h5,h6,article,li,a,input,textarea,[contenteditable="true"],[data-chat-message-text]){user-select:text;-webkit-user-select:text}
.ucmu-shell{background:var(--ucmu-theme-page-bg);max-width:calc(var(--ucmu-sidebar-w) + var(--ucmu-work-zone-w));margin:0 auto}
.ucmu-sidebar{background:var(--ucmu-theme-shell-bg);color:var(--ucmu-theme-shell-text)}
.ucmu-sidebar *{color:inherit}
.ucmu-route-mount{background:var(--ucmu-theme-work-bg)}
.ucmu-nav{margin-top:clamp(86px,18vh,150px);align-content:start}
.ucmu-nav-item,.ucmu-collapse-button{background:var(--ucmu-theme-shell-item-bg);color:var(--ucmu-theme-shell-text);box-shadow:none}
.ucmu-nav-item{min-height:56px;border-radius:22px}
.ucmu-nav-item:hover,.ucmu-collapse-button:hover{background:var(--ucmu-theme-shell-item-hover);color:#fff}
.ucmu-nav-copy small{display:none}
.ucmu-nav-copy b{color:inherit;font-size:15px;letter-spacing:.08em}
.ucmu-nav-icon{background:rgba(255,255,255,.07);color:rgba(255,255,255,.82)}
.ucmu-nav-item.active,.ucmu-nav-item[aria-current="page"]{background:var(--ucmu-theme-selected-bg);color:var(--ucmu-theme-selected-text);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.ucmu-nav-item.active b,.ucmu-nav-item[aria-current="page"] b{color:var(--ucmu-theme-selected-text)}
.ucmu-nav-item.active .ucmu-nav-icon,.ucmu-nav-item[aria-current="page"] .ucmu-nav-icon{background:var(--ucmu-theme-shell-bg);color:#fff}
.ucmu-collapse-button{justify-content:center;min-height:42px;padding:0 16px;border-radius:18px}
.ucmu-collapse-arrow{display:none}
.ucmu-collapse-label{color:inherit;font-size:11px;letter-spacing:.12em}
.ucmu-shell.is-collapsed .ucmu-collapse-button{padding:0}
.ucmu-shell.is-collapsed .ucmu-collapse-label{writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.16em}
@media(max-width:900px){.ucmu-shell{max-width:none}.ucmu-nav{margin-top:0}}

/* SHELL_FIXED_WORKSPACE_FRAME_V1 | owner:shell/layout */
@media(min-width:901px){
html,body,#app{width:100%;height:100%;min-height:100%;overflow:hidden}
body{scrollbar-gutter:auto}
.ucmu-shell{width:calc(var(--ucmu-sidebar-w) + var(--ucmu-work-zone-w));max-width:calc(100vw - 32px);height:100dvh;min-height:100dvh;overflow:hidden;grid-template-columns:var(--ucmu-sidebar-w) minmax(0,var(--ucmu-work-zone-w))}
.ucmu-sidebar{width:var(--ucmu-sidebar-w);min-width:var(--ucmu-sidebar-w);height:100dvh;overflow:hidden}
.ucmu-route-mount{width:var(--ucmu-work-zone-w);max-width:var(--ucmu-work-zone-w);min-width:0;height:100dvh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:auto}
.ucmu-shell.is-collapsed{width:calc(var(--ucmu-sidebar-compact-w) + var(--ucmu-work-zone-w));grid-template-columns:var(--ucmu-sidebar-compact-w) minmax(0,var(--ucmu-work-zone-w))}
.ucmu-shell.is-collapsed .ucmu-sidebar{width:var(--ucmu-sidebar-compact-w);min-width:var(--ucmu-sidebar-compact-w)}
}

/* STEP2B_FLUSH_WORKSPACE_LIST_HEADERS_V1 | owner:shell/layout */
.ucmu-shell{gap:0}.ucmu-main{width:var(--ucmu-work-zone-w);max-width:var(--ucmu-work-zone-w);padding:0;margin:0;overflow:hidden;background:var(--ucmu-theme-work-bg)}.ucmu-route-mount{width:100%;max-width:100%;border-radius:0;background:var(--ucmu-theme-work-bg)}

/* FIX_WORKSPACE_GAP_ONLY_V1 | owner:shell/layout | flush frame and single route scrollbar */
@media (min-width:901px){
  html:has(.ucmu-shell),
  body:has(.ucmu-shell),
  body:has(.ucmu-shell) #app{
    width:100%;
    height:100%;
    min-height:100%;
    margin:0;
    overflow:hidden;
    background:var(--ucmu-theme-page-bg);
  }

  .ucmu-shell{
    width:calc(var(--ucmu-sidebar-w) + var(--ucmu-work-zone-w));
    max-width:100vw;
    height:100vh;
    min-height:100vh;
    margin:0 auto;
    padding:0;
    gap:0;
    grid-template-columns:var(--ucmu-sidebar-w) var(--ucmu-work-zone-w);
    align-items:stretch;
    overflow:hidden;
    background:var(--ucmu-theme-page-bg);
  }

  .ucmu-shell.is-collapsed{
    width:calc(var(--ucmu-sidebar-compact-w) + var(--ucmu-work-zone-w));
    grid-template-columns:var(--ucmu-sidebar-compact-w) var(--ucmu-work-zone-w);
  }

  .ucmu-sidebar{
    height:100vh;
    min-height:100vh;
    margin:0;
    overflow:hidden;
  }

  .ucmu-main{
    width:var(--ucmu-work-zone-w);
    max-width:var(--ucmu-work-zone-w);
    min-width:0;
    height:100vh;
    min-height:100vh;
    margin:0;
    padding:0;
    overflow:hidden;
    background:var(--ucmu-theme-work-bg);
  }

  .ucmu-route-mount{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    height:100vh;
    max-height:100vh;
    margin:0;
    border-radius:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-gutter:auto;
    background:var(--ucmu-theme-work-bg);
  }
}
/* CONSOLIDATE_SHELL_FRAME_NO_PAD_LAYER_V1 | owner:shell/layout | normalized existing frame rules, no extra pad layer */

/* UCMU_SCROLL_RAIL_OWNER | shell/layout */
@media(min-width:901px){
  .ucmu-route-mount{
    scrollbar-width:none;
    -ms-overflow-style:none;
    scrollbar-gutter:auto;
  }
  .ucmu-route-mount::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
  }
  .ucmu-shell-scroll-rail{
    position:fixed;
    z-index:420;
    width:10px;
    pointer-events:none;
    touch-action:none;
    user-select:none;
  }
  .ucmu-shell-scroll-rail[hidden]{display:none}
  .ucmu-shell-scroll-rail>i{
    position:absolute;
    inset:0;
    display:block;
    background:transparent;
    pointer-events:none;
  }
  .ucmu-shell-scroll-rail>i>b{
    position:absolute;
    left:2px;
    top:0;
    width:6px;
    min-height:44px;
    display:block;
    border-radius:999px;
    background:rgba(255,255,255,.74);
    box-shadow:0 3px 10px rgba(0,0,0,.28);
    cursor:grab;
    pointer-events:auto;
    will-change:transform;
  }
  .ucmu-shell-scroll-rail.is-dragging>i>b{
    cursor:grabbing;
    background:#fff;
  }
}
@media(max-width:900px){.ucmu-shell-scroll-rail{display:none}}

/* UCMU_WORK_POSITION_OWNER */
.ucmu-work{position:relative}
