@charset "UTF-8";
:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #faf7f3;
  --border: #e4ddd4;
  --border-light: #ede8e1;
  --text: #1c1814;
  --text-muted: #7a7268;
  --accent: #084c7f;
  --accent-dim: #e8f1f8;
  --open-color: #1a6b3c;
  --open-bg: #e6f4ec;
  --blocked-color: #8b4000;
  --blocked-bg: #fff0e0;
  --done-color: #50587a;
  --done-bg: #eeeef8;
  --in-progress-color: #0d4e8a;
  --in-progress-bg: #dceeff;
  --testing-color: #7a4800;
  --testing-bg: #fff3cd;
  --wontfix-color: #6b5876;
  --wontfix-bg: #efe7f2;
  --later-color: #5e6b85;
  --later-bg: #eef0f6;
  --docs-color: #1a6a73;
  --docs-bg: #e2f1f2;
  --danger: #b82222;
  --danger-dim: #fde8e8;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --input-h: 2.4rem;
  --footer-h: 3.2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
body::after {
  content: "";
  position: fixed;
  bottom: calc(2rem + var(--footer-h));
  right: 2rem;
  width: 220px;
  height: 89px;
  background: url("/static/img/wecare-logo.png") no-repeat center/contain;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 600px) {
  body::after {
    bottom: calc(0.5rem + var(--footer-h));
    right: 0.5rem;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 1rem;
}
header .logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}
header .logo em {
  color: #c05a0e;
  font-style: normal;
}
header .logo:hover {
  text-decoration: none;
}
header nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-right: 11rem;
  margin-left: -0.65rem;
}
header nav a {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
header nav a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
header nav .nav-disabled {
  padding: 0.3rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.4;
  cursor: not-allowed;
  user-select: none;
}
header .nav-divider {
  width: 1px;
  height: 1.1rem;
  background: var(--border);
  margin: 0 0.35rem 0 -0.15rem;
  flex-shrink: 0;
}
header .project-switcher {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}
header .project-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem calc(0.5rem - 3px) 0.3rem 0.65rem;
  margin-right: 3px;
  max-width: min(14rem, 100%);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
header .project-switcher__trigger::-webkit-details-marker {
  display: none;
}
header .project-switcher__trigger:hover {
  background: var(--surface-2);
}
header .project-switcher[open] header .project-switcher__trigger {
  background: var(--surface-2);
}
header .project-switcher__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .project-switcher__caret {
  font-size: 0.55rem;
  opacity: 0.5;
  transition: transform 0.15s;
}
header .project-switcher[open] header .project-switcher__caret {
  transform: rotate(180deg);
}
header .project-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 11rem;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  z-index: 200;
  padding: 0.25rem 0;
}
header .project-switcher__item {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
header .project-switcher__item:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
header .project-switcher__item--active {
  color: var(--text);
  font-weight: 500;
}
header .project-switcher__item--meta {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
header .project-switcher__divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}
header .header-actions {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
header .user-dropdown {
  flex-shrink: 0;
}
header .user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
header .user-dropdown__trigger::-webkit-details-marker {
  display: none;
}
header .user-dropdown__trigger::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--open-color);
  border-radius: 50%;
  flex-shrink: 0;
}
header .user-dropdown__trigger:hover {
  background: var(--border);
  color: var(--text);
}
header .user-dropdown[open] header .user-dropdown__trigger {
  background: var(--border);
  color: var(--text);
}
header .user-dropdown__icon {
  display: none;
}
header .user-dropdown__caret {
  font-size: 0.55rem;
  opacity: 0.5;
  transition: transform 0.15s;
}
header .user-dropdown[open] header .user-dropdown__caret {
  transform: rotate(180deg);
}
header .user-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  z-index: 200;
}
header .user-dropdown__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
}
header .user-dropdown__lang[data-claude-mode-row] {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
header .user-dropdown__lang-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
header .user-dropdown__lang-pills {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
header .user-dropdown__lang-pill {
  padding: 0.12rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
header .user-dropdown__lang-pill + .user-dropdown__lang-pill {
  border-left: 1px solid var(--border);
}
header .user-dropdown__lang-pill:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
header .user-dropdown__lang-pill--active {
  background: var(--text);
  color: var(--surface);
}
header .user-dropdown__lang-pill--active:hover {
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
}
header .user-dropdown__divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}
header .user-dropdown__item {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: background 0.1s, color 0.1s;
}
header .user-dropdown__item:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem calc(4rem + var(--footer-h));
  position: relative;
  z-index: 1;
}

.favorites-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.favorites-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}
.favorites-footer__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}
.favorites-footer__menu {
  display: inline-flex;
  align-items: center;
}
.favorites-footer__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  transition: color 0.12s;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.favorites-footer__chip::-webkit-details-marker {
  display: none;
}
.favorites-footer__chip:hover {
  color: var(--text);
}
.favorites-footer__chip:hover .favorites-footer__caret {
  opacity: 1;
}
.favorites-footer__chip--active {
  color: var(--text);
  font-weight: 500;
}
.favorites-footer__menu[open] .favorites-footer__chip {
  color: var(--text);
}
.favorites-footer__menu[open] .favorites-footer__chip .favorites-footer__caret {
  opacity: 1;
  transform: rotate(180deg);
}
.favorites-footer__caret {
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.12s, transform 0.15s;
}
.favorites-footer__popover {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 0;
  min-width: 11rem;
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  z-index: 51;
}
.favorites-footer__menu--right .favorites-footer__popover {
  left: auto;
  right: 0;
}
.favorites-footer__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.favorites-footer__option:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.favorites-footer__option-icon {
  flex-shrink: 0;
  opacity: 0.65;
}
.favorites-footer__option:hover .favorites-footer__option-icon {
  opacity: 1;
}
.favorites-footer__divider {
  height: 1px;
  background: var(--border-light, var(--border));
  margin: 0.25rem 0;
}
.favorites-footer__hint {
  font-style: italic;
}
.favorites-footer__hint a {
  color: var(--accent);
}
.favorites-footer__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.favorites-footer__meta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.12s, transform 0.12s;
  line-height: 1;
}
.favorites-footer__meta:hover {
  color: var(--text);
  transform: translateY(-1px);
  text-decoration: none;
}
.favorites-footer .shell-iconbtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.favorites-footer .shell-iconbtn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
body.sidebar-mode .favorites-footer .shell-iconbtn {
  display: inline-flex;
}
@media (display-mode: standalone) and (pointer: fine), (display-mode: minimal-ui) and (pointer: fine), (display-mode: fullscreen) and (pointer: fine) {
  .favorites-footer .shell-iconbtn {
    display: inline-flex;
  }
}
@media (max-width: 600px) {
  .favorites-footer {
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }
  .favorites-footer__list {
    gap: 1.25rem;
  }
}

.claude-meta-icon {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 1.15rem;
}
.claude-meta-icon__base {
  display: inline-block;
  filter: grayscale(0.5);
}
.claude-meta-icon__overlay {
  position: absolute;
  right: -0.25em;
  bottom: -0.2em;
  font-size: 0.55em;
  line-height: 1;
  filter: grayscale(0.8) drop-shadow(0 0 1px rgba(255, 255, 255, 0.9));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card > :first-child {
  margin-top: 0;
}
.card--muted {
  background: var(--surface-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: normal;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn:hover {
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn + .btn {
  margin-left: 0.4rem;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #063a61;
  border-color: #063a61;
}
.btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(8, 76, 127, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn-secondary {
  background: var(--border-light);
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}
.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: #f0c4c4;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  font-size: 0.79rem;
  padding: 0.3rem 0.65rem;
}
.btn-xs {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
}
.btn .btn-ico {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-label-wide {
  display: inline;
}

.btn-label-narrow {
  display: none;
}

@media (max-width: 600px) {
  .btn-label-wide {
    display: none;
  }
  .btn-label-narrow {
    display: inline;
  }
}
.create-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.create-card__head > label {
  flex: 1;
  margin: 0;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.mode-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.mode-toggle__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}
.mode-toggle__ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.magic-wand {
  display: inline-block;
  transform-origin: 50% 50%;
}
.magic-wand--spinning {
  animation: field-spin 0.8s linear infinite;
}

.magic-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.magic-toast__text {
  flex: 1;
  min-width: 0;
}
.magic-toast__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 0.15rem;
}
.magic-toast__close:hover {
  color: var(--text);
}
.magic-toast__jump {
  margin-left: auto;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}
.magic-toast__jump:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.magic-toast__jump:disabled {
  opacity: 0.4;
  cursor: default;
}
.magic-toast__jump + .magic-toast__close {
  margin-left: 0.25rem;
}
.magic-toast--success {
  border-color: #2e7d4f;
  background: rgba(46, 125, 79, 0.08);
}
.magic-toast--error {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
}

@keyframes task-row-new-pulse {
  0% {
    background: rgba(8, 76, 127, 0.18);
  }
  40% {
    background: rgba(8, 76, 127, 0.1);
  }
  80% {
    background: rgba(8, 76, 127, 0.04);
  }
  100% {
    background: transparent;
  }
}
.task-row--new {
  animation: task-row-new-pulse 2.4s ease-out 1;
}

#list-body[data-hide-mine="1"] .task-row[data-assignee=mine].task-row--new,
#list-body[data-hide-others="1"] .task-row[data-assignee=others].task-row--new,
#list-body[data-hide-unassigned="1"] .task-row[data-assignee=unassigned].task-row--new {
  display: flex !important;
}

label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
label .badge {
  position: relative;
  top: -0.15rem;
}

input[type=text],
input[type=number],
textarea,
select {
  width: 100%;
  height: var(--input-h);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
input[type=text]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 76, 127, 0.12);
}

textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

#new-magic-text {
  min-height: 0;
  resize: none;
  overflow: hidden;
}

.create-layout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.create-layout .create-left {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.create-layout .create-right {
  flex-shrink: 0;
  width: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.create-layout .create-right .form-group {
  margin-bottom: 0;
}
.create-layout .create-right > .btn {
  width: 100%;
}
@media (max-width: 600px) {
  .create-layout {
    flex-wrap: wrap;
  }
  .create-layout .create-right {
    width: 100%;
    flex-direction: column;
  }
  .create-layout .create-right > .btn {
    width: auto;
    align-self: flex-end;
  }
}

#notes {
  min-height: calc(4.5em + 1rem);
  resize: none;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

input[type=file] {
  padding: 0.4rem 0.5rem;
  font-size: 0.84rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 0.25rem;
}

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

td {
  vertical-align: top;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

tr {
  height: 4.4rem;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--surface-2);
}

thead tr {
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.badge-open {
  background: var(--open-bg);
  color: var(--open-color);
}
.badge-done {
  background: var(--done-bg);
  color: var(--done-color);
}
.badge-blocked {
  background: var(--blocked-bg);
  color: var(--blocked-color);
}
.badge-in_progress {
  background: var(--in-progress-bg);
  color: var(--in-progress-color);
}
.badge-testing {
  background: var(--testing-bg);
  color: var(--testing-color);
}
.badge-wontfix {
  background: var(--wontfix-bg);
  color: var(--wontfix-color);
}
.badge-docs {
  background: var(--docs-bg);
  color: var(--docs-color);
}
.badge-later {
  background: var(--later-bg);
  color: var(--later-color);
}

@keyframes field-spin {
  to {
    transform: rotate(360deg);
  }
}
.field-spinner {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: field-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 0.4rem;
  opacity: 0.55;
}

.app-busy {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.45);
  cursor: wait;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}
.app-busy--visible {
  opacity: 1;
}

.app-busy__spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent;
  border-radius: 50%;
  animation: field-spin 0.8s linear infinite;
}

.tg-members {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  gap: 0.75rem;
}

.member-ok {
  color: var(--done-color);
}

.member-missing {
  color: var(--danger);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline dotted;
}

.error {
  background: var(--danger-dim);
  border: 1px solid #f0c4c4;
  color: var(--danger);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.error-global {
  border-left: 4px solid var(--danger);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  padding-right: 2.5rem;
}
.error-global__dismiss {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.error-global__dismiss:hover {
  opacity: 0.7;
}

.notice-global {
  border-left: 4px solid var(--open-color);
  background: var(--open-bg);
  color: var(--open-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: var(--radius);
}
.notice-global .error-global__dismiss {
  color: var(--open-color);
}

.alert-success {
  background: var(--open-bg);
  border: 1px solid #a8d5b8;
  color: var(--open-color);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.sidebar-update-banner {
  position: fixed;
  right: 0.75rem;
  bottom: calc(var(--footer-h) + 0.5rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.12s;
}
.sidebar-update-banner__icon {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
}
.sidebar-update-banner:hover {
  background: #0a5a96;
}
.sidebar-update-banner:disabled {
  opacity: 0.6;
  cursor: progress;
}
.sidebar-update-banner[hidden] {
  display: inline-flex;
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
}

.comment {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.comment-meta strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.comment-meta .form-inline {
  margin-left: auto;
  display: inline;
}
.comment-tg {
  color: var(--accent);
  font-size: 0.72rem;
}
.comment-body-pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.6;
}
.comment-body-md {
  font-size: 0.9rem;
  line-height: 1.65;
}
.comment-body-md h1, .comment-body-md h2, .comment-body-md h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.9rem 0 0.35rem;
  color: var(--text);
}
.comment-body-md h1:first-child, .comment-body-md h2:first-child, .comment-body-md h3:first-child {
  margin-top: 0;
}
.comment-body-md h1 {
  font-size: 1.15rem;
}
.comment-body-md h2 {
  font-size: 1.05rem;
}
.comment-body-md h3 {
  font-size: 0.97rem;
}
.comment-body-md h4, .comment-body-md h5, .comment-body-md h6 {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.8rem 0 0.3rem;
  color: var(--text-muted);
}
.comment-body-md h4:first-child, .comment-body-md h5:first-child, .comment-body-md h6:first-child {
  margin-top: 0;
}
.comment-body-md p {
  margin: 0 0 0.55rem;
}
.comment-body-md p:last-child {
  margin-bottom: 0;
}
.comment-body-md ul, .comment-body-md ol {
  margin: 0 0 0.55rem 1.4rem;
  padding: 0;
}
.comment-body-md li {
  margin-bottom: 0.2rem;
}
.comment-body-md code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82em;
  background: var(--bg);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.comment-body-md pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  overflow-x: auto;
  margin: 0 0 0.55rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-body-md pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.83em;
}
.comment-body-md hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}
.comment-body-md blockquote {
  border-left: 3px solid var(--border);
  padding: 0.2rem 0.75rem;
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-style: italic;
}
.comment-body-md strong {
  font-weight: 600;
}
.comment-body-md a {
  color: var(--accent);
  text-decoration: underline;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.6rem;
}

.list-group-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
  white-space: nowrap;
}

.project-group {
  margin-bottom: 2.6rem;
}
.project-group:first-of-type {
  margin-top: 0.5rem;
}

.project-group-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0 0 0.65rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text);
  text-decoration: none;
}
.project-group-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 100%;
  background: var(--border);
}
.project-group-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 2rem;
  background: #c05a0e;
  transition: width 0.18s ease;
}
.project-group-header:hover {
  text-decoration: none;
}
.project-group-header:hover .project-group-header__name {
  color: #c05a0e;
}
.project-group-header:hover::after {
  width: 100%;
}
.project-group-header__name {
  flex: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  transition: color 0.18s;
}
.project-group-header__count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.project-group-header__count::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  vertical-align: 0.05em;
  background: #c05a0e;
  border-radius: 50%;
  opacity: 0.75;
}
.project-group-header--orphan {
  color: var(--text-muted);
  cursor: default;
}
.project-group-header--orphan .project-group-header__name {
  font-style: italic;
  color: var(--text-muted);
}
.project-group-header--orphan::after {
  background: var(--border);
}
.project-group-header--orphan:hover::after {
  width: 2rem;
}
.project-group-header--orphan:hover .project-group-header__name {
  color: var(--text-muted);
}

.project-scope-links {
  display: flex;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.project-scope-link {
  flex: 1;
  min-width: 10rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.12s, background 0.12s;
}
.project-scope-link:hover {
  border-color: var(--text-muted);
  background: var(--surface-2);
  text-decoration: none;
}
.project-scope-link__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.project-scope-link__label--narrow {
  display: none;
}
@media (max-width: 600px) {
  .project-scope-link {
    min-width: 0;
  }
  .project-scope-link__label--wide {
    display: none;
  }
  .project-scope-link__label--narrow {
    display: inline;
  }
}
.project-scope-link__count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.task-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-right: 0.2rem;
  white-space: nowrap;
}

.btn-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-row-icon:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-row-icon.btn-row-danger:hover {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: #f0c4c4;
}

.task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
}
.task-row:last-child {
  border-bottom: none;
}
.task-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--open-color);
  opacity: 0;
  transition: opacity 0.15s;
}
.task-row:hover {
  background: var(--surface-2);
}
.task-row:hover::before {
  opacity: 1;
}
.task-row:hover .task-actions {
  opacity: 1;
}
.task-row.task-blocked::before {
  background: var(--blocked-color);
  opacity: 1;
}
.task-row.task-blocked .task-actions {
  opacity: 1;
}
.task-row.task-in-progress::before {
  background: var(--in-progress-color);
  opacity: 1;
}
.task-row.task-in-progress .task-actions {
  opacity: 1;
}
.task-row.task-testing::before {
  background: var(--testing-color);
  opacity: 1;
}
.task-row.task-testing .task-actions {
  opacity: 1;
}

.task-row__lead {
  flex-shrink: 0;
  min-width: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.18rem;
  position: relative;
  z-index: 1;
}

.task-check {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

.bulk-mode .task-row__lead .task-check {
  display: inline-block;
}

.task-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.task-id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 2rem;
}

.task-titlerow {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.task-body:has(> .task-titlerow) > .task-notes,
.task-body:has(> .task-titlerow) > .task-blocker {
  padding-left: 2.4rem;
}

.task-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.12s;
  min-width: 0;
}
.task-title:hover {
  color: var(--accent);
  text-decoration: none;
}
.task-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.task-row .url-link,
.task-row .blocker-link,
.task-row .task-check {
  position: relative;
  z-index: 1;
}

.task-row .task-notes {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.bulk-edit-toggle {
  margin-top: 0.7rem;
  padding: 0 0.15rem;
  display: flex;
  justify-content: center;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-link:hover {
  color: var(--accent);
  text-decoration-style: solid;
}

.bulk-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0 0.15rem;
  flex-wrap: wrap;
}

.bulk-mode .bulk-bar {
  display: flex;
}
.bulk-mode .bulk-edit-toggle {
  display: none;
}
.bulk-mode .task-row .task-title::after {
  display: none;
}
.bulk-mode .task-row {
  cursor: default;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
}

.import-section {
  margin-top: 1.75rem;
}

.import-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0.1rem;
  user-select: none;
  transition: color 0.12s;
}
.import-toggle::-webkit-details-marker {
  display: none;
}
.import-toggle:hover {
  color: var(--text);
}
.import-toggle::before {
  content: "▶";
  display: inline-block;
  font-size: 0.7em;
  transition: transform 0.15s ease;
}

details[open] .import-toggle {
  color: var(--text);
}
details[open] .import-toggle::before {
  transform: rotate(90deg);
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-picker__input:focus-visible + .file-picker__btn {
  outline: 2px solid var(--accent, currentColor);
  outline-offset: 2px;
}
.file-picker__btn {
  cursor: pointer;
}
.file-picker__name {
  color: var(--text-muted);
  font-size: 0.9rem;
  word-break: break-all;
}
.file-picker__name--has-file {
  color: var(--text);
  font-weight: 500;
}
.file-picker__clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.file-picker__clear:hover {
  background: var(--danger-dim);
  color: var(--danger);
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-header h2 {
  white-space: nowrap;
}
.page-header input {
  min-width: 0;
}
.page-header__home {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  margin: 0;
}
.page-header__home svg {
  display: block;
}
.page-header--search-only {
  justify-content: flex-end;
  margin-bottom: 0;
}

.page-header--search-only ~ form .task-section:first-child {
  margin-top: -1.2rem;
}

.page-title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-heading {
  margin-bottom: 1.25rem;
}

.meta-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  line-height: 1;
  overflow: hidden;
  padding-left: 0.5rem;
}
.breadcrumb__sep {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 5px;
  color: var(--text-muted);
  opacity: 0.55;
  font-size: 0;
  display: flex;
  align-items: flex-start;
}
.breadcrumb__sep::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.breadcrumb__link svg {
  transform: translateY(-1px);
}
.breadcrumb__link:hover {
  color: var(--text);
  text-decoration: underline;
}
.breadcrumb__link--truncate {
  flex: 0 1 auto;
  min-width: 3ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb__current {
  color: var(--text-muted);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  min-width: 4ch;
}
.breadcrumb__open-main {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.55;
  text-decoration: none;
}
.breadcrumb__open-main svg {
  display: block;
}
.breadcrumb__open-main:hover {
  color: var(--text);
  opacity: 1;
}

.task-search-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.task-search-input {
  align-self: center;
  width: 12rem;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg, #fff);
  font-size: 0.875rem;
  color: var(--text);
  transition: width 0.2s ease, border-color 0.12s;
}
.task-search-input:focus {
  width: 24rem;
  border-color: var(--accent);
  outline: none;
}

.task-subtask-of {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.task-filter-row {
  float: right;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem 0.85rem;
}

.task-filter-divider {
  align-self: stretch;
  width: 1px;
  background: var(--border);
  margin: 0.2rem 0.15rem;
}

.task-section .card-flush {
  clear: right;
}

.task-filter-chip {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.task-filter-chip:hover {
  background: var(--surface-2);
  color: var(--text);
}
.task-filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.task-filter-chip[aria-pressed=true] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

#list-body[data-hide-mine="1"] .task-row[data-assignee=mine] {
  display: none;
}

#list-body[data-hide-others="1"] .task-row[data-assignee=others] {
  display: none;
}

#list-body[data-hide-unassigned="1"] .task-row[data-assignee=unassigned] {
  display: none;
}

.search-empty {
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.empty-state p {
  font-size: 0.95rem;
  font-weight: 500;
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.2;
  font-family: "Cormorant Garamond", serif;
}

.task-view-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.task-view-header .task-view-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.task-view-header.title-wraps .task-view-title {
  flex-basis: 100%;
  order: 99;
}

#proj-view::after {
  content: "";
  display: block;
  clear: both;
}

.project-avatar {
  float: left;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 0 0.85rem 0.4rem 0;
  display: block;
}

.project-avatar--sm {
  float: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: 0;
  flex-shrink: 0;
}

.project-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  user-select: none;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.project-avatar--sm.project-avatar--fallback {
  font-size: 0.95rem;
}

.proj-list-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.proj-list-row .proj-list-name {
  flex: 1;
  min-width: 0;
}

.task-view-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.task-notes {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.task-notes p {
  margin: 0 0 0.6rem;
}
.task-notes p:last-child {
  margin-bottom: 0;
}
.task-notes ul, .task-notes ol {
  padding-left: 1.4rem;
  margin: 0 0 0.6rem;
}
.task-notes li {
  margin-bottom: 0.2rem;
}
.task-notes strong {
  font-weight: 600;
}
.task-notes em {
  font-style: italic;
}
.task-notes h1, .task-notes h2, .task-notes h3 {
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}
.task-notes a {
  color: var(--accent);
}
.task-notes blockquote {
  border-left: 3px solid var(--border);
  margin: 0 0 0.6rem;
  padding-left: 0.75rem;
  color: var(--text-muted);
}
.task-notes code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.task-notes pre {
  background: var(--surface-2);
  padding: 0.75rem;
  border-radius: var(--radius);
  overflow-x: auto;
}
.task-notes pre code {
  background: none;
  padding: 0;
}

.watch-btn .watch-btn__ico {
  stroke-width: 1.5;
  opacity: 0.6;
  transition: stroke-width 120ms ease, opacity 120ms ease;
}
.watch-btn:hover .watch-btn__ico {
  opacity: 0.85;
}
.watch-btn.is-watching .watch-btn__ico {
  stroke-width: 2.4;
  opacity: 1;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.progress-meta__row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.progress-meta__label {
  opacity: 0.85;
}
.progress-meta strong {
  color: var(--text);
  font-weight: 600;
}

.progress-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.progress-row > form {
  display: contents;
}
.progress-row .form-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.progress-row .form-group label {
  margin-bottom: 0;
  flex-shrink: 0;
}
.progress-row .form-group select {
  flex: 1;
  min-width: 0;
}

.progress-blocker {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}
.progress-blocker--active {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.progress-blocker--active .blocker-info {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.progress-blocker__clear {
  flex-shrink: 0;
}

.field-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field-row > .form-group {
  margin-bottom: 0;
}
.field-row > .btn {
  height: var(--input-h);
}

.field-row--magic {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.field-row--magic > .form-group {
  width: 100%;
}
.field-row--magic > #create-submit {
  align-self: flex-end;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row > .form-group {
  margin-bottom: 0;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-inline {
  display: inline;
}

.flex-spacer {
  flex: 1;
}

.form-hint {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ai-context-area {
  width: 100%;
  min-height: 22rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  resize: vertical;
}

.fav-form {
  margin: 0;
}

.fav-btn {
  padding: 0.25rem 0.4rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
}
.fav-btn svg {
  display: block;
}
.fav-btn:hover {
  color: #f5a623;
  transform: scale(1.08);
}
.fav-btn:active {
  transform: scale(0.96);
}
.fav-btn.is-fav {
  color: #f5a623;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

tr.row-link {
  cursor: pointer;
}

.td-date {
  white-space: nowrap;
  vertical-align: top;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.td-muted {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.proj-list-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.proj-list-name .link-strong {
  line-height: 1.2;
}

.proj-list-desc {
  font-size: 0.82rem;
  line-height: 1.4;
}

.proj-list-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.proj-badge-label {
  display: none;
}

@media (max-width: 600px) {
  .proj-badge-label {
    display: inline;
  }
}
.td-assigned {
  margin-top: 0.25rem;
}

.td-actions {
  white-space: nowrap;
  vertical-align: top;
}

.td-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.url-link {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.12s ease;
}
.url-link:hover {
  text-decoration: none;
  transform: scale(1.2);
}

.task-assignee {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.task-blocker {
  font-size: 0.78rem;
  color: var(--blocked-color);
}

.task-closer {
  font-size: 0.85rem;
  color: var(--accent);
  align-self: center;
}

.task-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.task-meta .task-assignee {
  color: var(--in-progress-color);
}

.task-done {
  opacity: 0.6;
}

.task-done .task-title {
  text-decoration: line-through;
}

.task-wontfix {
  opacity: 0.6;
}

.task-wontfix .task-title {
  text-decoration: line-through;
}

.task-docs::before {
  background: var(--docs-color);
  opacity: 1;
}

.task-later {
  opacity: 0.75;
}

.task-row .task-meta .task-assignee {
  min-height: 1.44rem;
  display: flex;
  align-items: center;
}

.blocker-link {
  color: inherit;
  text-decoration: none;
}
.blocker-link:hover {
  text-decoration: none;
}

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

.link-strong {
  font-weight: 600;
}

.link-done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.file-type {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

.comments-list {
  margin-bottom: 1rem;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.report-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.report-card__link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.report-card__link:hover .report-card__title {
  color: var(--accent);
}
.report-card__id {
  font: 500 0.7rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  color: var(--text-muted);
  white-space: nowrap;
}
.report-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-card__delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.95rem;
  line-height: 1;
}
.report-card__delete:hover {
  color: var(--danger);
}

body.report-view-mode {
  background: var(--bg);
}
body.report-view-mode > header,
body.report-view-mode > footer.favorites-footer {
  display: none;
}
body.report-view-mode::after {
  bottom: calc(2rem + var(--footer-h) - 54px);
}
body.report-view-mode main {
  max-width: 1080px;
  padding-bottom: calc(4rem + 89px + var(--footer-h) - 75px);
}

.report-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-view-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
}
.report-view-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.report-view-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.report-view-frame {
  margin-bottom: 1rem;
}

.report-view-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.report-action svg {
  display: block;
}
.report-action:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface-2);
}
.report-action:disabled {
  opacity: 0.45;
  cursor: default;
}
.report-action.is-working {
  cursor: progress;
  opacity: 0.6;
}

.report-safari-notice {
  margin: 0.5rem 0 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #b8860b;
  border-left: 4px solid #b8860b;
  border-radius: 4px;
  background: #fff8e1;
  color: #5a4400;
  font-size: 0.9rem;
  line-height: 1.4;
}
.report-safari-notice strong {
  display: block;
  margin-bottom: 0.2rem;
}

.report-view-viewport .report-iframe {
  width: 100%;
  border: none;
  background: #fff;
  display: block;
  box-shadow: var(--shadow-sm);
}

.report-demos {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle, #e4ddd4);
  border-radius: 6px;
  background: var(--surface-2, #faf7f3);
}
.report-demos__heading {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #7a7268);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.report-demos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-demo-open {
  font: inherit;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent, #084c7f);
  border-radius: 4px;
  background: #fff;
  color: var(--accent, #084c7f);
  cursor: pointer;
}
.report-demo-open:hover {
  background: var(--accent, #084c7f);
  color: #fff;
}

.report-demo-modal {
  padding: 0;
  border: 2px solid var(--accent, #084c7f);
  border-radius: 6px;
  width: min(95vw, 1320px);
  max-height: 90vh;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.report-demo-modal[open] {
  display: flex;
  flex-direction: column;
  max-width: none;
  overflow: hidden;
}
.report-demo-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.report-demo-modal__header {
  position: static;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  background: var(--accent, #084c7f);
  color: #fff;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.report-demo-modal__label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.report-demo-modal__label::before {
  content: "⛶ ";
}
.report-demo-modal__sizes {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.report-demo-modal__size {
  font: inherit;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1.1;
}
.report-demo-modal__size:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}
.report-demo-modal__size.is-active {
  background: #fff;
  color: var(--accent, #084c7f);
  border-color: #fff;
}
.report-demo-modal__size:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.2);
}
.report-demo-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.report-demo-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.report-demo-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.report-demo-modal__close svg {
  display: block;
}
.report-demo-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: safe center;
  align-items: safe flex-start;
  padding: 0.75rem;
  background: repeating-conic-gradient(#f4f1ec 0% 25%, #ece7df 0% 50%) 0 0/24px 24px;
}
.report-demo-modal__frame {
  display: block;
  width: 100%;
  height: calc(90vh - 6rem);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.comment-attachment-image {
  display: inline-block;
  align-self: flex-start;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  line-height: 0;
}
.comment-attachment-image img {
  display: block;
  max-width: 100%;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.comment-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.comment-attachment-file:hover {
  background: var(--surface-3, var(--surface-2));
}

.attachment-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.attachment-thumb {
  position: relative;
  width: min(200px, 50% - 0.3rem);
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.attachment-thumb__id {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font: 500 0.7rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  pointer-events: none;
}
.attachment-thumb__viewer {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.attachment-thumb__viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.attachment-thumb__delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  padding: 0;
}
.attachment-thumb__delete:hover {
  background: rgba(184, 34, 34, 0.85);
}
.attachment-thumb:hover .attachment-thumb__delete {
  opacity: 1;
}

.att-file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.att-file-row:last-child {
  border-bottom: none;
}
.att-file-row__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--text-muted);
}
.att-file-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.att-file-row__namerow {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
.att-file-row__namerow .task-id {
  min-width: 0;
  flex-shrink: 0;
}
.att-file-row__name {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-file-row__name:hover {
  color: var(--accent);
  text-decoration: underline;
}
.att-file-row__type {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.att-file-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}
.att-file-row__size {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.att-file-row__date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.att-file-row__delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.att-file-row__delete:hover {
  color: var(--danger);
  background: var(--danger-dim);
}

.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}
.upload-zone:hover, .upload-zone--drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-zone__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.65rem;
  color: var(--text-muted);
  transition: color 0.18s;
}
.upload-zone--drag-over .upload-zone__icon, .upload-zone:hover .upload-zone__icon {
  color: var(--accent);
}
.upload-zone__label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.upload-zone__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.upload-zone__preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}
.upload-zone__file-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}
.upload-zone__file-info {
  flex: 1;
  min-width: 0;
}
.upload-zone__file-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.upload-zone__file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.upload-zone__clear {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.upload-zone__clear:hover {
  color: var(--danger);
  background: var(--danger-dim);
}

.upload-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: #111;
  overflow: hidden;
}
.lightbox[open] {
  display: block;
  width: max-content;
  height: max-content;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}
.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0;
  line-height: 1;
}
.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.85);
}
.lightbox__img {
  display: block;
  max-width: min(90vw, 1200px);
  max-height: calc(90vh - 32px);
  object-fit: contain;
}
.lightbox__name {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  padding: 4px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-preview {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.task-section {
  margin-bottom: 1.25rem;
}

.list-group-label--open {
  color: var(--open-color);
}
.list-group-label--blocked {
  color: var(--blocked-color);
}
.list-group-label--done {
  color: var(--done-color);
}
.list-group-label--in_progress {
  color: var(--in-progress-color);
}
.list-group-label--testing {
  color: var(--testing-color);
}
.list-group-label--wontfix {
  color: var(--wontfix-color);
}
.list-group-label--later {
  color: var(--later-color);
}
.list-group-label--docs {
  color: var(--docs-color);
}

.comment-input {
  min-height: 60px;
}

.login-card {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}
.login-card h2 {
  margin-bottom: 1.5rem;
}

.login-section-header {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.login-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.login-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes confirm-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.confirm-dialog {
  max-width: 360px;
  width: calc(100vw - 3rem);
  max-height: none;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  border-top: 3px solid var(--danger);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}
.confirm-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: confirm-in 0.22s cubic-bezier(0.34, 1.35, 0.64, 1);
}
.confirm-dialog__body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.1rem;
}
.confirm-dialog__icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid #c5d9ee;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.confirm-dialog__msg {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}
.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}
.confirm-dialog .btn:focus {
  outline: 1px solid var(--text-muted);
  outline-offset: 2px;
}
.confirm-dialog .btn-primary:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(8, 76, 127, 0.45);
}

dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  padding: 0;
  margin: auto;
  max-width: 860px;
  width: calc(100vw - 2rem);
  max-height: 80vh;
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: row;
}
dialog::backdrop {
  background: rgba(28, 24, 20, 0.4);
  backdrop-filter: blur(2px);
}

.task-picker {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  flex: 3 0 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.task-picker__header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.task-picker__header input {
  margin: 0;
}
.task-picker__list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.task-picker__item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.task-picker__item:last-child {
  border-bottom: none;
}
.task-picker__item:hover, .task-picker__item:focus {
  background: var(--surface-2);
  outline: none;
}
.task-picker__item--remove {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.task-picker__item--remove:hover, .task-picker__item--remove:focus {
  background: var(--danger-dim);
  color: var(--danger);
}
.task-picker__item-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.task-picker__item .task-id {
  min-width: 2.8rem;
}
.task-picker__item .task-title {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-picker__empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.task-picker__footer {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.blocker-reason-dlg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  max-width: min(90vw, 32rem);
  width: 90vw;
}
.blocker-reason-dlg::backdrop {
  background: rgba(0, 0, 0, 0.35);
}
.blocker-reason-dlg[open] {
  display: flex;
  flex-direction: column;
}
.blocker-reason-dlg__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  margin: 0;
  width: 100%;
}
.blocker-reason-dlg__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.blocker-reason-dlg__text {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  font: inherit;
}
.blocker-reason-dlg__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blocker-reason-dlg__actions {
  display: flex;
  gap: 0.4rem;
}
.blocker-reason-dlg__actions .btn:first-child {
  margin-right: auto;
}

.task-hover-detail {
  flex: 2 0 0;
  min-width: 0;
  padding: 1rem;
  overflow-y: auto;
  background: var(--surface-2);
}
.task-hover-detail .thd-title {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.task-hover-detail .thd-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.task-hover-detail .thd-notes p, .task-hover-detail .thd-notes ul, .task-hover-detail .thd-notes ol, .task-hover-detail .thd-notes pre, .task-hover-detail .thd-notes blockquote, .task-hover-detail .thd-notes h1, .task-hover-detail .thd-notes h2, .task-hover-detail .thd-notes h3, .task-hover-detail .thd-notes h4, .task-hover-detail .thd-notes h5, .task-hover-detail .thd-notes h6 {
  margin-bottom: 0.5rem;
}
.task-hover-detail .thd-notes p:last-child, .task-hover-detail .thd-notes ul:last-child, .task-hover-detail .thd-notes ol:last-child {
  margin-bottom: 0;
}
.task-hover-detail .thd-notes ul, .task-hover-detail .thd-notes ol {
  padding-left: 1.2rem;
}
.task-hover-detail .thd-notes h1, .task-hover-detail .thd-notes h2, .task-hover-detail .thd-notes h3, .task-hover-detail .thd-notes h4, .task-hover-detail .thd-notes h5, .task-hover-detail .thd-notes h6 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.task-hover-detail .thd-notes code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
}
.task-hover-detail .thd-notes pre {
  white-space: pre-wrap;
}
.task-hover-detail .thd-notes strong {
  font-weight: 600;
}

.blocker-info {
  margin-bottom: 0;
  color: var(--blocked-color);
}
.blocker-info__line {
  font-size: 0.92rem;
}
.blocker-info__reason {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.3rem;
  white-space: pre-wrap;
}

.parent-info {
  display: block;
  position: relative;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: background 0.12s;
}
.parent-info:hover {
  background: var(--surface);
}
.parent-info__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.parent-info__link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: inherit;
  text-decoration: none;
}
.parent-info__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.parent-info__link:hover {
  text-decoration: none;
}
.parent-info__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.parent-info__notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.parent-info__notes a {
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.subtask-row {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
}
.subtask-row:hover {
  background: var(--surface-2);
}
.subtask-row:last-child {
  border-bottom: none;
}
.subtask-row__main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.subtask-row .badge, .subtask-row form {
  position: relative;
  z-index: 1;
}
.subtask-row__link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.subtask-row__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.subtask-row__link:hover {
  text-decoration: none;
}
.subtask-row__link:hover .subtask-row__title {
  text-decoration: underline;
}
.subtask-row__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subtask-row__notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
  padding-left: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bbt-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.task-picker-btn {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}
.task-picker-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 720px) {
  .task-view-header .task-view-actions .btn-label {
    display: none;
  }
}
@media (max-width: 600px) {
  header {
    padding: 0.5rem 4rem 0.5rem 1rem;
    right: unset;
    flex-wrap: nowrap;
  }
  header .header-actions {
    top: 1.75rem;
    right: 1rem;
  }
  header .user-dropdown__trigger {
    padding: 0.3rem 0.35rem;
    gap: 0.25rem;
    background: transparent;
    border-color: transparent;
  }
  header .user-dropdown__trigger::before {
    display: none;
  }
  header .user-dropdown__trigger:hover {
    background: var(--surface-2);
  }
  header .user-dropdown[open] header .user-dropdown__trigger {
    background: var(--surface-2);
    border-color: transparent;
  }
  header .user-dropdown__icon {
    display: block;
  }
  header .user-dropdown__name {
    display: none;
  }
  header nav {
    margin-right: 0;
    margin-left: -0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
  }
  header nav a, header nav .nav-disabled {
    padding: 0.3rem 0.45rem;
    font-size: 0.82rem;
  }
  header nav .project-switcher__trigger {
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
  }
  main {
    padding: 1.25rem 0.75rem 7rem;
  }
  .btn-icon-only-mobile .btn-label {
    display: none;
  }
  #proj-view {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "header header" "avatar notes";
    column-gap: 0.75rem;
  }
  #proj-view .task-view-header {
    grid-area: header;
  }
  #proj-view .task-notes {
    grid-area: notes;
  }
  #proj-view .project-avatar {
    grid-area: avatar;
    float: none;
    align-self: start;
    margin: 0;
  }
  #task-picker-dlg {
    width: 100vw;
    max-width: 100vw;
    height: 50dvh;
    max-height: 50dvh;
    margin: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  #task-picker-dlg .task-picker {
    flex: 1;
    max-height: 50dvh;
    border-right: none;
  }
  #task-picker-dlg .task-hover-detail {
    display: none;
  }
}
.share-landing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-landing__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.share-landing__meta {
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius, 6px);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.share-landing__meta-title {
  font-weight: 500;
}
.share-landing__meta-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.share-landing__meta-url {
  color: var(--link, #084c7f);
  word-break: break-all;
}
.share-landing__mode {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}
.share-landing__mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.share-landing__empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}
.share-landing__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.share-landing__create-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-landing__notes-label {
  margin-top: 0.5rem;
}

.share-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  background: var(--surface-1, #fff);
  min-width: 0;
  max-width: 100%;
}
.share-chip--image {
  padding: 0.3rem;
}
.share-chip__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.share-chip__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
}
.share-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.share-chip__name {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}
.share-chip__size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.share-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.share-picker__project-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.share-picker__project-select {
  font-size: 1rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  background: var(--surface-1, #fff);
  width: 100%;
}
.share-picker__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.share-picker__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1, #fff);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.share-picker__pill:hover {
  background: var(--surface-2);
}
.share-picker__pill--zero {
  opacity: 0.45;
}
.share-picker__pill--on {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong, var(--border));
}
.share-picker__pill--in_progress.share-picker__pill--on {
  color: var(--in-progress-color);
  border-color: currentColor;
}
.share-picker__pill--testing.share-picker__pill--on {
  color: var(--testing-color);
  border-color: currentColor;
}
.share-picker__pill--blocked.share-picker__pill--on {
  color: var(--blocked-color);
  border-color: currentColor;
}
.share-picker__pill--open.share-picker__pill--on {
  color: var(--open-color);
  border-color: currentColor;
}
.share-picker__pill--later.share-picker__pill--on {
  color: var(--later-color);
  border-color: currentColor;
}
.share-picker__pill-count {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.7;
}
.share-picker__search {
  display: flex;
}
.share-picker__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 50vh;
  overflow-y: auto;
}
.share-picker__group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.share-picker__rows {
  padding: 0.25rem;
}
.share-picker__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}
.share-picker__row:hover {
  background: var(--surface-2);
}
.share-picker__row input[type=radio] {
  margin: 0.2rem 0 0 0;
  flex: none;
}
.share-picker__row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.share-picker__row-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}
.share-picker__row-text {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-picker__row-project {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.share-picker__row-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-picker__empty {
  padding: 1.2rem 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.activity-card {
  padding: 0.75rem 1rem;
}

.activity-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.activity-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.activity-filter__reset {
  margin-left: 0.25rem;
}

.activity-actor-menu {
  position: relative;
  margin-left: auto;
}
.activity-actor-menu > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
}
.activity-actor-menu > summary::-webkit-details-marker {
  display: none;
}
.activity-actor-menu > summary:hover {
  color: var(--text);
  border-color: var(--border);
}
.activity-actor-menu.is-on > summary {
  color: var(--text);
  border-color: var(--border);
}
.activity-actor-menu__count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent-soft, rgba(120, 144, 255, 0.18));
  color: var(--text);
}
.activity-actor-menu__panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 20;
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--surface, var(--bg, #fff));
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.activity-actor-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}
.activity-actor-menu__item:hover {
  background: var(--accent-soft, rgba(120, 144, 255, 0.12));
}
.activity-actor-menu__item input[type=checkbox] {
  width: auto;
  margin: 0;
  accent-color: var(--accent, currentColor);
}

.activity-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.activity-chip input[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.activity-chip:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.activity-chip.is-on {
  background: var(--accent-soft, rgba(120, 144, 255, 0.18));
  color: var(--text);
  border-color: transparent;
}

.activity-empty {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-faint, rgba(127, 127, 127, 0.12));
}
.activity-row:last-child {
  border-bottom: none;
}
.activity-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.activity-row__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.activity-actor {
  font-weight: 600;
  color: var(--text);
}

.activity-text {
  color: var(--text);
}

.activity-task {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
}
.activity-task .task-id {
  color: var(--text-muted);
}
.activity-task__title {
  font-weight: 500;
}
.activity-task:hover {
  color: var(--text);
  text-decoration: none;
}
.activity-task:hover .activity-task__title {
  text-decoration: underline;
}

.activity-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.activity-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
.activity-pager__pos {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.activity-pager .is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/*# sourceMappingURL=app.css.map */
