@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #f8fafc;
  --soft: #eef8fb;
  --white: #ffffff;
  --brand: #0f6fb5;
  --brand-dark: #084f83;
  --accent: #18a8c7;
  --success: #169b70;
  --warning: #f5b84b;
  --danger: #d04437;
  --nav: #0a0f1a;
  --nav-2: #121a2a;
  --sidebar-header: #6fe4ff;
  --sidebar-font: #d0d5dd;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
  --shadow-soft: 0 10px 26px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fbfd 0%, #f8fafc 42%, #ffffff 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

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

h1 {
  font-size: 28px;
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  background: var(--nav);
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 40px;
  background: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-image {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 15, 26, 0.82), rgba(15, 111, 181, 0.28)),
    linear-gradient(0deg, rgba(10, 15, 26, 0.35), rgba(10, 15, 26, 0.35));
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.warning-text {
  color: #b54708;
}

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

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

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

.label-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-label input {
  width: auto;
}

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

.rich-field {
  display: grid;
  gap: 7px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-toolbar button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  background: #f8fbfd;
  font-size: 12px;
}

.rich-toolbar button:hover {
  background: #eaf7fb;
}

.rich-editor {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  outline: none;
}

.rich-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 168, 199, 0.14);
}

.task-description {
  color: var(--text);
}

.task-description p,
.task-description ul,
.task-description ol {
  margin: 0 0 8px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-group legend {
  grid-column: 1 / -1;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
}

.radio-card input {
  width: auto;
  accent-color: var(--brand);
}

.radio-card:has(input:checked) {
  border-color: #8bd7e8;
  background: #eaf7fb;
  color: var(--brand-dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(24, 168, 199, 0.14);
}

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

.primary,
.secondary,
.ghost,
.danger,
.nav-link,
.icon-button {
  border: 0;
  border-radius: 8px;
  min-height: 34px;
  font-weight: 700;
}

.app-icon {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 9px 13px;
  box-shadow: 0 10px 18px rgba(15, 111, 181, 0.18);
}

.primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.secondary {
  background: #eaf7fb;
  color: var(--brand-dark);
  padding: 8px 12px;
}

.ghost {
  background: var(--white);
  color: var(--brand-dark);
  padding: 7px 10px;
  border: 1px solid var(--line);
}

.danger {
  background: #fff1ef;
  color: var(--danger);
  padding: 7px 10px;
}

.error {
  color: #b42318;
  background: #fff1ef;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.demo-accounts {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}

.copyright {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.copyright a {
  color: inherit;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px 1fr;
  transition: grid-template-columns 0.18s ease;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 24px 18px;
  overflow-y: auto;
  color: var(--white);
  background:
    linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .eyebrow {
  color: var(--sidebar-header);
}

.sidebar h2 {
  color: var(--sidebar-header);
}

.sidebar nav {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 8px;
}

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

.sidebar-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  min-height: 36px;
  color: var(--sidebar-font);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: var(--sidebar-font);
  background: transparent;
  text-align: left;
}

.nav-icon {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--sidebar-header);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.nav-text {
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--white);
  background: var(--danger);
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(24, 168, 199, 0.14);
  color: var(--sidebar-header);
}

.pill {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.session-card,
.panel,
.task-card,
.board-tile,
.comment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.session-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.session-card span {
  color: #b9c3d1;
  font-size: 11px;
}

.session-card .ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.session-card .copyright {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}

.session-copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-collapsed .sidebar {
  padding: 24px 14px;
}

.sidebar-collapsed .sidebar-head {
  justify-content: center;
}

.sidebar-collapsed .sidebar-head > div,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .session-card strong,
.sidebar-collapsed .session-card span,
.sidebar-collapsed .session-card .copyright {
  display: none;
}

.sidebar-collapsed .nav-link {
  position: relative;
  justify-content: center;
  padding: 10px;
}

.sidebar-collapsed .nav-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--nav);
  border-radius: 999px;
  font-size: 9px;
  line-height: 14px;
}

.sidebar-collapsed .session-card {
  padding: 10px;
}

.sidebar-collapsed .session-card .ghost {
  font-size: 0;
  padding: 0;
  width: 40px;
}

.sidebar-collapsed .session-card .ghost::after {
  content: "Out";
  font-size: 12px;
}

.content {
  padding: 28px;
  min-width: 0;
  position: relative;
}

.global-task-search {
  position: sticky;
  top: 0;
  z-index: 12;
  max-width: 760px;
  margin: 0 0 18px;
}

.global-task-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.global-task-search-box .app-icon {
  color: var(--muted);
}

.global-task-search-box input {
  min-height: 42px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.global-task-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.global-task-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  text-align: left;
}

.global-task-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-task-result small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 700;
}

.global-task-result:hover,
.global-task-result:focus-visible {
  background: #eaf7fb;
  outline: 0;
}

.global-task-search-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.filter-actions {
  display: flex;
  align-items: end;
}

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

.config-color-field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.config-color-input {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.config-color-input input[type="color"] {
  width: 44px;
  min-width: 44px;
  padding: 0;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
}

.config-color-input input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.config-color-input input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}

.session-config-panel {
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.billing-status-field {
  padding: 0;
  border: 0;
}

.billing-status-field legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.billing-status-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.billing-status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-status-option span {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: var(--white);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.billing-status-option.is-active input:checked + span {
  color: var(--success);
  border-color: #b7ead8;
  background: #edfcf6;
}

.billing-status-option.is-warning input:checked + span {
  color: #8a5600;
  border-color: #fedf89;
  background: #fffaeb;
}

.billing-status-option.is-blocked input:checked + span {
  color: var(--danger);
  border-color: #fecdca;
  background: #fff1ef;
}

.config-color-input input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 7px;
}

.view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

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

.task-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.task-detail-meta {
  padding: 9px 10px;
  border: 1px solid #d8eaf0;
  border-radius: 8px;
  background: #f2f9fb;
}

.action-menu {
  position: relative;
}

.action-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 30px;
  padding: 0;
  border: 0;
  box-shadow: none;
  outline: 0;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  color: #475467;
  background: transparent;
}

.action-menu-toggle.active,
.action-menu-toggle:hover {
  color: var(--brand);
  background: #f2f4f7;
}

.action-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  min-width: 130px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.action-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 13px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.action-dropdown button {
  width: 100%;
  justify-content: flex-start;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  background: transparent;
}

.action-dropdown button:hover {
  background: #f2f7fa;
}

.action-dropdown .danger-text {
  color: var(--danger);
}

.action-note {
  display: block;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
}

.task-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 4px;
  border: 1px solid #d8ddf4;
  border-bottom: 0;
  border-radius: 0;
  background: #e8ebf7;
}

.task-detail-tabs .tab-button {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  color: #101828;
  background: #e8ebf7;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.task-detail-tabs .tab-button.active {
  color: var(--brand);
  background: var(--white);
}

.task-tab-panel {
  padding: 16px;
  border: 1px solid #d8ddf4;
  background: var(--white);
}

.comment-form {
  position: relative;
  margin-top: 12px;
}

.mention-suggestions {
  position: static;
  margin-top: -6px;
}

.comment-actions {
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.comment-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: #08a5b8;
  font-size: 10px;
  font-weight: 800;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #667085;
  font-size: 12px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.comment-head strong {
  color: #344054;
}

.edited-badge {
  padding: 2px 7px;
  border: 1px solid #14b8a6;
  color: #475467;
  background: #f8fffd;
}

.comment-text {
  margin: 7px 0;
  color: #344054;
}

.comment-dot {
  color: #98a2b3;
}

.text-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--brand-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

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

.text-link.danger-text {
  color: var(--danger);
}

.table-action {
  min-height: 0;
  width: auto;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
  line-height: 1;
}

.table-action:disabled {
  color: var(--muted);
  opacity: 0.62;
}

.delete-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.delete-icon-button:not(:disabled):hover {
  background: #fff1ef;
}

.inline-comment-editor {
  min-height: 82px;
}

.task-log {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.task-log strong {
  font-weight: 800;
}

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

.log-action {
  color: var(--text);
}

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

.stats {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.panel {
  padding: 16px;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--nav);
}

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

.board-tile {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.board-tile header,
.task-card header,
.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prefix {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 8px;
  background: #e8f7fb;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(238px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.column {
  min-height: 360px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f2f7fa;
  padding: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.column.drag-over {
  border-color: var(--brand);
  background: #e8f7fb;
}

.column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #344054;
  text-transform: uppercase;
}

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

.task-card {
  padding: 7px 8px;
  display: grid;
  gap: 4px;
  cursor: grab;
}

.task-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
  border-color: var(--brand);
}

.task-card.is-done {
  cursor: default;
}

.task-card-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: start;
}

.task-title-button {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.task-title-button:hover {
  color: var(--brand);
  text-decoration: underline;
}

.task-summary-meta {
  display: grid;
  gap: 2px;
}

.task-due-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-status {
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compact-status select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.task-status-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  font-size: 10px;
}

.task-card.overdue {
  border-color: var(--danger);
}

.task-card.due-soon {
  border-color: var(--warning);
}

.task-id {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.tag {
  border-radius: 8px;
  padding: 4px 8px;
  background: #eef8fb;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
}

.bug-tag {
  color: var(--danger);
  background: #fff1ef;
}

.compact-type-tag {
  margin-right: 5px;
  padding: 2px 5px;
  font-size: 10px;
}

.task-status-control {
  min-width: 120px;
  min-height: 32px;
  padding: 5px 30px 5px 9px;
  border: 1px solid #b9e6f2;
  border-radius: 8px;
  color: var(--brand-dark);
  background-color: #eaf7fb;
  font-weight: 800;
}

.task-status-control:disabled {
  opacity: 1;
  color: #475467;
  background-color: #f2f4f7;
  cursor: not-allowed;
}

.detail-status-select {
  max-width: 190px;
}

.tag.unread-tag {
  color: var(--white);
  background: var(--danger);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

.table th {
  background: #f2f7fa;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.board-list-table td {
  vertical-align: middle;
}

.board-list-table button {
  vertical-align: middle;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fbfd;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.page-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #344054;
  font-weight: 700;
}

.status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.status-toggle span {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #d0d5dd;
}

.status-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.16s ease;
}

.status-toggle.is-active {
  color: var(--success);
  border-color: #b7ead8;
  background: #edfcf6;
}

.status-toggle.is-active span {
  background: var(--success);
}

.status-toggle.is-active span::after {
  transform: translateX(16px);
}

.status-toggle.is-disabled {
  color: var(--danger);
  border-color: #fecdca;
  background: #fff1ef;
}

.status-toggle.is-disabled span {
  background: var(--danger);
}

.status-toggle.is-disabled span::after {
  transform: translateX(0);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: var(--white);
  font-weight: 800;
}

.tab-button.active {
  color: var(--brand-dark);
  border-color: #8bd7e8;
  background: #eaf7fb;
}

.tab-button.read-toggle {
  margin-left: auto;
}

.notification-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.notification-item:hover {
  border-color: #8bd7e8;
}

.notification-item.unread {
  border-color: #f97066;
  border-left: 5px solid var(--danger);
  background: #fff7f5;
}

.notification-item.unread strong {
  font-weight: 800;
}

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

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

.notification-line {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.notification-reference {
  display: inline;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

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

.notification-message strong {
  color: var(--ink);
  font-weight: 800;
}

.notification-pipe {
  color: var(--muted);
  margin: 0 7px;
}

.notification-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.notification-read-pill {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

dialog {
  width: min(1120px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(10, 15, 26, 0.58);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  background: #f2f4f7;
  color: #344054;
}

#modal-body {
  padding: 16px;
}

.issue-view {
  display: grid;
  gap: 14px;
}

.issue-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.issue-header h1 {
  margin: 2px 0 0;
  font-size: 22px;
}

.issue-action-menu {
  justify-self: end;
}

.issue-breadcrumb {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

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

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.issue-main,
.issue-side {
  display: grid;
  gap: 18px;
}

.issue-section h3,
.issue-side-panel h3 {
  margin: 0 0 10px;
  color: #253858;
  font-size: 14px;
}

.section-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  margin: 0 0 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  color: #253858;
  background: #f4f5f7;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.section-arrow {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #5e6c84;
  flex: 0 0 18px;
}

.section-arrow .app-icon {
  width: 16px;
  height: 16px;
}

.collapsible-section.collapsed .section-content {
  display: none;
}

.issue-detail-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 16px;
}

.issue-detail-grid span,
.issue-side-panel span {
  color: #5e6c84;
}

.issue-side-panel p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}

.issue-side-panel strong,
.issue-detail-grid strong {
  color: var(--text);
}

.system-message {
  display: grid;
  gap: 12px;
}

.system-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.unsaved-warning,
.confirm-warning {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 15, 26, 0.36);
}

.unsaved-warning-box {
  width: min(360px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.unsaved-warning-box h3 {
  margin: 0 0 8px;
}

.unsaved-warning-box p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.task-form {
  gap: 12px;
}

.span-2 {
  grid-column: 1 / -1;
}

.comment {
  padding: 12px;
}

.mention-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
}

.mention-box button {
  text-align: left;
}

.suggestion-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.assignee-field {
  position: relative;
}

.related-task-field {
  display: grid;
  gap: 8px;
  position: relative;
}

.related-task-field input {
  min-height: 38px;
}

.related-task-field .suggestion-list {
  margin-top: 0;
}

.related-task-chips {
  min-height: 44px;
}

.related-task-empty {
  align-self: center;
  font-size: 12px;
}

.related-task-list {
  display: grid;
  gap: 8px;
}

.related-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.related-task-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-task-row:hover,
.related-task-row:focus-visible {
  border-color: var(--accent);
  background: #eaf7fb;
  box-shadow: 0 0 0 3px rgba(24, 168, 199, 0.12);
  outline: 0;
}

.assignee-combobox {
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.assignee-combobox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 168, 199, 0.14);
}

.assignee-combobox input {
  min-height: 30px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-weight: 700;
}

.assignee-field .suggestion-list {
  gap: 0;
  margin-top: 5px;
  padding: 0;
  overflow: hidden;
}

.suggestion-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  text-align: left;
}

.assignee-option {
  display: block;
  min-height: 30px;
  padding: 6px 10px;
  font-weight: 700;
}

.assignee-field .suggestion-item {
  min-height: 30px;
  padding: 6px 10px;
}

.assignee-option small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.suggestion-item:hover {
  background: #eaf7fb;
}

.suggestion-item span,
.suggestion-empty {
  color: var(--muted);
  font-size: 11px;
}

.suggestion-empty {
  padding: 8px 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.single-chip-list {
  margin-top: 8px;
  min-height: 38px;
  padding: 7px;
}

.compact-disabled:disabled {
  color: #475467;
  background: #f2f4f7;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px 5px 10px;
  border: 1px solid #b9e6f2;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #eaf7fb;
  font-weight: 700;
}

.chip small {
  color: #56707c;
  font-size: 11px;
  font-weight: 600;
}

.chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  color: var(--brand-dark);
  background: rgba(15, 111, 181, 0.12);
}

.chip-remove-icon {
  width: 14px;
  height: 14px;
}

.chip-lock {
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--white);
  background: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

[hidden] {
  display: none !important;
}

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

  .issue-layout {
    grid-template-columns: 1fr;
  }

  .login-image {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .kanban {
    grid-template-columns: repeat(4, 270px);
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: 24px;
  }

  .login-panel,
  .content,
  .sidebar {
    padding: 22px;
  }

  .form-grid,
  .stats,
  .filter-panel {
    grid-template-columns: 1fr;
  }
}
