﻿:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --brand: #0f766e;
  --brand-dark: #134e4a;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.role-editor-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  padding: 1px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
}

.header-link:hover {
  background-color: #e6fffb;
}

.header-button {
  border: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.header-button:hover {
  filter: brightness(1.03);
}

.header-button-secondary {
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: none;
}

.header-button-secondary:hover {
  filter: none;
  background: #f0fdfa;
}

.header-dropdown {
  position: relative;
}

.header-dropdown > summary {
  list-style: none;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 12px;
}

.header-dropdown > summary::-webkit-details-marker {
  display: none;
}

.header-dropdown > summary::after {
  content: "▾";
  font-size: 0.82rem;
  line-height: 1;
}

.header-dropdown[open] > summary {
  background: #ecfdf5;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 22;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.header-dropdown-item {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--brand-dark);
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-dropdown-item.role-editor-dropdown-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 999px;
}

.header-dropdown-item.role-editor-dropdown-action span[aria-hidden="true"] {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  line-height: 1;
}

.header-dropdown-item:hover {
  background: #ecfdf5;
}

.header-dropdown-item[disabled],
.header-dropdown-item.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.page-shell-login {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 16px;
}

.login-stack {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: -22px;
}

.login-brand-panel,
.login-panel {
  padding: 32px 32px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-color: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(230, 255, 251, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -50px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.1);
}

.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 232px;
  height: 168px;
  margin-bottom: 26px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.14);
  overflow: hidden;
}

.hero-logo-wrap-large {
  width: 460px;
  height: 320px;
  margin-bottom: -80px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-logo-svg {
  width: 182px;
  height: auto;
}

.hero-logo-svg-large {
  width: 460px;
}

.logo-line {
  stroke: #0f3d3a;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-cover {
  fill: var(--bg);
}

.sun-circle {
  transform: translateY(58px);
  animation: sunrise 2s ease-out forwards;
}

.logo-rays {
  opacity: 0;
  animation: raysFade 0.8s ease-out forwards;
  animation-delay: 1.1s;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.login-title,
.dashboard-title {
  margin: 0 0 12px;
  font-size: 2rem;
}

.login-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-headline {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-subline {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-copy,
.login-copy,
.dashboard-copy {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-title {
  max-width: 14ch;
  font-size: 2.4rem;
  line-height: 1.08;
}

.hero-copy {
  max-width: 48ch;
}

@keyframes sunrise {
  from {
    transform: translateY(58px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes raysFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes passwordCaretBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-panel-centered {
  width: 100%;
  max-width: 460px;
  text-align: left;
}

.login-password-field {
  position: relative;
}

.login-password-field .text-input {
  padding-right: 56px;
}

.login-password-field.is-password-masked .text-input {
  color: transparent;
  caret-color: var(--text);
}

.login-password-field.is-password-masked .text-input:not(:placeholder-shown) {
  caret-color: transparent;
}

.login-password-field.is-password-masked.is-password-selecting .text-input {
  color: var(--text);
  caret-color: var(--text);
}

.login-password-field.is-password-masked .text-input:-webkit-autofill,
.login-password-field.is-password-masked .text-input:-webkit-autofill:hover,
.login-password-field.is-password-masked .text-input:-webkit-autofill:focus {
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
}

.login-password-field.is-password-masked.is-password-selecting .text-input:-webkit-autofill,
.login-password-field.is-password-masked.is-password-selecting .text-input:-webkit-autofill:hover,
.login-password-field.is-password-masked.is-password-selecting .text-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.login-password-field.is-password-visible .text-input:-webkit-autofill,
.login-password-field.is-password-visible .text-input:-webkit-autofill:hover,
.login-password-field.is-password-visible .text-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.login-password-field.is-password-masked .text-input::placeholder {
  color: #94a3b8;
}

.password-echo {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 56px;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.password-echo-caret {
  display: inline-block;
  width: 2px;
  height: 1.25em;
  margin: 0 1px;
  background: var(--text);
  vertical-align: -0.2em;
  animation: passwordCaretBlink 1s steps(2, start) infinite;
}

.text-input-invalid ~ .password-echo .password-echo-caret {
  background: #b42318;
}

.login-password-field.is-password-visible .password-echo {
  display: none;
}

.login-password-field.is-password-selecting .password-echo {
  display: none;
}

.password-visibility-button {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: none;
}

.password-visibility-button:hover,
.password-visibility-button:focus-visible {
  background: transparent;
  color: #64748b;
  box-shadow: none;
}

.password-visibility-button:focus {
  outline: none;
  box-shadow: none;
}

.password-visibility-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.password-visibility-button:active {
  box-shadow: none;
}

.login-password-field .text-input-invalid ~ .password-visibility-button {
  background: transparent;
  color: #b42318;
  box-shadow: none;
}

.login-password-field .text-input-invalid ~ .password-visibility-button:hover,
.login-password-field .text-input-invalid ~ .password-visibility-button:focus-visible {
  background: transparent;
  color: #b42318;
}

.password-visibility-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.required-marker {
  margin-left: 3px;
  color: #b42318;
  font-weight: 900;
}

.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
}

.text-input-invalid {
  border-color: #b42318;
  background: #fff7f6;
}

.text-input::placeholder {
  font-size: 0.82rem;
}

.text-input:focus {
  outline: 2px solid #99f6e4;
  border-color: var(--brand);
}

.text-input-invalid:focus {
  border-color: #b42318;
  outline-color: #fecaca;
}

.field-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-status-success {
  color: #166534;
}

.field-status-error {
  color: #b42318;
}

.field-status-muted {
  color: var(--muted);
}

.inline-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.inline-control-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) auto;
  gap: 10px;
  align-items: center;
}

.button-primary {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.button-primary:hover {
  filter: brightness(1.03);
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.2);
}

.presence-indicator {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0;
  min-height: 38px;
}

.presence-indicator[hidden] {
  display: none;
}

.presence-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.presence-avatar:first-child {
  margin-left: 0;
}

.presence-avatar-extra {
  background: #52606d;
}

.message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #b42318;
  font-weight: 600;
}

.message-success {
  color: #0f766e;
}

.message-error {
  color: #b42318;
}

.login-request-access {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.login-request-access a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.login-request-access a:hover,
.login-request-access a:focus-visible {
  text-decoration: underline;
}

.access-request-shell {
  padding-bottom: 48px;
}

.access-request-panel {
  padding-bottom: 24px;
}

.access-request-message {
  min-height: 0;
  margin: -2px 0 0;
  font-size: 0.9rem;
}

.access-request-message:empty {
  display: none;
}

.access-request-message:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f6;
}

.access-request-message.message-success:not(:empty) {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.access-request-select {
  font-weight: 500;
}

.access-request-select:invalid {
  color: var(--muted);
}

.access-request-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.access-request-select-shell {
  position: relative;
}

.access-request-select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  background: #ffffff;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.access-request-select-control::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 16px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.access-request-select-control:disabled {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

.access-request-select-control:disabled::after {
  border-color: var(--muted);
}

.access-request-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.access-request-select-search {
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.access-request-select-search:focus {
  outline: 2px solid #99f6e4;
  border-color: var(--brand);
}

.access-request-select-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.access-request-select-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.access-request-select-option:hover,
.access-request-select-option:focus-visible,
.access-request-select-option.is-highlighted {
  outline: none;
  background: #e6fffb;
  color: var(--brand-dark);
}

.access-request-select-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.header-link-active {
  background-color: #e6fffb;
}

.dashboard-shell {
  max-width: 1920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow-x: clip;
}

@media (min-width: 2400px) {
  .dashboard-shell {
    max-width: 2800px;
  }

  .dashboard-module-grid-simple {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.dashboard-header {
  background-color: rgba(255, 255, 255, 0.98);
}

.access-denied-shell {
  min-height: calc(100vh - 93px);
  display: grid;
  place-items: center;
}

.access-denied-panel {
  width: min(100%, 680px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.access-denied-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.access-denied-title {
  max-width: 16ch;
  margin-bottom: 40px;
  line-height: 1.08;
}

.access-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
}

.access-denied-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: min(220px, 100%);
  max-width: 100%;
  text-align: center;
  text-decoration: none;
}

.access-denied-action.header-button-secondary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.access-denied-action.header-button-secondary:hover,
.access-denied-action.header-button-secondary:focus-visible {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  filter: brightness(1.03);
}

.access-denied-status {
  color: var(--muted);
}

.dashboard-brand-logo {
  width: 56px;
  height: 56px;
  padding: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.dashboard-hero-simple {
  grid-template-columns: 1fr;
}

.dashboard-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0 0 14px;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dashboard-copy {
  max-width: 58ch;
  margin: 0;
}

.dashboard-highlight,
.stat-card,
.action-card,
.board-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-highlight {
  padding: 28px;
  background: linear-gradient(160deg, #0f766e 0%, #134e4a 100%);
  color: #ffffff;
}

.dashboard-highlight-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.dashboard-highlight-value {
  display: block;
  margin-bottom: 12px;
  font-size: 1.85rem;
  line-height: 1.08;
}

.dashboard-highlight-text {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 22px;
}

.stat-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.stat-meta {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.dashboard-section,
.board-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-module-grid-simple {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.dashboard-module-section,
.dashboard-news-panel {
  margin-top: 24px;
  scroll-margin-top: 96px;
}

.dashboard-module-section {
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 34px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.dashboard-section-title-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-section-title-row .section-title {
  margin: 0;
}

.dashboard-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: help;
  box-shadow: none;
  line-height: 1;
}

.dashboard-help-button:hover,
.dashboard-help-button:focus-visible {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.34);
  outline: none;
}

.dashboard-help-popover {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 10;
  width: min(320px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.dashboard-help-button:hover + .dashboard-help-popover,
.dashboard-help-button:focus-visible + .dashboard-help-popover {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dashboard-module-section.is-section-drop-target {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.045);
}

.dashboard-news-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(255, 255, 255, 0.92) 48%),
    #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.dashboard-news-card {
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-news-card strong {
  display: block;
  margin: 0;
}

.dashboard-task-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0%, rgba(255, 255, 255, 0.96) 52%),
    #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

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

.dashboard-task-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 124px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-task-card-priority {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dashboard-task-value {
  display: block;
  margin: 0;
  color: var(--brand-dark);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.dashboard-task-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.dashboard-ticket-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.dashboard-task-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-task-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-task-card-link:hover .dashboard-task-value,
.dashboard-task-card-link:hover strong {
  color: var(--brand);
}

.dashboard-ticket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dashboard-ticket-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 10px 14px;
  border: 1px solid #e5edf5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.dashboard-ticket-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ticket-list strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.dashboard-ticket-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-task-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-task-link:hover {
  background: #ccfbf1;
}

.dashboard-ticket-analytics {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-ticket-analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-ticket-analytics-head h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
}

.dashboard-ticket-analytics-head p,
.dashboard-ticket-analytics-message,
.dashboard-ticket-analytics-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-ticket-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px;
}

.dashboard-ticket-range label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-range-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-range-button:hover {
  background: #ccfbf1;
}

.dashboard-range-input {
  width: 150px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.dashboard-ticket-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-ticket-kpi {
  padding: 14px 16px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #ffffff;
}

.dashboard-ticket-kpi span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-ticket-kpi strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.dashboard-ticket-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 168px;
  padding: 12px 8px 4px;
  overflow-x: auto;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-ticket-chart-bar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 6px;
  height: 142px;
  min-width: 42px;
}

.dashboard-ticket-chart-value {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-ticket-chart-column {
  width: 100%;
  max-width: 34px;
  height: var(--ticket-bar-height);
  min-height: 6px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

.dashboard-ticket-chart-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-ticket-analytics-message {
  margin-top: 10px;
}

.dashboard-drop-zone {
  min-height: 252px;
  padding: 10px;
  border: 1px dashed rgba(15, 118, 110, 0.14);
  border-radius: 30px;
  background: rgba(248, 250, 252, 0.52);
}

.dashboard-drop-zone.is-drop-target {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.07);
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-color: var(--surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.module-card-favorites {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.module-card-assets {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.module-card-simple {
  justify-content: flex-start;
  min-height: 220px;
  padding-top: 54px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.module-card-simple:active {
  cursor: grabbing;
}

.module-card-simple.is-dragging {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.94;
  transform: rotate(1deg) scale(1.02);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.24);
}

body.dashboard-card-dragging .module-card-simple:not(.is-dragging) {
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.module-card-simple.is-swap-target {
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), 0 18px 36px rgba(15, 23, 42, 0.08);
}

.module-card-placeholder {
  min-height: 220px;
  border: 2px dashed rgba(15, 118, 110, 0.22);
  border-radius: 28px;
  background: rgba(15, 118, 110, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

body.dashboard-card-dragging {
  cursor: grabbing;
}

.dashboard-favorite-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #d97706;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.dashboard-favorite-toggle:hover {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.34);
}

.module-card-simple .section-title {
  min-height: 3.5em;
  font-size: clamp(1.2rem, 6.2cqi, 1.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.module-card-simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  border-color: #bfd3e6;
}

.module-card-link {
  text-decoration: none;
  color: inherit;
}

.module-card-simple::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #0f766e 0%, #2aa79d 100%);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.module-card-simple:hover::before,
.module-card-simple:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.module-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-shell::before,
.dashboard-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.8;
}

.dashboard-shell::before {
  top: -40px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0) 72%);
}

.dashboard-shell::after {
  top: 40px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, rgba(217, 119, 6, 0) 72%);
}

.asset-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.asset-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.action-card-accent {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-color: rgba(15, 118, 110, 0.24);
}

.favorites-placeholder {
  display: flex;
  flex: 1;
}

.favorites-placeholder-box {
  width: 100%;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed #b8c8d8;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.favorites-placeholder-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.favorites-placeholder-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.mini-stat-card {
  padding: 18px;
  border: 1px solid #dfe8f0;
  border-radius: 20px;
  background-color: #f8fafc;
}

.mini-stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.mini-stat-value {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

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

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 190px;
  padding: 32px 26px 26px;
  border-radius: 28px;
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-card:hover,
.action-card:focus-within {
  transform: translateY(-4px);
  border-color: #bfd3e6;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.action-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.action-card-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 4px;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #0f766e 0%, #2aa79d 100%);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.action-card:hover::before,
.action-card:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.action-card h3,
.timeline-item strong,
.task-item strong {
  display: block;
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.action-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 5.4cqi, 1.42rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.action-card p,
.timeline-item p,
.task-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-overview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.process-overview-card-wide {
  grid-column: span 2;
}

.process-overview-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.process-overview-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-overview-list li {
  padding-left: 14px;
  border-left: 3px solid rgba(15, 118, 110, 0.28);
  color: var(--muted);
  line-height: 1.55;
}

.process-overview-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.process-overview-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.board-card {
  padding: 24px;
}

.board-card-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.task-list,
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-item,
.timeline-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background-color: #f8fafc;
  border: 1px solid #e5edf5;
}

.timeline-item {
  display: block;
}

.task-badge {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
}

.task-badge-muted {
  background-color: #e0f2fe;
  color: #0c4a6e;
}

.form-shell {
  display: flex;
}

.form-card {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-color: var(--surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.create-role-card {
  max-width: 1180px;
}

.create-role-toolbar {
  position: sticky;
  top: var(--create-role-header-height, 93px);
  z-index: 999;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.94);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.create-role-toolbar-actions {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.create-role-toolbar-restore {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  font-size: 1.28rem;
  cursor: pointer;
  user-select: none;
  caret-color: transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

body.create-role-chrome-hidden .site-header,
body.create-role-chrome-hidden .create-role-toolbar,
.create-role-toolbar[hidden] {
  display: none;
}

body.create-role-chrome-hidden .create-role-toolbar-restore:not([hidden]) {
  display: inline-flex;
}

body.create-role-chrome-hidden .dashboard-shell {
  padding-top: 74px;
}

.asset-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-section-title {
  margin: 8px 0 -4px;
  padding-top: 6px;
  border-top: 1px solid #e5edf5;
  color: var(--brand-dark);
  font-size: 1rem;
}

.asset-form .form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.select-input {
  background-color: #ffffff;
  min-height: 52px;
  padding-right: 52px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-dark) 50%),
    linear-gradient(135deg, var(--brand-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}

.select-input:disabled {
  background-color: #f8fafc;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

.select-input.text-input-invalid {
  background-color: #fff7f6;
}

.select-input option {
  color: var(--text);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

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

.form-button {
  width: auto;
  min-width: 260px;
}

.create-role-ticket-note-card {
  max-width: 560px;
}

.create-role-ticket-note-field {
  min-height: 128px;
  margin-top: 10px;
  resize: vertical;
  line-height: 1.55;
}

.button-secondary {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: none;
}

.button-secondary:hover {
  filter: none;
  background: #f0fdfa;
}

.button-danger {
  width: auto;
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: #fff7f6;
  color: #b42318;
  box-shadow: none;
}

.button-danger:hover {
  filter: none;
  background: #fee4e2;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.management-grid-wide {
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.35fr);
}

.management-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.checkbox-grid[hidden] {
  display: none;
}

.permission-group-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.permission-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.permission-group {
  padding: 18px;
  border: 1px solid #e5edf5;
  border-radius: 20px;
  background-color: #f8fafc;
}

.permission-group-head {
  margin-bottom: 0;
}

.permission-group-title {
  display: block;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.permission-group-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.permission-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.permission-group-toggle + .checkbox-grid {
  margin-top: 14px;
}

.permission-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.permission-group-actions .role-editor-tool-button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.permission-group-actions + .checkbox-grid {
  margin-top: 14px;
}

.permission-group-toggle[aria-expanded="true"] .permission-group-indicator {
  transform: rotate(180deg);
}

.permission-group-indicator {
  color: var(--brand-dark);
  font-weight: 900;
  transition: transform 0.16s ease;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background-color: #f8fafc;
}

.checkbox-card-active {
  border-color: #99f6e4;
  background-color: #e6fffb;
}

.checkbox-card input {
  margin-top: 2px;
}

.checkbox-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-title {
  font-weight: 700;
}

.checkbox-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.entity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entity-list-compact {
  gap: 10px;
  margin-bottom: 20px;
}

.entity-card {
  padding: 20px;
  border: 1px solid #e5edf5;
  border-radius: 20px;
  background-color: #f8fafc;
}

.it-ticket-board {
  margin-top: 20px;
}

.it-ticket-card {
  background: #ffffff;
}

.it-ticket-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  margin-top: 18px;
}

.it-ticket-permissions {
  margin-top: 22px;
}

.it-ticket-permission-group {
  background: #ffffff;
}

.it-ticket-response {
  min-height: 96px;
  resize: vertical;
}

.it-ticket-save-button {
  grid-column: 2;
  justify-self: start;
  width: auto;
  min-width: 180px;
}

.ticket-shell {
  max-width: 1920px;
}

.ticket-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.ticket-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e5edf5;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.74);
}

.ticket-perspective-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #ffffff;
}

.ticket-toggle-button {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.ticket-toggle-button.is-active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.ticket-filter {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ticket-search-filter {
  flex: 1;
  min-width: 260px;
}

.ticket-column-menu {
  position: relative;
  margin-left: auto;
}

.ticket-column-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ticket-column-menu summary::-webkit-details-marker {
  display: none;
}

.ticket-column-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
  width: min(420px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.ticket-column-option {
  padding: 10px;
}

.ticket-section-head {
  align-items: center;
}

.ticket-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5edf5;
  border-radius: 22px;
}

.ticket-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background: #ffffff;
}

.ticket-table th,
.ticket-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e5edf5;
  text-align: left;
  vertical-align: top;
}

.ticket-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ticket-table td strong,
.ticket-table td span {
  display: block;
}

.ticket-table td span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ticket-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.ticket-history-drawer {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(4px);
}

.ticket-history-drawer.is-open {
  display: flex;
}

.ticket-history-card {
  width: min(560px, 100vw);
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.18);
}

.ticket-detail-card {
  width: min(720px, 100vw);
}

.ticket-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.ticket-detail-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e5edf5;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.ticket-detail-meta strong {
  color: var(--text);
}

.ticket-detail-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #fbfcfd;
}

.ticket-detail-description {
  margin: 10px 0 0;
  color: #374151;
  line-height: 1.65;
}

.ticket-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ticket-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ticket-detail-section-head h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.ticket-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-history-item {
  padding: 14px 16px;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: #f8fafc;
}

.ticket-history-item strong {
  display: block;
  margin-bottom: 6px;
}

.ticket-history-item span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.ticket-audit-list {
  gap: 10px;
}

.ticket-conversation-item {
  background: #ffffff;
}

.ticket-conversation-item-system {
  background: #f8fafc;
}

.ticket-conversation-meta,
.ticket-chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.ticket-conversation-item p {
  margin: 10px 0 0;
  color: #374151;
  line-height: 1.62;
}

.ticket-chat-section {
  background: #ffffff;
}

.ticket-chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #f8fafc;
}

.ticket-chat-message {
  display: flex;
  justify-content: flex-start;
}

.ticket-chat-message-own {
  justify-content: flex-end;
}

.ticket-chat-bubble {
  max-width: min(82%, 440px);
  padding: 12px 14px;
  border: 1px solid #e5edf5;
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ticket-chat-message-own .ticket-chat-bubble {
  border-color: rgba(15, 118, 110, 0.22);
  border-radius: 18px 18px 6px 18px;
  background: #e9fbf7;
}

.ticket-chat-meta strong {
  color: var(--text);
  font-size: 0.86rem;
}

.ticket-chat-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ticket-chat-bubble p {
  margin: 8px 0 0;
  color: #263244;
  line-height: 1.55;
}

.ticket-chat-attachments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ticket-chat-image-link,
.ticket-chat-file-link {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
}

.ticket-chat-image-link img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.ticket-chat-image-link span,
.ticket-chat-file-link span {
  font-size: 0.86rem;
  font-weight: 800;
}

.ticket-chat-file-link small {
  color: var(--muted);
  font-weight: 700;
}

.ticket-chat-composer {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 18px;
  background: #f0fdfa;
}

.ticket-chat-composer textarea {
  min-height: 86px;
  resize: vertical;
}

.ticket-chat-file-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ticket-chat-file-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.ticket-chat-file-summary button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 900;
  cursor: pointer;
}

.ticket-chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.ticket-chat-composer-actions .field-status {
  flex: 1;
  margin: 0;
}

.ticket-attach-button {
  cursor: pointer;
}

.ticket-file-input {
  display: none;
}

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

.entity-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.entity-card-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background-color: #e6fffb;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-muted {
  background-color: #eef2f6;
  color: var(--muted);
}

.entity-action {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #d9e2ec;
}

.entity-action:hover {
  background-color: #f0fdfa;
}

.entity-action-block {
  width: 100%;
  text-align: left;
}

.entity-action-active {
  background-color: #e6fffb;
  border-color: #99f6e4;
}

.resource-request-card {
  display: grid;
  gap: 14px;
}

.resource-request-copy {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

.resource-request-items {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #ffffff;
}

.resource-request-items div {
  display: grid;
  gap: 3px;
}

.resource-request-items span,
.resource-request-items small {
  color: #52606d;
}

.resource-decision-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 18px;
  background: #f0fdfa;
}

.resource-category-step,
.resource-dynamic-fields {
  display: grid;
  gap: 18px;
}

.resource-category-pending {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #f8fafc;
}

.resource-category-pending[hidden] {
  display: none;
}

.resource-dynamic-fields[hidden] {
  display: none;
}

.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resource-help-wrap {
  position: relative;
  display: inline-flex;
}

.resource-help-button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 0.72rem;
}

.resource-help-popover {
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  display: none;
  width: min(360px, 72vw);
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.resource-help-wrap:hover .resource-help-popover,
.resource-help-wrap:focus-within .resource-help-popover {
  display: block;
  opacity: 1;
  transform: none;
}

.resource-items-section {
  padding: 18px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #f8fafc;
}

.resource-items-head {
  align-items: center;
  margin-bottom: 14px;
}

.resource-items-list {
  display: grid;
  gap: 14px;
}

.resource-item-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e8f2;
  border-radius: 14px;
  background: #ffffff;
}

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

.resource-item-head h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1rem;
}

.resource-item-grid {
  gap: 14px;
}

.resource-item-total {
  justify-content: flex-end;
  min-height: 86px;
  padding: 0 16px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #f8fafc;
}

.resource-item-total strong,
.resource-total-bar strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.resource-total-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5edf5;
  color: #334155;
  font-weight: 700;
}

.resource-autocomplete-field {
  position: relative;
}

.resource-autocomplete-results {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #c9d8e6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.resource-autocomplete-results[hidden] {
  display: none;
}

.resource-autocomplete-results button,
.resource-autocomplete-results p {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  text-align: left;
}

.resource-autocomplete-results button {
  cursor: pointer;
}

.resource-autocomplete-results button:hover,
.resource-autocomplete-results button:focus-visible {
  background: #f0fdfa;
}

.resource-create-link {
  justify-content: center;
  margin-top: 0;
}

.role-editor-page {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f4f6f8;
}

body.role-header-hidden .site-header {
  display: none;
}

body.role-header-hidden .role-editor-page {
  flex: 1;
}

.role-editor-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.role-editor-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 46px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.94);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.role-editor-help-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  z-index: 7;
  display: none;
  width: min(420px, calc(100vw - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(217, 226, 236, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

.role-editor-warning-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  z-index: 7;
  display: none;
  width: min(520px, calc(100vw - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(252, 165, 165, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.14);
  backdrop-filter: blur(12px);
}

.role-editor-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  z-index: 7;
  display: none;
  width: min(420px, calc(100vw - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(217, 226, 236, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

body.role-help-open .role-editor-help-panel {
  display: block;
}

body.role-warnings-open .role-editor-warning-panel {
  display: block;
}

body.role-search-open #roleEditorSearchPanel {
  display: block;
}

body.role-user-search-open #roleEditorUserSearchPanel {
  display: block;
}

.role-editor-help-panel h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.role-editor-warning-panel h2 {
  margin: 0 0 12px;
  color: #7f1d1d;
  font-size: 0.95rem;
}

.role-editor-help-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.role-editor-help-panel p:last-child {
  margin-bottom: 0;
}

.role-plan-warning-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #fee2e2;
}

.role-plan-warning-section[hidden] {
  display: none;
}

.role-plan-warning-section h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-plan-warning-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.role-plan-warning-section li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-plan-warning-section li::marker {
  color: #b42318;
}

.role-plan-warning-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #991b1b;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}

.role-plan-warning-link:hover {
  color: #7f1d1d;
}

.role-plan-warning-person {
  display: grid;
  gap: 5px;
  padding: 8px 0;
}

.role-plan-warning-person.is-highlighted {
  border-radius: 10px;
  background: #fff1f2;
  box-shadow: 0 0 0 6px #fff1f2;
}

.role-plan-warning-person-name {
  color: #991b1b;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-plan-warning-person-meta {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-plan-warning-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

@media (max-height: 720px) {
  .role-editor-warning-panel {
    max-height: min(460px, calc(100vh - 170px));
    overflow-y: auto;
  }
}

.role-search-input {
  margin-top: 8px;
}

.role-revision-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.role-revision-filter .role-editor-tool-button {
  min-height: 47px;
  padding: 10px 14px;
}

.role-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  margin-top: 12px;
  overflow-y: auto;
}

.role-search-result {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.role-search-result-card {
  display: grid;
  gap: 10px;
  cursor: default;
}

.role-search-result-main {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.role-search-result:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f0fdfa;
}

.role-search-result-title {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.role-search-result-meta,
.role-search-empty {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

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

.role-template-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.role-template-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.role-template-chip:hover {
  background: #ccfbf1;
}

body.role-toolbar-hidden .role-editor-toolbar {
  display: none;
}

.role-revision-preview-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
  background: #f0fdfa;
  color: var(--brand-dark);
}

.role-revision-preview-bar[hidden] {
  display: none;
}

.role-revision-preview-copy {
  min-width: 0;
}

.role-revision-preview-copy .section-kicker,
.role-revision-preview-copy h2,
.role-revision-preview-copy p {
  margin: 0;
}

.role-revision-preview-copy h2 {
  margin-top: 3px;
  font-size: 1rem;
  line-height: 1.2;
}

.role-revision-preview-copy p:last-child {
  margin-top: 3px;
  color: #52606d;
  font-size: 0.82rem;
}

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

.role-revision-preview-actions .role-editor-tool-button {
  min-height: 36px;
  padding: 8px 12px;
}

body.role-revision-preview-active #createPositionFromPosterLink,
body.role-revision-preview-active #toggleroleSearchButton,
body.role-revision-preview-active #publishrolesButton {
  display: none;
}

body.role-revision-preview-active .org-node {
  cursor: default;
}

.role-editor-toolbar-restore {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9;
  display: none;
  border: 1px solid rgba(15, 118, 110, 0.18);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  font-size: 1.28rem;
  cursor: pointer;
  user-select: none;
  caret-color: transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

body.role-toolbar-hidden .role-editor-toolbar-restore {
  display: inline-flex;
}

.role-editor-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  line-height: 1.1;
}

.role-editor-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.2;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-editor-org-shell {
  width: 100%;
  flex: 1;
  height: auto;
  min-height: 0;
  border: none;
  border-radius: 0;
}

.role-editor-tool-button {
  position: relative;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
  caret-color: transparent;
  text-decoration: none;
}

.role-editor-toolbar-dropdown > summary.role-editor-tool-button {
  min-width: auto;
  justify-content: center;
  padding-right: 12px;
  gap: 6px;
  list-style: none;
}

.role-editor-toolbar-dropdown > summary.role-editor-tool-button::-webkit-details-marker {
  display: none;
}

.role-editor-toolbar-dropdown > summary.role-editor-tool-button::after {
  content: "▾";
  margin-left: 0;
  font-size: 0.72rem;
  line-height: 1;
}

.role-editor-toolbar-dropdown[open] > summary.role-editor-tool-button {
  background: #ecfdf5;
}

.role-editor-toolbar-dropdown .header-dropdown-menu {
  right: auto;
  left: 0;
  min-width: 172px;
}

.role-editor-tool-button[data-tooltip]::after,
.role-editor-toolbar-restore[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  content: attr(data-tooltip);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.role-editor-tool-button[data-tooltip]:hover::after,
.role-editor-tool-button[data-tooltip]:focus-visible::after,
.role-editor-toolbar-restore[data-tooltip]:hover::after,
.role-editor-toolbar-restore[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.role-editor-tool-button:focus:not(:focus-visible),
.role-editor-toolbar-restore:focus:not(:focus-visible) {
  outline: none;
}

.role-editor-tool-button span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  line-height: 1;
}

.role-publish-button:not([hidden]) {
  display: inline-flex;
  border-color: rgba(15, 118, 110, 0.35);
  background: #ecfdf5;
  color: var(--brand-dark);
}

.role-plan-warning-button {
  display: none;
}

.role-plan-warning-button.has-warnings {
  display: inline-flex;
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.role-plan-warning-button.has-warnings span[aria-hidden="true"] {
  background: #fee2e2;
  color: #b42318;
}

.role-editor-drawer {
  position: absolute;
  top: 64px;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: min(520px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: visible;
  transform: translateX(calc(100% + 36px));
  transition: transform 0.22s ease;
  backdrop-filter: blur(12px);
}

.role-editor-drawer-resize {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: -9px;
  width: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: ew-resize;
  z-index: 2;
  user-select: none;
  caret-color: transparent;
}

.role-editor-drawer-resize::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 64px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.22);
  transform: translate(-50%, -50%);
  transition: background 0.16s ease, width 0.16s ease;
}

.role-editor-drawer-resize:hover::after,
body.role-drawer-resizing .role-editor-drawer-resize::after {
  width: 6px;
  background: rgba(15, 118, 110, 0.55);
}

body.role-drawer-resizing {
  cursor: ew-resize;
  user-select: none;
}

.role-editor-drawer-scroll {
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  border-radius: inherit;
}

body.role-toolbar-hidden .role-editor-drawer {
  top: 18px;
}

.role-editor-drawer.is-open {
  transform: translateX(0);
}

.role-editor-drawer-head {
  position: sticky;
  top: -24px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -24px -24px 18px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.role-editor-drawer-head h2,
#manageroleFormTitle {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.role-summary-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.role-summary-list div {
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  background: #f8fafc;
}

.role-summary-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-summary-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-summary-danger {
  align-self: flex-start;
}

.role-people-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5edf5;
}

.role-people-head {
  margin-bottom: 12px;
}

.role-people-title {
  font-size: 1.05rem;
}

.role-people-search-wrap {
  position: relative;
  z-index: 12;
}

.role-people-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 18;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.role-people-columns {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.role-people-column {
  padding: 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #f8fafc;
}

.role-people-column-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-person-card {
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  background: #ffffff;
}

.role-person-card strong,
.role-person-card span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-person-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.role-person-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-person-action {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.role-person-action:hover {
  background: #dff7f1;
}

.role-person-action-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.role-person-action-danger:hover {
  background: #ffe4e6;
}

.role-person-action[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.publish-warning-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
  color: #365f7d;
  font-weight: 800;
  line-height: 1.45;
}

.publish-warning-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.publish-warning-list-label,
.publish-warning-list-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.publish-warning-list-label {
  display: inline;
}

.publish-warning-list-value {
  display: inline;
}

.org-chart-hint {
  margin-bottom: 18px;
}

.org-chart-tools {
  justify-content: flex-start;
}

.org-chart-shell {
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 22px;
  --org-grid-step: 24px;
  --org-grid-offset-x: 0px;
  --org-grid-offset-y: 0px;
  background-color: #ffffff;
  min-height: 640px;
  position: relative;
  cursor: grab;
  touch-action: none;
}

.org-chart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 61, 58, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 61, 58, 0.12) 1px, transparent 1px);
  background-size: var(--org-grid-step) var(--org-grid-step);
  background-position: var(--org-grid-offset-x) var(--org-grid-offset-y);
}

.org-chart-shell.is-grid-hidden::before,
body.role-grid-hidden .org-chart-shell::before {
  display: none;
}

.org-chart-canvas {
  display: block;
  min-width: 100%;
  user-select: none;
  position: relative;
  z-index: 1;
}

.org-chart-minimap {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 220px;
  height: 150px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 61, 58, 0.16);
  z-index: 3;
  overflow: hidden;
  cursor: pointer;
}

.org-chart-minimap[hidden] {
  display: none;
}

.org-chart-minimap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.org-minimap-background {
  fill: rgba(246, 255, 252, 0.96);
}

.org-minimap-department {
  fill: rgba(15, 118, 110, 0.16);
  stroke: rgba(15, 118, 110, 0.72);
  stroke-width: 1.8;
}

.org-minimap-role {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(17, 17, 17, 0.5);
  stroke-width: 1.4;
}

.org-minimap-viewport {
  fill: rgba(255, 255, 255, 0.18);
  stroke: #b42318;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.org-node {
  cursor: pointer;
}

.org-node.is-draggable {
  cursor: grab;
}

.org-node.is-dragging {
  cursor: grabbing;
  opacity: 0.96;
}

.org-node.is-drop-target {
  filter: drop-shadow(0 14px 28px rgba(15, 118, 110, 0.2));
}

.org-node.is-selected {
  filter: drop-shadow(0 14px 28px rgba(15, 118, 110, 0.24));
}

.org-department-node {
  cursor: grab;
}

.org-department-node.is-dragging {
  cursor: grabbing;
}

.org-department-action {
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.org-department-node:hover .org-department-action,
.org-department-action:focus {
  opacity: 1;
}

.org-department-node.is-drop-target {
  filter: drop-shadow(0 18px 32px rgba(15, 118, 110, 0.24));
}

.org-department-node.is-selected {
  filter: drop-shadow(0 18px 32px rgba(15, 118, 110, 0.28));
}

.org-selection-rect {
  fill: rgba(15, 118, 110, 0.12);
  stroke: #0f766e;
  stroke-width: 2;
  stroke-dasharray: 10 8;
  pointer-events: none;
}

.org-connector-handle {
  cursor: crosshair;
  opacity: 0;
  transition: opacity 0.16s ease, r 0.16s ease;
}

.org-node:hover .org-connector-handle,
.org-department-node:hover .org-connector-handle,
.org-connector-handle.is-active {
  opacity: 1;
}

#roleOrgChart.is-department-dragging .org-department-action,
#roleOrgChart.is-department-dragging .org-department-node .org-connector-handle {
  opacity: 0;
  pointer-events: none;
}

.org-connector-source,
.org-connector-target {
  fill: #0f766e;
  stroke: #ffffff;
  stroke-width: 3;
}

.org-connector-target {
  fill: #2aa79d;
}

.org-connection {
  pointer-events: stroke;
}

.org-disconnect-handle {
  cursor: pointer;
  fill: #b42318;
  stroke: #ffffff;
  stroke-width: 3;
  opacity: 0;
  pointer-events: all;
  transition: opacity 0.16s ease, r 0.16s ease;
}

.org-connector-bend-handle {
  cursor: ns-resize;
  fill: #facc15;
  stroke: #ffffff;
  stroke-width: 3;
  opacity: 0;
  pointer-events: all;
  transition: opacity 0.16s ease, r 0.16s ease;
}

.org-connection:hover .org-connector-bend-handle,
.org-connector-bend-handle:hover {
  opacity: 1;
}

.org-connection:hover .org-disconnect-handle,
.org-disconnect-handle:hover {
  opacity: 1;
}

.org-chart-shell.is-panning {
  cursor: grabbing;
}

.information-org-body .role-editor-toolbar {
  justify-content: flex-start;
}

.information-org-shell {
  background-color: #fbfcfd;
}

.information-org-node {
  cursor: default;
}

.information-org-message {
  position: absolute;
  left: 18px;
  bottom: 10px;
  z-index: 4;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.column-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.delete-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background-color: #f8fafc;
}

.delete-item strong {
  display: block;
  margin-bottom: 6px;
}

.delete-item p {
  margin: 0;
  color: var(--muted);
}

.delete-button {
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b42318 0%, #912018 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.delete-button:hover {
  filter: brightness(1.03);
}

.list-card {
  overflow: hidden;
}

.asset-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5edf5;
  border-radius: 20px;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background-color: #ffffff;
}

.asset-table thead {
  background-color: #f8fafc;
}

.asset-table th,
.asset-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #e5edf5;
  vertical-align: top;
}

.asset-table th {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.asset-table td {
  font-size: 0.95rem;
}

.asset-table tbody tr:hover {
  background-color: #f9fbfc;
}

.table-action-cell {
  white-space: nowrap;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 10px;
  border: 1px solid #d8e3ec;
  color: var(--brand-dark);
  text-decoration: none;
  background-color: #ffffff;
}

.table-action-button {
  cursor: pointer;
  font: inherit;
}

.table-action-link:hover {
  background-color: #f0fdfa;
}

.table-action-link-danger:hover {
  background-color: #fff1f2;
  color: #b42318;
}

.table-action-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border: 1px solid #d9e2ec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.role-create-modal-card {
  max-width: 620px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.82) 0%, rgba(255, 255, 255, 0.98) 42%),
    #ffffff;
}

.role-create-person-card {
  max-width: 760px;
}

.modal-entity-form {
  margin-top: 18px;
}

.modal-entity-form .modal-actions {
  margin-top: 20px;
}

.publish-warning-backdrop {
  background: rgba(31, 41, 51, 0.42);
  backdrop-filter: blur(3px);
}

.publish-warning-card {
  max-width: 520px;
  padding: 26px 28px 24px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.72) 0%, rgba(255, 255, 255, 0.96) 45%),
    #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
}

.publish-warning-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.publish-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.publish-warning-kicker {
  margin-bottom: 8px;
}

.publish-warning-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.publish-warning-copy {
  max-width: 420px;
  margin: 18px 0 0 60px;
  color: #435568;
  line-height: 1.65;
}

.publish-warning-emphasis {
  color: var(--brand-dark);
  font-weight: 800;
}

.publish-warning-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 226, 236, 0.9);
}

.publish-warning-button {
  min-width: 132px;
  justify-content: center;
}

@media (max-width: 560px) {
  .publish-warning-card {
    padding: 22px;
    border-radius: 14px;
  }

  .publish-warning-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .publish-warning-copy {
    max-width: none;
    margin-left: 0;
  }

  .publish-warning-actions {
    justify-content: stretch;
  }

  .publish-warning-button {
    width: 100%;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.modal-danger-button {
  background: linear-gradient(135deg, #b42318 0%, #912018 100%);
}

@media (max-width: 900px) {
  .hero-title {
    max-width: none;
    font-size: 2rem;
  }

  .brand-headline {
    font-size: 2.8rem;
  }

  .hero-logo-wrap-large {
    width: 320px;
    height: 230px;
  }

  .hero-logo-svg-large {
    width: 320px;
  }

  .hero-logo-wrap-large {
    margin-bottom: -58px;
  }

  .login-branding {
    margin-top: 8px;
  }

  .login-stack {
    margin-top: -34px;
  }

  .page-shell {
    padding: 32px 18px 48px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .header-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-link {
    padding: 9px 12px;
  }

  .header-dropdown > summary {
    min-width: auto;
  }

  .dashboard-hero,
  .dashboard-news-panel,
  .dashboard-task-grid,
  .dashboard-ticket-kpis,
  .dashboard-module-grid,
  .dashboard-board,
  .dashboard-stats,
  .action-grid,
  .asset-kpi-grid,
  .asset-action-grid,
  .process-overview-grid,
  .management-grid,
  .form-grid,
  .column-filter-grid,
  .checkbox-grid,
  .module-kpis,
  .module-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-ticket-analytics-head {
    flex-direction: column;
  }

  .role-people-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-ticket-range {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-range-input {
    width: 100%;
  }

  .process-overview-card-wide {
    grid-column: auto;
  }

  .role-editor-page {
    min-height: 0;
  }

  .role-editor-toolbar {
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px;
  }

  .role-editor-hint {
    font-size: 0.72rem;
  }

  .role-editor-tool-button {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .role-editor-tool-button span:not([aria-hidden="true"]) {
    display: none;
  }

  .role-revision-preview-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .role-revision-preview-actions {
    justify-content: flex-start;
  }

  .role-revision-preview-actions .role-editor-tool-button span:not([aria-hidden="true"]) {
    display: inline;
  }

  .role-revision-filter {
    grid-template-columns: 1fr;
  }

  .role-editor-drawer {
    top: 58px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  body.role-toolbar-hidden .role-editor-drawer {
    top: 12px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-help-popover {
    left: 0;
    top: calc(100% + 8px);
    transform: translateY(-4px);
  }

  .dashboard-help-button:hover + .dashboard-help-popover,
  .dashboard-help-button:focus-visible + .dashboard-help-popover {
    transform: translateY(0);
  }

  .task-item {
    flex-direction: column;
    align-items: stretch;
  }

  .delete-item {
    flex-direction: column;
    align-items: stretch;
  }

  .module-card-simple .section-title {
    min-height: auto;
    font-size: clamp(0.92rem, 4vw, 1.18rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .it-ticket-controls {
    grid-template-columns: 1fr;
  }

  .it-ticket-save-button {
    grid-column: 1;
    width: 100%;
  }

  .ticket-toolbar {
    align-items: stretch;
  }

  .ticket-perspective-toggle,
  .ticket-filter,
  .ticket-column-menu {
    width: 100%;
  }

  .ticket-column-menu {
    margin-left: 0;
  }

  .ticket-column-options {
    left: 0;
    right: auto;
    grid-template-columns: 1fr;
  }

  .ticket-chat-bubble {
    max-width: 100%;
  }

  .ticket-chat-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-chat-composer-actions .field-status {
    width: 100%;
  }
}


