:root {
  --font-sans: "Manrope", "Sora", sans-serif;
  --font-display: "Sora", "Manrope", sans-serif;
  --bg: #0f1115;
  --bg-alt: #0b0d12;
  --card: #161a22;
  --surface: #11151d;
  --surface-2: #171c27;
  --muted: #9aa3b2;
  --text: #e6e9ef;
  --line: #262b36;
  --accent: #4dabf7;
  --accent-strong: #228be6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  z-index: 5;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 48px);
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-center {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ceremony-ticker {
  width: 100%;
  overflow: hidden;
  padding: 6px 4px;
  margin-top: 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}

.ticker-track {
  display: flex;
  width: fit-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker-row {
  display: inline-flex;
  gap: 16px;
  padding-right: 32px;
}

.ceremony-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

.ceremony-item.upcoming {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

.ceremony-item.warn {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.12);
}

.ceremony-item.late {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.15);
}

.ceremony-time {
  font-weight: 600;
}

.ceremony-note {
  color: var(--muted);
  font-size: 11px;
}

.super-admin {
  margin: 28px auto 0;
  max-width: 1080px;
}

.super-admin .tenant-list table {
  width: 100%;
  border-collapse: collapse;
}

.super-admin .tenant-list th,
.super-admin .tenant-list td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.super-admin .tenant-list th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.super-admin .tenant-name {
  font-weight: 600;
}

.super-admin .tenant-slug {
  font-size: 12px;
  color: var(--muted);
}

.super-admin .tenant-list .actions {
  text-align: right;
  white-space: nowrap;
}

.super-admin .tenant-list .actions button {
  margin-left: 6px;
}

.super-admin .super-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.super-admin-mode .action-menu {
  display: none !important;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.action-menu {
  position: relative;
}

.action-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu[open] summary {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: var(--shadow-soft);
}

.action-menu__content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  z-index: 20;
  box-shadow: var(--shadow-soft);
}

.action-menu__content button {
  justify-content: flex-start;
}

.project-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-switch__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-switch select {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  min-width: 180px;
  padding: 4px;
}

.filters {
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 6px 0;
}

.filters__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0;
}

.filters__inner input,
.filters__inner select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  height: 32px;
}

.filters__inner input {
  flex: 1;
  min-width: 220px;
}

.filters__inner select {
  min-width: 140px;
}

.filters__inner input:disabled,
.filters__inner select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filters__saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 12px;
}

.filters__saved.disabled {
  opacity: 0.5;
}

.saved-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.saved-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12px;
}

.saved-filter-chip button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.saved-filter-chip button[data-filter-delete] {
  font-size: 14px;
  line-height: 1;
}

.filters__saved button {
  white-space: nowrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 49, 74, 0.6);
  background: rgba(15, 22, 38, 0.25);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  width: 44px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: rgba(106, 166, 255, 0.6);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
}

.switch-text {
  font-weight: 500;
}

.switch input:disabled + .switch-track {
  opacity: 0.35;
}

.switch input:disabled ~ .switch-text {
  opacity: 0.4;
}

.marketing-landing .action-bar,
.marketing-landing .datasource,
.marketing-landing .filters,
.marketing-landing #viewSwitch,
.marketing-landing .ceremony-ticker,
.marketing-landing .presence-ribbon {
  display: none !important;
}

button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0b1020;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

button.danger {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

button.ghost {
  border-color: var(--line);
  background: transparent;
}

button.small {
  padding: 4px 8px;
  font-size: 11px;
}

button.secondary {
  border-color: rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--muted);
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  max-width: min(360px, 90vw);
}

.toast {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
  animation: toast-in 0.18s ease-out;
}

.toast--good {
  border-color: rgba(64, 211, 156, 0.7);
  box-shadow: 0 10px 26px rgba(64, 211, 156, 0.18);
}

.toast--bad {
  border-color: rgba(255, 106, 122, 0.75);
  box-shadow: 0 10px 26px rgba(255, 106, 122, 0.22);
}

.toast--info {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.2);
}

.toast-text {
  font-size: 13px;
  line-height: 1.4;
}

.toast-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

body.theme-light .toast {
  border-color: var(--line);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

body.theme-light .toast-close {
  color: #64748b;
}

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

.view-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  justify-content: flex-start;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 1 auto;
  justify-content: flex-start;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.view-switch > .primary {
  flex: 0 0 auto;
}

.view-switch .action-menu {
  flex: 0 0 auto;
}

.view-tab {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
}

.view-tab.active {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: none;
}

.view-tab {
  padding: 8px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}


.marketing {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 6vw, 44px);
  text-align: center;
  background: var(--card);
  color: var(--text);
}

.marketing h3 {
  margin: 10px 0 12px;
  font-size: clamp(20px, 4vw, 30px);
}

.marketing p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.marketing-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--muted);
}

.marketing-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.table-view {
  width: 100%;
}

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

.table-section {
  margin-bottom: 18px;
}

.table-section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
}

.table-section h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-section .summary {
  font-size: 12px;
  color: var(--muted);
}

.calendar-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-month {
  font-weight: 600;
}

.calendar-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.calendar-grid {
  flex: 2;
  min-width: 320px;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 6px;
}

.calendar-cell {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  min-height: 90px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.calendar-cell:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-2px);
}

.calendar-cell--head {
  background: transparent;
  border: none;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.calendar-cell--faded {
  opacity: 0.45;
}

.calendar-cell--today {
  border-color: rgba(56, 189, 248, 0.85);
}

.calendar-cell--selected {
  border-width: 2px;
  border-color: rgba(56, 189, 248, 0.85);
}

.calendar-date {
  font-weight: 600;
  font-size: 13px;
}

.calendar-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.calendar-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-chip.mine {
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.65);
}

.calendar-chip.more {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

.calendar-sidebar {
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calendar-selected {
  font-weight: 600;
  font-size: 15px;
}

.calendar-list h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.calendar-list .empty {
  font-size: 13px;
}

.calendar-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-task-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--surface);
  display: flex;
  gap: 10px;
  align-items: center;
}

.calendar-task-list .task-key {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  min-width: 52px;
}

.calendar-task-list .task-meta {
  font-size: 12px;
  color: var(--muted);
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav button {
  padding: 4px 8px;
}

.roadmap-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.roadmap-toggle button {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 4px;
}

.roadmap-toggle button.active {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

body.theme-light .roadmap-toggle {
  background: #f1f3f4;
  border-color: #dadce0;
}

.table-view table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  table-layout: fixed;
}

.table-view th,
.table-view td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  background: transparent;
}

.table-view th {
  background: var(--surface);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-view .col-handle {
  width: 28px;
}

.table-view .col-key {
  width: 90px;
}

.table-view .col-status {
  width: 140px;
}

.table-view .col-title {
  width: auto;
}

.table-view .col-assignee {
  width: 150px;
}

.table-view .col-points {
  width: 70px;
}

.table-view .col-priority {
  width: 120px;
}

.table-view .col-type {
  width: 120px;
}

.table-view .col-actions {
  width: 70px;
}

.table-view td {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.table-row {
  position: relative;
}

.table-row.over {
  outline: 2px dashed rgba(56, 189, 248, 0.6);
}

.table-row.dragging {
  opacity: 0.6;
}

.table-row .drag-handle {
  cursor: grab;
  color: var(--muted);
}

.table-row .row-actions {
  display: flex;
  gap: 6px;
}

.table-section.drop-target {
  outline: 2px dashed rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 6px;
}

.table-row button.link {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.table-row button.link:hover {
  text-decoration: underline;
}

main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 48px);
}

body.density-compact .wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.density-compact main {
  padding-top: 6px;
  padding-bottom: 8px;
}

body.density-compact .filters__inner {
  padding: 4px 0;
  gap: 8px;
}

body.density-compact .view-switch {
  margin: 8px 0;
}

body.density-compact .panel .hd {
  padding: 10px 12px;
}

body.density-compact .panel .bd {
  padding: 12px;
}

body.density-compact .board {
  gap: 10px;
}

body.density-compact .col {
  min-height: 280px;
}

body.density-compact .dropzone {
  padding: 10px;
}

body.density-compact .card {
  padding: 10px;
}

body.density-compact .card .title {
  font-size: 13px;
}

body.density-compact .card .meta {
  margin-top: 8px;
}

body.density-compact .table-view th,
body.density-compact .table-view td {
  padding: 8px 10px;
}

body.density-compact .calendar-grid {
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 6px;
}

body.density-compact .calendar-cell {
  min-height: 76px;
  padding: 6px;
}

body.density-compact .calendar-sidebar {
  padding: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

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

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.panel.view-panel {
  position: relative;
  overflow: visible;
}

.panel .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.panel .hd h2 {
  margin: 0;
  font-size: 14px;
}

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

.board-heading select {
  min-width: 160px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
}

.presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}

.presence-chip.self {
  color: var(--text);
}

.presence-chip--away {
  opacity: 0.6;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.presence-chip.self .presence-dot {
  background: var(--accent);
}

.presence-chip--away .presence-dot {
  background: #94a3b8;
}

.presence-initials {
  display: none;
}

.presence-meta {
  font-size: 12px;
  color: var(--muted);
}

.presence-empty {
  font-size: 12px;
  color: var(--muted);
}

.panel .bd {
  padding: 12px;
}

.view-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.col {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 320px;
  background: var(--surface-2);
  box-shadow: none;
}

.col .ct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.col .ct .name {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.col .ct .count {
  font-size: 12px;
  color: var(--muted);
}

.dropzone {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 10px;
  cursor: grab;
  position: relative;
  box-shadow: none;
  border-left: 3px solid transparent;
}

.card:hover {
  z-index: 5;
  border-color: rgba(56, 189, 248, 0.5);
}

.card:active {
  cursor: grabbing;
}

.card[data-priority='high'] {
  border-left-color: var(--danger);
}

.card[data-priority='medium'] {
  border-left-color: var(--warning);
}

.card[data-priority='low'] {
  border-left-color: var(--success);
}

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

.card .key {
  font-size: 11px;
  color: var(--muted);
}

.card .title {
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.35;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
}

.prio {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
}

.prio.high {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.1);
}

.prio.low {
  border-color: rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
}

.assignee {
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.ghost-btn.small {
  padding: 4px 10px;
  font-size: 12px;
}

.tooltip {
  display: none;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #0f1626;
  border-radius: 14px;
  padding: 10px;
  color: var(--text);
  z-index: 50;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.tooltip .tt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tooltip .story-copy {
  font-size: 12px;
  line-height: 1.45;
  color: #d6e5ff;
}

.tooltip ul {
  margin: 0;
  padding-left: 18px;
  color: #d6e5ff;
  font-size: 12px;
  line-height: 1.45;
}

.tooltip a {
  color: var(--accent);
  text-decoration: underline;
}

.tooltip a:hover {
  color: var(--accent-strong);
}

.card:hover .tooltip {
  display: block;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(15, 22, 38, 0.65);
  border-radius: 14px;
  padding: 10px;
}

.row .l {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row .l .a {
  font-size: 13px;
}

.row .l .b {
  font-size: 11px;
  color: var(--muted);
}

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

.row button {
  padding: 8px 10px;
  border-radius: 12px;
}

.gantt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gitem {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 12px 10px 14px;
}

.gitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(77, 171, 247, 0.9), rgba(34, 139, 230, 0.4));
  border-radius: 8px 0 0 8px;
}

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

.gitem .head .t {
  font-size: 13px;
  font-weight: 600;
}

.gitem .head .d {
  font-size: 11px;
  color: var(--muted);
}

.barwrap {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.18) 0,
      rgba(148, 163, 184, 0.18) 1px,
      transparent 1px,
      transparent 18px
    ),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

code {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(36, 49, 74, 0.7);
}

.empty {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.7);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(106, 166, 255, 0.25);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(3, 6, 23, 0.6);
  backdrop-filter: blur(18px);
}

.modal[data-priority='high'] .modal__content {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 35px 70px rgba(127, 29, 29, 0.55);
}

.modal[data-priority='low'] .modal__content {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 30px 60px rgba(6, 78, 59, 0.45);
}

.modal[data-item-type='bug'] .modal__content {
  background: linear-gradient(180deg, rgba(36, 12, 18, 0.96), rgba(17, 24, 39, 0.9));
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal__header h2 {
  margin: 0;
  font-size: 18px;
}

.modal__description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-badge {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.modal-badge--priority-high {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.15);
  color: #fecdd3;
}

.modal-badge--priority-medium {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

.modal-badge--priority-low {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

.modal-badge--type-bug {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.12);
  color: #fecdd3;
}

.modal-badge--type-task,
.modal-badge--type-story,
.modal-badge--type-user_story {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.modal__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-field--wide {
  grid-column: 1 / -1;
}

.modal-field span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-field input,
.modal-field select,
.modal-field textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  outline: none;
  border-color: rgba(106, 166, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(106, 166, 255, 0.2);
}

.modal-field:hover {
  border-color: transparent;
  background: transparent;
}

.modal-field textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.modal-hint.error {
  color: #ff6a7a;
}

.settings-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px clamp(12px, 3vw, 32px);
  z-index: 30;
}

.settings-panel.hidden {
  display: none;
}

.settings-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.78);
  backdrop-filter: blur(6px);
}

.settings-panel__shell {
  position: relative;
  width: min(1100px, 95vw);
  max-height: 92vh;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 16, 26, 0.98), rgba(19, 26, 41, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 24px;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.settings-panel__header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.settings-panel__header h2 {
  margin: 0;
  font-size: 20px;
}

.settings-panel__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-tabs {
  display: flex;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-tab {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-tab.active {
  background: rgba(106, 166, 255, 0.15);
  border-color: rgba(106, 166, 255, 0.8);
}

.settings-panel__body,
.settings-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.settings-section {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 18px;
  background: rgba(18, 26, 45, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.settings-section h3 {
  margin: 0 0 10px;
}

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

.settings-heading h3 {
  margin: 0 0 6px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(16, 23, 39, 0.95);
  color: var(--text);
}

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

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

.settings-table th,
.settings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.settings-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.settings-table td.actions {
  text-align: right;
  white-space: nowrap;
}

.settings-table td .small {
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 6px;
}
.modal__actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-steps {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 8px;
}

.modal-steps button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.modal-steps button.active {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.modal-field--hidden {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.drawer-panel {
  position: relative;
  width: 50vw;
  max-width: 50vw;
  min-width: 420px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.22s ease;
}

.drawer--hidden {
  pointer-events: none;
}

.drawer--hidden .drawer-overlay {
  opacity: 0;
}

.drawer--hidden .drawer-panel {
  transform: translateX(100%);
}

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.drawer-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.drawer-actions {
  display: inline-flex;
  gap: 8px;
}

.drawer-body {
  padding: 16px 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.drawer-grid .label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-grid .value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

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

@media (max-width: 900px) {
  .drawer-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-form-section {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
}

.drawer-form-section h4 {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 12px;
}

.drawer-form-grid .modal-field {
  padding: 0;
  border: none;
  background: transparent;
}

.drawer-form-grid .modal-field:hover {
  border-color: transparent;
  background: transparent;
}

.drawer-form-grid .modal-field input,
.drawer-form-grid .modal-field select,
.drawer-form-grid .modal-field textarea {
  background: var(--surface);
  border-color: var(--line);
  font-size: 13px;
}

.drawer-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.drawer-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.drawer-block .empty {
  color: var(--muted);
  font-style: italic;
}

.comment-list,
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item,
.activity-item {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--card);
}

.comment-meta,
.activity-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.comment-body,
.activity-body {
  font-size: 13px;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  font-size: 13px;
  resize: vertical;
  min-height: 90px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.activity-item {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
}

body.theme-light {
  --bg: #f8f9fb;
  --bg-alt: #f8f9fb;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --muted: #5f6368;
  --text: #202124;
  --line: #e5e7eb;
  --accent: #1a73e8;
  --accent-strong: #185abc;
  --success: #188038;
  --warning: #f29900;
  --danger: #d93025;
  color: var(--text);
  background: var(--bg);
}

body.theme-light header {
  background: rgba(248, 249, 251, 0.95);
  border-bottom: 1px solid rgba(60, 64, 67, 0.12);
}

body.theme-light .toolbar input,
body.theme-light .toolbar select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .toolbar {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 6px 16px rgba(60, 64, 67, 0.12);
}

body.theme-light .toolbar__row--meta {
  border-top-color: var(--line);
}

body.theme-light .project-switch {
  border-color: var(--line);
  background: var(--surface);
}

body.theme-light .project-switch select {
  color: var(--text);
}

body.theme-light .filters {
  background: transparent;
  border-color: transparent;
}

body.theme-light .filters__inner input,
body.theme-light .filters__inner select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .saved-filter-chip {
  background: rgba(26, 115, 232, 0.12);
  border-color: rgba(26, 115, 232, 0.3);
  color: #174ea6;
}

body.theme-light .settings-panel__shell {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(60, 64, 67, 0.12);
}

body.theme-light .settings-section {
  background: #f8f9fb;
  border-color: var(--line);
  box-shadow: none;
}

body.theme-light .settings-form input,
body.theme-light .settings-form select,
body.theme-light .settings-form textarea {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .settings-table th,
body.theme-light .settings-table td {
  border-color: var(--line);
}

body.theme-light .action-menu__content {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

body.theme-light .action-menu summary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .calendar-cell {
  background: #ffffff;
  border-color: var(--line);
}

body.theme-light .calendar-sidebar {
  background: #ffffff;
  border-color: var(--line);
}

body.theme-light .calendar-chip {
  background: rgba(148, 163, 184, 0.2);
}

body.theme-light .calendar-chip.mine {
  background: rgba(26, 115, 232, 0.16);
}

body.theme-light .switch {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .switch-track {
  background: rgba(26, 115, 232, 0.2);
}

body.theme-light .switch input:checked + .switch-track {
  background: var(--accent);
}

body.theme-light button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

body.theme-light button.ghost {
  border-color: var(--line);
  background: transparent;
}

body.theme-light button.danger {
  background: rgba(217, 48, 37, 0.08);
  border-color: rgba(217, 48, 37, 0.35);
  color: #a50e0e;
}

body.theme-light .view-tab {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

body.theme-light .view-tab.active {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: none;
  color: var(--text);
}

body.theme-light .view-tabs {
  background: #f1f3f4;
  border-color: #dadce0;
}

body.theme-light .marketing {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .marketing p {
  color: var(--muted);
}

body.theme-light .marketing-kicker {
  color: var(--muted);
}

body.theme-light .panel {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: none;
}

body.theme-light .col {
  border-color: var(--line);
  background: #f8f9fa;
  box-shadow: none;
}

body.theme-light .card {
  border-color: var(--line);
  background: #ffffff;
}

body.theme-light .tag {
  color: #5f6368;
  border-color: rgba(95, 99, 104, 0.2);
  background: rgba(95, 99, 104, 0.08);
}

body.theme-light .prio {
  border-color: rgba(242, 153, 0, 0.5);
  color: #8a5b00;
  background: rgba(242, 153, 0, 0.12);
}

body.theme-light .prio.high {
  border-color: rgba(217, 48, 37, 0.5);
  color: #a50e0e;
  background: rgba(217, 48, 37, 0.12);
}

body.theme-light .prio.low {
  border-color: rgba(24, 128, 56, 0.45);
  color: #0d652d;
  background: rgba(24, 128, 56, 0.12);
}

body.theme-light .assignee {
  border-color: rgba(26, 115, 232, 0.4);
  color: #174ea6;
  background: rgba(26, 115, 232, 0.1);
}

body.theme-light .pill {
  color: #0f172a;
  border: none;
  background: transparent;
}

body.theme-light .tooltip {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(60, 64, 67, 0.15);
}

body.theme-light .tooltip .story-copy,
body.theme-light .tooltip ul {
  color: #1f2937;
}

body.theme-light .tooltip a {
  color: var(--accent);
}

body.theme-light .row,
body.theme-light .gitem {
  background: #ffffff;
  border-color: var(--line);
}

body.theme-light .gitem::before {
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.8), rgba(26, 115, 232, 0.35));
}

body.theme-light .barwrap {
  background: repeating-linear-gradient(
      90deg,
      rgba(95, 99, 104, 0.18) 0,
      rgba(95, 99, 104, 0.18) 1px,
      transparent 1px,
      transparent 18px
    ),
    #ffffff;
}

body.theme-light .bar {
  box-shadow: 0 0 8px rgba(26, 115, 232, 0.25);
}

body.theme-light .modal__content {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(60, 64, 67, 0.2);
}

body.theme-light .modal__header {
  border-bottom-color: var(--line);
}

body.theme-light .modal__actions {
  border-top-color: var(--line);
}

body.theme-light .modal-field {
  background: transparent;
  border-color: transparent;
}

body.theme-light .modal-steps {
  background: #f1f3f4;
  border-color: #dadce0;
}

body.theme-light .modal-field:hover {
  background: transparent;
  border-color: transparent;
}

body.theme-light .drawer-form-grid .modal-field,
body.theme-light .drawer-form-grid .modal-field:hover {
  background: transparent;
  border-color: transparent;
}

body.theme-light .modal-field input,
body.theme-light .modal-field select,
body.theme-light .modal-field textarea {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

body.theme-light .modal[data-item-type='bug'] .modal__content {
  background: #fff5f5;
}

body.theme-light .modal-badge {
  color: #1a73e8;
  border-color: rgba(26, 115, 232, 0.25);
  background: rgba(26, 115, 232, 0.08);
}

body.theme-light .modal-badge--priority-high {
  color: #b91c1c;
  border-color: rgba(217, 48, 37, 0.4);
  background: rgba(217, 48, 37, 0.12);
}

body.theme-light .modal-badge--priority-medium {
  color: #a16207;
  border-color: rgba(242, 153, 0, 0.5);
  background: rgba(242, 153, 0, 0.12);
}

body.theme-light .modal-badge--priority-low {
  color: #065f46;
  border-color: rgba(24, 128, 56, 0.4);
  background: rgba(24, 128, 56, 0.12);
}

body.theme-light .modal-badge--type-bug {
  color: #b91c1c;
  border-color: rgba(217, 48, 37, 0.35);
  background: rgba(217, 48, 37, 0.08);
}

body.theme-light .ghost-btn {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

body.theme-light .table-scroll {
  border-color: var(--line);
}

body.theme-light .table-view th {
  background: #f1f3f4;
  color: var(--muted);
}

body.theme-light .table-view td {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

body.theme-light .table-section .summary {
  color: var(--muted);
}

body.theme-light .presence-chip {
  background: transparent;
  border: none;
  color: var(--muted);
}

body.theme-light .presence-chip.self {
  background: transparent;
  border: none;
  color: #0f172a;
}

body.theme-light .presence-meta {
  color: var(--muted);
}

body.theme-light .presence-chip--away .presence-dot {
  background: #cbd5e1;
}

body.theme-light .ceremony-ticker {
  background: #ffffff;
  border-color: var(--line);
}

body.theme-light .ceremony-item {
  border-color: rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #1f2937;
}

body.theme-light .ceremony-item.upcoming {
  border-color: rgba(26, 115, 232, 0.35);
  background: rgba(26, 115, 232, 0.12);
}

body.theme-light .ceremony-item.warn {
  border-color: #fcd34d;
  background: rgba(251, 191, 36, 0.22);
}

body.theme-light .ceremony-item.late {
  border-color: #fb7185;
  background: rgba(248, 113, 113, 0.22);
}

body.theme-light .drawer-overlay {
  background: rgba(15, 23, 42, 0.2);
}

body.theme-light .drawer-panel {
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.15);
}

body.theme-light .drawer-block,
body.theme-light .comment-item,
body.theme-light .activity-item {
  background: #ffffff;
  border-color: var(--line);
}

body.theme-light .comment-form textarea {
  background: #ffffff;
}
.presence-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.presence-track {
  flex: 1;
  overflow: hidden;
}

.presence-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  min-height: 22px;
  scroll-behavior: smooth;
}

.presence-nav {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 22, 38, 0.5);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.presence-nav.hidden {
  display: none;
}
