/*
 * Sidebar L4 Candidate v3 — final isolated Local Visual Shell.
 * Direct source hierarchy and declarations:
 * /Users/mmx/Documents/Codex/2026-08-06/v/app/page.tsx
 * /Users/mmx/Documents/Codex/2026-08-06/v/app/globals.css
 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 164px;
  padding: 26px 14px;
  background: #fff;
  color: #1e293b;
  border-right: 1px solid #eeeef0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.rail .brand {
  display: flex;
  align-items: center;
  width: 135px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  gap: 8px;
  color: #15243d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.rail .brand > span:last-child {
  display: block;
  margin: 0;
  padding: 0;
  color: #15243d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.rail .brand small {
  display: inline;
  margin: 0;
  padding: 0;
  color: #a1a1a6;
  opacity: 1;
  font-family: inherit;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .12em;
}

.rail .brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #ff2442;
  color: #fff;
  font-family: ui-monospace;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(255,36,66,.13);
}

.rail nav {
  margin: 54px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.rail nav .nav-group {
  margin: 0;
  padding: 0 10px;
  color: #999;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.rail nav .nav-group:not(:first-child) {
  margin-top: 14px;
}

.rail nav button {
  width: 135px;
  height: 45.5px;
  min-height: 45.5px;
  margin: 0;
  padding: 13px 10px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #666;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: none;
}

.rail nav button:hover {
  background: #fafafa;
  color: #666;
}

.rail nav button.active,
.rail nav button.active:hover {
  color: #245fc5;
  background: #edf3ff;
  box-shadow: none;
}

.rail nav button > span {
  display: block;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #bbb;
  font: 400 10px/normal ui-monospace;
}

.rail nav button.active > span {
  color: #668bd0;
}

.rail-bottom {
  width: 135px;
  margin-top: auto;
}

.rail-user {
  width: 135px;
  height: 66px;
  margin: 0;
  padding: 12px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: transparent;
  color: #1e293b;
  font-family: inherit;
}

.rail-user strong {
  display: block;
  margin: 0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.rail-user span {
  display: block;
  margin: 0;
  color: #999;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.rail-note {
  width: 135px;
  height: 101px;
  margin: 0;
  padding: 18px 5px;
  border-top: 1px solid #f0f0f0;
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.rail-note b {
  margin: 0;
  padding: 0;
  color: #999;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.rail-note span {
  margin: 0;
  padding: 0;
  color: #1e293b;
  font: 400 11px/normal ui-monospace;
}

.rail-note i {
  margin: 0;
  padding: 0;
  color: #2b68d3;
  font-family: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.app-shell {
  margin-left: 164px;
}

@media (max-width: 820px) {
  .rail {
    position: static;
    width: auto;
    padding: 20px 14px;
    border-right: 0;
    border-bottom: 1px solid #eeeef0;
  }

  .rail-bottom {
    margin-top: 18px;
  }

  .app-shell {
    margin-left: 0;
  }
}
