:root {
  --bg: #08111f;
  --bg-elevated: #101b30;
  --bg-panel: #15233d;
  --bg-panel-soft: #1b2b47;
  --bg-panel-strong: #0d1728;
  --bg-input: #0e182c;
  --text: #eef4ff;
  --text-soft: #a8b9dc;
  --text-faint: #7586ad;
  --line: rgba(164, 180, 214, 0.12);
  --primary: #1fbf92;
  --primary-2: #4be0b8;
  --teal: #1fcaa6;
  --cyan: #70dfd3;
  --orange: #ffbf5a;
  --red: #ff6b86;
  --green: #1ad7a7;
  --white-soft: rgba(255, 255, 255, 0.05);
  --shadow-xl: 0 26px 64px rgba(2, 9, 25, 0.34);
  --shadow-lg: 0 16px 34px rgba(2, 9, 25, 0.26);
  --shadow-md: 0 10px 22px rgba(2, 9, 25, 0.18);
  --radius-2xl: 22px;
  --radius-xl: 18px;
  --radius-lg: 15px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  background: #091120;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 191, 146, 0.1), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(112, 223, 211, 0.08), transparent 20%),
    linear-gradient(180deg, #091120 0%, #0d1728 55%, #091120 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.js .page-intro,
html.js .page-header,
html.js .summary-card,
html.js .panel,
html.js .card,
html.js .auth-card,
html.js .auth-hero,
html.js .login-panel,
html.js .topbar,
html.js .sidebar {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.22s ease;
}

html.ui-pending .page-intro,
html.ui-pending .page-header,
html.ui-pending .summary-card,
html.ui-pending .panel,
html.ui-pending .card,
html.ui-pending .auth-card,
html.ui-pending .auth-hero,
html.ui-pending .login-panel,
html.ui-nav-busy .page-intro,
html.ui-nav-busy .page-header,
html.ui-nav-busy .summary-card,
html.ui-nav-busy .panel,
html.ui-nav-busy .card,
html.ui-nav-busy .auth-card,
html.ui-nav-busy .auth-hero,
html.ui-nav-busy .login-panel {
  position: relative;
  overflow: hidden;
}

html.ui-pending .page-intro > *,
html.ui-pending .page-header > *,
html.ui-pending .summary-card > *,
html.ui-pending .panel > *,
html.ui-pending .card > *,
html.ui-pending .auth-card > *,
html.ui-pending .auth-hero > *,
html.ui-pending .login-panel > *,
html.ui-nav-busy .page-intro > *,
html.ui-nav-busy .page-header > *,
html.ui-nav-busy .summary-card > *,
html.ui-nav-busy .panel > *,
html.ui-nav-busy .card > *,
html.ui-nav-busy .auth-card > *,
html.ui-nav-busy .auth-hero > *,
html.ui-nav-busy .login-panel > * {
  opacity: 0;
}

html.ui-pending .page-intro::before,
html.ui-pending .page-header::before,
html.ui-pending .summary-card::before,
html.ui-pending .panel::before,
html.ui-pending .card::before,
html.ui-pending .auth-card::before,
html.ui-pending .auth-hero::before,
html.ui-pending .login-panel::before,
html.ui-nav-busy .page-intro::before,
html.ui-nav-busy .page-header::before,
html.ui-nav-busy .summary-card::before,
html.ui-nav-busy .panel::before,
html.ui-nav-busy .card::before,
html.ui-nav-busy .auth-card::before,
html.ui-nav-busy .auth-hero::before,
html.ui-nav-busy .login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.08) 34%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  background-size: 220% 100%, 100% 100%;
  animation: ui-shimmer 1.1s linear infinite;
}

html.ui-nav-busy .content,
html.ui-nav-busy .auth-shell,
html.ui-nav-busy .login-shell {
  pointer-events: none;
}

.page-intro,
.page-header,
.summary-card,
.panel,
.card,
.table-card {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

a {
  color: #9af5d8;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

img {
  display: block;
  max-width: 100%;
}

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

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(164, 180, 214, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 40, 0.94), rgba(12, 19, 33, 0.94));
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

select {
  appearance: none;
}

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

option {
  background: #10182b;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 213, 164, 0.48);
  box-shadow:
    0 0 0 4px rgba(31, 213, 164, 0.12),
    0 10px 24px rgba(31, 213, 164, 0.08);
  transform: translateY(-1px);
}

label {
  display: grid;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead tr {
  background: rgba(255, 255, 255, 0.025);
}

th {
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #eef3ff;
  font-size: 0.94rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-soft);
}

small {
  color: var(--text-soft);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0fa77a 0%, #14c996 48%, #34d9ae 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(20, 201, 150, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(20, 201, 150, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.button-secondary:hover {
  box-shadow: none;
}

.button.is-active {
  box-shadow: 0 14px 28px rgba(20, 201, 150, 0.24);
}

.button-tertiary {
  background: linear-gradient(135deg, rgba(28, 200, 160, 0.18), rgba(65, 199, 255, 0.18));
  color: #dffef4;
  box-shadow: none;
}

.button-block {
  width: 100%;
}

.button.is-loading,
button.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.danger {
  background: linear-gradient(135deg, #ff6d88, #ff5777);
  box-shadow: 0 14px 28px rgba(255, 92, 124, 0.22);
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #9ff3d8;
  box-shadow: none;
}

.link-button:hover {
  box-shadow: none;
  transform: none;
  opacity: 0.84;
}

.alert.error {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 92, 124, 0.12);
  border: 1px solid rgba(255, 92, 124, 0.18);
  color: #ffd9e0;
}

.alert.success {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(21, 215, 168, 0.12);
  border: 1px solid rgba(21, 215, 168, 0.18);
  color: #d5fff1;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8de8cc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.muted-copy,
.page-subtitle,
.panel-head p,
.card-head p,
.page-header p {
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  padding: 18px;
}

.sidebar {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 44px);
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 23, 41, 0.98), rgba(10, 17, 31, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid rgba(103, 231, 194, 0.08);
  box-shadow: var(--shadow-xl);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 6px 6px 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #11a679, #2fd5ac);
  box-shadow: 0 16px 26px rgba(17, 166, 121, 0.25);
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 2px solid #fff;
  border-left-color: transparent;
  transform: rotate(45deg);
}

.brand {
  color: #fff;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: #91a7cb;
  font-size: 0.76rem;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(104, 225, 190, 0.08);
}

.sidebar-profile-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(21, 185, 138, 0.32), rgba(74, 215, 196, 0.22));
  color: #fff;
  font-weight: 800;
}

.sidebar-profile strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.sidebar-profile span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.sidebar-profile-meta {
  display: block;
  margin-top: 3px;
  color: rgba(226, 236, 255, 0.82);
  font-size: 0.78rem;
}

.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #93f5d8;
  font-size: 0.74rem;
}

.sidebar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(21, 215, 168, 0.08);
}

.sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-group + .nav-group {
  margin-top: 14px;
}

.nav-caption {
  margin: 0 0 10px;
  color: rgba(159, 175, 209, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

.nav a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px 7px 8px;
  border-radius: 12px;
  color: #d0daf1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(21, 185, 138, 0.18), rgba(74, 215, 196, 0.02));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #11b284, #2fd5ac);
  opacity: 0;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  transform: translateX(3px);
}

.nav a:hover::before,
.nav a.active::before,
.nav a.active::after {
  opacity: 1;
}

.nav a > * {
  position: relative;
  z-index: 1;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-icon svg,
.topbar-icon svg,
.topbar-chip svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: 12px;
}

.logout-form {
  margin-top: 0;
}

.logout-form .button {
  width: 100%;
}

.content {
  min-width: 0;
  padding: 2px 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(13, 22, 39, 0.96));
  border: 1px solid rgba(104, 225, 190, 0.07);
  box-shadow: var(--shadow-md);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.9), rgba(9, 15, 28, 0.88));
  border: 1px solid rgba(104, 225, 190, 0.05);
}

.topbar-icon {
  display: grid;
  place-items: center;
  color: var(--text-faint);
}

.topbar-search input {
  min-height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topbar-search input:focus {
  transform: none;
  box-shadow: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11b284, #35d7af);
}

.topbar-chip {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  color: #dbe4ff;
  box-shadow: none;
}

.topbar-chip:hover {
  box-shadow: none;
}

.topbar-chip-alert.is-alerting {
  animation: pulse-alert 1.4s ease infinite;
}

.topbar-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6d57, #ff9c48);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(255, 109, 87, 0.28);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  line-height: 1.15;
  border-radius: 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.topbar-account {
  position: relative;
}

.topbar-account summary {
  list-style: none;
  cursor: pointer;
}

.topbar-account summary::-webkit-details-marker {
  display: none;
}

.topbar-account[open] .topbar-user,
.topbar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.topbar-account[open] .topbar-user {
  transform: translateY(-1px);
}

.topbar-user strong {
  display: block;
  font-size: 0.9rem;
}

.topbar-user span {
  display: block;
  color: #96f3d9;
  font-size: 0.78rem;
}

.topbar-user-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-user-copy strong,
.topbar-user-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb84d, #ff8a50);
  color: #10131d;
  font-size: 0.92rem;
  font-weight: 800;
}

.topbar-caret {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  align-self: center;
  width: 18px;
  line-height: 1;
  color: var(--text-soft);
  transition: transform 0.18s ease;
}

.topbar-caret svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-account[open] .topbar-caret {
  transform: rotate(180deg);
}

.topbar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 244px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.98), rgba(12, 20, 35, 0.98));
  border: 1px solid rgba(104, 225, 190, 0.1);
  box-shadow: var(--shadow-lg);
}

.topbar-menu-meta {
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-menu-meta strong,
.topbar-menu-meta span,
.topbar-menu-meta small {
  display: block;
}

.topbar-menu-meta strong {
  color: #fff;
  font-size: 0.92rem;
}

.topbar-menu-meta span {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.topbar-menu-meta small {
  margin-top: 5px;
  color: #96f3d9;
  font-size: 0.76rem;
}

.topbar-menu a,
.topbar-menu-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ecf3ff;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.topbar-menu a:hover,
.topbar-menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.topbar-menu form {
  margin: 0;
}

button.topbar-menu-button {
  justify-content: flex-start;
}

button.topbar-menu-button.is-danger {
  background: rgba(255, 92, 124, 0.14);
  color: #ffe1e7;
}

button.topbar-menu-button.is-danger:hover {
  background: rgba(255, 92, 124, 0.2);
}

.page-header,
.page-intro,
.panel,
.card,
.summary-card,
.auth-card,
.auth-hero {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-lg);
}

.panel:hover,
.card:hover,
.summary-card:hover,
.auth-card:hover,
.login-panel:hover {
  box-shadow: 0 22px 48px rgba(2, 9, 25, 0.3);
}

.alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
}

.alert-strip strong,
.alert-strip span {
  display: block;
}

.alert-strip strong {
  color: #fff;
  font-size: 1rem;
}

.alert-strip span {
  margin-top: 4px;
  color: var(--text-soft);
}

.alert-strip-warning {
  background: linear-gradient(135deg, rgba(255, 154, 78, 0.18), rgba(22, 31, 52, 0.94));
}

.alert-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(23, 35, 59, 0.96), rgba(18, 28, 48, 0.94));
}

.page-header h1,
.page-intro h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.page-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, #15233d 0%, #1a2f46 44%, rgba(12, 126, 100, 0.96) 100%);
}

.page-intro::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 220px;
  height: 220px;
  border-radius: 48px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

.page-intro h1 {
  margin-top: 8px;
  font-size: clamp(1.95rem, 2.5vw, 2.8rem);
  line-height: 1.02;
  max-width: 820px;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(224, 231, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 600;
}

.breadcrumb a {
  color: rgba(233, 239, 255, 0.84);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb-separator {
  color: rgba(159, 175, 209, 0.62);
}

.breadcrumb .is-current {
  color: #fff;
}

.page-intro .eyebrow,
.page-header .eyebrow {
  display: none;
}

.page-intro h1,
.page-header h1 {
  margin-top: 0;
}

.page-intro p,
.page-intro-actions {
  position: relative;
  z-index: 1;
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}

.page-intro-actions-stack {
  align-items: stretch;
}

.page-intro-actions-stack .button,
.page-intro-actions-stack .button-secondary {
  min-width: 168px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

.summary-grid-dashboard .summary-card {
  min-height: 132px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(24, 36, 59, 0.98), rgba(18, 28, 48, 0.95));
}

.summary-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.summary-card.purple {
  background: linear-gradient(135deg, rgba(17, 166, 121, 0.96), rgba(13, 127, 102, 0.96));
}

.summary-card.teal {
  background: linear-gradient(135deg, rgba(21, 179, 158, 0.94), rgba(16, 124, 139, 0.96));
}

.summary-card.red {
  background: linear-gradient(135deg, rgba(255, 89, 106, 0.96), rgba(234, 64, 90, 0.96));
}

.summary-card.orange {
  background: linear-gradient(135deg, rgba(255, 177, 76, 0.96), rgba(255, 142, 59, 0.96));
}

.summary-card.neutral {
  background: linear-gradient(180deg, rgba(24, 36, 59, 0.98), rgba(18, 28, 48, 0.95));
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.summary-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.summary-card strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.summary-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.92fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-main-grid {
  align-items: stretch;
}

.dashboard-focus-panel {
  padding-bottom: 12px;
}

.dashboard-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-signal-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(104, 225, 190, 0.08);
}

.dashboard-signal-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.dashboard-signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.dashboard-signal-card small {
  display: block;
  margin-top: 8px;
  color: #8fa4c8;
  line-height: 1.55;
}

.panel-stack {
  display: grid;
  gap: 22px;
}

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

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

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

.cards,
.mini-stat-row,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.mini-stat-card,
.metric-card,
.card,
.panel {
  background: linear-gradient(180deg, rgba(23, 35, 58, 0.96), rgba(18, 28, 48, 0.94));
}

.mini-stat-card,
.metric-card,
.card,
.panel {
  padding: 20px;
}

.mini-stat-card {
  border-radius: 16px;
}

.mini-stat-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.mini-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.95rem;
  letter-spacing: -0.05em;
}

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

.panel-head h2,
.card-head h2,
.card h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.metric-row {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 18px;
}

.metric-row strong {
  font-size: 3rem;
  letter-spacing: -0.08em;
}

.metric-row span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.kpi-inline article {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.kpi-inline span {
  display: block;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.kpi-inline strong {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 250px;
  padding-top: 22px;
}

.bar-cluster {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 18px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(31, 213, 164, 0.98), rgba(17, 166, 121, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bar.alt {
  background: linear-gradient(180deg, rgba(63, 198, 255, 0.98), rgba(63, 198, 255, 0.34));
}

.bar.gray {
  background: linear-gradient(180deg, rgba(216, 221, 239, 0.94), rgba(138, 150, 184, 0.4));
}

.chart-label {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.radial-card {
  display: grid;
  gap: 18px;
}

.radial-meter {
  --progress: 68;
  --meter-color: var(--primary);
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 6px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(17, 24, 43, 0.98) 0 52%, transparent 53%),
    conic-gradient(var(--meter-color) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.06) 0);
}

.radial-meter::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(15, 23, 40, 0.96) 0 58%, transparent 59%),
    conic-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.radial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.radial-center strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.radial-center span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.progress-list,
.activity-feed,
.detail-list,
.list,
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.progress-item {
  display: grid;
  gap: 8px;
}

.progress-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.progress-item-head span:last-child {
  color: var(--text-soft);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12b887, #57dfbf);
}

.progress-fill.teal {
  background: linear-gradient(90deg, #19c8a1, #55e2ce);
}

.progress-fill.orange {
  background: linear-gradient(90deg, #ffb84d, #ffd77d);
}

.progress-fill.red {
  background: linear-gradient(90deg, #ff6b88, #ff8f6b);
}

.activity-feed {
  display: grid;
  gap: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(21, 185, 138, 0.14);
  color: #c8fff0;
  font-weight: 800;
}

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

.activity-item span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.table-card {
  overflow: hidden;
}

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

.pill,
.status-pill,
.metric-chip,
.stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.pill,
.metric-chip,
.stat-chip {
  background: rgba(21, 185, 138, 0.14);
  color: #c8fff0;
}

.status-pill {
  min-width: 96px;
  text-transform: capitalize;
}

.status-success {
  color: #94ffd4;
  background: rgba(21, 215, 168, 0.16);
}

.status-warning {
  color: #ffd387;
  background: rgba(255, 184, 77, 0.16);
}

.status-info {
  color: #c8fff0;
  background: rgba(21, 185, 138, 0.16);
}

.status-muted {
  color: #d0dbf5;
  background: rgba(159, 175, 209, 0.12);
}

.data-table tbody tr:hover,
table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entity-thumb {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  overflow: hidden;
  font-weight: 800;
}

.entity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-stack {
  display: grid;
  gap: 4px;
}

.cell-stack strong {
  font-size: 0.94rem;
}

.cell-stack span,
.subtle {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.table-link {
  font-weight: 700;
  color: #9af5d8;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.pagination-summary {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.pagination-summary strong {
  color: #eef3ff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.pagination a:hover {
  color: #fff;
  border-color: rgba(21, 185, 138, 0.32);
  background: rgba(21, 185, 138, 0.12);
}

.pagination .is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0fa77a 0%, #14c996 48%, #34d9ae 100%);
  box-shadow: 0 14px 28px rgba(20, 201, 150, 0.22);
}

.pagination .is-disabled,
.pagination .is-ellipsis {
  opacity: 0.52;
}

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

.detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-list strong,
.detail-list span:last-child {
  font-size: 0.92rem;
}

.detail-list span:first-child {
  color: var(--text-soft);
}

.form-stack {
  display: grid;
  gap: 14px;
}

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

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
  min-height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.image-card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 17, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.inline-form {
  display: inline-flex;
  margin-right: 8px;
}

.note-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
}

.note-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.auth-hero,
.auth-panel {
  min-height: calc(100vh - 48px);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 20%),
    radial-gradient(circle at 22% 86%, rgba(74, 215, 196, 0.18), transparent 24%),
    linear-gradient(145deg, #121d34 0%, #192743 48%, #159a73 100%);
}

.auth-hero h1 {
  max-width: 620px;
  margin: 20px 0 18px;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.auth-hero p {
  max-width: 560px;
  margin: 0;
  color: #d9dff2;
  line-height: 1.8;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.auth-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11b284, #57dfbf);
}

.auth-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.auth-grid-mini article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-grid-mini strong {
  display: block;
  font-size: 1.5rem;
}

.auth-grid-mini span {
  display: block;
  margin-top: 8px;
  color: #d7def2;
  font-size: 0.86rem;
}

.auth-floating-card {
  position: absolute;
  right: 46px;
  bottom: 42px;
  width: min(360px, calc(100% - 92px));
  padding: 20px;
  border-radius: 22px;
  background: rgba(9, 16, 30, 0.42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-floating-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

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

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e9efff;
}

.auth-feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11b284, #57dfbf);
}

.auth-panel {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 470px);
  padding: 34px;
  background: linear-gradient(180deg, rgba(23, 35, 58, 0.98), rgba(18, 28, 48, 0.96));
}

.auth-card-head {
  margin-bottom: 22px;
}

.auth-card h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.auth-links,
.auth-card-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--text-soft);
}

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

.login-stage {
  width: min(100%, 460px);
}

.login-panel,
.login-aside-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-xl);
}

.login-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 28px;
  background:
    linear-gradient(180deg, rgba(20, 31, 53, 0.98), rgba(14, 22, 40, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.login-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.login-subtitle {
  margin: -4px 0 2px;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.7;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10a87c, #33d6ab);
  box-shadow: 0 16px 28px rgba(18, 184, 136, 0.22);
}

.login-brand-mark::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 2px solid #fff;
  border-left-color: transparent;
  transform: rotate(45deg);
}

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

.login-brand strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.login-brand span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.login-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.login-copy p {
  margin: 0;
}

.login-form {
  gap: 16px;
}

.login-form input {
  min-height: 50px;
}

.field-hint {
  display: block;
  margin-top: -8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.6;
}

.login-footnote {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

.login-footnote span {
  font-size: 0.92rem;
}

.login-footnote small {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.login-aside {
  min-width: 0;
}

.login-aside-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 40px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(39, 210, 171, 0.16), transparent 22%),
    linear-gradient(145deg, #0f1a2f 0%, #12233a 40%, #156e67 100%);
}

.login-aside-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border-radius: 42px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 68%);
  transform: rotate(28deg);
}

.login-aside-card > * {
  position: relative;
  z-index: 1;
}

.login-aside-card h2 {
  max-width: 560px;
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.login-aside-card p {
  max-width: 620px;
  color: rgba(235, 243, 255, 0.86);
  line-height: 1.8;
}

.login-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.login-metric-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(10, 18, 33, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.login-metric-grid span,
.login-metric-grid strong {
  display: block;
}

.login-metric-grid span {
  color: rgba(225, 235, 255, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.login-metric-grid strong {
  margin-top: 10px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.3;
}

.login-aside-note {
  width: min(440px, 100%);
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(7, 14, 27, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.login-aside-note strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}

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

.login-note-list li {
  position: relative;
  padding-left: 18px;
  color: #eef5ff;
  line-height: 1.65;
}

.login-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d5a9, #82f1d5);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e2fb;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.task-column {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 31, 54, 0.96), rgba(15, 24, 43, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-lg);
}

.task-column-head h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.task-column-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.task-dropzone {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.task-dropzone.is-over {
  background: rgba(21, 185, 138, 0.08);
  border-color: rgba(21, 185, 138, 0.36);
  transform: translateY(-1px);
}

.task-dropzone.is-pending {
  pointer-events: none;
}

.task-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.task-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 41, 68, 0.98), rgba(20, 31, 54, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: grab;
  user-select: none;
  will-change: transform, opacity;
  transition: transform 0.14s ease, opacity 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.task-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(5, 12, 24, 0.2);
}

.task-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.98);
}

.task-card.is-moving {
  opacity: 0.7;
  border-color: rgba(21, 185, 138, 0.32);
}

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

.task-card-head strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.task-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.88rem;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-list.compact li {
  padding: 10px 0;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 11, 20, 0.62);
  backdrop-filter: blur(10px);
}

.dialog-panel {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 32, 54, 0.98), rgba(14, 23, 39, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-xl);
}

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

.dialog-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.dialog-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff6ff;
  box-shadow: none;
}

.dialog-close:hover {
  box-shadow: none;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.dialog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dialog-item small {
  display: block;
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

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

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

@media (max-width: 1180px) {
  .login-stage {
    width: min(100%, 460px);
  }

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

  .auth-hero,
  .auth-panel {
    min-height: auto;
  }

  .task-board {
    grid-template-columns: 1fr;
  }

  .auth-floating-card {
    position: static;
    width: 100%;
    margin-top: 28px;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-bottom {
    margin-top: 16px;
  }

  .summary-grid,
  .two-col,
  .three-col,
  .cards,
  .mini-stat-row,
  .stat-grid,
  .stack-grid,
  .kpi-inline,
  .dashboard-signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-shell {
    padding: 14px;
  }

  .login-panel,
  .login-aside-card {
    padding: 22px;
    border-radius: 22px;
  }

  .admin-shell,
  .auth-shell {
    padding: 14px;
  }

  .page-intro,
  .page-header,
  .summary-card,
  .mini-stat-card,
  .card,
  .panel,
  .auth-card,
  .auth-hero {
    padding: 20px;
  }

  .topbar,
  .page-intro,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .alert-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-strip-actions {
    justify-content: flex-start;
  }

  .topbar-user {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-account {
    width: 100%;
  }

  .topbar-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
  }

  .metric-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid,
  .auth-grid-mini {
    grid-template-columns: 1fr;
  }

  .dialog-panel {
    padding: 18px;
  }

  .dialog-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  th,
  td {
    padding: 13px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes ui-shimmer {
  0% {
    background-position: 200% 0, 0 0;
  }
  100% {
    background-position: -20% 0, 0 0;
  }
}

@keyframes pulse-alert {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 6px rgba(255, 128, 90, 0.08);
  }
}
