:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #dfe5ee;
  --line-soft: #edf1f7;
  --sidebar: #07182b;
  --sidebar-2: #0b2138;
  --teal: #0f9f95;
  --teal-strong: #087d76;
  --blue: #1267f5;
  --pink: #f12f8b;
  --danger: #e11d48;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

input,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
select:focus {
  border-color: rgba(18, 103, 245, 0.62);
  box-shadow: 0 0 0 4px rgba(18, 103, 245, 0.1);
}

select {
  min-width: 180px;
}

.identity-gate {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 43, 0.78);
  backdrop-filter: blur(5px);
}

.identity-gate[hidden] {
  display: none;
}

.identity-panel {
  display: grid;
  width: min(380px, 100%);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(7, 24, 43, 0.28);
}

.identity-panel label {
  font-weight: 800;
}

.identity-panel button,
.primary-action,
.inline-form button,
.poll-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(15, 159, 149, 0.22);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.identity-panel button:hover,
.primary-action:hover,
.inline-form button:hover,
.poll-form button:hover {
  background: var(--teal-strong);
  box-shadow: 0 10px 22px rgba(8, 125, 118, 0.28);
}

.primary-action:active,
.inline-form button:active,
.poll-form button:active {
  transform: translateY(1px);
}

.app-shell {
  --sidebar-width: 292px;
  --sidebar-rail-item: 44px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 84px;
}

.sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 28px 20px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(16, 44, 72, 0.88), rgba(7, 24, 43, 0.98)),
    var(--sidebar);
  color: #f8fbff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 159, 149, 0.62), rgba(16, 44, 72, 0.72));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.18);
}

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

.brand strong {
  font-size: 1rem;
}

.brand span {
  margin-top: 2px;
  color: #b7c5d7;
  font-size: 0.86rem;
}

.sidebar-toggle {
  position: fixed;
  top: 64px;
  left: calc(var(--sidebar-width) - 14px);
  z-index: 25;
  display: grid;
  width: 28px;
  min-height: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(8, 25, 43, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0b2138;
  padding: 0;
  box-shadow: 0 8px 18px rgba(7, 24, 43, 0.14);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: rgba(45, 212, 191, 0.36);
  background: #f8fafc;
  color: var(--teal-strong);
  box-shadow: 0 10px 22px rgba(7, 24, 43, 0.18);
}

.sidebar-toggle:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.36);
  outline-offset: 2px;
}

.sidebar-toggle-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 8px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 1px 50%;
}

.sidebar-toggle-icon::before {
  transform: rotate(45deg);
}

.sidebar-toggle-icon::after {
  transform: rotate(-45deg);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #10b7aa, #0b9b92);
}

.primary-action span[aria-hidden="true"] {
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-1px);
}

.sidebar-report-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
}

.sidebar-report-button:hover,
.sidebar-report-button:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.12);
}

.reports-nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: end center;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 5px, rgba(45, 212, 191, 0.8) 5px 8px, transparent 8px 12px, rgba(45, 212, 191, 0.62) 12px 15px, transparent 15px 19px, rgba(45, 212, 191, 0.42) 19px 22px, transparent 22px),
    rgba(45, 212, 191, 0.08);
}

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

.board-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #f8fbff;
  padding: 13px 14px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.board-list button:hover {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

.board-list button[aria-current="true"] {
  border-color: rgba(45, 212, 191, 0.2);
  background: linear-gradient(135deg, rgba(15, 159, 149, 0.35), rgba(15, 159, 149, 0.16));
  box-shadow: 0 14px 32px rgba(8, 125, 118, 0.2);
}

.board-list-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid #b8c6dc;
  border-radius: 8px;
}

.board-list-icon::before,
.board-list-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.board-list-icon::before {
  width: 8px;
  height: 8px;
  left: 7px;
  top: 4px;
}

.board-list-icon::after {
  width: 16px;
  height: 2px;
  left: 3px;
  bottom: 5px;
}

.board-list button[aria-current="true"] .board-list-icon {
  color: #15e3d5;
  border-color: #15e3d5;
}

.board-list-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.board-list strong,
.board-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-list strong {
  font-size: 0.98rem;
}

.board-list .board-list-copy span {
  color: #b7c5d7;
  font-size: 0.84rem;
}

.date-range-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 30px rgba(3, 12, 24, 0.16);
}

.calendar-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
}

.calendar-header strong {
  overflow: hidden;
  color: #f8fbff;
  font-size: 0.92rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-nav {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef7;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.12);
  color: #ffffff;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 4px;
  color: #91a4bd;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  gap: 4px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  aspect-ratio: 1;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #dbe7f5;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-day:hover:not(:disabled),
.calendar-day:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.1);
  color: #ffffff;
}

.calendar-day:disabled {
  cursor: default;
}

.calendar-day.is-muted {
  color: rgba(183, 197, 215, 0.44);
}

.calendar-day.is-today:not(.is-range-start):not(.is-range-end) {
  border-color: rgba(255, 255, 255, 0.28);
}

.calendar-day.has-sprints:not(.is-selected-date):not(.is-range-start):not(.is-range-end) {
  background: rgba(255, 255, 255, 0.045);
}

.calendar-day.is-in-range {
  border-color: rgba(45, 212, 191, 0.12);
  background: rgba(45, 212, 191, 0.14);
  color: #ecfeff;
}

.calendar-day.is-range-start,
.calendar-day.is-range-end {
  border-color: rgba(45, 212, 191, 0.78);
  background: #0f9f95;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 159, 149, 0.24);
}

.calendar-day.is-selected-date {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24), 0 10px 18px rgba(3, 12, 24, 0.2);
}

.calendar-day-number {
  line-height: 1;
}

.calendar-sprint-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 5px;
  max-width: 100%;
}

.calendar-sprint-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2);
}

.calendar-sprint-dot.is-active {
  background: #ffffff;
}

.calendar-sprint-overflow {
  color: #b7c5d7;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.selected-date-summary {
  overflow: hidden;
  color: #f8fbff;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-sprints-panel {
  display: grid;
  gap: 10px;
}

.all-sprints-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.all-sprints-heading strong {
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 900;
}

.all-sprints-heading span {
  overflow: hidden;
  color: #91a4bd;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-sprint-list {
  display: grid;
  gap: 7px;
}

.calendar-sprint-button,
.calendar-empty {
  width: 100%;
  border-radius: 8px;
}

.calendar-sprint-button {
  display: grid;
  gap: 2px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
  padding: 8px 9px;
  text-align: left;
}

.calendar-sprint-button:hover,
.calendar-sprint-button:focus-visible,
.calendar-sprint-button.is-active {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.12);
}

.calendar-sprint-button.is-selected-date-match {
  border-color: rgba(45, 212, 191, 0.5);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.calendar-sprint-button strong,
.calendar-sprint-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-sprint-button strong {
  font-size: 0.78rem;
}

.calendar-sprint-button span,
.calendar-empty {
  color: #b7c5d7;
  font-size: 0.68rem;
}

.calendar-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 9px;
  text-align: center;
}

.date-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-range-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #b7c5d7;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.date-range-fields input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  color-scheme: dark;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.date-range-fields input:focus {
  border-color: rgba(45, 212, 191, 0.58);
  outline: 2px solid rgba(45, 212, 191, 0.18);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #154d73;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.profile-copy strong {
  font-size: 0.9rem;
}

.profile-copy span {
  color: #b7c5d7;
  font-size: 0.78rem;
}

.profile-change,
.text-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-change {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef7;
}

.sidebar-collapsed .sidebar {
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
}

.sidebar-collapsed .brand {
  width: var(--sidebar-rail-item);
  min-width: var(--sidebar-rail-item);
  gap: 0;
  justify-content: center;
}

.sidebar-collapsed .brand-mark {
  width: var(--sidebar-rail-item);
  min-width: var(--sidebar-rail-item);
  height: var(--sidebar-rail-item);
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .primary-action span:not([aria-hidden="true"]),
.sidebar-collapsed .date-range-panel,
.sidebar-collapsed .all-sprints-panel,
.sidebar-collapsed .sidebar-report-button span:not(.reports-nav-icon),
.sidebar-collapsed .board-list-copy,
.sidebar-collapsed .profile-copy,
.sidebar-collapsed .profile-change {
  display: none;
}

.sidebar-collapsed .sidebar-toggle-icon {
  transform: scaleX(-1);
}

.sidebar-collapsed .primary-action {
  width: var(--sidebar-rail-item);
  min-width: var(--sidebar-rail-item);
  height: var(--sidebar-rail-item);
  min-height: var(--sidebar-rail-item);
  margin-top: 0;
  padding: 0;
}

.sidebar-collapsed .primary-action span[aria-hidden="true"] {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
  transform: none;
}

.sidebar-collapsed .sidebar-report-button {
  grid-template-columns: var(--sidebar-rail-item);
  width: var(--sidebar-rail-item);
  min-width: var(--sidebar-rail-item);
  min-height: var(--sidebar-rail-item);
  place-items: center;
  padding: 0;
}

.sidebar-collapsed .board-list {
  width: 44px;
}

.sidebar-collapsed .board-list button {
  grid-template-columns: 1fr;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
}

.sidebar-collapsed .sidebar-profile {
  grid-template-columns: var(--sidebar-rail-item);
  width: var(--sidebar-rail-item);
  gap: 0;
  padding-top: 20px;
}

.sidebar-collapsed .profile-avatar {
  width: var(--sidebar-rail-item);
  min-width: var(--sidebar-rail-item);
  height: var(--sidebar-rail-item);
}

.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-page-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.profile-page-header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.profile-panel {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.profile-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-form-actions button[type="submit"] {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(15, 159, 149, 0.22);
}

.profile-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.report-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.report-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

.report-toolbar .form-field {
  flex: 1 1 360px;
}

.report-toolbar select {
  width: 100%;
}

.report-status {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.report-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.report-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.report-summary {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(110px, 1fr));
  gap: 12px;
}

.report-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.report-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-chart-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.report-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-chart-header strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.report-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.mean-line {
  background: #1d6ff2;
}

.median-line {
  background: #0f9f95;
}

.report-chart {
  width: 100%;
  min-height: 240px;
}

.report-grid-line {
  stroke: #e5ebf4;
  stroke-width: 1;
}

.report-axis-label {
  fill: #667899;
  font-size: 12px;
  font-weight: 700;
}

.report-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-line-mean {
  stroke: #1d6ff2;
  fill: #1d6ff2;
}

.report-line-median {
  stroke: #0f9f95;
  fill: #0f9f95;
}

.report-dot {
  stroke: #ffffff;
  stroke-width: 2;
}

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

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

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.report-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-table td {
  color: var(--ink);
  font-size: 0.9rem;
}

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

.workspace {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 20px;
  padding: 36px 34px 48px;
  background: var(--page);
}

.board-page,
.profile-page,
.reports-page {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.board-title-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.title-input,
.sprint-input {
  width: min(760px, 100%);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0;
  box-shadow: none;
}

.title-input:focus,
.sprint-input:focus {
  box-shadow: none;
}

.title-input {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.sprint-input {
  color: #667899;
  font-size: 1.04rem;
}

.sprint-date-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.sprint-date-fields label,
.form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sprint-date-fields input {
  width: 150px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 9px;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.sprint-date-fields input:focus,
.form-field input:focus,
.form-field select:focus {
  border-color: rgba(15, 159, 149, 0.58);
  outline: 2px solid rgba(15, 159, 149, 0.14);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.live-dot.connected {
  background: #16c45b;
  box-shadow: 0 0 0 4px rgba(22, 196, 91, 0.14);
}

#live-status {
  color: var(--ink);
  font-weight: 700;
}

.options-trigger {
  position: fixed;
  top: 88px;
  right: 28px;
  z-index: 24;
  display: grid;
  width: 38px;
  min-height: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(223, 229, 238, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #41516d;
  padding: 0;
  opacity: 0.74;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.options-trigger:hover,
.options-trigger:focus-visible {
  border-color: rgba(18, 103, 245, 0.34);
  background: #ffffff;
  color: var(--blue);
  opacity: 1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.options-trigger:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.options-trigger-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 16px;
  background:
    linear-gradient(currentColor 0 0) 0 2px / 18px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 7px / 18px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 12px / 18px 2px no-repeat;
}

.options-trigger-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 8px 5px 0 currentColor, -1px 10px 0 currentColor;
}

.options-trigger[aria-expanded="true"] {
  border-color: rgba(15, 159, 149, 0.46);
  background: #eefdfa;
  color: #08736e;
  opacity: 1;
}

.options-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.aggregate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.aggregate-toggle input,
.checkbox-row input {
  width: 16px;
  min-height: 0;
  height: 16px;
  accent-color: var(--teal);
}

.identity-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.identity-form input {
  width: 210px;
  min-height: 38px;
}

.identity-form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(12, 24, 42, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(12, 24, 42, 0.34);
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.new-sprint-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 41;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(14, 27, 46, 0.28);
  transform: translate(-50%, -50%);
  visibility: hidden;
  pointer-events: none;
}

.new-sprint-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.new-sprint-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.new-sprint-form header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.new-sprint-form header strong,
.new-sprint-form header span {
  display: block;
}

.new-sprint-form header strong {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 900;
}

.new-sprint-form header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.new-sprint-clone {
  justify-self: start;
}

.form-field input,
.form-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.92rem;
}

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

.new-sprint-actions button[type="submit"] {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 159, 149, 0.22);
}

.form-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.options-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  display: grid;
  width: min(420px, calc(100vw - 28px));
  max-width: 100%;
  height: 100dvh;
  align-content: start;
  gap: 20px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 24px;
  box-shadow: -22px 0 48px rgba(14, 27, 46, 0.18);
  transform: translateX(104%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 180ms ease,
    visibility 0s linear 180ms;
  overflow-y: auto;
}

.options-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 180ms ease;
}

.options-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.options-drawer-header strong,
.options-drawer-header span {
  display: block;
}

.options-drawer-header strong {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 900;
}

.options-drawer-header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.board-options,
.drawer-section {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.drawer-section-heading {
  display: grid;
  gap: 4px;
}

.drawer-section-heading strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.drawer-section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
}

.option-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px 0 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.option-field input {
  width: 74px;
  min-height: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 0 10px;
  box-shadow: none;
  text-align: right;
}

.option-field input:focus {
  box-shadow: none;
}

.option-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.option-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.86rem;
  box-shadow: var(--shadow-soft);
}

.option-status {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.auth-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  min-height: 32px;
  padding: 6px 10px;
  text-decoration: none;
}

.toolbar,
.poll-form {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar {
  flex-wrap: wrap;
  padding: 16px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#category-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
}

#category-name {
  min-width: 0;
}

#category-form select,
#category-form button {
  grid-column: 1 / -1;
}

#category-form button {
  justify-self: start;
}

#category-form .color-input {
  justify-self: end;
}

.field-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: #667899;
}

.poll-icon::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 7px 5px 0 currentColor, 14px -4px 0 currentColor;
}

.color-input {
  width: 54px;
  min-width: 54px;
  padding: 4px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
  min-width: 0;
  align-items: start;
}

.category-column {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
  min-height: 430px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-column.drag-over {
  outline: 3px solid rgba(15, 159, 149, 0.28);
  outline: 3px solid color-mix(in srgb, var(--category-accent, var(--teal)) 36%, transparent);
  outline-offset: 3px;
}

.category-column.category-dragging {
  opacity: 0.56;
}

.category-column.category-drag-over {
  outline: 3px solid rgba(18, 103, 245, 0.26);
  outline-offset: 3px;
}

.category-column.category-drop-before {
  box-shadow: -8px 0 0 var(--blue), var(--shadow);
}

.category-column.category-drop-after {
  box-shadow: 8px 0 0 var(--blue), var(--shadow);
}

.category-header {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.category-color {
  width: 8px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(15, 159, 149, 0.2);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--category-accent, var(--teal)) 30%, transparent);
  cursor: grab;
}

.category-color:hover {
  width: 10px;
  margin-inline: -1px;
}

.category-column.category-dragging .category-color {
  cursor: grabbing;
}

.category-name-input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  outline: none;
  padding: 0;
  box-shadow: none;
}

.category-name-input:focus {
  box-shadow: none;
}

.category-actions,
.poll-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
}

.icon-button,
.vote-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #24324a;
  padding: 0;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.icon-button:hover,
.vote-controls button:hover,
.text-button:hover {
  border-color: rgba(18, 103, 245, 0.36);
  color: var(--blue);
}

.delete-category,
.delete-card,
.delete-sprint {
  color: var(--danger);
}

.delete-sprint {
  background: #ffffff;
}

.confirm-delete {
  width: auto;
  min-width: 84px;
  border-color: rgba(225, 29, 72, 0.36);
  background: #fff1f4;
  color: var(--danger);
  font-weight: 900;
  padding: 0 10px;
}

.card-stack {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 260px;
  padding: 20px;
}

.retro-card {
  display: grid;
  min-height: 180px;
  gap: 16px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #eef5ff;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(18, 103, 245, 0.08);
}

.retro-card.dragging {
  opacity: 0.48;
}

.card-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.card-grip {
  display: grid;
  width: 28px;
  min-height: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667899;
  padding: 0;
  cursor: grab;
}

.card-grip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-3.5px, -7px);
  box-shadow:
    0 7px 0 currentColor,
    0 14px 0 currentColor,
    7px 0 0 currentColor,
    7px 7px 0 currentColor,
    7px 14px 0 currentColor;
  opacity: 0.82;
}

.card-grip:hover,
.card-grip:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
}

.card-grip:focus-visible {
  outline: 2px solid rgba(18, 103, 245, 0.36);
  outline-offset: 2px;
}

.card-grip:active,
.retro-card.dragging .card-grip {
  cursor: grabbing;
}

.card-text {
  width: 100%;
  min-height: 66px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172033;
  font-size: 1rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  overflow: hidden;
  padding: 0;
  resize: none;
  white-space: pre-wrap;
}

.card-text:focus {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 103, 245, 0.12);
  outline: none;
  padding: 6px;
}

.card-text:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  color: #667899;
  font-size: 0.86rem;
}

.card-author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vote-limit-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 19px;
  z-index: 2;
  transform: translateX(-50%) translateY(2px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  background: #fff1f4;
  color: var(--danger);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.vote-controls[data-limit-reached="true"]:hover .vote-limit-hint,
.vote-controls[data-limit-reached="true"]:focus-within .vote-limit-hint {
  transform: translateX(-50%);
  visibility: visible;
  opacity: 1;
}

.vote-controls button,
.poll-vote button {
  font-size: 1rem;
}

.vote-controls button.voted,
.poll-vote button.voted {
  border-color: rgba(15, 159, 149, 0.42);
  background: #e6fbf7;
  color: var(--teal-strong);
}

.vote-count {
  min-width: 2ch;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.column-card-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.column-card-form input {
  min-width: 0;
  min-height: 36px;
  border: 0;
  padding: 0 4px;
  box-shadow: none;
}

.column-card-form input:focus {
  box-shadow: none;
}

.column-card-form button {
  box-shadow: none;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  border: 2px dashed #f6a9d1;
  border: 2px dashed color-mix(in srgb, var(--category-accent, var(--pink)) 40%, #ffffff);
  border-radius: 8px;
  background: #fff5fa;
  background: color-mix(in srgb, var(--category-accent, var(--pink)) 8%, #ffffff);
  color: #667899;
  padding: 28px;
  text-align: center;
}

.empty-state::before {
  content: "+";
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid var(--pink);
  border: 2px solid color-mix(in srgb, var(--category-accent, var(--pink)) 80%, #ffffff);
  border-radius: 999px;
  color: var(--pink);
  color: color-mix(in srgb, var(--category-accent, var(--pink)) 88%, #172033);
  font-size: 2.2rem;
  line-height: 1;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.empty-state span {
  display: block;
}

.polls-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-top: 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.poll-form {
  flex-wrap: wrap;
  padding: 16px;
}

.poll-form #poll-question {
  flex: 1 1 330px;
  min-width: 180px;
}

.poll-form #poll-options {
  flex: 2 1 320px;
  min-width: 180px;
}

.poll-type-settings {
  display: contents;
}

.poll-type-settings[hidden] {
  display: none;
}

.poll-form #poll-min,
.poll-form #poll-max {
  width: 112px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #384760;
  font-weight: 700;
  white-space: nowrap;
}

.poll-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.poll-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

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

.poll-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.poll-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.poll-option-label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.poll-option-label strong {
  overflow-wrap: anywhere;
}

.poll-bar {
  height: 8px;
  border-radius: 999px;
  background: #e4ebf4;
  overflow: hidden;
}

.poll-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.poll-vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.response-graph {
  display: grid;
  gap: 10px;
  border: 1px solid #e2e8f2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.response-graph-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slider-response {
  display: grid;
  gap: 18px;
  align-items: center;
}

.slider-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.slider-control span {
  color: #667899;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 1px;
}

.slider-range-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  padding-top: 32px;
}

.slider-control input {
  --slider-thumb-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 0;
  height: var(--slider-thumb-size);
  border: 0;
  border-radius: 999px;
  background: transparent;
  margin: 0;
  padding: 0;
}

.slider-control input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--blue) 0 var(--slider-fill-position, 0%),
      #d9e1ec var(--slider-fill-position, 0%) 100%
    );
}

.slider-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  margin-top: -6px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(18, 103, 245, 0.24);
}

.slider-control input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #d9e1ec;
}

.slider-control input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.slider-control input[data-has-response="false"]::-moz-range-progress {
  background: #d9e1ec;
}

.slider-control input::-moz-range-thumb {
  width: calc(var(--slider-thumb-size) - 6px);
  height: calc(var(--slider-thumb-size) - 6px);
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(18, 103, 245, 0.24);
}

.slider-value-bubble {
  position: absolute;
  top: 0;
  left: clamp(22px, calc(var(--slider-position, 50%) + var(--slider-thumb-offset, 0px)), calc(100% - 22px));
  transform: translateX(-50%);
  min-width: 36px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(18, 103, 245, 0.2);
  pointer-events: none;
}

.slider-value-bubble[hidden] {
  display: none;
}

.slider-value-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.slider-actions {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: flex-end;
}

.slider-results {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.slider-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  justify-items: stretch;
  gap: 10px;
  min-height: 112px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(18, 103, 245, 0.22);
}

.slider-stat {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}

.slider-stat strong {
  font-size: 1.8rem;
  line-height: 1;
}

.slider-stat-label,
.slider-response-count {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.slider-stat-label {
  text-transform: uppercase;
}

.slider-response-count {
  grid-column: 1 / -1;
  text-align: center;
}

.slider-summary[hidden] {
  display: none;
}

.slider-graph {
  min-width: 0;
}

.slider-histogram {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  align-items: end;
  gap: 7px;
  min-height: 116px;
}

.histogram-bucket {
  display: grid;
  grid-template-rows: 18px 76px auto;
  gap: 4px;
  align-items: end;
  min-width: 0;
  text-align: center;
}

.histogram-count,
.histogram-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.histogram-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.histogram-bar {
  display: block;
  width: 100%;
  max-width: 30px;
  min-height: 4px;
  margin: 0 auto;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.slider-status {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1080px) {
  .app-shell {
    --sidebar-width: 248px;
  }

  .workspace {
    padding: 28px 22px 40px;
  }

  .board-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .sidebar-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
  }

  .board-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .sidebar-profile {
    margin-top: 6px;
  }

  .topbar {
    flex-direction: column;
  }

  .profile-page-header {
    align-items: start;
    flex-direction: column;
  }

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

  .status-row {
    justify-content: start;
  }

  .sprint-date-fields input {
    width: 140px;
  }

  .options-trigger {
    top: 18px;
    right: 18px;
  }

  .option-status {
    margin-left: 0;
  }

  .inline-form,
  #category-form {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .inline-form input,
  .inline-form select {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 22px 14px 34px;
  }

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

  .board-options,
  .drawer-section,
  .board-options .aggregate-toggle,
  .option-field {
    width: 100%;
  }

  .options-drawer {
    width: 100vw;
    padding: 22px 18px;
  }

  .options-trigger {
    top: 14px;
    right: 14px;
  }

  .option-field {
    justify-content: space-between;
  }

  select {
    min-width: 0;
  }

  .field-icon {
    display: none;
  }

  #category-form,
  .poll-form {
    gap: 10px;
  }

  #category-name,
  .poll-form #poll-question,
  .poll-form #poll-options,
  .poll-form #poll-input-type {
    flex: 1 1 100%;
    min-width: 0;
  }

  #category-form select,
  #category-form button,
  .poll-form button {
    flex: 1 1 100%;
  }

  .title-input {
    font-size: 1.55rem;
  }

  .sprint-date-fields,
  .sprint-date-fields label,
  .sprint-date-fields input,
  .new-sprint-dates {
    width: 100%;
  }

  .new-sprint-dates {
    grid-template-columns: 1fr;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-chart-header {
    align-items: start;
    flex-direction: column;
  }

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

  .category-header,
  .poll-card header {
    align-items: start;
  }

  .category-header {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .category-column.category-drop-before {
    box-shadow: 0 -8px 0 var(--blue), var(--shadow);
  }

  .category-column.category-drop-after {
    box-shadow: 0 8px 0 var(--blue), var(--shadow);
  }

  .category-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .card-footer {
    grid-template-columns: 1fr auto;
  }

  .card-author {
    grid-column: 1 / -1;
  }

  .poll-card {
    padding: 18px;
  }

  .poll-card header {
    flex-direction: column;
  }

  .slider-response {
    grid-template-columns: 1fr;
  }

  .slider-summary,
  .slider-control {
    grid-column: 1;
  }

  .slider-actions {
    grid-column: 1;
  }
}
