:root {
  --bg: #eef3f1;
  --bg-grid: rgba(22, 194, 184, 0.08);
  --surface: #ffffff;
  --surface-muted: #f4f8f7;
  --chrome: #121716;
  --chrome-soft: #1a2321;
  --line: #d7e2df;
  --line-strong: #b6c7c3;
  --text: #18211f;
  --muted: #64736f;
  --brand: #0b7a70;
  --brand-bright: #16c2b8;
  --brand-strong: #075a53;
  --accent: #c98b23;
  --danger: #b42318;
  --warning: #b7791f;
  --success: #247a50;
  --info: #3867a8;
  --shadow: 0 18px 42px rgba(18, 23, 22, 0.12);
  --shadow-soft: 0 10px 28px rgba(18, 23, 22, 0.08);
  --focus: 0 0 0 3px rgba(22, 194, 184, 0.20);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(135deg, rgba(11, 122, 112, 0.08), transparent 42%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

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

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f5f9f8);
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

button:not(:disabled):hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff, #edf8f6);
  box-shadow: 0 8px 18px rgba(4, 116, 112, 0.14), var(--focus);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(4, 116, 112, 0.12), var(--focus);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

button[aria-busy="true"] {
  cursor: progress;
}

button:disabled:hover {
  border-color: var(--line);
  transform: none;
}

.primary {
  border-color: var(--brand-strong);
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  font-weight: 700;
}

.primary:not(:disabled):hover {
  border-color: var(--brand-strong);
  background: linear-gradient(135deg, #00736f, #18c6bd);
  box-shadow: 0 10px 22px rgba(0, 132, 126, 0.28), var(--focus);
}

.secondary {
  background: #eef5f3;
}

.secondary:not(:disabled):hover {
  background: #e2f1ee;
}

.danger {
  border-color: rgba(180, 35, 24, 0.40);
  color: var(--danger);
  background: #fff7f6;
}

.danger:not(:disabled):hover {
  border-color: rgba(180, 35, 24, 0.72);
  background: #ffebe8;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.14);
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 8px;
  line-height: 1;
}

#menu-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

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

.multi-select {
  min-height: 124px;
  padding: 6px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(22, 194, 184, 0.18), transparent 32%),
    radial-gradient(circle at 82% 84%, rgba(244, 159, 10, 0.12), transparent 28%),
    linear-gradient(120deg, rgba(9, 18, 18, 0.98), rgba(18, 26, 25, 0.94)),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 32px 32px;
}

.login-stage {
  width: min(1040px, 100%);
  min-height: min(760px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: minmax(210px, 0.82fr) auto minmax(96px, 0.32fr);
  overflow: hidden;
  border: 1px solid rgba(22, 194, 184, 0.28);
  border-radius: 8px;
  background: #f9fdfc;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.login-hero,
.login-footer {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #111a1a;
}

.login-hero-image,
.login-footer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-hero-shade,
.login-footer-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 18, 18, 0.86), rgba(4, 18, 18, 0.22) 54%, rgba(4, 18, 18, 0.12));
}

.login-hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(520px, calc(100% - 44px));
  height: 100%;
  margin-left: 28px;
  color: #ffffff;
}

.login-hero-brand h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.login-hero-brand p {
  margin-top: 6px;
  color: rgba(238, 255, 252, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.login-panel {
  width: min(460px, calc(100% - 36px));
  justify-self: center;
  align-self: center;
  border: 1px solid rgba(11, 122, 112, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(15, 24, 23, 0.14);
  padding: 24px;
  margin: 24px 0;
}

.brand-block,
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-block {
  margin-bottom: 22px;
}

.brand-mark {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand-block p {
  color: var(--muted);
}

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

.login-panel-head h2 {
  font-size: 24px;
}

.login-panel-head p {
  color: var(--muted);
  font-weight: 700;
}

.login-version {
  flex: 0 0 auto;
  border: 1px solid rgba(11, 122, 112, 0.18);
  border-radius: 999px;
  background: #eef8f6;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  white-space: nowrap;
}

.login-footer {
  min-height: 96px;
}

.login-footer-shade {
  background: linear-gradient(90deg, rgba(4, 18, 18, 0.78), rgba(4, 18, 18, 0.30) 48%, rgba(4, 18, 18, 0.78));
}

.login-footer-meta {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: rgba(238, 255, 252, 0.86);
  font-size: 12px;
  font-weight: 800;
  padding: 18px 24px;
  text-transform: uppercase;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  transition: grid-template-columns 160ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(22, 194, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 194, 184, 0.08), transparent 26%),
    linear-gradient(135deg, var(--chrome), var(--chrome-soft));
  color: #ffffff;
  padding: 18px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 12px 0 32px rgba(18, 23, 22, 0.18);
}

.app-shell.sidebar-collapsed .sidebar {
  overflow: visible;
  padding: 12px 8px;
}

.sidebar-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid rgba(22, 194, 184, 0.34);
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 28px rgba(22, 194, 184, 0.16);
}

.brand-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  margin-bottom: 22px;
  padding: 6px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

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

.brand-row strong {
  font-size: 16px;
}

.brand-row span {
  display: block;
  color: #a9bdb9;
  font-size: 12px;
}

.sidebar-collapse {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  align-self: center;
  justify-self: end;
  padding: 0;
  border-color: rgba(22, 194, 184, 0.24);
  background: rgba(22, 194, 184, 0.08);
  color: #dfeae7;
  box-shadow: none;
}

.sidebar-collapse::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.app-shell.sidebar-collapsed .brand-row {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 2px 0 8px;
}

.app-shell.sidebar-collapsed .brand-copy {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-logo {
  width: 34px;
  height: 34px;
}

.app-shell.sidebar-collapsed .sidebar-collapse {
  justify-self: center;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
}

.app-shell.sidebar-collapsed .sidebar-collapse::before {
  transform: rotate(135deg);
}

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

.nav-list button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: #dfeae7;
  text-align: left;
  padding: 9px 12px 9px 16px;
  box-shadow: none;
}

.nav-list button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.nav-list button.active,
.nav-list button:hover {
  border-color: rgba(22, 194, 184, 0.26);
  background: rgba(22, 194, 184, 0.10);
  color: #ffffff;
}

.nav-list button.active::before {
  background: var(--brand-bright);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell.sidebar-collapsed .nav-list {
  gap: 3px;
}

.app-shell.sidebar-collapsed .nav-list button {
  justify-content: center;
  min-height: 38px;
  padding: 8px;
}

.app-shell.sidebar-collapsed .nav-list button::before {
  left: 3px;
}

.app-shell.sidebar-collapsed .nav-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 40;
  min-width: max-content;
  max-width: 220px;
  transform: translate(-6px, -50%);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(22, 194, 184, 0.30);
  border-radius: 7px;
  background: rgba(18, 23, 22, 0.96);
  color: #ffffff;
  padding: 7px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: opacity 120ms ease, transform 120ms ease;
}

.app-shell.sidebar-collapsed .nav-list button:hover .nav-label,
.app-shell.sidebar-collapsed .nav-list button:focus-visible .nav-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.workspace {
  min-width: 0;
  padding: 18px 22px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: -18px -22px 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(215, 226, 223, 0.78);
  background: rgba(238, 243, 241, 0.88);
  backdrop-filter: blur(14px);
}

.topbar > div:not(.top-actions) {
  min-width: 0;
}

.topbar h2,
.topbar p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar p {
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.account-menu {
  position: relative;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: 238px;
  border: 1px solid rgba(11, 122, 112, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

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

.account-menu-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 10px;
  margin-bottom: 2px;
}

.account-menu-card strong,
.account-menu-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-card strong {
  color: var(--text);
  font-size: 13px;
}

.account-menu-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.account-menu-panel button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.account-menu-panel button:hover {
  border-color: rgba(11, 122, 112, 0.14);
  background: var(--surface-muted);
  box-shadow: none;
}

.version-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 10, 0.78);
  backdrop-filter: blur(14px);
}

.version-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(31, 238, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(31, 238, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 238, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 238, 255, 0.13), rgba(5, 16, 20, 0.96) 40%, rgba(255, 194, 82, 0.08));
  background-size: 28px 28px, 28px 28px, auto;
  color: #eefeff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 0 52px rgba(31, 238, 255, 0.07);
  padding: 24px;
}

.version-panel h2 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 32px;
}

.version-panel p {
  color: #b2d6d8;
}

.version-panel .muted {
  color: #8fbec2;
  font-size: 13px;
}

.version-panel button {
  justify-self: start;
}

.app-shell.live-tv-mode {
  display: block;
  min-height: 100vh;
  background: #03080a;
}

.app-shell.live-tv-mode .sidebar,
.app-shell.live-tv-mode .topbar,
.app-shell.live-tv-mode #alerts,
.app-shell.live-tv-mode #filters {
  display: none;
}

.app-shell.live-tv-mode .workspace,
.app-shell.live-tv-mode .content {
  min-height: 100vh;
  padding: 0;
}

.app-shell.live-tv-mode .content {
  gap: 0;
}

body.live-tv-body {
  overflow: hidden;
  background: #03080a;
}

.user-pill,
.chip,
.health {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(11, 122, 112, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  background: #e9f5f3;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.user-pill {
  gap: 7px;
  padding: 3px 10px 3px 4px;
  max-width: min(260px, 42vw);
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.user-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.user-pill[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 194, 184, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(22, 194, 184, 0.16), rgba(47, 98, 255, 0.10)),
    #ffffff;
  color: var(--brand-strong);
  font-weight: 900;
}

.profile-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.profile-avatar.lg {
  width: 84px;
  height: 84px;
  font-size: 28px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.warning-chip {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fff4d9;
  color: var(--warning);
}

.alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5000;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(129, 226, 213, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 22, 28, 0.96), rgba(19, 35, 42, 0.94)),
    #101b20;
  color: #f2fffc;
  box-shadow: 0 18px 46px rgba(6, 15, 20, 0.34), 0 0 28px rgba(22, 194, 184, 0.22);
  font-weight: 750;
  line-height: 1.35;
  padding: 14px 16px;
  pointer-events: auto;
  animation: toast-in 160ms ease-out;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(129, 226, 213, 0.95), transparent);
}

.toast-signal {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #4ff7d2;
  box-shadow: 0 0 0 4px rgba(79, 247, 210, 0.12), 0 0 18px rgba(79, 247, 210, 0.72);
}

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

.toast.success {
  border-color: rgba(79, 247, 210, 0.48);
}

.toast.warning {
  border-color: rgba(255, 204, 102, 0.52);
  box-shadow: 0 18px 46px rgba(6, 15, 20, 0.34), 0 0 28px rgba(255, 204, 102, 0.16);
}

.toast.warning .toast-signal {
  background: #ffcc66;
  box-shadow: 0 0 0 4px rgba(255, 204, 102, 0.14), 0 0 18px rgba(255, 204, 102, 0.62);
}

.toast.danger {
  border-color: rgba(255, 112, 112, 0.56);
  box-shadow: 0 18px 46px rgba(6, 15, 20, 0.34), 0 0 28px rgba(255, 112, 112, 0.18);
}

.toast.danger .toast-signal {
  background: #ff7070;
  box-shadow: 0 0 0 4px rgba(255, 112, 112, 0.14), 0 0 18px rgba(255, 112, 112, 0.62);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.alert {
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 10px 12px;
}

.alert.danger {
  border-left-color: var(--danger);
}

.alert.success {
  border-left-color: var(--success);
}

.alert.warning {
  border-left-color: var(--warning);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(11, 122, 112, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 194, 184, 0.16), rgba(10, 63, 77, 0.08)),
    #e9f7f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 16px 36px rgba(18, 23, 22, 0.08);
  padding: 12px;
}

.filters:empty {
  display: none;
}

.filters label {
  min-width: 180px;
}

.filters .filter-search {
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
}

.filter-search span {
  color: var(--brand-strong);
  text-transform: uppercase;
}

.filter-search::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 11px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  opacity: 0.78;
  pointer-events: none;
}

.filter-search::after {
  content: "";
  position: absolute;
  left: 27px;
  bottom: 9px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: rotate(45deg);
  opacity: 0.78;
  pointer-events: none;
}

.filter-search input[type="search"] {
  min-height: 42px;
  border-color: rgba(11, 122, 112, 0.28);
  background:
    linear-gradient(90deg, rgba(22, 194, 184, 0.10), transparent 42%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(18, 23, 22, 0.06);
  padding-left: 42px;
}

.filter-search input[type="search"]::placeholder {
  color: #8aa19c;
}

.filter-search:focus-within::before {
  border-color: var(--brand-bright);
  opacity: 1;
}

.filter-search:focus-within::after {
  background: var(--brand-bright);
  opacity: 1;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.section-band {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 213, 209, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 226, 223, 0.78);
}

.section-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(22, 194, 184, 0.28);
  border-radius: 8px;
  background: rgba(238, 247, 245, 0.88);
  padding: 3px;
}

.view-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.view-tabs button:hover,
.view-tabs button:focus-visible {
  color: var(--brand-strong);
  box-shadow: none;
}

.view-tabs button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 194, 184, 0.18);
}

.section-body[hidden] {
  display: none;
}

.collapsible-section.collapsed .section-head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.collapsible-section.collapsed {
  align-self: start;
}

.panel-toggle {
  flex: 0 0 32px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: rgba(11, 122, 112, 0.28);
  background:
    linear-gradient(135deg, rgba(22, 194, 184, 0.14), rgba(47, 98, 255, 0.08)),
    #ffffff;
  color: var(--brand-strong);
  font-size: 0;
}

.panel-toggle::before {
  content: "-";
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.collapsible-section.collapsed .panel-toggle::before {
  content: "+";
}

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

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

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

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

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

.stack {
  display: grid;
  gap: 12px;
}

.inline-group,
.collapsible-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.temp-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: start;
}

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

.profile-card h3,
.profile-card p {
  overflow-wrap: anywhere;
}

.password-panel,
.force-password-panel {
  border: 1px solid rgba(22, 194, 184, 0.22);
  border-radius: 8px;
  background: rgba(239, 250, 247, 0.88);
  padding: 12px;
}

.collapsible-panel {
  padding: 0;
}

.collapsible-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.collapsible-panel summary::-webkit-details-marker {
  display: none;
}

.collapsible-panel summary::after {
  content: "+";
  color: var(--brand-strong);
  font-weight: 800;
}

.collapsible-panel[open] summary::after {
  content: "-";
}

.collapsible-body {
  border-top: 1px solid var(--line);
  padding: 12px;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.metric {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(198, 213, 209, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.metric-card-head,
.bug-metric-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.metric-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(22, 194, 184, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(22, 194, 184, 0.14)),
    rgba(22, 194, 184, 0.08);
  color: var(--brand-strong);
  box-shadow: 0 10px 24px rgba(22, 194, 184, 0.12);
}

.metric-icon .nav-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.metric-label {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-values {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand-strong);
}

.metric-user {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 54px;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2f62ff;
  box-shadow: none;
  padding: 0;
  text-align: right;
}

button.metric-user:hover,
button.metric-user:focus-visible {
  color: #1747d1;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metric-user b {
  font-size: 24px;
  line-height: 1;
}

.metric-user small {
  color: #5d79d7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bug-metric {
  grid-column: span 2;
  display: grid;
  gap: 12px;
}

.bug-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(215, 226, 223, 0.86);
  padding-bottom: 10px;
}

.bug-metric-title-text > span,
.bug-metric-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.bug-metric-title-text {
  min-width: 0;
}

.bug-metric-head strong {
  margin-top: 3px;
}

.bug-mine-total {
  padding-top: 2px;
}

.bug-priority-grid {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) minmax(52px, auto) minmax(52px, auto);
  gap: 7px 12px;
  align-items: center;
}

.bug-priority-grid > span:nth-child(-n + 3) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.bug-priority-grid > span:nth-child(3n + 2),
.bug-priority-grid > span:nth-child(3n + 3),
.bug-priority-grid > b {
  text-align: right;
}

.bug-priority-grid b {
  color: var(--text);
  font-size: 15px;
}

.priority-label {
  min-width: 0;
  font-weight: 850;
}

.live-board {
  position: relative;
  min-height: calc(100vh - 178px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 238, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(rgba(31, 238, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 238, 255, 0.08) 1px, transparent 1px),
    linear-gradient(115deg, rgba(31, 238, 255, 0.12), transparent 28%),
    linear-gradient(245deg, rgba(255, 194, 82, 0.10), transparent 30%),
    #03080a;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: #eefeff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 0 80px rgba(31, 238, 255, 0.08);
  padding: 30px 32px 92px;
}

.app-shell.live-tv-mode .live-board {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

.live-board::before,
.live-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.live-board::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.035) 8px),
    linear-gradient(90deg, rgba(31, 238, 255, 0.16), transparent 12%, transparent 88%, rgba(31, 238, 255, 0.16));
  mix-blend-mode: screen;
  opacity: 0.42;
}

.live-board::after {
  inset: 18px;
  border: 1px solid rgba(31, 238, 255, 0.16);
  border-radius: 8px;
  clip-path: polygon(0 0, 28% 0, 28% 1px, 72% 1px, 72% 0, 100% 0, 100% 100%, 72% 100%, 72% calc(100% - 1px), 28% calc(100% - 1px), 28% 100%, 0 100%);
}

.live-board-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.live-board-head h2 {
  color: #f8ffff;
  font-size: 48px;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(31, 238, 255, 0.30);
}

.live-board-head p {
  color: #8fbec2;
}

.live-kicker {
  color: #1feeff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.live-metric {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(31, 238, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 238, 255, 0.14), rgba(255, 255, 255, 0.035) 50%, rgba(255, 194, 82, 0.06)),
    rgba(2, 13, 17, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px rgba(31, 238, 255, 0.08);
  padding: 16px;
}

.live-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 238, 255, 0.82), transparent);
}

.live-metric span {
  color: #9ed7db;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-metric strong {
  color: #ffffff;
  font-size: 56px;
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(31, 238, 255, 0.34);
}

.live-metric.danger {
  border-color: rgba(255, 86, 96, 0.68);
  background: linear-gradient(135deg, rgba(255, 86, 96, 0.20), rgba(2, 13, 17, 0.88));
}

.live-metric.warning {
  border-color: rgba(255, 200, 87, 0.68);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.18), rgba(2, 13, 17, 0.88));
}

.live-metric.success {
  border-color: rgba(70, 255, 174, 0.58);
  background: linear-gradient(135deg, rgba(70, 255, 174, 0.16), rgba(2, 13, 17, 0.88));
}

.live-metric.info {
  border-color: rgba(105, 170, 255, 0.58);
  background: linear-gradient(135deg, rgba(105, 170, 255, 0.18), rgba(2, 13, 17, 0.88));
}

.live-metric.brand {
  border-color: rgba(31, 238, 255, 0.58);
  background: linear-gradient(135deg, rgba(31, 238, 255, 0.18), rgba(2, 13, 17, 0.88));
}

.live-board-grid {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.live-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 238, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 238, 255, 0.09), transparent 34%),
    rgba(4, 18, 22, 0.76);
  box-shadow: inset 0 0 36px rgba(31, 238, 255, 0.05), 0 0 24px rgba(0, 0, 0, 0.22);
  padding: 14px;
}

.live-panel .section-head {
  border-color: rgba(31, 238, 255, 0.18);
  color: #eefeff;
}

.live-panel .section-head h3 {
  font-size: 20px;
}

.live-panel .empty {
  border-color: rgba(31, 238, 255, 0.24);
  background: rgba(31, 238, 255, 0.035);
  color: #8fbec2;
}

.live-status-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.live-status-row > div:first-child,
.live-project-row,
.live-milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-status-row span,
.live-project-row span,
.live-milestone span {
  color: #8fbec2;
}

.live-status-row strong,
.live-project-row strong,
.live-milestone strong {
  color: #ffffff;
}

.live-status-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.live-status-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1feeff, #69aaff, #ffc857);
  box-shadow: 0 0 18px rgba(31, 238, 255, 0.38);
}

.live-project-row,
.live-milestone {
  min-height: 54px;
  border-bottom: 1px solid rgba(242, 251, 250, 0.10);
}

.live-project-row:last-child,
.live-milestone:last-child {
  border-bottom: 0;
}

.live-milestone {
  align-items: start;
  padding: 10px 0;
}

.live-milestone > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-milestone.red {
  border-left: 4px solid var(--danger);
  padding-left: 10px;
}

.live-milestone.amber {
  border-left: 4px solid var(--warning);
  padding-left: 10px;
}

.live-board-back {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  border-color: rgba(31, 238, 255, 0.30);
  background: rgba(3, 8, 10, 0.28);
  color: #d9fbff;
  box-shadow: 0 0 24px rgba(31, 238, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.live-board-back:hover {
  border-color: rgba(31, 238, 255, 0.72);
  background: rgba(31, 238, 255, 0.10);
  color: #ffffff;
}

#live-board:fullscreen,
.live-board.fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  padding: 32px;
}

#live-board:fullscreen .live-board-head h2,
.live-board.fullscreen-fallback .live-board-head h2 {
  font-size: 58px;
}

#live-board:fullscreen .live-metric,
.live-board.fullscreen-fallback .live-metric {
  min-height: 164px;
}

#live-board:fullscreen .live-metric strong,
.live-board.fullscreen-fallback .live-metric strong {
  font-size: 76px;
}

#live-board:fullscreen .live-board-grid,
.live-board.fullscreen-fallback .live-board-grid {
  grid-template-columns: 1fr 1fr 0.9fr 1.2fr;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

tbody tr:hover {
  background: #f7fbfa;
}

th {
  background: #f1f7f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-grid-table {
  min-width: 980px;
}

.compact-grid-table th,
.compact-grid-table td {
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.compact-grid-table td:first-child {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-grid-table .chip {
  display: inline-flex;
}

.grid-actions {
  flex-wrap: nowrap;
}

.grid-actions button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

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

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

.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfefd);
  box-shadow: 0 6px 18px rgba(18, 23, 22, 0.06);
  padding: 12px;
}

.item-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.item-card p {
  color: var(--muted);
}

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

.bug-detail {
  border: 1px solid rgba(215, 226, 223, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 10px;
  min-width: 0;
}

.bug-detail strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
}

.bug-detail p {
  margin: 0;
  white-space: pre-wrap;
}

.work-item-addons {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.collaboration-panel {
  border: 1px solid rgba(11, 122, 112, 0.18);
  border-radius: 8px;
  background: rgba(244, 248, 247, 0.84);
}

.comments-panel {
  border-color: rgba(21, 126, 251, 0.26);
  background: rgba(239, 247, 255, 0.88);
}

.attachments-panel {
  border-color: rgba(11, 122, 112, 0.24);
  background: rgba(239, 250, 247, 0.9);
}

.collaboration-panel summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.collaboration-panel summary::-webkit-details-marker {
  display: none;
}

.collaboration-panel summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brand-strong);
  font-weight: 900;
}

.collaboration-panel[open] summary::after {
  content: "-";
}

.collaboration-body {
  border-top: 1px solid rgba(215, 226, 223, 0.9);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.collaboration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.collaboration-block {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.collaboration-block h4 {
  margin: 0;
  font-size: 14px;
}

.mini-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid rgba(11, 122, 112, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 12px;
}

.comment-thread,
.attachment-list {
  display: grid;
  gap: 8px;
}

.comment-row,
.attachment-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 226, 223, 0.92);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.attachment-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

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

.link-button {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand-strong);
  padding: 0;
  text-align: left;
  white-space: normal;
}

.link-button:hover,
.link-button:focus-visible {
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attachment-link {
  font-weight: 800;
}

.attachment-manage {
  min-width: 220px;
}

.attachment-manage summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 800;
}

.comment-form,
.attachment-form {
  border-top: 1px solid rgba(215, 226, 223, 0.88);
  padding-top: 10px;
}

.privilege-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px;
  gap: 8px;
  align-items: center;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--text);
}

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

.health.green {
  background: #e5f6ed;
  color: var(--success);
}

.health.amber {
  background: #fff4d9;
  color: var(--warning);
}

.health.red {
  background: #fde7e4;
  color: var(--danger);
}

.priority-Critical {
  color: var(--danger);
  font-weight: 800;
}

.priority-P1-Critical {
  color: var(--danger);
  font-weight: 900;
}

.priority-High {
  color: var(--accent);
  font-weight: 800;
}

.priority-P2-High {
  color: var(--accent);
  font-weight: 850;
}

.priority-P3-Medium {
  color: var(--info);
  font-weight: 750;
}

.priority-P4-Low {
  color: var(--muted);
  font-weight: 700;
}

.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 6px;
}

.kanban-column {
  flex: 0 0 240px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 248, 247, 0.92);
  padding: 10px;
}

.kanban-column h3 {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kanban-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 23, 22, 0.08);
  padding: 10px;
  margin-bottom: 10px;
  cursor: grab;
}

.kanban-card.dragging {
  opacity: 0.5;
}

.kanban-card small {
  color: var(--muted);
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e5;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

.history {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.file-input {
  max-width: 360px;
}

@media (min-width: 1600px) {
  .live-board {
    gap: 20px;
    padding: 28px;
  }

  .live-board-head h2 {
    font-size: 54px;
  }

  .live-metric {
    min-height: 152px;
  }

  .live-metric strong {
    font-size: 72px;
  }

  .live-panel .section-head h3 {
    font-size: 24px;
  }

  .live-status-row,
  .live-project-row,
  .live-milestone {
    font-size: 17px;
  }
}

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

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 160ms ease;
    z-index: 20;
  }

  .sidebar-collapse {
    display: none;
  }

  .app-shell.sidebar-collapsed .brand-row {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-items: start;
    padding: 6px 4px 16px;
  }

  .app-shell.sidebar-collapsed .brand-copy {
    display: block;
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: 280px;
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-shell.sidebar-collapsed .nav-list button {
    justify-content: flex-start;
    padding: 9px 12px 9px 16px;
  }

  .app-shell.sidebar-collapsed .nav-label {
    position: static;
    min-width: 0;
    max-width: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: -14px -14px 16px;
    padding: 14px;
  }

  .top-actions {
    justify-self: end;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .bug-detail-grid,
  .profile-layout,
  .temp-password-row,
  .metrics {
    grid-template-columns: 1fr;
  }

  .bug-metric {
    grid-column: span 1;
  }

  .live-board {
    min-height: auto;
  }

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

  .live-board-grid,
  #live-board:fullscreen .live-board-grid,
  .live-board.fullscreen-fallback .live-board-grid {
    grid-template-columns: 1fr;
  }

  .collaboration-grid,
  .attachment-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  #menu-toggle {
    display: none;
  }
}

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

  .login-stage {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    grid-template-rows: minmax(190px, 0.58fr) auto minmax(82px, 0.22fr);
  }

  .login-hero-brand {
    width: calc(100% - 32px);
    margin-left: 16px;
    gap: 12px;
  }

  .login-hero-brand .brand-mark {
    width: 60px;
    height: 60px;
  }

  .login-panel {
    width: calc(100% - 28px);
    padding: 18px;
    margin: 16px 0;
  }

  .login-panel-head {
    display: grid;
    gap: 8px;
  }

  .login-footer-meta {
    padding: 14px 16px;
  }

  .filters label {
    min-width: 100%;
  }

  .filters .filter-search {
    min-width: 100%;
  }

  .section-head,
  .item-card header {
    display: grid;
  }

  .section-actions {
    width: 100%;
  }

  .section-actions button {
    flex: 1 1 130px;
  }

  .live-board-head {
    display: grid;
  }

  .live-board-head .primary {
    width: 100%;
  }

  .live-board-head h2 {
    font-size: 34px;
  }

  .live-metrics {
    grid-template-columns: 1fr;
  }

  .live-metric strong {
    font-size: 44px;
  }

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