@font-face {
  font-family: "BPG ExtraSquare Mtavruli 2009";
  src: url("/fonts/bpg_extrasquare_mtavruli_2009.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/fonts/NotoSansGeorgian-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/fonts/NotoSansGeorgian-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/fonts/NotoSansGeorgian-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/fonts/NotoSansGeorgian-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family:
    "BPG ExtraSquare Mtavruli 2009", "Noto Sans Georgian", "Segoe UI", Arial,
    sans-serif;
  color: #172033;
  background: #f7f9fc;
  --primary: #0869ff;
  --navy: #002856;
  --navy-deep: #00214a;
  --border: #dbe3ef;
  --muted: #71809d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  min-height: 100vh;
  padding: 25px 14px;
  background: linear-gradient(180deg, var(--navy-deep), #00346a 70%, #002855);
  color: #fff;
  z-index: 30;
  box-shadow: 8px 0 24px rgba(0, 31, 70, 0.08);
}
.brand {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 6px 17px;
}
.brand-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 6px 20px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 15px;
  border-radius: 10px;
  color: #d9e6f7;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.25;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s;
}
.nav-item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(135deg, #0872ff, #1261eb);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 91, 255, 0.35);
}
.nav-item.active:hover:not(.disabled) {
  background: linear-gradient(135deg, #2b8cff, #0754d7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 91, 255, 0.45);
}
.nav-item:focus-visible,
.icon-button:focus-visible,
.logout-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid #8bc4ff;
  outline-offset: 3px;
}
.nav-item.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.nav-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
}
.nav-icon svg,
.icon-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-area {
  min-height: 100vh;
  margin-left: 248px;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.language-picker {
  display: inline-flex;
  align-items: center;
}
.language-select {
  min-width: 112px;
  height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #263752;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.language-select:hover {
  border-color: #9fb5d5;
}
.language-select:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(11, 108, 255, 0.14);
  outline-offset: 1px;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #12203a;
  padding: 7px;
  border-radius: 9px;
  cursor: pointer;
}
.notifications {
  position: relative;
}
.notification {
  width: 42px;
  height: 42px;
}
.notification svg {
  width: 26px;
  height: 26px;
}
.notification .notification-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #0872ff;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 6px;
  right: 6px;
}
.notification .notification-dot[hidden] {
  display: none;
}
.notification-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 38, 73, 0.2);
  z-index: 55;
}
.notification-menu[hidden] {
  display: none;
}
.notification-menu > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
}
.notification-menu > header strong {
  font-size: 16px;
}
.notification-menu > header small {
  min-width: 24px;
  color: var(--primary);
  font-weight: 700;
  text-align: right;
}
#notification-list {
  max-height: 390px;
  overflow-y: auto;
}
.notification-loading,
.notification-empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}
.notification-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.notification-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8f0;
  color: #0a9b56;
}
.notification-empty svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}
.notification-empty button {
  border: 0;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  padding: 8px 12px;
  cursor: pointer;
}
.notification-task {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f7;
  color: inherit;
  text-decoration: none;
}
.notification-task:last-child {
  border-bottom: 0;
}
.notification-task:hover {
  background: #f6f9ff;
}
.notification-task-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #e9f2ff;
  color: var(--primary);
}
.notification-task-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
}
.notification-task > span:last-child {
  min-width: 0;
}
.notification-task strong {
  display: block;
  overflow: hidden;
  color: #17243a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-task small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.notification-task small b {
  color: var(--primary);
  font-size: 11px;
}
.notification-task .badge {
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
}
.notification-task em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.header-divider {
  width: 1px;
  height: 30px;
  background: #dce3ed;
  margin: 0 4px;
}
.user-avatar,
.table-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5efff;
  color: #075dcc;
  font-weight: 700;
}
.user-copy {
  display: grid;
  gap: 3px;
  min-width: 120px;
}
.user-copy small {
  color: #647695;
}
.profile {
  position: relative;
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 7px;
  border-radius: 10px;
  cursor: pointer;
}
.profile-trigger:hover {
  background: #f3f6fb;
}
.profile-chevron {
  font-size: 20px;
  color: #536481;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: 56px;
  width: 310px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 16px 45px rgba(12, 38, 73, 0.18);
  display: grid;
  gap: 6px;
  z-index: 50;
}
.profile-menu[hidden] {
  display: none;
}
.profile-menu small {
  color: var(--muted);
}
.profile-menu-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-menu-identity > div {
  min-width: 0;
}
.profile-menu-identity strong,
.profile-menu-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu-identity small {
  margin-top: 3px;
}
.profile-menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}
.profile-menu-badges span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8efff;
  color: #155fc7;
  font-size: 11px;
}
.profile-menu-badges span.admin {
  background: #eee7ff;
  color: #6536d8;
}
.profile-menu-badges span.active {
  background: #e2f5e8;
  color: #187a42;
}
.profile-menu-detail {
  display: grid;
  gap: 3px;
  padding: 9px 0 11px;
}
.profile-menu-detail strong {
  overflow: hidden;
  color: #293852;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu #logout {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.profile-menu #edit-own-profile {
  width: 100%;
  text-align: center;
}
.profile-menu #logout svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-menu button,
.dashboard-error button {
  margin-top: 8px;
  border: 0;
  background: #eef4ff;
  color: #075dcc;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
}
.page {
  padding: 27px 32px 40px;
  max-width: 1450px;
  margin: auto;
}
.page-title {
  margin-bottom: 22px;
}
.page-title h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.page-title p {
  margin: 0;
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 7px rgba(20, 52, 88, 0.05);
}
.foundation-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.summary-grid:has(+ .dashboard-chart-grid) {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.summary-grid:has(+ .dashboard-chart-grid) .summary-card {
  min-width: 0;
  min-height: 108px;
  gap: 11px;
  padding: 14px;
}
.summary-grid:has(+ .dashboard-chart-grid) .summary-icon {
  width: 43px;
  height: 43px;
}
.summary-grid:has(+ .dashboard-chart-grid) .summary-icon svg {
  width: 23px;
  height: 23px;
}
.summary-grid:has(+ .dashboard-chart-grid) .summary-card small {
  font-size: 12px;
  white-space: nowrap;
}
.summary-grid:has(+ .dashboard-chart-grid) .summary-card strong {
  font-size: 27px;
}
.summary-card {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.summary-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.summary-card.blue .summary-icon {
  color: #0869ff;
  background: #eaf2ff;
}
.summary-card.green .summary-icon {
  color: #08a25b;
  background: #e5f8ef;
}
.summary-card.orange .summary-icon {
  color: #ed4b24;
  background: #fff0ec;
}
.summary-card.gray .summary-icon {
  color: #66758d;
  background: #edf1f6;
}
.summary-card.purple .summary-icon {
  color: #7047d7;
  background: #f0eaff;
}
.summary-card > div:last-child {
  display: grid;
  gap: 3px;
}
.summary-card small {
  font-size: 14px;
  color: #28344a;
}
.summary-card strong {
  font-size: 31px;
  line-height: 1;
}
.summary-card span {
  font-size: 12px;
  color: #0869ff;
}
.dashboard-chart-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-chart-grid > *,
.dashboard-secondary-grid > *,
.summary-grid > * {
  min-width: 0;
}
.dashboard-chart-grid h2,
.dashboard-secondary-grid h2,
.deadlines h2 {
  font-size: 17px;
  margin: 0 0 15px;
}
.chart-card,
.distribution-card {
  min-height: 270px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.card-heading > div:first-child {
  display: grid;
}
.completion {
  font-size: 34px;
  color: #0869ff;
}
.chart-legend {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 12px;
  color: #647695;
}
.chart-legend i {
  display: inline-block;
  width: 17px;
  height: 4px;
  border-radius: 4px;
  background: #0869ff;
}
.chart-legend span:last-child i {
  background: #dce3ed;
}
.progress-chart {
  width: 100%;
  height: 165px;
  margin-top: 8px;
  overflow: visible;
}
.progress-chart .chart-grid {
  fill: none;
  stroke: #e7ecf3;
  stroke-width: 1;
}
.progress-chart polyline {
  fill: none;
  stroke: #0869ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.progress-chart circle {
  fill: #0869ff;
  stroke: #fff;
  stroke-width: 2;
}
.progress-chart text {
  font-size: 10px;
  fill: #71809d;
  text-anchor: middle;
}
.distribution-content {
  height: 210px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1.2fr;
  align-items: center;
  gap: 24px;
}
.donut {
  width: 174px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--donut));
  display: grid;
  place-items: center;
  margin: auto;
  position: relative;
}
.donut:after {
  content: "";
  position: absolute;
  width: 59%;
  height: 59%;
  border-radius: 50%;
  background: #fff;
}
.donut > div {
  display: grid;
  text-align: center;
  z-index: 1;
}
.donut strong {
  font-size: 29px;
}
.donut small {
  color: #647695;
}
.distribution-legend {
  display: grid;
  gap: 14px;
}
.distribution-legend > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.distribution-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.distribution-legend i.planned {
  background: #b8c3d5;
}
.distribution-legend i.in_progress {
  background: #0b6cff;
}
.distribution-legend i.completed {
  background: #0cac62;
}
.distribution-legend i.blocked {
  background: #8b5cf6;
}
.distribution-legend i.overdue {
  background: #f04b23;
}
.distribution-legend strong {
  font-weight: 500;
  color: #536481;
}
.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title a,
.activity a,
.deadline a,
.my-tasks td a {
  color: #0869ff;
  text-decoration: none;
}
.responsive-table {
  overflow-x: auto;
  max-width: 100%;
}
.my-tasks {
  min-width: 0;
  overflow: hidden;
}
.my-tasks table {
  font-size: 13px;
  min-width: 620px;
}
.my-tasks th {
  color: #647695;
  font-weight: 500;
}
.progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-cell > div {
  width: 70px;
  height: 6px;
  border-radius: 6px;
  background: #e4e9f1;
  overflow: hidden;
}
.progress-cell i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #0869ff;
}
.overdue-text {
  color: #e34b2a;
}
.badge.overdue {
  background: #fff0ec;
  color: #dd401e;
}
.activity {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
}
.activity:last-child {
  border: 0;
}
.activity-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f7ef;
  color: #079453;
  font-weight: 700;
}
.activity p {
  font-size: 12px;
  margin: 0 0 4px;
}
.activity a,
.activity time {
  font-size: 11px;
}
.activity time {
  color: #71809d;
  align-self: start;
}
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.deadline {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.deadline:first-child {
  padding-left: 0;
}
.deadline:last-child {
  border: 0;
}
.date-badge {
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d4ff;
  background: #f3f7ff;
  border-radius: 8px;
  color: #0869ff;
}
.date-badge strong {
  font-size: 24px;
  line-height: 1;
}
.date-badge span {
  font-size: 11px;
}
.deadline p {
  margin: 5px 0;
  font-size: 13px;
}
.deadline a {
  font-size: 13px;
}
.status-text.completed {
  color: #08a25b;
}
.status-text.in_progress {
  color: #0869ff;
}
.status-text.planned {
  color: #71809d;
}
.dashboard-empty,
.dashboard-error {
  min-height: 100px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.dashboard-error button {
  background: #0869ff;
  color: #fff;
  text-align: center;
}
.dashboard-skeleton {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dashboard-skeleton > * {
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e9edf3, #f7f9fc, #e9edf3);
  background-size: 200%;
  animation: pulse 1.4s infinite;
}
.dashboard-skeleton section {
  grid-column: span 2;
  min-height: 270px;
}
@keyframes pulse {
  to {
    background-position: -200%;
  }
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metrics .card {
  display: grid;
  gap: 10px;
}
.metrics small,
.list-row small {
  color: var(--muted);
}
.metrics strong {
  font-size: 30px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--border);
}
.badge {
  padding: 5px 9px;
  border-radius: 99px;
  background: #e8ecf5;
}
.badge.completed {
  background: #ddf7e9;
  color: #167243;
}
.badge.in_progress {
  background: #fff0cc;
  color: #805b00;
}
.badge.blocked {
  background: #fff0ec;
  color: #d44225;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.state,
.skeleton {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.error,
.alert {
  color: #a12626;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.login-card {
  position: relative;
  width: min(420px, calc(100% - 32px));
  padding-top: 64px;
}
.login-language-picker {
  position: absolute;
  top: 18px;
  right: 18px;
}
.login form,
.login label {
  display: grid;
  gap: 8px;
}
.login form {
  gap: 18px;
}
.login input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.login button {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  cursor: pointer;
}
.register-card {
  width: min(520px, calc(100% - 32px));
}
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.login label small {
  color: var(--muted);
  font-size: 12px;
}
.auth-switch {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.mobile-drawer,
.drawer-backdrop {
  display: none;
}
.settings-tabs {
  display: flex;
  gap: 28px;
  margin: -4px 0 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar {
  display: none;
}
.settings-tabs a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 13px 7px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.settings-tabs a.active {
  border-color: var(--primary);
  color: var(--primary);
}
.settings-tabs svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-tabs a > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
}
.settings-tabs a:nth-child(1) > span {
  background: #e7f0ff;
  color: #0869ff;
}
.settings-tabs a:nth-child(2) > span {
  background: #eee7ff;
  color: #6d3be8;
}
.settings-tabs a:nth-child(3) > span {
  background: #e2f5e8;
  color: #159153;
}
.users-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.users-summary-grid .card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 98px;
}
.users-summary-grid small,
.users-table-title p {
  color: var(--muted);
}
.users-summary-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
}
.users-summary-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 11px;
}
.users-summary-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.users-summary-icon.blue {
  background: #e9f1ff;
  color: #0965f5;
}
.users-summary-icon.purple {
  background: #eee7ff;
  color: #5724e8;
}
.users-summary-icon.green {
  background: #e2f5e8;
  color: #18833b;
}
.users-filters {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr)
    auto;
  gap: 16px;
  margin-bottom: 20px;
}
.users-filters input,
.users-filters select,
.users-filters button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 13px;
  font: inherit;
}
.users-filters button {
  color: var(--primary);
  cursor: pointer;
}
.search-control {
  position: relative;
}
.search-control span {
  position: absolute;
  left: 14px;
  top: 10px;
  color: var(--muted);
}
.users-filters .search-control input {
  padding-left: 39px;
}
.users-table-card {
  padding: 0;
  overflow: hidden;
}
.users-table-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 20px 20px 15px;
}
.users-table-title .primary-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-left: auto;
}
.users-table-title h2,
.users-table-title p {
  grid-column: 1;
}
.forced-password-backdrop,
.user-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 25, 50, 0.66);
}
.forced-password-dialog,
.user-create-dialog {
  width: min(460px, 94vw);
  padding: 25px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 18, 42, 0.35);
}
.forced-password-dialog h2,
.forced-password-dialog p,
.user-create-dialog h2,
.user-create-dialog p {
  margin: 0;
}
.forced-password-dialog > p,
.user-create-dialog header p {
  margin-top: 7px;
  color: var(--muted);
}
.forced-password-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #e9f2ff;
  color: var(--primary);
}
.forced-password-icon svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.forced-password-dialog form,
.user-create-dialog form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.forced-password-dialog label,
.user-create-dialog label {
  display: grid;
  gap: 7px;
  color: #263752;
  font-weight: 600;
}
.forced-password-dialog input,
.user-create-dialog input {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.forced-password-dialog small,
.user-create-dialog small {
  color: var(--muted);
  font-weight: 400;
}
.forced-password-dialog .alert,
.user-create-dialog .alert {
  min-height: 18px;
  color: #c23030;
}
.forced-password-dialog form > button {
  width: 100%;
}
.user-create-dialog {
  padding: 0;
}
.user-create-dialog > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--border);
}
.user-create-dialog > header > div {
  flex: 1;
}
.user-create-dialog > header button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: #425370;
  cursor: pointer;
}
.user-create-dialog > header svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.user-create-dialog form {
  padding: 0 23px 23px;
}
.user-create-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 3px;
}
.user-create-dialog footer button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.user-create-dialog footer .primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.users-table-title h2,
.users-table-title p {
  margin: 0;
}
.users-table-title h2 {
  font-size: 19px;
}
.users-table-title p {
  margin-top: 5px;
  font-size: 14px;
}
.users-table-wrap {
  overflow-x: auto;
}
.users-table-wrap table {
  min-width: 980px;
}
.users-table-wrap th,
.users-table-wrap td {
  padding: 11px 14px;
  white-space: nowrap;
}
.users-table-wrap th button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.users-list-table {
  overflow-x: visible;
}
.users-list-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.users-list-table th,
.users-list-table td {
  overflow: hidden;
  padding: 11px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.users-list-table th:nth-child(1),
.users-list-table td:nth-child(1) {
  width: 17%;
}
.users-list-table th:nth-child(2),
.users-list-table td:nth-child(2) {
  width: 17%;
}
.users-list-table th:nth-child(3),
.users-list-table td:nth-child(3) {
  width: 14%;
}
.users-list-table th:nth-child(4),
.users-list-table td:nth-child(4) {
  width: 12%;
}
.users-list-table th:nth-child(5),
.users-list-table td:nth-child(5) {
  width: 10%;
}
.users-list-table th:nth-child(6),
.users-list-table td:nth-child(6) {
  width: 12%;
}
.users-list-table th:nth-child(7),
.users-list-table td:nth-child(7) {
  width: 12%;
}
.users-list-table th:nth-child(8),
.users-list-table td:nth-child(8) {
  width: 6%;
}
.users-list-table td:nth-child(8) {
  overflow: visible;
}
.users-list-table .user-cell {
  min-width: 0;
}
.users-list-table .user-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.users-list-table .role-list {
  max-width: 100%;
}
@media (max-width: 700px) {
  .users-list-table table,
  .users-list-table tbody,
  .users-list-table tr,
  .users-list-table td {
    display: block;
    width: 100%;
  }
  .users-list-table thead {
    display: none;
  }
  .users-list-table tr {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
  }
  .users-list-table tr:last-child {
    border-bottom: 0;
  }
  .users-list-table td {
    display: grid;
    grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
  }
  .users-list-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .users-list-table .user-cell,
  .users-list-table .role-list,
  .users-list-table .user-action-wrap {
    min-width: 0;
  }
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.user-cell > img,
.user-cell > .table-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}
.user-cell > img {
  display: block;
  object-fit: cover;
  object-position: center;
}
.user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e8efff;
  color: #174da8;
  font-size: 12px;
}
.user-avatar.avatar-image {
  display: block;
  object-fit: cover;
  object-position: center;
}
.role-badge,
.admin-badge,
.user-status {
  display: inline-flex;
  align-items: center;
  margin: 2px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef2ff;
  color: #155ee8;
  font-size: 12px;
}
.admin-badge {
  background: #e9f2ff;
}
.user-status.active {
  background: #e4f5e9;
  color: #18783c;
}
.user-status.inactive {
  background: #eef1f5;
  color: #59667a;
}
.user-action {
  width: 44px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.pagination-buttons,
.users-pagination > div {
  display: flex;
  gap: 8px;
}
.users-pagination > .test-cases-pagination-info {
  display: grid;
  gap: 3px;
  max-width: min(440px, 45%);
  padding: 9px 12px;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: #f7faff;
}
.test-cases-pagination-info strong {
  color: #263752;
  font-size: 13px;
}
.test-cases-pagination-info small,
.test-cases-pagination-info > span {
  color: var(--muted);
  font-size: 12px;
}
.test-cases-card .users-pagination > span {
  margin-left: auto;
  white-space: nowrap;
}
.pagination-buttons button,
.users-pagination > div button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.pagination-buttons button.active,
.users-pagination > div button.active {
  background: var(--primary);
  color: #fff;
}
.pagination-buttons button:disabled,
.users-pagination > div button:disabled {
  opacity: 0.45;
  cursor: default;
}
.users-error,
.users-empty {
  text-align: center;
  padding: 45px 20px;
}
.roles-panel {
  padding: 18px;
}
.roles-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.roles-panel-heading h2,
.roles-panel-heading p {
  margin: 0;
}
.roles-panel-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
.primary-action {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.roles-info {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f6f9ff;
  color: #52698e;
}
.roles-summary {
  margin-bottom: 18px;
}
.roles-summary .card {
  box-shadow: none;
}
.roles-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.7fr) auto;
  gap: 16px;
  margin-bottom: 0;
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.roles-filters input,
.roles-filters select,
.roles-filters button {
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.roles-filters .search-control input {
  padding-left: 39px;
}
.roles-filters button {
  color: var(--primary);
  cursor: pointer;
}
.roles-table-section {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.roles-table table {
  min-width: 800px;
}
.roles-table th:nth-child(5),
.roles-table td:nth-child(5),
.roles-table th:nth-child(7),
.roles-table td:nth-child(7) {
  display: none;
}
.roles-table tbody tr[data-role-row] {
  cursor: pointer;
}
.roles-table tbody tr[data-role-row]:hover td,
.roles-table tbody tr[data-role-row]:focus-visible td {
  background: #f5f9ff;
}
.roles-table tbody tr[data-role-row]:focus-visible {
  outline: 3px solid rgba(9, 101, 245, 0.25);
  outline-offset: -3px;
}
.role-name-cell,
.role-users-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}
.role-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #ece7ff;
  color: #5425e6;
}
.role-symbol svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-description {
  display: block;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-users-preview > div {
  display: flex;
  padding-left: 7px;
}
.role-users-preview .table-avatar,
.role-users-preview img {
  width: 30px;
  height: 30px;
  margin-left: -7px;
  border: 2px solid #fff;
  font-size: 10px;
}
.roles-table td > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.roles-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.roles-panel button:focus-visible,
.roles-panel input:focus-visible,
.roles-panel select:focus-visible {
  outline: 3px solid rgba(9, 101, 245, 0.25);
  outline-offset: 2px;
}
.role-details-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 18, 37, 0.62);
}
.role-details-dialog {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(0, 19, 48, 0.34);
}
.role-details-dialog > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 21px 27px 17px;
  border-bottom: 1px solid var(--border);
}
.role-details-dialog h2,
.role-details-dialog h3,
.role-details-dialog h4,
.role-details-dialog p {
  margin: 0;
}
.role-details-dialog > header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.role-details-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 10px;
  background: #ece7ff;
  color: #5425e6;
}
.role-details-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.role-details-dialog > header button {
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #324464;
  cursor: pointer;
}
.role-details-dialog > header button svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.role-details-body {
  overflow-y: auto;
  padding: 22px 27px;
}
.role-details-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.role-details-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8faff;
}
.role-details-summary small {
  color: var(--muted);
  font-size: 12px;
}
.role-details-summary strong {
  overflow: hidden;
  color: #17213b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-details-summary .user-status {
  width: fit-content;
  margin: 0;
}
.role-details-section {
  margin-top: 22px;
}
.role-details-section > h3 {
  margin-bottom: 9px;
  font-size: 15px;
}
.role-details-section > p {
  color: #3b4b65;
  line-height: 1.55;
  white-space: pre-wrap;
}
.role-details-users {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.role-details-user {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.role-details-user img,
.role-details-user .table-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}
.role-details-user img {
  object-fit: cover;
}
.role-details-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-details-permissions {
  display: grid;
  gap: 11px;
}
.role-details-permission-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.role-details-permission-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f6f8fc;
}
.role-details-permission-group h4 {
  font-size: 13px;
}
.role-details-permission-group > header span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e5eefc;
  color: #155ee8;
  font-size: 12px;
  font-weight: 700;
}
.role-details-permission-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.role-details-permission-group article {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
}
.role-details-permission-group article:nth-child(even) {
  border-left: 1px solid var(--border);
}
.role-details-permission-group article strong,
.role-details-permission-group article small {
  display: block;
}
.role-details-permission-group article small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.role-details-dialog footer {
  display: flex;
  justify-content: flex-end;
  flex: none;
  padding: 15px 27px;
  border-top: 1px solid var(--border);
  background: #f8faff;
}
.role-details-dialog footer button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.permissions-panel {
  padding: 18px;
}
.permissions-heading,
.selected-role-card,
.permission-toolbar,
.permissions-actions,
.permission-category header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.permissions-heading h2,
.permissions-heading p,
.permissions-list-heading h3,
.permissions-list-heading p,
.permission-category h3 {
  margin: 0;
}
.permissions-heading p,
.permissions-list-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
.admin-only-note,
.readonly-note {
  color: #53688c;
  font-size: 13px;
}
.readonly-note {
  color: #875315;
}
.selected-role-card {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.role-selector {
  display: grid;
  flex: 1 1 500px;
  gap: 7px;
}
.role-selector > span {
  font-weight: 600;
}
.role-selector select,
.permission-toolbar input,
.permission-toolbar select,
.permission-toolbar button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.role-selector select {
  width: 100%;
  border-color: #1a68f6;
}
.role-selector small {
  color: var(--muted);
}
.role-permission-stat {
  min-width: 130px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}
.role-permission-stat strong,
.role-permission-stat span {
  display: block;
}
.role-permission-stat strong {
  font-size: 20px;
}
.role-permission-stat span {
  color: var(--muted);
  font-size: 12px;
}
.permission-toolbar {
  justify-content: flex-start;
  margin-bottom: 18px;
}
.permission-toolbar .search-control {
  flex: 1 1 310px;
}
.permission-toolbar input {
  width: 100%;
  padding-left: 39px;
}
.permission-toolbar select {
  min-width: 190px;
}
.permission-toolbar button {
  cursor: pointer;
}
.permissions-list-heading {
  margin-bottom: 10px;
}
.permission-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.permission-category {
  padding: 14px;
  box-shadow: none;
}
.permission-category header {
  margin-bottom: 9px;
}
.permission-category header small {
  color: var(--muted);
}
.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 2px;
  cursor: pointer;
}
.permission-item input,
.category-toggle {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.permission-item span,
.permission-item small,
.permission-item code {
  display: block;
}
.permission-item small,
.permission-item code {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.permission-item code {
  color: #58709b;
}
.permissions-empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.permissions-actions {
  position: sticky;
  bottom: 0;
  margin: 18px -18px -18px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}
.permissions-actions > div:last-child {
  display: flex;
  gap: 12px;
}
.permissions-actions button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.permissions-actions button.primary-action {
  border: 0;
  background: var(--primary);
  color: #fff;
}
.permissions-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.pending-message {
  color: #986000;
}
.success-message {
  color: #167243;
}
.confirmation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 17, 37, 0.6);
}
.confirmation-dialog {
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 20, 50, 0.28);
}
.confirmation-dialog h2 {
  margin-top: 0;
}
.confirmation-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.confirmation-dialog button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.tasks-heading-action {
  display: flex;
  justify-content: flex-end;
  margin: -63px 0 25px;
}
.tasks-summary {
  margin-bottom: 20px;
}
.tasks-filters {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr)
    auto;
  gap: 14px;
  margin-bottom: 20px;
}
.tasks-filters input,
.tasks-filters select,
.tasks-filters button {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.tasks-filters input {
  padding-left: 39px;
}
.tasks-filters button {
  color: var(--primary);
  cursor: pointer;
}
.tasks-table-card {
  position: relative;
  padding: 0 0 50px;
  overflow: hidden;
}
.tasks-table table {
  min-width: 1180px;
}
.tasks-table th,
.tasks-table td {
  padding: 12px 14px;
}
.tasks-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.task-test-case-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0869d9;
  font-weight: 700;
}
.task-delete-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #f1bcbc;
  border-radius: 8px;
  background: #fff;
  color: #d73737;
  cursor: pointer;
}
.task-delete-action:hover,
.task-delete-action:focus-visible {
  border-color: #d73737;
  background: #fff0f0;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 55, 55, 0.12);
}
.task-delete-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test-case-delete-action {
  display: inline-grid;
  place-items: center;
  border-color: #f1bcbc;
  color: #cf3030;
}
.test-case-delete-action:hover,
.test-case-delete-action:focus-visible {
  border-color: #dc4040;
  background: #fff0f0;
}
.test-case-delete-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.editable-test-case-row {
  cursor: pointer;
}
.editable-test-case-row:hover td {
  background: #f5f9ff;
}
.editable-test-case-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.confirmation-dialog .danger-action {
  border-color: #d73737;
  background: #d73737;
  color: #fff;
}
.task-row {
  cursor: pointer;
}
.task-row:focus-visible {
  outline: 3px solid rgba(9, 101, 245, 0.3);
  outline-offset: -3px;
}
.task-name {
  display: grid;
  max-width: 280px;
  gap: 4px;
}
.task-name strong,
.task-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-name small {
  color: var(--muted);
}
.task-testers {
  display: flex;
  align-items: center;
  gap: 7px;
}
.task-testers > div {
  display: flex;
  padding-left: 8px;
}
.task-testers img,
.task-testers .table-avatar {
  width: 31px;
  height: 31px;
  margin-left: -8px;
  border: 2px solid #fff;
  font-size: 10px;
}
.figma-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.badge.planned {
  background: #eef1f5;
  color: #59667a;
}
.page-size {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.page-size select {
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
}
.task-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
}
.task-breadcrumb a {
  color: #425b89;
  text-decoration: none;
}
.task-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.task-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.task-quick-status {
  display: grid;
  min-width: 190px;
  text-align: left;
}
.task-quick-status > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.task-quick-status-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #c7d3e5;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}
.task-quick-status-control:hover {
  border-color: #93add1;
  background: #f8fbff;
}
.task-quick-status-control:focus-within {
  border-color: #1769e0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.task-quick-status-control i {
  width: 9px;
  height: 9px;
  margin-left: 13px;
  border-radius: 50%;
  background: #9aabc2;
}
.task-quick-status-control.in_progress i {
  background: #1769e0;
}
.task-quick-status-control.blocked i {
  background: #8b5cf6;
}
.task-quick-status-control.completed i {
  background: #12a25f;
}
.task-quick-status-control select {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 42px 0 10px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.task-quick-status-control > b {
  position: absolute;
  right: 13px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.task-quick-status-control > b svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.task-quick-status-control.saving {
  opacity: 0.62;
}
.task-quick-status-control.saved {
  border-color: #12a25f;
}
.task-detail-actions > button:not(.primary-action),
.task-detail-actions > .task-export-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #bfd0e8;
  border-radius: 9px;
  background: #fff;
  color: #1769e0;
  font: inherit;
  cursor: pointer;
}
#delete-task {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: #efb5b5;
  color: #d73737;
}
#delete-task svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#delete-task:hover,
#delete-task:focus-visible {
  border-color: #d73737;
  background: #fff0f0;
}
.task-detail-actions > .task-export-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.task-detail-actions > .task-export-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.task-detail-actions > button:not(.primary-action):hover,
.task-detail-actions > .task-export-action:hover {
  background: #eef5ff;
}
.logs-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.logs-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}
.logs-toolbar .search-control {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  align-items: center;
}
.logs-toolbar .search-control input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  padding-left: 39px;
}
.logs-toolbar .search-control span {
  top: 11px;
  z-index: 1;
  pointer-events: none;
}
.logs-toolbar > select {
  min-width: min(300px, 32vw);
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.logs-toolbar > button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.test-logs-list {
  display: grid;
  gap: 16px;
}
.test-log-card {
  padding: 0;
  overflow: hidden;
}
.test-log-card > header {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) auto auto 22px;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #fbfcff;
  cursor: pointer;
  user-select: none;
}
.test-log-card > header:hover {
  background: #f4f8ff;
}
.test-log-card > header:focus-visible {
  outline: 2px solid #1769e0;
  outline-offset: -2px;
}
.test-log-chevron {
  color: #6e7f9d;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.test-log-card.expanded .test-log-chevron {
  transform: rotate(180deg);
}
.test-log-card header small,
.test-log-task > div span,
.test-log-author + div small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.test-log-id strong {
  color: #1769e0;
  font-size: 15px;
}
.test-log-task > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text);
}
.test-log-counts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.test-log-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 48px;
  padding: 7px 9px;
  border-radius: 9px;
}
.test-log-count > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test-log-count strong {
  display: block;
}
.test-log-count strong {
  font-size: 15px;
  line-height: 1;
}
.test-log-count.success {
  background: #e5f8ee;
  color: #087c45;
}
.test-log-count.failed {
  background: #ffebeb;
  color: #c92929;
}
.test-log-count.unable_to_test {
  background: #fff6d8;
  color: #9a6b00;
}
.test-log-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}
.test-log-meta > div:last-child > strong {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
}
.test-log-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.test-log-author > img,
.test-log-author > span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.test-log-author > span:first-child {
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #1769e0;
  font-size: 12px;
  font-weight: 700;
}
.test-log-author strong,
.test-log-author small {
  display: block;
}
.users-table-wrap.test-log-results {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.test-log-results table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}
.test-log-results th,
.test-log-results td {
  padding: 12px 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.test-log-results th:first-child,
.test-log-results td:first-child {
  width: 88px;
  padding-left: 14px;
  padding-right: 8px;
  white-space: nowrap;
}
.test-log-results th:nth-child(2),
.test-log-results td:nth-child(2) {
  width: 27%;
}
.test-log-results th:nth-child(3),
.test-log-results td:nth-child(3) {
  width: auto;
}
.test-log-results th:last-child,
.test-log-results td:last-child {
  width: 126px;
  white-space: nowrap;
}
.test-log-result {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.test-log-result.success {
  background: #e5f8ee;
  color: #087c45;
}
.test-log-result.failed {
  background: #ffebeb;
  color: #c92929;
}
.test-log-result.unable_to_test {
  background: #fff6d8;
  color: #9a6b00;
}
.logs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 16px;
}
.logs-pagination .users-pagination {
  flex: 1;
  padding: 0;
  border-top: 0;
}
.logs-page-size {
  position: static;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
.activity-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}
.activity-toolbar select {
  min-width: 190px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.activity-log-table {
  padding: 0;
  overflow: hidden;
}
.activity-log-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.activity-log-table .users-table-wrap {
  overflow-x: visible;
}
.activity-log-table th,
.activity-log-table td {
  padding: 11px 10px;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: middle;
}
.activity-log-table th:first-child,
.activity-log-table td:first-child {
  width: 92px;
}
.activity-log-table th:nth-child(2),
.activity-log-table td:nth-child(2) {
  width: 170px;
}
.activity-log-table th:last-child,
.activity-log-table td:last-child {
  width: 122px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.activity-log-table td:last-child time {
  display: block;
}
.activity-log-code {
  color: #1769e0;
  font-size: 12px;
  font-weight: 700;
}
.activity-log-actor {
  display: flex;
  align-items: center;
  gap: 9px;
}
.activity-log-actor > img,
.activity-log-actor > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
}
.activity-log-actor > span {
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #1769e0;
  font-size: 11px;
  font-weight: 700;
}
.activity-log-action {
  color: #2b3d59;
  font-weight: 600;
}
.activity-log-table td:nth-child(4) small,
.activity-log-table td:nth-child(4) strong,
.activity-log-table td:nth-child(4) a {
  display: block;
}
.activity-log-table td:nth-child(4) small {
  margin-bottom: 3px;
  color: var(--muted);
}
.activity-log-table td:nth-child(4) a {
  color: #1769e0;
  text-decoration: none;
  font-weight: 600;
}
.activity-pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.activity-pagination .users-pagination {
  flex: 1;
  padding: 0;
  border: 0;
}
@media (max-width: 900px) {
  .logs-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .test-log-card > header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .test-log-meta {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .activity-toolbar,
  .activity-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .test-log-card > header {
    grid-template-columns: 110px minmax(180px, 1fr) 22px;
  }
  .test-log-counts,
  .test-log-meta {
    grid-column: 1 / 3;
  }
}
@media (max-width: 600px) {
  .logs-summary {
    grid-template-columns: 1fr;
  }
  .logs-toolbar,
  .logs-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .activity-summary {
    grid-template-columns: 1fr;
  }
  .logs-page-size {
    align-self: flex-start;
  }
  .test-log-results th,
  .test-log-results td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .test-log-results th:first-child,
  .test-log-results td:first-child {
    width: 68px;
    padding-left: 8px;
  }
  .test-log-results th:nth-child(2),
  .test-log-results td:nth-child(2) {
    width: 25%;
  }
  .test-log-results th:last-child,
  .test-log-results td:last-child {
    width: 104px;
  }
}
.task-detail-heading > div > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.task-detail-heading > div {
  min-width: 0;
}
.task-detail-heading h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.task-detail-heading .badge {
  flex: 0 0 auto;
}
.task-detail-heading h1,
.task-detail-heading p {
  margin: 0;
}
.task-detail-heading h1 {
  font-size: 28px;
}
.task-detail-heading p {
  margin-top: 6px;
  color: var(--muted);
}
.task-detail-card {
  margin-bottom: 20px;
}
.task-detail-card h2 {
  margin-top: 0;
}
.task-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.task-detail-grid dl {
  margin: 0;
}
.task-detail-grid dt {
  margin-top: 16px;
  font-weight: 600;
}
.task-detail-grid dt:first-child {
  margin-top: 0;
}
.task-detail-grid dd {
  margin: 6px 0 0;
  color: #3e4f70;
}
.task-detail-grid a {
  color: var(--primary);
  text-decoration: none;
}
.detail-testers {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-testers > div {
  display: flex;
  padding-left: 8px;
}
.detail-testers img,
.detail-testers .table-avatar {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid #fff;
}
.detail-file {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.detail-file strong,
.detail-file small {
  display: block;
}
.detail-file small {
  color: var(--muted);
}
.test-cases-card {
  padding: 0;
  overflow: hidden;
}
.test-cases-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}
.test-run-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 27, 52, 0.58);
}
.test-run-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1050px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(4, 20, 45, 0.3);
}
.test-run-dialog > header,
.test-run-dialog > footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.test-run-dialog > header > div {
  flex: 1;
}
.test-run-dialog h2,
.test-run-dialog p {
  margin: 0;
}
.test-run-dialog header p {
  margin-top: 4px;
  color: var(--muted);
}
.test-run-dialog header button {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #425370;
  cursor: pointer;
}
.test-run-dialog header svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.test-run-body {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 22px;
  background: #f7f9fc;
}
.test-run-case {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.test-run-case-info {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.test-run-case-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.test-run-case-title strong {
  min-width: 0;
}
.test-run-case-title span {
  color: #77859a;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.test-run-case-info p {
  color: var(--muted);
  line-height: 1.45;
}
.test-run-case-info img,
.test-run-no-image {
  width: 82px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}
.test-run-image-link {
  display: block;
  width: 82px;
  height: 58px;
  border-radius: 7px;
  cursor: zoom-in;
}
.test-run-image-link:hover,
.test-run-image-link:focus-visible {
  outline: 3px solid rgba(22, 113, 232, 0.25);
  outline-offset: 2px;
}
.test-run-no-image {
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.test-run-case fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.test-run-case fieldset label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.test-run-case fieldset input {
  margin: 0;
}
.test-run-case fieldset label.success {
  border-color: #a8dfbf;
  background: #e9f8f0;
  color: #147540;
}
.test-run-case fieldset label.failed {
  border-color: #f2b4b4;
  background: #fff0f0;
  color: #b52d2d;
}
.test-run-case fieldset label.unable_to_test {
  border-color: #efd18e;
  background: #fff7e5;
  color: #925d09;
}
.test-run-case fieldset label:has(input:checked) {
  box-shadow: inset 0 0 0 2px currentColor;
  font-weight: 700;
}
.test-run-dialog > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.test-run-dialog > footer > span {
  margin-right: auto;
  color: var(--muted);
}
.test-run-dialog > footer > strong {
  color: #c23030;
  font-size: 12px;
}
.test-run-dialog #finish-test-run:disabled {
  background: #c7d0dc;
  color: #f6f8fb;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}
.test-cases-header h2 {
  margin: 0;
}
.test-cases-header h2 span {
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef2f8;
  font-size: 14px;
}
.test-cases-header > div {
  display: flex;
  gap: 12px;
}
.test-cases-header input,
.test-cases-header select,
.test-cases-header button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.test-cases-header input {
  width: 310px;
  padding-left: 39px;
}
#start-test-run.primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#start-test-run.primary-action:hover {
  background: #075dcc;
}
.test-cases-table table {
  min-width: 1050px;
}
.test-cases-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.test-case-code {
  color: var(--primary);
  font-weight: 600;
}
.truncate {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.test-case-thumbnail {
  width: 92px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f5f7fa;
  cursor: pointer;
}
.test-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-error {
  display: inline-block;
  max-width: 120px;
  color: #a12626;
  font-size: 11px;
}
.users-error button {
  margin-top: 12px;
}
.users-skeleton-line {
  height: 18px;
  margin: 15px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6, #f8f9fb, #eef1f6);
}
.users-filters :focus-visible,
.settings-tabs a:focus-visible,
.users-table-card button:focus-visible {
  outline: 3px solid rgba(9, 101, 245, 0.25);
  outline-offset: 2px;
}
.user-row {
  cursor: pointer;
}
.user-row:hover,
.user-row:focus-visible {
  background: #f5f9ff;
}
.user-row:focus-visible {
  outline: 3px solid rgba(9, 101, 245, 0.25);
  outline-offset: -3px;
}
.user-action-wrap {
  position: relative;
  display: inline-block;
}
.user-action-menu {
  position: absolute;
  z-index: 12;
  right: 0;
  top: calc(100% + 5px);
  width: max-content;
  min-width: 205px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 30, 70, 0.18);
}
.user-action-menu[hidden] {
  display: none;
}
.user-action-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.user-action-menu button:hover,
.user-action-menu button:focus-visible {
  background: #edf4ff;
  color: var(--primary);
}
body.user-modal-open {
  overflow: hidden;
}
body.role-modal-open {
  overflow: hidden;
}
.role-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 18, 37, 0.62);
}
.role-create-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(0, 19, 48, 0.34);
}
.role-create-dialog > header {
  display: grid;
  grid-template-columns: 52px 1fr 38px;
  align-items: center;
  gap: 14px;
  padding: 21px 27px 17px;
  border-bottom: 1px solid var(--border);
}
.role-create-dialog header h2,
.role-create-dialog header p,
.role-create-permissions h3,
.role-create-permissions p {
  margin: 0;
}
.role-create-dialog header p,
.role-create-permissions p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.role-create-dialog header > button {
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #324464;
  cursor: pointer;
}
.role-create-dialog header > button svg,
.role-create-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.role-create-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 10px;
  background: #e7f0ff;
  color: var(--primary);
}
.role-create-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 20px 27px;
}
.role-create-field {
  display: block;
  margin-bottom: 16px;
  color: #17213b;
  font-weight: 650;
}
.role-create-field b {
  color: #c9384d;
}
.role-create-field input,
.role-create-field textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}
.role-create-field textarea {
  min-height: 94px;
  resize: vertical;
}
.role-create-field input:focus,
.role-create-field textarea:focus {
  border-color: var(--primary);
  outline: 2px solid #dceaff;
}
.field-error,
.role-create-error {
  display: block;
  margin-top: 5px;
  color: #b42338;
  font-size: 12px;
  font-weight: 500;
}
.role-create-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.role-create-status strong,
.role-create-status small {
  display: block;
}
.role-create-status small {
  margin-top: 3px;
  color: var(--muted);
}
.role-create-permissions {
  margin-top: 20px;
}
.role-create-permissions > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.role-create-permissions button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
.role-create-permission-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.role-create-permission-group {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.role-create-permission-group legend {
  padding: 0 5px;
  color: #17213b;
  font-weight: 700;
}
.role-create-permission-group label {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  cursor: pointer;
}
.role-create-permission-group strong,
.role-create-permission-group small {
  display: block;
}
.role-create-permission-group small {
  margin-top: 2px;
  color: var(--muted);
}
.role-create-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 27px;
  border-top: 1px solid var(--border);
  background: #f8faff;
}
.role-create-dialog footer button {
  min-height: 42px;
  padding: 0 18px;
}
.role-create-error {
  padding: 10px 12px;
  border-radius: 7px;
  background: #fff0f2;
}
.all-test-cases-card {
  margin-top: 18px;
}
.test-case-task {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}
a.test-case-task:hover strong {
  color: var(--primary);
  text-decoration: underline;
}
.test-case-task span {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 18, 37, 0.62);
}
.user-edit-dialog {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(0, 19, 48, 0.34);
}
.user-edit-header {
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 21px 27px 17px;
}
.user-edit-header-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #e7f0ff;
  color: var(--primary);
  font-size: 29px;
  font-weight: 700;
}
.user-edit-header-icon i {
  position: absolute;
  right: 7px;
  bottom: 6px;
  font-size: 14px;
  font-style: normal;
}
.user-edit-header-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.user-edit-header h2 {
  margin: 0;
  color: #101a34;
  font-size: 22px;
  line-height: 1.25;
}
.user-edit-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.user-edit-close {
  align-self: start;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #324464;
  cursor: pointer;
}
.user-edit-close svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.user-edit-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 27px 18px;
  overscroll-behavior: contain;
}
.user-identity-card {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 112px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}
.user-identity-card img,
.user-edit-avatar-fallback {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #e4efff, #bfd6fb);
  object-fit: cover;
  color: #154f9e;
  font-size: 21px;
  font-weight: 700;
}
.user-edit-avatar-picker {
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.user-edit-avatar-picker img,
.user-edit-avatar-picker .user-edit-avatar-fallback {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.user-edit-avatar-picker > span:last-child {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1671e8;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 7px rgba(14, 73, 151, 0.25);
}
.user-edit-avatar-picker:hover,
.user-edit-avatar-picker:focus-visible {
  outline: 3px solid rgba(22, 113, 232, 0.2);
  outline-offset: 3px;
}
.user-edit-avatar-picker:disabled {
  cursor: wait;
  opacity: 0.7;
}
.user-identity-card > div > strong,
.user-identity-card > div > span,
.user-identity-card > div > small {
  display: block;
}
.user-identity-card > div > strong {
  color: #111b34;
  font-size: 18px;
}
.user-identity-card > div > span {
  margin-top: 4px;
  color: #4e5f7d;
}
.identity-status {
  margin-top: 7px;
}
.identity-status i,
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8a96a9;
}
.identity-status.active {
  color: #168847;
}
.identity-status.active i,
.status-dot.active {
  background: #19a85b;
}
.identity-status.inactive {
  color: #8a4350;
}
.identity-status.inactive i,
.status-dot.inactive {
  background: #c55c68;
}
.user-edit-section {
  padding: 16px 0 14px;
  border-bottom: 1px solid #e2e8f1;
}
.user-edit-section h3,
.administrator-access-section h3 {
  margin: 0 0 10px;
  color: #17213b;
  font-size: 16px;
}
.user-edit-section > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.user-profile-section label {
  display: grid;
  gap: 6px;
  max-width: 360px;
}
.user-profile-section label > span {
  color: #243452;
  font-size: 13px;
  font-weight: 700;
}
.user-profile-section input {
  min-height: 40px;
  border: 1px solid #cbd7e7;
  border-radius: 7px;
  padding: 0 11px;
  color: #17213b;
  font: inherit;
}
.account-switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.account-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.account-switch > span {
  position: relative;
  pointer-events: none;
  width: 50px;
  height: 27px;
  border-radius: 20px;
  background: #aeb9ca;
  transition: background 0.18s;
}
.account-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 24, 60, 0.25);
  transition: transform 0.18s;
}
.account-switch input:checked + span {
  background: var(--primary);
}
.account-switch input:checked + span::after {
  transform: translateX(23px);
}
.account-switch input:focus-visible + span {
  outline: 3px solid rgba(8, 105, 255, 0.3);
  outline-offset: 3px;
}
.account-switch input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}
.readonly-account-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.readonly-account-status small {
  margin-left: 7px;
  color: var(--muted);
}
.user-role-search {
  position: relative;
  display: block;
}
.user-role-search > span {
  position: absolute;
  left: 14px;
  top: 10px;
  color: #526689;
  font-size: 22px;
}
.user-role-search input {
  width: 100%;
  height: 43px;
  padding: 0 14px 0 45px;
  border: 1px solid #cfd9e8;
  border-radius: 8px 8px 0 0;
  color: var(--text);
}
.user-role-options {
  max-height: 245px;
  overflow-y: auto;
  border: 1px solid #d5deeb;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.user-role-option {
  display: grid;
  grid-template-columns: 20px 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 8px 13px;
  border-bottom: 1px solid #e4e9f1;
  cursor: pointer;
}
.user-role-option:last-of-type {
  border-bottom: 0;
}
.user-role-option:hover {
  background: #f7faff;
}
.user-role-option[hidden] {
  display: none;
}
.user-role-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.user-role-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e7efff;
  color: #155fff;
  font-weight: 800;
}
.role-color-1 {
  background: #ede8ff;
  color: #6238df;
}
.role-color-2 {
  background: #e6f7eb;
  color: #178844;
}
.role-color-3 {
  background: #fff0e3;
  color: #d86611;
}
.user-role-option strong,
.user-role-option small {
  display: block;
}
.user-role-option strong {
  color: #17213b;
  font-size: 14px;
}
.user-role-option > span:last-child > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.user-role-option.inactive {
  background: #fafbfc;
}
.inactive-role-badge {
  display: inline-block !important;
  margin-left: 5px;
  color: #8a5c24 !important;
  font-weight: 500;
}
#role-search-empty {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}
.selected-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 31px;
  margin-top: 10px;
}
.selected-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 3px 8px 3px 11px;
  border: 1px solid #d3ddff;
  border-radius: 6px;
  background: #eef2ff;
  color: #1457e9;
  font-size: 13px;
}
.selected-role-chip button {
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.no-selected-roles {
  color: var(--muted);
  font-size: 13px;
}
.administrator-access-section {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #79a8ff;
  border-radius: 9px;
  background: #fbfdff;
}
.administrator-title {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 11px;
}
.administrator-title > span {
  color: var(--primary);
}
.administrator-title > span svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.administrator-title h3 {
  margin-bottom: 8px;
}
.administrator-title label {
  color: #273552;
  font-size: 14px;
}
.administrator-title input {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: var(--primary);
  vertical-align: -3px;
}
.administrator-title small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.readonly-admin-value {
  margin: 0;
  color: #3e4f70;
  font-size: 13px;
}
.administrator-info {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #eaf2ff;
  color: #31588f;
  font-size: 12px;
}
.administrator-info span {
  color: var(--primary);
  font-size: 17px;
}
.administrator-info p {
  margin: 0;
  line-height: 1.55;
}
.user-password-reset-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #efb6bb;
  border-radius: 9px;
  background: #fffafb;
}
.user-password-reset-section > span {
  color: #be3441;
}
.user-password-reset-section svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
}
.user-password-reset-section h3,
.user-password-reset-section p {
  margin: 0;
}
.user-password-reset-section h3 {
  color: #7d2730;
  font-size: 15px;
}
.user-password-reset-section p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.user-password-reset-section button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #cf4d59;
  border-radius: 7px;
  background: #fff;
  color: #aa2633;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.user-password-reset-section button:hover {
  background: #fff0f1;
}
.user-password-reset-section button:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 620px) {
  .user-password-reset-section {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .user-password-reset-section button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.user-edit-save-error,
.user-edit-load-error {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid #f0b8bd;
  border-radius: 8px;
  background: #fff3f4;
  color: #9f2f3a;
}
.user-edit-save-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.user-edit-save-error button,
.user-edit-load-error button {
  min-height: 34px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}
.user-edit-load-error {
  min-height: 220px;
  text-align: center;
  padding-top: 75px;
}
.user-edit-load-error button {
  display: block;
  margin: 18px auto 0;
  padding: 0 13px;
}
.user-edit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex: none;
  padding: 14px 27px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.user-edit-footer button {
  min-height: 43px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: #22314f;
  cursor: pointer;
}
.user-edit-footer .primary-action,
.confirmation-dialog .primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.user-edit-footer button:disabled {
  opacity: 0.55;
  cursor: default;
}
.button-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: user-spin 0.8s linear infinite;
}
@keyframes user-spin {
  to {
    transform: rotate(360deg);
  }
}
.user-edit-loading {
  padding: 4px 0 25px;
}
.user-edit-loading > div,
.user-edit-loading > section {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f8, #fafbfd, #eef2f8);
  background-size: 220% 100%;
  animation: user-loading 1.2s infinite linear;
}
.user-edit-loading > div {
  width: 60%;
  height: 17px;
  margin: 11px 0;
}
.user-edit-loading > div:first-child {
  width: 100%;
  height: 112px;
}
.user-edit-loading > section {
  height: 150px;
  margin-top: 17px;
}
@keyframes user-loading {
  to {
    background-position: -220% 0;
  }
}
.user-editor-confirmation {
  z-index: 110;
}
.app-toast {
  position: fixed;
  z-index: 130;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 17px;
  border-radius: 9px;
  background: #137c48;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 40, 30, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.18s ease;
}
.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.user-edit-dialog :focus-visible {
  outline: 3px solid rgba(8, 105, 255, 0.3);
  outline-offset: 2px;
}
body.test-case-modal-open {
  overflow: hidden;
}
.test-case-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 18, 37, 0.62);
}
.test-case-create-dialog {
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(0, 19, 48, 0.34);
}
.test-case-create-header {
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 20px 22px 16px;
}
.test-case-create-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #e7f0ff;
  color: var(--primary);
}
.test-case-create-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test-case-create-header h2 {
  margin: 0;
  color: #101a34;
  font-size: 22px;
  line-height: 1.25;
}
.test-case-create-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.test-case-create-header > button {
  align-self: start;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #324464;
  cursor: pointer;
}
.test-case-create-header > button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#test-case-create-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.test-case-create-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 22px 18px;
  overscroll-behavior: contain;
}
.readonly-task-field {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.readonly-task-field span {
  color: #53627d;
  font-size: 12px;
}
.readonly-task-field strong {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.test-case-readonly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}
.test-case-readonly-grid label,
.test-case-form-field {
  display: grid;
  gap: 7px;
}
.test-case-readonly-grid label > span,
.test-case-form-field > span:first-child {
  color: #263550;
  font-size: 13px;
  font-weight: 600;
}
.test-case-form-field > span b {
  color: #db3d4d;
}
.test-case-readonly-grid label > small,
.test-case-form-field > small:not(.test-case-field-error),
.test-case-upload-help {
  color: var(--muted);
  font-size: 11px;
}
.readonly-icon-field,
.readonly-author-field {
  display: flex;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #d6dfec;
  border-radius: 7px;
  background: #f7f9fc;
}
.readonly-icon-field b {
  padding-left: 13px;
  color: #6f7e98;
  font-size: 23px;
  font-weight: 500;
}
.readonly-icon-field input,
.readonly-author-field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #6a7890;
}
.readonly-author-field img,
.test-case-author-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 7px;
  flex: none;
  border-radius: 50%;
  background: #d8e7ff;
  object-fit: cover;
  color: #245da9;
  font-size: 11px;
  font-weight: 700;
}
.test-case-form-field {
  position: relative;
  margin-top: 16px;
}
.test-case-form-field > input,
.test-case-form-field > textarea {
  width: 100%;
  border: 1px solid #d4deeb;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.test-case-form-field > input {
  height: 42px;
  padding: 0 13px;
}
.test-case-form-field > textarea {
  min-height: 88px;
  padding: 11px 13px 28px;
  resize: vertical;
  line-height: 1.5;
}
.test-case-form-field > input[aria-invalid="true"],
.test-case-form-field > textarea[aria-invalid="true"],
.test-case-image-dropzone.invalid {
  border-color: #d74d5b;
  box-shadow: 0 0 0 2px rgba(215, 77, 91, 0.08);
}
.test-case-character-count {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #657490;
  font-size: 11px;
  font-weight: 400 !important;
}
.test-case-field-error {
  color: #b52f3d;
  font-size: 11px;
}
.test-case-image-dropzone {
  min-height: 112px;
  padding: 13px;
  border: 1px dashed #9dafc8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.test-case-image-dropzone:hover,
.test-case-image-dropzone.dragging {
  border-color: var(--primary);
  background: #f6f9ff;
}
.test-case-upload-empty {
  display: grid;
  grid-template-columns: 50px 1fr 105px;
  align-items: center;
  gap: 14px;
  min-height: 84px;
}
.test-case-upload-main-icon {
  color: var(--primary);
}
.test-case-upload-main-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.test-case-upload-empty > div strong,
.test-case-upload-empty > div span {
  display: block;
}
.test-case-upload-empty > div strong {
  color: var(--primary);
  font-size: 14px;
}
.test-case-upload-empty > div span {
  margin-top: 5px;
  color: #53627c;
  font-size: 13px;
}
.test-case-upload-placeholder {
  display: grid;
  place-items: center;
  width: 105px;
  height: 78px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #f7f9fc;
  color: #9da9ba;
}
.test-case-upload-placeholder svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.test-case-upload-help {
  display: block;
  margin-top: 7px;
}
.test-case-image-preview {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 84px;
}
.test-case-image-preview > img {
  width: 112px;
  height: 78px;
  border: 1px solid var(--border);
  border-radius: 7px;
  object-fit: contain;
  background: #f5f7fa;
}
.test-case-image-preview strong,
.test-case-image-preview small {
  display: block;
}
.test-case-image-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.test-case-image-preview small {
  margin-top: 4px;
  color: var(--muted);
}
.test-case-image-preview div div {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.test-case-image-preview button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #bfd0e8;
  border-radius: 6px;
  background: #fff;
  color: #1761cf;
  cursor: pointer;
}
.test-case-image-preview button:last-child {
  color: #a43642;
}
.test-case-general-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #efb7bd;
  border-radius: 7px;
  background: #fff3f4;
  color: #a72f3b;
  font-size: 13px;
}
.test-case-create-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex: none;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.test-case-create-footer button {
  min-height: 43px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: #22314f;
  cursor: pointer;
}
.test-case-create-footer .primary-action {
  min-width: 210px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.test-case-create-footer button:disabled {
  opacity: 0.58;
  cursor: default;
}
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.test-case-confirmation {
  z-index: 115;
}
.test-case-create-dialog :focus-visible {
  outline: 3px solid rgba(8, 105, 255, 0.3);
  outline-offset: 2px;
}

body.task-create-modal-open {
  overflow: hidden;
}
.task-create-backdrop {
  position: fixed;
  z-index: 108;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 16, 34, 0.67);
  backdrop-filter: blur(1px);
}
.task-create-dialog {
  display: flex;
  width: min(780px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 19, 43, 0.32);
  color: #17213b;
}
.task-create-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 16px;
  flex: none;
  padding: 20px 23px 14px;
}
.task-create-header-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 10px;
  background: #e8f1ff;
  color: #0969ff;
}
.task-create-header-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.task-create-header h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.25;
}
.task-create-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.task-create-header > button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #34425e;
  cursor: pointer;
}
.task-create-header > button:hover {
  background: #f2f5f9;
}
.task-create-header > button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#task-create-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.task-create-body {
  min-height: 0;
  overflow: auto;
  padding: 0 23px 15px;
  scrollbar-gutter: stable;
}
.task-create-field {
  position: relative;
  display: block;
  margin: 0 0 12px;
}
.task-create-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #27334f;
  font-size: 13px;
  font-weight: 650;
}
.task-create-field > span b {
  color: #e33e2f;
}
.task-create-field > input,
.task-create-field > textarea,
.task-status-select,
.task-create-readonly,
.task-create-icon-input,
.task-create-combobox > label,
.task-source-combobox > label {
  width: 100%;
  border: 1px solid #c9d5e5;
  border-radius: 6px;
  background: #fff;
}
.task-create-field > input,
.task-create-icon-input input,
.task-create-combobox input,
.task-source-combobox input,
.task-create-readonly input,
.task-status-select select {
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25334f;
  font: inherit;
  font-size: 13px;
}
.task-create-field > input {
  padding: 0 12px;
}
.task-create-field > textarea {
  min-height: 94px;
  resize: vertical;
  padding: 10px 12px 26px;
  outline: 0;
  color: #25334f;
  font: inherit;
  font-size: 13px;
}
.task-create-character-count {
  position: absolute;
  right: 11px;
  bottom: 8px;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
.task-create-two-column {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
}
.task-status-select,
.task-create-readonly,
.task-create-icon-input,
.task-create-combobox > label,
.task-source-combobox > label {
  display: flex;
  align-items: center;
}
.task-status-select i {
  width: 9px;
  height: 9px;
  flex: none;
  margin-left: 13px;
  border-radius: 50%;
  background: #9eacc0;
}
.task-status-select.in_progress i {
  background: #0969ff;
}
.task-status-select.blocked i {
  background: #ec4c2c;
}
.task-status-select.completed i {
  background: #13a45c;
}
.task-status-select select {
  flex: 1;
  padding: 0 10px;
}
.task-create-readonly {
  background: #fafbfd;
}
.task-create-readonly b {
  margin-left: 12px;
  color: #667794;
}
.task-create-readonly input {
  flex: 1;
  padding: 0 10px;
}
.task-create-field > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.task-create-combobox,
.task-source-combobox {
  position: relative;
}
.task-create-combobox > label b,
.task-source-combobox > label b {
  margin-left: 12px;
  color: #63728b;
  font-size: 18px;
  font-weight: 400;
}
.task-create-combobox input,
.task-source-combobox input {
  flex: 1;
  padding: 0 10px;
}
.task-source-combobox label > span {
  margin-right: 12px;
  color: #43516b;
}
.task-source-combobox label > button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #65728a;
  cursor: pointer;
}
.task-create-options {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: none;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #cbd7e6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(18, 40, 75, 0.18);
}
.task-create-options.open {
  display: block;
}
.task-create-person-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf1f6;
  cursor: pointer;
}
.task-create-person-option:hover,
.task-create-options.source button:hover {
  background: #f4f8ff;
}
.task-create-person-option input,
.task-copy-cases > input {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}
.task-create-person-option .custom-check,
.task-copy-cases .custom-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #b9c7da;
  border-radius: 4px;
  color: transparent;
  font-size: 11px;
}
.task-create-person-option input:checked + .custom-check,
.task-copy-cases input:checked + .custom-check {
  border-color: #0969ff;
  background: #0969ff;
  color: #fff;
}
.task-create-avatar,
.task-create-person-option img,
.task-selected-testers img {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: #dce9ff;
  color: #1455ad;
  font-size: 11px;
}
.task-create-person-option strong,
.task-create-person-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-create-person-option > span:last-child {
  min-width: 0;
}
.task-create-person-option strong {
  font-size: 13px;
}
.task-create-person-option small {
  margin-top: 2px;
  color: #15834c;
  font-size: 10px;
}
.task-create-option-empty {
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.task-selected-testers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}
.task-selected-testers > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 2px 5px 2px 3px;
  border: 1px solid #d0dbea;
  border-radius: 6px;
  background: #f8faff;
}
.task-selected-testers b {
  font-size: 12px;
  font-weight: 500;
}
.task-selected-testers button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #65728a;
  cursor: pointer;
}
.task-create-file-dropzone {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 15px;
  border: 1px dashed #aabbd2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.task-create-file-dropzone.dragging {
  border-color: #0969ff;
  background: #f1f6ff;
}
.task-create-file-dropzone[aria-disabled="true"] {
  cursor: default;
  opacity: 0.62;
}
.task-create-file-dropzone > svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #47617e;
  stroke-width: 1.7;
}
.task-create-file-dropzone strong,
.task-create-file-dropzone span {
  display: block;
  font-size: 12px;
}
.task-create-file-dropzone strong {
  color: #0969ff;
}
.task-create-file-dropzone span,
.task-create-file-dropzone small {
  margin-top: 3px;
  color: var(--muted);
}
.task-create-file-dropzone small {
  font-size: 10px;
}
.task-create-files {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}
.task-create-file {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 6px 8px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #fafcff;
}
.task-create-file .file-kind {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: #e8f3ff;
  color: #0969ff;
  font-size: 8px;
  font-weight: 800;
}
.task-create-file .file-kind.pdf {
  background: #ffe9ea;
  color: #d4343e;
}
.task-create-file .file-kind.image {
  background: #e8f7e9;
  color: #159348;
}
.task-create-file strong,
.task-create-file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-create-file strong {
  font-size: 11px;
}
.task-create-file small,
.task-create-file > b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}
.task-create-file > button {
  border: 0;
  background: transparent;
  color: #63718a;
  cursor: pointer;
}
.task-file-progress {
  display: block;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #e5ebf3;
}
.task-file-progress i {
  display: block;
  height: 100%;
  background: #0969ff;
  transition: width 0.15s ease;
}
.task-create-icon-input svg {
  width: 18px;
  height: 18px;
  margin-left: 12px;
  fill: none;
  stroke: #60718d;
  stroke-width: 1.7;
}
.task-create-icon-input input {
  flex: 1;
  padding: 0 10px;
}
.task-create-icon-input .figma-valid {
  display: none;
  margin-right: 12px;
  color: #159654;
  font-style: normal;
}
.task-create-icon-input.valid .figma-valid {
  display: block;
}
.task-create-options.source button {
  display: grid;
  width: 100%;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  color: #27334f;
  text-align: left;
  cursor: pointer;
}
.task-create-options.source strong {
  color: #0969ff;
}
.task-copy-cases {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #8ab3ff;
  border-radius: 7px;
  background: #f3f7ff;
  cursor: pointer;
}
.task-copy-cases.disabled {
  border-color: #d5dfec;
  background: #f8fafc;
  cursor: default;
  opacity: 0.67;
}
.task-copy-cases strong,
.task-copy-cases small {
  display: block;
}
.task-copy-cases strong {
  color: #0969ff;
  font-size: 12px;
}
.task-copy-cases small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.task-copy-cases > b {
  color: #4f607b;
}
.task-create-field-error {
  display: block;
  margin-top: 4px;
  color: #b32938 !important;
  font-size: 11px !important;
}
.task-create-field [aria-invalid="true"],
.task-create-combobox.invalid,
.task-create-file-dropzone.invalid {
  border-color: #df5d68;
}
.task-create-general-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #efb7bd;
  border-radius: 6px;
  background: #fff3f4;
  color: #a72f3b;
  font-size: 12px;
}
.task-create-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
  padding: 13px 23px;
  border-top: 1px solid #dfe6ef;
  background: #fff;
}
.task-create-footer button {
  min-width: 115px;
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid #cbd6e4;
  border-radius: 6px;
  background: #fff;
  color: #27334f;
  cursor: pointer;
}
.task-create-footer .primary-action {
  min-width: 155px;
  border-color: #0969ff;
  background: #0969ff;
  color: #fff;
}
.task-create-footer button:disabled {
  cursor: default;
  opacity: 0.52;
}
.task-create-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}
.task-create-loading .button-spinner {
  width: 28px;
  height: 28px;
  border-color: #d5e4fb;
  border-top-color: #0969ff;
}
.task-create-confirmation {
  z-index: 118;
}
.task-create-dialog :focus-visible {
  outline: 3px solid rgba(8, 105, 255, 0.28);
  outline-offset: 2px;
}

/* Unified, compact focus treatment for form controls. */
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: #4b8df8;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(8, 105, 255, 0.12);
}
.task-create-icon-input:focus-within,
.task-create-combobox > label:focus-within,
.task-source-combobox > label:focus-within,
.task-status-select:focus-within {
  border-color: #4b8df8;
  box-shadow: 0 0 0 3px rgba(8, 105, 255, 0.12);
}
.task-create-icon-input input:focus-visible,
.task-create-combobox input:focus-visible,
.task-source-combobox input:focus-visible,
.task-status-select select:focus-visible {
  box-shadow: none;
}
@media (max-width: 860px) {
  body.drawer-open {
    overflow: hidden;
  }
  .sidebar:not(.mobile-drawer) {
    display: none;
  }
  .main-area {
    margin-left: 0;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .menu-button {
    display: grid;
  }
  .user-copy {
    display: none;
  }
  .header-divider {
    display: none;
  }
  .logout-button {
    padding: 7px;
  }
  .page {
    padding: 22px 16px;
  }
  .page-title h1 {
    font-size: 24px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-chart-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }
  .deadline-grid {
    grid-template-columns: 1fr;
  }
  .deadline {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
  }
  .deadline:last-child {
    border: 0;
  }
  .dashboard-skeleton {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-skeleton section {
    grid-column: span 2;
  }
  .table-wrap {
    overflow-x: auto;
  }
  .users-filters {
    grid-template-columns: 1fr 1fr;
  }
  .roles-filters {
    grid-template-columns: 1fr 1fr;
  }
  .tasks-filters {
    grid-template-columns: 1fr 1fr;
  }
  .task-detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .test-cases-header {
    align-items: stretch;
    flex-direction: column;
  }
  .test-cases-header > div {
    flex-wrap: wrap;
  }
  .selected-role-card,
  .permission-toolbar {
    flex-wrap: wrap;
  }
  .permission-groups {
    grid-template-columns: 1fr;
  }
  .roles-filters button {
    grid-column: span 2;
  }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 17, 37, 0.58);
    z-index: 39;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .drawer-backdrop[hidden] {
    display: none;
  }
  .drawer-backdrop.open {
    opacity: 1;
  }
  .mobile-drawer {
    display: block;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 15px 0 45px rgba(0, 20, 50, 0.3);
  }
  .mobile-drawer.open {
    transform: translateX(0);
  }
  .drawer-close {
    position: absolute;
    right: 10px;
    top: 13px;
    width: 42px;
    height: 42px;
    color: #fff;
  }
  .drawer-close svg {
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 520px) {
  .role-create-backdrop {
    padding: 0;
  }
  .role-create-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .role-create-dialog > header,
  .role-create-body,
  .role-create-dialog footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .role-create-body {
    max-height: calc(100vh - 198px);
  }
  .role-create-permission-list {
    grid-template-columns: 1fr;
  }
  .mobile-drawer {
    width: min(82vw, 300px);
  }
  .topbar-actions {
    gap: 7px;
  }
  .notification-menu {
    position: fixed;
    top: 66px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .summary-card {
    min-height: 100px;
  }
  .distribution-content {
    grid-template-columns: 1fr;
    height: auto;
  }
  .donut {
    width: 155px;
  }
  .chart-legend {
    display: grid;
    gap: 5px;
  }
  .card-heading {
    align-items: flex-start;
  }
  .dashboard-skeleton {
    grid-template-columns: 1fr;
  }
  .dashboard-skeleton section {
    grid-column: auto;
  }
  .activity {
    grid-template-columns: 36px 1fr;
  }
  .activity time {
    grid-column: 2;
  }
  .profile-chevron {
    display: none;
  }
  .name-grid {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    gap: 18px;
    margin-bottom: 18px;
  }
  .users-summary-grid,
  .users-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .roles-panel {
    padding: 13px;
  }
  .roles-panel-heading,
  .roles-filters {
    grid-template-columns: 1fr;
  }
  .permissions-panel {
    padding: 13px;
  }
  .tasks-heading-action {
    margin: 0 0 18px;
    justify-content: stretch;
  }
  .tasks-heading-action button {
    width: 100%;
  }
  .tasks-filters {
    grid-template-columns: 1fr;
  }
  .tasks-summary {
    grid-template-columns: 1fr;
  }
  .task-detail-heading {
    flex-direction: column;
  }
  .task-detail-heading h1 {
    font-size: 24px;
  }
  .task-detail-heading .primary-action {
    width: 100%;
  }
  .task-detail-actions,
  .task-quick-status {
    width: 100%;
  }
  .test-cases-header > div {
    flex-direction: column;
  }
  .test-cases-header input,
  .test-cases-header select,
  .test-cases-header button {
    width: 100%;
  }
  .permissions-heading,
  .selected-role-card,
  .permission-toolbar,
  .permissions-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .role-selector {
    flex-basis: auto;
  }
  .role-permission-stat {
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .permission-toolbar select {
    min-width: 0;
    width: 100%;
  }
  .permissions-actions {
    margin: 16px -13px -13px;
  }
  .permissions-actions > div:last-child {
    flex-direction: column;
  }
  .roles-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .roles-filters button {
    grid-column: auto;
  }
  .users-summary-grid .card {
    min-height: 86px;
  }
  .users-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .page {
    padding: 20px 13px;
  }
  .card {
    padding: 15px;
  }
  .brand {
    font-size: 36px;
  }
  .nav-item {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .user-edit-backdrop {
    align-items: end;
    padding: 10px;
  }
  .user-edit-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }
  .user-edit-header {
    grid-template-columns: 46px 1fr 34px;
    gap: 10px;
    padding: 16px 16px 13px;
  }
  .user-edit-header-icon {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }
  .user-edit-header h2 {
    font-size: 18px;
  }
  .user-edit-header p {
    font-size: 12px;
  }
  .user-edit-body {
    padding: 0 16px 14px;
  }
  .user-identity-card {
    min-height: 92px;
    padding: 12px;
  }
  .user-identity-card img,
  .user-edit-avatar-fallback {
    width: 58px;
    height: 58px;
  }
  .user-identity-card > div > strong {
    font-size: 16px;
  }
  .user-identity-card > div > span {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .user-role-options {
    max-height: 200px;
  }
  .user-edit-footer {
    padding: 12px 16px;
  }
  .user-edit-footer button {
    flex: 1;
    padding: 0 11px;
  }
  .user-edit-save-error {
    align-items: stretch;
    flex-direction: column;
  }
  .user-edit-save-error button {
    margin-left: 0;
  }

  .test-case-create-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .test-case-create-dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .test-case-create-header {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 16px;
  }

  .test-case-create-icon {
    width: 46px;
    height: 46px;
  }

  .test-case-create-header h2 {
    font-size: 18px;
  }

  .test-case-create-body {
    padding: 16px;
  }

  .test-case-readonly-grid,
  .test-case-image-preview {
    grid-template-columns: 1fr;
  }

  .test-case-upload-empty {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 110px;
    padding: 18px;
  }

  .test-case-upload-placeholder {
    display: none;
  }

  .test-case-image-preview img {
    width: 100%;
    height: 150px;
  }

  .test-case-create-footer {
    flex-direction: column-reverse;
    padding: 14px 16px;
  }

  .test-case-create-footer button,
  .test-case-create-footer .primary-action {
    width: 100%;
    min-width: 0;
  }

  .task-create-backdrop {
    align-items: flex-end;
    padding: 8px;
  }

  .task-create-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .task-create-header {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 11px;
    padding: 15px 15px 12px;
  }

  .task-create-header-icon {
    width: 46px;
    height: 46px;
  }

  .task-create-header-icon svg {
    width: 26px;
    height: 26px;
  }

  .task-create-header h2 {
    font-size: 18px;
  }

  .task-create-header p {
    font-size: 11px;
  }

  .task-create-body {
    padding: 0 15px 13px;
  }

  .task-create-two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .task-create-file-dropzone {
    grid-template-columns: 38px 1fr;
  }

  .task-create-file-dropzone > small {
    grid-column: 1 / -1;
  }

  .task-create-file {
    grid-template-columns: 34px minmax(0, 1fr) 25px;
  }

  .task-create-file > b {
    display: none;
  }

  .task-create-footer {
    flex-direction: column-reverse;
    padding: 12px 15px;
  }

  .task-create-footer button,
  .task-create-footer .primary-action {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .role-details-backdrop {
    align-items: end;
    padding: 10px;
  }
  .role-details-dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }
  .role-details-dialog > header {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 16px;
  }
  .role-details-icon {
    width: 46px;
    height: 46px;
  }
  .role-details-dialog > header h2 {
    font-size: 18px;
  }
  .role-details-body {
    padding: 16px;
  }
  .role-details-summary,
  .role-details-users,
  .role-details-permission-group > div {
    grid-template-columns: 1fr;
  }
  .role-details-permission-group article:nth-child(even) {
    border-left: 0;
  }
  .role-details-dialog footer {
    padding: 12px 16px;
  }
  .role-details-dialog footer button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
