:root {
  --bg: #ecf1f6;
  --bg-strong: #d9e2ed;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-alt: #f4f7fb;
  --surface-dark: #0d1b2a;
  --text: #132235;
  --muted: #627487;
  --muted-strong: #41556d;
  --line: #d3dde8;
  --accent: #115ad6;
  --accent-dark: #0b3c8a;
  --accent-ink: #0b2546;
  --accent-soft: #e8f0ff;
  --danger: #cb4456;
  --danger-soft: #fff1f3;
  --warning: #c88318;
  --warning-soft: #fff5df;
  --success: #1d8a62;
  --success-soft: #e9f7f0;
  --violet: #6b4fd3;
  --violet-soft: #f3efff;
  --neutral-soft: #eef3f8;
  --shadow: 0 26px 80px rgba(17, 35, 58, 0.12);
  --shadow-soft: 0 12px 30px rgba(17, 35, 58, 0.07);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 90, 214, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(29, 138, 98, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(18, 35, 59, 0.06);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(17, 90, 214, 0.55), rgba(17, 90, 214, 0.3));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 28px 30px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(12, 29, 52, 0.96), rgba(14, 55, 118, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  color: white;
  box-shadow: 0 28px 85px rgba(11, 33, 62, 0.28);
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.topbar-main {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metric {
  min-width: 168px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 6px;
}

.hero-metric strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ab0ff;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.1rem;
}

.subtitle,
.panel-heading p,
#lastRefreshText,
#ticketCountText {
  margin: 8px 0 0;
  color: var(--muted);
}

.topbar .subtitle {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pill,
.button,
.status-badge,
.priority-badge {
  border-radius: 999px;
}

.pill {
  padding: 11px 15px;
  background: rgba(18, 32, 51, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.pill-neutral {
  color: var(--accent-dark);
}

.pill-success {
  background: rgba(31, 143, 95, 0.12);
  color: var(--success);
}

.pill-danger {
  background: rgba(217, 63, 76, 0.12);
  color: var(--danger);
}

.button {
  border: 0;
  cursor: pointer;
  padding: 11px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 35, 58, 0.14);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.button-danger {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd7dd;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard {
  display: grid;
  gap: 20px;
}

.quick-nav {
  position: sticky;
  top: 14px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-nav-button,
.quick-nav-action,
.ticket-toggle {
  border: 1px solid rgba(17, 90, 214, 0.14);
  background: white;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.quick-nav-button.is-active {
  background: linear-gradient(135deg, rgba(17, 90, 214, 0.12), rgba(17, 90, 214, 0.04));
  border-color: rgba(17, 90, 214, 0.2);
  color: var(--accent-dark);
}

.quick-nav-action {
  background: #12233b;
  color: white;
  border-color: #12233b;
}

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

.summary-ribbon-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 90, 214, 0.08);
  box-shadow: var(--shadow-soft);
}

.summary-ribbon-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-ribbon-item strong {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 90, 214, 0.14), transparent);
  pointer-events: none;
}

.section-body {
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
  will-change: max-height, opacity, transform;
}

.attention-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.92), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.warning-panel {
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.92), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.tickets-panel {
  background:
    linear-gradient(180deg, rgba(242, 247, 255, 0.92), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-heading-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--neutral-soft);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.warning-note {
  background: #fff1dc;
  color: #8a5607;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 90, 214, 0.12);
}

.warning-dot {
  background: #cf7d0e;
  box-shadow: 0 0 0 4px rgba(207, 125, 14, 0.15);
}

.section-toggle {
  border: 1px solid rgba(17, 90, 214, 0.18);
  background: white;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.section-toggle:hover,
.quick-nav-button:hover,
.quick-nav-action:hover,
.ticket-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 35, 58, 0.12);
}

.squad-inline-toggle {
  padding: 8px 12px;
  font-size: 0.78rem;
}

.squad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.squad-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96));
  box-shadow: var(--shadow-soft);
  align-self: start;
  overflow: hidden;
}

.squad-alpha {
  border-top: 5px solid #0f55d9;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.squad-beta {
  border-top: 5px solid #158a5a;
  background: linear-gradient(180deg, rgba(236, 252, 245, 0.98), rgba(255, 255, 255, 0.98));
}

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

.squad-card h3,
.squad-section h4 {
  margin: 0;
}

.squad-card-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 0.95rem;
}

.squad-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.squad-chip,
.squad-table-pill,
.sp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.squad-chip {
  padding: 9px 12px;
  background: #12233b;
  color: white;
}

.squad-table-pill {
  min-width: 76px;
  padding: 7px 10px;
  color: white;
}

.squad-table-pill.squad-alpha {
  background: #115ad6;
}

.squad-table-pill.squad-beta {
  background: #1d8a62;
}

.squad-table-pill.squad-other {
  background: #6b7c90;
}

.sp-pill {
  min-width: 64px;
  padding: 7px 10px;
  background: #0f2848;
  color: white;
}

.squad-hero-row {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.squad-hero-metric {
  min-width: 220px;
  padding: 20px 22px;
  border-radius: 22px;
  color: white;
  box-shadow: var(--shadow-soft);
}

.squad-hero-metric.squad-alpha {
  background: linear-gradient(135deg, #115ad6, #0b3c8a);
}

.squad-hero-metric.squad-beta {
  background: linear-gradient(135deg, #1d8a62, #106446);
}

.squad-hero-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.squad-hero-metric strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

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

.squad-mini-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 255, 0.98));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.squad-mini-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.squad-mini-card strong {
  font-size: 1.7rem;
}

.squad-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.squad-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

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

.squad-table-wrap {
  border-radius: 16px;
}

.dev-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.dev-summary-table th,
.dev-summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.dev-summary-table thead th {
  background: var(--surface-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dev-summary-table tbody tr:nth-child(even),
.tickets-table tbody tr:nth-child(even) {
  background: rgba(244, 248, 253, 0.46);
}

.dev-summary-table tbody tr:hover,
.tickets-table tbody tr:hover {
  background: rgba(17, 90, 214, 0.055);
}

.attention-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.attention-column {
  display: grid;
  gap: 14px;
  align-content: start;
  align-self: start;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(18, 35, 59, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.waiting-column .attention-head h3 {
  color: #9a6610;
}

.blocked-column .attention-head h3 {
  color: #9f2236;
}

.unassigned-column .attention-head h3 {
  color: #6b4fd3;
}

.attention-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(18, 35, 59, 0.08);
}

.attention-head h3 {
  margin: 0;
}

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

.attention-row {
  display: grid;
  gap: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  align-self: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.attention-row:hover,
.warning-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 35, 58, 0.1);
}

.waiting-column .attention-row {
  border-left: 5px solid #d9921d;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.blocked-column .attention-row {
  border-left: 5px solid #cb4456;
  background: linear-gradient(180deg, rgba(255, 242, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.unassigned-column .attention-row {
  border-left: 5px solid #6b4fd3;
  background: linear-gradient(180deg, rgba(244, 240, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.attention-row-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.attention-row-summary {
  min-width: 0;
}

.attention-row-summary p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.attention-row-meta,
.warning-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.attention-inline-meta {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18, 35, 59, 0.08);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.assignee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: hsl(var(--assignee-hue) 90% 96%);
  color: hsl(var(--assignee-hue) 52% 28%);
  border: 1px solid hsl(var(--assignee-hue) 42% 82%);
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
}

.assignee-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: hsl(var(--assignee-hue) 58% 46%);
  color: white;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.assignee-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.attention-note-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(18, 35, 59, 0.14);
}

.attention-note-grid {
  display: grid;
  gap: 12px;
}

.attention-note-field {
  gap: 10px;
}

.attention-note-facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attention-note-facts span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.attention-note-input {
  min-height: 110px;
  resize: vertical;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.attention-note-input:focus {
  outline: none;
  border-color: rgba(17, 90, 214, 0.46);
  box-shadow: 0 0 0 4px rgba(17, 90, 214, 0.08);
}

.warning-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7e8, #fffdf8);
  border: 1px solid rgba(207, 125, 14, 0.16);
}

.warning-summary p {
  margin: 0;
  color: #7e5a20;
  font-weight: 700;
}

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

.warning-row {
  display: grid;
  gap: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(207, 125, 14, 0.18);
  border-left: 5px solid #cf7d0e;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-soft);
  position: relative;
}

.warning-row-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.warning-row-summary {
  min-width: 0;
}

.warning-row-summary p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.warning-kicker {
  margin: 0 0 8px !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a96605 !important;
}

.warning-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff0cf;
  color: #8a5607;
  font-size: 0.8rem;
  font-weight: 800;
}

.warning-empty-state {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border: 1px dashed rgba(207, 125, 14, 0.2);
  border-radius: 18px;
}

.workspace-filter-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(17, 90, 214, 0.08), rgba(29, 138, 98, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 254, 0.96));
  border: 1px solid rgba(17, 90, 214, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  position: relative;
}

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

.workspace-filter-head h3,
.workspace-filter-head p {
  margin: 0;
}

.workspace-filter-head p {
  margin-top: 6px;
  color: var(--muted);
}

.workspace-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #12233b;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.active-filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 90, 214, 0.14);
  background: white;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.field,
.checkbox-field {
  display: grid;
  gap: 8px;
}

.field span,
.checkbox-field span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 1px rgba(17, 35, 58, 0.02);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f7186 50%),
    linear-gradient(135deg, #5f7186 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(17, 90, 214, 0.46);
  box-shadow: 0 0 0 4px rgba(17, 90, 214, 0.08);
}

.checkbox-field {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
}

.tickets-header {
  margin-bottom: 12px;
}

.error-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 241, 243, 0.94), rgba(255, 232, 236, 0.92));
  border: 1px solid rgba(203, 68, 86, 0.16);
  color: #902f42;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 24px rgba(17, 35, 58, 0.04);
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1320px;
}

.ticket-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.ticket-group {
  display: grid;
  gap: 14px;
  align-self: start;
}

.ticket-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ticket-group-head h3,
.ticket-group-head p {
  margin: 0;
}

.ticket-group-head p {
  margin-top: 6px;
  color: var(--muted);
}

.ticket-group-alpha .table-wrap {
  border-top: 4px solid #0f55d9;
}

.ticket-group-beta .table-wrap {
  border-top: 4px solid #158a5a;
}

.ticket-group-alpha .tickets-table tbody tr td:first-child {
  box-shadow: inset 3px 0 0 rgba(17, 90, 214, 0.14);
}

.ticket-group-beta .tickets-table tbody tr td:first-child {
  box-shadow: inset 3px 0 0 rgba(29, 138, 98, 0.14);
}

.squad-tickets-table {
  min-width: 980px;
}

.tickets-table th,
.tickets-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(211, 221, 232, 0.72);
  text-align: left;
  vertical-align: top;
}

.tickets-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #f8fbff, #eef4fa);
  z-index: 1;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  box-shadow: inset 0 -1px 0 rgba(211, 221, 232, 0.85);
}

.tickets-table tbody tr:hover {
  background: rgba(17, 90, 214, 0.038);
}

.tickets-table tbody tr.overdue-row {
  background: linear-gradient(90deg, rgba(255, 241, 243, 0.96), rgba(255, 255, 255, 1));
}

.tickets-table tbody tr.overdue-row td:first-child {
  box-shadow: inset 4px 0 0 var(--danger);
}

.sort-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}

.sort-button.active {
  color: var(--accent-dark);
}

.ticket-key {
  font-weight: 800;
  color: var(--accent-dark);
}

.ticket-summary {
  min-width: 250px;
  font-weight: 700;
  color: #203246;
}

.status-badge,
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.status-todo {
  background: #eef3f8;
  color: #394d63;
  border-color: rgba(57, 77, 99, 0.16);
}

.status-progress {
  background: #dfeaff;
  color: #0a3f91;
  border-color: rgba(10, 63, 145, 0.18);
}

.status-done {
  background: #ddf7eb;
  color: #0f6e49;
  border-color: rgba(15, 110, 73, 0.16);
}

.status-review {
  background: #fff0d2;
  color: #8b5600;
  border-color: rgba(139, 86, 0, 0.18);
}

.priority-high {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(203, 68, 86, 0.12);
}

.priority-medium {
  background: var(--warning-soft);
  color: #9a6610;
  border-color: rgba(200, 131, 24, 0.12);
}

.priority-low {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(29, 138, 98, 0.12);
}

.jira-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.jira-link:hover {
  text-decoration: underline;
}

.quick-nav,
.summary-ribbon,
.panel,
.attention-row,
.warning-row,
.squad-card,
.workspace-filter-shell,
.table-wrap,
.field input,
.field select,
.active-filter-chip,
.assignee-pill {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 20, 37, 0.7), rgba(7, 20, 37, 0.86)),
    radial-gradient(circle at top, rgba(77, 152, 255, 0.2), transparent 38%);
  z-index: 10;
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

body.compact-mode .page-shell {
  padding-bottom: 42px;
}

body.compact-mode .dashboard {
  gap: 14px;
}

body.compact-mode .panel {
  padding: 18px;
  border-radius: 22px;
}

body.compact-mode .panel-heading {
  margin-bottom: 12px;
}

body.compact-mode .quick-nav,
body.compact-mode .workspace-filter-shell,
body.compact-mode .attention-column,
body.compact-mode .warning-summary {
  padding: 12px 14px;
}

body.compact-mode .squad-card,
body.compact-mode .attention-row,
body.compact-mode .warning-row {
  padding: 12px 14px;
}

body.compact-mode .tickets-table th,
body.compact-mode .tickets-table td,
body.compact-mode .dev-summary-table th,
body.compact-mode .dev-summary-table td {
  padding: 10px 12px;
}

body.compact-mode .field input,
body.compact-mode .field select,
body.compact-mode .button,
body.compact-mode .quick-nav-button,
body.compact-mode .quick-nav-action,
body.compact-mode .ticket-toggle,
body.compact-mode .section-toggle {
  padding-top: 8px;
  padding-bottom: 8px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.empty-state {
  padding: 30px 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.empty-state-cell {
  padding: 0 !important;
}

.loading-card,
.row-skeleton {
  position: relative;
  overflow: hidden;
}

.loading-card::after,
.row-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

.loading-card {
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
}

.row-skeleton {
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

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

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 20px;
  }

  .topbar {
    flex-direction: column;
    padding: 22px 18px;
  }

  .topbar-actions {
    width: 100%;
  }

  .button {
    flex: 1;
    justify-content: center;
  }

  .hero-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-nav {
    top: 10px;
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .quick-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workspace-filter-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .squad-mini-grid {
    grid-template-columns: 1fr;
  }

  .squad-hero-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-heading-note {
    width: fit-content;
  }

  .panel-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .attention-row-main,
  .warning-row-main {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .attention-row-meta,
  .warning-row-meta {
    justify-content: flex-start;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .tickets-table {
    min-width: 0;
  }

  .tickets-table thead {
    display: none;
  }

  .tickets-table,
  .tickets-table tbody,
  .tickets-table tr,
  .tickets-table td {
    display: block;
    width: 100%;
  }

  .tickets-table tbody {
    display: grid;
    gap: 14px;
  }

  .tickets-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .tickets-table tbody tr.overdue-row {
    background: linear-gradient(180deg, #fff6f7, #ffffff);
  }

  .tickets-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .tickets-table td::before {
    content: attr(data-label);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .tickets-table td:last-child {
    border-bottom: 0;
  }

  .empty-state-cell {
    display: block !important;
    padding: 0 !important;
  }

  .empty-state-cell::before {
    display: none;
  }

  .dev-summary-table {
    min-width: 480px;
  }

  .attention-note-facts {
    display: grid;
    grid-template-columns: 1fr;
  }
}
