/* Shared navigation and page shell for every OBM module. */
.sidebar {
  width:242px;
  background:#122c32;
  color:#c1ced0;
  position:fixed;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  padding:30px 18px 16px;
  z-index:30;
  overflow-y:auto
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 10px;
  color:#fff;
  font-size:23px;
  letter-spacing:1.1px
}
.brand strong {
  font-weight:400;
  opacity:.76
}
.brand small {
  white-space:nowrap;
  display:block;
  font-size:9px;
  letter-spacing:1.7px;
  color:#829c9f;
  margin-top:5px
}
.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#218b7c;
  color:white;
  border-radius:11px;
  width:42px;
  height:42px;
  font-size:26px;
  font-weight:650;
  position:relative;
  line-height:1
}
.brand-mark>span {
  position:absolute;
  background:#9cddc1;
  top:8px;
  right:7px;
  height:8px;
  width:8px;
  border-radius:2px;
  box-shadow:-2px 2px 0 #218b7c
}
.workspace-label {
  border:1px solid #365056;
  background:#1b373d;
  border-radius:8px;
  padding:12px 10px;
  display:flex;
  gap:10px;
  align-items:center;
  margin:34px 7px 30px
}
.workspace-avatar {
  width:30px;
  height:30px;
  border-radius:7px;
  background:#315057;
  display:grid;
  place-items:center;
  font-size:13px;
  color:#e0e9e8
}
.workspace-label strong {
  font-size:12px;
  color:#e3ebeb;
  display:block
}
.workspace-label small {
  font-size:10px;
  color:#8aa4a7;
  display:block;
  margin-top:5px
}
.workspace-dot {
  width:6px;
  height:6px;
  background:#72c6a8;
  border-radius:50%;
  margin-left:auto
}
.sidebar > nav {
  margin-top:28px
}
.nav-group {
  font-size:11px;
  letter-spacing:1.2px;
  color:#7d999d;
  margin:0 14px 12px
}
.nav-group-second {
  margin-top:31px
}
.nav-item {
  height:46px;
  display:flex;
  gap:13px;
  align-items:center;
  border-radius:7px;
  padding:0 14px;
  margin-bottom:5px;
  font-size:13px;
  position:relative;
  transition:background .15s
}
.nav-item svg {
  width:18px;
  height:18px;
  opacity:.85
}
.nav-item:hover {
  background:#1b3940;
  color:white
}
.nav-item.active {
  background:#245047;
  color:#e4fff1
}
.nav-item.active:before {
  content:"";
  width:3px;
  position:absolute;
  left:-18px;
  top:12px;
  bottom:12px;
  background:#8ed6b6;
  border-radius:0 3px 3px 0
}
.nav-badge {
  margin-left:auto;
  font-size:9px;
  color:#a7bcbe;
  background:#2a4349;
  border-radius:4px;
  padding:3px 5px;
  white-space:nowrap
}
.sidebar .nav-todo-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:10px;
  background:#e59a45;
  color:#152d31;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  line-height:20px
}
.sidebar .nav-item.active .nav-todo-badge { background:#f3b25e; }
.sidebar-bottom {
  margin-top:auto;
  padding-top:30px
}
.foundation-note {
  border:1px solid #304b51;
  border-radius:9px;
  margin:0 7px 23px;
  padding:17px 13px
}
.foundation-note svg {
  color:#8ec5b2;
  width:19px;
  height:19px;
  margin-bottom:10px
}
.foundation-note strong {
  display:block;
  font-size:12px;
  color:#d2e1df
}
.foundation-note p {
  font-size:11px;
  line-height:1.8;
  color:#829fa2;
  margin:8px 0 0
}
.sidebar-version {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#8aa2a6;
  padding:0 12px
}
.sidebar-version>span:last-child {
  margin-left:auto;
  color:#667f84
}
.status-dot {
  width:6px;
  height:6px;
  display:inline-block;
  border-radius:50%;
  background:#3da280
}
.main-shell {
  margin-left:242px;
  width:calc(100% - 242px);
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.topbar {
  height:76px;
  border-bottom:1px solid #e8edef;
  background:white;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 36px;
  gap:20px
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:12px;
  color:#78848f
}
.breadcrumb strong {
  color:#45535d
}
.crumb-sep {
  color:#c5ced1
}
.topbar-right {
  display:flex;
  gap:16px;
  align-items:center
}
.today {
  color:#839098;
  font-size:11px
}

.sidebar, .topbar { font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
.sidebar { box-sizing:border-box; }
.sidebar a { text-decoration:none; }
.sidebar .brand { color:#fff; }
.sidebar .nav-item { color:#c1ced0; }
.sidebar .nav-item:hover { color:#fff; }
.sidebar .nav-item.active { color:#e4fff1; }
.sidebar [hidden] { display:none!important; }
.sidebar p { line-height:1.8; }
.sidebar svg, .topbar svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.sidebar .nav-item svg { width:18px; height:18px; }
.sidebar .foundation-note svg { width:19px; height:19px; }
.sidebar a:focus-visible, .menu-toggle:focus-visible { outline:3px solid #70bcac; outline-offset:3px; }
.topbar { flex-shrink:0; }
.topbar .menu-toggle { display:none; background:transparent; place-items:center; width:32px; height:32px; border:0; border-radius:6px; padding:0; color:#839199; cursor:pointer; flex-shrink:0; }
.topbar .menu-toggle svg { width:18px; height:18px; }
.topbar .menu-toggle:hover { background:#f0f4f4; }
.topbar .return-workspace { display:inline-flex; align-items:center; justify-content:center; height:36px; padding:0 15px; font-size:12px; font-weight:500; color:#52636e; background:#fff; border:1px solid #dde5e8; border-radius:6px; white-space:nowrap; }
.sidebar-shade { display:none; border:0; padding:0; }
@media(max-width:1100px) {
  .sidebar { width:216px; padding-left:14px; padding-right:14px; }
  .main-shell { margin-left:216px; width:calc(100% - 216px); }
  .topbar { padding:0 26px; }
}
@media(max-width:840px) {
  .sidebar { width:205px; }
  .main-shell { margin-left:205px; width:calc(100% - 205px); }
  .topbar { padding:0 20px; height:67px; }
}
@media(max-width:620px) {
  .sidebar { transform:translateX(-100%); transition:transform .2s; width:242px; }
  .nav-open .sidebar { transform:translateX(0); }
  .nav-open .sidebar-shade { display:block; position:fixed; inset:0; background:#122c3277; z-index:29; }
  .main-shell { margin-left:0; width:100%; }
  .topbar .menu-toggle { display:grid; }
  .topbar { height:64px; padding:0 16px; gap:8px; }
  .breadcrumb { gap:8px; font-size:11px; }
  .topbar-right { gap:10px; }
  .topbar .return-workspace { font-size:11px; height:32px; padding:0 10px; }
}
@media(prefers-reduced-motion:reduce) { .sidebar { transition:none; } }
