/* Shell. Cards keep their own styles. Light theme only. */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}
.shell-aside {
  width: 232px;
  flex: 0 0 232px;
  background: var(--surface, #fff);
  border-right: 1px solid var(--line, #d8dde3);
  padding: 12px 8px;
}
.shell-main { flex: 1; min-width: 0; }
.shell-nav-toggle { display: none; min-width: 24px; min-height: 24px; }
.shell-group { margin: 12px 8px 4px; font-size: 11px; letter-spacing: .04em; color: #5c6570; }
.shell-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
}
.shell-link[aria-current="page"] {
  background: #e7f2ec;
  box-shadow: inset 3px 0 0 #1b5e46;
}
.shell-link:focus-visible { outline: 2px solid #1b5e46; outline-offset: 2px; }
.section-actions { display: flex; gap: 8px; padding: 8px 16px 0; flex-wrap: wrap; }
.section-actions [data-create] { display: none; }
.section-actions [data-create].is-current { display: inline-flex; }
.section-actions [hidden] { display: none !important; }
.user-menu {
  position: absolute;
  right: 12px;
  top: 52px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line, #d8dde3);
  border-radius: 8px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.user-menu button, .user-menu .btn { display: block; width: 100%; text-align: left; margin-top: 4px; min-height: 32px; }
#shellLink[data-state="off"] { color: #8a4b08; }
.admin-host { padding: 12px 16px; }
.admin-host table { width: 100%; border-collapse: collapse; }
.admin-host td, .admin-host th { border-bottom: 1px solid #e4e7eb; padding: 6px 8px; text-align: left; font-size: 14px; }
.shell-service-note { font-size: 12px; color: #5c6570; margin: 8px; }
@media (max-width: 1099px) {
  .shell-aside { width: 56px; flex-basis: 56px; }
  .shell-group, .shell-link span { display: none; }
  .shell-link { justify-content: center; }
}
@media (max-width: 800px) {
  .shell-aside {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 232px;
    flex-basis: 232px;
    transform: translateX(-105%);
    background: #fff;
  }
  .shell-aside.is-open { transform: none; }
  .shell-nav-toggle { display: inline-flex; margin: 8px; }
  .shell-group, .shell-link span { display: inline; }
}
