:root {
  --bg: #eef3f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.66);
  --line: rgba(11, 66, 110, 0.10);
  --line-strong: rgba(11, 66, 110, 0.24);
  --text: #13202f;
  --muted: #617487;
  --accent: #123d63;
  --accent-strong: #0b2943;
  --primary: #0b426e;
  --primary-strong: #0a314f;
  --focus-ring: rgba(18, 61, 99, 0.22);
  --focus-line: rgba(18, 61, 99, 0.52);
  --hover-line: rgba(11, 66, 110, 0.22);
  --hover-surface: rgba(255, 255, 255, 0.94);
  --nav-text: #f5f5f7;
  --header-bg: #f5f5f7;
  --header-text: #13202f;
  --footer-bg: #0a314f;
  --footer-text: rgba(255, 255, 255, 0.82);
  --danger: #b42318;
  --danger-soft: #fff1f1;
  --shadow: 0 28px 80px rgba(10, 49, 79, 0.12);
  --radius: 28px;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 22%),
    radial-gradient(circle at top right, rgba(11, 66, 110, 0.10), transparent 26%),
    linear-gradient(180deg, #fbfbfc 0%, var(--bg) 100%);
  color: var(--text);
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.settings-focus-shell {
  min-height: 100vh;
}

.main-settings-only {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
}

.masthead-settings-only {
  margin-top: 8px;
}

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.98) 0%, rgba(21, 27, 39, 0.96) 100%);
  backdrop-filter: blur(24px);
  color: var(--nav-text);
}

.brand {
  margin-bottom: 28px;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 600;
  font-size: 1.18rem;
}

.brand-mark-lower {
  color: #f5f5f7;
}

.brand-mark-upper {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.03em;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 13px;
  background: transparent;
  color: var(--nav-text);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  font-size: 0.92rem;
}

.nav-button:hover {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(18, 61, 99, 0.24);
  color: #ffffff;
}

.nav-button.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.24) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: rgba(18, 61, 99, 0.28);
  box-shadow: inset 3px 0 0 rgba(18, 61, 99, 0.92);
  color: #ffffff;
  transform: translateX(2px);
}

.main {
  padding: 18px 22px 24px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 26px 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(11, 66, 110, 0.12), transparent 36%),
    linear-gradient(135deg, var(--primary-strong) 0%, var(--header-bg) 56%, color-mix(in srgb, var(--header-bg) 78%, white 22%) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--header-text);
  box-shadow: 0 28px 80px rgba(10, 49, 79, 0.26);
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.masthead-brand-oben {
  flex-direction: column;
  align-items: flex-start;
}

.masthead-brand-rechts {
  flex-direction: row-reverse;
}

.masthead-logo-wrap {
  flex: 0 0 auto;
}

.masthead-logo-badge {
  width: var(--masthead-logo-badge-size, 138px);
  height: var(--masthead-logo-badge-size, 138px);
  display: grid;
  place-items: center;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 44px rgba(4, 18, 32, 0.28);
  animation: mastheadHeartbeat 2.8s ease-in-out infinite;
}

.masthead-copy h1 {
  margin: 0;
}

.masthead-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.masthead-copy .brand-mark-lower {
  color: var(--header-text);
}

.masthead-copy .brand-mark-upper {
  color: color-mix(in srgb, var(--primary) 76%, white 24%);
  letter-spacing: 0.045em;
  margin-left: 0.08em;
}

.masthead-copy p {
  margin: 10px 0 0;
  opacity: 1;
  color: color-mix(in srgb, var(--header-text) 78%, transparent 22%);
  font-size: 0.98rem;
  max-width: 38rem;
}

.masthead-eyebrow {
  min-height: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--header-text) 62%, transparent 38%);
}

.masthead-logo {
  width: var(--masthead-logo-size, 108px);
  height: var(--masthead-logo-size, 108px);
  object-fit: contain;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 12px;
  filter: drop-shadow(0 16px 24px rgba(4, 18, 32, 0.16));
}

@keyframes mastheadHeartbeat {
  0%,
  48%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 20px 44px rgba(4, 18, 32, 0.28);
  }
  53% {
    transform: scale(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 26px 52px rgba(4, 18, 32, 0.32);
  }
  58% {
    transform: scale(0.99);
  }
  64% {
    transform: scale(1.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 28px 56px rgba(4, 18, 32, 0.34);
  }
}

.masthead-signature {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: color-mix(in srgb, var(--header-text) 86%, transparent 14%);
}

.brand-signature-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.brand-signature-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.20);
}

.brand-signature-text {
  font-size: 0.82rem;
}

.masthead-aside {
  flex: 0 0 auto;
}

.masthead-aside-card {
  min-width: 190px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: color-mix(in srgb, var(--header-text) 82%, transparent 18%);
}

.masthead-aside-card strong {
  color: var(--header-text);
  font-size: 1rem;
}

.masthead-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.masthead-user-actions .btn {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--header-text);
  border-color: rgba(255, 255, 255, 0.14);
}

.masthead-user-actions .btn:hover {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(255, 255, 255, 0.18) 100%);
  border-color: rgba(18, 61, 99, 0.24);
  color: var(--header-text);
}

.masthead-user-actions .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.masthead-user-meta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.masthead-user-meta div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.masthead-user-meta span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--header-text) 56%, transparent 44%);
}

.masthead-user-meta strong {
  font-size: 0.92rem;
  color: var(--header-text);
}

.masthead-aside-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--header-text) 56%, transparent 44%);
}

.site-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 99, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: var(--primary-strong);
}

.site-marquee-header {
  margin: -2px 0 14px;
}

.site-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  min-width: 100%;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 600;
  animation: siteMarqueeMove 22s linear infinite;
}

.site-marquee-track span {
  display: inline-flex;
  align-items: center;
}

.site-marquee-info {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.site-marquee-warn {
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(202, 138, 4, 0.18);
  color: #8a5a00;
}

.site-marquee-danger {
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(180, 35, 24, 0.18);
  color: #8f1d14;
}

.maintenance-notice {
  margin-top: 14px;
}

@keyframes siteMarqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.panel {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.module-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 0;
  justify-content: center;
}

.module-bar-sticky {
  position: sticky;
  top: 12px;
  z-index: 6;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 252, 0.90) 100%);
  border: 1px solid rgba(18, 61, 99, 0.10);
  box-shadow: 0 14px 30px rgba(10, 49, 79, 0.10);
  backdrop-filter: blur(20px);
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  justify-content: center;
  animation: none;
}

.module-bar-sticky::-webkit-scrollbar {
  display: none;
}

.mobile-module-bar,
.mobile-module-sheet-backdrop {
  display: none;
}

.global-search-shell {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
}

.global-search-field {
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(19, 77, 123, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(239, 245, 250, 0.98) 0%, rgba(228, 237, 245, 0.95) 100%);
  border: 1px solid rgba(18, 61, 99, 0.14);
  box-shadow:
    0 12px 28px rgba(18, 61, 99, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.global-search-field span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 61, 99, 0.74);
}

.global-search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(18, 61, 99, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(251, 253, 255, 0.96);
  color: #122638;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.global-search-field input:focus {
  outline: none;
  border-color: rgba(18, 61, 99, 0.34);
  background: rgba(255, 255, 255, 0.99);
  box-shadow:
    0 0 0 4px rgba(18, 61, 99, 0.10),
    0 12px 28px rgba(18, 61, 99, 0.08);
}

.global-search-results {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(236, 243, 249, 0.94) 100%);
  border: 1px solid rgba(18, 61, 99, 0.10);
  box-shadow: 0 20px 42px rgba(18, 61, 99, 0.09);
}

.global-search-result {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 99, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 253, 0.96) 100%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.global-search-result strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: #163553;
}

.global-search-result span {
  font-size: 0.84rem;
  color: #607387;
}

.global-search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 61, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(238, 245, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(18, 61, 99, 0.12);
}

.home-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-overview {
  display: grid;
  gap: 18px;
}

.module-overview-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.module-tile {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(11, 66, 110, 0.10);
  border-radius: 24px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 253, 0.90) 100%);
  box-shadow: 0 18px 40px rgba(10, 49, 79, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.module-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 61, 99, 0.22);
  box-shadow: 0 24px 46px rgba(10, 49, 79, 0.12);
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 255, 0.96) 100%);
}

.module-tile-label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
}

.module-tile-description {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22rem;
}

.module-tile-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 66, 110, 0.08);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  width: fit-content;
}

.module-tile-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.module-tile-blue {
  background:
    radial-gradient(circle at top right, rgba(11, 66, 110, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-orange {
  background:
    radial-gradient(circle at top right, rgba(35, 75, 53, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(244, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-teal {
  background:
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(242, 252, 250, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-gold {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-slate {
  background:
    radial-gradient(circle at top right, rgba(71, 85, 105, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-rose {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 241, 242, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.module-tile-indigo {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(238, 242, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.settings-tile-roles {
  border-color: rgba(79, 70, 229, 0.18);
}

.settings-tile-users {
  border-color: rgba(37, 99, 235, 0.18);
}

.settings-tile-areas {
  border-color: rgba(13, 148, 136, 0.18);
}

.settings-tile-institutions {
  border-color: rgba(71, 85, 105, 0.20);
}

.settings-tile-statuses {
  border-color: rgba(217, 119, 6, 0.20);
}

.settings-tile-fields {
  border-color: rgba(35, 75, 53, 0.20);
}

.settings-tile-attachments {
  border-color: rgba(100, 116, 139, 0.18);
}

.settings-tile-notifications {
  border-color: rgba(225, 29, 72, 0.18);
}

.settings-tile-emails {
  border-color: rgba(8, 145, 178, 0.18);
}

.settings-tile-templates {
  border-color: rgba(5, 150, 105, 0.18);
}

.settings-tile-branding {
  border-color: rgba(124, 58, 237, 0.18);
}

.settings-tile-smtp {
  border-color: rgba(190, 24, 93, 0.18);
}

.module-pill {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 15px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  position: relative;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.module-pill:hover {
  border-color: rgba(18, 61, 99, 0.22);
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.14) 0%, rgba(255, 255, 255, 0.86) 100%);
  color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 61, 99, 0.10);
}

.module-pill.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.24) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(18, 61, 99, 0.30);
  color: var(--accent-strong);
  box-shadow:
    0 12px 28px rgba(18, 61, 99, 0.16),
    inset 0 -2px 0 var(--accent);
}

.module-pill.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 61, 99, 0.92) 0%, rgba(11, 66, 110, 0.62) 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  animation: none;
}

.topbar h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.subtle {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.content {
  padding: 0 16px 18px;
  animation: none;
}

.settings-nav {
  position: sticky;
  top: 14px;
  z-index: 5;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(18, 61, 99, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(220, 232, 242, 0.98) 0%, rgba(203, 219, 232, 0.96) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

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

.settings-nav-label {
  color: rgba(18, 61, 99, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-nav-current {
  margin-top: 4px;
  color: #143350;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-nav-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.settings-nav-copy strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #203449;
}

.settings-select-wrap {
  position: relative;
}

.settings-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 61, 99, 0.20);
  border-radius: 14px;
  padding: 0 42px 0 14px;
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.99) 0%, rgba(238, 245, 250, 0.97) 100%);
  color: #162a3d;
  font-size: 0.84rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.settings-select:focus {
  outline: none;
  border-color: var(--focus-line);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.settings-select:hover {
  border-color: var(--hover-line);
}

.settings-select-wrap:focus-within::after {
  border-right-color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.settings-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(11, 66, 110, 0.78);
  border-bottom: 2px solid rgba(11, 66, 110, 0.78);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.settings-action-bar {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 66, 110, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 252, 0.94) 100%);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.settings-action-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(520px, 100%);
  padding: 34px;
  overflow: hidden;
  border-radius: 26px;
}

.login-card .brand {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.login-card .brand h1 {
  margin: 0;
}

.login-card .brand .brand-mark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.login-card .brand .brand-mark-lower {
  color: var(--text);
}

.login-card .brand .brand-mark-upper {
  color: color-mix(in srgb, var(--primary) 76%, white 24%);
  letter-spacing: 0.045em;
  margin-left: 0.08em;
}

.login-card .brand p {
  margin: 12px 0 0;
  max-width: 24rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
}

.login-card::before {
  content: "";
  display: block;
  height: 1px;
  margin: -34px -34px 24px;
  background: rgba(15, 23, 42, 0.08);
}

.login-logo {
  width: var(--login-logo-size, 132px);
  height: var(--login-logo-size, 132px);
  object-fit: contain;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}

.brand-login-left {
  justify-items: start;
  align-items: flex-start;
  text-align: left;
}

.brand-login-center {
  justify-items: center;
  align-items: center;
  text-align: center;
}

.brand-login-right {
  justify-items: end;
  align-items: flex-end;
  text-align: right;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

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

.field {
  display: grid;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 16px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.field label {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.wide-textarea:hover {
  border-color: var(--hover-line);
  background: var(--hover-surface);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.wide-textarea:focus {
  outline: none;
  border-color: var(--focus-line);
  box-shadow: 0 0 0 4px var(--focus-ring);
  background: rgba(255, 255, 255, 0.94);
}

.field:focus-within {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.08) 0%, rgba(255, 255, 255, 0.32) 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 61, 99, 0.08);
}

.field:focus-within label {
  color: var(--accent-strong);
}

.wide-textarea,
.readonly-box {
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.readonly-box {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.task-assignee-select {
  min-height: 140px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.branding-upload-actions {
  margin-top: 10px;
}

.branding-logo-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.branding-logo-preview img {
  max-width: min(220px, 100%);
  max-height: 120px;
  display: block;
  object-fit: contain;
}

.btn {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-weight: 500;
  font-size: 0.83rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 61, 99, 0.24);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 12px 26px rgba(18, 61, 99, 0.10);
  color: var(--accent-strong);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.18);
}

.notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
}

.notice.error {
  background: #fff3f2;
  color: var(--danger);
  border: 1px solid #f8d3cf;
}

.notice.success {
  background: #eefbf7;
  color: var(--accent-strong);
  border: 1px solid #ccefe7;
}

.roles-layout {
  display: grid;
  gap: 24px;
}

.role-picker-panel {
  border-color: rgba(18, 61, 99, 0.18);
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 245, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.role-picker-panel h3 {
  color: var(--primary);
}

.role-select-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(11, 66, 110, 0.10) 0%, rgba(18, 61, 99, 0.12) 100%);
  pointer-events: none;
}

.role-select {
  position: relative;
  z-index: 1;
  border-color: rgba(18, 61, 99, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 239, 0.96) 100%);
}

.role-select:focus {
  border-color: rgba(18, 61, 99, 0.42);
  box-shadow: 0 0 0 4px rgba(18, 61, 99, 0.12);
}

.smtp-test-panel {
  border-color: rgba(11, 66, 110, 0.18);
  background:
    radial-gradient(circle at top right, rgba(11, 66, 110, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(243, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%);
}

.requests-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.request-list {
  display: grid;
  gap: 10px;
}

.requests-filter-panel {
  background:
    radial-gradient(circle at top right, rgba(11, 66, 110, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.90) 100%);
}

.request-filter-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(140px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(18, 61, 99, 0.08);
}

.request-filter-field {
  display: grid;
  gap: 6px;
}

.request-filter-field span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.request-filter-field select,
.request-filter-field input {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(11, 66, 110, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.request-filter-field select {
  font-weight: 600;
}

.request-filter-field input::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.request-filter-field select:hover,
.request-filter-field input:hover {
  border-color: rgba(11, 66, 110, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.request-filter-field select:focus,
.request-filter-field input:focus {
  border-color: rgba(18, 61, 99, 0.34);
  box-shadow: 0 0 0 4px rgba(18, 61, 99, 0.10);
}

.request-filter-row + .actions {
  margin-top: 10px;
}

.request-primary-actions {
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 4px;
}

.request-primary-actions-wrap {
  flex-wrap: wrap;
}

.request-primary-actions-compact {
  gap: 12px;
  padding-top: 16px;
  flex-wrap: wrap;
}

.request-action-button {
  min-width: 198px;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 20px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 24px rgba(18, 61, 99, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.request-primary-actions-compact .request-action-button {
  min-width: 170px;
}

.request-action-button.btn-primary {
  background:
    linear-gradient(135deg, rgba(18, 61, 99, 0.98) 0%, rgba(28, 86, 135, 0.98) 100%);
  border-color: rgba(18, 61, 99, 0.30);
}

.request-action-button.btn-primary:hover {
  background:
    linear-gradient(135deg, rgba(16, 52, 85, 1) 0%, rgba(24, 75, 118, 1) 100%);
  transform: translateY(-1px);
}

.request-action-button-secondary {
  color: #123d63;
  border-color: rgba(18, 61, 99, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 252, 0.96) 100%);
}

.request-action-button-secondary:hover {
  color: #0f3454;
  border-color: rgba(18, 61, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(232, 241, 249, 0.98) 100%);
  transform: translateY(-1px);
}

.request-next-step-card .section-head {
  margin-bottom: 0;
}

.request-multi-select {
  min-height: 112px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(11, 66, 110, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.request-multi-select option {
  padding: 8px 10px;
}

.request-contact-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 66, 110, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.trash-item {
  display: grid;
  gap: 10px;
}

.trash-item .actions {
  justify-content: flex-end;
}

.reports-filter-panel {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 246, 248, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.requests-filter-panel,
.reports-filter-panel,
.institution-type-filter-panel {
  border-color: rgba(18, 61, 99, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(15, 23, 42, 0.04);
}

.reports-filter-grid {
  align-items: end;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.reports-kpi-grid {
  margin-bottom: 16px;
}

.reports-grid-bottom {
  margin-top: 16px;
}

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

.report-table-list {
  gap: 10px;
}

.report-chart-card {
  min-height: 100%;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.94) 100%);
}

.report-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  border-radius: 20px;
}

.report-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(18, 61, 99, 0.16);
}

.report-kpi-card .metric-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.report-kpi-card.tone-info::before {
  background: linear-gradient(180deg, #123d63 0%, #2563eb 100%);
}

.report-kpi-card.tone-good::before {
  background: linear-gradient(180deg, #0f766e 0%, #14b8a6 100%);
}

.report-kpi-card.tone-warn::before {
  background: linear-gradient(180deg, #ca8a04 0%, #eab308 100%);
}

.report-kpi-card.tone-danger::before {
  background: linear-gradient(180deg, #b42318 0%, #e11d48 100%);
}

.report-kpi-card.tone-muted::before,
.report-kpi-card.tone-neutral::before {
  background: linear-gradient(180deg, #64748b 0%, #94a3b8 100%);
}

.report-drilldown-card {
  appearance: none;
  border: 1px solid rgba(18, 61, 99, 0.10);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.96) 100%);
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.report-drilldown-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.report-drilldown-card .report-drilldown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.report-drilldown-card .report-drilldown-value {
  font-size: 1.46rem;
  line-height: 1;
  color: var(--primary-strong);
}

.report-drilldown-card .report-drilldown-meta {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #516678;
}

.report-drilldown-card.tone-info {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.report-drilldown-card.tone-good {
  border-color: rgba(15, 118, 110, 0.16);
  background: linear-gradient(180deg, rgba(239, 253, 250, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.report-drilldown-card.tone-warn {
  border-color: rgba(202, 138, 4, 0.18);
  background: linear-gradient(180deg, rgba(254, 252, 232, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.report-drilldown-card.tone-danger {
  border-color: rgba(225, 29, 72, 0.18);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.report-drilldown-card.tone-muted {
  border-color: rgba(100, 116, 139, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.place-table-head {
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 0.9fr) minmax(220px, 1.1fr);
}

.module-tile-emerald {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(239, 253, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.place-request-row .request-item-top,
.place-request-row .request-item-meta,
.place-request-row .request-item-note {
  display: grid;
  gap: 4px;
  align-content: start;
}

.place-request-table-head {
  align-items: center;
}

.place-request-table-head span {
  display: block;
  white-space: normal;
  line-height: 1.25;
  font-size: clamp(0.66rem, 0.6rem + 0.15vw, 0.74rem);
  overflow-wrap: anywhere;
}

.place-request-row .request-item-top strong {
  font-size: clamp(0.8rem, 0.74rem + 0.16vw, 0.86rem);
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 600;
  color: #17324d;
  overflow-wrap: anywhere;
}

.place-request-row .request-item-top span,
.place-request-row .request-item-meta span,
.place-request-row .request-item-note span {
  font-size: clamp(0.76rem, 0.72rem + 0.14vw, 0.84rem);
  line-height: 1.4;
  color: #5f7285;
  overflow-wrap: anywhere;
}

.place-request-decision strong {
  font-size: clamp(0.82rem, 0.78rem + 0.16vw, 0.9rem);
  line-height: 1.35;
  color: #17324d;
  overflow-wrap: anywhere;
}

.place-request-decision .status-chip {
  width: fit-content;
}

.report-bars {
  display: grid;
  gap: 12px;
}

.report-bar-row {
  display: grid;
  gap: 8px;
}

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

.report-bar-head strong {
  font-size: 0.92rem;
  color: var(--primary-strong);
}

.report-bar-head span {
  font-size: 0.82rem;
  color: var(--muted);
}

.report-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 61, 99, 0.10);
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #123d63 0%, #2563eb 100%);
}

.report-bar-secondary {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.report-bar-tertiary {
  background: linear-gradient(90deg, #ca8a04 0%, #eab308 100%);
}

.report-donut-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}

.report-donut {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
}

.report-donut-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.report-donut-track,
.report-donut-segment {
  fill: none;
  stroke-width: 18;
  stroke-linecap: butt;
}

.report-donut-track {
  stroke: rgba(18, 61, 99, 0.10);
}

.report-donut-segment {
  transition: stroke-dasharray 180ms ease;
}

.report-donut-center {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 22px rgba(18, 61, 99, 0.10);
  position: absolute;
  inset: 0;
  margin: auto;
}

.report-donut-center strong {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary-strong);
}

.report-donut-center span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-legend {
  display: grid;
  gap: 10px;
}

.report-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
}

.report-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

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

.reports-config-item {
  align-items: start;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 99, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.95) 100%);
}

.reports-config-item span {
  display: grid;
  gap: 4px;
}

.reports-config-item strong {
  color: var(--primary-strong);
}

.reports-config-item small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.request-contact-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.request-contact-preview-list {
  display: grid;
  gap: 10px;
}

.request-contact-preview-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 66, 110, 0.08);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.request-contact-preview-item.active {
  border-color: rgba(18, 61, 99, 0.28);
  background: linear-gradient(180deg, rgba(244, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 12px 26px rgba(18, 61, 99, 0.12);
}

.request-contact-selectable {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.request-contact-selectable:hover {
  border-color: rgba(18, 61, 99, 0.24);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(18, 61, 99, 0.10);
  transform: translateY(-1px);
}

.request-contact-preview-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-contact-preview-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-shell {
  display: grid;
  gap: 14px;
}

.dashboard-focus,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-focus-compact {
  grid-template-columns: 1fr;
}

.dashboard-grid-compact-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.focus-card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 249, 252, 0.82) 100%);
  box-shadow: 0 18px 44px rgba(10, 49, 79, 0.08);
}

.focus-primary {
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(11, 66, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(242, 247, 252, 0.99) 0%, rgba(248, 250, 253, 0.97) 100%);
  border-color: rgba(18, 61, 99, 0.16);
  justify-items: center;
  text-align: center;
}

.focus-kicker {
  color: color-mix(in srgb, var(--primary) 72%, white 28%);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.focus-card h3 {
  margin: 10px 0 6px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--primary-strong);
  max-width: 34rem;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 0.96rem;
  line-height: 1.55;
}

.metric-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 66, 110, 0.08);
}

.metric-inline:last-child {
  border-bottom: 0;
}

.metric-inline strong {
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-list-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(11, 66, 110, 0.10);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 61, 99, 0.22);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 18px 36px rgba(18, 61, 99, 0.10);
}

.request-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.92) 100%);
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.request-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(11, 66, 110, 0.12);
}

.request-item:hover {
  border-color: rgba(18, 61, 99, 0.24);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 10px 20px rgba(18, 61, 99, 0.08);
  transform: translateY(-1px);
}

.table-row-trigger:hover::after {
  color: rgba(18, 61, 99, 0.88);
}

.request-item.active {
  border-color: rgba(18, 61, 99, 0.30);
  box-shadow: 0 18px 38px rgba(18, 61, 99, 0.14);
  background:
    linear-gradient(180deg, rgba(242, 247, 251, 0.99) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.request-item.active::before {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.92) 0%, rgba(11, 66, 110, 0.72) 100%);
}

.request-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-item-top strong {
  font-size: 0.82rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.request-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.request-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(11, 66, 110, 0.24);
}

.request-item-note {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.request-item-meta-bottom {
  padding-top: 4px;
  border-top: 1px solid rgba(11, 66, 110, 0.06);
}

.accordion-trigger,
.table-row-trigger {
  cursor: pointer;
  padding-right: 76px;
}

.table-row-trigger::after {
  content: "Öffnen";
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 66, 110, 0.42);
}

.table-row-trigger.active::after {
  color: rgba(18, 61, 99, 0.88);
}

.request-detail-hero {
  border-color: rgba(18, 61, 99, 0.16);
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(244, 248, 252, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
}

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

.request-hero-grid-compact .hero-stat strong {
  font-size: 0.88rem;
}

.hero-stat {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 61, 99, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.hero-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat strong {
  font-size: 0.84rem;
  line-height: 1.4;
}

.hero-stat-tone {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

.request-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 66, 110, 0.08);
  color: var(--text);
  font-size: 0.8rem;
}

.focus-inline-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.focus-inline-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 61, 99, 0.14);
  font-size: 0.8rem;
  color: var(--primary-strong);
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(10, 49, 79, 0.06);
}

.metric-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.metric-card-compact {
  padding: 10px 12px;
  border-radius: 14px;
}

.metric-card-compact .metric-value {
  font-size: 1rem;
  margin-top: 2px;
}

.calendar-shell {
  display: grid;
  gap: 14px;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(18, 61, 99, 0.10);
}

.calendar-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-toolbar-group select {
  min-width: 170px;
}

.calendar-toolbar-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.calendar-toolbar-title strong {
  font-size: 0.98rem;
  color: var(--primary-strong);
}

.calendar-toolbar-title span {
  font-size: 0.76rem;
  color: var(--muted);
}

.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-day-card {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 61, 99, 0.10);
}

.calendar-day-card.is-today,
.calendar-month-cell.is-today {
  border-color: rgba(18, 61, 99, 0.26);
  box-shadow: 0 10px 22px rgba(10, 49, 79, 0.08);
}

.calendar-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-head strong,
.calendar-month-date {
  color: var(--primary-strong);
  font-size: 0.88rem;
}

.calendar-day-head span {
  font-size: 0.74rem;
  color: var(--muted);
}

.calendar-day-events,
.calendar-month-events {
  display: grid;
  align-content: start;
  gap: 8px;
}

.calendar-event-pill,
.calendar-mini-event {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid rgba(18, 61, 99, 0.10);
  background: rgba(244, 248, 252, 0.92);
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.calendar-event-pill.is-static,
.calendar-mini-event.is-static {
  cursor: default;
}

.calendar-event-pill:hover,
.calendar-mini-event:hover {
  transform: translateY(-1px);
}

.calendar-event-pill.is-static:hover,
.calendar-mini-event.is-static:hover {
  transform: none;
}

.calendar-event-pill strong,
.calendar-mini-event strong {
  font-size: 0.74rem;
  color: var(--primary-strong);
}

.calendar-event-pill span,
.calendar-mini-event span {
  font-size: 0.8rem;
  font-weight: 600;
}

.calendar-event-pill em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}

.calendar-event-pill.tone-good,
.calendar-mini-event.tone-good {
  background: rgba(232, 246, 239, 0.92);
  border-color: rgba(49, 112, 73, 0.18);
}

.calendar-event-pill.tone-warn,
.calendar-mini-event.tone-warn {
  background: rgba(255, 245, 225, 0.94);
  border-color: rgba(170, 128, 21, 0.20);
}

.calendar-event-pill.tone-danger,
.calendar-mini-event.tone-danger {
  background: rgba(255, 237, 235, 0.94);
  border-color: rgba(180, 35, 24, 0.18);
}

.calendar-event-pill.tone-holiday,
.calendar-mini-event.tone-holiday,
.status-chip.tone-holiday,
.hero-stat-tone.tone-holiday {
  background: rgba(227, 240, 255, 0.95);
  border-color: rgba(40, 86, 153, 0.20);
  color: #285699;
}

.calendar-empty-slot,
.calendar-more-events {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 2px;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-month-head {
  padding: 0 2px 1px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-month-cell {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 108px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 61, 99, 0.10);
}

.calendar-month-date {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.calendar-month-cell.is-current {
  background: rgba(255, 255, 255, 0.97);
}

.calendar-month-events {
  gap: 4px;
}

.calendar-mini-event {
  gap: 1px;
  padding: 4px 5px;
  border-radius: 8px;
}

.calendar-mini-event span {
  font-size: 0.62rem;
  font-weight: 600;
}

.calendar-mini-event strong {
  font-size: 0.64rem;
  line-height: 1.2;
}

.calendar-more-events {
  font-size: 0.62rem;
  padding: 1px 0;
}

.calendar-month-cell.is-outside {
  background: rgba(241, 244, 248, 0.84);
  border-color: rgba(18, 61, 99, 0.06);
}

.calendar-month-cell.is-outside .calendar-month-date {
  color: #7f8da0;
}

.calendar-month-cell.is-outside .calendar-mini-event {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(18, 61, 99, 0.06);
}

.calendar-month-cell.is-outside .calendar-mini-event span,
.calendar-month-cell.is-outside .calendar-mini-event strong,
.calendar-month-cell.is-outside .calendar-more-events {
  color: #7f8da0;
}

@media (max-width: 1180px) {
  .calendar-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .calendar-toolbar {
    padding: 10px 12px;
  }

  .calendar-toolbar-group,
  .calendar-toolbar-title {
    width: 100%;
    justify-content: center;
  }

  .calendar-toolbar-group select {
    min-width: 0;
    width: 100%;
  }

  .calendar-week-grid,
  .calendar-month-grid {
    grid-template-columns: 1fr;
  }

  .calendar-month-head {
    display: none;
  }

  .calendar-day-card,
  .calendar-month-cell {
    min-height: 0;
  }
}

.requests-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.module-stack-shell {
  display: grid;
  gap: 12px;
}

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

.list-table-head {
  display: none;
}

.table-list {
  border: 1px solid rgba(11, 66, 110, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 254, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(15, 23, 42, 0.03);
}

.table-list .request-item {
  border: 0;
  border-bottom: 1px solid rgba(11, 66, 110, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.table-list .request-item:last-child {
  border-bottom: 0;
}

.table-list .request-item:hover {
  transform: none;
  box-shadow: none;
}

.request-item-primary {
  min-width: 0;
}

.request-item-column {
  min-width: 0;
}

.request-item-supporting {
  opacity: 0.92;
}

.accordion-row {
  display: grid;
  gap: 10px;
}

.accordion-panel {
  display: grid;
  gap: 14px;
  padding: 0 4px 4px;
  animation: none;
}

.editor {
  display: grid;
  gap: 18px;
}

@media (min-width: 920px) {
.list-table-head {
    display: grid;
    padding: 0 12px 6px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .task-table-head,
  .calendar-table-head,
  .request-table-head,
  .institution-table-head,
  .users-table-head,
  .fields-table-head,
  .emails-table-head {
    grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
    column-gap: 16px;
  }

  .place-request-table-head {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 1fr);
    column-gap: 14px;
  }

  .status-table-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.9fr);
    column-gap: 16px;
  }

  .accordion-trigger,
  .table-row-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
    grid-template-areas:
      "title meta note"
      "title bottom note";
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
  }

  .place-request-row.table-row-trigger {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 1fr);
    grid-template-areas: "title meta note";
    align-items: start;
    padding-top: 16px;
    padding-bottom: 16px;
    column-gap: 14px;
  }

  .accordion-trigger .request-item-top,
  .table-row-trigger .request-item-top {
    grid-area: title;
    margin: 0;
    padding-right: 64px;
  }

  .accordion-trigger .request-item-meta,
  .table-row-trigger .request-item-meta {
    grid-area: meta;
  }

  .accordion-trigger .request-item-meta-bottom,
  .table-row-trigger .request-item-meta-bottom {
    grid-area: bottom;
    padding-top: 0;
    border-top: 0;
  }

  .place-request-row.table-row-trigger .request-item-top {
    padding-right: 12px;
  }

  .place-request-row.table-row-trigger .request-item-note {
    min-height: 0;
    display: grid;
    align-items: start;
    border-left: 1px solid rgba(11, 66, 110, 0.08);
    padding-left: 14px;
    padding-top: 2px;
    -webkit-line-clamp: unset;
  }

  .place-request-row.table-row-trigger .request-item-meta {
    padding-top: 2px;
  }

  .accordion-trigger .request-item-note,
  .table-row-trigger .request-item-note {
    grid-area: note;
    min-height: 42px;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(11, 66, 110, 0.08);
    padding-left: 14px;
    -webkit-line-clamp: 3;
  }

  .users-row-trigger,
  .institution-row-trigger,
  .fields-row-trigger,
  .emails-row-trigger {
    grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
  }

  .status-row-trigger {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.9fr);
  }

  .status-row-trigger .request-item-note {
    display: flex;
    align-items: center;
  }

  .institution-table-head,
  .institution-three-col-head,
  .institution-row-trigger,
  .institution-contact-row-trigger,
  .institution-three-col-row {
    grid-template-columns: minmax(180px, 1.15fr) minmax(140px, 0.8fr) minmax(180px, 1fr);
    column-gap: 12px;
  }
}

.settings-layout {
  display: grid;
  gap: 16px;
}

.settings-summary-card {
  background:
    radial-gradient(circle at top right, rgba(54, 110, 71, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(252, 250, 244, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(133, 108, 54, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(15, 23, 42, 0.04);
}

.settings-content-shell {
  padding: 14px 16px;
  border: 1px solid rgba(126, 144, 161, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 245, 214, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(251, 247, 238, 0.98) 0%, rgba(245, 240, 232, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 30px rgba(15, 23, 42, 0.05);
}

.settings-chooser-shell {
  padding-top: 18px;
}

.settings-content-shell > .editor,
.settings-content-shell > .module-shell,
.settings-content-shell > .stack-list {
  background: transparent;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.institution-contact-add-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 66, 110, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 247, 255, 0.92) 100%);
}

.institution-type-filter-panel {
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.institution-contact-list {
  padding-top: 4px;
  border-top: 1px solid rgba(11, 66, 110, 0.08);
}

.institution-contact-list-shell {
  display: block;
}

.institution-contact-list-shell-scroll {
  max-height: clamp(280px, 42dvh, 420px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.institution-contact-table-list {
  min-height: 0;
}

.institution-three-col-head,
.institution-contact-table-head {
  grid-template-columns: minmax(180px, 1.15fr) minmax(140px, 0.8fr) minmax(180px, 1fr);
  column-gap: 12px;
}

.institution-contact-table-head {
  font-size: 0.68rem;
}

.institution-three-col-row,
.institution-contact-table-list .request-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(140px, 0.8fr) minmax(180px, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.institution-contact-table-list .request-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.institution-contact-table-list .request-item-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.institution-contact-table-list .request-item-meta,
.institution-contact-table-list .request-item-note {
  min-width: 0;
  margin: 0;
  font-size: 0.82rem;
}

.institution-contact-table-list .request-item-meta span,
.institution-contact-table-list .request-item-note span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.institution-contact-table-list .request-item-note {
  display: grid;
  gap: 2px;
}

.contact-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.contact-status-dot-active {
  background: #16803c;
}

.contact-status-dot-inactive {
  background: #c0392b;
}

.institution-contact-card {
  border-color: rgba(11, 66, 110, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 251, 255, 0.84) 100%);
}

.stack-list > .editor-section,
.stack-list > .editor-section.compact {
  margin: 0;
}

.editor-section {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(18px);
}

.editor-section > .subtle:first-of-type {
  margin-top: -2px;
  margin-bottom: 10px;
}

.editor-section h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

@media (max-width: 900px) {
  .institution-contact-add-block {
    align-items: stretch;
    flex-direction: column;
  }
}

.section-block {
  padding-top: 12px;
}

.section-block-tight {
  padding: 12px 14px;
}

.section-lead {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(11, 66, 110, 0.08);
}

.section-lead h3 {
  margin: 0;
}

.section-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-lead-eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-section.compact {
  padding: 14px 16px;
}

.editor-section.compact .field,
.editor-section.compact .actions {
  align-self: end;
}

.section-head,
.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 8px;
}

.section-head > div:first-child {
  min-width: 0;
}

.section-head .actions {
  justify-content: flex-end;
}

.status-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.tone-danger {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff2f0;
  color: var(--danger);
}

.tone-warn {
  border-color: rgba(245, 158, 11, 0.18);
  background: #fff8eb;
  color: #b45309;
}

.tone-good {
  border-color: rgba(16, 185, 129, 0.16);
  background: #effcf6;
  color: #047857;
}

.tone-muted,
.tone-low {
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.tone-medium {
  background: #fff8eb;
  color: #b45309;
}

.tone-high {
  background: #fff2f0;
  color: var(--danger);
}

.hero-strip {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(17, 24, 39, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(248, 250, 252, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  animation: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.segment {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(11, 66, 110, 0.10);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 600;
}

.segment:hover {
  border-color: var(--hover-line);
  background: rgba(255, 255, 255, 0.92);
}

.segment.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.16) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(18, 61, 99, 0.24);
  color: var(--accent-strong);
  box-shadow: inset 0 -2px 0 rgba(18, 61, 99, 0.86);
}

.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2px 0 8px;
}

.traffic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.segment.segment-all.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(234, 242, 250, 0.98) 100%);
  border-color: rgba(18, 61, 99, 0.26);
  color: #123d63;
  box-shadow: inset 0 -2px 0 rgba(18, 61, 99, 0.92);
}

.segment.segment-open.active {
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.18) 0%, rgba(237, 247, 241, 0.98) 100%);
  border-color: rgba(22, 101, 52, 0.24);
  color: #166534;
  box-shadow: inset 0 -2px 0 rgba(22, 101, 52, 0.92);
}

.segment.segment-done.active {
  background: linear-gradient(180deg, rgba(59, 84, 109, 0.16) 0%, rgba(241, 245, 249, 0.98) 100%);
  border-color: rgba(59, 84, 109, 0.24);
  color: #31485f;
  box-shadow: inset 0 -2px 0 rgba(49, 72, 95, 0.9);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 251, 254, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(15, 23, 42, 0.04);
}

.metric-label {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.module-stack-shell > .editor-section:first-child .section-head {
  margin-bottom: 10px;
}

.module-stack-shell > .editor-section:first-child .actions {
  margin-top: 2px;
}

.settings-content-shell .table-list,
.settings-content-shell .editor-section {
  background-color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1100px) {
  .reports-grid-drilldown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .reports-grid-drilldown {
    grid-template-columns: 1fr;
  }
}

.btn-quiet {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  background: transparent;
  border-color: rgba(11, 66, 110, 0.10);
  color: var(--primary);
}

.btn-quiet:hover {
  background: rgba(11, 66, 110, 0.06);
}

.page-footer {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--footer-bg) 82%, black 18%) 0%, var(--footer-bg) 100%);
  color: var(--footer-text);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-footer-brand strong {
  display: block;
  color: var(--footer-text);
  font-size: 0.95rem;
}

.page-footer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.22) 0%, rgba(18, 61, 99, 0.14) 100%);
  border: 1px solid rgba(18, 61, 99, 0.18);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--footer-text) 78%, transparent 22%);
}

.page-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

@keyframes pageFadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moduleBarReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-detail-grid {
  gap: 10px;
}

.user-detail-row {
  gap: 10px;
}

.mailbox-table-head {
  grid-template-columns: minmax(160px, 0.95fr) minmax(240px, 1.2fr) minmax(120px, 0.5fr);
}

.mailbox-segment-shell {
  display: flex;
  justify-content: center;
  margin: 6px 0 4px;
}

.mailbox-segment-shell .segmented-control {
  width: min(360px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  padding: 5px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(230, 238, 245, 0.96) 0%, rgba(245, 248, 252, 0.92) 100%);
  border: 1px solid rgba(18, 61, 99, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 20px rgba(15, 23, 42, 0.04);
}

.mailbox-segment-shell .segment {
  min-height: 38px;
  justify-content: center;
  text-align: center;
  background: transparent;
  border-color: transparent;
}

.mailbox-segment-shell .segment:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 61, 99, 0.08);
}

.mailbox-segment-shell .segment.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(18, 61, 99, 0.18);
  box-shadow:
    0 8px 16px rgba(18, 61, 99, 0.10),
    inset 0 -2px 0 rgba(18, 61, 99, 0.86);
}

.mailbox-actions {
  justify-content: center;
  margin-top: 14px;
  padding-top: 2px;
}

.btn-mailbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #c62828;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.22);
}

.nav-badge-inline {
  margin-left: 2px;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 61, 99, 0.12);
  border-radius: 18px;
  background: rgba(245, 248, 251, 0.92);
}

.detail-item span {
  font-size: 12px;
  color: #5a6a7b;
}

.detail-item strong {
  font-size: 14px;
  font-weight: 600;
  color: #102536;
}

.readonly-block {
  padding: 16px 18px;
  border: 1px solid rgba(18, 61, 99, 0.12);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.95);
  color: #13293c;
  line-height: 1.6;
}

.mailbox-readonly-body {
  min-height: 180px;
}

.modal-backdrop {
  position: fixed;
  inset: clamp(78px, 10vh, 118px) 14px clamp(58px, 8vh, 96px);
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(16px, 3.4vh, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.16) 100%);
  backdrop-filter: blur(6px);
}

.modal-backdrop::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.modal-backdrop-secondary {
  z-index: 46;
  background: rgba(8, 20, 34, 0.5);
}

.modal-card {
  width: min(1480px, calc(100vw - 28px));
  min-height: min(calc(100vh - 172px), 820px);
  height: auto;
  max-height: min(calc(100vh - 172px), 940px);
  border-radius: 30px;
  padding: 18px 18px 32px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.992) 0%, rgba(247, 250, 254, 0.978) 100%);
  border: 1px solid rgba(18, 61, 99, 0.11);
  box-shadow:
    0 46px 140px rgba(10, 49, 79, 0.28),
    0 16px 40px rgba(10, 49, 79, 0.10);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  scrollbar-gutter: stable both-edges;
}

.dialog-window {
  position: relative;
  outline: none;
  border-color: rgba(18, 61, 99, 0.12);
  box-shadow:
    0 52px 160px rgba(10, 49, 79, 0.30),
    0 18px 44px rgba(10, 49, 79, 0.10);
}

.dialog-window::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 61, 99, 0.16);
}

.dialog-window:focus-visible {
  box-shadow:
    0 0 0 4px rgba(18, 61, 99, 0.16),
    0 40px 120px rgba(10, 49, 79, 0.22),
    0 12px 30px rgba(10, 49, 79, 0.08);
}

.modal-card-wide {
  width: min(1520px, calc(100vw - 28px));
  padding: 16px 16px 40px;
}

.modal-card-mailbox {
  width: min(1540px, calc(100vw - 28px));
}

.modal-card-institution {
  width: min(1500px, calc(100vw - 28px));
}

.modal-card .section-head {
  position: sticky;
  top: -16px;
  z-index: 3;
  margin-bottom: 8px;
  gap: 10px;
  padding: 8px 2px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 251, 255, 0.96) 100%);
  border-bottom: 1px solid rgba(18, 61, 99, 0.08);
  backdrop-filter: blur(14px);
}

.dialog-window .section-head {
  padding-top: 14px;
  margin-bottom: 10px;
}

.modal-card h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--primary-strong);
}

.modal-card .subtle {
  font-size: 0.78rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--muted) 92%, white 8%);
}

.modal-card .section-head .actions {
  gap: 7px;
}

.modal-card .editor-section {
  padding: 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 61, 99, 0.05);
}

.modal-mode-hint {
  margin: 2px 0 12px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(11, 66, 110, 0.08);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.94) 100%);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.modal-mode-hint strong {
  color: var(--text);
}

.modal-mode-hint-locked {
  border-color: rgba(18, 61, 99, 0.16);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.95) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.modal-card .editor-section {
  display: grid;
  gap: 9px;
}

.modal-card .editor-section:not(.request-section) {
  position: relative;
  border-color: rgba(18, 61, 99, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 20px rgba(15, 23, 42, 0.03);
}

.modal-card .editor-section:not(.request-section)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(18, 61, 99, 0.16);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 1) {
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 1)::before {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.72) 0%, rgba(58, 103, 143, 0.40) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 2) {
  background:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(243, 251, 252, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 2)::before {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.70) 0%, rgba(45, 145, 167, 0.38) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 3) {
  background:
    radial-gradient(circle at top right, rgba(71, 85, 105, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.80) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n + 3)::before {
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.62) 0%, rgba(120, 134, 153, 0.34) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n) {
  background:
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(242, 252, 249, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .editor-section:not(.request-section):nth-of-type(4n)::before {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.68) 0%, rgba(58, 171, 160, 0.36) 100%);
}

.modal-card .editor-section > h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--primary-strong);
}

.modal-card .editor-section + .editor-section {
  margin-top: 7px;
}

.modal-card > :last-child {
  margin-bottom: clamp(60px, 10vh, 120px);
}

.modal-card::after {
  content: "";
  display: block;
  min-height: clamp(60px, 10vh, 120px);
  flex: 0 0 auto;
}

.modal-card .editor,
.modal-card .stack-list,
.modal-card .settings-layout {
  padding-bottom: clamp(28px, 6vh, 72px);
}

.modal-card .section-block-tight {
  padding: 10px 11px;
}

.modal-card .section-lead {
  margin-bottom: 8px;
  padding-bottom: 7px;
}

.modal-card .section-lead p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.modal-card .request-section {
  position: relative;
  border-color: rgba(18, 61, 99, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 20px rgba(15, 23, 42, 0.03);
}

.modal-card .request-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(18, 61, 99, 0.16);
}

.modal-card .request-section .section-lead {
  margin-left: 2px;
}

.modal-card .request-section-collapsible {
  padding: 0;
  overflow: hidden;
}

.modal-card .request-section-collapsible[open] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 28px rgba(15, 23, 42, 0.05);
}

.modal-card .request-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  cursor: pointer;
  list-style: none;
}

.modal-card .request-section-summary::-webkit-details-marker {
  display: none;
}

.modal-card .request-section-summary strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--primary-strong);
}

.modal-card .request-section-summary .subtle {
  margin-top: 3px;
  font-size: 0.77rem;
  line-height: 1.4;
}

.modal-card .request-section-summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(18, 61, 99, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(18, 61, 99, 0.74);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.modal-card .request-section-collapsible[open] .request-section-summary::after {
  content: "\2212";
}

.modal-card .request-section-body {
  padding: 0 14px 12px 18px;
}

.modal-card .request-section-body > .field:last-child,
.modal-card .request-section-body > .form-grid:last-child {
  margin-bottom: 0;
}

.modal-card .request-section .section-lead-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  background: rgba(18, 61, 99, 0.07);
  color: rgba(18, 61, 99, 0.78);
}

.modal-card .request-section-responsibility {
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-responsibility::before {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.76) 0%, rgba(58, 103, 143, 0.44) 100%);
}

.modal-card .request-section-responsibility .section-lead-eyebrow {
  background: rgba(18, 61, 99, 0.10);
  color: rgba(18, 61, 99, 0.84);
}

.modal-card .request-section-content {
  background:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(243, 251, 252, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-content::before {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.74) 0%, rgba(45, 145, 167, 0.42) 100%);
}

.modal-card .request-section-content .section-lead-eyebrow {
  background: rgba(14, 116, 144, 0.10);
  color: rgba(14, 116, 144, 0.84);
}

.modal-card .request-section-placement {
  background:
    radial-gradient(circle at top right, rgba(176, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-placement::before {
  background: linear-gradient(180deg, rgba(176, 122, 0, 0.76) 0%, rgba(217, 163, 48, 0.44) 100%);
}

.modal-card .request-section-placement .section-lead-eyebrow {
  background: rgba(176, 122, 0, 0.10);
  color: rgba(146, 98, 0, 0.86);
}

.modal-card .request-section-fields {
  background:
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(242, 252, 249, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-fields::before {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.74) 0%, rgba(58, 171, 160, 0.42) 100%);
}

.modal-card .request-section-fields .section-lead-eyebrow {
  background: rgba(13, 148, 136, 0.10);
  color: rgba(13, 118, 108, 0.84);
}

.modal-card .request-section-documents {
  background:
    radial-gradient(circle at top right, rgba(71, 85, 105, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-documents::before {
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.72) 0%, rgba(120, 134, 153, 0.40) 100%);
}

.modal-card .request-section-documents .section-lead-eyebrow {
  background: rgba(71, 85, 105, 0.10);
  color: rgba(71, 85, 105, 0.84);
}

.modal-card .request-section-communication {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(247, 244, 255, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-communication::before {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.72) 0%, rgba(153, 102, 242, 0.40) 100%);
}

.modal-card .request-section-communication .section-lead-eyebrow {
  background: rgba(124, 58, 237, 0.10);
  color: rgba(108, 42, 220, 0.84);
}

.modal-card .request-section-meta,
.modal-card .request-section-core {
  background:
    radial-gradient(circle at top right, rgba(18, 61, 99, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.76) 0%, rgba(255, 255, 255, 0.50) 100%);
}

.modal-card .request-section-meta::before,
.modal-card .request-section-core::before {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.50) 0%, rgba(18, 61, 99, 0.24) 100%);
}

.modal-card .form-grid {
  gap: 8px 10px;
  align-items: start;
}

.modal-card .field {
  padding: 0;
  gap: 5px;
  background: transparent;
  box-shadow: none;
}

.modal-card .field label {
  margin-bottom: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary-strong);
}

.modal-card .field:focus-within {
  background: transparent;
  box-shadow: none;
}

.modal-card .field input,
.modal-card .field select,
.modal-card .field textarea,
.modal-card .readonly-box,
.modal-card .detail-value {
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.modal-card .wide-textarea {
  min-height: 84px;
}

.password-strength {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 99, 0.08);
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.password-strength-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 61, 99, 0.12);
}

.password-strength-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7d8b99;
  transition: width 160ms ease, background-color 160ms ease;
}

.password-strength-copy {
  display: grid;
  gap: 3px;
}

.password-strength-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.password-strength-copy span {
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.password-strength-good .password-strength-bar span {
  background: #237a52;
}

.password-strength-warn .password-strength-bar span {
  background: #b98524;
}

.password-strength-danger .password-strength-bar span {
  background: #b24343;
}

.password-strength-neutral .password-strength-bar span {
  background: #7d8b99;
}

.modal-card .pill-row {
  gap: 8px;
}

.attachments-toolbar {
  display: grid;
  gap: 10px;
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 61, 99, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 253, 0.95) 100%);
}

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

.attachment-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-strong);
  overflow-wrap: anywhere;
}

.attachment-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-value {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(11, 66, 110, 0.08);
  color: var(--text);
  line-height: 1.45;
  font-size: 0.86rem;
}

.detail-value-multiline {
  min-height: 110px;
  align-items: flex-start;
  white-space: pre-wrap;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.check-item,
.area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.52);
}

.area-list {
  display: grid;
  gap: 8px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
}

.placeholder {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-size: 0.84rem;
}

.pill-toggle.active {
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.14) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(18, 61, 99, 0.22);
  box-shadow: inset 0 -2px 0 rgba(18, 61, 99, 0.82);
}

.pill-toggle:hover,
.pill-toggle:focus-within {
  border-color: var(--hover-line);
  background: rgba(255, 255, 255, 0.88);
}

.pill-toggle.active:hover,
.pill-toggle.active:focus-within {
  border-color: var(--focus-line);
  background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.pill-toggle input[type="checkbox"] {
  margin: 0;
}

.area-row strong,
.check-item span,
.pill-toggle {
  min-width: 0;
}

.area-row strong,
.check-item span {
  font-size: 0.92rem;
  font-weight: 500;
}

.area-row .actions {
  gap: 8px;
}

.field input[type="checkbox"],
.check-item input[type="checkbox"],
.check-inline input[type="checkbox"],
.check-inline input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.editor .form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor .form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-section .form-grid + .form-grid {
  margin-top: 0;
}

.editor-section .stack-list {
  margin-top: 0;
}

.editor-section .pill-row + .actions,
.editor-section .actions + .pill-row {
  margin-top: 10px;
}

.subtle + .pill-row,
.subtle + .area-list,
.subtle + .check-grid {
  margin-top: 10px;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.modal-card .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.modal-card .hero-stat {
  padding: 10px 11px;
  border-radius: 15px;
}

.modal-card .hero-stat span {
  font-size: 0.66rem;
  font-weight: 700;
}

.modal-card .hero-stat strong {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.wide-textarea {
  min-height: 96px;
}

.readonly-box {
  font-size: 0.84rem;
}

.history-list {
  display: grid;
  gap: 0.9rem;
}

.history-item {
  border: 1px solid rgba(209, 220, 231, 0.92);
  background: rgba(249, 251, 253, 0.96);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.history-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.history-item-head strong {
  font-size: 0.98rem;
  color: #17324d;
}

.history-item-head span,
.history-item-meta {
  color: #617487;
  font-size: 0.88rem;
}

.history-change-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.history-change-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 0.8rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(223, 231, 239, 0.9);
}

.history-change-row span {
  color: #5f7285;
  font-size: 0.86rem;
}

.history-change-row strong {
  color: #17324d;
  font-size: 0.91rem;
  font-weight: 600;
}

.status-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.placeholder {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.full-span {
  grid-column: 1 / -1;
}

.color-field {
  min-width: 0;
}

.color-input-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
}

.color-input-row input[type="color"] {
  min-height: 40px;
  padding: 4px;
  border-radius: 12px;
}

.nav-button:focus-visible,
.module-tile:focus-visible,
.btn:focus-visible,
.dashboard-list-item:focus-visible,
.request-item:focus-visible,
.segment:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
  border-color: var(--focus-line);
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 16px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    margin-bottom: 14px;
  }

  .nav-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-group::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .roles-layout {
    grid-template-columns: 1fr;
  }

  .requests-shell {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr 1fr;
  }

  .editor .form-grid.three-col {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-focus,
  .dashboard-grid,
  .dashboard-grid-tight,
  .request-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .module-bar-sticky {
    top: 8px;
    margin-bottom: 10px;
  }

  .masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 24px;
  }

  .masthead-aside {
    width: 100%;
  }

  .masthead-aside-card {
    min-width: 0;
    width: 100%;
  }

  .request-filter-row {
    grid-template-columns: 1fr;
  }

  .request-primary-actions {
    padding-inline: 0;
  }

  .request-action-button {
    width: 100%;
    min-width: 0;
  }

  .request-primary-actions-compact .request-action-button {
    min-width: 0;
  }

  .reports-grid,
  .reports-grid-drilldown {
    grid-template-columns: 1fr;
  }

  .report-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .modal-card-mailbox,
  .modal-card-institution,
  .modal-card-wide {
    width: min(100%, calc(100vw - 18px));
  }
}

@media (max-width: 640px) {
  .main {
    padding: 10px 10px 86px;
  }

  .topbar,
  .content {
    padding: 12px;
  }

  .sidebar {
    padding: 12px 10px 10px;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .brand p {
    font-size: 0.76rem;
  }

  .settings-nav {
    top: 8px;
    padding: 10px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .home-menu {
    grid-template-columns: 1fr;
  }

  .module-bar {
    gap: 6px;
    justify-content: flex-start;
    padding: 6px 8px 0;
  }

  .module-bar-sticky {
    display: none;
  }

  .module-bar-sticky {
    padding: 7px 8px;
    border-radius: 16px;
  }

  .module-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .menu-only-shell .module-bar-sticky {
    display: flex;
  }

  .menu-only-shell .mobile-module-bar,
  .menu-only-shell .mobile-module-sheet-backdrop {
    display: none;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .editor .form-grid.two-col,
  .editor .form-grid.three-col {
    grid-template-columns: 1fr;
  }

  .section-head,
  .split-row {
    flex-direction: column;
    align-items: stretch;
  }

  .masthead-brand,
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead {
    gap: 14px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .masthead-brand {
    gap: 14px;
  }

  .masthead-logo-badge {
    width: min(112px, var(--masthead-logo-badge-size, 112px));
    height: min(112px, var(--masthead-logo-badge-size, 112px));
    border-radius: 28px;
  }

  .masthead-logo {
    width: min(82px, var(--masthead-logo-size, 82px));
    height: min(82px, var(--masthead-logo-size, 82px));
    border-radius: 20px;
    padding: 10px;
  }

  .masthead-copy p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .masthead-brand-mark {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .masthead-signature {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
  }

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

  .masthead-user-actions .btn {
    width: 100%;
  }

  .global-search-shell {
    margin: 2px 0 10px;
  }

  .global-search-field {
    padding: 8px 9px;
    border-radius: 14px;
  }

  .global-search-field input {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .metric-grid,
  .metric-grid-compact,
  .request-hero-grid,
  .reports-filter-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-focus,
  .dashboard-grid,
  .dashboard-grid-tight,
  .dashboard-grid-compact-panels {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .focus-card {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .focus-card h3 {
    margin-top: 8px;
    font-size: clamp(1.15rem, 6vw, 1.55rem);
    line-height: 1.08;
  }

  .focus-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .request-filter-row {
    padding: 9px 10px;
  }

  .request-primary-actions {
    gap: 10px;
  }

  .list-table-head,
  .mailbox-table-head,
  .request-table-head,
  .task-table-head,
  .calendar-table-head,
  .institution-table-head,
  .users-table-head,
  .fields-table-head,
  .emails-table-head,
  .status-table-head,
  .place-table-head,
  .place-request-table-head,
  .institution-three-col-head,
  .institution-contact-table-head {
    display: none !important;
  }

  .accordion-trigger,
  .table-row-trigger,
  .users-row-trigger,
  .institution-row-trigger,
  .fields-row-trigger,
  .emails-row-trigger,
  .status-row-trigger,
  .place-request-row.table-row-trigger,
  .institution-three-col-row,
  .institution-contact-table-list .request-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 8px;
    align-items: start;
    padding: 12px 12px 14px;
  }

  .accordion-trigger .request-item-top,
  .accordion-trigger .request-item-meta,
  .accordion-trigger .request-item-meta-bottom,
  .accordion-trigger .request-item-note,
  .table-row-trigger .request-item-top,
  .table-row-trigger .request-item-meta,
  .table-row-trigger .request-item-meta-bottom,
  .table-row-trigger .request-item-note,
  .place-request-row.table-row-trigger .request-item-note {
    grid-area: auto;
    border-left: 0;
    padding-left: 0;
    padding-right: 28px;
    min-height: 0;
  }

  .table-row-trigger::after {
    right: 12px;
    top: 12px;
  }

  .request-item-top strong,
  .institution-contact-table-list .request-item-top strong {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .institution-contact-table-list .request-item-meta span,
  .institution-contact-table-list .request-item-note span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .mailbox-segment-shell .segmented-control {
    width: 100%;
  }

  .modal-backdrop {
    padding: 8px 6px;
  }

  .modal-card,
  .modal-card-wide,
  .modal-card-mailbox,
  .modal-card-institution {
    width: calc(100vw - 12px);
    border-radius: 20px;
    padding: 12px 12px 22px;
  }

  .modal-card .section-head {
    top: -12px;
    padding: 8px 2px 9px;
  }

  .modal-card .section-head .actions {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .modal-card .section-head .actions .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .modal-card .editor-section {
    padding: 9px 9px;
  }

  .modal-card > :last-child {
    margin-bottom: clamp(28px, 6vh, 52px);
  }

  .modal-card::after {
    min-height: clamp(28px, 6vh, 52px);
  }

  .history-item-head,
  .color-input-row {
    grid-template-columns: 1fr;
  }

  .masthead-signature {
    width: 100%;
    border-radius: 18px;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .mobile-module-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 251, 0.94) 100%);
    border: 1px solid rgba(18, 61, 99, 0.12);
    box-shadow:
      0 20px 48px rgba(10, 49, 79, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
  }

  .mobile-module-tab {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .mobile-module-tab.active {
    background: linear-gradient(180deg, rgba(18, 61, 99, 0.16) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(18, 61, 99, 0.18);
    color: var(--accent-strong);
    box-shadow:
      0 10px 20px rgba(18, 61, 99, 0.10),
      inset 0 -2px 0 rgba(18, 61, 99, 0.86);
  }

  .mobile-module-tab-center {
    transform: translateY(-10px);
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 61, 99, 0.18) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(18, 61, 99, 0.18);
    color: var(--accent-strong);
    box-shadow:
      0 14px 28px rgba(18, 61, 99, 0.14),
      inset 0 -2px 0 rgba(18, 61, 99, 0.86);
  }

  .mobile-module-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    background: rgba(6, 16, 28, 0.28);
    backdrop-filter: blur(10px);
  }

  .mobile-module-sheet {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 76px);
    padding: 12px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.96) 100%);
    border: 1px solid rgba(18, 61, 99, 0.10);
    box-shadow:
      0 26px 56px rgba(10, 49, 79, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .mobile-module-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-module-sheet-head strong {
    font-size: 0.95rem;
    color: var(--primary-strong);
  }

  .mobile-module-sheet-list {
    display: grid;
    gap: 8px;
  }

  .mobile-module-sheet-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(18, 61, 99, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
  }

  .mobile-module-sheet-item.active {
    border-color: rgba(18, 61, 99, 0.18);
    background: linear-gradient(180deg, rgba(18, 61, 99, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
    color: var(--accent-strong);
  }
}

@media (max-width: 480px) {
  .main {
    padding: 8px 8px 84px;
  }

  .sidebar {
    padding: 10px 8px 8px;
  }

  .nav-group {
    gap: 6px;
  }

  .nav-button {
    padding: 9px 11px;
    font-size: 0.84rem;
    border-radius: 12px;
  }

  .masthead {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .masthead-logo-badge {
    width: min(96px, var(--masthead-logo-badge-size, 96px));
    height: min(96px, var(--masthead-logo-badge-size, 96px));
    border-radius: 24px;
  }

  .masthead-logo {
    width: min(72px, var(--masthead-logo-size, 72px));
    height: min(72px, var(--masthead-logo-size, 72px));
    padding: 8px;
  }

  .masthead-user-actions {
    grid-template-columns: 1fr;
  }

  .module-bar-sticky {
    top: 6px;
    padding: 6px;
  }

  .module-bar {
    gap: 5px;
    padding: 4px 6px 0;
  }

  .module-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .global-search-field span,
  .request-filter-field span,
  .metric-label,
  .section-lead-eyebrow {
    font-size: 0.64rem;
  }

  .request-item,
  .institution-contact-table-list .request-item,
  .institution-three-col-row {
    padding: 10px 10px 12px;
  }

  .request-item-top strong {
    font-size: 0.88rem;
  }

  .request-item-meta,
  .request-item-note,
  .section-lead p,
  .subtle {
    font-size: 0.78rem;
  }

  .metric-card,
  .metric-card-compact {
    padding: 9px 10px;
  }

  .metric-value,
  .metric-card-compact .metric-value {
    font-size: 0.98rem;
  }

  .modal-backdrop {
    padding: 6px 4px;
  }

  .modal-card,
  .modal-card-wide,
  .modal-card-mailbox,
  .modal-card-institution {
    width: calc(100vw - 8px);
    border-radius: 18px;
    padding: 10px 10px 18px;
  }

  .modal-card .section-head .actions .btn {
    flex: 1 1 100%;
  }

  .modal-card .field input,
  .modal-card .field select,
  .modal-card .field textarea,
  .modal-card .readonly-box,
  .modal-card .detail-value {
    min-height: 36px;
    font-size: 0.84rem;
  }

  .mobile-module-bar {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    padding: 7px;
  }

  .mobile-module-tab {
    min-height: 42px;
    font-size: 0.76rem;
    padding: 0 8px;
  }

  .mobile-module-tab-center {
    min-height: 52px;
  }

  .mobile-module-sheet {
    left: 8px;
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 70px);
  }
}

/* Compact request overview: keep the work list close to its controls. */
.requests-workspace .request-filter-row {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
}
.requests-workspace .request-item-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.requests-workspace .request-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .requests-workspace .request-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact, action-oriented dashboard. */
.dashboard-smart { gap: 14px; }
.dashboard-smart .dashboard-welcome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(115deg, #eef6ff, #f1faf5); color: #20364a;
}
.dashboard-smart .dashboard-welcome h3 { margin: 5px 0; font-size: 1.35rem; }
.dashboard-smart .dashboard-welcome p { margin: 0; font-size: .88rem; line-height: 1.5; }
.dashboard-summary-chip { padding: 8px 12px; border-radius: 24px; background: #ffffffb8; font-size: .8rem; white-space: nowrap; }
.dashboard-smart .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-smart button.metric-card { font: inherit; text-align: left; cursor: pointer; padding: 12px 16px; min-width: 0; }
.dashboard-smart .metric-value { font-size: 1.65rem; line-height: 1.2; margin-top: 5px; }
.dashboard-smart .metric-label { font-size: .78rem; }
.dashboard-smart button.metric-card:hover { border-color: #648eae; background: #f4f8fc; }
.dashboard-smart button.metric-card:focus-visible { outline: 3px solid #3979ad; outline-offset: 3px; }
.dashboard-smart .editor-section { padding: 16px; }
.dashboard-smart .dashboard-list-item { padding: 11px 12px; }
.dashboard-smart .dashboard-list-item strong { overflow-wrap: anywhere; }
.dashboard-smart .section-head h3 { font-size: 1rem; }
.dashboard-smart .placeholder { padding: 20px 12px; font-size: .88rem; }
@media (max-width: 760px) {
  .dashboard-smart .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-smart .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
  .dashboard-smart .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Modern workspace. Existing branding values and all business fields are retained. */
body.modern-app { background:#f7f8fa; --radius:12px; --shadow:0 6px 24px #172d2210; }
.modern-app .shell { grid-template-columns:228px minmax(0,1fr); }
.modern-app .modern-sidebar { background:#fff; color:var(--text); border-right:1px solid #e5e9e7; padding:28px 18px; display:flex; flex-direction:column; gap:25px; backdrop-filter:none; }
.modern-app .modern-sidebar .brand { margin:0; overflow-wrap:anywhere; }
.modern-app .sidebar-logo { max-width:160px; max-height:72px; object-fit:contain; margin-bottom:16px; }
.modern-app .brand-mark-lower,.modern-app .brand-mark-upper { color:var(--text); }
.modern-app .modern-sidebar .brand p { color:var(--muted); line-height:1.5; }
.modern-app .nav-group { display:grid; gap:5px; }
.modern-app .nav-button { background:transparent; color:var(--muted); border:0; border-radius:7px; padding:12px; text-align:left; box-shadow:none; }
.modern-app .nav-button.active { background:#edf3f5; color:var(--primary); font-weight:650; }
.modern-app .nav-button:hover { background:#f1f5f6; transform:none; }
.modern-app .sidebar-user { margin-top:auto; padding:20px 10px 0; border-top:1px solid #e8ecea; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.modern-app .main { padding:24px 36px; min-width:0; max-width:1500px; width:100%; margin:0 auto; }
.modern-app .masthead { padding:0 0 22px; margin:0 0 26px; border-radius:0; border:0; border-bottom:1px solid #e3e8e5; background:transparent; box-shadow:none; gap:20px; align-items:center; }
.modern-app .masthead-brand { gap:16px; }
.modern-app .masthead-logo-badge { background:transparent; border:0; box-shadow:none; border-radius:0; width:auto; height:auto; min-width:0; min-height:0; padding:0; }
.modern-app .masthead-logo { max-height:56px; width:auto; max-width:110px; object-fit:contain; }
.modern-app .masthead-copy h1 { font-size:23px; margin:4px 0; }
.modern-app .masthead-copy p { font-size:12px; margin:4px 0; }
.modern-app .masthead-eyebrow,.modern-app .masthead-signature { font-size:10px; margin:5px 0; }
.modern-app .masthead-aside { min-width:0; }
.modern-app .masthead-aside-card { background:#fff; border:1px solid #e5e9e7; padding:12px 14px; border-radius:8px; box-shadow:none; }
.modern-app .account-summary { cursor:pointer; font-size:12px; }
.modern-app .masthead-aside-card[open] .account-summary { margin-bottom:15px; }
.modern-app .panel { background:transparent; border:0; box-shadow:none; border-radius:0; }
.modern-app .content { padding:0; }
.modern-app .global-search { margin-bottom:20px; }
.modern-app .btn { border-radius:7px; box-shadow:none; min-height:36px; font-size:12px; padding:9px 13px; }
.modern-app .btn:hover { transform:none; }
.modern-app .editor-section { background:white; border:1px solid #e6eae8; border-radius:10px; box-shadow:none; }
.modern-app .status-chip { border-radius:5px; font-size:11px; padding:4px 7px; box-shadow:none; }
.modern-app .section-head h3 { font-size:16px; }
.modern-app .work-heading h2 { font-size:30px; letter-spacing:-.8px; margin:7px 0; }
.modern-app .work-heading p { margin:0; }
.modern-app .work-controls { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:8px 0; }
.modern-app .segmented-control { background:#eef1f2; border:0; padding:4px; border-radius:7px; }
.modern-app .segment { border:0; background:transparent; border-radius:5px; font-size:12px; box-shadow:none; }
.modern-app .segment.active { background:#fff; color:var(--primary); box-shadow:0 1px 3px #0000000c; }
.modern-app .work-list { background:#fff; border:1px solid #e2e8e4; border-radius:11px; overflow:hidden; }
.modern-app .work-tabs { display:flex; gap:25px; padding:0 22px; border-bottom:1px solid #edf0ee; }
.modern-app .work-tabs button { padding:18px 0; background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-size:13px; }
.modern-app .work-tabs button.active { border-bottom-color:var(--primary); color:var(--primary); font-weight:650; }
.modern-app .work-list-head,.modern-app .work-row { display:grid; grid-template-columns:minmax(0,1fr) 160px 170px; gap:20px; align-items:center; padding:18px 22px; }
.modern-app .work-list-head { color:var(--muted); font-size:10px; letter-spacing:.7px; text-transform:uppercase; background:#fcfdfc; }
.modern-app .work-row { width:100%; text-align:left; border:0; border-top:1px solid #edf0ee; background:white; color:var(--text); }
.modern-app .work-row:hover { background:#f6f9f8; }
.modern-app .work-row strong { display:block; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.modern-app .work-row small { display:block; margin-top:7px; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.modern-app .work-row>span { min-width:0; }
.modern-app .work-person { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.modern-app .work-list-footer { padding:14px 22px; font-size:11px; color:var(--muted); border-top:1px solid #edf0ee; }
.modern-app .work-overviews { padding:12px 0; }
.modern-app .work-overviews summary { cursor:pointer; font-size:12px; color:var(--muted); }
.modern-app .work-overviews .actions { margin-top:14px; }
.modern-app .page-footer { background:transparent; color:var(--muted); border:0; border-top:1px solid #e4e9e6; padding:20px 0; margin-top:32px; box-shadow:none; font-size:11px; }
.modern-app .page-footer * { color:inherit; }
.modern-app .requests-filter-panel { padding:18px; }
.modern-app .requests-filter-panel .metric-grid { display:flex; gap:20px; flex-wrap:wrap; }
.modern-app .requests-filter-panel .metric-card { border:0; box-shadow:none; padding:0; min-height:0; background:none; display:flex; align-items:center; gap:8px; }
.modern-app .requests-filter-panel .metric-value { font-size:15px; margin:0; }
.modern-app .request-drawer-backdrop { display:flex; justify-content:center; align-items:center; padding:24px; background:#142b2440; backdrop-filter:none; }
.modern-app .request-drawer { width:min(920px,calc(100vw - 48px)); max-width:920px; height:auto; max-height:calc(100dvh - 48px); margin:auto; border:1px solid #e3e8e5; border-radius:12px; padding:28px; box-shadow:0 24px 70px #142b2429; }
.modern-app .request-drawer .section-head { align-items:flex-start; }
.modern-app .request-drawer .request-hero-grid { gap:10px; }
.modern-app .hero-stat { box-shadow:none; border-radius:7px; padding:12px; }
.modern-app :is(button,summary,a,input,select,textarea):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media(max-width:1100px) { .modern-app .shell { grid-template-columns:190px minmax(0,1fr); } .modern-app .main { padding:22px; } .modern-app .work-list-head,.modern-app .work-row { grid-template-columns:minmax(0,1fr) 130px; gap:12px; } .modern-app .work-person,.modern-app .work-list-head>span:nth-child(2) { display:none; } }
@media(max-width:760px) { .modern-app .shell { display:block; } .modern-app .modern-sidebar { display:flex; padding:16px; gap:12px; border-right:0; border-bottom:1px solid #e4e8e6; } .modern-app .modern-sidebar .brand,.modern-app .sidebar-user { display:none; } .modern-app .nav-group { display:flex; overflow:auto; } .modern-app .nav-button { white-space:nowrap; padding:9px 12px; } .modern-app .main { padding:18px 14px; } .modern-app .masthead { flex-wrap:wrap; } .modern-app .masthead-copy h1 { font-size:20px; } .modern-app .work-controls { align-items:flex-start; flex-direction:column; } .modern-app .work-tabs { gap:20px; padding:0 15px; } .modern-app .work-tabs button { font-size:12px; } .modern-app .work-row,.modern-app .work-list-head { padding:16px 14px; grid-template-columns:minmax(0,1fr) 115px; } .modern-app .work-row small { font-size:11px; } .modern-app .request-drawer { padding:18px; } .modern-app .work-heading { align-items:flex-start; flex-wrap:wrap; } .modern-app .work-heading h2 { font-size:26px; } }
/* Keep configured branding readable on the new light workspace. */
.modern-app .masthead-copy,.modern-app .masthead-copy p,.modern-app .masthead-eyebrow,
.modern-app .masthead-signature,.modern-app .masthead-signature span,
.modern-app .masthead-aside-card,.modern-app .account-summary { color:var(--text); }
.modern-app .masthead-brand-mark { font-size:26px; line-height:1.2; letter-spacing:-.6px; }
.modern-app .masthead-signature { background:none; border:0; padding:0; box-shadow:none; }
.modern-app .modern-sidebar .brand-mark { font-size:13px; letter-spacing:-.3px; white-space:nowrap; }
.modern-app .global-search-shell { background:#fff; border:1px solid #e4e9e6; border-radius:8px; padding:10px 12px; box-shadow:none; }
.modern-app .global-search-field input { background:transparent; border:0; box-shadow:none; }
.modern-app .mobile-module-bar { display:none; }
.modern-app .work-controls .segmented-control { display:flex; }
.modern-app .work-home { gap:16px; }
.modern-app .main { padding-bottom:24px; }
@media(max-width:760px) {
 .modern-app .masthead-brand-mark { font-size:22px; }
 .modern-app .masthead { gap:14px; margin-bottom:18px; padding-bottom:16px; }
 .modern-app .masthead-aside { width:100%; }
 .modern-app .work-controls { gap:12px; }
}
.modern-app .global-search-field { background:transparent; border:0; box-shadow:none; border-radius:0; padding:0; }
.modern-app .request-drawer-backdrop { inset:0; }
.modern-app .request-drawer-backdrop::before,.modern-app .request-drawer::before,.modern-app .request-drawer .editor-section::before { display:none; }
.modern-app .request-drawer { background:#fff; }
.modern-app .request-drawer .editor-section { background:#fff; border:0; border-top:1px solid #e5eae7; border-radius:0; padding:18px 0; box-shadow:none; }
.modern-app .request-drawer .request-next-step-card { background:#f2f6f5; padding:16px; border:0; border-radius:8px; }
.modern-app .request-drawer .section-head { background:transparent; box-shadow:none; padding:0 0 12px; }
.modern-app .request-more-menu summary,.modern-app .request-core-details summary { cursor:pointer; font-size:12px; padding:8px 0; }
.modern-app .request-core-details .form-grid { margin-top:18px; }
.modern-app .request-more-menu .actions { margin-top:12px; }
.modern-app .request-drawer .request-primary-actions { justify-content:flex-start; margin-top:12px; }
.modern-app .request-drawer .request-action-button { min-width:0; flex:0 1 auto; }
.modern-app .request-drawer .detail-value { background:transparent; box-shadow:none; }
.modern-app .request-drawer > * { flex-shrink:0; }
.modern-app .request-drawer details > summary { min-height:40px; }
.modern-app .request-drawer .editor-section,.modern-app .request-drawer .section-head { background-image:none; }
.modern-app .sidebar-more summary { padding:13px 12px; font-size:12px; color:var(--muted); cursor:pointer; white-space:nowrap; }
.modern-app .sidebar-more .nav-button { display:block; width:100%; }
@media(max-width:760px) { .modern-app .sidebar-more[open] { min-width:180px; } }

/* Focused request workflow: assignment first, advanced data on demand. */
.modern-app .unassigned-callout {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:15px 18px; border:1px solid #ecd9ad; border-radius:9px;
  background:#fffaf0; color:#674d19; text-align:left;
}
.modern-app .unassigned-callout:hover { background:#fff6df; }
.modern-app .unassigned-callout strong,.modern-app .unassigned-callout small { display:block; }
.modern-app .unassigned-callout small { margin-top:4px; color:#806b43; }
.modern-app .request-plan-backdrop,.modern-app .request-discard-backdrop { inset:0; z-index:300; }
.modern-app .request-plan-dialog,.modern-app .request-confirm-dialog {
  width:min(520px,calc(100vw - 28px)); min-height:0; height:auto; max-height:calc(100dvh - 40px);
  padding:24px; border-radius:12px; background:#fff;
}
.modern-app .request-plan-dialog::before,.modern-app .request-confirm-dialog::before { display:none; }
.modern-app .request-plan-dialog .section-head { position:static; }
.modern-app .request-plan-hint {
  margin:18px 0; padding:12px 14px; border-radius:7px; background:#f2f6f5;
  color:var(--muted); font-size:12px; line-height:1.5;
}
.modern-app .request-confirm-dialog h3 { margin:8px 0; }
.modern-app .request-confirm-dialog p { color:var(--muted); margin:0 0 20px; }
.modern-app .btn:disabled { opacity:.45; cursor:not-allowed; }
.modern-app .new-request-guide {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:8px 0 4px;
}
.modern-app .new-request-guide span {
  display:flex; align-items:center; gap:8px; padding:11px 12px; border-radius:7px;
  background:#f5f7f6; color:var(--muted); font-size:12px;
}
.modern-app .new-request-guide span.active { background:#edf4f2; color:var(--primary); font-weight:650; }
.modern-app .new-request-guide b {
  width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:#fff; font-size:11px;
}
@media(max-width:760px) {
  .modern-app .unassigned-callout { align-items:flex-start; flex-direction:column; gap:9px; }
  .modern-app .request-plan-dialog,.modern-app .request-confirm-dialog { padding:19px; }
  .modern-app .new-request-guide { grid-template-columns:1fr; }
}

/* Compact icon system and denser workspace. */
.modern-app .ui-icon {
  width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.modern-app .btn,.modern-app .nav-button,.modern-app .segment,.modern-app .work-tabs button {
  display:inline-flex; align-items:center; gap:7px;
}
.modern-app .shell { grid-template-columns:204px minmax(0,1fr); }
.modern-app .modern-sidebar { padding:22px 14px; gap:18px; }
.modern-app .modern-sidebar .brand { padding:0 7px; }
.modern-app .sidebar-logo { max-height:50px; max-width:145px; margin-bottom:11px; }
.modern-app .nav-group { gap:3px; }
.modern-app .nav-button { min-height:37px; padding:9px 10px; font-size:12px; }
.modern-app .nav-button .ui-icon { color:#73837c; }
.modern-app .nav-button.active .ui-icon { color:var(--primary); }
.modern-app .sidebar-more summary { min-height:36px; padding:10px; }
.modern-app .sidebar-user { padding:14px 8px 0; }
.modern-app .main { padding:18px 28px; }
.modern-app .masthead { min-height:60px; padding-bottom:15px; margin-bottom:18px; }
.modern-app .masthead-logo { max-height:44px; max-width:90px; }
.modern-app .masthead-copy h1 { font-size:20px; margin:2px 0; }
.modern-app .masthead-copy p { margin:2px 0; }
.modern-app .masthead-signature { margin:3px 0; }
.modern-app .masthead-aside-card { padding:9px 11px; }
.modern-app .global-search { margin-bottom:14px; }
.modern-app .global-search-shell { padding:7px 10px; }
.modern-app .global-search-field { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:center; }
.modern-app .global-search-icon { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:10px; letter-spacing:.6px; text-transform:uppercase; }
.modern-app .global-search-field input { min-height:34px; padding:5px 8px; }
.modern-app .work-home { gap:12px; }
.modern-app .work-heading h2 { font-size:26px; margin:5px 0; }
.modern-app .work-heading .btn { align-self:center; }
.modern-app .work-controls { margin:2px 0; }
.modern-app .segment { min-height:32px; padding:6px 10px; }
.modern-app .unassigned-callout { padding:11px 14px; }
.modern-app .unassigned-callout > .ui-icon { color:#a77924; }
.modern-app .work-tabs { gap:20px; padding:0 18px; }
.modern-app .work-tabs button { padding:13px 0; font-size:12px; }
.modern-app .work-list-head,.modern-app .work-row { padding:14px 18px; }
.modern-app .work-row strong { font-size:13px; }
.modern-app .work-row small { margin-top:4px; }
.modern-app .work-list-footer { padding:11px 18px; }
.modern-app .btn { min-height:32px; padding:7px 10px; }
.modern-app .request-drawer { width:min(860px,calc(100vw - 40px)); padding:22px 24px; }
.modern-app .request-drawer .request-hero-grid { margin:4px 0; }
.modern-app .request-drawer .editor-section { padding:14px 0; }
.modern-app .request-drawer .request-next-step-card { padding:13px; }
.modern-app .hero-stat { padding:9px 10px; }
@media(max-width:1100px) {
  .modern-app .shell { grid-template-columns:178px minmax(0,1fr); }
  .modern-app .main { padding:18px 20px; }
}
@media(max-width:760px) {
  .modern-app .modern-sidebar { padding:10px 12px; }
  .modern-app .nav-button { min-height:34px; padding:7px 9px; }
  .modern-app .nav-button .ui-icon { width:15px; height:15px; }
  .modern-app .main { padding:14px 12px; }
  .modern-app .global-search-field { grid-template-columns:1fr; gap:2px; }
  .modern-app .global-search-icon span { display:none; }
  .modern-app .global-search-icon { position:absolute; margin-left:7px; }
  .modern-app .global-search-field input { padding-left:31px; }
  .modern-app .work-tabs { gap:15px; padding:0 13px; overflow:auto; }
  .modern-app .work-tabs button { white-space:nowrap; }
  .modern-app .work-list-head,.modern-app .work-row { padding:13px; }
  .modern-app .request-drawer-backdrop { padding:10px; }
  .modern-app .request-drawer { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); padding:16px; border-radius:10px; }
}

/* Clear, compact request dialogs; secondary information stays available on demand. */
.modern-app .request-drawer { padding:0; overflow-y:auto; }
.modern-app .request-drawer > .section-head {
  position:sticky; top:0; z-index:8; margin:0; padding:20px 22px 15px;
  background:rgba(255,255,255,.97); border-bottom:1px solid #e5eae7;
  backdrop-filter:blur(12px);
}
.modern-app .request-drawer > :not(.section-head) { margin-left:22px; margin-right:22px; }
.modern-app .request-dialog-eyebrow {
  margin-bottom:5px; color:var(--primary); font-size:10px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
}
.modern-app .request-drawer > .section-head h3 { max-width:520px; font-size:19px; line-height:1.25; }
.modern-app .request-drawer > .section-head .actions {
  align-items:center; flex-wrap:wrap; justify-content:flex-end;
}
.modern-app .request-hero-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)); padding:12px 0;
  border-bottom:1px solid #edf0ee;
}
.modern-app .request-hero-grid .hero-stat {
  min-height:0; padding:4px 12px; border:0; border-left:1px solid #e5eae7;
  background:transparent;
}
.modern-app .request-hero-grid .hero-stat:first-child { border-left:0; padding-left:0; }
.modern-app .request-next-step-card .section-head { align-items:center; border:0; }
.modern-app .request-next-date {
  display:inline-flex; align-items:center; gap:6px; color:var(--muted);
  font-size:11px; white-space:nowrap;
}
.modern-app .request-section-summary { transition:background-color 140ms ease; }
.modern-app .request-section-summary:hover { background:#f7f9f8; }
.modern-app .request-section-collapsible[open] .request-section-summary { border-bottom:1px solid #edf0ee; }
.modern-app .request-section-body { padding-top:14px; }
.modern-app .request-plan-dialog .form-grid { gap:14px; }
.modern-app .request-plan-dialog > .actions,
.modern-app .request-confirm-dialog > .actions { justify-content:flex-end; padding-top:4px; }

/* Current location replaces the large header brand block. */
.modern-app .context-path { min-width:0; flex:1; color:var(--text); }
.modern-app .context-path-label { color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:7px; }
.modern-app .context-path ol { display:flex; flex-wrap:wrap; align-items:center; gap:7px 0; list-style:none; margin:0; padding:0; }
.modern-app .context-path li { min-width:0; display:inline-flex; align-items:center; gap:8px; max-width:100%; color:var(--muted); font-size:12px; }
.modern-app .context-path li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:38ch; }
.modern-app .context-path li .ui-icon { width:13px; height:13px; margin-left:8px; color:#a4afa9; }
.modern-app .context-path li[aria-current] { color:var(--primary); font-weight:650; }
.modern-app .context-path-compact { margin-bottom:8px; }
.modern-app .context-path-compact li { font-size:10px; }
.modern-app .page-footer { flex-wrap:wrap; }
.modern-app .page-footer-support { display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; }
.modern-app .page-footer-support-label { font-weight:650; }
.modern-app .page-footer-support a { text-decoration:none; overflow-wrap:anywhere; }
.modern-app .page-footer-support a:hover { color:var(--primary); text-decoration:underline; }

/* Consistent dialog spacing: only the window header stays fixed. */
.modern-app .modal-backdrop { inset:0; padding:20px; background:#142b2448; backdrop-filter:blur(3px); }
.modern-app .modal-backdrop::before { display:none; }
.modern-app .modal-backdrop-secondary { z-index:300; }
.modern-app .modal-card { min-height:0; width:min(920px,calc(100vw - 40px)); max-height:calc(100dvh - 40px); border-radius:12px; background:#fff; padding:22px; scrollbar-gutter:stable; }
.modern-app .modal-card::after,.modern-app .dialog-window::before,.modern-app .modal-card .editor-section::before { display:none; }
.modern-app .modal-card > :last-child { margin-bottom:0; }
.modern-app .modal-card .section-head { position:static; background:#fff; backdrop-filter:none; }
.modern-app .modal-card > .section-head { position:sticky; top:-22px; z-index:5; padding:12px 0; background:#fff; }
.modern-app .modal-card .editor-section { background:#fff; background-image:none; box-shadow:none; }
.modern-app .modal-card .request-section-summary { padding:10px 8px; }
.modern-app .modal-card .request-section-summary::after { box-shadow:none; width:24px; height:24px; border-radius:6px; }
.modern-app .modal-card .request-section-summary .subtle { font-size:11px; }
.modern-app .modal-card .request-section-body { padding:12px 8px; }
.modern-app .modal-card .section-lead { margin-bottom:8px; }
.modern-app .modal-card .section-lead-eyebrow { display:none; }
.modern-app .modal-card .section-lead p { font-size:11px; margin:6px 0 0; }
.modern-app .request-drawer { width:min(860px,calc(100vw - 40px)); padding:0; }
.modern-app .request-drawer > .section-head { top:0; padding:18px 22px 14px; }
.modern-app .request-drawer .request-next-step-card { margin-top:12px; display:block; background:#f4f7f6; padding:12px; }
.modern-app .request-drawer .request-next-step-card .section-head { background:transparent; margin:0; padding:0; }
.modern-app .request-drawer .request-primary-actions { margin-top:10px; }
.modern-app .request-drawer details.editor-section { display:block; padding:5px 0; }
.modern-app .request-drawer .request-core-details > summary { padding:10px 8px; font-weight:600; }
.modern-app .request-drawer .request-core-details .form-grid { margin:12px 8px; }
.modern-app .request-drawer .detail-value-multiline { min-height:0; }
.modern-app .request-plan-dialog,.modern-app .request-confirm-dialog { width:min(540px,calc(100vw - 32px)); }
@media(max-width:760px) {
  .modern-app .modal-backdrop { padding:10px; }
  .modern-app .masthead { align-items:center; flex-wrap:nowrap; gap:10px; }
  .modern-app .masthead-aside { width:auto; flex:0 0 auto; max-width:45%; }
  .modern-app .account-summary { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .modern-app .context-path li span { max-width:24ch; }
  .modern-app .modal-card { padding:16px; width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .modern-app .request-drawer { padding:0; }
  .modern-app .request-drawer > .section-head { padding:16px; flex-direction:column; }
  .modern-app .request-drawer > .section-head .actions { width:100%; gap:6px; }
  .modern-app .request-drawer > .section-head .btn { font-size:11px; }
  .modern-app .request-hero-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .modern-app .request-hero-grid .hero-stat,.modern-app .request-hero-grid .hero-stat:first-child { border:0; padding:4px 0; }
  .modern-app .request-hero-grid .hero-stat:last-child { grid-column:1 / -1; }
  .modern-app .page-footer { align-items:flex-start; gap:12px; }
  .modern-app .page-footer-support { width:100%; }
}
@media(max-width:760px) {
  .modern-app .request-drawer { padding:0; }
  .modern-app .request-drawer > .section-head { padding:16px; }
  .modern-app .request-drawer > :not(.section-head) { margin-left:16px; margin-right:16px; }
  .modern-app .request-drawer > .section-head .actions { justify-content:flex-start; }
  .modern-app .request-hero-grid { grid-template-columns:1fr; }
  .modern-app .request-hero-grid .hero-stat,
  .modern-app .request-hero-grid .hero-stat:first-child {
    border-left:0; border-top:1px solid #edf0ee; padding:9px 0;
  }
  .modern-app .request-hero-grid .hero-stat:first-child { border-top:0; }
  .modern-app .request-next-step-card .section-head { align-items:flex-start; }
}
/* Smart workspace: one navigation hierarchy and calm, compact work surfaces. */
.smart-workspace { --smart-ink:#243c39; --smart-accent:#17695a; --smart-line:#e1e9e5; background:#f5f7f6; color:var(--smart-ink); }
.smart-workspace [hidden] { display:none!important; }
.smart-workspace .shell { grid-template-columns:238px minmax(0,1fr); gap:0; min-height:100dvh; }
.smart-workspace .sidebar { background:#fff; border-right:1px solid var(--smart-line); padding:26px 18px; box-shadow:none; }
.smart-workspace .brand { padding:0 10px 24px; border:0; }
.smart-workspace .brand p { font-size:11px; color:#73817d; margin-top:7px; }
.smart-workspace .sidebar-logo { max-height:48px; object-fit:contain; }
.smart-workspace .smart-navigation { gap:10px; }
.smart-workspace .smart-nav-group { border:0; background:transparent; padding:0; }
.smart-workspace .smart-nav-group > summary { display:flex; align-items:center; gap:10px; cursor:pointer; padding:12px; border-radius:12px; font-size:13px; font-weight:650; list-style:none; }
.smart-workspace .smart-nav-group > summary::-webkit-details-marker { display:none; }
.smart-workspace .smart-nav-group > summary::after { content:'⌄'; margin-left:auto; color:#82918b; }
.smart-workspace .smart-nav-group[open] > summary::after { transform:rotate(180deg); }
.smart-workspace .smart-nav-group > summary.active { color:var(--smart-accent); background:#eff6f2; }
.smart-workspace .smart-nav-group > div { border-left:1px solid var(--smart-line); margin:8px 0 4px 20px; padding-left:9px; display:grid; gap:3px; }
.smart-workspace .nav-button { padding:10px 12px; min-height:40px; border-radius:10px; font-size:13px; box-shadow:none; border:0; }
.smart-workspace .nav-button.active { color:#155d4f; background:#e6f1eb; font-weight:650; }
.smart-workspace .ui-icon { width:17px; height:17px; flex-shrink:0; }
.smart-workspace .sidebar-more { margin-top:26px; border-top:1px solid var(--smart-line); padding-top:14px; }
.smart-workspace .sidebar-more > summary { font-size:11px; color:#6d7c76; }
.smart-workspace .main { padding:26px clamp(18px,3vw,48px); max-width:1600px; width:100%; min-width:0; margin-inline:auto; }
.smart-workspace .masthead { padding:0 0 20px; background:transparent; box-shadow:none; border:0; }
.smart-workspace .panel,.smart-workspace .content { background:transparent; border:0; box-shadow:none; padding:0; }
.smart-workspace .context-path { font-size:13px; }
.smart-workspace .btn { border-radius:9px; min-height:36px; font-size:12px; padding:8px 13px; box-shadow:none; }
.smart-workspace .btn-primary { background:#17695a; color:#fff; border-color:#17695a; }
.smart-workspace .btn-primary:hover { background:#105347; }
.smart-workspace input,.smart-workspace select,.smart-workspace textarea { border-radius:9px; border-color:#d9e3de; background:#fff; font-size:13px; padding:10px 12px; }
.smart-workspace :is(button,input,select,textarea,summary):focus-visible { outline:3px solid #80b6a8; outline-offset:3px; }
.smart-workspace h2 { font-size:28px; letter-spacing:-.7px; font-weight:650; }
.smart-workspace h3 { letter-spacing:-.3px; }
.smart-workspace .subtle { color:#6d7c76; font-size:12px; line-height:1.55; }
.smart-workspace .smart-global-search { border:0; margin-bottom:22px; background:transparent; padding:0; }
.smart-workspace .smart-global-search > summary { cursor:pointer; display:flex; align-items:center; gap:8px; font-size:12px; color:#6d7c76; width:max-content; padding:5px 0; }
.smart-workspace .smart-global-search[open] { border-radius:12px; background:#fff; padding:14px; border:1px solid var(--smart-line); }
.smart-workspace .work-heading { margin-bottom:20px; }
.smart-workspace .work-controls { margin-bottom:16px; }
.smart-workspace .segmented-control { background:#eaf0ec; border:0; border-radius:10px; padding:4px; gap:3px; width:max-content; }
.smart-workspace .segment { border-radius:7px; font-size:12px; padding:8px 13px; border:0; background:transparent; }
.smart-workspace .segment.active { background:#fff; color:var(--smart-accent); box-shadow:0 1px 4px #213d3310; }
.smart-workspace .work-list { background:#fff; border:1px solid var(--smart-line); border-radius:16px; overflow:hidden; }
.smart-workspace .work-tabs { background:transparent; padding:13px 18px 0; gap:8px; border-bottom:1px solid var(--smart-line); }
.smart-workspace .work-tabs button { border:0; background:transparent; border-radius:0; border-bottom:2px solid transparent; font-size:12px; padding:11px 7px; }
.smart-workspace .work-tabs button.active { color:var(--smart-accent); border-bottom-color:var(--smart-accent); background:transparent; }
.smart-workspace .work-list-head { background:#fafcfb; color:#7a8781; font-size:10px; text-transform:uppercase; letter-spacing:.6px; padding:13px 20px; }
.smart-workspace .work-row { padding:16px 20px; border-color:#edf1ef; background:#fff; }
.smart-workspace .work-row:hover { background:#f6faf7; }
.smart-workspace .work-row strong { font-size:13px; }
.smart-workspace .work-row small { max-width:62ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#75827b; font-size:11px; margin-top:5px; }
.smart-workspace .work-list-footer { padding:12px 20px; font-size:11px; color:#7b8881; background:#fafcfb; }
.smart-workspace .unassigned-callout { border:1px solid #e9dbba; background:#fcf8ee; border-radius:12px; padding:14px 18px; margin-bottom:20px; }
.smart-workspace .work-overviews { border:0; background:transparent; padding:16px 0; font-size:12px; }
.smart-workspace .editor-section.requests-filter-panel,.smart-workspace .institution-type-filter-panel { background:#fff; border:1px solid var(--smart-line); padding:20px; border-radius:14px; box-shadow:none; }
.smart-workspace .request-filter-row { margin-top:15px; }
.smart-workspace .table-list { gap:0; background:#fff; border:1px solid var(--smart-line); border-radius:14px; overflow:hidden; }
.smart-workspace .table-row-trigger { border:0; border-bottom:1px solid #edf1ef; border-radius:0; background:#fff; padding:17px 20px; box-shadow:none; }
.smart-workspace .table-row-trigger:last-child { border-bottom:0; }
.smart-workspace .table-row-trigger:hover { background:#f7faf8; }
.smart-workspace .request-item-primary strong { font-size:13px; }
.smart-workspace .request-item-column { font-size:12px; }
.smart-workspace .request-item-supporting { color:#7b8881; font-size:11px; }
.smart-workspace .status-chip { font-size:10px; font-weight:600; padding:4px 8px; border-radius:6px; border:0; }
.smart-workspace .modal-backdrop { background:#182c285c; backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:24px; }
.smart-workspace .modal-card { border-radius:18px; box-shadow:0 24px 100px #102f2833; border:1px solid #e6ede8; }
.smart-workspace .smart-case { width:min(920px,calc(100vw - 48px)); padding:0; max-height:calc(100dvh - 48px); overflow-y:auto; }
.smart-workspace .smart-case > .section-head { padding:20px 24px; background:#fff; border-bottom:1px solid var(--smart-line); position:relative; top:auto; margin:0; }
.smart-workspace .smart-case > .section-head h3 { font-size:21px; line-height:1.35; }
.smart-workspace .smart-case-tabs { display:flex; gap:6px; padding:0 24px; border-bottom:1px solid var(--smart-line); background:#fff; overflow-x:auto; }
.smart-workspace .smart-case-tabs button { display:flex; align-items:center; gap:8px; padding:15px 9px; border:0; border-bottom:2px solid transparent; background:transparent; color:#73817b; white-space:nowrap; font-size:12px; cursor:pointer; }
.smart-workspace .smart-case-tabs button.active { color:var(--smart-accent); border-bottom-color:var(--smart-accent); font-weight:650; }
.smart-workspace .smart-case-tabs button:disabled { cursor:default; opacity:.5; }
.smart-workspace .smart-case-tabs b { display:grid; place-items:center; border-radius:50%; width:23px; height:23px; background:#edf2ef; font-size:11px; }
.smart-workspace .smart-case-tabs button.active b { background:#e1efe7; }
.smart-workspace .smart-case-panel { padding:20px 24px; min-height:220px; }
.smart-workspace .smart-case-panel .editor-section { box-shadow:none; border-radius:10px; }
.smart-workspace .smart-case-panel .request-hero-grid { margin:0 0 16px; }
.smart-workspace .smart-case-panel .request-section-fields { margin-top:18px; }
.smart-workspace .smart-case-panel .request-section-fields textarea { min-height:140px; }
.smart-workspace .smart-case-panel .section-kicker { display:none; }
.smart-workspace .smart-case-panel .case-timeline-item { background:#f7faf8; border:1px solid #e7ede9; box-shadow:none; }
.smart-workspace .smart-wizard-footer { display:flex; align-items:center; justify-content:space-between; padding:16px 24px; border-top:1px solid var(--smart-line); background:#fafcfb; position:sticky; bottom:0; }
.smart-workspace .smart-review { background:#f3f8f4; border:1px solid #dce9e0; border-radius:12px; padding:18px; margin-bottom:20px; }
.smart-workspace .smart-review p { font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.smart-workspace .smart-review dl { display:grid; grid-template-columns:95px 1fr; gap:8px; font-size:12px; }
.smart-workspace .smart-review dt { color:#6d7c76; }
.smart-workspace .smart-review dd { margin:0; }
.smart-workspace .admission-summary,.smart-workspace .admission-preview { background:#f2f7f4; border:1px solid #dce8e0; border-radius:10px; padding:14px; margin-top:14px; font-size:12px; }
.smart-workspace .admission-summary p { margin:7px 0; line-height:1.5; }
.smart-workspace .admission-preview table { width:100%; border-collapse:collapse; margin-top:10px; font-size:12px; }
.smart-workspace .admission-preview th,.smart-workspace .admission-preview td { text-align:left; padding:8px 5px; border-bottom:1px solid #dce8e0; }
.smart-workspace .admission-preview thead { font-size:10px; color:#687c72; }
.smart-workspace .admission-queue { padding:16px; background:#fff; border:1px solid #e1e9e5; border-radius:12px; }
.smart-workspace .admission-queue > summary { cursor:pointer; padding:4px 0 10px; font-size:13px; }
.smart-workspace .admission-queue-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-top:1px solid #e8efea; }
.smart-workspace .admission-queue-row small { display:block; font-size:11px; color:#6d7c76; margin-top:5px; }
@media(max-width:760px) { .smart-workspace .admission-queue-row { align-items:flex-start; flex-direction:column; } .smart-workspace .admission-dialog .check-item { align-items:flex-start; } }
.smart-workspace .request-action-summary,.smart-workspace .request-action-preview { background:#f3f7f4; border:1px solid #e1e9e3; border-radius:10px; padding:12px 14px; margin:12px 0; font-size:12px; }
.smart-workspace .request-action-summary p,.smart-workspace .request-action-preview p { margin:7px 0 0; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.smart-workspace .request-action-preview details { margin-top:10px; }
.smart-workspace .request-action-preview summary { cursor:pointer; color:#17695a; font-weight:600; }
.smart-workspace .request-guided-footer { gap:8px; flex-wrap:wrap; justify-content:flex-end; margin-top:16px; }
.smart-workspace .request-plan-dialog .request-guided-footer { position:sticky; bottom:-20px; background:#fff; border-top:1px solid #e1e9e3; padding:12px 0; z-index:1; }
.smart-workspace #request-plan-step { min-height:64px; resize:vertical; }
.smart-workspace .request-action-label { color:#17695a; font-size:11px; font-weight:650; }
.smart-workspace .smart-status-filter { margin-top:8px; }
.smart-workspace .smart-case-panel .request-next-step-card { background:#f2f7f4; border:1px solid #e1eae4; }
.smart-workspace .smart-case-panel .request-core-details { background:#f8faf9; }
.smart-workspace .smart-case-panel .section-block-tight > .section-head { padding-bottom:10px; }
.smart-workspace .smart-place-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; border:0; background:transparent; border-radius:0; overflow:visible; }
.smart-workspace .smart-place-grid .request-item { display:flex; flex-direction:column; align-items:stretch; gap:12px; border:1px solid var(--smart-line); border-radius:14px; padding:20px; min-width:0; }
.smart-workspace .smart-place-grid .request-item-primary { justify-content:space-between; }
.smart-workspace .smart-place-grid .request-item-column,.smart-workspace .smart-place-grid .request-item-supporting { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.smart-workspace .smart-capacity { height:5px; background:#edf2ee; border-radius:8px; overflow:hidden; }
.smart-workspace .smart-capacity span { display:block; height:100%; background:#5b9b80; border-radius:8px; }
.smart-workspace .smart-place-workspace .place-table-head { display:none; }
.smart-workspace .smart-place-search { max-width:420px; }
.smart-workspace .metric-card { background:transparent; box-shadow:none; border:0; border-left:1px solid var(--smart-line); padding:8px 16px; }
.smart-workspace .metric-card:first-child { border-left:0; }
.smart-workspace .metric-value { font-size:24px; }
.smart-workspace .metric-label { font-size:11px; }
.smart-workspace .page-footer { background:transparent; border-top:1px solid var(--smart-line); font-size:11px; margin-top:28px; padding-top:20px; }
@media(max-width:1000px) {
  .smart-workspace .shell { grid-template-columns:205px minmax(0,1fr); }
  .smart-workspace .sidebar { padding:20px 10px; }
  .smart-workspace .main { padding:22px 20px; }
  .smart-workspace .smart-place-grid { grid-template-columns:1fr; }
}
@media(max-width:760px) {
  .smart-workspace .shell { display:block; }
  .smart-workspace .sidebar { position:relative; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--smart-line); padding:12px; }
  .smart-workspace .brand { display:none; }
  .smart-workspace .smart-navigation { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
  .smart-workspace .smart-navigation > .nav-button,.smart-workspace .smart-nav-group { flex:1; min-width:100px; }
  .smart-workspace .smart-nav-group > summary { padding:10px 7px; font-size:11px; }
  .smart-workspace .smart-nav-group > div { margin-left:9px; }
  .smart-workspace .sidebar-more { flex-basis:100%; margin-top:2px; padding-top:7px; }
  .smart-workspace .sidebar-user { display:none; }
  .smart-workspace .main { padding:18px 14px; }
  .smart-workspace .smart-case { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .smart-workspace .modal-backdrop { padding:10px; }
  .smart-workspace .smart-case > .section-head { padding:16px; }
  .smart-workspace .smart-case > :not(.section-head) { margin-left:0; margin-right:0; }
  .smart-workspace .smart-case-tabs { padding:0 12px; }
  .smart-workspace .smart-case-panel { padding:16px; }
  .smart-workspace .smart-wizard-footer { padding:12px 16px; }
  .smart-workspace .smart-wizard-grid { grid-template-columns:1fr; }
  .smart-workspace .smart-review dl { grid-template-columns:1fr; }
  .smart-workspace .work-row small { max-width:38ch; }
  .smart-workspace h2 { font-size:24px; }
  .smart-workspace .smart-place-grid { gap:12px; }
}

/* Shared typography and spacing for all three main navigation entries. */
.smart-workspace .smart-nav-group > summary,
.smart-workspace .smart-navigation > .nav-button[data-view="requests"] {
  display:flex; align-items:center; gap:10px; padding:12px; min-height:0;
  border-radius:12px; font-family:inherit; font-size:13px; font-weight:650;
  line-height:normal; color:inherit;
}
.smart-workspace .smart-nav-group > summary.active,
.smart-workspace .smart-navigation > .nav-button[data-view="requests"].active {
  color:var(--smart-accent); background:#eff6f2;
}
.smart-workspace .smart-navigation > .nav-button[data-view="requests"] .ui-icon { color:inherit; }

/* Shared request workflow: case history and explicit stock provenance. */
.modern-app .case-activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  color: var(--text-muted, #64748b);
  font-size: 12px;
}
.modern-app .case-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.modern-app .case-contact-actions .subtle { flex: 1 1 240px; }
.modern-app .case-timeline {
  display: grid;
  gap: 0;
  padding-left: 8px;
  margin-bottom: 18px;
}
.modern-app .case-timeline-item {
  position: relative;
  min-width: 0;
  padding: 0 0 20px 18px;
  border-left: 1px solid #dce4ee;
}
.modern-app .case-timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #4778a9);
  box-shadow: 0 0 0 3px #fff;
}
.modern-app .case-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--text-muted, #64748b);
  font-size: 11px;
  margin-bottom: 4px;
}
.modern-app .case-timeline-meta > span:first-child {
  color: var(--text, #334155);
  font-weight: 600;
}
.modern-app .case-timeline-item > strong { font-size: 13px; }
.modern-app .case-timeline-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 5px;
}
.modern-app .case-change-details { font-size: 12px; margin-top: 6px; }
.modern-app .case-change-details summary { cursor: pointer; color: #466789; }
.modern-app .case-change-details > div { margin-top: 7px; overflow-wrap: anywhere; }
.modern-app .case-note-composer {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
}
.modern-app .case-note-composer label { font-size: 12px; font-weight: 600; }
.modern-app .case-note-composer textarea { width: 100%; resize: vertical; }
.modern-app .case-note-composer .btn { justify-self: start; }
.modern-app .case-external-email > h4 { margin: 14px 0 5px; }
.modern-app .case-external-email .editor-section { margin-top: 12px; }
.modern-app .placement-decisions { display: grid; gap: 12px; }
.modern-app .placement-decision-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
}
.modern-app .placement-decision-card > .section-head { margin-bottom: 10px; }
.modern-app .placement-decision-card textarea { width: 100%; resize: vertical; }
.modern-app .placement-stock-note {
  font-size: 12px;
  line-height: 1.5;
  color: #596b7d;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7fa;
  margin-top: 10px;
}
.modern-app .placement-stock-warning {
  color: #8d3e1d;
  background: #fff3e6;
  border: 1px solid #f3d4b1;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.modern-app .placement-stock-warning[hidden] { display: none; }
.modern-app .work-tabs { flex-wrap: wrap; }
@media (max-width: 600px) {
  .modern-app .placement-decision-card { padding: 12px; }
  .modern-app .case-timeline-text { font-size: 12px; }
  .modern-app .work-tabs > button { padding: 8px; }
}

/* Calm branding and an account popover that does not shift the workspace. */
.modern-app.smart-workspace .modern-sidebar .brand { display:flex; flex-direction:column; align-items:center; text-align:center; padding:4px 0 18px; }
.modern-app.smart-workspace .modern-sidebar .sidebar-logo { display:block; width:182px; height:88px; max-width:100%; max-height:none; object-fit:contain; margin:0 auto 15px; }
.modern-app.smart-workspace .modern-sidebar .brand-mark { font-size:14px; }
.modern-app.smart-workspace .masthead-aside { position:relative; margin-left:auto; }
.modern-app.smart-workspace .account-menu { display:block; min-width:0; padding:0; border:0; background:transparent; position:relative; }
.modern-app.smart-workspace .account-summary { display:flex; align-items:center; gap:10px; padding:7px 10px 7px 7px; border:1px solid #dfe7e3; border-radius:14px; background:#fff; max-width:260px; list-style:none; cursor:pointer; white-space:normal; }
.modern-app.smart-workspace .account-summary::-webkit-details-marker { display:none; }
.modern-app.smart-workspace .account-summary:hover { background:#f3f8f5; border-color:#bdd3c8; }
.modern-app.smart-workspace .account-summary:focus-visible { outline:3px solid #b5d9ca; outline-offset:3px; }
.modern-app.smart-workspace .account-menu[open] .account-summary { margin:0; background:#edf5f0; border-color:#b9d0c3; }
.modern-app.smart-workspace .account-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; background:#e8f2ec; color:#246951; border-radius:11px; }
.modern-app.smart-workspace .account-summary-copy { display:grid; gap:2px; min-width:0; text-align:left; }
.modern-app.smart-workspace .account-summary-copy strong { font-size:12px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--smart-ink); }
.modern-app.smart-workspace .account-summary-copy > span { font-size:10px; color:#65786e; }
.modern-app.smart-workspace .account-chevron { width:14px; height:14px; transform:rotate(90deg); color:#74877b; }
.modern-app.smart-workspace .account-menu[open] .account-chevron { transform:rotate(-90deg); }
.modern-app.smart-workspace .account-panel { position:absolute; top:calc(100% + 10px); right:0; z-index:90; width:310px; max-width:calc(100vw - 28px); max-height:calc(100dvh - 100px); overflow:auto; background:#fff; border:1px solid #dfe7e3; border-radius:18px; box-shadow:0 18px 48px #183c2924; padding:8px; }
.modern-app.smart-workspace .account-panel-heading { display:grid; gap:5px; padding:12px 12px 15px; border-bottom:1px solid #edf1ee; overflow-wrap:anywhere; }
.modern-app.smart-workspace .account-kicker { color:#64796e; font-size:10px; font-weight:650; letter-spacing:.05em; }
.modern-app.smart-workspace .account-panel-heading > strong { color:var(--smart-ink); font-size:15px; }
.modern-app.smart-workspace .account-panel-heading > span:not(.account-kicker):not(.account-role) { color:#65786e; font-size:12px; }
.modern-app.smart-workspace .account-role { justify-self:start; padding:3px 7px; border-radius:6px; background:#f0f5f2; color:#506b5c; font-size:10px; }
.modern-app.smart-workspace .account-actions { display:grid; gap:3px; margin:7px 0 0; }
.modern-app.smart-workspace .account-actions .btn { display:flex; justify-content:flex-start; gap:11px; border:0; background:transparent; color:var(--smart-ink); width:100%; min-height:42px; padding:10px 12px; border-radius:10px; box-shadow:none; text-align:left; }
.modern-app.smart-workspace .account-actions .btn:hover { background:#edf5f0; color:#1b6047; }
.modern-app.smart-workspace .account-actions .nav-badge { margin-left:auto; }
.modern-app.smart-workspace .account-actions .account-logout { color:#8d4c42; }
.modern-app.smart-workspace .account-meta { padding:5px 12px 10px; margin:7px 0 0; border-top:1px solid #edf1ee; }
.modern-app.smart-workspace .account-meta div { border:0; padding-top:5px; }
.modern-app.smart-workspace .account-meta span { color:#75867c; font-size:10px; text-transform:none; letter-spacing:0; }
.modern-app.smart-workspace .account-meta strong { color:#4b6355; font-size:11px; font-weight:500; }
@media (max-width:760px) {
  .modern-app.smart-workspace .modern-sidebar .brand { display:none; }
  .modern-app.smart-workspace .account-summary { max-width:150px; padding:5px 7px 5px 5px; gap:7px; }
  .modern-app.smart-workspace .account-avatar { width:30px; height:30px; flex-basis:30px; }
  .modern-app.smart-workspace .account-summary-copy strong { max-width:80px; font-size:11px; }
}

/* Settings directory: grouped, searchable entries instead of oversized tiles. */
.modern-app .settings-directory { max-width:1160px; margin:0 auto; }
.modern-app .settings-directory-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:4px 0 20px; }
.modern-app .settings-directory-head h2,.modern-app .settings-editor-heading h2 { margin:0 0 6px; color:var(--smart-ink); font-size:23px; letter-spacing:-.4px; }
.modern-app .settings-directory-head p,.modern-app .settings-editor-heading > p { margin:0; color:#708078; font-size:13px; line-height:1.5; }
.modern-app .settings-directory-count { flex-shrink:0; color:#708078; font-size:12px; }
.modern-app .settings-directory-search { display:flex; align-items:center; gap:10px; border:1px solid #dfe7e3; border-radius:12px; background:#fff; padding:7px 9px 7px 14px; margin-bottom:24px; }
.modern-app .settings-directory-search > .ui-icon { color:#688074; }
.modern-app .settings-directory-search input { flex:1; min-width:0; border:0; background:transparent; box-shadow:none; padding:8px 0; font-size:13px; }
.modern-app .settings-directory-search:focus-within { outline:2px solid #b9d6c7; outline-offset:2px; }
.modern-app .settings-directory-search .btn { min-height:34px; font-size:11px; padding:6px 10px; background:#f3f7f4; border:0; box-shadow:none; }
.modern-app .settings-directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.modern-app .settings-directory-group { min-width:0; border:1px solid #e1e8e3; border-radius:15px; background:#fff; overflow:hidden; }
.modern-app .settings-directory-group h3 { display:flex; align-items:center; gap:10px; padding:16px 18px; margin:0; background:#f8faf9; border-bottom:1px solid #edf1ee; color:#426252; font-size:13px; }
.modern-app .settings-directory-item { display:flex; align-items:center; justify-content:space-between; gap:18px; width:100%; padding:13px 18px; border:0; border-bottom:1px solid #f0f3f1; background:#fff; color:var(--smart-ink); font:inherit; cursor:pointer; text-align:left; }
.modern-app .settings-directory-item:last-child { border-bottom:0; }
.modern-app .settings-directory-item:hover { background:#f1f7f3; }
.modern-app .settings-directory-item:focus-visible { outline:2px solid #6b9c83; outline-offset:-3px; border-radius:8px; }
.modern-app .settings-directory-item > span { display:grid; gap:4px; min-width:0; }
.modern-app .settings-directory-item strong { font-size:13px; font-weight:650; }
.modern-app .settings-directory-item > span > span { color:#78857e; font-size:11px; line-height:1.5; }
.modern-app .settings-directory-item > .ui-icon { width:14px; color:#91a297; }
.modern-app .settings-smart-switcher { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid #e6ece8; }
.modern-app .settings-smart-switcher > .btn { display:flex; align-items:center; gap:8px; background:#fff; box-shadow:none; min-height:38px; }
.modern-app .settings-smart-select { display:flex; align-items:center; gap:10px; }
.modern-app .settings-smart-select label { color:#74857a; font-size:11px; white-space:nowrap; }
.modern-app .settings-smart-select select { min-width:190px; padding:8px 12px; border-radius:10px; font-size:12px; }
.modern-app .settings-editor-heading { margin-bottom:18px; }
.modern-app .settings-editor-hint { margin-top:9px; color:#728178; font-size:11px; }
.modern-app .settings-editor-hint summary { cursor:pointer; }
.modern-app .settings-editor-hint p { line-height:1.5; margin:7px 0 0; }
.modern-app .settings-directory .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:760px) {
  .modern-app .settings-directory-grid { grid-template-columns:1fr; gap:14px; }
  .modern-app .settings-directory-head h2,.modern-app .settings-editor-heading h2 { font-size:21px; }
  .modern-app .settings-directory-search { gap:7px; padding-left:10px; }
  .modern-app .settings-directory-search input { font-size:12px; }
  .modern-app .settings-smart-switcher { align-items:stretch; flex-direction:column; gap:10px; }
  .modern-app .settings-smart-switcher > .btn { align-self:flex-start; }
  .modern-app .settings-smart-select { justify-content:space-between; }
  .modern-app .settings-smart-select select { min-width:0; max-width:70%; }
}

/* Consistent workspace surfaces, shared by every business module. */
.modern-app.smart-workspace { --workspace-border:#e1e8e3; --workspace-muted:#718078; }
.modern-app .module-stack-shell { display:grid; gap:16px; min-width:0; }
.modern-app.smart-workspace .workspace-toolbar { background:#fff; border:1px solid var(--workspace-border); border-radius:15px; padding:18px 20px; margin:0; box-shadow:none; min-width:0; }
.modern-app .workspace-toolbar > .section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; margin:0 0 16px; }
.modern-app .workspace-toolbar > .section-head:last-child { margin-bottom:0; }
.modern-app .workspace-toolbar > .section-head > div:first-child { min-width:0; flex:1 1 200px; }
.modern-app .workspace-toolbar h3 { display:flex; align-items:center; gap:9px; margin:0 0 5px; font-size:19px; color:var(--smart-ink); letter-spacing:-.3px; }
.modern-app .workspace-toolbar h3 .ui-icon { width:18px; height:18px; color:#688572; }
.modern-app .workspace-toolbar > .section-head .subtle { font-size:12px; color:var(--workspace-muted); line-height:1.5; }
.modern-app .workspace-heading-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.modern-app .workspace-heading-actions .btn { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:8px 12px; font-size:12px; border-radius:9px; box-shadow:none; }
.modern-app .workspace-heading-actions > .status-chip { background:#f1f5f2; color:#597363; padding:5px 8px; margin-right:4px; }
.modern-app .workspace-toolbar > .institution-type-filter-panel { padding:14px 0 0; margin:0; border:0; border-top:1px solid #edf1ee; background:transparent; box-shadow:none; border-radius:0; }
.modern-app .workspace-toolbar > .institution-type-filter-panel .form-grid { margin:0; }
.modern-app .workspace-toolbar .request-filter-row { margin-top:14px; padding:12px 0 0; border:0; border-top:1px solid #edf1ee; border-radius:0; background:transparent; }
.modern-app .workspace-toolbar .request-filter-field > span,.modern-app .workspace-toolbar .field > label { font-size:11px; letter-spacing:0; text-transform:none; color:#6b8072; font-weight:600; }
.modern-app .workspace-toolbar .segmented-control { width:fit-content; max-width:100%; background:#f0f4f1; border:0; padding:3px; border-radius:9px; gap:2px; box-shadow:none; }
.modern-app .workspace-toolbar .segment { min-height:32px; padding:7px 13px; font-size:12px; border-radius:7px; }
.modern-app .workspace-toolbar .smart-status-filter { display:inline-flex; margin:0 0 0 8px; vertical-align:middle; }
.modern-app .workspace-toolbar .mailbox-segment-shell { margin:0; padding:0; background:transparent; border:0; }
.modern-app .workspace-legend { margin-top:12px; color:#738278; font-size:11px; }
.modern-app .workspace-legend summary { cursor:pointer; width:fit-content; padding:3px 0; }
.modern-app .workspace-legend .traffic-legend { margin:9px 0 0; padding:0; background:transparent; border:0; box-shadow:none; gap:16px; }
.modern-app .module-stack-shell > .list-table-head { margin:0; padding:0 17px; font-size:10px; letter-spacing:.04em; color:#798a7e; }
.modern-app .module-stack-shell > .table-list { border-radius:13px; }
.modern-app .module-stack-shell > .table-list .table-row-trigger { padding:15px 18px; }
.modern-app .module-stack-shell > .table-list .table-row-trigger.active { background:#f0f7f2; box-shadow:inset 3px 0 #5f9178; }
.modern-app .table-row-trigger:focus-visible,.modern-app .work-row:focus-visible { outline:2px solid #5e9278; outline-offset:-3px; }
.modern-app .table-row-trigger .request-item-primary strong { font-size:13px; line-height:1.5; }
.modern-app .module-stack-shell .placeholder,.modern-app .work-list .placeholder { background:#fbfcfb; border:0; border-radius:12px; padding:28px 20px; color:#738479; text-align:center; font-size:13px; line-height:1.6; }
.modern-app.smart-workspace .calendar-shell { background:#fff; border:1px solid var(--workspace-border); border-radius:15px; box-shadow:none; padding:18px; }
.modern-app .calendar-toolbar { gap:12px; padding-bottom:14px; border-bottom:1px solid #edf1ee; margin-bottom:15px; background:transparent; }
.modern-app .calendar-toolbar .btn,.modern-app .calendar-toolbar select { min-height:34px; border-radius:8px; box-shadow:none; font-size:11px; }
.modern-app .calendar-toolbar-title strong { font-size:15px; color:var(--smart-ink); }
.modern-app .calendar-toolbar-title span { font-size:11px; color:#78877e; }
.modern-app .calendar-day-card,.modern-app .calendar-month-cell { border-color:#e8ede9; background:#fff; box-shadow:none; border-radius:9px; }
.modern-app .calendar-day-card.is-today,.modern-app .calendar-month-cell.is-today { border-color:#93bba3; background:#f5faf6; }
.modern-app .calendar-day-head { background:transparent; border-bottom:1px solid #edf1ee; }
.modern-app .calendar-event-pill { border-radius:7px; box-shadow:none; }
.modern-app.smart-workspace .smart-place-grid .request-item { border-radius:13px; padding:18px; gap:10px; }
.modern-app .smart-place-grid .request-item-note { color:#7a877e; font-size:12px; line-height:1.5; }
.modern-app .smart-place-search { width:min(100%,420px); }
.modern-app .metric-grid-compact { margin-top:12px; margin-bottom:12px; }
.modern-app.smart-workspace .work-heading h2 { font-size:25px; letter-spacing:-.6px; }
.modern-app .work-controls { padding:0; margin:16px 0; }
.modern-app .work-list { box-shadow:none; }
.modern-app .work-tabs { gap:10px; padding:0 16px; }
.modern-app .work-tabs button { min-height:46px; padding:11px 7px; font-size:12px; }
.modern-app .unassigned-callout { border-radius:12px; box-shadow:none; background:#fff9ed; border:1px solid #ecdfc0; padding:14px 16px; }
.modern-app .work-overviews { border-top:1px solid #e3ebe5; margin-top:18px; padding-top:14px; }
.modern-app .work-overviews > summary { cursor:pointer; color:#5c7465; }
.modern-app .work-overviews > .actions { padding-top:12px; }
/* Existing forms and dialogs share one quiet hierarchy; status colors stay meaningful. */
.modern-app.smart-workspace .modal-card { background:#fff; }
.modern-app .modal-card > .section-head { gap:14px; padding-bottom:16px; border-bottom:1px solid #e7ede8; margin-bottom:18px; }
.modern-app .modal-card > .section-head h3 { color:var(--smart-ink); font-size:20px; line-height:1.4; letter-spacing:-.3px; }
.modern-app .modal-card > .section-head .actions { gap:7px; }
.modern-app .modal-card > .section-head .actions .btn { min-height:34px; padding:7px 11px; font-size:12px; box-shadow:none; }
.modern-app .modal-card .editor-section { background:#fff; background-image:none; border:1px solid #e5ebe6; border-radius:11px; box-shadow:none; padding:16px; }
.modern-app .modal-card .editor-section > h3,.modern-app .modal-card .section-lead h3 { font-size:14px; color:#375b47; margin-bottom:11px; }
.modern-app .modal-card .form-grid { gap:14px; }
.modern-app .modal-card .field > label { font-size:12px; color:#597161; font-weight:600; }
.modern-app .modal-card .field > .subtle { font-size:11px; line-height:1.5; }
.modern-app .modal-card input:not([type="checkbox"]):not([type="radio"]),.modern-app .modal-card select,.modern-app .modal-card textarea { border-radius:9px; border-color:#dce5de; background:#fff; box-shadow:none; font-size:13px; }
.modern-app .modal-card .detail-value,.modern-app .modal-card .readonly-box { border-radius:8px; border:1px solid #edf1ee; background:#f8faf8; color:#415c4a; padding:10px 12px; line-height:1.55; }
.modern-app .modal-card .hero-stat { border-radius:9px; background:#f7faf8; border:1px solid #e8eee9; box-shadow:none; }
.modern-app .modal-card .hero-stat > span { color:#75867b; font-size:11px; }
.modern-app .modal-card .hero-stat > strong { font-size:21px; }
.modern-app .modal-card .btn-danger { box-shadow:none; }
.modern-app .settings-content-shell,.modern-app .settings-chooser-shell { background:transparent; background-image:none; box-shadow:none; }
.modern-app .settings-content-shell .module-tile { background:#fff; border:1px solid #e1e8e3; border-radius:12px; box-shadow:none; padding:18px; }
.modern-app .settings-content-shell .module-tile-label { font-size:16px; }
.modern-app .settings-content-shell .module-tile-description,.modern-app .settings-content-shell .module-tile-footer { font-size:12px; }
.modern-app .reports-chart-card,.modern-app .reports-summary-card { background:#fff; background-image:none; border:1px solid #e1e8e3; border-radius:13px; box-shadow:none; }
/* Login uses the same calm surface while preserving configured logo and identity. */
.login-wrap { background:#f4f7f5; }
.login-wrap .login-card { border:1px solid #e0e8e2; border-radius:20px; background:#fff; box-shadow:0 16px 60px #224a3220; }
.login-wrap .login-card input { border-radius:10px; border-color:#dce5de; box-shadow:none; }
.login-wrap .login-card .btn { border-radius:10px; box-shadow:none; }
@media(max-width:1000px) {
  .modern-app .workspace-toolbar > .section-head > div:first-child { flex-basis:170px; }
}
@media(max-width:760px) {
  .modern-app.smart-workspace .workspace-toolbar { padding:16px; border-radius:13px; }
  .modern-app .module-stack-shell { gap:12px; }
  .modern-app .workspace-toolbar h3 { font-size:18px; }
  .modern-app .workspace-toolbar > .section-head { align-items:flex-start; gap:12px; }
  .modern-app .workspace-heading-actions { justify-content:flex-start; }
  .modern-app .workspace-heading-actions .btn { min-height:38px; padding:8px 10px; }
  .modern-app .workspace-toolbar .smart-status-filter { margin:8px 0 0; display:flex; }
  .modern-app .workspace-toolbar .segmented-control { width:100%; }
  .modern-app .workspace-toolbar .segment { flex:1; min-width:0; padding:7px 10px; }
  .modern-app .module-stack-shell > .table-list .table-row-trigger { padding:14px; }
  .modern-app .calendar-shell { padding:12px; }
  .modern-app .calendar-toolbar { flex-wrap:wrap; }
  .modern-app .calendar-toolbar-group { flex-wrap:wrap; }
  .modern-app .modal-card > .section-head h3 { font-size:18px; }
  .modern-app .modal-card .editor-section { padding:13px; }
  .modern-app .work-tabs { gap:6px; padding:0 10px; }
  .modern-app .work-tabs button { font-size:11px; padding:10px 5px; }
  .modern-app .unassigned-callout { flex-wrap:wrap; gap:10px; }
}

.modern-app.smart-workspace .modal-card .editor-section { background:#fff; background-image:none; box-shadow:none; }
.modern-app.smart-workspace .modal-card .editor-section::before { display:none; }
.modern-app.smart-workspace .modal-card .request-section-collapsible { padding:0; }
.modern-app.smart-workspace .modal-card .request-section-summary { padding:13px 15px; background:#f8faf9; }
.modern-app.smart-workspace .modal-card .request-section-summary:hover { background:#f0f6f2; }
.modern-app.smart-workspace .modal-card .request-section-summary::after { background:#edf3ef; border:0; color:#6e8577; }
.modern-app.smart-workspace .modal-card .request-section-body { padding:14px 15px; }
.modern-app.smart-workspace .modal-card .request-hero-grid .hero-stat > strong { font-size:15px; line-height:1.45; }
.modern-app .workspace-toolbar .mailbox-segment-shell { justify-content:flex-start; }
.modern-app .unassigned-callout > span:first-of-type { flex:1; }
.modern-app .report-chart-card { background:#fff; background-image:none; border:1px solid #e1e8e3; border-radius:13px; box-shadow:none; }
.modern-app .reports-kpi-grid .report-kpi-card { padding:12px 15px; border:1px solid #e3eae5; background:#fff; border-radius:10px; box-shadow:none; }
.modern-app .reports-kpi-grid .report-kpi-card::before { width:3px; border-radius:0; }
.modern-app .reports-kpi-grid .metric-value { font-size:23px; }
.modern-app .reports-kpi-grid .metric-meta { font-size:11px; }
.modern-app .report-drilldown-card { background:#fff; border:1px solid #e1e8e3; border-radius:11px; padding:14px 16px; box-shadow:none; }
.modern-app .report-drilldown-card:hover { background:#f6faf7; border-color:#aec8b7; box-shadow:none; }
.modern-app .report-drilldown-card .report-drilldown-value { font-size:21px; color:#355a45; }
.modern-app .report-drilldown-card.tone-danger .report-drilldown-value { color:#a04435; }
.modern-app .report-drilldown-card.tone-warn .report-drilldown-value { color:#926c25; }
.modern-app .report-drilldown-card .report-drilldown-meta { font-size:11px; color:#7a887f; }
.login-wrap .login-card .brand { min-width:0; }
.login-wrap .login-card .brand h1 { max-width:100%; min-width:0; }
.login-wrap .login-card .brand .brand-mark { max-width:100%; flex-wrap:wrap; font-size:clamp(1.2rem,3vw,2rem); line-height:1.15; }
.login-wrap .login-card .brand p { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .login-wrap { padding:16px; }
  .login-wrap .login-card { padding:24px; }
  .login-wrap .login-card .brand .brand-mark { font-size:clamp(1rem,4.8vw,1.75rem); }
  .login-wrap .login-card .brand p { font-size:12px; line-height:1.5; }
}

.modern-app .report-area-overview { margin-top:18px; }
.modern-app .report-area-scroll { max-width:100%; overflow:auto; }
.modern-app .report-area-table { width:100%; border-collapse:collapse; margin-top:12px; font-size:12px; }
.modern-app .report-area-table th,.modern-app .report-area-table td { padding:11px 12px; border-bottom:1px solid #e8eee9; text-align:right; white-space:nowrap; }
.modern-app .report-area-table thead th { background:#f6f9f7; color:#6b8072; font-size:11px; font-weight:600; }
.modern-app .report-area-table th:first-child { text-align:left; }
.modern-app .report-area-table tbody th { color:#365945; font-weight:600; }
.modern-app .report-area-table tbody tr:last-child > * { border-bottom:0; }

/* One set of frame values across modules and dialogs. */
:root {
  --frame-radius:14px;
  --frame-padding:16px;
  --frame-border:1px solid #e1e9e5;
  --frame-shadow:none;
}
.modern-app.smart-workspace :is(.card,.metric-card,.readonly-block,.smart-review,.request-action-preview,.request-contact-preview,.case-timeline-item,.editor-section,.workspace-toolbar,.calendar-shell,.modal-card,.placement-decision-card,.report-chart-card,.reports-summary-card,.report-kpi-card,.report-drilldown-card,.unassigned-callout,.settings-directory-group,.module-tile,.readonly-box,.detail-value,.hero-stat,.work-list),
.modern-app.smart-workspace .modal-card .editor-section,
.modern-app.smart-workspace .smart-place-grid .request-item,
.modern-app.smart-workspace .table-list:not(.smart-place-grid),
.login-wrap .login-card {
  border:var(--frame-border);
  border-radius:var(--frame-radius);
  box-shadow:var(--frame-shadow);
}
.modern-app.smart-workspace :is(.card,.metric-card,.readonly-block,.smart-review,.request-action-preview,.request-contact-preview,.case-timeline-item,.editor-section,.workspace-toolbar,.calendar-shell,.placement-decision-card,.report-chart-card,.reports-summary-card,.report-kpi-card,.report-drilldown-card,.unassigned-callout,.module-tile,.readonly-box,.detail-value,.hero-stat),
.modern-app.smart-workspace .modal-card .editor-section,
.modern-app.smart-workspace .smart-place-grid .request-item,
.modern-app.smart-workspace .modal-card:not(.smart-case),
.modern-app.smart-workspace .smart-case-panel,
.modern-app.smart-workspace .smart-case > .section-head,
.modern-app.smart-workspace .settings-directory-group h3,
.modern-app.smart-workspace .table-row-trigger,
.modern-app.smart-workspace .work-row,
.login-wrap .login-card {
  padding:var(--frame-padding);
}
/* Grouped lists and collapsible sections put their spacing on the content. */
.modern-app.smart-workspace .smart-case,
.modern-app.smart-workspace .modal-card .request-section-collapsible {
  padding:0;
}
.modern-app.smart-workspace .modal-card .request-section-summary,
.modern-app.smart-workspace .modal-card .request-section-body {
  padding:var(--frame-padding);
}
.modern-app.smart-workspace .smart-case-tabs {
  padding-inline:var(--frame-padding);
}
.modern-app.smart-workspace .workspace-toolbar > .institution-type-filter-panel {
  border:0; border-top:var(--frame-border); border-radius:0;
  padding:var(--frame-padding) 0 0; box-shadow:none;
}
@media (max-width:760px) {
  :root { --frame-padding:12px; }
}

/* A shared page rhythm: heading/actions, filters, then content. */
.modern-app.smart-workspace { --page-gap:16px; --page-title-size:22px; }
.modern-app.smart-workspace :is(.module-stack-shell,.work-home,.settings-layout,.settings-directory,#reports-module-root) {
  display:grid; grid-template-columns:minmax(0,1fr); gap:var(--page-gap);
  min-width:0; width:100%; max-width:none; margin:0;
}
.modern-app.smart-workspace :is(.module-stack-shell,.work-home,.settings-layout,.settings-directory,#reports-module-root) > * { margin-block:0; }
.modern-app.smart-workspace .workspace-page-heading :is(h2,h3) {
  display:flex; align-items:center; gap:9px; margin:0 0 6px;
  font-size:var(--page-title-size); font-weight:650; line-height:1.35;
  letter-spacing:-.4px; color:var(--smart-ink);
}
.modern-app.smart-workspace .workspace-page-heading :is(h2,h3) .ui-icon {
  width:18px; height:18px; color:#688572;
}
.modern-app.smart-workspace .workspace-page-heading :is(p,.subtle) {
  margin:0; font-size:12px; line-height:1.55; color:var(--workspace-muted);
}
.modern-app.smart-workspace :is(.work-heading,.settings-directory-head) {
  display:flex; align-items:flex-start; justify-content:space-between;
  flex-wrap:wrap; gap:var(--page-gap);
}
.modern-app.smart-workspace :is(.work-heading,.settings-directory-head) > div { min-width:0; flex:1 1 220px; }
.modern-app.smart-workspace .settings-editor-heading { display:block; }
.modern-app.smart-workspace :is(.settings-directory-grid,.reports-grid,.smart-place-grid,.form-grid) { gap:var(--page-gap); }
.modern-app.smart-workspace .workspace-page-heading .btn {
  min-height:36px; padding:8px 12px; font-size:12px; border-radius:9px;
}
.modern-app.smart-workspace .settings-directory-search { margin:0; }
.modern-app.smart-workspace .work-heading .focus-kicker { margin-bottom:6px; }
@media (max-width:760px) {
  .modern-app.smart-workspace { --page-gap:12px; --page-title-size:20px; }
  .modern-app.smart-workspace .workspace-heading-actions { justify-content:flex-start; }
}

.modern-app .dialog-save-status { display:block; width:fit-content; margin:5px 0; color:#4c6b59; font-size:11px; font-weight:600; line-height:1.5; }
.modern-app .dialog-save-status[data-save-state="dirty"] { color:#896020; }
.modern-app .dialog-save-status[data-save-state="saving"] { color:#17695a; }
.modern-app .dialog-save-status[data-save-state="error"] { color:#a53838; }

#idle-session-warning { position: fixed; z-index: 2147483647; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: min(640px, calc(100vw - 32px)); padding: 16px 20px; border: 1px solid #d9a64b; border-radius: 14px; background: #fffbeb; color: #713f12; box-shadow: 0 12px 36px #0f172a26; font-size: .9rem; }
#idle-session-warning button { flex-shrink: 0; }
@media(max-width: 600px) { #idle-session-warning { flex-direction: column; align-items: stretch; bottom: 12px; } }

.availability-list { display: grid; gap: 8px; }
.availability-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border, #dbe3eb); border-radius: 10px; background: #f8fafc; }
.availability-item span { font-size: .86rem; text-align: right; }
.vacancy-plans { display: grid; gap: 10px; }
.vacancy-plan-row { display: grid; grid-template-columns: minmax(135px,1fr) 100px 145px minmax(150px,1.5fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--border, #dbe3eb); border-radius: 12px; background: #f8fafc; }
.vacancy-plan-row .field { min-width: 0; margin: 0; }
.vacancy-plan-row input, .vacancy-plan-row select { width: 100%; box-sizing: border-box; }
.vacancy-forecast { padding: 10px 12px; border-radius: 10px; background: #eff6ff; color: #1e40af; font-weight: 600; font-size: .9rem; }
@media(max-width: 1000px) { .vacancy-plan-row { grid-template-columns: 1fr 1fr; } .vacancy-plan-note { grid-column: 1 / -1; } }
@media(max-width: 600px) { .availability-item { flex-direction: column; gap: 4px; } .availability-item span { text-align: left; } .vacancy-plan-row { grid-template-columns: 1fr; } }

/* Long navigation labels must stay inside the fixed-width sidebar. */
.modern-app.smart-workspace .sidebar { min-width: 0; }
.smart-workspace .smart-navigation,
.smart-workspace .smart-navigation :is(.smart-nav-group,.sidebar-more) { min-width: 0; max-width: 100%; }
.smart-workspace .smart-navigation :is(.smart-nav-group,.sidebar-more) > div { min-width: 0; grid-template-columns: minmax(0,1fr); }
.smart-workspace .smart-navigation :is(.nav-button,summary) { box-sizing: border-box; min-width: 0; max-width: 100%; }
.smart-workspace .smart-navigation .nav-button { width: 100%; transform: none; }
.smart-workspace .smart-navigation :is(.nav-button,summary) > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; hyphens: auto; line-height: 1.4; }

.availability-item-detailed { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.availability-item-detailed > span { text-align: left; }
.availability-stock-numbers { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.availability-stock-numbers > span { display: inline-flex; gap: 6px; font-size: .85rem; }
.availability-item-detailed small { color: #64748b; }

.request-upcoming-vacancies { flex-basis: 100%; min-width: 0; display: grid; gap: 6px; font-size: .85rem; }
.request-upcoming-vacancies > strong { font-size: .8rem; color: #475569; }
.request-upcoming-vacancies ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.request-upcoming-vacancies li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 6px; border-top: 1px solid #e2e8f0; }
.request-upcoming-vacancies time { font-weight: 600; }
.request-upcoming-vacancies small { color: #64748b; }
.availability-item:has(.request-upcoming-vacancies) { flex-wrap: wrap; }
