/* Shared Mesper V2 chrome, with each tool's working controls retained. */
.leave-app-shell .leave-sidebar {
  width: 224px;
  background: var(--surface-2);
  padding: 20px 12px !important;
  gap: 12px !important;
  min-height: 0;
}
@media (min-width: 820px) { .leave-app-shell .leave-navigation { min-height: 0; overflow-y: auto; } }
.leave-app-shell .leave-nav-item {
  justify-content: flex-start !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.leave-app-shell .leave-nav-item[aria-current="page"] {
  background: var(--accent-soft) !important;
  color: var(--accent-ink) !important;
  font-weight: 600 !important;
}
.leave-app-shell .leave-nav-item:hover { background: var(--paper-2) !important; }
.leave-app-shell .leave-main h1 { font-size: 26px !important; font-weight: 600; line-height: 1.35; }
.leave-app-shell .leave-main h2 { line-height: 1.4; }
.cases-app-shell .cases-view-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 56px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cases-app-shell .cases-nav-item {
  min-height: 34px;
  padding: 7px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.cases-app-shell .cases-nav-item[aria-current="page"] {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--accent-ink) !important;
  font-weight: 600 !important;
}
.cases-app-shell .cases-main { background: var(--paper); }
.cases-app-shell .cases-main h1 { font-weight: 600; line-height: 1.35; }
.hub-app-shell .hub-main h1 { font-weight: 600 !important; line-height: 1.35; }
.hub-app-shell .hub-tool-tile { border-radius: 12px !important; box-shadow: none !important; }
.hub-app-shell .hub-tool-tile:hover { border-color: var(--accent) !important; box-shadow: var(--sh-sm) !important; }
.d2c-app-shell .d2c-header-wrap { flex: 0 0 auto; min-width: 0; }
.d2c-app-shell .d2c-layout { display: flex; flex-direction: column; overflow: hidden; }
.d2c-app-shell .d2c-main { flex: 1; overflow: auto; }
.d2c-app-shell .d2c-language { min-height: 32px; height: 32px; border-radius: 6px; }
.d2c-app-shell .d2c-main { background: var(--paper); }
.d2c-app-shell .d2c-sidebar nav button { font-size: 12px; border-radius: 6px; }
.d2c-app-shell .d2c-sidebar nav button[aria-current="page"] { font-weight: 600; }
@media (min-width: 1000px) {
  .d2c-app-shell .d2c-layout { flex-direction: row; }
  .d2c-app-shell .d2c-sidebar { display: flex; flex-direction: column; min-height: 0; overflow: hidden; width: 224px; flex: 0 0 224px; padding: 20px 12px; background: var(--surface-2); }
  .d2c-app-shell .d2c-main { padding: 24px 24px 60px; }
}
@media (max-width: 820px) {
  .leave-app-shell .leave-sidebar { width: 100%; padding: 8px 12px !important; }
  .leave-app-shell .leave-nav-item { min-height: 40px !important; }
  .leave-app-shell .leave-main h1 { font-size: 22px !important; }
  .cases-app-shell .cases-view-nav { min-height: 54px; padding: 8px 16px; overflow-x: auto; }
  .cases-app-shell .cases-nav-item { min-height: 38px; flex-shrink: 0; }
  .hub-app-shell .hub-main h1 { font-size: 24px !important; }
}
@media print {
  .d2c-app-shell .d2c-header-wrap { display: none !important; }
}
