:root {
  color-scheme: light;
  --primary: #155fe4;
  --primary-soft: #eaf1ff;
  --promotionscockpit-blue: #004899;
  --deep-navy: #00305b;
  --rule-blue: #d8e4f3;
  --trace: #b971ac;
  --trace-soft: rgba(185, 113, 172, 0.12);
  --maps: #a6d9e2;
  --maps-soft: rgba(166, 217, 226, 0.18);
  --paths: #f08338;
  --paths-soft: rgba(240, 131, 56, 0.12);
  --study-trace: var(--trace);
  --study-maps: var(--maps);
  --study-paths: var(--paths);
  --sidebar-bg: #062f75;
  --background: #f6f8fc;
  --surface: #ffffff;
  --surface-muted: #f8faff;
  --border: #dce3f5;
  --border-strong: #b8c7e8;
  --text: #17275f;
  --text-secondary: #334155;
  --muted: #64748b;
  --blocked: #dc2626;
  --blocked-soft: #fff4f4;
  --attention: #b7791f;
  --attention-soft: #fff8eb;
  --open: #4f6b8a;
  --open-soft: #eef4fb;
  --ready: #16834a;
  --ready-soft: #eaf8ef;
  --orange: #ff7f3f;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 76px;
  --topbar-height: 64px;
  --radius: 8px;
  --font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: var(--font-family);
  letter-spacing: 0;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  letter-spacing: 0;
}

p,
button,
summary,
blockquote {
  overflow-wrap: anywhere;
}

.promotionscockpit-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 0.18s ease;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(13, 62, 149, 0.94), rgba(5, 33, 92, 0.98)),
    var(--sidebar-bg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: width 0.18s ease, padding 0.18s ease, box-shadow 0.18s ease;
  z-index: 40;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  padding: 0 4px 12px 8px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  transform: rotate(45deg);
}

.brand-mark span:nth-child(1) {
  top: 2px;
  left: 6px;
  background: #45a1ff;
}

.brand-mark span:nth-child(2) {
  top: 14px;
  left: 18px;
  background: var(--orange);
}

.brand-mark span:nth-child(3) {
  top: 26px;
  left: 6px;
  background: #e8f1ff;
}

.sidebar-brand strong,
.sidebar-brand span,
.brand-copy {
  display: block;
}

.brand-copy {
  min-width: 0;
}

.sidebar-brand strong {
  font-size: 1.1rem;
}

.sidebar-brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-nav {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.sidebar-section {
  --section-accent: #7ab7ff;
  --section-surface: rgba(122, 183, 255, 0.1);
  --section-hover: rgba(122, 183, 255, 0.18);
  display: grid;
  gap: 6px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar-section + .sidebar-section {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-section-overview {
  --section-accent: #7ab7ff;
  --section-surface: rgba(122, 183, 255, 0.12);
  --section-hover: rgba(122, 183, 255, 0.22);
}

.sidebar-section-trace {
  --section-accent: #b971ac;
  --section-surface: rgba(185, 113, 172, 0.13);
  --section-hover: rgba(185, 113, 172, 0.22);
}

.sidebar-section-maps {
  --section-accent: #a6d9e2;
  --section-surface: rgba(166, 217, 226, 0.14);
  --section-hover: rgba(166, 217, 226, 0.24);
}

.sidebar-section-paths {
  --section-accent: #f08338;
  --section-surface: rgba(240, 131, 56, 0.13);
  --section-hover: rgba(240, 131, 56, 0.22);
}

.sidebar-section-studies {
  --section-accent: #58d68d;
  --section-surface: rgba(88, 214, 141, 0.12);
  --section-hover: rgba(88, 214, 141, 0.2);
}

.sidebar-section-kairos {
  --section-accent: #f39c12;
  --section-surface: rgba(243, 156, 18, 0.13);
  --section-hover: rgba(243, 156, 18, 0.22);
}

.sidebar-section-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.sidebar-section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--section-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.sidebar-section-label:hover,
.sidebar-section-label:focus-visible {
  color: #fff;
  outline: none;
}

.sidebar-section-label-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-section-caret {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.16s ease, color 0.16s ease;
}

.sidebar-section-caret::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}

.sidebar-section.is-collapsed .sidebar-section-caret {
  transform: rotate(-90deg);
}

.sidebar-section-label:hover .sidebar-section-caret,
.sidebar-section-label:focus-visible .sidebar-section-caret {
  color: #fff;
}

.sidebar-section-panel {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sidebar-section.is-collapsed .sidebar-section-panel {
  display: none;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-section .nav-item:hover,
.sidebar-section .nav-item.is-active {
  background: var(--section-hover);
}

.nav-item.is-active {
  box-shadow: inset 3px 0 0 #7ab7ff;
}

.sidebar-section .nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--section-accent);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  opacity: 0.86;
}

.nav-icon svg,
.app-icon,
.view-header-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-label {
  min-width: 0;
}

.nav-icon-today {
  border-radius: 50%;
}

.nav-icon-studies {
  border-radius: 4px;
}

.nav-icon-recruitment {
  position: relative;
  border-radius: 4px;
}

.nav-icon-recruitment::before,
.nav-icon-recruitment::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--sidebar-bg);
}

.nav-icon-recruitment::before {
  width: 7px;
  height: 7px;
  top: -5px;
  right: -5px;
}

.nav-icon-recruitment::after {
  width: 5px;
  height: 5px;
  right: -4px;
  bottom: -4px;
}

.nav-icon-writing {
  border-radius: 3px;
  border-top-width: 6px;
}

.nav-icon-literature {
  position: relative;
  border-radius: 3px;
  border-left-width: 6px;
}

.nav-icon-literature::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 3px;
  left: 3px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.nav-icon-documents {
  position: relative;
  border-radius: 3px;
}

.nav-icon-documents::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 3px;
  left: 2px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor;
}

.nav-icon-planning {
  border-radius: 50% 50% 4px 4px;
}

.nav-icon-kairos {
  position: relative;
  border-radius: 50%;
}

.nav-icon-kairos::before,
.nav-icon-kairos::after {
  content: "";
  position: absolute;
  background: currentColor;
  transform-origin: 50% 100%;
}

.nav-icon-kairos::before {
  width: 2px;
  height: 6px;
  top: 3px;
  left: 6px;
}

.nav-icon-kairos::after {
  width: 2px;
  height: 5px;
  top: 5px;
  left: 9px;
  transform: rotate(48deg);
}

.nav-icon-map {
  position: relative;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
}

.nav-icon-map::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon-personas {
  position: relative;
  border-radius: 50%;
}

.nav-icon-personas::before,
.nav-icon-personas::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.nav-icon-personas::before {
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.nav-icon-personas::after {
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 5px;
  border-radius: 7px 7px 3px 3px;
}

.sidebar-footer {
  display: grid;
  align-items: end;
  justify-items: stretch;
  gap: 8px;
  margin-top: auto;
}

.sidebar-login {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.sidebar-login:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-login:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sidebar-login[hidden] {
  display: none;
}

.sidebar-profile {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  justify-self: stretch;
  justify-content: flex-start;
  margin-top: 0;
  min-height: 58px;
  padding: 7px 8px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-profile:hover,
.sidebar-profile.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.28);
}

.sidebar-profile:hover .profile-avatar,
.sidebar-profile.is-active .profile-avatar {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #45a1ff, var(--orange));
  font-size: 0.86rem;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.sidebar-profile-avatar {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.sidebar-profile-copy strong,
.sidebar-profile-copy span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.sidebar-profile-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 760;
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(220, 227, 245, 0.88);
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.view-header-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--rule-blue);
  border-radius: 12px;
  color: var(--promotionscockpit-blue);
  background: #fff;
}

.view-header-icon[data-study="TRACE"] { background: var(--trace-soft); border-color: rgba(185, 113, 172, 0.24); }
.view-header-icon[data-study="MAPS"] { background: var(--maps-soft); border-color: rgba(166, 217, 226, 0.5); }
.view-header-icon[data-study="PATHS"] { background: var(--paths-soft); border-color: rgba(240, 131, 56, 0.24); }
.view-header-icon .view-header-svg { width: 26px; height: 26px; stroke-width: 1.7; }

.topbar-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  color: var(--deep-navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
}

#viewSubtitle,
.timestamp,
.subtle,
.meta-line {
  color: var(--muted);
  font-size: 0.8rem;
}

#viewSubtitle { line-height: 1.45; }

@media (max-width: 760px) {
  .topbar { padding: 14px 16px; }
  .topbar-title { gap: 10px; align-items: flex-start; }
  .view-header-icon { width: 40px; height: 40px; padding: 7px; border-radius: 10px; }
  .view-header-icon .view-header-svg { width: 24px; height: 24px; }
}

.promotionscockpit-controls {
  padding: 12px 32px 0;
}

.controls-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.profile-top-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(26, 37, 89, 0.08);
}

.profile-top-tabs[hidden] {
  display: none;
}

.profile-top-tabs .detail-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-top-tabs .detail-tabs::-webkit-scrollbar {
  display: none;
}

.profile-top-tabs .detail-tab {
  min-height: 44px;
  min-width: 92px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-top-tabs .detail-tab:hover,
.profile-top-tabs .detail-tab:focus-visible,
.profile-top-tabs .detail-tab.is-active {
  border-color: rgba(21, 95, 228, 0.24);
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.search-shell {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.search-shell:focus-within {
  border-color: rgba(21, 95, 228, 0.48);
  box-shadow: 0 0 0 3px rgba(21, 95, 228, 0.11);
}

.search-shell svg,
.filter-panel-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.search-input::placeholder {
  color: #7a8aa4;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.active-filter-row {
  min-width: 0;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 420px;
}

.active-filter-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.28);
  outline: none;
}

.active-filter-chip strong {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1;
}

.filter-results {
  min-width: max-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-collapse-toggle {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(2, 15, 45, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.sidebar-collapse-toggle .nav-icon {
  width: 17px;
  height: 17px;
}

.sidebar-collapse-label {
  line-height: 1;
  white-space: nowrap;
}

.filter-reset {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--primary);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.filter-shell {
  position: relative;
}

.filter-panel-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}

.filter-panel-button:hover,
.filter-panel-button:focus-visible,
.filter-panel-button[aria-expanded="true"] {
  border-color: rgba(21, 95, 228, 0.36);
  background: var(--primary-soft);
  outline: none;
}

.filter-panel-button__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-panel-button__badge {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.filter-panel-button__caret {
  color: var(--muted);
  font-size: 0.8rem;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - var(--sidebar-width) - 64px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  z-index: 45;
}

.filter-panel[hidden] {
  display: none;
}

.filter-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.filter-panel-title {
  margin: 0 0 3px;
  font-size: 0.94rem;
}

.filter-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.filter-panel-body,
.filter-group,
.filter-option-list {
  display: grid;
  gap: 8px;
}

.filter-group h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-option {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.filter-option:hover,
.filter-option:focus-visible {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.3);
  background: var(--primary-soft);
  outline: none;
}

.filter-option.is-active {
  color: var(--text);
  border-color: rgba(21, 95, 228, 0.34);
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}

.filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.filter-option strong {
  color: var(--muted);
  font-size: 0.72rem;
}

.topbar-actions,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.view-shell {
  width: 100%;
  max-width: none;
  padding: 24px 32px 34px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

body[data-view="kairos"] .promotionscockpit-controls {
  display: none;
}

body[data-view="literatureStats"] .promotionscockpit-controls {
  display: none;
}

body[data-view="kairos"] .view-shell {
  padding: clamp(8px, 0.8vw, 16px);
}

#view-kairos.is-active {
  display: grid;
  place-items: start stretch;
}

#kairosTimeline {
  width: 100%;
  min-width: 0;
}

.hero-card,
.decision-card,
.micro-row,
.milestone,
.quiet-shelf,
.shelf-card,
.study-detail-panel,
.archive-section,
.archive-row,
.profile-placeholder,
.kairos-frame,
.error-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-left-width: 5px;
  box-shadow: var(--shadow);
}

.profile-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.profile-avatar-large {
  width: 58px;
  height: 58px;
  color: #fff;
  font-size: 1rem;
}

.profile-placeholder h2 {
  margin: 4px 0 7px;
  font-size: 1.28rem;
}

.profile-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.today-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.today-tabs[hidden] {
  display: none;
}

.today-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.today-tab:hover,
.today-tab:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.today-tab.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-muted);
}

.today-tab strong {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.work-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.work-list-head h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.work-summary {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-summary span {
  min-width: 92px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-summary strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.today-focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-left: 5px solid var(--primary);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(21, 95, 228, 0.11), rgba(255, 255, 255, 0) 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.today-focus-panel.status-blocked {
  border-left-color: var(--blocked);
}

.today-focus-main,
.today-focus-action,
.today-focus-side {
  min-width: 0;
}

.today-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.today-focus-main h2 {
  margin: 11px 0 7px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.today-focus-main p {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.4;
}

.today-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.today-focus-chips span,
.work-target-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(21, 95, 228, 0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(239, 246, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.today-focus-action {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(21, 95, 228, 0.16);
  border-radius: var(--radius);
  background: #fff;
}

.today-focus-action span,
.work-action-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.today-focus-action strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.today-focus-side {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 7px;
  min-width: 108px;
}

.today-focus-side span {
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.today-focus-side strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-card h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.hero-card p,
.decision-card p,
.micro-row em,
.milestone p,
.shelf-card p,
.archive-row span {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.primary-button,
.text-button {
  min-height: 34px;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  max-width: 260px;
  padding: 9px 12px;
  border: 0;
  color: #fff;
  background: var(--primary);
  text-align: left;
}

.text-button {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  color: var(--primary);
  background: var(--primary-soft);
}

.micro-status {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.today-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.work-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.work-rank {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-item-body {
  min-width: 0;
}

.work-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.work-item h3 {
  margin: 9px 0 5px;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.work-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.work-action-strip {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.work-action-strip strong {
  color: var(--text);
  font-size: 0.91rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.work-target-pill {
  margin-top: 10px;
}

.start-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(21, 95, 228, 0.16);
  border-left: 5px solid var(--primary);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.start-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1.12;
}

.start-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.start-study-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.start-study-card {
  min-width: 0;
}

.start-study-card--trace {
  --start-study-accent: var(--trace);
  --start-study-accent-soft: var(--trace-soft);
  --start-study-accent-text: #8b4f83;
}

.start-study-card--maps {
  --start-study-accent: var(--maps);
  --start-study-accent-soft: var(--maps-soft);
  --start-study-accent-text: #327886;
}

.start-study-card--paths {
  --start-study-accent: var(--paths);
  --start-study-accent-soft: var(--paths-soft);
  --start-study-accent-text: #a2511c;
}

.start-study-button {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
}

.start-study-button:hover,
.start-study-button:focus-visible {
  border-color: var(--start-study-accent, rgba(21, 95, 228, 0.34));
  background: var(--start-study-accent-soft, var(--primary-soft));
  outline: none;
}

.start-study-card.status-ready .start-study-button {
  border-top-color: var(--start-study-accent, var(--ready));
}

.start-study-card.status-attention .start-study-button {
  border-top-color: var(--start-study-accent, var(--attention));
}

.start-study-card.status-open .start-study-button {
  border-top-color: var(--start-study-accent, var(--open));
}

.start-study-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.start-study-logo-surface {
  min-width: 0;
  min-height: 94px;
  display: grid;
  place-items: center;
}

.start-study-logo {
  display: block;
  width: 100%;
  max-height: 128px;
  object-fit: contain;
}

.start-study-fallback {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 950;
}

.start-study-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.start-study-copy strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.start-study-copy > span:last-child {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.start-study-progress {
  min-width: 0;
  align-self: end;
  display: grid;
  gap: 6px;
}

.start-study-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--start-study-accent) 16%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--start-study-accent) 20%, transparent);
}

.start-study-progress-track span {
  display: block;
  width: var(--start-study-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--start-study-accent), color-mix(in srgb, var(--start-study-accent) 78%, #ffffff));
}

.start-study-progress-label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.start-study-progress-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-study-progress-label strong {
  flex: 0 0 auto;
  color: var(--start-study-accent-text, var(--primary));
  font-size: 0.7rem;
  font-weight: 950;
}

.start-study-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.start-dashboard {
  --start-visual-height: clamp(250px, 25vw, 340px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.start-dashboard-column {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-self: stretch;
}

.start-dashboard-panel {
  min-width: 0;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--start-panel-accent, var(--primary));
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.start-dashboard-panel--studies {
  grid-column: 1 / -1;
  --start-panel-accent: var(--primary);
  --start-panel-accent-text: var(--primary);
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.start-dashboard-panel--map {
  --start-panel-accent: var(--trace);
  --start-panel-accent-text: #8b4f83;
}

.start-dashboard-panel--study-slot {
  grid-template-rows: auto auto;
  align-content: start;
}

.start-dashboard-panel--maps-slot {
  --start-panel-accent: var(--maps);
  --start-panel-accent-text: #327886;
  --start-slot-soft: var(--maps-soft);
}

.start-dashboard-panel--paths-slot {
  --start-panel-accent: var(--paths);
  --start-panel-accent-text: #a2511c;
  --start-slot-soft: var(--paths-soft);
}

.start-study-slot-body {
  width: 100%;
  height: var(--start-visual-height);
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid rgba(216, 228, 243, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.9)),
    var(--start-slot-soft, var(--surface-muted));
}

button.start-study-slot-body {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

button.start-study-slot-body:hover,
button.start-study-slot-body:focus-visible {
  border-color: color-mix(in srgb, var(--start-panel-accent) 42%, var(--border));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

button.start-study-slot-body:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--start-panel-accent) 34%, #ffffff);
  outline-offset: 2px;
}

.start-study-slot-graphic {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius) - 2px);
}

.start-dashboard-panel-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.start-dashboard-panel-head--action-only {
  justify-content: flex-end;
}

.start-dashboard-panel-foot {
  display: flex;
  justify-content: flex-end;
}

.start-dashboard-panel-head .eyebrow {
  color: var(--start-panel-accent-text, var(--primary));
}

.start-dashboard-panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.18;
}

.start-dashboard-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.start-dashboard-action:hover,
.start-dashboard-action:focus-visible {
  border-color: rgba(21, 95, 228, 0.38);
  background: #dbeafe;
  outline: none;
}

.start-dashboard-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.start-study-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
}

.start-dashboard .start-study-button {
  position: relative;
  min-height: 272px;
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 36px 16px 16px;
  border-top: 4px solid var(--start-study-accent, var(--primary));
  border-left-width: 1px;
  border-radius: 8px;
  box-shadow: none;
}

.start-dashboard .start-study-card.status-ready .start-study-button {
  border-top-color: var(--start-study-accent, var(--ready));
}

.start-dashboard .start-study-card.status-attention .start-study-button {
  border-top-color: var(--start-study-accent, var(--attention));
}

.start-dashboard .start-study-card.status-open .start-study-button {
  border-top-color: var(--start-study-accent, var(--open));
}

.start-dashboard .start-study-logo-wrap {
  min-height: 118px;
  padding: 10px;
  border-color: var(--start-study-accent-soft, rgba(21, 95, 228, 0.16));
  background: linear-gradient(180deg, #fff 0%, var(--start-study-accent-soft, #f8fbff) 100%);
}

.start-dashboard .start-study-logo-surface {
  min-height: 96px;
}

.start-dashboard .start-study-logo {
  width: 100%;
  max-height: 96px;
  object-position: center;
}

.start-dashboard .start-study-copy {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: baseline;
  gap: 8px;
}

.start-dashboard .start-study-copy > .eyebrow {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}



.start-dashboard .start-study-copy > .start-study-subtitle {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
  hyphens: auto;
}

.start-dashboard .start-study-meta {
  align-self: end;
  justify-content: flex-start;
}

/* Start: generous greeting, compact title marks and current work. */
body[data-view="today"] .topbar { min-height: 152px; padding: 28px 32px; background: var(--background); }
body[data-view="today"] .topbar .view-header-icon { display: none; }
body[data-view="today"] .topbar-title { width: 100%; }
body[data-view="today"] .topbar-heading { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 32px; }
body[data-view="today"] .topbar-heading h1 { font-size: clamp(40px, 4vw, 56px); font-weight: 600; line-height: 1.15; }
.start-current-hint { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 5px 12px; width: 100%; max-width: 620px; min-height: 82px; padding: 16px 20px; border: 1px solid var(--rule-blue); border-radius: var(--radius); color: var(--deep-navy); background: var(--surface); font-size: 0.93rem; font-weight: 400; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.start-current-hint[hidden] { display: none; }
.start-current-hint-icon { grid-column: 1; grid-row: 1 / 3; color: var(--promotionscockpit-blue); }
.start-current-hint-icon .app-icon { display: block; width: 22px; height: 22px; }
.start-current-hint .start-current-hint-label { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.04em; }
.start-current-hint-text { display: block; grid-column: 2; grid-row: 2; }
.start-current-hint-arrow { grid-column: 3; grid-row: 1 / 3; color: var(--promotionscockpit-blue); font-size: 1.1rem; }
.start-current-hint:hover { border-color: var(--border-strong); text-decoration: none; }
.start-current-hint:hover .start-current-hint-text { color: var(--promotionscockpit-blue); }
.start-current-hint:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 4px; }
.start-dashboard .start-study-logo-wrap { padding: 0; min-height: 104px; border: 0; background: transparent; }
.start-dashboard .start-study-logo-surface { width: 100%; min-height: 0; }
.start-study-titlemark { width: 100%; min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 10px 12px; font-family: Arial, Helvetica, sans-serif; }
.start-study-symbol { display: block; grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
.start-study-titlemark-copy { display: contents; }
.start-study-acronym { grid-column: 2; grid-row: 1; padding-left: 14px; border-left: 1px solid var(--start-study-accent); color: var(--promotionscockpit-blue); font-size: 28px; font-weight: 700; line-height: 1.1; }
.start-study-english { display: block; min-height: 2.9em; grid-column: 1 / -1; grid-row: 2; color: var(--deep-navy); font-size: 0.75rem; font-weight: 400; line-height: 1.45; text-wrap: balance; }
.start-study-english b { font-weight: 700; }
.start-dashboard .start-study-number { position: absolute; top: 12px; right: 16px; color: var(--muted); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.4; white-space: nowrap; }
@media (min-width: 761px) and (max-width: 980px) {
  body[data-view="today"] .topbar-heading { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .start-current-hint { max-width: none; }
}
@media (max-width: 760px) {
  body[data-view="today"] .topbar { min-height: 0; padding: 24px 16px; }
  body[data-view="today"] .topbar-title { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 20px 12px; }
  body[data-view="today"] .topbar-heading { display: contents; }
  body[data-view="today"] .mobile-sidebar-toggle { grid-column: 1; grid-row: 1; }
  body[data-view="today"] .topbar-heading h1 { grid-column: 2; grid-row: 1; }
  .start-current-hint { grid-column: 1 / -1; grid-row: 2; max-width: none; padding: 14px 16px; }
}
.start-dashboard .start-dashboard-panel--studies { padding: 0; }
.start-dashboard .start-study-progress { gap: 10px; padding-top: 6px; }
.start-dashboard .start-study-progress-track { height: 10px; }
.start-dashboard .start-study-progress-label { color: var(--deep-navy); font-size: 0.96rem; font-weight: 650; line-height: 1.35; }
.start-dashboard .start-study-progress-label span { overflow: visible; white-space: normal; }
.start-dashboard .start-study-progress-label strong { font-size: 1.1rem; font-weight: 700; }
button.trace-map-preview { width: 100%; appearance: none; cursor: pointer; font: inherit; }
button.trace-map-preview:hover { border-color: var(--trace); }
button.trace-map-preview:focus-visible { outline: 3px solid var(--trace); outline-offset: 2px; }
.start-quicklinks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.start-quicklink { min-width: 0; min-height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--deep-navy); background: var(--surface); cursor: pointer; text-align: left; }
.start-quicklink:hover { border-color: var(--border-strong); background: var(--primary-soft); }
.start-quicklink:focus-visible { outline: 3px solid var(--promotionscockpit-blue); outline-offset: 2px; }
.start-quicklink-label { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; }
.start-quicklink-icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--promotionscockpit-blue); }
.start-quicklink-zotero { display: block; width: 80px; height: 24px; object-fit: contain; }
.start-quicklink-action { display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 1.1rem; font-weight: 600; color: var(--promotionscockpit-blue); }
@media (max-width: 620px) {
  .start-quicklink { min-height: 44px; padding: 8px 10px; }
  .start-dashboard .start-study-progress-label { font-size: 0.9rem; }
  .start-dashboard .start-study-progress-label strong { font-size: 1rem; }
}

.study-overview-page {
  --study-overview-accent: var(--primary);
  --study-overview-accent-soft: var(--primary-soft);
  min-width: 0;
  display: grid;
  gap: 14px;
}

.study-overview-page.start-study-card--trace {
  --study-overview-accent: var(--trace);
  --study-overview-accent-soft: var(--trace-soft);
}

.study-overview-page.start-study-card--maps {
  --study-overview-accent: var(--maps);
  --study-overview-accent-soft: var(--maps-soft);
}

.study-overview-page.start-study-card--paths {
  --study-overview-accent: var(--paths);
  --study-overview-accent-soft: var(--paths-soft);
}

.study-overview-feature {
  min-width: 0;
}

.study-overview-feature .start-study-card {
  width: 100%;
}

.study-overview-feature .start-study-button {
  min-height: 260px;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  border-top-color: var(--study-overview-accent);
}

.study-overview-feature .start-study-logo-wrap {
  grid-row: 1 / 3;
  min-height: 220px;
  border-color: color-mix(in srgb, var(--study-overview-accent) 18%, var(--border));
  background: linear-gradient(180deg, #fff 0%, var(--study-overview-accent-soft) 100%);
}

.study-overview-feature .start-study-logo-surface {
  min-height: 168px;
}

.study-overview-feature .start-study-logo {
  max-height: 156px;
}

.study-overview-feature .start-study-copy {
  align-self: center;
  gap: 9px;
}

.study-overview-feature .start-study-copy strong {
  font-size: 1.55rem;
  line-height: 1.08;
}

.study-overview-feature .start-study-copy > span:last-child {
  max-width: 720px;
  font-size: 0.94rem;
}

.study-overview-feature .start-study-progress {
  align-self: end;
}

.study-overview-card-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.study-overview-info-card {
  min-width: 0;
  min-height: 226px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--study-overview-accent);
  border-radius: calc(var(--radius) + 1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
    var(--study-overview-accent-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.study-overview-info-head {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.study-overview-info-head span {
  color: color-mix(in srgb, var(--study-overview-accent) 72%, var(--text));
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.study-overview-info-head strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.study-overview-info-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.35;
}

.study-overview-info-list {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
}

.study-overview-info-list div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 3px solid color-mix(in srgb, var(--study-overview-accent) 62%, var(--border));
}

.study-overview-info-list dt {
  color: color-mix(in srgb, var(--study-overview-accent) 70%, var(--text));
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.study-overview-info-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.25;
}

.start-zotero-banner {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef6ff 0%, #fff 68%);
}

.start-zotero-mark {
  min-width: 0;
  width: 100%;
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 95, 228, 0.1), 0 8px 18px rgba(21, 95, 228, 0.12);
}

.start-zotero-logo {
  display: block;
  width: 100%;
  max-width: 210px;
  max-height: 62px;
  object-fit: contain;
}

.literature-zotero-banner {
  margin-bottom: 14px;
}

.literature-zotero-banner .start-zotero-banner {
  border-color: rgba(21, 95, 228, 0.16);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.literature-zotero-banner .start-zotero-mark {
  min-height: 78px;
}

.literature-zotero-banner .start-zotero-logo {
  max-width: 260px;
  max-height: 72px;
}

.start-zotero-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.start-zotero-copy strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.start-zotero-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.start-zotero-count {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 6px;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
}

.start-zotero-count strong {
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}

.start-literature-metrics,
.trace-map-summary,
.start-study-slot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.start-literature-metrics span,
.trace-map-summary span,
.start-study-slot-metrics span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.2;
}

.trace-map-summary span {
  padding: 12px;
  border-color: rgba(185, 113, 172, 0.2);
  border-left: 4px solid var(--trace);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.start-study-slot-metrics span {
  padding: 12px;
  border-color: color-mix(in srgb, var(--start-panel-accent) 24%, var(--border));
  border-left: 4px solid var(--start-panel-accent);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.trace-map-summary span:first-child {
  border-left-color: var(--orange);
}

.start-literature-metrics strong,
.trace-map-summary strong,
.start-study-slot-metrics strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}

.start-literature-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.start-literature-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid var(--border);
}

.start-literature-item:last-child {
  border-bottom: 0;
}

.start-literature-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.start-literature-copy strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.start-literature-copy > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.start-literature-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trace-map-preview {
  overflow: hidden;
  display: grid;
  place-items: center;
  height: var(--start-visual-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8f3fb;
  aspect-ratio: auto;
}

.trace-mini-map {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 100 / 124;
  display: block;
}

.trace-mini-map-bg {
  fill: #edf4ff;
}

.trace-mini-map-state {
  fill: #fff;
  stroke: #c4d0e8;
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

.trace-mini-map-outline {
  fill: none;
  stroke: #5f77a8;
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.trace-mini-map-marker {
  vector-effect: non-scaling-stroke;
}

.trace-mini-map-marker--gastro {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 0.35;
}

.trace-mini-map-marker--recruited {
  fill: #b971ac;
  stroke: #00305b;
  stroke-width: 0.55;
  paint-order: stroke fill;
}

.work-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.evidence-task {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.evidence-task-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.evidence-task-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.document-badge,
.location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.document-badge {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.2);
  background: var(--primary-soft);
}

.location-badge {
  color: var(--muted);
}

.evidence-claim h3 {
  margin: 5px 0 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.evidence-quote {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.evidence-quote span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.evidence-quote p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.42;
}

.evidence-source-drawer summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.evidence-source-drawer[open] summary {
  margin-bottom: 8px;
  background: var(--primary-soft);
}

.persona-grid {
  display: grid;
  gap: 12px;
}

.persona-org-chart {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.persona-selected-panel {
  width: 100%;
}

.persona-selected-panel .persona-detail-panel {
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.org-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.org-chart-head h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.org-chart-body {
  display: grid;
  justify-items: center;
  gap: 0;
}

.org-leader {
  width: min(520px, 100%);
}

.org-line {
  width: min(720px, 72%);
  height: 28px;
  border-top: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  border-left: 2px solid var(--border-strong);
  border-radius: 8px 8px 0 0;
  margin-top: 12px;
}

.org-report-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.org-node {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface-muted);
  text-align: center;
}

button.org-node {
  cursor: pointer;
}

button.org-node:hover,
button.org-node:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.org-node.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 14px 30px rgba(21, 95, 228, 0.14);
}

.org-node.status-blocked {
  border-top-color: var(--blocked);
}

.org-node.status-attention {
  border-top-color: var(--attention);
}

.org-node.status-open {
  border-top-color: var(--open);
}

.org-node.status-ready {
  border-top-color: var(--ready);
}

.org-node--leader {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  padding: 14px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.68), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.org-portrait {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.14);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.org-node--leader .org-portrait {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.org-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.org-portrait-initials {
  width: 100%;
  height: 100%;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1rem;
  font-weight: 950;
}

.org-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.org-title-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1.14;
}

.org-node--leader .org-title-stack {
  justify-items: start;
}

.org-cxo {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.org-full-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.org-copy strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.org-node--leader .org-copy strong {
  font-size: 1.18rem;
}

.org-collaboration {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.org-collaboration span {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

.persona-detail-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-left: 4px solid var(--border-strong);
  background: var(--surface);
}

.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.persona-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.persona-tab:hover,
.persona-tab:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.persona-tab.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.persona-tab-panel {
  display: grid;
  gap: 12px;
}

.persona-full-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.64), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.persona-full-card h3 {
  margin: 5px 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.persona-full-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.persona-full-card p + p {
  margin-top: 8px;
}

.persona-profile-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.persona-profile-pair > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.persona-section {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.persona-section h3 {
  margin: 3px 0 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.persona-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.persona-section-head,
.persona-task-head,
.persona-automation-head,
.persona-automation-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.persona-section-head > strong {
  color: var(--text);
  font-size: 0.92rem;
}

.persona-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.persona-task-list,
.persona-text-list,
.persona-automation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.persona-task-list li,
.persona-text-list li,
.persona-automation-list li {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.persona-task-list li {
  display: grid;
  gap: 5px;
}

.persona-task-list strong,
.persona-automation-list strong {
  color: var(--text);
  line-height: 1.28;
}

.persona-task-list p,
.persona-automation-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.persona-text-list li {
  color: var(--text-secondary);
  line-height: 1.36;
}

.persona-automation-list li {
  display: grid;
  gap: 8px;
}

.persona-automation-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.persona-automation-meta {
  align-items: center;
  flex-wrap: wrap;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.persona-automation-meta code {
  max-width: 100%;
  padding: 3px 6px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  color: var(--open);
  background: var(--open-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.micro-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 150px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-left-width: 4px;
  text-align: left;
  cursor: pointer;
}

.micro-row span,
.eyebrow {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.micro-row strong {
  color: var(--text);
  font-size: 0.9rem;
}

.decision-grid,
.decision-list,
.timeline,
.shelf-body,
.archive-body {
  display: grid;
  gap: 10px;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-card {
  min-height: 156px;
  padding: 13px;
  border-left-width: 4px;
}

.study-accordion-list {
  display: grid;
  gap: 12px;
}

.study-switch-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.study-switch-tab {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.study-switch-tab:hover,
.study-switch-tab:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.study-switch-tab.is-active {
  color: var(--text);
  border-color: var(--primary);
  border-left-color: var(--primary);
  background: var(--surface);
}

.study-switch-tab strong {
  min-width: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.study-switch-tab > span:last-child {
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.study-switch-index {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.study-accordion {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.study-accordion.is-open {
  overflow: visible;
}

.study-accordion-head {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.study-accordion-head:hover,
.study-accordion-head:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.study-accordion.is-open .study-accordion-head {
  border-bottom-color: var(--border);
  background: var(--surface-muted);
}

.study-type-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.1rem;
  font-weight: 900;
}

.study-accordion-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.study-accordion-title strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.study-accordion-title > span:last-child {
  color: var(--muted);
  line-height: 1.38;
}

.study-accordion-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
}

.study-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.study-toggle-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.study-toggle-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.study-accordion.is-open .study-toggle-icon {
  color: var(--primary);
  background: var(--primary-soft);
}

.study-accordion.is-open .study-toggle-icon svg {
  transform: rotate(180deg);
}

.decision-card h3,
.milestone h3,
.shelf-card h3 {
  margin: 8px 0 7px;
  font-size: 1rem;
  line-height: 1.24;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.status-blocked {
  color: var(--blocked);
  background: var(--blocked-soft);
  border-color: rgba(220, 38, 38, 0.2);
}

.status-pill.status-attention {
  color: var(--attention);
  background: var(--attention-soft);
  border-color: rgba(183, 121, 31, 0.2);
}

.status-pill.status-open {
  color: var(--open);
  background: var(--open-soft);
  border-color: rgba(79, 107, 138, 0.2);
}

.status-pill.status-ready {
  color: var(--ready);
  background: var(--ready-soft);
  border-color: rgba(22, 131, 74, 0.2);
}

.status-blocked {
  border-left-color: var(--blocked);
}

.status-attention {
  border-left-color: var(--attention);
}

.status-open {
  border-left-color: var(--open);
}

.status-ready {
  border-left-color: var(--ready);
}

.view-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  margin-bottom: 10px;
}

.study-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 0;
  padding: 16px;
  border: 0;
  border-left: 4px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.study-panel-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.study-panel-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.study-panel-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.study-panel-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.study-panel-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.study-cockpit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 100%;
  padding: 5px;
  overflow-x: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.study-cockpit-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.study-cockpit-tab:hover,
.study-cockpit-tab:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.study-cockpit-tab.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.study-cockpit-tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.study-cockpit-card {
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.study-cockpit-card--progress {
  grid-column: 1 / -1;
}

.study-focus-card {
  grid-column: 1 / -1;
  min-height: 100%;
  border-color: rgba(21, 95, 228, 0.22);
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.76), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.study-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.study-card-head h3,
.study-focus-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.study-card-head > strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1;
}

.study-cockpit-card p,
.study-focus-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.study-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--open-soft);
}

.study-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.study-inline-details {
  margin-top: 10px;
}

.study-inline-details summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.study-inline-details[open] summary {
  margin-bottom: 10px;
  background: var(--primary-soft);
}

.study-progress-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.study-progress-steps li {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 0;
  padding: 10px 10px 10px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.study-progress-steps li > span {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--open);
  background: var(--surface);
}

.study-progress-steps li.status-ready > span {
  color: var(--ready);
  background: var(--ready);
}

.study-progress-steps li.status-attention > span {
  color: var(--attention);
  background: var(--attention-soft);
}

.study-progress-steps strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
}

.study-progress-steps em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
}

.study-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.study-fact-list div {
  display: grid;
  gap: 3px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.study-fact-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.study-fact-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.study-fact-list dd {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.38;
}

.next-action-line {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(21, 95, 228, 0.15);
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.next-action-line span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.next-action-line strong {
  color: var(--text);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.study-compact-list,
.study-evidence-list,
.study-document-list,
.study-mini-docs {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-compact-list li,
.study-evidence-list li,
.study-document-list li,
.study-mini-docs li {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  line-height: 1.34;
}

.study-evidence-list strong,
.study-document-list strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.28;
}

.study-evidence-list span,
.study-document-list span,
.study-mini-docs span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.34;
}

.study-mini-docs {
  margin-top: 10px;
}

.study-mini-docs strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
}

.study-detail-panel .empty-note {
  margin: 0;
}

.questionnaire-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.questionnaire-tab {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.questionnaire-tab:hover,
.questionnaire-tab:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.questionnaire-tab.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-muted);
}

.questionnaire-tab-panel {
  display: grid;
  gap: 14px;
}

.questionnaire-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.questionnaire-panel--full {
  width: 100%;
}

.questionnaire-panel p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.questionnaire-facts {
  margin-top: 2px;
}

.questionnaire-hypotheses,
.questionnaire-source-list,
.questionnaire-step-list,
.questionnaire-pretest-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questionnaire-hypothesis,
.questionnaire-analysis-card,
.questionnaire-pretest-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.questionnaire-hypothesis strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.28;
}

.questionnaire-source-list {
  margin-top: 14px;
}

.questionnaire-source-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  line-height: 1.22;
}

.questionnaire-source-list li > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.questionnaire-source-list strong,
.questionnaire-source-list a {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.questionnaire-source-list a {
  text-decoration: none;
}

.questionnaire-source-list a:hover {
  text-decoration: underline;
}

.questionnaire-source-list span:not(.questionnaire-file-badge) {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.questionnaire-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(21, 95, 228, 0.26);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.questionnaire-file-badge--md,
.questionnaire-file-badge--markdown {
  color: var(--ready);
  border-color: rgba(22, 131, 74, 0.22);
  background: var(--ready-soft);
}

.questionnaire-file-badge--json {
  color: #a15c00;
  border-color: rgba(217, 119, 6, 0.24);
  background: #fff7ed;
}

.questionnaire-hypothesis > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.questionnaire-hypothesis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.questionnaire-hypothesis p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.42;
}

.questionnaire-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.questionnaire-analysis-panel {
  display: grid;
  gap: 18px;
}

.questionnaire-model-panel {
  display: grid;
  gap: 18px;
}

.questionnaire-logic-panel {
  display: grid;
  gap: 18px;
}

.questionnaire-logic-overview {
  display: grid;
  gap: 10px;
}

.questionnaire-logic-accordion {
  display: grid;
  gap: 8px;
}

.questionnaire-logic-accordion-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.questionnaire-logic-accordion-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.questionnaire-logic-accordion-item summary::-webkit-details-marker {
  display: none;
}

.questionnaire-logic-accordion-item summary::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  content: "⌄";
  font-size: 0.78rem;
  font-weight: 900;
}

.questionnaire-logic-accordion-item[open] summary::after {
  transform: rotate(180deg);
}

.questionnaire-logic-accordion-item summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.questionnaire-logic-accordion-item summary strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.28;
}

.questionnaire-logic-accordion-body {
  padding: 0 12px 12px;
}

.questionnaire-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.questionnaire-analysis-head > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.questionnaire-analysis-head span,
.questionnaire-analysis-section-head span,
.questionnaire-analysis-status span,
.questionnaire-analysis-methods > section > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.questionnaire-analysis-head strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.25;
}

.questionnaire-analysis-head p {
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.questionnaire-analysis-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 95, 228, 0.22);
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
}

.questionnaire-analysis-count strong {
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}

.questionnaire-analysis-count span {
  color: var(--primary);
  font-size: 0.68rem;
}

.questionnaire-analysis-focus {
  display: grid;
  gap: 12px;
}

.questionnaire-analysis-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.questionnaire-example-panel .questionnaire-analysis-focus-grid {
  grid-template-columns: 1fr;
}

.questionnaire-analysis-focus-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.questionnaire-example-panel .questionnaire-analysis-focus-card {
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.9fr);
  grid-template-areas:
    "top chart"
    "title chart"
    "text chart"
    "note chart";
  gap: 8px 18px;
  align-items: center;
  padding: 14px;
}

.questionnaire-analysis-focus-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.questionnaire-example-panel .questionnaire-analysis-focus-top {
  grid-area: top;
}

.questionnaire-analysis-focus-top > span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

.questionnaire-analysis-focus-card > strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.questionnaire-example-panel .questionnaire-analysis-focus-card > strong {
  grid-area: title;
  font-size: 0.98rem;
}

.questionnaire-analysis-focus-card p,
.questionnaire-analysis-focus-card em {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.questionnaire-analysis-focus-card em {
  color: var(--muted);
}

.questionnaire-example-panel .questionnaire-analysis-focus-card p {
  grid-area: text;
}

.questionnaire-example-panel .questionnaire-analysis-focus-card em {
  grid-area: note;
}

.questionnaire-analysis-mini-chart {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.questionnaire-example-panel .questionnaire-analysis-mini-chart {
  grid-area: chart;
}

.questionnaire-analysis-mini-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.questionnaire-analysis-mini-bar span,
.questionnaire-analysis-mini-bar em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.questionnaire-analysis-mini-bar em {
  text-align: right;
}

.questionnaire-analysis-mini-bar strong {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef8;
}

.questionnaire-analysis-mini-bar strong::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--primary);
  content: "";
}

.questionnaire-analysis-mini-bar--good strong::before {
  background: var(--ready);
}

.questionnaire-analysis-mini-bar--mid strong::before {
  background: #d97706;
}

.questionnaire-analysis-mini-bar--risk strong::before {
  background: #dc2626;
}

.questionnaire-analysis-mini-bar--neutral strong::before {
  background: #4f6b8a;
}

.questionnaire-analysis-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.questionnaire-analysis-status section {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
}

.questionnaire-analysis-status strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.questionnaire-model-paths {
  display: grid;
  gap: 10px;
}

.questionnaire-model-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.questionnaire-model-path-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.questionnaire-model-path-card > strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.28;
}

.questionnaire-model-path-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.questionnaire-model-path-card code {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  background: var(--surface-muted);
  font-size: 0.7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.questionnaire-analysis-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.questionnaire-analysis-methods > section {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-left: 12px;
  border-left: 3px solid var(--border-strong);
}

.questionnaire-analysis-methods > section:first-child {
  border-left-color: var(--primary);
}

.questionnaire-analysis-methods > section div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.questionnaire-analysis-methods strong,
.questionnaire-analysis-method-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.questionnaire-analysis-workflow,
.questionnaire-analysis-matrix {
  display: grid;
  gap: 10px;
}

.questionnaire-analysis-section-head {
  display: grid;
  gap: 3px;
}

.questionnaire-analysis-section-head strong {
  color: var(--text);
  font-size: 0.92rem;
}

.questionnaire-analysis-workflow ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questionnaire-analysis-workflow li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.questionnaire-analysis-workflow li:not(:last-child)::before {
  position: absolute;
  top: 26px;
  right: -11px;
  width: 12px;
  height: 2px;
  background: var(--border-strong);
  content: "";
  z-index: 2;
}

.questionnaire-analysis-workflow li:not(:last-child)::after {
  position: absolute;
  top: 21px;
  right: -12px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  content: "";
  transform: rotate(45deg);
  z-index: 2;
}

.questionnaire-analysis-workflow li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(21, 95, 228, 0.24);
  border-radius: 999px;
  color: var(--primary);
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.questionnaire-analysis-workflow li strong {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.questionnaire-analysis-matrix {
  margin-top: 2px;
}

.questionnaire-analysis-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) minmax(140px, 0.7fr) minmax(180px, 0.9fr);
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.questionnaire-analysis-row:last-child {
  border-bottom: 1px solid var(--border);
}

.questionnaire-analysis-hypothesis {
  min-width: 0;
}

.questionnaire-analysis-question {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.questionnaire-analysis-question strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.28;
}

.questionnaire-analysis-question p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.38;
}

.questionnaire-analysis-question em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.35;
}

.questionnaire-analysis-variables,
.questionnaire-analysis-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.questionnaire-analysis-variables code {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.questionnaire-analysis-card span,
.questionnaire-pretest-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.questionnaire-analysis-card strong,
.questionnaire-pretest-card strong {
  color: var(--text);
  line-height: 1.28;
}

.questionnaire-analysis-card p,
.questionnaire-pretest-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

.questionnaire-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.questionnaire-step-list {
  margin-top: 12px;
  padding-left: 18px;
  list-style: decimal;
  color: var(--text-secondary);
  line-height: 1.38;
}

.questionnaire-question {
  display: grid;
  gap: 3px;
  max-width: none;
  padding: 2px 0;
}

.questionnaire-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 26px;
  border: 1px solid rgba(21, 95, 228, 0.28);
  border-radius: 999px;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(21, 95, 228, 0.12);
  font-size: 0.68rem;
  font-weight: 900;
}

.questionnaire-question strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.24;
}

.questionnaire-question em,
.questionnaire-table td em {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.35;
}

.questionnaire-table code {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.questionnaire-variable {
  display: grid;
  gap: 4px;
  align-content: start;
}

.questionnaire-hypothesis-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(21, 95, 228, 0.24);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.questionnaire-hypothesis-badge--h1 {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.25);
  background: #ecfdf5;
}

.questionnaire-hypothesis-badge--h2 {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.24);
  background: #f5f3ff;
}

.questionnaire-hypothesis-badge--h3 {
  color: #a15c00;
  border-color: rgba(217, 119, 6, 0.24);
  background: #fff7ed;
}

.questionnaire-hypothesis-badge--h4 {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.2);
  background: #fff1f2;
}

.questionnaire-options {
  display: grid;
  gap: 6px;
  max-width: none;
  margin: 0;
}

.questionnaire-answer-option,
.questionnaire-option-more,
.questionnaire-flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  background: #ffffff;
  font-size: 0.7rem;
  line-height: 1.25;
}

.questionnaire-answer-option {
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.questionnaire-answer-option:hover,
.questionnaire-answer-option:focus-visible {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.32);
  background: var(--primary-soft);
  outline: none;
}

.questionnaire-answer-option > span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
}

.questionnaire-answer-option strong {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.questionnaire-answer-option.is-selected {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.38);
  background: #eaf1ff;
}

.questionnaire-answer-option.is-selected > span {
  box-shadow: inset 0 0 0 3px #eaf1ff;
  background: var(--primary);
}

.questionnaire-option-more {
  color: var(--muted);
  background: var(--surface-muted);
}

.questionnaire-flag {
  display: flex;
  width: fit-content;
  max-width: 320px;
  margin-bottom: 5px;
  border-color: rgba(217, 119, 6, 0.22);
  color: #9f4d12;
  background: #fff7ed;
}

.muted-cell {
  color: var(--muted);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.evidence-toolbar {
  align-items: flex-end;
}

.directory-toolbar strong,
.directory-toolbar span {
  display: block;
}

.directory-toolbar strong {
  font-size: 1rem;
}

.directory-toolbar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.directory-search {
  width: min(320px, 100%);
  display: grid;
  gap: 5px;
}

.directory-search input,
.directory-search select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.directory-search select {
  appearance: none;
  padding-right: 32px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 9px center / 6px 6px no-repeat,
    var(--surface);
}

.filter-action {
  display: flex;
  align-items: flex-end;
  min-height: 36px;
}

.column-visibility-shell {
  position: relative;
}

.column-toggle-button {
  min-height: 42px;
  white-space: nowrap;
}

.column-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.column-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.column-panel-head strong {
  color: var(--text);
  font-size: 0.88rem;
}

.column-panel-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.column-option-list {
  display: grid;
  gap: 7px;
}

.column-option {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.column-option input {
  flex: 0 0 auto;
}

.document-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.84rem;
}

.literature-table {
  min-width: 1460px;
}

.literature-stat-hero {
  margin-bottom: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.literature-stat-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
}

.literature-stat-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.literature-stat-metric {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.literature-stat-metric span,
.literature-stat-metric em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.literature-stat-metric strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1;
}

.literature-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.literature-stat-card,
.literature-insight-section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.literature-stat-card--wide,
.literature-insight-section {
  grid-column: 1 / -1;
}

.literature-stat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.literature-stat-card-head h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.22;
}

.literature-stat-card-head > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.literature-stat-bars {
  display: grid;
  gap: 7px;
}

.literature-stat-bar {
  display: grid;
  gap: 4px;
}

.literature-stat-bar div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.literature-stat-bar span {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.literature-stat-bar strong {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.literature-stat-bar i,
.literature-quality-grid i {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.literature-stat-bar i span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--stat-color, var(--primary));
}

.literature-stat-columns {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 4px 2px 0;
}

.literature-stat-card--compact-years {
  align-self: start;
}

.literature-stat-card--compact-years .literature-stat-columns {
  max-width: 500px;
  grid-template-columns: repeat(var(--stat-column-count), minmax(20px, 1fr));
}

.literature-stat-column {
  min-width: 0;
  height: 112px;
  display: grid;
  grid-template-rows: 13px minmax(0, 1fr) 26px;
  align-items: end;
  justify-items: center;
  gap: 4px;
}

.literature-stat-column span,
.literature-stat-column em {
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.05;
}

.literature-stat-column i {
  width: 100%;
  min-width: 14px;
  max-width: 20px;
  display: block;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #45a1ff 0%, var(--primary) 100%);
}

.literature-stat-column em {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.literature-stat-donut-layout {
  display: grid;
  grid-template-columns: 112px minmax(150px, 200px);
  justify-content: start;
  gap: 8px;
  align-items: center;
}

.literature-stat-donut {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.literature-stat-donut::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.literature-stat-donut-center {
  position: absolute;
  inset: 28%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  text-align: center;
}

.literature-stat-donut-center strong,
.literature-stat-donut-center span {
  display: block;
}

.literature-stat-donut-center strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1;
}

.literature-stat-donut-center span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
}

.literature-stat-legend {
  width: 100%;
  max-width: 200px;
  display: grid;
  gap: 4px;
  justify-self: start;
  min-width: 0;
}

.literature-stat-legend-row {
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 9px fit-content(118px) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
}

.literature-stat-legend-row span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.literature-stat-legend-row strong,
.literature-stat-legend-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.literature-stat-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.literature-stat-note,
.literature-country-source {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.literature-country-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  align-items: stretch;
}

.literature-country-map-shell {
  min-width: 0;
  min-height: 320px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.literature-country-map {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: #eaf1ff;
}

.literature-country-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.literature-country-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.literature-country-side-head strong {
  color: var(--text);
  font-size: 0.84rem;
}

.literature-country-reset {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.literature-country-list {
  display: grid;
  gap: 6px;
  align-content: start;
}

.literature-country-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--country-color, var(--primary));
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.literature-country-row--summary {
  color: var(--muted);
  border-left-color: var(--border-strong);
  background: var(--surface-muted);
  cursor: default;
}

.literature-country-row:hover,
.literature-country-row:focus-visible,
.literature-country-row.is-active {
  border-color: var(--country-color, var(--primary));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  outline: none;
}

.literature-country-row.is-active {
  background: color-mix(in srgb, var(--country-color, var(--primary)) 10%, #ffffff);
}

.literature-country-flag {
  font-size: 0.98rem;
  line-height: 1;
}

.literature-country-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.literature-country-copy strong,
.literature-country-copy em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.literature-country-copy strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.18;
}

.literature-country-copy em {
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.literature-country-count {
  min-width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 950;
}

.literature-country-source {
  margin: 10px 0 0;
}

.literature-topic-cloud {
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.literature-topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.25rem 0.52rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: var(--surface);
  color: var(--topic-color, var(--primary));
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
  font-size: var(--topic-size, 1rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.literature-map-country-label {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 5px rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.literature-map-popup {
  display: grid;
  gap: 4px;
  min-width: 190px;
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.3;
}

.literature-map-popup strong {
  font-size: 0.9rem;
}

.literature-map-popup span,
.literature-map-popup em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.literature-detail-section {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.literature-detail-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.literature-detail-section summary::-webkit-details-marker {
  display: none;
}

.literature-detail-section summary span,
.literature-detail-section summary strong,
.literature-detail-section summary em {
  display: block;
}

.literature-detail-section summary strong {
  color: var(--text);
  font-size: 0.92rem;
}

.literature-detail-section summary em {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.literature-detail-caret {
  color: var(--muted);
  font-weight: 900;
  transition: transform 160ms ease;
}

.literature-detail-section[open] .literature-detail-caret {
  transform: rotate(180deg);
}

.literature-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.literature-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.literature-quality-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.literature-quality-grid article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.literature-quality-grid strong,
.literature-quality-grid span {
  font-size: 0.78rem;
}

.literature-quality-grid span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.literature-quality-grid i span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--ready);
}

.literature-insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.literature-insight-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.literature-insight-card strong {
  color: var(--text);
  line-height: 1.22;
}

.literature-insight-card span,
.literature-insight-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.literature-insight-card em {
  font-weight: 900;
}

.recruitment-table {
  min-width: 940px;
  table-layout: fixed;
  font-size: 0.78rem;
}

.recruitment-table th,
.recruitment-table td {
  padding: 8px 8px;
}

.recruitment-table .table-static-heading {
  min-height: 22px;
  letter-spacing: 0;
}

.recruitment-table .col-row-number {
  width: 42px;
}

.recruitment-table .col-organization {
  width: 238px;
}

.recruitment-table .col-person-name {
  width: 174px;
}

.recruitment-table .col-topic-blocks {
  width: 246px;
}

.recruitment-topic-list {
  display: grid;
  gap: 5px;
}

.recruitment-topic-item {
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recruitment-topic-item strong {
  color: var(--primary);
}

.recruitment-topic-overview {
  margin-bottom: 22px;
}

.recruitment-topic-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.recruitment-topic-cards {
  display: grid;
  gap: 10px;
}

.recruitment-topic-cards p {
  margin: 8px 0 0;
  font-weight: 400;
}

.recruitment-topic-cards .recruitment-topic-focus {
  color: var(--text);
  font-weight: 650;
}

.recruitment-topic-next {
  margin-top: 18px;
}

.recruitment-row { cursor: pointer; }
.recruitment-row:hover td { background: var(--surface-muted); }
.recruitment-detail-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.recruitment-detail-link:hover { color: var(--primary); text-decoration: underline; }
.recruitment-detail-link:focus-visible, .recruitment-contact-add:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.recruitment-contact-add { cursor: pointer; font: inherit; }
.recruitment-contact-form { display: grid; gap: 18px; }
.recruitment-contact-form label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.recruitment-contact-form input { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); background: var(--surface); font: inherit; font-weight: 400; }
.recruitment-contact-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.recruitment-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.recruitment-contact-actions [role="status"] { font-size: .8rem; color: var(--muted); }
.practice-map-detail-panel .detail-line-list + .text-button { margin-top: 14px; }
.recruitment-contact-actions button:disabled { opacity: .6; cursor: wait; }

.recruitment-table .col-location {
  width: 128px;
}

.recruitment-table .col-state {
  width: 164px;
}

.recruitment-table .col-priority {
  width: 72px;
}

.recruitment-table .col-status-label {
  width: 116px;
}

.recruitment-table .col-candidate-type {
  width: 132px;
}

.recruitment-table .col-next-action {
  width: 230px;
}

.practice-map-workspace {
  --practice-map-canvas-height: max(560px, min(760px, calc(100vh - 194px)));
  --practice-map-top-height: var(--practice-map-canvas-height);
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 194px);
}

.practice-map-workspace.has-practice-detail {
  grid-template-columns: 380px minmax(0, 1fr);
}

.practice-map-workspace.is-list-collapsed,
.practice-map-workspace.has-practice-detail.is-list-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.practice-map-panel,
.practice-map-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.practice-map-panel {
  min-height: 0;
  height: var(--practice-map-top-height);
  max-height: var(--practice-map-top-height);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.practice-map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practice-map-panel-title {
  min-width: 0;
}

.practice-map-panel-head h2 {
  margin: 5px 0 8px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.practice-map-panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.practice-map-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.practice-map-site-count {
  flex: 0 0 auto;
  min-width: 56px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
}

.practice-map-site-count span {
  color: var(--primary);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
}

.practice-map-list-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-radius: 9px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  cursor: pointer;
}

.practice-map-list-toggle:hover,
.practice-map-list-toggle:focus-visible {
  border-color: rgba(21, 95, 228, 0.34);
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.practice-map-list-toggle-icon {
  width: 20px;
  height: 20px;
}

.practice-map-workspace.is-list-collapsed .practice-map-panel {
  align-items: center;
  padding: 12px 8px;
}

.practice-map-workspace.is-list-collapsed .practice-map-panel-head {
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

.practice-map-workspace.is-list-collapsed .practice-map-panel-title,
.practice-map-workspace.is-list-collapsed .practice-map-list {
  display: none;
}

.practice-map-workspace.is-list-collapsed .practice-map-panel-actions {
  flex-direction: column;
}

.practice-map-workspace.is-list-collapsed .practice-map-site-count {
  min-width: 0;
  width: 46px;
  padding: 8px 6px;
}

.practice-map-source-note {
  padding: 10px 12px;
  border: 1px solid rgba(21, 95, 228, 0.17);
  border-radius: 7px;
  color: var(--text-secondary);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.practice-map-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.practice-map-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-muted);
  text-align: left;
  cursor: pointer;
}

.practice-map-row:hover,
.practice-map-row:focus-visible,
.practice-map-row.is-active {
  border-color: rgba(21, 95, 228, 0.34);
  background: #eef5ff;
  outline: none;
}

.practice-map-logo {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cbd8f0;
  background: #eef3ff;
  box-shadow: 0 4px 12px rgba(16, 46, 110, 0.1);
}

.practice-map-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.practice-map-logo--logo {
  background: #fff;
}

.practice-map-logo--logo img {
  padding: 5px;
  object-fit: contain;
}

.practice-map-logo--detail.practice-map-logo--logo img {
  padding: 10px;
}

.practice-map-logo > span {
  color: var(--primary);
  font-weight: 900;
}

.practice-map-logo--list {
  width: 42px;
  height: 34px;
  border-radius: 9px;
}

.practice-map-logo--list > span {
  font-size: 0.74rem;
}

.practice-map-logo--detail {
  width: 112px;
  height: 82px;
  flex: 0 0 112px;
  border-radius: 14px;
}

.practice-map-logo--detail > span {
  font-size: 1.15rem;
}

.practice-map-row strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

.practice-map-row-copy {
  min-width: 0;
}

.practice-map-row-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.practice-map-row-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 7px !important;
}

.practice-map-row-badges .study-badge,
.practice-map-row-badges .soft-chip {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 0.66rem;
}

.practice-map-row-badges .practice-doctor-count-chip {
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.66rem;
  font-weight: 900;
}

.practice-doctor-count-chip--single {
  color: #155fe4 !important;
  border-color: rgba(21, 95, 228, 0.2) !important;
  background: #eaf1ff !important;
}

.practice-doctor-count-chip--team {
  color: #16834a !important;
  border-color: rgba(22, 131, 74, 0.2) !important;
  background: #eaf8ef !important;
}

.practice-doctor-count-chip--large {
  color: #8a4d0f !important;
  border-color: rgba(183, 121, 31, 0.24) !important;
  background: #fff8eb !important;
}

.practice-map-area {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.practice-map-box {
  position: relative;
  min-height: 560px;
  height: var(--practice-map-canvas-height);
  overflow: hidden;
}

.practice-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #eef3fb;
}

.practice-map-canvas.leaflet-container {
  color: var(--text);
  background: #eef3fb;
  font-family: var(--font-family);
}

.practice-map-canvas .leaflet-tile {
  background: transparent;
}

.practice-map-neighbor-country {
  pointer-events: none;
}

.practice-map-study-country-highlight {
  pointer-events: auto;
  cursor: pointer;
  transition: filter 0.16s ease;
}

.practice-map-study-country-highlight:hover,
.practice-map-study-country-highlight.is-active {
  filter: drop-shadow(0 2px 7px rgba(16, 46, 110, 0.22));
}

.practice-map-controls {
  position: absolute;
  z-index: 500;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.practice-map-dropdown {
  position: relative;
}

.practice-map-dropdown[hidden],
.practice-map-study-chips[hidden] {
  display: none !important;
}

.practice-map-study-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(21, 95, 228, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(16, 46, 110, 0.1);
}

.practice-map-study-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.practice-map-study-chip strong {
  color: inherit;
  font-size: 0.68rem;
}

.practice-map-study-chip:hover,
.practice-map-study-chip:focus-visible,
.practice-map-study-chip.is-active {
  border-color: rgba(21, 95, 228, 0.28);
  color: var(--primary);
  background: #fff;
  outline: none;
}

.practice-map-toggle,
.practice-map-icon-button,
.practice-map-dropdown-menu button {
  border: 1px solid rgba(21, 95, 228, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(16, 46, 110, 0.12);
  font-weight: 900;
  cursor: pointer;
}

.practice-map-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.practice-map-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1rem;
}

.practice-map-toggle:hover,
.practice-map-toggle:focus-visible,
.practice-map-icon-button:hover,
.practice-map-icon-button:focus-visible {
  color: var(--primary);
  outline: none;
}

.practice-map-dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 230px;
  max-height: 320px;
  display: grid;
  gap: 5px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(16, 46, 110, 0.17);
}

.practice-map-dropdown-menu[hidden] {
  display: none !important;
}

.practice-map-dropdown-menu button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.76rem;
  text-align: left;
}

.practice-map-dropdown-menu button:hover,
.practice-map-dropdown-menu button:focus-visible,
.practice-map-dropdown-menu button.is-active {
  border-color: rgba(21, 95, 228, 0.34);
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.practice-map-legend {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  min-width: 176px;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(21, 95, 228, 0.15);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 46, 110, 0.13);
  font-size: 0.78rem;
}

.practice-map-legend strong {
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.practice-map-legend i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: var(--map-marker-color, var(--primary));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.practice-map-legend-dot--1 {
  --map-marker-color: #155fe4;
}

.practice-map-legend-dot--2 {
  --map-marker-color: #d97706;
}

.practice-map-legend-dot--3 {
  --map-marker-color: #16834a;
}

.practice-map-fallback {
  position: absolute;
  inset: 72px 16px 16px;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.practice-map-fallback[hidden] {
  display: none !important;
}

.cat-marker {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: var(--map-marker-color, var(--primary));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.cat-marker--study-1 {
  --map-marker-color: #b971ac;
}

.cat-marker--study-2 {
  --map-marker-color: #a6d9e2;
}

.cat-marker--study-3 {
  --map-marker-color: #f08338;
}

.cat-marker--trace {
  --map-marker-color: #b971ac;
}

.cat-marker-active {
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(21, 95, 228, 0.18), 0 5px 12px rgba(16, 46, 110, 0.26);
}

.practice-map-leaflet-marker {
  border: 0;
  background: transparent;
}

.practice-map-marker-shell {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.practice-map-marker-shell.is-active {
  width: 46px;
  height: 46px;
}

.practice-map-marker-shell.is-active::before,
.practice-map-marker-shell.is-active::after {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  content: "";
}

.practice-map-marker-shell.is-active::before {
  background: rgba(21, 95, 228, 0.18);
  box-shadow: 0 0 0 8px rgba(21, 95, 228, 0.1);
}

.practice-map-marker-shell.is-active::after {
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(21, 95, 228, 0.34);
}

.practice-map-marker-shell.is-active .cat-marker-active {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-width: 3px;
  background: #155fe4;
  transform: none;
  box-shadow: 0 8px 20px rgba(16, 46, 110, 0.34);
}

.practice-map-state-label,
.practice-map-city-label {
  pointer-events: none;
  color: rgba(31, 47, 91, 0.48);
  font-family: var(--font-family);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
}

.practice-map-state-label {
  font-size: 0.52rem;
}

.practice-map-city-label {
  color: rgba(51, 65, 85, 0.5);
  font-size: 0.54rem;
}

.practice-map-country-label {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 8px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px rgba(16, 46, 110, 0.08);
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.practice-map-country-label small { font-size: .63rem; font-weight: 600; opacity: .75; }

.practice-map-country-label:hover,
.practice-map-country-label.is-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(16, 46, 110, 0.18);
}

.practice-map-country-label--nld {
  border-color: rgba(234, 88, 12, 0.26);
  color: #9a3412;
}

.practice-map-country-label--est {
  border-color: rgba(124, 58, 237, 0.26);
  color: #5b21b6;
}

.practice-map-country-label--fin {
  border-color: rgba(15, 118, 110, 0.26);
  color: #115e59;
}

.practice-map-popup {
  min-width: 190px;
  color: var(--text);
  font-family: var(--font-family);
}

.practice-map-popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.practice-map-popup span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.practice-map-detail-panel {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.practice-map-workspace.has-practice-detail .practice-map-detail-panel {
  display: block;
}

.profile-page-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.project-profile-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-profile-panel .profile-panel__body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.project-profile-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.project-profile-tabs .detail-tab {
  min-height: 38px;
  min-width: 94px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 1px);
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.project-profile-tabs .detail-tab:hover,
.project-profile-tabs .detail-tab:focus-visible,
.project-profile-tabs .detail-tab.is-active {
  border-color: rgba(21, 95, 228, 0.18);
  color: var(--primary);
  background: var(--surface);
  outline: none;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

.project-profile-panel .profile-tab-panel {
  display: grid;
  gap: 14px;
}

.project-profile-panel .profile-tab-panel[hidden] {
  display: none;
}

.project-profile-panel .profile-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.project-profile-panel .profile-section h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 950;
}

.project-profile-panel .profile-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.project-profile-panel .profile-photo-action {
  display: grid;
  justify-items: center;
}

.project-profile-panel .profile-avatar-detail {
  width: 128px;
  height: 128px;
  border: 1px solid var(--border);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  font-size: 1.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.project-profile-panel .profile-identity-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
}

.project-profile-panel .profile-eyebrow {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-profile-panel .profile-identity-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 950;
}

.project-profile-panel .profile-team-line {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-profile-panel .profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(22, 131, 74, 0.2);
  border-radius: 999px;
  color: var(--ready);
  background: var(--ready-soft);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.profile-status-pill--soft {
  border-color: var(--border);
  color: var(--primary);
  background: var(--primary-soft);
}

.project-profile-panel .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-profile-panel .profile-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.project-profile-panel .profile-field--wide {
  grid-column: 1 / -1;
}

.project-profile-panel .profile-field-label {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 950;
}

.project-profile-panel .profile-field-value {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 800;
}

.project-profile-panel .profile-role-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.project-profile-panel .profile-role-card div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.project-profile-panel .profile-role-card strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 950;
}

.project-profile-panel .profile-role-card span:not(.profile-status-pill) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
  font-weight: 760;
}

.project-profile-panel .profile-team-section {
  display: grid;
  gap: 14px;
}

.project-profile-panel .profile-team-section h3 {
  margin-bottom: 0;
}

.project-profile-panel .profile-team-section .persona-org-chart {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-profile-panel .profile-team-section .org-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .profile-page-shell {
    width: 100%;
  }

  .project-profile-panel {
    border-radius: 0;
    box-shadow: none;
  }

  .project-profile-panel .profile-panel__body {
    padding: 10px;
  }

  .project-profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-profile-panel .profile-hero,
  .project-profile-panel .profile-grid,
  .project-profile-panel .profile-team-section .org-report-grid,
  .project-profile-panel .profile-role-card {
    grid-template-columns: 1fr;
  }

  .project-profile-panel .profile-hero {
    gap: 16px;
    text-align: center;
    justify-items: center;
  }

  .project-profile-panel .profile-avatar-detail {
    width: 112px;
    height: 112px;
  }

  .project-profile-panel .profile-eyebrow,
  .project-profile-panel .profile-meta,
  .project-profile-panel .profile-role-card .profile-status-pill {
    justify-self: center;
  }

  .project-profile-panel .profile-meta {
    justify-content: center;
  }
}

/* Profile: the same surfaces, tabs and study colours as the cockpit. */
.profile-page-shell { width: min(980px, 100%); }
.project-profile-panel.profile-redesign {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-redesign .profile-panel__body { gap: 24px; padding: 0; }
.profile-redesign .profile-tab-panel { gap: 20px; }
.profile-redesign .project-profile-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.profile-redesign .project-profile-tabs .detail-tab {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: .9rem;
  font-weight: 600;
}
.profile-redesign .project-profile-tabs .detail-tab:hover,
.profile-redesign .project-profile-tabs .detail-tab.is-active {
  color: var(--promotionscockpit-blue);
  border-bottom-color: var(--promotionscockpit-blue);
  background: transparent;
  box-shadow: none;
}
.profile-redesign .project-profile-tabs .detail-tab:focus-visible {
  outline: 2px solid var(--promotionscockpit-blue);
  outline-offset: 3px;
}
.profile-redesign .project-profile-tabs:has(.detail-tab:only-child) { display: none; }
.profile-overview-layout,
.profile-context-grid,
.profile-working-grid,
.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.profile-overview-public { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; width: 100%; }
.profile-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-working-grid,
.profile-settings-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.profile-settings-primary,
.profile-settings-secondary { display: grid; align-content: start; gap: 20px; min-width: 0; }
.profile-redesign .profile-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(0, 48, 91, .025);
}
.profile-redesign .profile-main-card { padding: 32px; }
.profile-redesign .profile-main-card .profile-section,
.profile-redesign .profile-personal-details .profile-section,
.profile-redesign .profile-service-card .sw-calendar-settings {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-redesign .profile-hero {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  text-align: left;
  justify-items: stretch;
}
.profile-redesign .profile-avatar-detail {
  width: 88px;
  height: 88px;
  box-shadow: none;
  background: var(--surface-muted);
}
.profile-redesign .profile-identity-copy { gap: 0; }
.profile-name-row,
.profile-role-row,
.profile-section-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-redesign .profile-name-row h2 {
  margin: 0;
  color: var(--deep-navy);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.profile-redesign .profile-team-line { font-size: .9rem; font-weight: 400; overflow-wrap: anywhere; }
.profile-redesign .profile-dissertation { margin-top: 34px; }
.profile-section-heading { justify-content: space-between; margin-bottom: 12px; min-height: 32px; }
.profile-redesign .profile-section-heading h3,
.profile-label,
.profile-redesign .sw-calendar-settings h3 {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  font-weight: 550;
}
.profile-dissertation-title {
  margin: 0;
  color: var(--deep-navy);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.025em;
  white-space: pre-line;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.profile-redesign .profile-focus-section { margin-top: 28px; padding-top: 20px !important; border-top: 1px solid var(--border) !important; }
.profile-focus-text,
.profile-field-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.profile-empty-text,
.profile-help { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.profile-help { margin: 14px 0 0; }
.profile-redesign .profile-personal-details .profile-section + .profile-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-redesign .profile-goal-section { border-left: 3px solid var(--promotionscockpit-blue); }
.profile-goal-section .profile-field-text { max-width: 74ch; font-size: 1.1rem; line-height: 1.65; color: var(--deep-navy); }
.profile-study-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.profile-study-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto 1fr;
  gap: 12px 8px;
  padding: 16px 0 0;
  border-top: 3px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.6;
}
.profile-study-row[data-profile-study="TRACE"] { border-top-color: var(--trace); }
.profile-study-row[data-profile-study="MAPS"] { border-top-color: var(--maps); }
.profile-study-row[data-profile-study="PATHS"] { border-top-color: var(--paths); }
.profile-study-row strong { grid-column: 1; color: var(--deep-navy); font-size: .9rem; font-weight: 650; }
.profile-study-row > span:not(.profile-study-arrow) { grid-column: 1 / -1; grid-row: 2; }
.profile-study-arrow { grid-column: 2; grid-row: 1; color: var(--promotionscockpit-blue); }
.profile-study-row:hover { color: var(--promotionscockpit-blue); text-decoration: none; }
.profile-study-row:hover strong { text-decoration: underline; }
.profile-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.profile-redesign .profile-link-row .text-button {
  padding: 2px 0;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--promotionscockpit-blue);
  font-size: .8rem;
  font-weight: 550;
  box-shadow: none;
}
.profile-redesign .profile-link-row .text-button:hover { text-decoration: underline; }
.profile-supervisor { margin: 18px 0 0; color: var(--deep-navy); font-size: .88rem; line-height: 1.6; font-weight: 550; }
.profile-source-details summary { color: var(--deep-navy); font-size: .87rem; font-weight: 550; line-height: 1.5; cursor: pointer; }
.profile-question-list { display: grid; gap: 16px; padding-left: 20px; margin: 20px 0; color: var(--text-secondary); font-size: .85rem; line-height: 1.65; }
.profile-question-list p { margin: 4px 0 0; }
.profile-redesign .profile-note-section { padding-block: 18px; }
.profile-note-section .profile-section-heading { margin-bottom: 4px; }
.profile-facts { display: grid; gap: 0; margin: 0; }
.profile-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-facts > div:last-child { border-bottom: 0; }
.profile-facts dt { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.profile-facts dd { margin: 0; color: var(--text-secondary); font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.profile-planning-anchor { margin: 6px 0 22px; }
.profile-planning-anchor dt { color: var(--muted); font-size: .8rem; }
.profile-planning-anchor dd { display: grid; gap: 6px; margin: 8px 0 0; }
.profile-planning-anchor strong { color: var(--deep-navy); font-size: 1.6rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.profile-planning-anchor span { color: var(--muted); font-size: .8rem; }
.profile-facts.profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 0 0; border-top: 1px solid var(--border); }
.profile-stat-grid > div { display: flex; flex-direction: column-reverse; align-self: start; gap: 6px; padding: 0; border: 0; }
.profile-stat-grid dt { font-size: .72rem; }
.profile-stat-grid dd { color: var(--deep-navy); font-size: 1.4rem; font-weight: 550; line-height: 1.3; }
.profile-budget-help { margin-top: 10px; font-size: .72rem; }
.profile-planning-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-planning-result .profile-field-text { margin-top: 8px; color: var(--deep-navy); }
.profile-absence { margin-top: 10px; }
.profile-absence > div { grid-template-columns: 1fr; gap: 4px; }
.profile-working-grid .profile-section-heading h3,
.profile-settings-layout .profile-section-heading h3 { color: var(--deep-navy); font-size: .95rem; font-weight: 600; }
.profile-support-choice { margin-top: 6px; }
.profile-support-choice p { color: var(--deep-navy); font-size: 1.15rem; line-height: 1.5; font-weight: 550; margin: 8px 0 20px; }
.profile-facts.profile-assistance-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile-assistance-meta > div { grid-template-columns: 1fr; gap: 4px; border: 0; padding: 0; }
.profile-writing-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-writing-rules { margin-top: 8px; font-size: .85rem; }
.profile-footnote { margin: 0 2px; max-width: 80ch; }
.profile-redesign .profile-service-card .sw-calendar-settings { display: grid; gap: 10px; }
.profile-service-card .sw-calendar-settings + .sw-calendar-settings { margin-top: 24px; padding-top: 22px !important; border-top: 1px solid var(--border) !important; }
.profile-redesign .sw-calendar-settings h3 { color: var(--deep-navy); font-size: .95rem; font-weight: 600; }
.profile-service-card .profile-link-row { margin-top: 0; }
.profile-service-card .sw-calendar-settings p { margin: 0; }
.profile-service-card details { font-size: .8rem; line-height: 1.6; }
.profile-service-card summary { color: var(--promotionscockpit-blue); cursor: pointer; }
.profile-redesign .profile-briefing-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; padding-block: 20px; }
.profile-briefing-card .profile-section-heading,
.profile-briefing-card .profile-help,
.profile-briefing-card .profile-link-row { margin: 0; }
.profile-briefing-card .profile-section-heading h3 { color: var(--deep-navy); font-size: .95rem; font-weight: 600; }
.profile-briefing-links { display: grid; gap: 4px; }
.profile-public-note { margin: 0 auto; width: min(760px, 100%); color: var(--muted); font-size: .72rem; }
.profile-edit-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.profile-edit-button .app-icon { width: 15px; height: 15px; }
.profile-edit-button:hover:not(:disabled) { border-color: var(--rule-blue); color: var(--promotionscockpit-blue); background: var(--surface-muted); }
.profile-edit-button:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 2px; }
.profile-edit-button:disabled { opacity: .4; cursor: default; }
.profile-editor { display: grid; gap: 12px; min-width: 0; width: 100%; text-align: left; }
.profile-editor label { color: var(--muted); font-size: .8rem; font-weight: 550; }
.profile-dissertation .profile-editor label,
.profile-focus-section .profile-editor label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.profile-editor input,
.profile-editor textarea,
.profile-editor select { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-secondary); background: var(--surface); font: inherit; font-size: .9rem; line-height: 1.5; }
.profile-editor textarea { resize: vertical; }
.profile-editor :is(input,textarea,select):focus { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 2px; }
.profile-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-editor-actions button { font-size: .82rem; min-height: 38px; }
.profile-editor-actions button:disabled { opacity: .55; cursor: wait; }
.profile-edit-error,
.profile-load-error { margin: 0; color: var(--blocked); font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.profile-preference-editor { gap: 18px; }
.profile-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-editor .profile-setting-field { display: grid; gap: 6px; min-width: 0; }
.profile-setting-toggle { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.profile-editor .profile-setting-toggle input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--promotionscockpit-blue); }
.profile-setting-toggle span { color: var(--text-secondary); font-size: .85rem; font-weight: 400; }
.profile-setting-field :focus-visible,
.profile-study-row:focus-visible,
.profile-link-row .text-button:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.profile-redesign .profile-working-grid:has(.profile-preference-editor),
.profile-redesign .profile-settings-layout:has(.profile-preference-editor) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1000px) {
  .profile-overview-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .profile-redesign .profile-card { padding: 22px; }
  .profile-overview-public { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .profile-overview-layout,
  .profile-context-grid,
  .profile-working-grid,
  .profile-settings-layout,
  .profile-redesign .profile-working-grid:has(.profile-preference-editor),
  .profile-redesign .profile-settings-layout:has(.profile-preference-editor) { grid-template-columns: minmax(0, 1fr); }
  .profile-redesign .profile-personal-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .profile-redesign .profile-personal-details .profile-section + .profile-section { margin: 0; padding: 0; border: 0; }
  .profile-personal-details .profile-section:last-child { grid-column: 1 / -1; }
  .profile-redesign .profile-briefing-card { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .profile-redesign .profile-panel__body { gap: 18px; }
  .profile-redesign .project-profile-tabs { flex-wrap: wrap; gap: 0 18px; justify-content: flex-start; overflow: visible; }
  .profile-redesign .project-profile-tabs .detail-tab { flex: 0 0 auto; min-width: 0; min-height: 44px; padding: 0 1px 10px; font-size: .75rem; }
  .profile-redesign .profile-card { padding: 20px; }
  .profile-redesign .profile-hero { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  .profile-redesign .profile-avatar-detail { width: 68px; height: 68px; }
  .profile-redesign .profile-name-row h2 { font-size: 1.25rem; }
  .profile-redesign .profile-team-line { font-size: .8rem; }
  .profile-redesign .profile-identity-section:has(.profile-editor) .profile-hero { grid-template-columns: 1fr; }
  .profile-redesign .profile-identity-section:has(.profile-editor) .profile-photo-action { display: none; }
  .profile-redesign .profile-dissertation { margin-top: 26px; }
  .profile-dissertation-title { font-size: 1.4rem; }
  .profile-redesign .profile-focus-section { margin-top: 24px; }
  .profile-redesign .profile-personal-details { display: block; }
  .profile-redesign .profile-personal-details .profile-section + .profile-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
  .profile-study-list { grid-template-columns: 1fr; gap: 20px; }
  .profile-study-row { gap: 8px; padding-top: 12px; }
  .profile-goal-section .profile-field-text { font-size: 1rem; }
  .profile-context-grid,
  .profile-overview-layout,
  .profile-working-grid,
  .profile-settings-layout,
  .profile-settings-secondary { gap: 16px; }
  .profile-facts > div { gap: 12px; }
  .profile-stat-grid > div,
  .profile-assistance-meta > div { gap: 6px; }
  .profile-stat-grid dd { font-size: 1.25rem; }
  .profile-stat-grid dt { font-size: .68rem; }
  .profile-setting-grid { grid-template-columns: 1fr; }
  .profile-edit-button { width: 40px; height: 40px; padding: 10px; }
  .profile-editor-actions button { min-height: 42px; }
  .profile-redesign .profile-link-row .text-button { min-height: 40px; }
  .profile-planning-anchor strong { font-size: 1.5rem; }
  .profile-planning-anchor dd { margin-top: 4px; }
}


.practice-map-detail-panel .detail-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.practice-map-detail-panel .detail-counter {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.practice-map-detail-panel .detail-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-map-detail-panel .detail-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  background: #f2f5ff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.practice-map-detail-panel .detail-close:hover,
.practice-map-detail-panel .detail-close:focus-visible {
  color: var(--primary);
  outline: none;
}

.practice-map-detail-panel .detail-content {
  padding: 18px;
}

.practice-map-detail-panel .detail-profile {
  display: grid;
  gap: 14px;
}

.practice-map-detail-panel .detail-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: center;
}

.practice-map-detail-panel .detail-profile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.practice-map-detail-panel .detail-profile-copy {
  min-width: 0;
}

.practice-map-detail-panel .detail-profile-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.16;
}

.practice-map-detail-panel .detail-profile-role {
  margin-top: 5px;
  color: #4d5d8f;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-map-detail-panel .detail-profile-subline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.practice-map-detail-panel .detail-profile-meta {
  display: flex;
  align-items: stretch;
}

.practice-map-detail-panel .detail-meta-control {
  width: 100%;
  display: grid;
  gap: 4px;
}

.practice-map-detail-panel .detail-meta-control__label {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.practice-map-detail-panel .detail-owner-trigger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bfd3ff;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.practice-map-detail-panel .detail-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.practice-map-detail-panel .detail-tabs::-webkit-scrollbar {
  display: none;
}

.practice-map-detail-panel .detail-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.practice-map-detail-panel .detail-tab:hover,
.practice-map-detail-panel .detail-tab:focus-visible,
.practice-map-detail-panel .detail-tab.is-active {
  border-color: rgba(21, 95, 228, 0.24);
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.practice-map-detail-panel .detail-tab-panel[hidden] {
  display: none !important;
}

.practice-map-detail-panel .section-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 37, 89, 0.1);
}

.practice-map-detail-panel .detail-section-title {
  margin: 0 0 8px;
  color: #243271;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-map-detail-panel .detail-line-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.practice-map-detail-panel .detail-line {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(94px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #edf1f8;
  font-size: 0.74rem;
}

.practice-map-detail-panel .detail-line:last-child {
  border-bottom: 0;
}

.practice-map-detail-panel .detail-line__label {
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.practice-map-detail-panel .detail-line__value {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.practice-map-detail-panel .detail-line--empty {
  background: #fff8e6;
}

.practice-map-detail-panel .detail-line--empty .detail-line__value {
  color: #8a641f;
  font-weight: 750;
}

.practice-map-detail-panel .detail-line__value a {
  color: var(--primary);
  text-decoration: none;
}

.practice-map-detail-panel .detail-line__value a:hover {
  text-decoration: underline;
}

.practice-map-detail-panel .detail-info-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
}

.practice-map-detail-panel .detail-info-card strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
}

.practice-map-detail-panel .detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.practice-map-detail-panel .sector-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(21, 95, 228, 0.18);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.practice-map-mini-site {
  min-height: 110px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid #dbe4fb;
  border-radius: 16px;
  color: var(--primary);
  background: linear-gradient(180deg, #f9fbff 0%, #f1f5ff 100%);
  text-align: center;
}

.practice-map-mini-site span {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.practice-map-mini-site strong {
  color: var(--text);
  font-size: 0.84rem;
}

body.practice-map-detail-open {
  overflow: hidden;
}

.practice-map-detail-drawer.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  pointer-events: none;
}

.practice-map-detail-drawer.detail-drawer.is-open {
  display: block;
}

.practice-map-detail-drawer .detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: auto;
}

.practice-map-detail-drawer .practice-map-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  grid-column: auto;
  width: min(520px, calc(100vw - 24px));
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-toolbar {
  align-items: stretch;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.practice-map-detail-statusbar {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.practice-map-detail-statusbar span {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
}

.practice-map-detail-statusbar em {
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.practice-map-detail-statusbar strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.practice-map-detail-statusbar span:first-child {
  border-color: rgba(22, 131, 74, 0.2);
  background: #eaf8ef;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-content {
  flex: 1 1 auto;
  overflow: visible;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-profile-top {
  grid-template-columns: 1fr;
  align-items: start;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-profile-main {
  align-items: flex-start;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-profile-copy h3 {
  max-width: 100%;
  font-size: 1.12rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.practice-map-detail-drawer .practice-map-logo--detail {
  width: 74px;
  height: 58px;
  flex: 0 0 74px;
  border-radius: 10px;
}

.practice-map-detail-drawer .practice-map-logo--detail.practice-map-logo--logo img {
  padding: 7px;
}

.practice-map-detail-drawer .practice-map-detail-panel .detail-line {
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
}

.document-table th,
.document-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.document-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-heading-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.table-heading-label {
  min-width: 0;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.table-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.table-column-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; min-width:0; }
.table-column-controls .table-heading-label { font-weight:600; text-transform:none; line-height:1.45; }
.table-column-controls .table-heading-actions { gap:4px; }
.table-column-controls :is(.table-sort-control,.table-filter-button) { position:relative; width:26px; min-width:26px; height:28px; padding:4px; border-color:transparent; background:transparent; }
.table-column-controls :is(.table-sort-control,.table-filter-button) svg { width:15px; height:15px; }
.table-column-controls :is(.table-sort-control,.table-filter-button):is(:hover,.is-active,[aria-expanded="true"]) { color:var(--promotionscockpit-blue); background:var(--primary-soft); border-color:var(--border); }
.table-column-controls :is(.table-sort-control,.table-filter-button):focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:2px; }
.table-filter-active-dot { display:none; position:absolute; right:2px; top:2px; width:4px; height:4px; border-radius:50%; background:currentColor; }
.table-filter-button[aria-pressed="true"] .table-filter-active-dot { display:block; }
.table-column-popover.literature-column-popover { position:fixed; right:auto; z-index:90; overscroll-behavior:contain; }

.table-sort-button {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  color: var(--primary);
  outline: none;
}

.table-sort-button em {
  min-width: 28px;
  color: var(--primary);
  font-size: 0.62rem;
  font-style: normal;
  text-align: right;
}

.table-static-heading {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recruitment-table .table-sort-button span {
  white-space: nowrap;
}

.table-sort-shell,
.table-filter-shell,
.table-column-action-shell {
  position: relative;
  flex: 0 0 auto;
}

.table-sort-control,
.table-filter-button,
.table-column-action-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.table-sort-control {
  width: auto;
  min-width: 30px;
  padding: 0 6px;
  font-size: 0.66rem;
  font-weight: 900;
}

.table-sort-control span {
  line-height: 1;
}

.table-filter-button svg {
  width: 15px;
  height: 15px;
}

.table-column-action-button {
  width: auto;
  min-width: 32px;
  display: inline-flex;
  gap: 5px;
  padding: 0 6px;
  font-size: 0.62rem;
  font-weight: 900;
}

.table-column-action-button svg {
  width: 14px;
  height: 14px;
}

.table-column-action-button span {
  line-height: 1;
  white-space: nowrap;
}

.table-sort-control:hover,
.table-sort-control:focus-visible,
.table-sort-control[aria-expanded="true"],
.table-sort-control.is-active,
.table-filter-button:hover,
.table-filter-button:focus-visible,
.table-filter-button[aria-expanded="true"],
.table-filter-button.is-active,
.table-column-action-button:hover,
.table-column-action-button:focus-visible,
.table-column-action-button[aria-expanded="true"],
.table-column-action-button.is-active {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.32);
  background: var(--primary-soft);
  outline: none;
}

.table-filter-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 35;
  width: min(260px, calc(100vw - 44px));
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-transform: none;
  letter-spacing: 0;
}

.table-column-popover {
  width: min(300px, calc(100vw - 44px));
}

.table-filter-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.table-menu-section + .table-menu-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.table-menu-section-title {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-filter-popover-head strong {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.table-filter-popover-head button {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.table-filter-option-list {
  display: grid;
  gap: 5px;
}

.table-filter-option {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.table-filter-option:hover,
.table-filter-option:focus-visible,
.table-filter-option.is-active {
  color: var(--primary);
  border-color: rgba(21, 95, 228, 0.26);
  background: var(--primary-soft);
  outline: none;
}

.table-filter-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-filter-option strong {
  color: var(--muted);
  font-size: 0.7rem;
}

.table-filter-input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

.table-filter-input::placeholder {
  color: var(--muted);
}

.table-filter-inline-clear {
  width: 100%;
  min-height: 28px;
  margin-top: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.document-table tbody tr:last-child td {
  border-bottom: 0;
}

.document-table tbody tr:hover {
  background: #fbfdff;
}

.questionnaire-table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.questionnaire-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.questionnaire-table th {
  position: static;
  padding: 0 8px 5px;
  border-bottom: 0;
  background: transparent;
}

.questionnaire-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.questionnaire-row td {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.questionnaire-row .col-questionnaire-id {
  background: #f8fbff;
}

.questionnaire-row .col-questionnaire-question {
  border-left-color: rgba(21, 95, 228, 0.24);
  background: #fbfdff;
}

.questionnaire-row .col-questionnaire-answer {
  background: #fcfdff;
}

.questionnaire-table td:first-child {
  border-left: 1px solid rgba(21, 95, 228, 0.24);
  border-radius: 8px 0 0 8px;
}

.questionnaire-table td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 8px 8px 0;
}

.questionnaire-table tbody tr:hover {
  background: transparent;
}

.questionnaire-table tbody tr:hover td {
  border-color: var(--border-strong);
  background: #fbfdff;
}

.questionnaire-table .col-questionnaire-id {
  width: 48px;
}

.questionnaire-table .col-questionnaire-question {
  width: 32%;
}

.questionnaire-table .col-questionnaire-variable {
  width: 16%;
}

.questionnaire-table .col-questionnaire-hypothesis {
  width: 16%;
}

.questionnaire-table .col-questionnaire-answer {
  width: 28%;
}

.document-title {
  max-width: 340px;
  font-weight: 900;
  line-height: 1.28;
}

.document-note,
.document-path,
.document-meta,
.document-stage {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.document-path {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.document-meta,
.document-stage {
  font-size: 0.76rem;
}

.literature-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.literature-title {
  max-width: 390px;
}

.literature-topbar-logo { width:118px; height:32px; object-fit:contain; margin-left:auto; flex:0 0 auto; }
#view-literature .literature-table { min-width:1080px; }
#view-literature th .table-column-controls { min-width:max-content; }
#view-literature th .table-heading-label { white-space:nowrap; overflow-wrap:normal; }
#view-literature th:nth-child(2) { min-width:200px; }
#view-literature .literature-table :is(th,td) { padding-left:10px; padding-right:10px; }
.literature-cited-documents { display:grid; gap:5px; min-width:105px; color:var(--text-secondary); line-height:1.45; font-size:12px; }
.literature-entry { cursor:pointer; }
.literature-entry:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:-2px; background:var(--primary-soft); }
.literature-column-popover { position:fixed; z-index:100; max-height:calc(100dvh - 24px); }
body.literature-drawer-open { overflow:hidden; }
.literature-detail-drawer.sw-person-drawer { width:min(760px,calc(100vw - 28px)); }
.literature-detail-drawer .sw-person-drawer-head { padding:20px 28px; background:var(--surface); }
.literature-detail-drawer .sw-person-drawer-head h2 { font-size:17px; }
.literature-detail-drawer .sw-person-drawer-head .sw-eyebrow { color:var(--muted); }
.literature-detail-drawer .sw-person-drawer-content { padding:28px; }
.literature-document-preview { display:grid; grid-template-columns:164px minmax(0,1fr); align-items:start; gap:26px; padding:0 0 28px; margin-bottom:28px; border-bottom:1px solid var(--border); }
.literature-cover-preview { margin:0; min-width:0; }
.literature-cover-sheet { display:flex; align-items:center; justify-content:center; width:100%; min-height:218px; padding:0; border:1px solid var(--border); border-radius:2px; background:var(--surface-muted); color:#8094aa; overflow:hidden; }
.literature-cover-sheet > svg { width:46px; height:56px; }
.literature-cover-sheet > img { display:block; width:100%; height:auto; }
.literature-cover-sheet:disabled { opacity:1; cursor:default; }
.has-pdf .literature-cover-sheet { min-height:0; background:#fff; cursor:pointer; box-shadow:0 3px 12px rgba(15,38,65,.09); }
.has-pdf .literature-cover-sheet:hover { border-color:var(--promotionscockpit-blue); }
.literature-cover-sheet:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:4px; }
.literature-cover-preview figcaption { margin-top:10px; color:var(--muted); font-size:10px; line-height:1.5; text-align:center; }
.literature-preview-summary { min-width:0; }
.literature-document-preview h3 { margin:8px 0 13px; color:var(--deep-navy); font-size:20px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
.literature-preview-meta { margin:0; font-size:11px; color:var(--muted); line-height:1.65; }
.literature-preview-authors { margin:0 0 10px; font-size:12px; color:var(--text-secondary); line-height:1.65; }
.literature-preview-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:18px; }
.literature-preview-links .sw-person-profile-link { margin:0; font-size:11px; }
.literature-preview-links .primary-button { min-height:36px; padding:8px 14px; font-size:12px; }
.literature-detail-drawer .literature-detail-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; }
.literature-detail-drawer .literature-detail-facts > div { display:block; }
.literature-detail-facts dt { margin-bottom:5px; }
.literature-fact-wide { grid-column:1 / -1; }
.literature-detail-drawer .sw-person-drawer-section { margin-top:26px; }
.literature-detail-drawer .sw-person-drawer-section h3 { color:var(--deep-navy); font-size:14px; margin-bottom:14px; }
.literature-abstract p { margin:0; font-size:13px; color:var(--text-secondary); line-height:1.85; white-space:pre-line; overflow-wrap:anywhere; }
.literature-classification { padding-top:24px; border-top:1px solid var(--border); }
.literature-detail-source { font-size:10px; color:var(--muted); line-height:1.6; }
.literature-pdf-reader { margin:0 0 28px; border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--surface); }
.literature-pdf-reader[hidden] { display:none; }
.literature-pdf-reader > summary { display:flex; align-items:center; gap:14px; padding:14px 16px; cursor:pointer; color:var(--deep-navy); font-size:13px; list-style:none; }
.literature-pdf-reader > summary::-webkit-details-marker { display:none; }
.literature-pdf-reader > summary > span:first-child { font-weight:650; }
.literature-pdf-reader > summary > span:nth-child(2) { margin-left:auto; color:var(--muted); font-size:11px; }
.literature-pdf-reader[open] > summary > span:last-child { transform:rotate(180deg); }
.literature-pdf-reader > summary:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:-3px; }
.literature-pdf-reader .sw-pdf-content { height:min(620px,70dvh); overflow:hidden; }
.literature-pdf-toolbar { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:0 16px 14px; font-size:11px; color:var(--muted); }
.literature-pdf-toolbar .sw-person-profile-link { margin:0; font-size:11px; }
.literature-pdf-reader .sw-pdf-controls { padding:10px 14px; gap:10px; font-size:11px; }
.literature-pdf-reader .sw-pdf-pagination { gap:8px; }
.literature-pdf-reader .sw-pdf-pagination button { min-height:34px; min-width:34px; font-size:17px; }
.literature-pdf-reader .sw-pdf-pagination span { min-width:72px; }
.literature-pdf-reader .sw-pdf-controls select { min-height:34px; max-width:160px; }
.literature-pdf-reader .sw-pdf-status { padding:10px 16px; font-size:12px; }
@media(max-width:760px) {
  body[data-view="literature"] .topbar { flex-direction:row; align-items:center; flex-wrap:nowrap; gap:12px; }
  body[data-view="literature"] .topbar-title { flex:1; width:auto; }
  .literature-topbar-logo { width:88px; height:28px; }
  #view-literature th .table-column-controls { min-width:0; }
  #view-literature .literature-table td { padding-left:0; padding-right:0; }
  #view-literature .literature-table { min-width:0; }
}
@media(max-width:620px) {
  .literature-detail-drawer.sw-person-drawer { width:100vw; }
  .literature-detail-drawer .sw-person-drawer-head { padding:18px 20px; }
  .literature-detail-drawer .sw-person-drawer-content { padding:22px 20px; }
  .literature-document-preview { grid-template-columns:112px minmax(0,1fr); gap:18px; padding-bottom:24px; margin-bottom:24px; }
  .literature-cover-sheet { min-height:156px; }
  .literature-document-preview h3 { font-size:18px; }
  .literature-preview-links { gap:12px; }
  .literature-detail-drawer .literature-detail-facts { gap:18px 22px; }
  .literature-pdf-reader .sw-pdf-controls label { width:100%; justify-content:space-between; }
  .literature-pdf-reader .sw-pdf-content { height:68dvh; }
}
@media(max-width:420px) {
  .literature-document-preview { grid-template-columns:1fr; gap:20px; }
  .literature-cover-preview { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:center; gap:18px; padding:16px; background:var(--surface-muted); border-radius:4px; }
  .literature-cover-preview figcaption { margin:0; text-align:left; font-size:11px; line-height:1.7; }
  .literature-detail-drawer .literature-detail-facts { gap:18px; }
}
@media(max-width:360px) {
  #view-literature .literature-table thead tr { grid-template-columns:1fr; }
}

.recruitment-title {
  max-width: 215px;
}

.recruitment-person {
  max-width: 100px;
}

.recruitment-person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.practice-map-logo--portrait {
  background: #eef1f5;
  box-shadow: none;
}

.practice-map-logo--portrait img {
  object-position: center 25%;
}

.practice-map-logo--recruitment,
.practice-map-logo--list.practice-map-logo--portrait {
  width: 46px;
  height: 52px;
  flex: 0 0 46px;
  border-radius: 10px;
}

.practice-map-logo--recruitment > span {
  font-size: 0.75rem;
}

.practice-map-detail-drawer .practice-map-logo--detail.practice-map-logo--portrait {
  width: 88px;
  height: 104px;
  flex: 0 0 88px;
}

.practice-map-row-person {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 0.75rem;
  line-height: 1.3;
}

.portrait-source {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}

.person-search-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(21, 95, 228, 0.22);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.recruitment-number {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 20px;
  color: var(--muted);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.recruitment-table .region-cell {
  gap: 5px;
}

.recruitment-table .region-flag {
  width: 16px;
  font-size: 0.9rem;
}

.literature-authors,
.literature-journal,
.doi-link,
.empty-cell {
  display: block;
  color: var(--text-secondary);
  line-height: 1.35;
}

.literature-authors {
  max-width: 170px;
}

.literature-journal {
  max-width: 180px;
}

.doi-link {
  max-width: 210px;
  overflow-wrap: anywhere;
}

.empty-cell {
  color: var(--muted);
}

.empty-cell--blank {
  min-height: 18px;
}

.region-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 800;
}

.region-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 1rem;
  line-height: 1;
}

.study-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.study-badge--1 {
  color: #155fe4;
  background: #eaf1ff;
  border-color: rgba(21, 95, 228, 0.18);
}

.study-badge--2 {
  color: #9f4d12;
  background: #fff2e6;
  border-color: rgba(217, 119, 6, 0.22);
}

.study-badge--3 {
  color: #16834a;
  background: #eaf8ef;
  border-color: rgba(22, 131, 74, 0.2);
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 5px;
  padding: 2px 7px;
  border: 1px solid rgba(21, 95, 228, 0.16);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.priority-chip.priority-a {
  color: #b91c1c;
  background: #fff1f2;
  border-color: rgba(185, 28, 28, 0.22);
}

.priority-chip.priority-b {
  color: #9f4d12;
  background: #fff7ed;
  border-color: rgba(217, 119, 6, 0.24);
}

.priority-chip.priority-c {
  color: #475569;
  background: #f1f5f9;
  border-color: rgba(100, 116, 139, 0.24);
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--open);
  background: var(--open-soft);
  font-size: 0.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.category-chip,
.citation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-science {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.18);
  background: #e9fbf7;
}

.category-policy {
  color: #8a4b12;
  border-color: rgba(180, 83, 9, 0.2);
  background: #fff4df;
}

.category-law {
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.18);
  background: #f3ecff;
}

.category-orientation {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.18);
  background: #eaf1ff;
}

.category-local {
  color: #9d174d;
  border-color: rgba(157, 23, 77, 0.18);
  background: #fff0f6;
}

.category-archive {
  color: #475569;
  border-color: rgba(71, 85, 105, 0.2);
  background: #f1f5f9;
}

.category-unknown {
  color: #5b6472;
  border-color: rgba(91, 100, 114, 0.2);
  background: #f6f8fb;
}

.citation-chip.is-cited {
  color: var(--ready);
  border-color: rgba(22, 131, 74, 0.2);
  background: var(--ready-soft);
}

.citation-chip.is-open {
  color: var(--open);
  border-color: rgba(79, 107, 138, 0.2);
  background: var(--open-soft);
}

.detail-drawer {
  display: inline-block;
}

.detail-drawer summary,
.quiet-shelf > summary,
.archive-section > summary {
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.detail-drawer[open] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.detail-drawer p {
  margin-bottom: 8px;
}

.detail-drawer blockquote {
  margin: 10px 0 0;
  padding: 10px;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-secondary);
  line-height: 1.45;
}

.source-list,
.document-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li,
.document-list li,
.archive-row {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.source-list span,
.document-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.quiet-shelf {
  margin-top: 14px;
  padding: 13px;
}

.shelf-body {
  margin-top: 12px;
}

.shelf-card {
  padding: 12px;
  border-left-width: 4px;
}

.timeline {
  position: relative;
}

.kairos-frame {
  --chronos-min-width: 1120px;
  width: 100%;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  box-shadow: var(--shadow);
}

.chronos-schedule {
  display: grid;
  gap: 20px;
  width: max(100%, var(--chronos-min-width));
}

.chronos-mobile-timeline {
  display: none;
}

.chronos-mobile-range-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.chronos-mobile-range-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.chronos-mobile-range-label.is-active {
  color: var(--promotionscockpit-blue);
}

.chronos-mobile-range-switch {
  width: 52px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(21, 95, 228, 0.22);
  border-radius: 999px;
  background: var(--surface-muted);
  cursor: pointer;
}

.chronos-mobile-range-switch[aria-checked="true"] {
  justify-content: flex-end;
  border-color: rgba(21, 95, 228, 0.34);
  background: var(--primary-soft);
}

.chronos-mobile-range-switch:focus-visible {
  outline: 2px solid rgba(21, 95, 228, 0.28);
  outline-offset: 2px;
}

.chronos-mobile-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--promotionscockpit-blue);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.chronos-mobile-timeline-grid {
  display: grid;
  grid-template-columns: 48px repeat(var(--chronos-mobile-columns), minmax(0, 1fr));
  grid-template-rows: 20px 18px repeat(var(--chronos-mobile-rows), 34px);
  gap: 4px;
  position: relative;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.chronos-mobile-timeline-corner,
.chronos-mobile-timeline-year,
.chronos-mobile-timeline-quarter {
  min-width: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
}

.chronos-mobile-timeline-corner {
  color: var(--promotionscockpit-blue);
  background: var(--surface-muted);
  font-size: 0.62rem;
}

.chronos-mobile-timeline-year {
  color: var(--text);
  background: color-mix(in srgb, var(--promotionscockpit-blue) 8%, #fff);
  font-size: 0.68rem;
}

.chronos-mobile-timeline-quarter {
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.54rem;
}

.chronos-mobile-timeline-package,
.chronos-mobile-timeline-phase {
  min-width: 0;
  position: relative;
  z-index: 2;
  border-radius: 7px;
  font-family: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.chronos-mobile-timeline-package {
  width: 100%;
  height: 28px;
  align-self: center;
  padding: 0 3px;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 22%, var(--border));
  color: var(--chronos-phase-strong);
  background: color-mix(in srgb, var(--chronos-phase-strong) 9%, #fff);
  font-size: 0.58rem;
}

.chronos-mobile-timeline-package.is-selected-package {
  border-color: var(--chronos-phase-strong);
  background: color-mix(in srgb, var(--chronos-phase-strong) 14%, #fff);
}

.chronos-mobile-timeline-track {
  height: 28px;
  align-self: center;
  border-radius: 7px;
  background: repeating-linear-gradient(
    90deg,
    rgba(184, 199, 232, 0.28) 0,
    rgba(184, 199, 232, 0.28) calc(100% / var(--chronos-mobile-columns) - 1px),
    rgba(255, 255, 255, 0.88) calc(100% / var(--chronos-mobile-columns) - 1px),
    rgba(255, 255, 255, 0.88) calc(100% / var(--chronos-mobile-columns))
  );
}

.chronos-mobile-timeline-phase {
  height: 26px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 28%, var(--border));
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--chronos-phase-strong) 18%, #fff), #fff);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
}

.chronos-mobile-timeline-phase::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--chronos-phase-strong) 0 var(--chronos-progress),
    rgba(184, 199, 232, 0.4) var(--chronos-progress) 100%
  );
}

.chronos-mobile-timeline-phase span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.56rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-grid {
  grid-template-columns: 54px repeat(var(--chronos-mobile-columns), minmax(0, 1fr));
  grid-template-rows: 26px 24px repeat(var(--chronos-mobile-rows), 48px);
  gap: 6px;
  padding: 10px;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-package,
.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-track {
  height: 38px;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-phase {
  min-height: 38px;
  height: 42px;
  padding: 0 6px 5px;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-phase span {
  font-size: 0.66rem;
  line-height: 1.08;
  white-space: nowrap;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-year {
  font-size: 0.78rem;
}

.chronos-mobile-timeline.is-year-view .chronos-mobile-timeline-quarter {
  font-size: 0.62rem;
}

.chronos-mobile-timeline-package:hover,
.chronos-mobile-timeline-package:focus-visible,
.chronos-mobile-timeline-phase:hover,
.chronos-mobile-timeline-phase:focus-visible,
.chronos-mobile-timeline-phase.is-selected {
  outline: none;
  border-color: color-mix(in srgb, var(--chronos-phase-strong) 44%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chronos-phase-strong) 16%, transparent);
}

.chronos-mobile-timeline-phase.is-active-phase {
  border-color: color-mix(in srgb, var(--chronos-phase-strong) 46%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--chronos-phase-strong) 24%, #fff), #fff);
}

.chronos-mobile-timeline-today {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.chronos-mobile-timeline-today::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--chronos-mobile-today-offset);
  width: 2px;
  border-radius: 999px;
  background: var(--promotionscockpit-blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.chronos-mobile-timeline-today span {
  display: none;
}

.chronos-progress-meter {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 199, 232, 0.48);
}

.chronos-progress-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--chronos-progress);
  border-radius: inherit;
  background: var(--primary);
}

.chronos-progress-meter::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--chronos-target);
  width: 2px;
  border-radius: 999px;
  background: #17275f;
}

.chronos-progress-meter.is-actual-only::after {
  display: none;
}

.chronos-grid {
  --chronos-label-width: clamp(250px, 18vw, 380px);
  display: grid;
  grid-template-columns: var(--chronos-label-width) repeat(16, minmax(54px, 1fr));
  grid-template-rows: 44px 34px repeat(var(--chronos-rows), minmax(clamp(96px, 13vh, 145px), 1fr));
  min-height: clamp(520px, calc(100vh - var(--topbar-height) - 190px), 720px);
  overflow: hidden;
  background: linear-gradient(90deg, #f8fbff 0, #ffffff 56%, #f5f8ff 100%);
}

.chronos-label-head,
.chronos-year,
.chronos-quarter,
.chronos-package {
  display: flex;
  align-items: center;
  border-color: rgba(203, 213, 225, 0.6);
}

.chronos-label-head {
  padding: 0 12px;
  border-right: 1px solid rgba(203, 213, 225, 0.82);
  color: var(--text-secondary);
  font-weight: 900;
}

.chronos-year,
.chronos-quarter {
  justify-content: center;
  border-bottom: 1px solid rgba(203, 213, 225, 0.52);
  color: var(--text-secondary);
}

.chronos-year {
  background: rgba(234, 241, 255, 0.55);
  font-size: 0.98rem;
  font-weight: 900;
}

.chronos-quarter {
  background: rgba(248, 250, 252, 0.72);
  font-size: 0.68rem;
  font-weight: 500;
}

.chronos-package {
  gap: 10px;
  padding: 12px;
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-right: 1px solid rgba(203, 213, 225, 0.82);
  color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--chronos-phase-strong) 9%, #fff), rgba(255, 255, 255, 0.76));
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.chronos-package:hover,
.chronos-package:focus-visible,
.chronos-package.is-selected-package {
  color: color-mix(in srgb, var(--chronos-phase-strong) 86%, #17275f);
  background: linear-gradient(90deg, color-mix(in srgb, var(--chronos-phase-strong) 15%, #fff), rgba(255, 255, 255, 0.86));
  outline: none;
  box-shadow: inset 4px 0 0 var(--chronos-phase-strong);
}

.chronos-package strong {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chronos-package-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: center;
}

.chronos-package-mark {
  width: min(178px, 100%);
  height: auto;
  max-height: 46px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.chronos-package-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background-color: var(--chronos-phase-strong);
  font-size: 0.75rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.13);
}

.chronos-track {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.62) 1px, transparent 1px);
  background-size: calc(100% / 16) 100%;
}

.chronos-phase {
  position: relative;
  align-self: center;
  min-width: 0;
  min-height: clamp(52px, 5vh, 72px);
  display: grid;
  place-items: center;
  padding: 10px 16px 14px 7px;
  border: 0;
  color: var(--chronos-phase-text, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--chronos-phase) 90%, #fff), var(--chronos-phase));
  box-shadow: 0 9px 20px var(--chronos-shadow);
  font-size: clamp(0.62rem, 0.54vw, 0.82rem);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.chronos-phase span {
  max-width: 100%;
  hyphens: auto;
  overflow-wrap: normal;
}

.chronos-phase > span:not(.chronos-phase-progress) {
  position: relative;
  z-index: 2;
}

.chronos-phase-progress {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  z-index: 2;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.chronos-phase-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--chronos-progress);
  border-radius: inherit;
  background: var(--chronos-progress-fill, #fff);
}

.chronos-phase-progress::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--chronos-target);
  width: 2px;
  border-radius: 999px;
  background: var(--chronos-progress-target, rgba(23, 39, 95, 0.86));
}

.chronos-phase.is-first {
  border-radius: 12px 0 0 12px;
}

.chronos-phase.is-last {
  border-radius: 0 12px 12px 0;
}

.chronos-phase.is-first.is-last {
  border-radius: 12px;
}

.chronos-phase:hover,
.chronos-phase:focus-visible,
.chronos-phase.is-selected {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(21, 95, 228, 0.14),
    0 12px 24px var(--chronos-shadow);
  transform: translateY(-1px);
}

.chronos-phase.is-active-phase {
  color: #fff;
  background: var(--chronos-phase-strong);
  color: var(--chronos-active-phase-text, var(--chronos-phase-text, #fff));
}

.chronos-today-cell {
  position: relative;
  z-index: 7;
  pointer-events: none;
}

.chronos-today-line {
  position: absolute;
  top: 70px;
  bottom: 8px;
  width: 2px;
  background: #17275f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.chronos-today-line span {
  position: absolute;
  top: 8px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: #17275f;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
}

.chronos-theme-trace,
.chronos-theme-pink {
  --chronos-phase: #ca8fc3;
  --chronos-phase-strong: var(--study-trace);
  --chronos-phase-text: #ffffff;
  --chronos-active-phase-text: #ffffff;
  --chronos-shadow: rgba(185, 113, 172, 0.24);
}

.chronos-theme-maps,
.chronos-theme-teal {
  --chronos-phase: #c7e9ef;
  --chronos-phase-strong: var(--study-maps);
  --chronos-phase-text: var(--deep-navy);
  --chronos-active-phase-text: var(--deep-navy);
  --chronos-progress-fill: var(--promotionscockpit-blue);
  --chronos-progress-target: rgba(0, 48, 91, 0.74);
  --chronos-shadow: rgba(0, 72, 153, 0.13);
}

.chronos-theme-paths,
.chronos-theme-violet {
  --chronos-phase: #f5b487;
  --chronos-phase-strong: var(--study-paths);
  --chronos-phase-text: var(--deep-navy);
  --chronos-active-phase-text: #ffffff;
  --chronos-shadow: rgba(240, 131, 56, 0.24);
}

.chronos-theme-promotionscockpit,
.chronos-theme-amber {
  --chronos-phase: var(--promotionscockpit-blue);
  --chronos-phase-strong: var(--deep-navy);
  --chronos-phase-text: #ffffff;
  --chronos-active-phase-text: #ffffff;
  --chronos-shadow: rgba(0, 48, 91, 0.24);
}

.chronos-package-number.chronos-theme-pink {
  background-color: #ec3e95;
}

.chronos-package-number.chronos-theme-teal {
  background-color: #1eb9a8;
}

.chronos-package-number.chronos-theme-violet {
  background-color: #a346f2;
}

.chronos-package-number.chronos-theme-amber {
  background-color: #ff9f0a;
}

.chronos-signal-ready {
  --chronos-signal: var(--ready);
  --chronos-signal-soft: var(--ready-soft);
}

.chronos-signal-attention {
  --chronos-signal: var(--attention);
  --chronos-signal-soft: var(--attention-soft);
}

.chronos-signal-blocked {
  --chronos-signal: var(--blocked);
  --chronos-signal-soft: var(--blocked-soft);
}

.chronos-signal-open {
  --chronos-signal: var(--open);
  --chronos-signal-soft: var(--open-soft);
}

body.chronos-drawer-open {
  overflow: hidden;
}

.chronos-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 620;
  background: rgba(246, 248, 252, 0.68);
  backdrop-filter: blur(3px) saturate(0.88);
}

.chronos-drawer-shell {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 630;
  width: min(540px, calc(100vw - 28px));
  display: grid;
  align-items: stretch;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: transparent;
}

.chronos-drawer-shell:focus {
  outline: none;
}

.chronos-detail-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 22%, var(--border));
  border-top: 7px solid var(--chronos-phase-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--chronos-phase-strong) 5%, #fff), #fff 38%),
    var(--surface);
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.08), 0 22px 44px rgba(15, 23, 42, 0.11);
}

.chronos-drawer-shell .chronos-detail-panel {
  min-height: calc(100vh - 32px);
  align-content: start;
  margin: 0;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16), 0 26px 54px var(--chronos-shadow);
}

.chronos-drawer-shell .chronos-detail-panel::before {
  display: none;
}

.chronos-detail-panel.is-selected {
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.08), 0 26px 54px var(--chronos-shadow);
}

.chronos-drawer-shell .chronos-detail-panel.is-selected {
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16), 0 26px 54px var(--chronos-shadow);
}

.chronos-detail-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  right: 8px;
  left: 8px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.38), transparent);
}

.chronos-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.chronos-detail-head h2 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}

.chronos-drawer-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 22%, var(--border));
  border-radius: 999px;
  color: var(--chronos-phase-strong);
  background: color-mix(in srgb, var(--chronos-phase-strong) 8%, #fff);
  cursor: pointer;
}

.chronos-drawer-close:hover,
.chronos-drawer-close:focus-visible {
  outline: none;
  color: #fff;
  background: var(--chronos-phase-strong);
  box-shadow: 0 8px 18px var(--chronos-shadow);
}

.chronos-drawer-close-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.chronos-detail-badges {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  flex-wrap: wrap;
  max-width: none;
}

.chronos-meta-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 22%, var(--border));
  border-radius: 999px;
  color: var(--chronos-phase-strong);
  background: color-mix(in srgb, var(--chronos-phase-strong) 10%, #fff);
  font-size: 0.7rem;
  font-weight: 950;
  white-space: nowrap;
}

.chronos-meta-badge--study {
  color: #fff;
  background: var(--chronos-phase-strong);
  border-color: var(--chronos-phase-strong);
  box-shadow: 0 7px 16px var(--chronos-shadow);
}

.chronos-meta-badge:is(button) {
  appearance: none;
  cursor: pointer;
}

.chronos-meta-badge:is(button):hover,
.chronos-meta-badge:is(button):focus-visible {
  transform: translateY(-1px);
  outline: 2px solid color-mix(in srgb, var(--chronos-phase-strong) 24%, transparent);
  outline-offset: 2px;
}

.chronos-meta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.chronos-status {
  min-width: max-content;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--chronos-signal) 24%, transparent);
  border-radius: 999px;
  color: var(--chronos-signal);
  background: var(--chronos-signal-soft);
  font-size: 0.72rem;
  font-weight: 950;
}

.chronos-detail-body {
  display: grid;
  gap: 12px;
}

.chronos-progress-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--chronos-phase-strong) 18%, var(--border));
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--chronos-phase-strong) 13%, #fff), #fff);
}

.chronos-progress-row div:first-child {
  display: grid;
  gap: 2px;
}

.chronos-progress-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chronos-progress-row strong {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 950;
}

.chronos-progress-row small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.chronos-progress-row small.is-negative {
  color: var(--blocked);
}

.chronos-progress-row small.is-positive {
  color: var(--ready);
}

.chronos-detail-grid,
.chronos-detail-sections {
  display: grid;
  gap: 10px;
}

.chronos-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.chronos-fact,
.chronos-detail-section {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--chronos-card-accent, var(--chronos-phase-strong)) 18%, var(--border));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--chronos-card-accent, var(--chronos-phase-strong)) 8%, #fff), #fff 72%),
    var(--surface-muted);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--chronos-card-accent, var(--chronos-phase-strong)) 82%, transparent);
}

.chronos-fact {
  display: grid;
  gap: 6px;
}

.chronos-card-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chronos-card-icon-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--chronos-card-accent, var(--chronos-phase-strong));
  stroke-width: 2.3;
}

.chronos-card-tone-decision {
  --chronos-card-accent: #155fe4;
}

.chronos-card-tone-next {
  --chronos-card-accent: #1eb9a8;
}

.chronos-card-tone-todos {
  --chronos-card-accent: #a346f2;
}

.chronos-card-tone-risks {
  --chronos-card-accent: #b7791f;
}

.chronos-card-tone-dependencies {
  --chronos-card-accent: #ec3e95;
}

.chronos-fact strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.chronos-detail-sections {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.chronos-detail-section ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.chronos-detail-section a {
  overflow-wrap: anywhere;
}

.chronos-card-tone-documents {
  --chronos-card-accent: #155fe4;
}

.chronos-material-section ul {
  padding-left: 0;
  list-style: none;
}

.chronos-material-section li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.chronos-material-section strong,
.chronos-material-section a {
  min-width: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.chronos-material-section span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

@media (max-width: 620px) {
  .chronos-drawer-shell {
    width: 100vw;
    padding: 10px;
  }

  .chronos-drawer-shell .chronos-detail-panel {
    min-height: calc(100vh - 20px);
  }

  .chronos-progress-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.milestone {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-left-width: 4px;
}

.milestone-marker {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: currentColor;
  color: var(--primary);
}

.milestone.status-blocked .milestone-marker {
  color: var(--blocked);
}

.milestone.status-attention .milestone-marker {
  color: var(--attention);
}

.milestone.status-ready .milestone-marker {
  color: var(--ready);
}

.archive-section {
  overflow: hidden;
}

.archive-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.archive-body {
  padding: 0 12px 12px;
}

.empty-note,
.error-card {
  padding: 12px;
  color: var(--muted);
  background: var(--surface-muted);
}

@media (min-width: 981px) {
  .promotionscockpit-shell.is-sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
  }

  .promotionscockpit-shell.is-sidebar-collapsed .app-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-head {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-brand {
    min-height: 38px;
    justify-content: center;
    padding: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark {
    width: 34px;
    height: 34px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span {
    width: 12px;
    height: 12px;
    border-radius: 4px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span:nth-child(2) {
    top: 12px;
    left: 16px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span:nth-child(3) {
    top: 22px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-copy,
  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-label,
  .promotionscockpit-shell.is-sidebar-collapsed .nav-label {
    display: none;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-nav {
    gap: 12px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section {
    gap: 6px;
    padding: 0 0 12px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-panel {
    display: grid;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .nav-item {
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 9px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--section-accent, #7ab7ff);
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile {
    justify-content: center;
    gap: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-footer {
    display: grid;
    gap: 8px;
    justify-items: center;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile {
    width: 100%;
    min-height: 48px;
    padding: 4px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile-copy {
    display: none;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-collapse-toggle {
    width: 100%;
    height: 40px;
    padding: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-collapse-label {
    display: none;
  }

}

@media (max-width: 1180px) {
  .org-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .practice-map-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .org-collaboration {
    grid-template-columns: 1fr;
  }

  .study-cockpit-card,
  .study-focus-card,
  .study-cockpit-card--progress {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .promotionscockpit-shell {
    grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr);
    min-height: 100dvh;
  }

  .promotionscockpit-shell.is-sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 0;
    padding: 14px 10px;
  }

  .sidebar-head {
    align-items: flex-start;
  }

  .sidebar-collapse-toggle {
    display: inline-flex;
  }

  .sidebar-brand {
    padding-bottom: 12px;
  }

  .sidebar-nav {
    display: grid;
  }

  .sidebar-section {
    display: grid;
    gap: 6px;
    overflow: visible;
  }

  .sidebar-section-label {
    display: flex;
  }

  .sidebar-section.is-collapsed .sidebar-section-panel {
    display: none;
  }

  .sidebar-section-panel {
    display: grid;
    gap: 6px;
    overflow: visible;
  }

  .sidebar-profile {
    margin-top: 0;
    width: 54px;
  }

  .nav-item {
    width: 100%;
    flex: 0 1 auto;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .app-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-head {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-brand {
    min-height: 38px;
    justify-content: center;
    padding: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark {
    width: 34px;
    height: 34px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span {
    width: 12px;
    height: 12px;
    border-radius: 4px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span:nth-child(2) {
    top: 12px;
    left: 16px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-mark span:nth-child(3) {
    top: 22px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .brand-copy,
  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-label,
  .promotionscockpit-shell.is-sidebar-collapsed .nav-label {
    display: none;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-nav {
    gap: 12px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section {
    gap: 6px;
    padding: 0 0 12px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-panel {
    display: grid;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .nav-item {
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 9px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--section-accent, #7ab7ff);
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile {
    justify-content: center;
    gap: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-footer {
    display: grid;
    gap: 8px;
    justify-items: center;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile {
    width: 100%;
    min-height: 48px;
    padding: 4px;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-profile-copy {
    display: none;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-collapse-toggle {
    width: 100%;
    height: 40px;
    padding: 0;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-collapse-label {
    display: none;
  }

  .filter-panel {
    width: min(360px, calc(100vw - 28px));
  }

  .practice-map-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .practice-map-workspace.has-practice-detail,
  .practice-map-workspace.is-list-collapsed,
  .practice-map-workspace.has-practice-detail.is-list-collapsed {
    grid-template-columns: 1fr;
  }

  .practice-map-panel {
    height: auto;
    max-height: none;
  }

  .practice-map-workspace.is-list-collapsed .practice-map-panel {
    align-items: stretch;
  }

  .practice-map-workspace.is-list-collapsed .practice-map-panel-head,
  .practice-map-workspace.is-list-collapsed .practice-map-panel-actions {
    flex-direction: row;
  }

  .practice-map-list {
    max-height: 320px;
  }

  .practice-map-detail-panel {
    height: auto;
  }

  .literature-country-layout,
  .literature-stat-donut-layout {
    grid-template-columns: 1fr;
  }

  .literature-country-side {
    grid-template-rows: auto auto;
  }

  .literature-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .literature-detail-grid {
    grid-template-columns: 1fr;
  }

  .questionnaire-overview,
  .questionnaire-section-grid {
    grid-template-columns: 1fr;
  }

  .today-focus-panel {
    grid-template-columns: 1fr;
  }

  .today-focus-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .today-step-grid {
    grid-template-columns: 1fr;
  }

  .start-study-grid {
    grid-template-columns: 1fr;
  }

  .start-dashboard {
    grid-template-columns: 1fr;
  }

  .start-study-stack {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero-card,
  .card-meta,
  .work-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-shell {
    padding: 16px 14px 24px;
  }

  .promotionscockpit-controls {
    padding: 10px 14px 0;
  }

  .controls-stack {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .active-filter-list {
    justify-content: flex-start;
    max-width: none;
  }

  .filter-results {
    min-width: 0;
  }

  .filter-shell,
  .column-visibility-shell,
  .filter-panel-button {
    width: 100%;
  }

  .filter-panel-button {
    justify-content: space-between;
  }

  .filter-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .column-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .practice-map-panel {
    padding: 12px;
  }

  .practice-map-panel-head h2 {
    font-size: 1.2rem;
  }

  .practice-map-detail-panel .detail-profile-main {
    align-items: flex-start;
  }

  .practice-map-logo--detail {
    width: 96px;
    height: 70px;
    flex-basis: 96px;
  }

  .practice-map-detail-panel .detail-profile-top {
    grid-template-columns: 1fr;
  }

  .practice-map-detail-panel .detail-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .practice-map-box,
  .practice-map-canvas {
    min-height: 520px;
    height: 520px;
  }

  .literature-country-map-shell,
  .literature-country-map {
    min-height: 300px;
    height: 300px;
  }

  .literature-country-list {
    grid-template-columns: 1fr;
  }

  .literature-stat-columns {
    min-height: 112px;
    overflow-x: visible;
    grid-template-columns: repeat(var(--stat-column-count), minmax(16px, 1fr));
    gap: 5px;
  }

  .literature-stat-column {
    height: 112px;
  }

  .literature-topic-cloud {
    justify-content: flex-start;
  }

  .literature-topic-chip {
    max-width: 100%;
    white-space: normal;
  }

  .practice-map-controls {
    top: 10px;
    left: 10px;
    right: 10px;
    align-items: flex-start;
  }

  .practice-map-dropdown {
    min-width: 0;
    flex: 1 1 auto;
  }

  .practice-map-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .practice-map-dropdown-menu {
    width: 100%;
  }

  .practice-map-legend {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-width: 0;
  }

  .study-accordion-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }

  .study-accordion-meta {
    grid-column: 2 / 3;
    justify-content: flex-start;
    max-width: none;
  }

  .study-switch-tabs {
    grid-template-columns: 1fr;
  }

  .study-switch-tab {
    min-height: 0;
  }

  .study-panel-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .study-panel-meta {
    grid-column: 2 / 3;
    justify-content: flex-start;
  }

  .study-count-pill {
    white-space: normal;
    line-height: 1.25;
  }

  .study-toggle-icon {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .study-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .sidebar-section-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .promotionscockpit-shell.is-sidebar-collapsed .sidebar-section.is-collapsed .sidebar-section-panel {
    display: none;
  }

  .nav-item {
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    font-size: 0.68rem;
    text-align: center;
  }

  .nav-item span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .sidebar-profile {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-profile > span:last-child {
    text-align: left;
  }

  .decision-grid,
  .micro-row,
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .today-focus-panel {
    padding: 14px;
  }

  .today-focus-main h2 {
    font-size: 1.32rem;
  }

  .today-focus-action {
    padding: 12px;
  }

  .today-focus-side {
    grid-template-columns: 1fr;
  }

  .start-study-button {
    min-height: 0;
  }

  .start-dashboard {
    --start-visual-height: 150px;
    gap: 10px;
  }

  .start-dashboard-column--map,
  .start-dashboard-column--maps-slot,
  .start-dashboard-column--paths-slot {
    min-height: 0;
  }

  .start-dashboard-panel {
    gap: 10px;
    padding: 10px;
  }

  .start-dashboard-panel-head {
    min-height: 0;
    gap: 8px;
    padding-bottom: 8px;
  }

  .start-dashboard-panel-head h3 {
    font-size: 0.98rem;
  }

  .start-study-slot-body {
    padding: 8px;
  }

  .start-dashboard-action {
    min-height: 30px;
    padding: 5px 8px;
  }

  .start-study-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .study-overview-page {
    gap: 10px;
  }

  .study-overview-feature .start-study-button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    gap: 10px;
    padding: 10px;
  }

  .study-overview-feature .start-study-logo-wrap {
    grid-row: auto;
    min-height: 112px;
    padding: 8px;
  }

  .study-overview-feature .start-study-logo-surface {
    min-height: 82px;
  }

  .study-overview-feature .start-study-logo {
    max-height: 76px;
  }

  .study-overview-feature .start-study-copy {
    gap: 5px;
  }

  .study-overview-feature .start-study-copy strong {
    font-size: 1.12rem;
  }

  .study-overview-feature .start-study-copy > span:last-child {
    font-size: 0.82rem;
  }

  .study-overview-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .study-overview-info-card {
    min-height: 0;
    gap: 9px;
    padding: 12px;
  }

  .study-overview-info-card p {
    font-size: 0.82rem;
  }

  .study-overview-info-list {
    gap: 7px;
  }

  .study-overview-info-list dd {
    font-size: 0.76rem;
  }

  .start-dashboard .start-study-button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: stretch;
    min-height: 0;
    gap: 12px;
    padding: 36px 16px 16px;
    border-top-width: 1px;
    border-left-width: 4px;
  }

  .start-dashboard .start-study-card.status-ready .start-study-button {
    border-left-color: var(--start-study-accent, var(--ready));
  }

  .start-dashboard .start-study-card.status-attention .start-study-button {
    border-left-color: var(--start-study-accent, var(--attention));
  }

  .start-dashboard .start-study-card.status-open .start-study-button {
    border-left-color: var(--start-study-accent, var(--open));
  }

  .start-dashboard .start-study-logo-wrap {
    grid-row: auto;
    min-height: 96px;
    height: auto;
    padding: 0;
  }

  .start-study-logo-wrap {
    min-height: 124px;
  }

  .start-dashboard .start-study-logo-surface,
  .start-study-logo-surface {
    min-height: 0;
  }

  .start-dashboard .start-study-logo {
    width: 100%;
    max-height: 56px;
  }

  .start-dashboard .start-study-copy {
    gap: 4px;
  }

  .start-dashboard .start-study-copy .eyebrow {
    font-size: 0.62rem;
  }

  .start-dashboard .start-study-copy strong {
    font-size: 1rem;
  }

  .start-dashboard .start-study-copy > .start-study-subtitle {
    font-size: 0.875rem;
  }

  .start-dashboard .start-study-progress {
    grid-column: 1 / -1;
    gap: 9px;
  }

  .start-dashboard .start-study-progress-track {
    height: 9px;
  }

  .start-dashboard .start-study-progress-label {
    display: flex;
  }

  .start-zotero-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px;
  }

  .start-zotero-mark {
    min-height: 44px;
    padding: 8px 10px;
  }

  .start-zotero-logo {
    max-width: 120px;
    max-height: 40px;
  }

  .start-zotero-count {
    min-width: 0;
    justify-items: center;
  }

  .start-literature-metrics,
  .trace-map-summary,
  .start-study-slot-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .start-literature-metrics span,
  .trace-map-summary span,
  .start-study-slot-metrics span {
    padding: 8px;
  }

  .start-literature-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .start-literature-list {
    display: none;
  }

  .trace-map-preview {
    height: var(--start-visual-height);
    display: grid;
    place-items: center;
    aspect-ratio: auto;
    min-height: 0;
  }

  .trace-mini-map {
    width: auto;
    max-width: 100%;
    height: 100%;
    min-height: 0;
  }

  .literature-stat-metrics,
  .literature-stat-grid,
  .literature-insight-grid {
    grid-template-columns: 1fr;
  }

  .literature-stat-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .literature-stat-card--wide,
  .literature-insight-section,
  .literature-detail-section {
    grid-column: auto;
  }

  .literature-quality-grid {
    grid-template-columns: 1fr;
  }

  .work-item-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-meta {
    justify-content: flex-start;
  }

  .evidence-task {
    grid-template-columns: 1fr;
  }

  .work-rank {
    margin-top: 0;
  }

  .work-summary {
    width: 100%;
    justify-content: stretch;
  }

  .work-summary span {
    min-width: 0;
    flex: 1 1 120px;
  }

  .persona-org-chart {
    padding: 12px;
  }

  .org-report-grid {
    grid-template-columns: 1fr;
  }

  .org-line {
    width: 2px;
    height: 18px;
    border-top: 0;
    border-right: 0;
    border-left: 2px solid var(--border-strong);
    border-radius: 0;
    margin-top: 8px;
  }

  .org-node,
  .org-node--leader {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .org-title-stack {
    justify-items: start;
  }

  .org-portrait {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .org-node--leader .org-portrait {
    width: 66px;
    height: 66px;
    border-radius: 17px;
  }

  .persona-detail-panel {
    padding: 12px;
  }

  .persona-section-grid {
    grid-template-columns: 1fr;
  }

  .persona-profile-pair {
    grid-template-columns: 1fr;
  }

  .persona-section-head,
  .persona-task-head,
  .persona-automation-head,
  .persona-automation-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-detail-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .study-cockpit-card,
  .study-focus-card,
  .study-cockpit-card--progress {
    grid-column: 1 / -1;
  }

  .study-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-progress-steps {
    grid-template-columns: 1fr;
  }

  .questionnaire-panel {
    padding: 12px;
  }

  .questionnaire-analysis-head,
  .questionnaire-analysis-methods {
    grid-template-columns: 1fr;
  }

  .questionnaire-analysis-head {
    display: grid;
  }

  .questionnaire-analysis-count {
    justify-items: start;
    width: 100%;
  }

  .questionnaire-analysis-status {
    grid-template-columns: 1fr;
  }

  .questionnaire-example-panel .questionnaire-analysis-focus-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "title"
      "text"
      "chart"
      "note";
  }

  .questionnaire-analysis-workflow ol {
    grid-template-columns: 1fr;
  }

  .questionnaire-analysis-workflow li {
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
  }

  .questionnaire-analysis-workflow li:not(:last-child)::before,
  .questionnaire-analysis-workflow li:not(:last-child)::after {
    display: none;
  }

  .questionnaire-analysis-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .directory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-action .text-button {
    width: 100%;
  }

  .document-table {
    min-width: 0;
  }

  .document-table,
  .document-table tbody,
  .document-table tr,
  .document-table td {
    display: block;
    width: 100%;
  }

  .document-table thead {
    display: none;
  }

  .document-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .document-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 0;
  }

  .questionnaire-table .col-questionnaire-id,
  .questionnaire-table .col-questionnaire-question,
  .questionnaire-table .col-questionnaire-variable,
  .questionnaire-table .col-questionnaire-hypothesis,
  .questionnaire-table .col-questionnaire-answer {
    width: 100%;
  }

  .document-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .document-title {
    max-width: none;
  }

  .recruitment-title,
  .recruitment-person {
    max-width: none;
  }

  .primary-button {
    max-width: none;
    width: 100%;
  }

  .kairos-frame {
    --chronos-min-width: 1120px;
    width: calc(100vw - 28px);
    margin-inline: -4px;
  }

  .chronos-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chronos-detail-sections {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* Mobile navigation uses the existing sidebar as a dismissible overlay. */
.mobile-sidebar-toggle,
.mobile-sidebar-close,
.mobile-sidebar-backdrop {
  display: none;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .promotionscockpit-shell,
  .promotionscockpit-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
  }

  .app-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, calc(100vw - 48px));
    height: 100dvh;
    max-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    overflow: hidden;
    visibility: hidden;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 80;
  }

  .promotionscockpit-shell.is-mobile-sidebar-open .app-sidebar {
    visibility: visible;
    transition-delay: 0s;
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: 16px 0 34px rgba(9, 35, 89, 0.22);
  }

  .mobile-sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(7, 27, 58, 0.4);
    z-index: 70;
  }

  .mobile-sidebar-toggle,
  .mobile-sidebar-close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--rule-blue);
    border-radius: 10px;
    background: #fff;
    color: var(--promotionscockpit-blue);
    cursor: pointer;
  }

  .mobile-sidebar-close {
    color: #fff;
    border-color: transparent;
    background: transparent;
  }

  .mobile-sidebar-toggle .nav-icon,
  .mobile-sidebar-close .nav-icon {
    width: 22px;
    height: 22px;
  }

  .topbar-title {
    align-items: center;
  }

  .topbar .view-header-icon,
  .sidebar-collapse-toggle {
    display: none;
  }

  .sidebar-head {
    align-items: center;
    flex-direction: row;
    flex: 0 0 auto;
    padding-bottom: 8px;
  }

  .sidebar-brand {
    min-height: 44px;
    padding: 0 4px;
  }

  .sidebar-brand .brand-mark {
    display: none;
  }

  .sidebar-nav {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 0 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar-section-panel {
    grid-template-columns: 1fr;
  }

  .sidebar-section-label {
    min-height: 44px;
    padding: 8px;
  }

  .app-sidebar .nav-item {
    min-height: 46px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    margin-inline: 0;
    padding: 10px 12px;
    font-size: 0.875rem;
    text-align: left;
  }

  .nav-item span:last-child {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .sidebar-footer {
    flex: 0 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar-profile {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar {
    transition: none;
  }
}

@media (max-width: 760px) {
  body[data-view="kairos"] .view-shell {
    padding: 10px;
  }

  #kairosTimeline {
    display: grid;
    gap: 12px;
  }

  .chronos-mobile-timeline {
    display: grid;
  }

  .kairos-frame {
    display: none;
  }
}

@media (max-width: 360px) {
  .start-dashboard-action {
    width: 38px;
    justify-content: center;
    padding: 5px;
  }

  .start-dashboard-action span {
    display: none;
  }

  .start-dashboard .start-study-button {
    grid-template-columns: 1fr;
  }

  .start-dashboard .start-study-copy {
    display: grid;
  }

  .start-dashboard .start-study-logo-wrap {
    height: auto;
  }

  .start-dashboard .start-study-logo {
    max-height: 58px;
  }
}

/* Keep all section selectors reachable while showing only one panel. */
.promotionscockpit-shell .sidebar-section.is-collapsed .sidebar-section-panel {
  display: none;
}
.promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-label {
  display: flex;
  justify-content: center;
  min-height: 30px;
  padding: 4px 0;
  font-size: 0.55rem;
  text-align: center;
}
.promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-label::before,
.promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-caret {
  display: none;
}
.promotionscockpit-shell.is-sidebar-collapsed .sidebar-section-label[aria-expanded="true"] {
  color: #fff;
  background: var(--section-surface);
  border-radius: 6px;
}

.recruitment-table .col-row-number { width: 108px; }
.recruitment-heading-button { min-height: 32px; }
.recruitment-heading-button.is-active,
.recruitment-heading-button[aria-expanded="true"] { color: var(--primary); }
.recruitment-heading-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
.recruitment-heading-indicator { display: inline-flex; align-items: center; gap: 3px; }
.recruitment-heading-indicator svg { width: 15px; height: 15px; flex: 0 0 auto; }
.recruitment-heading-button.is-active .recruitment-heading-indicator { background: var(--primary-soft); border-radius: 4px; }
.recruitment-column-popover { position: fixed; right: auto; z-index: 90; overscroll-behavior: contain; }
.recruitment-column-popover[hidden] { display: none; }
.recruitment-empty-option { width: 100%; margin-top: 6px; }

@media (max-width: 760px) {
  .recruitment-table thead { display: block; }
  .recruitment-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .recruitment-table thead th[class] { position: static; display: block; width: auto; padding: 0; border: 0; }
  .recruitment-heading-button { gap: 8px; min-height: 36px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
}

/* Study work extends the existing private workspace. */
[data-work-private][hidden] { display: none !important; }
.sw-workspace { display: grid; gap: 20px; max-width: 1320px; margin: 0 auto; }
.sw-workspace h2 { font-size: 19px; margin: 0 0 12px; }
.sw-workspace h3 { font-size: 16px; margin: 10px 0; line-height: 1.45; }
.sw-panel, .sw-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }
.sw-panel p, .sw-item p { line-height: 1.65; color: var(--text-secondary); margin: 8px 0 14px; overflow-wrap: anywhere; }
.sw-intro { max-width: 880px; }
.sw-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sw-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.sw-item { display: flex; flex-direction: column; align-items: stretch; }
.sw-item .sw-actions { margin-top: auto; padding-top: 14px; }
.sw-item-head, .sw-toolbar, .sw-freshness, .sw-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sw-freshness { border-bottom: 1px solid var(--border); padding: 2px 0 18px; }
.sw-freshness strong, .sw-freshness span { display: block; }
.sw-freshness strong { margin-bottom: 6px; }
.sw-freshness div span { color: var(--muted); font-size: 13px; }
.sw-study { font-size: 12px; font-weight: 700; border-left: 3px solid var(--promotionscockpit-blue); padding-left: 8px; }
.sw-study-trace { border-color: var(--trace); }.sw-study-maps { border-color: var(--maps); }.sw-study-paths { border-color: var(--paths); }
.sw-study-filters,.sw-actions,.sw-docs,.sw-process-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.sw-study-filters button[aria-pressed="true"] { color: #fff; background: var(--promotionscockpit-blue); border-color: var(--promotionscockpit-blue); }
.sw-check { display: flex !important; align-items: center; gap: 8px; font-size: 13px; }
.sw-check input { width: auto !important; }
.sw-document-link { display: inline-flex; align-items: flex-start; gap: 7px; color: var(--promotionscockpit-blue); font-size: 13px; line-height: 1.5; text-decoration: none; padding: 5px 0; }
.sw-document-link:hover span { text-decoration: underline; }
.sw-document-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sw-docs { gap: 8px 18px; }
.sw-document-list { display: grid; }.sw-document-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); align-items: center; }
.sw-document-row p { margin: 3px 0; font-size: 13px; }
.sw-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 18px 0; list-style: none; counter-reset: step; border-block: 1px solid var(--border); }
.sw-steps li { counter-increment: step; font-size: 13px; line-height: 1.5; }
.sw-steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--promotionscockpit-blue); font-weight: 700; margin-bottom: 5px; }
.sw-empty { padding: 32px; }.sw-empty p { margin-bottom: 0; max-width: 740px; }
.sw-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.sw-facts dt { font-size: 12px; color: var(--muted); }.sw-facts dd { margin: 5px 0 0; font-weight: 700; font-size: 14px; }
.sw-evidence-list { display: grid; gap: 14px; }.sw-search { display: grid; gap: 7px; font-size: 13px; width: min(420px,100%); }
.sw-search input,.sw-form input,.sw-form select,.sw-form textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--border-strong); border-radius: 5px; font: inherit; color: var(--text-secondary); background: #fff; }
.sw-brief-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; border-top: 1px solid var(--border); padding-top: 12px; }.sw-brief-grid p { font-size: 14px; }
.sw-process-summary { gap: 24px; }.sw-process-summary span { color: var(--muted); font-size: 13px; }.sw-process-summary strong { color: var(--text); font-size: 20px; margin-right: 5px; }
#workRecruitmentSummary { margin-bottom: 16px; padding: 18px 22px; }#workRecruitmentSummary[hidden] { display:none; }
.sw-recruitment { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }.sw-recruitment p { font-size: 13px; line-height: 1.5; }.sw-recruitment details { margin-top: 15px; font-size: 13px; }
.sw-dialog { width: min(720px,calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.sw-dialog::backdrop { background: rgba(10,25,50,.45); }.sw-dialog-head { margin-bottom: 22px; }.sw-dialog-head h2 { margin:0; font-size: 20px; max-width: 80%; }
.sw-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.sw-form label { display: grid; gap: 7px; font-size: 13px; }.sw-full { grid-column: 1/-1; }.sw-form fieldset { border: 1px solid var(--border); padding: 14px; }.sw-form fieldset label { margin: 7px 0; }.sw-form legend { font-size: 13px; }
.sw-error { color: var(--blocked); font-size: 13px; }.sw-notice { position: fixed; right: 22px; bottom: 20px; z-index: 150; background: var(--surface); box-shadow: var(--shadow); border-radius: 5px; }.sw-notice:not(:empty) { padding: 12px 18px; }
@media(max-width:900px) { .sw-grid,.sw-brief-grid { grid-template-columns:1fr; }.sw-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .sw-panel,.sw-item { padding: 17px; }.sw-document-row,.sw-form-fields { grid-template-columns:1fr; }.sw-document-row { gap:10px; }.sw-document-row button { justify-self:start; }.sw-dialog { padding:18px; }.sw-dialog-head h2 { max-width:70%; font-size:18px; }.sw-study-filters { gap:6px; }.sw-workspace { gap:15px; } }

/* Compact reading order: document or question first, details on demand. */
.sw-page-tools h2 { margin: 0 0 6px; font-size: 21px; }
.sw-page-tools p { margin: 0; }
.sw-filter-bar { padding-bottom: 4px; }
.sw-point-list, .sw-evidence-groups { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sw-point-row + .sw-point-row, .sw-evidence-group + .sw-evidence-group { border-top: 1px solid var(--border); }
.sw-point-row > summary, .sw-evidence-group > summary, .sw-support > summary, .sw-evidence-entry > summary { display: grid; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.sw-point-row > summary { grid-template-columns: 88px minmax(0,1fr) auto 16px; min-height: 82px; }
.sw-point-row summary strong, .sw-evidence-group summary strong { font-size: 15px; line-height: 1.5; }
.sw-point-row > summary:hover, .sw-evidence-group > summary:hover, .sw-evidence-entry > summary:hover, .sw-support > summary:hover { background: var(--surface-soft, #f6f8fc); }
.sw-workspace summary::-webkit-details-marker { display: none; }
.sw-workspace summary:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: -3px; }
.sw-row-status { font-size: 12px; line-height: 1.6; color: var(--muted); text-align: right; }
.sw-row-status small { display: block; font-size: 12px; }
.sw-chevron { color: var(--muted); text-align: center; transition: transform .15s; }
.sw-workspace details[open] > summary > .sw-chevron { transform: rotate(180deg); }
.sw-row-body { padding: 0 22px 22px; max-width: 960px; }
.sw-point-row .sw-row-body { padding-left: 126px; }
.sw-row-body p { line-height: 1.65; color: var(--text-secondary); margin: 0 0 14px; overflow-wrap: anywhere; }
.sw-row-body .sw-actions { margin-top: 16px; }
.sw-support { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sw-support > summary { grid-template-columns: minmax(0,1fr) auto 16px; padding-block: 17px; }
.sw-support summary strong { font-size: 14px; }
.sw-support-body { padding: 0 22px 20px; }
.sw-support-body > p { font-size: 13px; line-height: 1.6; }
.sw-evidence-group > summary { grid-template-columns: 22px minmax(0,1fr) auto 16px; min-height: 68px; }
.sw-document-icon svg { width: 19px; height: 19px; color: var(--promotionscockpit-blue); }
.sw-evidence-entries { padding: 0 22px 12px 60px; }
.sw-evidence-entry { border-top: 1px solid var(--border); }
.sw-evidence-entry > summary { grid-template-columns: minmax(0,1fr) auto 16px; padding: 16px 0; font-size: 14px; line-height: 1.65; }
.sw-evidence-entry .sw-row-body { padding-left: 0; }
.sw-evidence-entry blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--border-strong); background: var(--surface-soft, #f6f8fc); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.sw-footnote { margin: 0; }
.sw-form-options { border-top: 1px solid var(--border); padding-top: 14px; }
.sw-form-options > summary { cursor: pointer; font-size: 13px; color: var(--promotionscockpit-blue); padding-bottom: 14px; }
.sw-calendar-link { display: block; width: 100%; margin: 12px 0; padding: 10px; font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 5px; }
@media (max-width:600px) {
 .sw-page-tools h2 { font-size: 19px; }
 .sw-point-row > summary { grid-template-columns: minmax(0,1fr) auto 16px; gap: 7px 12px; padding: 16px; }
 .sw-point-row summary .sw-study { grid-column: 1; }
 .sw-point-row summary strong { grid-column: 1/3; grid-row: 2; font-size: 14px; }
 .sw-point-row summary .sw-row-status { grid-column: 2; grid-row: 1; }
 .sw-point-row summary .sw-chevron { grid-column: 3; grid-row: 1/3; }
 .sw-point-row .sw-row-body { padding: 0 16px 18px; }
 .sw-row-body p { font-size: 14px; }
 .sw-evidence-group > summary { grid-template-columns: minmax(0,1fr) auto 14px; gap: 8px; padding: 16px; }
 .sw-evidence-group summary .sw-document-icon { display: none; }
 .sw-evidence-group summary strong { font-size: 14px; }
 .sw-evidence-group summary .sw-meta { font-size: 11px; }
 .sw-evidence-entries { padding: 0 16px 10px; }
 .sw-evidence-entry > summary { grid-template-columns: minmax(0,1fr) 14px; gap: 6px; }
 .sw-evidence-entry summary .sw-row-status { grid-column: 1; text-align: left; }
 .sw-evidence-entry summary .sw-chevron { grid-column: 2; grid-row: 1/3; }
 .sw-support > summary { gap: 8px; padding: 16px; }
 .sw-support-body { padding-inline: 16px; }
}

/* Concrete review questions and account-level calendar preferences. */
.sw-page-tools .sw-intro { font-size: 14px; line-height: 1.65; color: var(--text-secondary); max-width: 820px; }
.sw-evidence-category > h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sw-review-guidance strong { color: var(--text); }
.sw-passage-context { margin: 0 0 18px; font-size: 13px; }
.sw-passage-context summary, .sw-calendar-manage summary { cursor: pointer; color: var(--promotionscockpit-blue); padding: 5px 0; }
.sw-passage-context p { margin-top: 12px; font-size: 13px; }
.sw-document-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 26px; }
.sw-document-categories h4 { font-size: 13px; margin: 8px 0; }
.sw-document-categories ul { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.7; }
.sw-calendar-settings { max-width: 820px; }
.sw-calendar-settings p, .sw-calendar-settings li { color: var(--text-secondary); line-height: 1.65; font-size: 14px; }
.sw-calendar-settings ul { padding-left: 22px; }
.sw-calendar-manage { margin-top: 22px; }
@media(max-width:600px) { .sw-document-categories { grid-template-columns: 1fr; } }
@media(max-width:600px) {
 .project-profile-tabs { flex-wrap: wrap; overflow: visible; }
 .project-profile-tabs .detail-tab { min-width: 0; flex: 1 1 auto; padding-inline: 9px; }
}

/* Weekly results use the existing study metrics: clear numbers, details on demand. */
.sw-weekly-review { overflow: hidden; }
.sw-weekly-review > summary { padding: 20px 24px; }
.sw-weekly-review > summary > strong { font-size: 16px; }
.sw-weekly-status { font-size: 12px; color: var(--promotionscockpit-blue); }
.sw-weekly-status::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 7px 1px 0; }
.sw-weekly-status.is-overdue { color: var(--blocked); }
.sw-weekly-review .sw-support-body { padding: 0 24px 22px; }
.sw-weekly-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 12px 0 15px; }
.sw-weekly-heading p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.sw-weekly-heading strong { color: var(--text); font-weight: 600; }
.sw-info-button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 6px; color: var(--promotionscockpit-blue); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.sw-info-button svg { width: 23px; height: 23px; }.sw-info-button:hover { background: var(--background); }
.sw-weekly-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0 0 23px; }
.sw-weekly-metric { display: flex; flex-direction: column; align-items: flex-start; position: relative; gap: 7px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-top: 3px solid var(--promotionscockpit-blue); border-radius: 0; padding: 14px 8px 10px; cursor: pointer; }
.sw-weekly-metric-planned { border-color: #769bb9; }.sw-weekly-metric-closed { border-color: var(--border-strong); }
.sw-weekly-metric > strong { font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--promotionscockpit-blue); }
.sw-weekly-metric > span { font-size: 15px; font-weight: 600; line-height: 1.4; }
.sw-weekly-metric > small { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-secondary); margin-top: 5px; }
.sw-weekly-metric > small > span { color: var(--promotionscockpit-blue); }
.sw-weekly-metric:disabled { cursor: default; opacity: 1; }.sw-weekly-metric:disabled > strong { color: var(--muted); }
.sw-weekly-metric:not(:disabled):hover,.sw-weekly-metric[aria-pressed="true"] { background: var(--background); }
.sw-weekly-metric:focus-visible,.sw-info-button:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-weekly-next { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--background); border-radius: 5px; }
.sw-weekly-next > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--promotionscockpit-blue); }
.sw-weekly-next > div { display: grid; gap: 4px; }.sw-weekly-next > div > span { font-size: 12px; color: var(--text-secondary); }.sw-weekly-next strong { font-size: 14px; line-height: 1.5; }
.sw-weekly-rhythm { font-size: 12px; color: var(--muted); margin-left: auto; }
.sw-review-selection { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-left: 3px solid var(--promotionscockpit-blue); background: var(--background); font-size: 13px; line-height: 1.6; }
.sw-point-row[open] > summary { background: var(--background); }
.sw-point-row .sw-point-detail { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 32px; max-width: none; padding: 24px 22px 26px 126px; }
.sw-point-detail h4 { margin: 0 0 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sw-point-detail .sw-point-question { font-size: 15px; line-height: 1.75; color: var(--text); }
.sw-point-note { padding: 14px 16px; background: var(--background); border-left: 2px solid var(--border-strong); margin: 18px 0; }.sw-point-note p { margin: 0; font-size: 14px; }
.sw-point-documents { margin-top: 22px; }.sw-point-documents .sw-docs { align-items: flex-start; flex-direction: column; gap: 5px; }.sw-point-detail .sw-actions { margin-top: 22px; }
.sw-point-reminder { padding-left: 22px; border-left: 1px solid var(--border); align-self: start; }
.sw-point-reminder > svg { width: 23px; height: 23px; color: var(--promotionscockpit-blue); margin-bottom: 13px; }.sw-point-reminder > strong { font-size: 14px; display: block; line-height: 1.5; }.sw-point-reminder > p { font-size: 12px; margin: 6px 0 12px; }.sw-point-reminder > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 10px; }
.sw-review-help { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }.sw-review-help strong { color: var(--text); }.sw-review-help ol { margin: 0; padding-left: 24px; }.sw-review-help li { padding-left: 7px; margin-bottom: 20px; }.sw-review-help li::marker { color: var(--promotionscockpit-blue); font-weight: 600; }.sw-review-help p { margin: 6px 0 0; }.sw-review-help > p { margin-top: 18px; }
.sw-review-help-note { background: var(--background); padding: 16px 20px; border-radius: 5px; }.sw-review-help-note h3 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
@media (max-width: 1000px) { .sw-point-row .sw-point-detail { padding-left: 22px; gap: 24px; grid-template-columns: minmax(0,1fr) 200px; } }
@media (max-width: 640px) {
  .sw-weekly-review > summary { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 17px 16px; }
  .sw-weekly-review > summary > strong { grid-column: 1; grid-row: 1; }
  .sw-weekly-status { grid-column: 1; grid-row: 2; }
  .sw-weekly-review > summary > .sw-chevron { grid-column: 2; grid-row: 1 / 3; }
  .sw-weekly-review .sw-support-body { padding: 0 16px 16px; }
  .sw-weekly-metrics { gap: 10px; margin-bottom: 17px; }.sw-weekly-metric { padding: 12px 0 8px; gap: 8px; }.sw-weekly-metric > strong { font-size: 36px; }.sw-weekly-metric > span { font-size: 13px; min-height: 2.8em; }.sw-weekly-metric > small { font-size: 11px; min-height: 2.8em; gap: 4px; }
  .sw-weekly-next { padding: 13px; gap: 10px; }.sw-weekly-next strong { font-size: 13px; }.sw-weekly-rhythm { display: none; }
  .sw-point-row .sw-point-detail { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 20px 16px; }.sw-point-reminder { padding: 16px; background: var(--background); border: 0; border-radius: 5px; }.sw-point-reminder > svg { float: left; margin: 0 10px 0 0; }.sw-point-reminder > span { margin-top: 7px; }
}

@media (max-width: 480px) {
  .sw-weekly-metrics { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sw-weekly-metric { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 3px 14px; padding: 14px 5px; border-top: 1px solid var(--border); }
  .sw-weekly-metric:first-child { border-top: 2px solid var(--promotionscockpit-blue); }
  .sw-weekly-metric > strong { grid-row: 1 / 3; align-self: center; }
  .sw-weekly-metric > span { font-size: 14px; min-height: 0; }
  .sw-weekly-metric > small { margin-top: 0; min-height: 0; font-size: 12px; justify-content: space-between; }
}

/* Study work: category accents, readable details and direct status choices. */
[data-sw-tone] { --sw-accent: var(--promotionscockpit-blue); --sw-tint: #f0f5fc; --sw-ink: var(--deep-navy); }
[data-sw-tone="trace"] { --sw-accent: var(--trace); --sw-tint: #f8f1f7; --sw-ink: #7c4273; }
[data-sw-tone="maps"] { --sw-accent: var(--maps); --sw-tint: #eff9fb; --sw-ink: #276471; }
[data-sw-tone="paths"] { --sw-accent: var(--paths); --sw-tint: #fff5ec; --sw-ink: #925019; }
[data-sw-tone="ethics"] { --sw-accent: var(--deep-navy); --sw-tint: #eef3f8; }
[data-sw-tone="notes"] { --sw-accent: var(--muted); --sw-tint: #f3f5f7; --sw-ink: #536478; }
.sw-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1.5; color: var(--promotionscockpit-blue); background: var(--open-soft); }
.sw-status svg { flex: 0 0 14px; width: 14px; height: 14px; }
.sw-status-waiting { color: #875c18; background: var(--attention-soft); }
.sw-status-done { color: #18643d; background: var(--ready-soft); }
.sw-row-status small { margin-top: 5px; }
.sw-study-filters button { min-height: 38px; border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; background: var(--surface); }
.sw-study-filters button[data-work-study="TRACE"] { border-bottom: 3px solid var(--trace); }
.sw-study-filters button[data-work-study="MAPS"] { border-bottom: 3px solid var(--maps); }
.sw-study-filters button[data-work-study="PATHS"] { border-bottom: 3px solid var(--paths); }
.sw-point-row { border-left: 4px solid var(--sw-accent); }
.sw-point-row[open] > summary { background: var(--sw-tint); }
.sw-point-row > summary { padding-left: 18px; min-height: 78px; }
.sw-point-row > summary .sw-study { padding: 5px 9px; border: 0; border-radius: 4px; background: var(--sw-tint); color: var(--sw-ink); justify-self: start; }
.sw-point-row .sw-point-detail { padding: 24px 22px 24px 28px; gap: 28px; grid-template-columns: minmax(0,1fr) 220px; }
.sw-workspace .sw-section-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--sw-ink, var(--deep-navy)); font-size: 12px; font-weight: 700; }
.sw-section-heading svg { width: 18px; height: 18px; flex-shrink: 0; }
.sw-point-task { padding-bottom: 3px; }
.sw-point-detail .sw-point-question { margin: 0; font-size: 14px; line-height: 1.7; }
.sw-point-note { background: var(--sw-tint); border-color: var(--sw-accent); }
.sw-point-reminder { background: var(--sw-tint); border: 0; border-top: 3px solid var(--sw-accent); padding: 18px; border-radius: 0 0 6px 6px; }
.sw-point-reminder > svg { color: var(--sw-ink); margin-bottom: 12px; }
.sw-point-reminder > h4 { color: var(--sw-ink); }
.sw-point-reminder > span { font-size: 11px; }
.sw-point-documents .sw-docs { flex-direction: row; gap: 8px; }
.sw-point-documents .sw-document-link, .sw-evidence-footer .sw-document-link { padding: 9px 11px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); font-size: 12px; max-width: 100%; align-items: center; }
.sw-point-documents .sw-document-link::after, .sw-evidence-footer .sw-document-link::after { content: '↗'; margin-left: 8px; }
.sw-document-link span { min-width: 0; overflow-wrap: anywhere; }
.sw-point-documents .sw-document-link:hover, .sw-evidence-footer .sw-document-link:hover { border-color: var(--sw-accent); background: var(--sw-tint); }
.sw-category-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sw-category-overview-head h3 { margin: 0; font-size: 13px; }
.sw-category-overview-head button { min-height: 34px; font-size: 12px; }
.sw-category-overview-head button[aria-pressed="true"] { font-weight: 700; color: var(--promotionscockpit-blue); }
.sw-category-filters { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.sw-category-filter { display: grid; grid-template-columns: 1fr; gap: 9px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--sw-accent); border-radius: 6px; padding: 14px 12px; cursor: pointer; color: var(--text); }
.sw-category-filter:hover, .sw-category-filter[aria-pressed="true"] { background: var(--sw-tint); border-color: var(--sw-accent); }
.sw-category-filter[aria-pressed="true"] { box-shadow: inset 0 -2px var(--sw-accent); }
.sw-category-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--sw-ink); background: var(--sw-tint); }
.sw-category-icon svg { width: 21px; height: 21px; }
.sw-category-filter > strong { font-size: 12px; line-height: 1.4; }
.sw-category-count { font-size: 11px; color: var(--muted); line-height: 1.4; }
.sw-category-count b { font-size: 15px; color: var(--sw-ink); margin-right: 3px; }
.sw-category-filter:focus-visible, .sw-study-filters button:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-evidence-category > h3 { display: flex; align-items: center; gap: 9px; color: var(--sw-ink); margin: 0 0 10px; font-size: 14px; }
.sw-evidence-category > h3 svg, .sw-document-categories h4 svg { width: 19px; height: 19px; flex-shrink: 0; }
.sw-evidence-category > h3 > span { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.sw-evidence-groups { border-left: 4px solid var(--sw-accent); }
.sw-evidence-group > summary { grid-template-columns: 34px minmax(0,1fr) auto 16px; padding: 17px 20px; gap: 12px; }
.sw-evidence-group[open] > summary { background: var(--sw-tint); }
.sw-evidence-group .sw-document-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; background: var(--sw-tint); }
.sw-evidence-group .sw-document-icon svg { color: var(--sw-ink); }
.sw-evidence-entries { padding: 0 22px 8px; }
.sw-evidence-entry > summary { padding: 17px 0; gap: 12px; line-height: 1.5; }
.sw-evidence-title { font-weight: 600; }
.sw-evidence-entry[open] > summary .sw-evidence-title { color: var(--sw-ink); }
.sw-evidence-entry .sw-row-body { max-width: none; padding: 5px 0 23px; }
.sw-passage-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.sw-evidence-entry blockquote { border-left-color: var(--sw-accent); background: var(--sw-tint); padding: 15px 18px; margin-bottom: 20px; font-size: 14px; color: var(--text); }
.sw-review-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 16px; }
.sw-review-guidance > section + section { border-left: 1px solid var(--border); padding-left: 24px; }
.sw-review-guidance p { font-size: 13px; line-height: 1.7; margin: 0; }
.sw-review-next .sw-section-heading { color: var(--promotionscockpit-blue); }
.sw-evidence-result { padding: 15px 18px; border-left: 3px solid var(--sw-accent); background: var(--sw-tint); margin: 0 0 18px; }
.sw-evidence-result p { font-size: 13px; margin: 8px 0 0; }
.sw-evidence-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 17px; border-top: 1px solid var(--border); }
.sw-evidence-footer > button { flex-shrink: 0; }
.sw-evidence-empty { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.sw-evidence-empty > svg { width: 26px; height: 26px; color: var(--muted); flex-shrink: 0; }
.sw-evidence-empty strong { font-size: 14px; }
.sw-evidence-empty p { font-size: 13px; color: var(--muted); margin: 7px 0 0; line-height: 1.6; }
.sw-document-categories h4 { display: flex; align-items: center; gap: 8px; color: var(--sw-ink); }
.sw-dialog:has(.sw-form[data-kind="points"]), .sw-dialog:has(.sw-form[data-kind="evidence"]) { padding: 0; width: min(720px,calc(100vw - 24px)); }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) { padding: 24px; }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-dialog-head { flex-wrap: nowrap; gap: 12px; margin-bottom: 18px; }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-dialog-head h2 { font-size: 19px; max-width: none; }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-dialog-head button { font-size: 12px; }
.sw-editor-context { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--sw-tint); border-left: 4px solid var(--sw-accent); border-radius: 4px; }
.sw-editor-icon { color: var(--sw-ink); flex-shrink: 0; }
.sw-editor-icon svg { width: 26px; height: 26px; }
.sw-editor-context .sw-study { padding: 0; border: 0; font-size: 11px; color: var(--sw-ink); }
.sw-editor-context strong { display: block; font-size: 15px; line-height: 1.5; margin-top: 5px; }
.sw-form .sw-status-options { border: 0; padding: 0; margin: 3px 0 0; min-width: 0; }
.sw-status-options legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.sw-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.sw-form .sw-status-option { display: block; position: relative; margin: 0; min-width: 0; }
.sw-status-option input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; margin: 0; }
.sw-status-option > span { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; min-height: 96px; padding: 13px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: var(--surface); }
.sw-status-option svg { width: 22px; height: 22px; color: var(--muted); }
.sw-status-option strong { font-size: 12px; line-height: 1.45; }
.sw-status-option small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.sw-status-option input:checked + span { border-color: var(--promotionscockpit-blue); background: var(--open-soft); box-shadow: inset 0 0 0 1px var(--promotionscockpit-blue); }
.sw-status-option input:checked + span svg { color: var(--promotionscockpit-blue); }
.sw-status-option input[value="waiting"]:checked + span { border-color: var(--attention); background: var(--attention-soft); box-shadow: inset 0 0 0 1px var(--attention); }
.sw-status-option input[value="waiting"]:checked + span svg { color: var(--attention); }
.sw-status-option input:is([value="done"],[value="checked"]):checked + span { border-color: var(--ready); background: var(--ready-soft); box-shadow: inset 0 0 0 1px var(--ready); }
.sw-status-option input:is([value="done"],[value="checked"]):checked + span svg { color: var(--ready); }
.sw-status-option input:focus-visible + span { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-status-option:hover > span { border-color: var(--border-strong); }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-options { padding-top: 0; }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-options > summary { display: flex; align-items: center; gap: 10px; padding: 14px 0 0; list-style: none; color: var(--deep-navy); font-size: 13px; font-weight: 600; }
.sw-form-options > summary::-webkit-details-marker { display: none; }
.sw-form-options > summary > svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--promotionscockpit-blue); }
.sw-form-options > summary small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.sw-form-options > summary .sw-chevron { margin-left: auto; }
.sw-form-options[open] > summary .sw-chevron { transform: rotate(180deg); }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-options[open] > summary { padding-bottom: 16px; }
.sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-footer { position: sticky; bottom: 0; padding: 16px 0 8px; margin-top: 20px; background: var(--surface); border-top: 1px solid var(--border); flex-wrap: nowrap; }
.sw-form textarea { resize: vertical; min-height: 96px; }
.sw-form input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; padding: 0; }
.sw-form .sw-error:empty { display: none; }
.sw-form summary:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
@media(max-width:1100px) { .sw-category-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.sw-category-filter { grid-template-columns: 32px minmax(0,1fr); gap: 4px 10px; padding: 12px; }.sw-category-icon { grid-row: 1/3; }.sw-category-count { grid-column: 2; } }
@media(max-width:700px) {
  .sw-point-row .sw-point-detail { grid-template-columns: minmax(0,1fr); padding: 20px 16px; gap: 20px; }
  .sw-point-reminder { padding: 15px; }.sw-point-reminder > svg { float: left; margin: 0 10px 0 0; }
  .sw-review-guidance { grid-template-columns: 1fr; gap: 16px; }.sw-review-guidance > section + section { border-left: 0; padding: 15px 0 0; border-top: 1px solid var(--border); }
}

@media(max-width:760px) {
  .literature-table thead,.recruitment-table thead { display:block; }
  .literature-table thead tr,.recruitment-table thead tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:14px 16px; background:#f3f7fb; }
  .literature-table thead th,.recruitment-table thead th[class] { display:block; position:static; width:auto; min-width:0; padding:0; border:0; }
  .literature-table thead th:not(:has(.table-heading-actions button)) { display:none; }
  .literature-table thead .table-column-controls,.recruitment-table thead .table-column-controls { padding:7px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); font-size:11px; }
}
@media(max-width:600px) {
  .sw-category-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .sw-category-filter { grid-template-columns: 22px minmax(0,1fr); padding: 11px 9px; gap: 5px 6px; }.sw-category-filter > strong { font-size: 11px; }.sw-category-count { font-size: 10px; }
  .sw-category-icon { width: 22px; height: 28px; }.sw-category-icon svg { width: 19px; height: 19px; }
  .sw-point-row > summary { padding: 16px 12px; }.sw-point-row > summary .sw-study { font-size: 11px; }
  .sw-status { font-size: 10px; padding: 4px 7px; }.sw-status svg { width: 12px; height: 12px; flex-basis: 12px; }
  .sw-evidence-group > summary { grid-template-columns: 30px minmax(0,1fr) 14px; padding: 14px 12px; gap: 4px 9px; }
  .sw-evidence-group > summary .sw-document-icon { display: grid; grid-column: 1; grid-row: 1/3; width: 28px; height: 28px; }
  .sw-evidence-group > summary > strong { grid-column: 2; font-size: 13px; }
  .sw-evidence-group > summary > .sw-meta { grid-column: 2; }
  .sw-evidence-group > summary > .sw-chevron { grid-column: 3; grid-row: 1/3; }
  .sw-evidence-entries { padding: 0 14px 4px; }.sw-evidence-entry > summary { gap: 7px; font-size: 13px; }
  .sw-passage-heading { display: block; margin-bottom: 10px; }.sw-passage-heading .sw-section-heading { margin-bottom: 5px; }
  .sw-passage-heading .sw-meta { font-size: 11px; }.sw-evidence-entry blockquote { padding: 13px; font-size: 13px; }
  .sw-evidence-footer { gap: 12px; }.sw-evidence-footer > button { width: 100%; }
  .sw-form:is([data-kind="points"],[data-kind="evidence"]) { padding: 18px; }
  .sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-dialog-head h2 { font-size: 17px; }
  .sw-editor-context { gap: 10px; padding: 12px; }.sw-editor-context strong { font-size: 14px; }.sw-editor-icon svg { width: 22px; height: 22px; }
  .sw-status-grid { grid-template-columns: 1fr; gap: 8px; }.sw-status-option > span { display: grid; grid-template-columns: 22px 1fr; gap: 3px 10px; min-height: 0; padding: 10px 12px; }.sw-status-option svg { grid-row: 1/3; align-self: center; }.sw-status-option small { grid-column: 2; }
  .sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-footer { bottom: 0; }
  .sw-form:is([data-kind="points"],[data-kind="evidence"]) .sw-form-footer > button { width: auto; flex: 1 1 0; justify-content: center; }
}

/* PATHS recruitment: selection, workflow and expected perspectives. */
.paths-dashboard { margin: 0 0 24px; border: 1px solid #dce3ea; border-radius: 14px; background: #fff; overflow: hidden; color: #18354e; }
.paths-dashboard[hidden] { display:none; }
.paths-dashboard-top { display:grid; grid-template-columns: 232px minmax(0,1fr); }
.paths-pool { padding:24px; background:#00305b; color:white; }
.paths-eyebrow { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#c9dcef; }
.paths-pool-number { display:flex; align-items:center; gap:15px; margin:13px 0 19px; font-size:62px; line-height:1; font-weight:700; letter-spacing:-.05em; }
.paths-pool-number span { font-size:13px; line-height:1.5; letter-spacing:0; font-weight:400; color:#e0eaf4; }
.paths-pool-bar { display:flex; gap:4px; height:6px; overflow:hidden; border-radius:4px; }
.paths-pool-bar .core { background:#65abe7; }.paths-pool-bar .reserve { background:#c1cedc; }.paths-pool-bar .optional { background:#f08338; }
.paths-pool p { margin:13px 0 0; font-size:11px; color:#d1e2f3; }.paths-pool p strong{display:block;font-size:13px;color:white;margin-top:3px;}
.paths-selection-summary { padding:24px 26px; min-width:0; }
.paths-dashboard-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.paths-dashboard-heading h3 { font-size:17px; margin:0; }.paths-dashboard-heading>span { font-size:11px; color:#667988; white-space:nowrap; }
.paths-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.paths-metric { text-align:left; background:transparent; border:0; border-top:3px solid #004899; border-radius:0; padding:12px 0 0; color:#18354e; cursor:pointer; }
.paths-metric.reserve { border-color:#acbac7; }.paths-metric.optional{border-color:#f08338;}
.paths-metric-label { display:block; font-size:12px; font-weight:600; }.paths-metric>strong{display:block;font-size:38px;line-height:1.3;margin:4px 0;color:#004899;}.paths-metric.optional>strong{color:#b45615;}.paths-metric.reserve>strong{color:#53697b;}.paths-metric small{display:block;color:#677986;font-size:11px;line-height:1.5;}
.paths-metric:hover,.paths-metric.is-active { background:#f1f6fb; outline:6px solid #f1f6fb; }
.paths-pipeline { display:grid; grid-template-columns:1.5fr repeat(6,1fr); padding:18px 24px; border-top:1px solid #dce3ea; border-bottom:1px solid #dce3ea; background:#f7f9fc; gap:10px; align-items:center; }
.paths-pipeline-title strong { display:block; font-size:13px; }.paths-pipeline-title small{font-size:11px;color:#657889;}
.paths-pipeline-step { background:transparent; border:0; border-left:1px solid #dce3ea; display:flex; flex-direction:column; gap:4px; align-items:center; cursor:pointer; color:#536b80; padding:2px 6px; }
.paths-pipeline-step strong{font-size:23px;color:#00305b;line-height:1.2;}.paths-pipeline-step span{font-size:11px;}.paths-pipeline-step:hover,.paths-pipeline-step.is-active{background:#e5eef9;border-radius:5px;}
.paths-insights { display:grid; grid-template-columns:1.15fr 1fr; gap:32px; padding:23px 26px; }
.paths-insights h4 { margin:0 0 5px; font-size:14px; }.paths-insights p{font-size:11px;color:#667988;margin:0 0 15px;}.paths-topics>small{display:block;margin-top:11px;font-size:10px;line-height:1.5;color:#667988;}
.paths-topic-button { display:block; background:transparent; border:0; padding:0 0 11px; width:100%; text-align:left; cursor:pointer; color:#254660; }.paths-topic-caption{display:flex;align-items:baseline;gap:9px;font-size:11px;margin-bottom:5px;}.paths-topic-caption>b{color:#004899;font-size:10px;}.paths-topic-caption>span{flex:1;}.paths-topic-caption>strong{font-size:12px;}.paths-topic-track{height:4px;display:block;background:#edf1f6;border-radius:5px;overflow:hidden;}.paths-topic-track>i{height:100%;display:block;background:#5189bd;border-radius:5px;}.paths-topic-button:hover .paths-topic-track>i,.paths-topic-button.is-active .paths-topic-track>i{background:#f08338;}
.paths-perspective-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.paths-perspective-button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:10px 12px;border:1px solid #dce3ea;background:#fff;border-radius:7px;color:#254660;cursor:pointer;}.paths-perspective-button>span{font-size:11px;line-height:1.4;}.paths-perspective-button>strong{font-size:18px;color:#004899;}.paths-perspective-button:hover,.paths-perspective-button.is-active{background:#edf4fc;border-color:#97b7d6;}
.paths-decisions { border-top:1px solid #e1e7ee; background:#fffaf5; padding:14px 26px; }.paths-decisions summary{cursor:pointer;color:#6d401b;font-size:12px;}.paths-decisions summary>span{display:inline-flex;gap:14px;align-items:baseline;flex-wrap:wrap;}.paths-decisions summary small{font-size:11px;color:#846b58;}.paths-decisions>div{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;padding-top:18px;}.paths-decisions article h4{font-size:13px;margin:0 0 8px;}.paths-decisions article p{font-size:12px;line-height:1.6;margin:0 0 8px;color:#665749;}.paths-reset{margin:10px 26px;}
.paths-table .paths-organization { display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:#00305b;font:inherit;font-weight:600;max-width:260px; }
.paths-organization-logo{flex:0 0 60px;width:60px;height:44px;display:flex;align-items:center;justify-content:center;}.paths-organization-logo img{display:block;max-width:100%;max-height:40px;object-fit:contain;}.paths-organization-initial{color:#8392a1;background:#f1f4f7;border-radius:5px;font-size:12px;}
.paths-table .recruitment-person-cell{min-width:220px;gap:12px;}.paths-table .recruitment-person{font-size:13px;}.paths-person-role{display:block;margin-top:4px;color:#71808e;font-size:10px;line-height:1.35;}.paths-table .practice-map-logo--recruitment,.paths-portrait-missing{flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:hidden;}.paths-table .practice-map-logo--portrait img{width:100%;height:100%;object-fit:cover;object-position:center 25%;}.paths-portrait-missing{display:flex;align-items:center;justify-content:center;background:#ecf1f7;color:#667b90;font-weight:600;font-size:14px;}
.paths-selection{display:inline-block;padding:5px 9px;background:#edf4fc;border-radius:5px;color:#004899;font-size:11px;white-space:nowrap;font-weight:600;}.paths-selection.is-reserve{background:#f0f2f5;color:#5c6f80;}.paths-selection.is-optional{background:#fff0df;color:#965014;}.paths-topic-chips{display:flex;gap:4px;flex-wrap:wrap;}.paths-topic-chips span{font-size:10px;color:#526b82;border:1px solid #dbe4ed;border-radius:4px;padding:3px 5px;}.paths-stage-label{font-size:12px;color:#536c81;white-space:nowrap;}
@media(max-width:1100px){.paths-dashboard-top{grid-template-columns:195px minmax(0,1fr);}.paths-selection-summary{padding:22px 20px;}.paths-dashboard-heading{align-items:flex-start;flex-direction:column;gap:5px;}.paths-insights{gap:22px;}.paths-perspective-list{grid-template-columns:1fr;}.paths-perspective-button{padding:7px 11px;}}
@media(max-width:700px){.paths-dashboard-top{grid-template-columns:1fr;}.paths-pool{padding:18px 20px;display:grid;grid-template-columns:1fr 1fr;column-gap:16px;}.paths-eyebrow{grid-column:1/-1;}.paths-pool-number{margin:12px 0 0;font-size:49px;}.paths-pool-bar{grid-row:3;grid-column:1/-1;margin-top:16px;}.paths-pool p{align-self:center;}.paths-selection-summary{padding:19px 20px;}.paths-dashboard-heading{flex-direction:row;}.paths-dashboard-heading h3{font-size:15px;}.paths-metrics{gap:12px;}.paths-metric>strong{font-size:32px;}.paths-metric-label{font-size:11px;}.paths-metric small{font-size:10px;}.paths-pipeline{grid-template-columns:repeat(3,1fr);padding:16px 20px;gap:16px 8px;}.paths-pipeline-title{grid-column:1/-1;display:flex;justify-content:space-between;}.paths-pipeline-step:nth-child(3n+2){border-left:0;}.paths-insights{grid-template-columns:1fr;padding:20px;gap:24px;}.paths-perspective-list{grid-template-columns:1fr 1fr;}.paths-decisions{padding:14px 20px;}.paths-decisions>div{grid-template-columns:1fr;}.paths-decisions summary>span{gap:4px;}.paths-table .recruitment-person-cell{min-width:0;}.paths-organization-logo{flex-basis:50px;width:50px;}}

.paths-known-contact{display:block;font-size:10px;color:#90602f;margin-top:3px;}
.paths-perspective-button>strong{flex-shrink:0;white-space:nowrap;}
@media(max-width:420px){.paths-perspective-list{grid-template-columns:1fr;}.paths-dashboard-heading{flex-direction:column;}.paths-pool{grid-template-columns:1fr;}.paths-pool p{margin-top:14px;}.paths-pool-bar{grid-row:4;}.paths-metric-label{min-height:28px;}.paths-metric small{min-height:44px;}}
body:has(#pathsSamplingSummary:not([hidden])) .filter-toolbar{flex-wrap:wrap;}
body:has(#pathsSamplingSummary:not([hidden])) .filter-shell,
body:has(#pathsSamplingSummary:not([hidden])) .column-visibility-shell,
body:has(#pathsSamplingSummary:not([hidden])) .filter-reset{flex-shrink:0;white-space:nowrap;}
body:has(#pathsSamplingSummary:not([hidden])) .filter-panel-button__label{white-space:nowrap;}

/* Betreuung: same quiet dashboard language as PATHS recruitment. */
.sw-supervision-dashboard { display:grid; grid-template-columns:minmax(260px,.85fr) minmax(0,1.8fr); border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface); margin-bottom:28px; }
.sw-next-meeting { padding:26px 28px; background:#00305b; color:#fff; }
.sw-eyebrow { display:block; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#c9dcef; }
.sw-next-date { display:block; font-size:34px; line-height:1.25; margin-top:14px; }
.sw-next-time { display:block; font-size:14px; color:#d9e6f3; margin-top:5px; }
.sw-next-meeting h2 { font-size:16px; line-height:1.5; color:inherit; margin:18px 0 8px; }
.sw-next-meeting p { font-size:11px; line-height:1.6; color:#c9dcef; margin:0 0 17px; }
.sw-next-meeting .text-button { color:white; display:inline-flex; align-items:center; gap:10px; background:#ffffff12; border:1px solid #ffffff40; padding:9px 12px; border-radius:6px; }
.sw-next-meeting .text-button:hover { background:#ffffff25; }
.sw-next-meeting svg { width:16px; height:16px; }
.sw-supervision-summary { padding:26px 30px; display:flex; flex-direction:column; justify-content:center; }
.sw-supervision-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sw-supervision-heading h2,.sw-person-heading h2 { margin:0; font-size:17px; line-height:1.4; color:var(--promotionscockpit-navy,#00305b); }
.sw-supervision-heading > svg { width:20px; height:20px; color:var(--muted); }
.sw-supervision-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin:24px 0; }
.sw-supervision-metrics > :is(button,a) { font:inherit; display:block; text-align:left; color:#18354e; padding:13px 0 0; border:0; border-top:3px solid #004899; background:transparent; text-decoration:none; cursor:pointer; border-radius:0; }
.sw-supervision-metrics > :nth-child(2) { border-color:#f08338; }.sw-supervision-metrics > :nth-child(3) { border-color:#a6d9e2; }
.sw-supervision-metrics span { font-size:12px; font-weight:600; display:block; }.sw-supervision-metrics strong { display:block; font-size:40px; line-height:1.25; margin:7px 0; color:#004899; }
.sw-supervision-metrics small { font-size:11px; line-height:1.6; display:block; color:var(--muted); }
.sw-supervision-metrics > :hover,.sw-supervision-metrics > [aria-pressed=true] { background:#f3f7fb; outline:6px solid #f3f7fb; }
.sw-supervision-note { display:flex; align-items:flex-start; gap:10px; margin:0; padding-top:18px; border-top:1px solid var(--border); font-size:11px; color:var(--muted); line-height:1.65; }
.sw-supervision-note svg { width:18px; height:18px; flex-shrink:0; }
.sw-person-heading { display:flex; align-items:center; justify-content:space-between; margin:0 0 12px; }
/* One compact bar for the result count and all person controls. */
.sw-meeting-person-filter { display:grid; grid-template-columns:78px minmax(190px,220px) minmax(0,1fr) auto; align-items:center; gap:18px; padding:16px 20px; background:var(--surface); border:1px solid var(--border); border-radius:10px; scroll-margin-top:110px; }
.sw-meeting-count { align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:2px; padding-right:18px; border-right:1px solid var(--border); color:#004899; }
.sw-meeting-count strong { font-size:30px; line-height:1; font-variant-numeric:tabular-nums; }
.sw-meeting-count span { font-size:12px; font-weight:600; }
.sw-person-control { min-width:0; }
.sw-person-control-label { display:flex; justify-content:space-between; align-items:center; min-height:20px; margin-bottom:5px; gap:6px; }
.sw-person-control-label label,.sw-filter-label { font-size:11px; font-weight:600; color:var(--muted); }
.sw-person-control-label .text-button { min-height:0; line-height:20px; padding:0; border:0; background:transparent; font-size:10px; }
.sw-person-select { display:flex; align-items:center; gap:8px; min-width:0; width:100%; padding:0 9px; background:var(--surface); border:1px solid var(--border-strong); border-radius:6px; }
.sw-person-select > svg { width:20px; height:20px; flex:0 0 20px; color:#004899; }
.sw-person-select .sw-person-avatar,.sw-person-select .sw-person-initials { width:26px; height:26px; flex:0 0 26px; font-size:10px; }
.sw-person-select select { width:100%; min-width:0; height:40px; border:0; background:transparent; color:var(--text-secondary); font:inherit; font-size:12px; cursor:pointer; }
.sw-person-select:focus-within { outline:2px solid #004899; outline-offset:2px; }
.sw-person-select select:focus-visible { outline:none; }
.sw-person-shortcuts { min-width:0; }
.sw-filter-label { display:block; min-height:20px; margin-bottom:5px; line-height:20px; }
.sw-person-quick-filters { display:flex; flex-wrap:wrap; gap:6px; }
.sw-person-quick-filter { display:inline-flex; align-items:center; gap:6px; padding:5px 8px 5px 5px; min-height:42px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text-secondary); font:inherit; font-size:11px; font-weight:600; cursor:pointer; }
.sw-person-quick-filter .sw-person-avatar { width:28px; height:28px; flex-basis:28px; }
.sw-person-quick-filter .sw-person-initials { font-size:9px; }
.sw-person-quick-filter:hover { border-color:#004899; background:#f3f7fb; }
.sw-person-quick-filter[aria-pressed=true] { color:#fff; background:#004899; border-color:#004899; }
.sw-person-quick-filter:focus-visible { outline:2px solid #004899; outline-offset:3px; }
.sw-all-people { display:inline-flex; align-items:center; justify-content:center; gap:6px; font-size:12px; white-space:nowrap; }
.sw-all-people svg { width:16px; height:16px; }
.sw-supervision-timeline .sw-meeting-filters { margin:0 0 14px; }
@media (max-width:1320px) and (min-width:621px) {
  .sw-meeting-person-filter { grid-template-columns:78px minmax(190px,1fr) auto; gap:14px 18px; }
  .sw-person-shortcuts { grid-column:2/-1; grid-row:2; }
  .sw-person-shortcuts .sw-filter-label { display:none; }
  .sw-all-people { grid-column:3; grid-row:1; }
}
.sw-people-topbar { width:min(340px,35vw); margin-left:auto; }
.sw-people-topbar .search-shell { background:var(--surface); border-radius:9px; min-height:42px; }
.sw-people-topbar .search-input { min-height:40px; font-size:13px; font-weight:400; text-transform:none; }
.sw-people-topbar .search-input::placeholder { color:var(--muted); opacity:1; }
.sw-people-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); }
.sw-people-results { display:inline-flex; align-items:center; gap:7px; flex-shrink:0; padding:7px 10px; border:1px solid var(--border); border-radius:7px; background:var(--surface-muted); color:var(--muted); font-size:11px; font-weight:400; text-transform:none; }
.sw-people-results > svg { width:16px; height:16px; color:var(--promotionscockpit-blue); }
.sw-people-results > strong { font-size:15px; font-weight:650; line-height:1; color:var(--promotionscockpit-navy,#00305b); font-variant-numeric:tabular-nums; }
.sw-people-tools .active-filter-list { flex:1; min-width:0; }
.sw-people-tools .active-filter-list:not(:empty) { flex-basis:220px; }
.sw-people-tools .active-filter-chip { max-width:100%; }
.sw-people-tools .active-filter-chip > span { min-width:0; overflow-wrap:anywhere; }
.sw-people-tools .filter-reset { font-size:11px; }
.sw-people-directory { border:1px solid var(--border); border-radius:10px; overflow:hidden; margin-bottom:32px; background:var(--surface); }
.sw-people-table { width:100%; table-layout:fixed; border-collapse:collapse; color:#18354e; font-size:12px; }
.sw-people-table th,.sw-people-table td { padding:16px 12px; text-align:left; vertical-align:middle; overflow-wrap:anywhere; }
.sw-people-table thead th { padding:12px 8px; background:#f3f7fb; color:#536b80; font-size:11px; font-weight:600; }
.sw-people-table thead th:nth-child(1) { width:20%; }
.sw-people-table thead th:nth-child(2) { width:15%; }
.sw-people-table thead th:nth-child(3) { width:18%; }
.sw-people-table thead th:nth-child(4) { width:13%; }
.sw-people-table thead th:nth-child(5) { width:12%; }
.sw-people-table thead th:nth-child(6) { width:16%; }
.sw-people-table thead th:nth-child(7) { width:6%; }
.sw-people-table tbody tr { border-top:1px solid var(--border); }
.sw-people-table tbody tr:hover,.sw-people-table tbody tr:focus-within { background:#f3f7fb; }
.sw-people-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.sw-people-identity .sw-person-avatar { flex-basis:40px; width:40px; height:40px; }
.sw-people-identity strong { min-width:0; font-size:13px; font-weight:650; line-height:1.5; }
.sw-person-profile-button { width:100%; padding:0; border:0; border-radius:4px; color:inherit; background:transparent; font:inherit; text-align:left; cursor:pointer; }
.sw-person-profile-button:hover strong { color:var(--promotionscockpit-blue); }
.sw-person-profile-button:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:5px; }
.sw-people-organization { font-weight:500; line-height:1.6; }
.sw-people-relation { color:#536b80; line-height:1.6; }
.sw-people-count { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:50%; background:linear-gradient(145deg,var(--count-top,#edf5ff),var(--count-bottom,#e0edfc)); color:var(--count-ink,#00305b); font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; box-shadow:inset 0 1px 0 rgba(255,255,255,.2); }
.sw-people-date { display:inline-flex; align-items:center; gap:5px; padding:6px 8px; border:1px solid #d8e4f3; border-radius:999px; color:#47637b; background:#f3f7fb; font-size:11px; font-weight:500; white-space:nowrap; }
.sw-people-date svg { width:13px; height:13px; flex:0 0 13px; }
.sw-people-date-next { color:#004899; background:#eaf1f8; border-color:#b8c7e8; font-weight:650; }
.sw-people-time { display:block; margin:5px 0 0 9px; font-size:11px; color:var(--muted); }
.sw-people-missing { color:#8a9bab; }
.sw-people-open { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; min-height:32px; padding:0; border-radius:50%; }
.sw-people-open > span { display:none; }
.sw-people-open svg { width:16px; height:16px; }
.sw-people-open:focus-visible { outline:2px solid #004899; outline-offset:3px; }
.sw-people-mobile-columns { display:none; }
.sw-people-popover { position:fixed; z-index:100; width:min(300px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); }
.sw-people-popover .table-filter-option { font-weight:500; }
.sw-people-menu-field { display:grid; gap:6px; margin-bottom:10px; color:#536b80; font-size:11px; font-weight:500; }
.sw-people-menu-field input,.sw-people-menu-field select { width:100%; min-width:0; padding:9px 8px; border:1px solid var(--border-strong); border-radius:5px; background:white; color:#18354e; font:inherit; font-size:12px; }
.sw-people-menu-range { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.sw-people-popover > .table-menu-section > .text-button { margin-top:2px; font-size:11px; font-weight:600; }
.sw-people-empty td { padding:24px; }
.sw-people-empty p { margin-bottom:12px; color:var(--muted); }
body.sw-person-drawer-open { overflow:hidden; }
.sw-person-drawer { position:fixed; inset:0 0 0 auto; width:min(560px,calc(100vw - 28px)); max-width:none; height:100dvh; max-height:100dvh; margin:0 0 0 auto; padding:0; border:0; border-left:1px solid var(--border); border-radius:0; background:var(--surface); color:var(--text); overflow:hidden; box-shadow:-18px 0 42px rgba(15,23,42,.18); }
.sw-person-drawer[open] { display:flex; flex-direction:column; }
.sw-person-drawer::backdrop { background:rgba(246,248,252,.68); backdrop-filter:blur(3px) saturate(.88); }
.sw-person-drawer-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:24px; border-bottom:1px solid var(--border); }
.sw-person-drawer-identity { display:flex; align-items:center; gap:14px; min-width:0; }
.sw-person-drawer-identity > div { min-width:0; }
.sw-person-drawer-identity .sw-person-avatar { width:64px; height:64px; flex-basis:64px; }
.sw-person-drawer-identity .sw-eyebrow { font-size:10px; color:var(--muted); }
.sw-person-drawer-head h2 { margin:5px 0 0; font-size:22px; line-height:1.3; font-weight:650; overflow-wrap:anywhere; }
.sw-person-drawer-close { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; padding:7px; border:1px solid var(--border); border-radius:50%; color:var(--muted); background:var(--surface); cursor:pointer; }
.sw-person-drawer-close svg { width:20px; height:20px; }
.sw-person-drawer-close:hover { color:var(--promotionscockpit-blue); background:#eaf1f8; }
.sw-person-drawer-close:focus-visible,.sw-person-meeting-link:focus-visible,.sw-person-profile-link:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:3px; }
.sw-person-drawer-content { flex:1; min-height:0; padding:24px; overflow-y:auto; overscroll-behavior:contain; }
.sw-person-drawer-facts { display:grid; gap:14px; margin:0; }
.sw-person-drawer-facts > div { display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px; }
.sw-person-drawer-facts dt,.sw-person-drawer-metrics dt { color:var(--muted); font-size:11px; line-height:1.6; }
.sw-person-drawer-facts dd { margin:0; color:#18354e; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.sw-person-profile-link { display:inline-flex; align-items:center; gap:6px; margin-top:18px; border-radius:4px; color:var(--promotionscockpit-blue); font-size:12px; text-decoration:none; }
.sw-person-profile-link svg { width:14px; height:14px; }
.sw-person-profile-link svg:last-child { width:12px; height:12px; }
.sw-person-drawer-metrics { display:grid; grid-template-columns:.8fr 1fr 1.1fr; gap:14px; margin:24px 0 28px; padding:20px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.sw-person-drawer-metrics dd { margin:9px 0 0; }
.sw-person-drawer-section + .sw-person-drawer-section { margin-top:26px; }
.sw-person-drawer-section h3 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:13px; font-weight:650; color:#18354e; }
.sw-person-drawer-section h3 > svg { width:17px; height:17px; color:var(--promotionscockpit-blue); }
.sw-person-drawer-section h3 > span { display:grid; place-items:center; min-width:22px; height:22px; margin-left:auto; padding:0 5px; border-radius:50%; color:#536b80; background:#f3f7fb; font-size:11px; }
.sw-person-meeting-list { list-style:none; margin:0; padding:0; }
.sw-person-meeting-list li + li { border-top:1px solid var(--border); }
.sw-person-meeting-link { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; margin:0; padding:16px 8px; border:0; border-radius:5px; background:transparent; color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.sw-person-meeting-link:hover { background:#f3f7fb; }
.sw-person-meeting-link.is-upcoming { padding:16px 12px; background:#f3f7fb; }
.sw-person-meeting-link.is-upcoming:hover { background:#eaf1f8; }
.sw-person-meeting-content { display:grid; gap:9px; min-width:0; }
.sw-person-meeting-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.sw-person-meeting-meta .sw-people-time { margin:0; }
.sw-person-meeting-meta .sw-status { font-size:10px; padding:4px 7px; }
.sw-person-meeting-meta .sw-status svg { width:12px; height:12px; }
.sw-person-meeting-content > strong { font-size:13px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; }
.sw-person-meeting-caption { color:var(--muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.sw-person-meeting-link > svg { width:16px; height:16px; flex:0 0 16px; color:var(--muted); }
.sw-person-drawer-footer { flex-shrink:0; padding:16px 24px; border-top:1px solid var(--border); background:var(--surface); }
.sw-person-drawer-footer .primary-button { display:flex; align-items:center; gap:8px; width:100%; max-width:none; justify-content:center; min-height:42px; font-size:12px; }
.sw-person-drawer-footer .primary-button svg { width:16px; height:16px; }
.sw-person-drawer-footer .primary-button svg:last-child { margin-left:auto; }
@media(max-width:620px) {
  .sw-person-drawer { width:100vw; }
  .sw-person-drawer-head { padding:20px 18px; gap:12px; }
  .sw-person-drawer-identity { gap:12px; }
  .sw-person-drawer-identity .sw-person-avatar { width:54px; height:54px; flex-basis:54px; }
  .sw-person-drawer-head h2 { font-size:20px; }
  .sw-person-drawer-content { padding:20px 18px; }
  .sw-person-drawer-facts > div { grid-template-columns:85px minmax(0,1fr); gap:10px; }
  .sw-person-drawer-metrics { gap:8px; margin:24px 0; }
  .sw-person-drawer-metrics .sw-people-date { padding:5px 6px; font-size:10px; gap:4px; }
  .sw-person-drawer-metrics .sw-people-date svg { width:12px; height:12px; flex-basis:12px; }
  .sw-person-drawer-footer { padding:14px 18px max(14px,env(safe-area-inset-bottom)); }
}
@media(max-width:1380px) {
  .sw-people-table,.sw-people-table tbody { display:block; }
  .sw-people-table thead { display:none; }
  .sw-people-mobile-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:14px 16px; border-bottom:1px solid var(--border); background:#f3f7fb; }
  .sw-people-mobile-columns .table-column-controls { padding:7px 8px; background:var(--surface); border:1px solid var(--border); border-radius:6px; font-size:11px; }
  .sw-people-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 14px; padding:18px; }
  .sw-people-table tbody tr:first-child { border-top:0; }
  .sw-people-table tbody th,.sw-people-table tbody td { display:block; padding:0; min-width:0; }
  .sw-people-person,.sw-people-action { grid-column:1/-1; }
  .sw-people-organization,.sw-people-relation { grid-column:1/-1; display:grid!important; grid-template-columns:85px minmax(0,1fr); gap:10px; }
  .sw-people-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:7px; color:var(--muted); font-size:10px; font-weight:400; }
  .sw-people-organization::before,.sw-people-relation::before { margin:0!important; align-self:start; }
  .sw-people-open { width:auto; height:auto; min-height:34px; gap:7px; padding:6px 10px; border-radius:6px; font-size:12px; }
  .sw-people-open > span { display:inline; }
  .sw-people-empty { display:block!important; }
}
@media(max-width:620px) {
  .sw-people-mobile-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sw-people-tools .sw-actions { flex-wrap:wrap; }
  .sw-people-table tbody tr { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; padding:16px; }
  .sw-people-organization,.sw-people-relation { grid-template-columns:75px minmax(0,1fr); gap:8px; }
  .sw-people-date { padding:5px 7px; }
  .sw-people-next { grid-column:2; }
}

@media(max-width:700px) {
  body[data-view="conversationPeople"] .topbar { flex-wrap:wrap; gap:14px; }
  .sw-people-topbar { width:100%; margin-left:0; }
  .sw-people-tools .active-filter-list:not(:empty) { order:2; flex-basis:100%; }
  .sw-people-tools .filter-reset { order:1; margin-left:auto; }
}
.sw-supervision-people { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:32px; }
.sw-person-card { display:flex; gap:13px; align-items:flex-start; background:var(--surface); border:1px solid var(--border); padding:19px 16px; border-radius:10px; text-align:left; color:#18354e; cursor:pointer; font:inherit; }
.sw-person-card:hover,.sw-person-card[aria-pressed=true] { border-color:#004899; background:#f3f7fb; }.sw-person-card[aria-pressed=true] { box-shadow:inset 0 0 0 1px #004899; }
.sw-person-initials { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; color:#004899; background:#eaf1f8; border-radius:50%; font-size:12px; font-weight:700; }
.sw-person-card > span:nth-child(2) { flex:1; min-width:0; }.sw-person-card strong { font-size:13px; display:block; }.sw-person-card small { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.sw-person-dates { display:block; font-size:11px; line-height:1.7; margin-top:11px; color:#536b80; }.sw-person-card > svg { width:16px; height:16px; flex:0 0 16px; margin-top:10px; color:#7890a5; }
.sw-supervision-main { display:grid; grid-template-columns:minmax(0,2.1fr) minmax(255px,.9fr); gap:26px; align-items:start; }
.sw-meeting-filters { margin:15px 0; }.sw-meeting-list { display:grid; gap:12px; }
.sw-meeting { border:1px solid var(--border); border-radius:10px; overflow:hidden; background:var(--surface); }
.sw-meeting > summary { display:grid; grid-template-columns:58px minmax(0,1fr) auto 12px; gap:14px; padding:20px; align-items:center; cursor:pointer; list-style:none; }
.sw-meeting > summary::-webkit-details-marker { display:none; }.sw-meeting > summary:hover { background:#f7f9fc; }
.sw-meeting-date { border-right:1px solid var(--border); padding-right:10px; text-align:center; }.sw-meeting-date strong { font-size:27px; font-weight:700; line-height:1.2; color:#004899; display:block; }.sw-meeting-date > span { font-size:10px; color:var(--muted); display:block; line-height:1.4; margin-top:4px; }
.sw-meeting-title { min-width:0; }.sw-meeting-title > strong { display:block; font-size:14px; line-height:1.5; margin:5px 0; color:#18354e; }.sw-meeting-title > .sw-meta { font-size:11px; }.sw-meeting-caption { font-size:10px; color:var(--muted); }
.sw-meeting[open] > summary { background:#f3f7fb; border-bottom:1px solid var(--border); }.sw-meeting[open] > summary > .sw-chevron { transform:rotate(180deg); }
.sw-meeting-body { padding:22px 24px; }.sw-meeting-body p { font-size:13px; line-height:1.7; color:#425b6e; margin:8px 0; white-space:pre-line; }
.sw-meeting-abstract { margin:0 0 23px !important; }.sw-meeting-topics { display:grid; gap:22px; margin-bottom:25px; }.sw-meeting-topics small { color:#687e90; font-size:10px; }
.sw-meeting-outcomes { display:grid; gap:18px; margin-bottom:22px; }.sw-meeting-outcomes > section { border-left:3px solid #d8e4f3; padding-left:15px; }.sw-meeting-body h4 { font-size:12px; }
.sw-meeting-linked { border-top:1px solid var(--border); padding-top:20px; margin-bottom:22px; }
.sw-agenda-link { display:flex; align-items:center; gap:9px; text-align:left; padding:12px 0; width:100%; border:0; border-bottom:1px solid var(--border); background:transparent; font:inherit; font-size:12px; color:#254660; cursor:pointer; }.sw-agenda-link > span:nth-child(2) { flex:1; }.sw-agenda-link:hover { color:#004899; }
.sw-meeting-source { display:flex; gap:12px; padding:16px; background:#f7f9fc; border-radius:7px; margin-bottom:17px; }.sw-meeting-source > span > svg { width:20px; height:20px; color:#65819c; }.sw-meeting-source > div { min-width:0; }.sw-meeting-source strong { font-size:11px; color:#47637b; }.sw-meeting-source p { font-size:10px; margin:6px 0; }.sw-meeting-source .sw-document-link { font-size:11px; overflow-wrap:anywhere; }
.sw-supervision-agenda { padding:20px; background:#f3f7fb; border:1px solid #e0e8f1; border-radius:10px; }.sw-supervision-agenda h2 { font-size:14px; }.sw-supervision-agenda > .sw-meta { font-size:11px; line-height:1.6; margin:8px 0 4px; }
.sw-agenda-point { display:block; text-align:left; border:0; border-bottom:1px solid #dae4ed; background:transparent; width:100%; padding:17px 0; font:inherit; cursor:pointer; color:#254660; }.sw-agenda-point > strong { display:block; font-size:12px; line-height:1.5; margin:8px 0; }.sw-agenda-point > span:last-child { display:flex; align-items:center; justify-content:space-between; font-size:10px; color:var(--muted); }.sw-agenda-point svg { width:14px; height:14px; }.sw-agenda-point:hover > strong { color:#004899; }
.sw-all-points { display:flex; align-items:center; justify-content:space-between; font-size:11px; font-weight:600; color:#004899; margin-top:20px; text-decoration:none; }.sw-all-points svg { width:15px; height:15px; }
.sw-supervision-main + .sw-support { margin-top:24px; }
.sw-meeting-participants { display:flex; flex-wrap:wrap; gap:12px 20px; }.sw-form[data-kind=meetings] .sw-form-options { padding:16px; border:1px solid var(--border); border-radius:9px; }.sw-form[data-kind=meetings] .sw-form-options > fieldset { margin-top:16px; }
.sw-dialog:has(.sw-form[data-kind="meetings"]) { padding:0; width:min(640px,calc(100vw - 24px)); }
.sw-form[data-kind="meetings"] { padding:28px; }
.sw-form[data-kind="meetings"] .sw-dialog-head { flex-wrap:nowrap; gap:12px; margin-bottom:24px; }
.sw-form[data-kind="meetings"] .sw-dialog-head h2 { font-size:21px; max-width:none; }
.sw-form[data-kind="meetings"] .sw-dialog-head button { font-size:12px; }
.sw-form[data-kind="meetings"] .sw-form-fields { gap:21px; }
.sw-form[data-kind="meetings"] .sw-status-options legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.sw-form[data-kind="meetings"] .sw-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.sw-form[data-kind="meetings"] .sw-status-grid:has(input[value="cancelled"]) { grid-template-columns:repeat(3,minmax(0,1fr)); }
.sw-form[data-kind="meetings"] .sw-status-option > span { flex-direction:row; display:flex; align-items:center; justify-content:center; min-height:46px; padding:11px 8px; gap:8px; }
.sw-form[data-kind="meetings"] .sw-status-option svg { width:18px; height:18px; }
.sw-form .sw-people-options { border:0; margin:0; padding:0; min-width:0; }
.sw-people-options legend { padding:0; margin-bottom:10px; }
.sw-people-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.sw-form .sw-person-option { display:block; margin:0; position:relative; min-width:0; }
.sw-person-option input { position:absolute; opacity:0; width:1px !important; height:1px !important; }
.sw-person-option > span { display:flex; flex-direction:column; align-items:center; gap:9px; min-height:108px; padding:15px 8px; border:1px solid var(--border); border-radius:8px; cursor:pointer; text-align:center; }
.sw-person-option strong { font-size:12px; line-height:1.4; font-weight:500; }
.sw-person-option > span > svg { display:none; position:absolute; right:7px; top:7px; width:15px; height:15px; color:#004899; }
.sw-person-option input:checked + span { border-color:#004899; box-shadow:inset 0 0 0 1px #004899; background:#f3f7fb; }
.sw-person-option input:checked + span > svg { display:block; }
.sw-person-option input:focus-visible + span { outline:2px solid #004899; outline-offset:3px; }
.sw-person-option:hover > span { border-color:#7c9aba; }
.sw-meeting-when { display:grid; grid-template-columns:1fr 1fr; gap:16px; min-width:0; }
.sw-meeting-when label,.sw-meeting-when input { min-width:0; }
.sw-form[data-kind="meetings"] .sw-form-options { padding:0; border:0; border-top:1px solid var(--border); border-radius:0; }
.sw-form[data-kind="meetings"] .sw-form-options > summary { display:flex; align-items:center; gap:9px; list-style:none; padding:16px 0 0; font-size:13px; color:var(--deep-navy); }
.sw-form[data-kind="meetings"] .sw-form-options[open] > summary { padding-bottom:20px; }
.sw-form[data-kind="meetings"] .sw-form-footer { position:sticky; bottom:0; padding:18px 0 0; margin-top:20px; border-top:1px solid var(--border); background:var(--surface); flex-wrap:nowrap; }
.sw-form[data-kind="meetings"] .sw-form-footer > button { justify-content:center; }
.sw-supervision-dashboard :focus-visible,.sw-person-card:focus-visible,.sw-meeting :focus-visible,.sw-supervision-agenda :focus-visible { outline:2px solid #004899; outline-offset:4px; }.sw-next-meeting :focus-visible { outline-color:white; }
@media(max-width:1180px){.sw-supervision-main{grid-template-columns:minmax(0,1.9fr) minmax(225px,1fr);gap:18px;}.sw-meeting>summary{grid-template-columns:48px minmax(0,1fr) 12px;gap:10px;padding:17px;}.sw-meeting>summary>.sw-status{grid-column:2;grid-row:2;justify-self:start;}.sw-meeting>summary>.sw-chevron{grid-column:3;grid-row:1/3;}.sw-meeting-date{grid-row:1/3;}.sw-supervision-people{gap:10px;}.sw-person-card{gap:10px;padding:16px 12px;}.sw-person-card>svg{display:none;}.sw-supervision-summary{padding:24px;}.sw-supervision-metrics{gap:16px;}}
@media(max-width:900px){.sw-supervision-main{grid-template-columns:1fr;}.sw-supervision-agenda{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;}.sw-supervision-agenda>.sw-supervision-heading,.sw-supervision-agenda>.sw-meta,.sw-supervision-agenda>.sw-all-points{grid-column:1/-1;}.sw-supervision-dashboard{grid-template-columns:1fr 1.5fr;}.sw-next-meeting{padding:24px;}.sw-supervision-heading{flex-wrap:wrap;}.sw-supervision-people{grid-template-columns:1fr;}.sw-person-card{align-items:center;}.sw-person-card>span:nth-child(2){display:grid;grid-template-columns:1fr 1fr;gap:3px 16px;}.sw-person-card strong,.sw-person-card small{grid-column:1;}.sw-person-dates{grid-column:2;grid-row:1/3;margin:0;}}
@media(max-width:620px){.sw-supervision-dashboard{grid-template-columns:1fr;}.sw-next-meeting{padding:22px;}.sw-next-date{font-size:32px;}.sw-supervision-summary{padding:22px;}.sw-supervision-metrics{gap:13px;margin:20px 0;}.sw-supervision-metrics span{font-size:11px;min-height:30px;}.sw-supervision-metrics strong{font-size:34px;}.sw-supervision-metrics small{font-size:10px;}.sw-supervision-note{font-size:10px;}.sw-supervision-heading h2,.sw-person-heading h2{font-size:16px;}.sw-meeting>summary{padding:16px 12px;}.sw-meeting-title>strong{font-size:13px;}.sw-meeting-title>.sw-meta{font-size:10px;}.sw-meeting-body{padding:20px 16px;}.sw-agenda-link{flex-wrap:wrap;}.sw-agenda-link>span:nth-child(2){flex-basis:calc(100% - 80px);}.sw-supervision-agenda{display:block;padding:18px;}.sw-person-card>span:nth-child(2){display:block;}.sw-person-dates{margin-top:8px;}.sw-person-card>svg{display:block;}.sw-meeting-filters{gap:5px;flex-wrap:wrap;}.sw-meeting-filters .text-button{padding:8px 10px;}.sw-form[data-kind=meetings]{padding:18px;}.sw-form[data-kind=meetings] .sw-form-footer{flex-wrap:wrap;}}

@media(max-width:620px) {
  .sw-form[data-kind="meetings"] .sw-dialog-head h2 { font-size:19px; }
  .sw-form[data-kind="meetings"] .sw-form-footer { flex-wrap:nowrap; }
  .sw-form[data-kind="meetings"] .sw-form-footer > button { width:auto; flex:1 1 0; }
  .sw-meeting-when { gap:12px; }
}

/* Shared portraits in supervision cards, appointments and the compact editor. */
.sw-person-avatar { position:relative; display:inline-flex; flex:0 0 60px; width:60px; height:60px; border-radius:50%; overflow:hidden; background:#eaf1f8; }
.sw-person-avatar > .sw-person-initials { width:100%; height:100%; flex-basis:100%; }
.sw-person-avatar > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.sw-person-card { align-items:center; }
.sw-person-option .sw-person-avatar { width:44px; height:44px; flex-basis:44px; }
.sw-meeting-avatars { display:inline-flex; gap:4px; flex-shrink:0; }
.sw-meeting-avatars .sw-person-avatar { width:26px; height:26px; flex-basis:26px; }
.sw-meeting-avatars .sw-person-initials { font-size:8px; }
.sw-meeting-who { display:flex; align-items:center; gap:8px; }
.sw-meeting-who > .sw-meta { font-size:11px; }
.sw-next-people { display:flex; align-items:center; gap:10px; margin:18px 0 10px; }
.sw-next-people > h2 { margin:0; }
.sw-next-people .sw-person-avatar { width:35px; height:35px; flex-basis:35px; border:2px solid #fff; }
.sw-next-people .sw-meeting-avatars { gap:0; }
.sw-next-people .sw-person-avatar + .sw-person-avatar { margin-left:-7px; }
.sw-portrait-credits { margin:18px 0; border-top:1px solid var(--border); padding-top:10px; }
.sw-portrait-credits p { font-size:11px; }
@media(max-width:620px) {
 .sw-person-card > .sw-person-avatar { width:58px; height:58px; flex-basis:58px; }
 .sw-meeting-who { align-items:flex-start; flex-direction:column; gap:5px; }
 .sw-meeting-who > .sw-meta { font-size:10px; }
}

/* Tasks: current workload first, automatic maintenance as compact supporting information. */
.sw-task-greeting { margin: 4px 0 6px; align-items: center; gap: 20px; }
.sw-task-greeting .sw-task-hello { margin: 0 0 3px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.sw-task-greeting h2 { margin: 0; color: var(--deep-navy); font-size: clamp(28px,2.6vw,37px); font-weight: 500; line-height: 1.3; letter-spacing: -.7px; }
.sw-task-greeting h2 > span { white-space: nowrap; }
.sw-task-greeting h2 .sw-task-total { color: var(--promotionscockpit-blue); font-size: 1.4em; font-weight: 700; letter-spacing: -1.7px; font-variant-numeric: tabular-nums; }
.sw-task-greeting > .primary-button { flex-shrink: 0; }
.sw-point-row > summary { grid-template-columns: 88px minmax(0,1fr) 128px 130px 16px; }
.sw-point-row .sw-status { border: 1px solid transparent; padding: 5px 10px; }
.sw-point-row .sw-status-important { color: #8b4513; background: #ffead7; border-color: #f4c6a0; }
.sw-point-row .sw-status-open { color: #496177; background: #edf2f7; border-color: #dce5ee; }
.sw-task-date { display: inline-flex; align-items: center; justify-self: end; gap: 7px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--deep-navy); font-size: 12px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.sw-task-date svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
@media(max-width:900px) {
  .sw-point-row > summary { grid-template-columns: minmax(0,1fr) auto 16px; gap: 10px 12px; padding: 16px; }
  .sw-point-row > summary .sw-study { grid-column: 1; grid-row: 1; }
  .sw-point-row > summary > strong { grid-column: 1 / 3; grid-row: 2; }
  .sw-point-row > summary .sw-row-status { grid-column: 2; grid-row: 1; }
  .sw-point-row > summary .sw-chevron { grid-column: 3; grid-row: 1 / 3; }
  .sw-point-row > summary .sw-task-date { grid-column: 1 / 3; grid-row: 3; justify-self: start; }
  .sw-task-date-empty { display: none; }
}
body[data-view="openPoints"] #viewSubtitle { display: none; }
.sw-task-overview { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.sw-task-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0; }
.sw-task-metric { --metric-bg: var(--open-soft); --metric-ink: var(--promotionscockpit-blue); min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--metric-bg); padding: 20px 23px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: left; color: var(--metric-ink); font: inherit; cursor: pointer; transition: box-shadow .15s; }
.sw-task-metric-important { --metric-bg: var(--promotionscockpit-blue); --metric-ink: #fff; border-color: var(--promotionscockpit-blue); }
.sw-task-metric-waiting { --metric-bg: var(--attention-soft); --metric-ink: #875c18; border-color: #e8d8b5; }
.sw-task-metric:hover { box-shadow: inset 0 0 0 1px currentColor; }
.sw-task-metric[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.sw-task-metric:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-task-metric-heading { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.sw-task-metric-heading svg { width: 18px; height: 18px; color: currentColor; flex-shrink: 0; }
.sw-task-metric > strong { font-size: 46px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw-task-maintenance { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 18px; padding: 8px 1px 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.sw-task-care { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 9px; }
.sw-maintenance-state { display: inline-flex; gap: 6px; align-items: center; }
.sw-maintenance-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--promotionscockpit-blue); flex-shrink: 0; }
.sw-maintenance-state.is-overdue { color: var(--attention); font-weight: 600; }
.sw-maintenance-state.is-overdue::before { background: var(--attention); }
.sw-task-next::before { content: '·'; margin-right: 9px; }
.sw-task-asof { margin-left: auto; padding-left: 15px; border-left: 1px solid var(--border); font-size: 10px; }
.sw-task-maintenance .sw-info-button { width: 25px; height: 25px; min-height: 25px; margin: 0; padding: 5px; color: var(--muted); }
.sw-task-maintenance .sw-info-button svg { width: 14px; height: 14px; }
.sw-review-help > .sw-review-help-note:first-child { margin-bottom: 22px; }
.sw-dialog:has(.sw-form[data-kind="points"]) { width: min(660px,calc(100vw - 24px)); border-radius: 12px; }
.sw-dialog .sw-form[data-kind="points"] { padding: 0; }
.sw-form[data-kind="points"] .sw-dialog-head { padding: 23px 26px; margin: 0; border-bottom: 1px solid var(--border); }
.sw-task-dialog-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sw-task-dialog-title > span { width: 37px; height: 37px; display: grid; place-items: center; background: var(--background); border-radius: 8px; color: var(--promotionscockpit-blue); flex-shrink: 0; }
.sw-task-dialog-title svg { width: 20px; height: 20px; }
.sw-form[data-kind="points"] .sw-task-close { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.sw-task-close svg { width: 20px; height: 20px; }
.sw-task-close:hover { background: var(--background); }
.sw-form[data-kind="points"] > .sw-form-fields { padding: 24px 26px; gap: 20px; }
.sw-form[data-kind="points"] label { color: var(--deep-navy); font-size: 13px; font-weight: 500; gap: 9px; }
.sw-form[data-kind="points"] input:not([type="radio"]):not([type="checkbox"]),.sw-form[data-kind="points"] textarea,.sw-form[data-kind="points"] select { padding: 12px 13px; border-radius: 7px; background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--text); }
.sw-form[data-kind="points"] input::placeholder,.sw-form[data-kind="points"] textarea::placeholder { color: var(--muted); opacity: .8; font-weight: 400; }
.sw-form[data-kind="points"] :is(input,textarea,select):focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 2px; }
.sw-form[data-kind="points"] .sw-task-study { padding: 0; border: 0; margin: 0; min-width: 0; }
.sw-task-study legend { margin-bottom: 10px; padding: 0; color: var(--deep-navy); font-size: 13px; font-weight: 500; }
.sw-task-study > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.sw-form[data-kind="points"] .sw-task-study label { display: block; position: relative; margin: 0; }
.sw-task-study input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sw-task-study label > span { display: block; border: 1px solid var(--border); border-radius: 6px; text-align: center; padding: 11px 5px; cursor: pointer; font-size: 12px; font-weight: 600; }
.sw-task-study input:checked + span { background: var(--sw-tint); border-color: var(--sw-accent); color: var(--sw-ink); box-shadow: inset 0 0 0 1px var(--sw-accent); }
.sw-task-study input:focus-visible + span { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-form[data-kind="points"] .sw-form-options { border: 1px solid var(--border); border-radius: 8px; padding: 0; background: var(--background); }
.sw-form[data-kind="points"] .sw-form-options > summary { padding: 13px 15px; }
.sw-form[data-kind="points"] .sw-form-options > summary small { margin-top: 2px; }
.sw-form[data-kind="points"] .sw-form-options[open] > summary { padding-bottom: 16px; }
.sw-form[data-kind="points"] .sw-form-options > .sw-form-fields { padding: 0 15px 16px; }
.sw-form[data-kind="points"] .sw-form-options fieldset { border: 0; padding: 0; }
.sw-form[data-kind="points"] .sw-form-options .sw-check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 12px; line-height: 1.5; }
.sw-form[data-kind="points"] .sw-form-options .sw-check input { margin-top: 2px; }
.sw-form[data-kind="points"] .sw-form-footer { margin: 0; padding: 16px 26px; justify-content: flex-end; background: var(--surface); gap: 12px; }
.sw-form[data-kind="points"] > .sw-error:not(:empty) { padding: 0 26px; }
.sw-form[data-kind="points"] .sw-task-close:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 2px; }
@media(max-width:760px) {
  .sw-task-greeting { align-items: flex-start; gap: 16px; }
  .sw-task-greeting h2 { font-size: 28px; letter-spacing: -.5px; }
  .sw-task-greeting .sw-task-hello { font-size: 14px; }
  .sw-task-metric { padding: 13px 13px; }
  .sw-task-metric-heading { font-size: 12px; }
  .sw-task-metric > strong { font-size: 40px; }
}
@media(max-width:520px) {
  .sw-task-greeting > .primary-button { width: auto; }
  .sw-task-metrics { grid-template-columns: 1fr; gap: 7px; }
  .sw-task-metric { padding: 10px 14px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .sw-task-metric-heading { font-size: 12px; line-height: 1.45; }
  .sw-task-metric > strong { font-size: 34px; }
  .sw-task-maintenance { display: flex; gap: 0 10px; padding: 6px 0 0; font-size: 10px; }
  .sw-task-care { display: grid; grid-template-columns: minmax(0,1fr) 25px; gap: 0 4px; width: 100%; }
  .sw-task-care > span { grid-column: 1; }
  .sw-task-next { padding-left: 11px; }
  .sw-task-next::before { content: none; }
  .sw-task-maintenance .sw-info-button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .sw-task-asof { padding: 3px 0 0; border: 0; font-size: 9px; }
  .sw-dialog .sw-form[data-kind="points"] .sw-dialog-head { padding: 18px; }
  .sw-task-dialog-title { gap: 9px; }
  .sw-form[data-kind="points"] .sw-dialog-head h2 { font-size: 18px; }
  .sw-task-dialog-title > span { width: 32px; height: 32px; }
  .sw-form[data-kind="points"] > .sw-form-fields { padding: 20px 18px; gap: 18px; }
  .sw-task-study > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sw-form[data-kind="points"] .sw-form-footer { padding: 15px 18px; gap: 8px; }
  .sw-form[data-kind="points"] .sw-form-footer button { width: auto; flex: 1 1 auto; justify-content: center; }
  .sw-form[data-kind="points"] .sw-form-footer .primary-button { flex: 2 1 auto; }
}


/* Focused supervision overview and in-page PDF reading. */
.sw-supervision-tools { justify-content: flex-end; }
.sw-supervision-main.sw-supervision-timeline { display: block; }
.sw-supervision-metrics strong.sw-metric-date { font-size: clamp(23px, 2.2vw, 32px); line-height: 1.3; min-height: 48px; display: flex; align-items: center; }
.sw-supervision-metrics button:disabled { cursor: default; opacity: .65; }
.sw-dialog:has(.sw-pdf-preview) { width: min(1080px, calc(100vw - 32px)); max-width: none; height: min(920px, calc(100dvh - 32px)); max-height: none; padding: 0; overflow: hidden; }
.sw-pdf-preview { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.sw-pdf-preview .sw-dialog-head { padding: 20px 24px; margin: 0; flex: 0 0 auto; border-bottom: 1px solid #dce3eb; gap: 12px; }
.sw-pdf-preview .sw-dialog-head h2 { margin: 5px 0 0; font-size: 23px; max-width: none; }
.sw-pdf-preview .sw-eyebrow { color: #526a8e; }
.sw-pdf-status { flex: 0 0 auto; margin: 0; padding: 12px 24px; background: #fff7e9; color: #60400c; font-size: 13px; }
.sw-pdf-status:empty { display: none; }
.sw-pdf-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sw-pdf-controls { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 12px 24px; background: #f8fafc; border-bottom: 1px solid #dce3eb; font-size: 13px; }
.sw-pdf-pagination { display: flex; align-items: center; gap: 14px; }
.sw-pdf-pagination button { min-width: 42px; min-height: 40px; padding: 6px 12px; font-size: 20px; }
.sw-pdf-pagination button:disabled { opacity: .35; cursor: default; }
.sw-pdf-pagination span { min-width: 85px; text-align: center; font-variant-numeric: tabular-nums; }
.sw-pdf-controls label { display: flex; gap: 8px; align-items: center; }
.sw-pdf-controls select { min-height: 40px; max-width: 190px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 6px 9px; background: white; color: inherit; font: inherit; }
.sw-pdf-stage { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #e7ecf2; padding: 16px; scrollbar-gutter: stable; }
.sw-pdf-sheet { position: relative; margin: 0 auto; background: white; box-shadow: 0 2px 12px #14263d22; }
.sw-pdf-sheet canvas { display: block; width: 100%; height: 100%; }
.sw-pdf-links { position: absolute; inset: 0; pointer-events: none; }
.sw-pdf-links :is(a,button) { position: absolute; pointer-events: auto; padding: 0; background: transparent; border: 0; border-radius: 2px; cursor: pointer; }
.sw-pdf-links :is(a,button):hover { background: #1773ba14; box-shadow: inset 0 0 0 1px #1773ba44; }
.sw-pdf-links :is(a,button):focus-visible { outline: 2px solid #176cb7; outline-offset: 2px; }
.sw-pdf-readable { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sw-library { display: grid; gap: 28px; }
.sw-library-featured { display: flex; align-items: center; gap: 22px; margin: 0; padding: 26px 28px; border-left: 4px solid var(--sw-accent); }
.sw-library-featured-icon { display: grid; place-items: center; width: 70px; height: 82px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--sw-ink); background: var(--sw-tint); }
.sw-library-featured-icon svg { width: 34px; height: 34px; }
.sw-library-featured .sw-eyebrow { color: var(--muted); }
.sw-library-featured h2 { margin: 6px 0; font-size: 27px; }
.sw-library-featured p { margin: 0; font-size: 14px; color: var(--muted); }
.sw-library-featured > button { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.sw-library-featured > button svg { width: 18px; height: 18px; }
.sw-library-categories { grid-template-columns: repeat(4,minmax(0,1fr)); }
.sw-library-search { display: flex; align-items: center; gap: 18px; }
.sw-library-search label { font-size: 14px; font-weight: 700; }
.sw-library-search input { width: min(440px,100%); min-height: 44px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; color: var(--text); background: var(--surface); font: inherit; font-size: 14px; }
.sw-document-library { gap: 24px; }
.sw-document-topbar { flex-shrink: 0; }
.sw-library-overview-heading,.sw-library-result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sw-library-result-heading { justify-content: flex-start; }
.sw-document-library h3 { color: var(--deep-navy); font-size: 16px; margin: 0; }
.sw-document-library select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 28px 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; box-sizing: border-box; }
.sw-library-folders { display: grid; gap: 16px; }
.sw-library-study-folders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.sw-library-folder { display: flex; align-items: center; gap: 12px; padding: 16px; min-width: 0; min-height: 60px; border: 0; background: var(--surface); color: var(--deep-navy); text-align: left; font: inherit; cursor: pointer; }
.sw-library-folder > span:nth-child(2) { min-width: 0; flex: 1; }
.sw-library-folder strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sw-library-folder small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.sw-library-folder small b { color: var(--sw-ink); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sw-library-folder-icon { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--sw-tint); color: var(--sw-ink); }
.sw-library-folder-icon svg { width: 22px; height: 22px; }
.sw-library-study-folder { border: 1px solid var(--border); border-left: 4px solid var(--sw-accent); border-radius: 7px; padding: 20px; min-height: 96px; background: var(--sw-tint); }
.sw-library-study-folder strong { color: var(--sw-ink); }
.sw-library-study-folder .sw-library-folder-icon { background: var(--surface); }
.sw-library-folder:hover { background: var(--sw-tint); }
.sw-library-study-folder:hover { border-color: var(--sw-accent); }
.sw-library-folder-arrow { color: var(--muted); font-size: 22px; }
.sw-library-folder-count { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--sw-tint); color: var(--sw-ink); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sw-library-folder-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.sw-library-folder-heading .text-button { min-height: 36px; padding: 4px 0; font-size: 12px; }
.sw-library-other-folders { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0 16px; }
.sw-library-other-folders .sw-library-folder { border-bottom: 1px solid var(--border); padding: 16px 0; }
.sw-library-other-folders .sw-library-folder:nth-last-child(-n+2) { border-bottom: 0; }
.sw-library-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); min-width: 0; }
.sw-library-breadcrumb .text-button { padding: 0; min-height: 30px; font-size: 12px; flex-shrink: 0; }
.sw-library-breadcrumb > span:last-child { overflow-wrap: anywhere; }
.sw-library-results { display: grid; gap: 16px; min-width: 0; }
.sw-library-results > p { margin: 0; }
.sw-document-library-result { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; scroll-margin-top: 100px; }
.sw-document-library-result h3 { margin: 0; font-size: 18px; }
.sw-document-library-result p { margin: 0; }
.sw-document-library-result > button { min-height: 36px; padding: 0; font-size: 12px; }
.sw-library-options > summary,.sw-library-quick > summary,.sw-library-group-info > summary { display: flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; min-height: 36px; color: var(--muted); font-size: 12px; width: fit-content; }
.sw-document-library summary::-webkit-details-marker { display: none; }
.sw-library-options[open] > summary,.sw-library-quick[open] > summary { color: var(--deep-navy); }
.sw-library-filter-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.sw-library-filter-bar > label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.sw-library-entries { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0 20px; }
.sw-library-entry { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.sw-library-entry:last-child { border-bottom: 0; }
.sw-library-entry-icon { display: flex; padding-top: 2px; color: var(--sw-ink); }
.sw-library-entry-icon svg { width: 19px; height: 20px; }
.sw-library-entry-content { min-width: 0; }
.sw-library-title { display: block; text-align: left; padding: 0; border: 0; background: none; color: var(--deep-navy); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.sw-library-title:hover { color: var(--promotionscockpit-blue); text-decoration: underline; }
.sw-library-entry-meta,.sw-library-entry-caution { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.sw-library-needs-update,.sw-library-entry-caution { color: #805018; }
.sw-library-info { margin-top: 6px; font-size: 12px; color: var(--muted); }
.sw-library-info > summary { display: flex; gap: 5px; align-items: center; cursor: pointer; list-style: none; width: fit-content; min-height: 28px; }
.sw-library-info-body { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--sw-accent); line-height: 1.6; overflow-wrap: anywhere; }
.sw-library-info-body p { margin: 0 0 8px; }
.sw-library-info-body dl { margin: 8px 0; display: grid; gap: 6px; }
.sw-library-info-body dl > div { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-library-info-body dt { font-weight: 600; }
.sw-library-info-body dd { margin: 0; }
.sw-library-downloads { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: flex-end; }
.sw-library-download { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; color: var(--promotionscockpit-blue); font-size: 12px; text-decoration: none; white-space: nowrap; }
.sw-library-download:hover { text-decoration: underline; }
.sw-library-pin { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.sw-library-pin svg { width: 16px; height: 16px; }
.sw-library-pin[aria-pressed="true"] { color: var(--promotionscockpit-blue); }
.sw-library-pin:disabled { opacity: .5; cursor: wait; }
.sw-library-pin-compact { min-width: 36px; flex-shrink: 0; }
.sw-library-quick { border-top: 1px solid var(--border); padding-top: 12px; }
.sw-library-quick-body { display: grid; gap: 16px; margin-top: 10px; }
.sw-document-library .sw-study-filters button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.sw-library-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 24px; }
.sw-library-quick-grid > p { grid-column: 1 / -1; margin: 0; }
.sw-library-quick-item { display: flex; min-width: 0; align-items: center; border-bottom: 1px solid var(--border); }
.sw-library-quick-item > button:first-child { min-width: 0; flex: 1; text-align: left; border: 0; background: none; padding: 12px 0; color: var(--deep-navy); cursor: pointer; font: inherit; }
.sw-library-quick-item strong { font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.sw-library-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.sw-library-asset { display: flex; flex-direction: column; min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--sw-accent); border-radius: 6px; gap: 10px; }
.sw-library-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; height: 165px; padding: 12px; background: white; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.sw-library-thumbnail img { display: block; max-width: 100%; max-height: 145px; width: 100%; height: 100%; object-fit: contain; }
.sw-library-thumbnail > svg { width: 36px; height: 36px; color: var(--muted); }
.sw-library-asset > p { margin: 0; }
.sw-library-asset > .sw-library-downloads { justify-content: flex-start; margin-top: auto; }
.sw-library-asset > .sw-library-info { margin-top: 0; }
.sw-library-country-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.sw-library-country-links button { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; font-size: 12px; min-height: 32px; }
.sw-library-country-links svg { width: 13px; height: 13px; }
.sw-document-library-note { color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 100ch; }
.sw-library-submission { border-top: 1px solid var(--border); padding-top: 10px; }
.sw-library-submission > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 36px; font-size: 12px; color: var(--muted); list-style: none; }
.sw-library-submission-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 16px 0; }
.sw-library-submission-grid h4 { margin: 0 0 12px; }
.sw-library-submission-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sw-library-submission-grid li { display: grid; gap: 3px; font-size: 12px; }
.sw-library-submission-grid li > small { color: var(--muted); font-size: 11px; }
.sw-library-submission-grid button { display: inline-flex; align-items: center; justify-self: start; gap: 5px; padding: 0; min-height: 24px; font-size: 12px; }
.sw-library-submission-grid svg { width: 12px; height: 12px; }
.sw-library-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.sw-library-pagination .secondary-button { min-height: 38px; min-width: 38px; padding: 6px 10px; }
.sw-document-library button:focus-visible,.sw-document-library a:focus-visible,.sw-document-library select:focus-visible,.sw-document-library summary:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
@media(max-width:1100px) {
  .sw-library-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sw-library-filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .sw-document-library { gap: 20px; }
  .sw-library-study-folders { grid-template-columns: 1fr; gap: 10px; }
  .sw-library-study-folder { min-height: 72px; padding: 16px; }
  .sw-library-other-folders { grid-template-columns: 1fr; gap: 0; }
  .sw-library-other-folders .sw-library-folder:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .sw-library-entries { padding: 0 14px; }
  .sw-library-entry { grid-template-columns: 20px minmax(0,1fr); gap: 8px 10px; }
  .sw-library-entry > .sw-library-downloads { grid-column: 2; justify-content: flex-start; margin-top: -2px; }
  .sw-library-entry-meta,.sw-library-entry-caution { font-size: 11px; }
  .sw-library-submission-grid { grid-template-columns: 1fr; }
  .sw-library-quick-grid { grid-template-columns: 1fr; }
  .sw-library-gallery { grid-template-columns: 1fr; }
  .sw-library-folder strong { font-size: 13px; }
  .sw-library-filter-bar { padding: 12px; }
  .sw-library-pagination > .sw-actions { margin-left: auto; }
}
@media(max-width:700px) {
  body[data-view="documentLibrary"] .topbar { flex-wrap: wrap; gap: 14px; }
}
body.sw-document-drawer-open { overflow: hidden; }
.sw-library-entry,.sw-library-asset { cursor: pointer; }
.sw-library-entry:hover .sw-library-title,.sw-library-asset:hover .sw-library-title { color: var(--promotionscockpit-blue); }
.sw-document-drawer .literature-cover-sheet > img { object-fit: contain; }
.sw-document-drawer .literature-cover-preview.has-text .literature-cover-sheet { cursor: pointer; }
.sw-document-drawer .sw-library-pin:focus-visible,.sw-document-drawer .sw-library-download:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-document-drawer .sw-document-details > p { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sw-document-drawer .sw-document-details .literature-detail-facts { margin-top: 22px; }
.sw-document-drawer .sw-document-files { padding-top: 24px; border-top: 1px solid var(--border); }
.sw-document-drawer .sw-library-downloads { justify-content: flex-start; gap: 10px 20px; }
.sw-document-drawer .sw-library-download { gap: 6px; }
.sw-document-drawer .sw-document-reader:not(:has(.sw-pdf-controls)) .sw-pdf-content { height: auto; max-height: 68dvh; overflow: auto; }
.sw-document-drawer .sw-document-reader .sw-image-document { max-height: 64dvh; border: 0; border-radius: 0; padding: 20px; }
.sw-document-drawer .sw-document-reader .sw-text-document { border: 0; border-radius: 0; font-size: 13px; padding: 18px; }
.sw-document-drawer .sw-document-drawer-notice { margin: 0 0 20px; font-size: 12px; }
.sw-image-document { display: block; width: 100%; max-width: 880px; max-height: 65vh; object-fit: contain; margin: 0 auto; padding: 30px; background: white; border: 1px solid var(--border); border-radius: 6px; }
.sw-text-document { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 24px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; line-height: 1.7; max-height: 65vh; overflow: auto; }
@media(max-width:760px) { .sw-image-document { padding: 16px; } .sw-text-document { padding: 16px; } }
.sw-library .sw-evidence-category > h3 > span { white-space: nowrap; }
.sw-library-groups { display: grid; gap: 30px; }
.sw-library-document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.sw-library-document { display: flex; align-items: center; text-align: left; gap: 13px; min-width: 0; min-height: 94px; padding: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font: inherit; }
.sw-library-document:hover { background: var(--sw-tint); border-color: var(--sw-accent); }
.sw-library-document:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 3px; }
.sw-library-document-icon { flex-shrink: 0; color: var(--sw-ink); }
.sw-library-document-icon svg { width: 22px; height: 22px; }
.sw-library-document-copy { display: grid; gap: 8px; min-width: 0; }
.sw-library-document-copy strong { font-size: 14px; line-height: 1.45; }
.sw-library-document-copy > span { color: var(--muted); font-size: 12px; }
.sw-library-document-arrow { color: var(--muted); margin-left: auto; flex-shrink: 0; }
.sw-library-document-arrow svg { width: 16px; height: 16px; }
.sw-pdf-preview .sw-actions a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
@media(max-width:1100px) { .sw-library-categories { grid-template-columns: repeat(2,minmax(0,1fr)); } .sw-library-document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  .sw-library { gap: 24px; }
  .sw-library-featured { flex-wrap: wrap; padding: 20px; gap: 14px; }
  .sw-library-featured-icon { width: 48px; height: 60px; }
  .sw-library-featured-icon svg { width: 26px; height: 26px; }
  .sw-library-featured .sw-eyebrow { color: var(--muted); }
.sw-library-featured h2 { font-size: 21px; }
  .sw-library-featured > button { margin: 6px 0 0; width: 100%; justify-content: center; }
  .sw-library-document-grid { grid-template-columns: 1fr; }
  .sw-library-search { align-items: stretch; flex-direction: column; gap: 9px; }
  .sw-library-document { min-height: 86px; padding: 16px; }
  .sw-pdf-preview .sw-dialog-head .sw-actions { flex-wrap: wrap; }
  .sw-pdf-preview .sw-dialog-head .sw-actions a { flex: 1; white-space: nowrap; font-size: 12px; }
}
@media (max-width: 600px) {
  .sw-dialog:has(.sw-pdf-preview) { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .sw-pdf-preview .sw-dialog-head { padding: 16px; }
  .sw-pdf-preview .sw-dialog-head h2 { font-size: 21px; }
  .sw-pdf-preview .sw-dialog-head .sw-actions { width: 100%; }
  .sw-pdf-preview .sw-dialog-head .sw-actions button { flex: 1; }
  .sw-pdf-controls { padding: 10px 16px; }
  .sw-pdf-controls label { width: 100%; justify-content: space-between; }
  .sw-pdf-stage { padding: 16px; }
  .sw-pdf-status { padding: 10px 16px; }
}
@media (max-width: 620px) {
  .sw-supervision-metrics { grid-template-columns: 1fr; gap: 14px; }
  .sw-supervision-metrics > button { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 10px; padding: 2px 0 2px 12px; border-top: 0; border-left: 3px solid #004899; }
  .sw-supervision-metrics > button:nth-child(2) { border-color: #f08338; }
  .sw-supervision-metrics > button:nth-child(3) { border-color: #a6d9e2; }
  .sw-supervision-metrics span { grid-column: 1; min-height: 0; font-size: 12px; }
  .sw-supervision-metrics small { grid-column: 1; font-size: 10px; }
  .sw-supervision-metrics strong, .sw-supervision-metrics strong.sw-metric-date { grid-column: 2; grid-row: 1 / 3; margin: 0; min-height: 0; font-size: 30px; white-space: nowrap; }
  .sw-supervision-metrics strong.sw-metric-date { font-size: 21px; }
}

/* Keep the conversation list close to the overview on small screens. */
@media (max-width:620px) {
  .sw-supervision-tools .sw-actions { width:100%; flex-wrap:nowrap; gap:8px; }
  .sw-supervision-tools .sw-actions > button { width:auto; flex:1; padding:8px; min-height:38px; font-size:12px; white-space:nowrap; }
  .sw-meeting-person-filter { grid-template-columns:52px minmax(0,1fr); gap:12px; padding:12px; }
  .sw-meeting-count { padding-right:10px; }
  .sw-meeting-count strong { font-size:28px; }
  .sw-person-shortcuts { grid-column:1/-1; }
  .sw-person-shortcuts .sw-filter-label { display:none; }
  .sw-person-quick-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .sw-person-quick-filter { flex-direction:column; justify-content:center; gap:4px; padding:6px 2px; font-size:10px; }
  .sw-all-people { grid-column:1/-1; justify-self:end; padding:4px 0; border:0; background:transparent; }
  .sw-people-tools { gap:12px; }
  body[data-view="supervision"] .sw-meeting-filters { flex-wrap:nowrap; }
  body[data-view="supervision"] .sw-meeting-filters button { font-size:12px; padding:7px 8px; }
  body[data-view="supervision"] .sw-supervision-dashboard { margin-bottom:20px; }
  body[data-view="supervision"] .sw-next-meeting { padding:16px; }
  body[data-view="supervision"] .sw-next-date { font-size:26px; margin-top:8px; }
  body[data-view="supervision"] .sw-next-time { font-size:12px; }
  body[data-view="supervision"] .sw-next-people { margin:10px 0; }
  body[data-view="supervision"] .sw-next-people + p { display:none; }
  body[data-view="supervision"] .sw-next-meeting h2 { font-size:14px; margin:0; }
  body[data-view="supervision"] .sw-next-meeting p { margin-bottom:10px; }
  body[data-view="supervision"] .sw-supervision-summary { padding:16px; }
  body[data-view="supervision"] .sw-supervision-summary > .sw-supervision-heading,
  body[data-view="supervision"] .sw-supervision-note { display:none; }
  body[data-view="supervision"] .sw-supervision-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; }
  body[data-view="supervision"] .sw-supervision-metrics > button { display:flex; flex-direction:column; align-items:flex-start; padding:8px 0 0; border-left:0; border-top:3px solid #004899; }
  body[data-view="supervision"] .sw-supervision-metrics > button:nth-child(2) { border-top-color:#f08338; }
  body[data-view="supervision"] .sw-supervision-metrics > button:nth-child(3) { border-top-color:#a6d9e2; }
  body[data-view="supervision"] .sw-supervision-metrics span { font-size:10px; min-height:30px; }
  body[data-view="supervision"] .sw-supervision-metrics small { display:none; }
  body[data-view="supervision"] .sw-supervision-metrics strong { font-size:26px; margin-top:4px; }
  body[data-view="supervision"] .sw-supervision-metrics strong.sw-metric-date { font-size:18px; margin-top:8px; }
}

/* Document preview shares the meeting reader, with a compact close control. */
.sw-document-preview .sw-dialog-head .sw-actions .sw-document-close { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; padding:7px; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; }
.sw-document-close svg { width:22px; height:22px; }
.sw-document-close:hover { background:var(--background); }
.sw-document-close:focus-visible { outline:2px solid var(--promotionscockpit-blue); outline-offset:2px; }
@media(max-width:620px) {
 .sw-document-preview .sw-dialog-head { position:relative; }
 .sw-document-preview .sw-dialog-head > div:first-child { padding-right:38px; }
 .sw-document-preview .sw-dialog-head .sw-actions .sw-document-close { position:absolute; right:12px; top:12px; }
 .sw-document-preview .sw-dialog-head .sw-actions a { flex:1 1 130px; }
}

/* Shared private calendar, using existing study accents. */
.pc-cal{--cal-rule:#d8e4f3;--cal-ink:#00305b;color:var(--cal-ink);min-width:0}
.pc-cal-toolbar,.pc-cal-period,.pc-cal-tools,.pc-cal-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pc-cal-toolbar{justify-content:space-between;margin-bottom:16px}.pc-cal-period h2{font-size:19px;margin:0 0 0 6px}.pc-cal-period>.text-button{font-size:17px;padding:6px 10px}.pc-cal-tools{gap:8px}.pc-cal-tools .sw-actions{margin:0}.pc-cal-date-pick input{border:1px solid var(--cal-rule);border-radius:8px;padding:7px;background:#fff;color:var(--cal-ink);font:inherit;font-size:13px}
.pc-cal-filters{margin-bottom:16px;gap:7px}.pc-cal-filter{border:1px solid var(--cal-rule);border-radius:8px;padding:7px 13px;background:white;color:var(--cal-ink);font:inherit;font-size:13px;cursor:pointer}.pc-cal-filter[aria-pressed=true]{background:#edf3fa;border-color:#004899;font-weight:700}.pc-cal-filter.pc-cal-trace[aria-pressed=true]{background:#f5eaf3;border-color:#b971ac}.pc-cal-filter.pc-cal-maps[aria-pressed=true]{background:#eaf7f9;border-color:#79b9c5}.pc-cal-filter.pc-cal-paths[aria-pressed=true]{background:#fff0e4;border-color:#f08338}
.pc-cal-tools [aria-pressed=true]{font-weight:700;color:#004899;background:#edf3fa;border-radius:6px}.pc-cal-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;align-items:start}.pc-cal-main{min-width:0;border:1px solid var(--cal-rule);border-radius:12px;background:#fff;overflow:hidden}.pc-cal-tasks{border:1px solid var(--cal-rule);border-radius:12px;padding:16px;background:#f3f7fb}.pc-cal-tasks h3{font-size:15px;margin:0 0 8px;display:flex;justify-content:space-between}.pc-cal-tasks p{line-height:1.5;font-size:12px}.pc-cal-task{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--cal-rule);border-left:3px solid #004899;border-radius:7px;padding:10px;margin:10px 0;color:var(--cal-ink);cursor:grab;font:inherit}.pc-cal-task small{display:block;font-size:11px;margin-bottom:4px}.pc-cal-task strong{font-size:13px;line-height:1.35;display:block}.pc-cal-task.pc-cal-trace{border-left-color:#b971ac}.pc-cal-task.pc-cal-maps{border-left-color:#a6d9e2}.pc-cal-task.pc-cal-paths{border-left-color:#f08338}.pc-cal-hint{margin:16px 0 0}.pc-cal-footer{margin-top:12px;font-size:12px;line-height:1.5}
.pc-cal-week-head,.pc-cal-allday,.pc-cal-time-grid{display:grid;grid-template-columns:54px repeat(7,minmax(0,1fr))}.pc-cal-week-head{border-bottom:1px solid var(--cal-rule);padding-right:8px}.pc-cal-week-head button{border:0;border-left:1px solid var(--cal-rule);background:#fff;padding:12px 2px;color:var(--cal-ink);cursor:pointer;font:inherit}.pc-cal-week-head button span{font-size:11px;display:block;margin-bottom:4px}.pc-cal-week-head button strong{font-size:15px}.pc-cal-week-head button.is-today{background:#edf3fa;color:#004899}.pc-cal-week-head button.is-selected{box-shadow:inset 0 -3px #004899}.pc-cal-allday{border-bottom:1px solid var(--cal-rule);min-height:32px;padding-right:8px}.pc-cal-allday>span{font-size:9px;padding:5px;align-self:center;color:#64748b}.pc-cal-allday>div{border-left:1px solid var(--cal-rule);padding:2px;min-width:0}
.pc-cal-time-scroll{height:570px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.pc-cal-time-grid{height:1728px}.pc-cal-hours{position:relative;background:#f8fafc}.pc-cal-hours span{position:absolute;right:5px;font-size:10px;color:#64748b;transform:translateY(1px)}.pc-cal-day-column{position:relative;border-left:1px solid var(--cal-rule);min-width:0;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 35px,#edf2f7 35px,#edf2f7 36px)}.pc-cal-day-column.is-today{background-color:#f8fbff}.pc-cal-slot{display:block;height:36px;width:100%;border:0;background:transparent;cursor:pointer;padding:0}.pc-cal-slot:hover,.pc-cal-slot:focus-visible{background:#e4eefb;outline:2px solid #004899;outline-offset:-2px}.pc-cal-event{display:block;position:relative;width:100%;text-align:left;border:1px solid #bdd0e7;border-left:3px solid #004899;background:#edf3fa;border-radius:5px;padding:4px 5px;color:#00305b;overflow:hidden;cursor:pointer;font:inherit;line-height:1.2;min-width:0}.pc-cal-event.pc-cal-trace{background:#f5eaf3;border-color:#dec0d8;border-left-color:#b971ac}.pc-cal-event.pc-cal-maps{background:#eaf7f9;border-color:#c2e7ec;border-left-color:#79b9c5}.pc-cal-event.pc-cal-paths{background:#fff0e4;border-color:#fbd2b3;border-left-color:#f08338}.pc-cal-day-column>.pc-cal-event{position:absolute;z-index:2}.pc-cal-event-time{font-size:9px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-cal-event strong{font-size:11px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px;overflow-wrap:anywhere}.pc-cal-event small{font-size:9px;display:block;margin-top:3px}.pc-cal-resize{position:absolute;height:7px;bottom:0;left:0;right:0;cursor:ns-resize;touch-action:none}.pc-cal-resize:after{content:'';display:block;width:20px;height:2px;background:currentColor;opacity:.3;margin:3px auto}.pc-cal-day-column>.pc-cal-event:has(.pc-cal-resize):hover{box-shadow:0 1px 5px #00305b20}.pc-cal-event[draggable=true]{cursor:grab}.pc-cal-event:focus-visible,.pc-cal-task:focus-visible{outline:2px solid #004899;outline-offset:1px}
.pc-cal-month-head,.pc-cal-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.pc-cal-month-head span{text-align:center;font-size:12px;padding:10px}.pc-cal-month-day{min-height:120px;padding:5px;border-top:1px solid var(--cal-rule);border-right:1px solid var(--cal-rule);min-width:0}.pc-cal-month-day:nth-child(7n){border-right:0}.pc-cal-month-day.is-outside{background:#f8fafc}.pc-cal-month-day.is-outside .pc-cal-day-number{color:#94a3b8}.pc-cal-month-day.is-today{background:#f3f7fb}.pc-cal-day-number{border:0;border-radius:5px;color:#00305b;background:transparent;padding:3px 6px;font:inherit;font-size:12px;cursor:pointer}.pc-cal-month-day.is-today .pc-cal-day-number{background:#004899;color:#fff}.pc-cal-month-events{max-height:155px;overflow-y:auto}.pc-cal-month-events .pc-cal-event{margin:3px 0;padding:3px;min-height:30px}.pc-cal-month-events .pc-cal-event strong{-webkit-line-clamp:2;font-size:10px}.pc-cal-month-events .pc-cal-event-time{font-size:9px}.pc-cal-month-events .pc-cal-resize,.pc-cal-allday .pc-cal-resize{display:none}
.pc-cal-agenda{display:none}.pc-cal-agenda section{padding:12px;border-bottom:1px solid var(--cal-rule)}.pc-cal-agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:8px;font-size:13px}.pc-cal-agenda .pc-cal-event{margin:6px 0;padding:10px;min-height:48px}.pc-cal-agenda .pc-cal-event-time{font-size:11px}.pc-cal-agenda .pc-cal-event strong{font-size:13px}.pc-cal-agenda .pc-cal-resize{display:none}
@media(min-width:1600px){.pc-cal-time-scroll{height:650px}}
@media(max-width:1150px){.pc-cal-layout{grid-template-columns:minmax(0,1fr)}.pc-cal-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pc-cal-tasks h3,.pc-cal-tasks>p{grid-column:1/-1}.pc-cal-task{margin:0}.pc-cal-time-scroll{height:520px}}
@media(max-width:700px){.pc-cal-desktop{display:none}.pc-cal-agenda{display:block}.pc-cal-toolbar,.pc-cal-tools{align-items:flex-start;gap:8px}.pc-cal-period h2{font-size:16px;flex-basis:100%;margin:2px 0}.pc-cal-tools{width:100%}.pc-cal-tools>.primary-button{font-size:12px;padding:8px}.pc-cal-date-pick input{max-width:135px;font-size:12px}.pc-cal-tools>.text-button{font-size:12px}.pc-cal-filters{gap:5px}.pc-cal-filter{padding:7px 10px;font-size:12px}.pc-cal-tasks{grid-template-columns:minmax(0,1fr)}.pc-cal-footer{font-size:11px}}
.pc-cal .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.pc-cal-day-column .pc-cal-event-short strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}


/* Guest invitations reuse the protected workspace panels and form controls. */
[data-owner-only][hidden], body[data-access-role="guest"] [data-owner-only] { display: none !important; }
.sidebar-guest-session { padding: 0 8px; color: #fff; font-size: 12px; }
.sidebar-guest-session[hidden] { display: none; }
.sidebar-guest-session a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 8px 0; }
.sidebar-guest-session a:hover { text-decoration: underline; }
.sidebar-guest-session a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sidebar-guest-session .nav-icon { width: 16px; height: 16px; }
.profile-guest-page { max-width: 800px; }
.profile-redesign .profile-guest-avatar { color: var(--promotionscockpit-blue); font-size: 1.5rem; border: 1px solid var(--border); }
.profile-guest-access { margin-top: 28px; }
.profile-guests-settings { min-width: 0; }
.profile-guests-settings > .profile-section-heading { margin-bottom: 12px; }
.profile-guests-settings .sw-panel { margin: 0; }
.profile-guests-settings .pc-guests { gap: 20px; }
.pc-guests { max-width: 1200px; }
.pc-guests h2 { margin: 0; color: var(--deep-navy); font-size: 20px; line-height: 1.3; }
.pc-guests-invite > p { max-width: 780px; font-size: 14px; }
.pc-guest-form .sw-form-fields { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(180px,.8fr); margin-top: 24px; }
.pc-guest-form label { font-weight: 700; color: var(--deep-navy); }
.pc-guest-form input,.pc-guest-form select { font-weight: 400; color: var(--text-secondary); min-height: 42px; }
.pc-guest-form-actions { margin-top: 20px; gap: 12px; align-items: center; }
.pc-guest-form-actions .sw-meta { font-size: 12px; }
.pc-guest-message { font-size: 13px; }
.pc-guest-form input:focus-visible,.pc-guest-form select:focus-visible { outline: 2px solid var(--promotionscockpit-blue); outline-offset: 2px; }
.pc-guests-list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.pc-guests-list-heading > .text-button { flex: 0 0 auto; white-space: nowrap; }
.pc-guests-list-heading h2 span { color: var(--muted); font-size: 14px; margin-left: 5px; font-weight: 400; }
.pc-guests-table-wrap { width: 100%; overflow-x: auto; }
.pc-guests-table .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body[data-access-role="guest"] #viewTitle { overflow-wrap: anywhere; }
.pc-guests-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; line-height: 1.5; }
.pc-guests-table th,.pc-guests-table td { padding: 15px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pc-guests-table th:first-child,.pc-guests-table td:first-child { padding-left: 0; }
.pc-guests-table th:last-child,.pc-guests-table td:last-child { padding-right: 0; }
.pc-guests-table thead th { color: var(--muted); font-size: 12px; font-weight: 400; padding-top: 0; }
.pc-guest-identity { width: 32%; min-width: 175px; overflow-wrap: anywhere; }
.pc-guest-identity strong { display: block; color: var(--deep-navy); font-weight: 700; }
.pc-guest-identity span { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; }
.pc-guests-table .sw-actions { gap: 7px 12px; flex-wrap: wrap; }
.pc-guests-table .text-button { padding: 2px 0; font-size: 12px; text-align: left; min-height: 30px; }
.pc-guest-confirm { max-width: 270px; }
.pc-guest-confirm > span { display: block; color: var(--text-secondary); font-size: 12px; margin-bottom: 7px; }
.pc-guests-help { margin: 18px 0 0 !important; max-width: 850px; font-size: 12px; }
.pc-guests-empty { padding: 18px 0 4px; }
.pc-guests-empty p { color: var(--deep-navy); margin: 0 0 5px; font-size: 14px; }
body[data-access-role="guest"] .pc-cal-task { cursor: pointer; }
@media (min-width: 768px) {
  .is-sidebar-collapsed .sidebar-guest-session { padding: 0; text-align: center; }
  .is-sidebar-collapsed .sidebar-guest-session a > span:last-child { display: none; }
}
@media (max-width: 960px) {
  .pc-guest-form .sw-form-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pc-guest-form label:last-child { grid-column: 1/-1; max-width: 320px; }
}
@media (max-width: 600px) {
  .pc-guests h2 { font-size: 18px; }
  .pc-guest-form .sw-form-fields { grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 20px; }
  .pc-guest-form label:last-child { max-width: none; }
  .pc-guest-form-actions { align-items: flex-start; flex-direction: column; }
  .pc-guest-form-actions > .primary-button { width: 100%; justify-content: center; }
  .pc-guests-table,.pc-guests-table tbody,.pc-guests-table tr,.pc-guests-table th,.pc-guests-table td { display: block; }
  .pc-guests-table thead { display: none; }
  .pc-guests-table tr { padding: 15px 0; border-top: 1px solid var(--border); }
  .pc-guests-table th,.pc-guests-table td { border: 0; padding: 5px 0; min-width: 0; width: auto; }
  .pc-guests-table .pc-guest-identity { padding: 0 0 10px; }
  .pc-guests-table td[data-label] { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 12px; }
  .pc-guests-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; padding-top: 2px; }
  .pc-guest-confirm { max-width: none; }
  .pc-guests-list-heading { gap: 8px; }
  .pc-guests-list-heading .text-button { font-size: 12px; }
}

/* Shared bibliography statistics fit the available internal content width. */
#literatureStats { min-width:0; container: literature-statistics / inline-size; }
#literatureStats .literature-stat-card-head { flex-wrap:wrap; }
#literatureStats .literature-stat-card-head > span { max-width:100%; white-space:normal; }
#literatureStats .literature-stat-card--compact-years .literature-stat-columns { max-width:100%; grid-template-columns:repeat(var(--stat-column-count),minmax(0,1fr)); }
#literatureStats .literature-stat-column i { min-width:0; }
#literatureStats .literature-stat-donut-layout { grid-template-columns:112px minmax(0,200px); }
#literatureStats .literature-stat-legend-row { grid-template-columns:9px minmax(0,1fr) auto auto; }
@container literature-statistics (max-width:760px) {
  #literatureStats .literature-stat-grid { grid-template-columns:minmax(0,1fr); }
  #literatureStats .literature-stat-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container literature-statistics (max-width:440px) {
  #literatureStats .literature-stat-donut-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
  #literatureStats .literature-stat-legend { max-width:none; }
  #literatureStats .literature-stat-legend-row { width:100%; }
  #literatureStats .literature-stat-columns { gap:3px; }
}
