.workLinks {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 6px 10px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid #e1e5f0;
  background: #f8f9fc;
}
.workLinks[hidden], .workLinks a[hidden] { display: none; }
.workLinks a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 10px;
  color: #48536a;
  font-size: .875rem;
  line-height: 1.35;
  text-decoration: none;
}
.workLinks a:hover, .workLinks a:focus-visible { background: #eaedf6; }
.workLinks a:focus-visible { outline: 2px solid #6176c4; }
.workLinks a[aria-current] { background: #e8edfc; color: #334d9f; font-weight: 650; }
.workLinks svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chatPage { display: grid; grid-template-columns: 245px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.chatPage #rail { grid-area: 1 / 1; min-height: 0; width: 100%; }
.chatPage .workspace { grid-area: 1 / 2 / 3 / 3; min-height: 0; }
.chatPage .workLinks { grid-area: 2 / 1; border-right: 1px solid #e1e5f0; }
.opsPage .workLinks { position: fixed; z-index: 2; bottom: 0; left: 0; padding-left: max(10px, env(safe-area-inset-left)); border: 1px solid #e1e5f0; border-width: 1px 1px 0 0; border-radius: 0 14px 0 0; }
.opsPage main.shell { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 760px) {
  .chatPage { grid-template-columns: minmax(0, 1fr); }
  .chatPage .workspace { grid-area: 1 / 1; }
  .chatPage .workLinks { grid-area: 2 / 1; border-right: 0; }
  .workLinks { padding-left: max(12px, env(safe-area-inset-left)); background: white; }
  .opsPage .workLinks { width: 100%; border-radius: 0; border-right: 0; }
  .chatPage:has(.workLinks:not([hidden])) footer { padding-bottom: 3px; }
}
