:root {
  --app: #121315;
  --rail: #17181a;
  --chrome: #18191b;
  --column-a: #111214;
  --column-b: #101113;
  --card: #2b2c2f;
  --card-hover: #313338;
  --border: #3f4248;
  --border-subtle: rgba(255, 255, 255, 0.055);
  --text: #e4e4e2;
  --secondary: #9a9a95;
  --muted: #72736f;
  --disabled: #545652;
  --accent: #6568d7;
  --accent-hover: #7477e5;
  --accent-soft: rgba(101, 104, 215, 0.14);
  --danger: #df6f6f;
  --rail-width: 208px;
  --column-width: 288px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--app);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #151618 0%, var(--app) 120px);
}

.auth-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 18%, rgba(101, 104, 215, 0.16), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(63, 169, 120, 0.08), transparent 32%),
    linear-gradient(180deg, #151618 0%, #101113 100%);
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #1a1b1e;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.login-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 119, 229, 0.28);
  border-radius: 14px;
  background: rgba(101, 104, 215, 0.14);
  color: #8f92ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-mark svg {
  width: 21px;
  height: 21px;
}

.login-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 300px;
  margin: 10px auto 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.login-form input:focus {
  border-color: rgba(116, 119, 229, 0.72);
  box-shadow: 0 0 0 3px rgba(101, 104, 215, 0.16);
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(101, 104, 215, 0.26);
}

.login-demo-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.login-demo-note strong {
  color: var(--secondary);
  font-size: 12px;
}

.empty-teams-panel .login-brand {
  margin-bottom: 18px;
}

.topbar {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(24, 25, 27, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 4;
}

.team-mark,
.tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.team-name {
  font-size: 13px;
  font-weight: 650;
}

.team-switch-wrap {
  position: relative;
}

.team-switch-button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.team-switch-button:hover {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.team-switch-popover {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 20;
  min-width: 210px;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #202124;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.team-switch-option {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.team-switch-option:hover,
.team-switch-option.active {
  background: rgba(101, 104, 215, 0.12);
  color: var(--text);
}

.future-chip,
.status-button,
.settings-button,
.icon-button,
.quiet-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--disabled);
  border-radius: 7px;
}

.future-chip {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 11px;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.spacer {
  flex: 1;
}

.status-wrap {
  position: relative;
}

.status-button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--secondary);
  font-size: 12px;
  border-color: transparent;
}

.status-button:hover,
.settings-button:hover,
.profile-button:hover,
.quiet-button:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
}

.notification-indicator {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: default;
  user-select: none;
}

.notification-indicator span {
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(101, 104, 215, 0.22);
  color: #dfe0ff;
  font-size: 10px;
  line-height: 1;
}

.settings-button.active {
  border-color: rgba(116, 119, 229, 0.46);
  background: rgba(101, 104, 215, 0.12);
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.photo-avatar {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.78) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.44) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--avatar-color), rgba(255, 255, 255, 0.22)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -10px 16px rgba(0, 0, 0, 0.18);
}

.avatar.small {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 8px;
  border: 1.5px solid var(--card);
  margin-left: -6px;
}

.avatar.small:first-child {
  margin-left: 0;
}

.avatar-more {
  background: #3a3c42 !important;
  color: #d8d9d4 !important;
  font-size: 8px;
}

.settings-button,
.icon-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 0;
}

.profile-button .avatar {
  width: 28px;
  height: 28px;
}

.nav {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(24, 25, 27, 0.88);
  border-bottom: 1px solid var(--border-subtle);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.tab {
  min-width: 116px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
}

.tab.active {
  background: rgba(101, 104, 215, 0.11);
  color: var(--text);
  border-color: rgba(116, 119, 229, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tab.active .tab-icon {
  background: rgba(101, 104, 215, 0.16);
}

.tab .tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.tab .tab-icon svg {
  width: 14px;
  height: 14px;
}

.new-task {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(55, 57, 148, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.new-task:hover,
.submit:hover {
  background: var(--accent-hover);
}

.content {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.settings-content {
  display: block;
  overflow: auto;
  padding: 28px 32px 44px;
  background:
    radial-gradient(circle at 24% 0%, rgba(101, 104, 215, 0.055), transparent 34%),
    var(--bg);
}

.settings-page {
  max-width: 1180px;
  margin: 0 auto;
}

.settings-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.settings-page-header h1 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.1;
}

.settings-page-header p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-breadcrumb {
  margin-bottom: 8px;
  color: var(--disabled);
  font-size: 12px;
  font-weight: 700;
}

.team-admin-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.settings-team-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.11);
}

.settings-team-bar > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-team-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-team-pill,
.settings-team-create {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.settings-team-pill:hover,
.settings-team-create:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.045);
}

.settings-team-pill.active {
  border-color: rgba(116, 119, 229, 0.42);
  background: rgba(101, 104, 215, 0.12);
  color: var(--text);
}

.settings-team-create {
  color: #d8d9ff;
}

.team-summary-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(101, 104, 215, 0.16);
  color: #d8d9ff;
}

.team-summary-main,
.team-summary-stat {
  display: grid;
  gap: 3px;
}

.team-summary-main strong,
.team-summary-stat strong {
  color: var(--text);
  font-size: 14px;
}

.team-summary-main span,
.team-summary-stat span {
  color: var(--muted);
  font-size: 12px;
}

.team-summary-stat {
  min-width: 96px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.personal-rail {
  width: var(--rail-width);
  flex: 0 0 var(--rail-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rail);
  border-right: 1px solid rgba(255, 255, 255, 0.045);
}

.personal-rail.collapsed {
  width: 44px;
  flex-basis: 44px;
}

.personal-rail.collapsed .rail-head {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.personal-rail.collapsed .rail-head > svg,
.personal-rail.collapsed .rail-head span {
  display: none;
}

.personal-rail.collapsed .rail-toggle {
  position: static;
  margin-left: 0;
}

.rail-count {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
}

.rail-head {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 4px;
  color: #777a75;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.rail-toggle {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  opacity: 0.9;
}

.rail-toggle svg {
  width: 14px;
  height: 14px;
}

.rail-toggle:hover {
  border-color: rgba(116, 119, 229, 0.36);
  background: rgba(101, 104, 215, 0.1);
  color: #b7b8eb;
  opacity: 1;
}

.personal-input {
  margin: 4px 12px 12px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  padding: 0 10px;
  font-size: 13px;
}

.personal-input:focus {
  border-color: rgba(116, 119, 229, 0.5);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.12);
}

.personal-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 16px;
}

.personal-message {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.personal-message.error {
  color: #e98888;
}

.personal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 7px;
  color: rgba(228, 228, 226, 0.82);
  font-size: 13px;
  line-height: 1.25;
}

.personal-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.checkbox {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  flex: 0 0 auto;
}

.board {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}

.task-data-notice {
  flex: 0 0 260px;
  align-self: flex-start;
  margin: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(235, 236, 232, 0.72);
  font-size: 13px;
}

.task-data-notice.error {
  border-color: rgba(245, 111, 111, 0.28);
  color: #f08f8f;
}

.task-mutation-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 111, 111, 0.28);
  border-radius: 10px;
  background: rgba(245, 111, 111, 0.08);
  color: #efaaaa;
  font-size: 13px;
}

.archive-mutation-error {
  margin: 12px 16px 0;
}

.status-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tasks-toolbar {
  min-height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: visible;
  position: relative;
  z-index: 5;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.filter-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-menu {
  position: relative;
}

.filter-trigger {
  width: 168px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
  padding: 0 10px;
  font-size: 12px;
}

.filter-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-trigger:hover,
.filter-trigger.active,
.filter-menu.open .filter-trigger {
  border-color: rgba(116, 119, 229, 0.45);
  background: rgba(101, 104, 215, 0.12);
  color: #d6d6fa;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 190px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #232428;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}

.filter-menu.open .filter-popover {
  display: grid;
  gap: 3px;
}

.wide-popover {
  width: 230px;
}

.filter-option {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 7px;
  background: transparent;
  color: var(--secondary);
  padding: 0 8px;
  font-size: 12px;
  text-align: left;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.filter-option.active {
  background: rgba(101, 104, 215, 0.14);
  color: #d6d6fa;
}

.project-option.active {
  background: color-mix(in srgb, var(--project-color) 18%, rgba(101, 104, 215, 0.12));
  color: #f0f0ee;
}

.quiet-button {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  border-color: transparent;
}

.column {
  width: var(--column-width);
  flex: 0 0 var(--column-width);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--column-a);
}

.column.alt {
  background: var(--column-b);
}

.drop-column {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.drop-column.is-drop-target {
  background: #15171b;
  box-shadow: inset 0 0 0 1px rgba(116, 119, 229, 0.28);
}

.column-head {
  padding: 16px 12px 12px;
}

.project-head,
.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.member-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.member-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-head .column-title,
.project-head .column-title {
  flex: 1;
  min-width: 0;
}

.presence-wrap {
  position: relative;
  flex: 0 0 auto;
}

.presence {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--app);
}

.member-name,
.column-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me-badge {
  margin-left: 4px;
  color: #b8b9ee;
  background: rgba(101, 104, 215, 0.13);
  border-radius: 5px;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 750;
}

.member-status {
  display: inline-flex;
  align-items: center;
  width: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.member-status:not(.passive-status):hover {
  color: var(--text);
}

.member-status-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.passive-status {
  cursor: default;
  pointer-events: none;
}

.work-status-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 250px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 12px;
  background: #232428;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.work-status-popover.member-popover {
  left: 0;
  right: auto;
  top: calc(100% + 6px);
}

.popover-label {
  margin: 2px 2px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-status-options {
  display: grid;
  gap: 3px;
}

.work-status-option {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
  padding: 0 8px;
  font-size: 12px;
  text-align: left;
}

.status-emoji {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.work-status-option:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.work-status-option.active {
  background: rgba(116, 119, 229, 0.13);
  color: #d9d9ff;
}

.soft-action {
  opacity: 0.72;
}

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

.count {
  min-width: 22px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.column-add {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.055);
  color: #c3c4f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.column-add:hover {
  border-color: rgba(116, 119, 229, 0.45);
  background: rgba(101, 104, 215, 0.16);
  color: #fff;
}

.column-rule {
  height: 1px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.055);
}

.status-accent {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  margin-top: 10px;
  opacity: 0.72;
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cards {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 8px 16px;
}

.task-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 8px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.task-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.draggable-card {
  user-select: none;
}

.draggable-card.is-dragging {
  opacity: 0.55;
  border-color: rgba(116, 119, 229, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.task-stripe {
  height: 3px;
  width: 100%;
  opacity: 1;
}

.task-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px;
}

.task-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  height: 20px;
  border-radius: 5px;
  padding: 0 7px 0 9px;
  border: 1px solid color-mix(in srgb, var(--project-color) 48%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--project-color) 24%, #242527);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--project-color) 86%, #ffffff);
  color: #ecece8;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-project {
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-stack {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.task-title {
  margin: 0;
  overflow: hidden;
  color: #f0f0ee;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-desc {
  margin: 0;
  color: #a9aaa5;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #878984;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 620;
  color: #878984;
}

.meta svg,
.deadline svg {
  opacity: 0.82;
}

.deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #878984;
  font-size: 11px;
  font-weight: 650;
}

.deadline.overdue {
  color: var(--danger);
}

.empty {
  padding: 44px 12px;
  text-align: center;
  color: rgba(114, 115, 111, 0.8);
  font-size: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #17181a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.32);
}

.drawer-head {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.drawer-title {
  flex: 1;
  margin: 0;
  font-size: 14px;
}

.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.drawer-form {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.settings-drawer {
  width: 460px;
}

.settings-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  background: #17181a;
}

.settings-page .settings-tabs {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.026);
}

.settings-tab {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-tab:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.045);
}

.settings-tab.active {
  border-color: rgba(116, 119, 229, 0.46);
  background: rgba(101, 104, 215, 0.12);
  color: var(--text);
}

.settings-form {
  padding-top: 16px;
}

.settings-page .settings-form {
  max-width: none;
  padding: 0;
}

.settings-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.settings-page .settings-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.team-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

.settings-list-card {
  min-width: 0;
}

.settings-detail-card {
  position: sticky;
  top: 12px;
  min-height: 300px;
}

.settings-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 12px;
}

.settings-filter {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-filter:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.045);
}

.settings-filter.active {
  border-color: rgba(116, 119, 229, 0.38);
  background: rgba(101, 104, 215, 0.12);
  color: var(--text);
}

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

.admin-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.11);
  color: var(--text);
  text-align: left;
}

.admin-list-row:hover {
  border-color: rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.035);
}

.admin-list-row.active {
  border-color: rgba(116, 119, 229, 0.4);
  background: rgba(101, 104, 215, 0.095);
}

.admin-list-main,
.admin-list-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-list-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-main span,
.admin-list-meta {
  color: var(--muted);
  font-size: 12px;
}

.admin-list-meta {
  justify-items: end;
  text-align: right;
}

.admin-empty,
.settings-detail-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
}

.settings-detail-empty h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 14px;
}

.settings-detail-empty p {
  margin: 0;
}

.settings-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-detail-title h3,
.settings-detail-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.settings-detail-title p,
.settings-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-detail-form {
  display: grid;
  gap: 12px;
}

.settings-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.14);
}

.settings-mode-tab {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.settings-mode-tab:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.035);
}

.settings-mode-tab.active {
  border-color: rgba(116, 119, 229, 0.36);
  background: rgba(101, 104, 215, 0.13);
  color: var(--text);
}

.split-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.split-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.settings-card p,
.settings-toggle small,
.settings-row-meta,
.settings-field label {
  color: var(--muted);
  font-size: 12px;
}

.settings-card p {
  margin: 0;
  line-height: 1.35;
}

.settings-note {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(116, 119, 229, 0.18);
  border-radius: 11px;
  background: rgba(101, 104, 215, 0.055);
}

.settings-note strong {
  font-size: 13px;
}

.settings-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.settings-field label {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-field input,
.settings-field select,
.settings-add-row input,
.settings-add-row select,
.settings-add-member input,
.settings-add-member select,
.settings-add-project input,
.settings-row input,
.settings-row select {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  padding: 8px 10px;
  font-size: 13px;
}

.settings-field select {
  appearance: none;
  padding-right: 34px;
  color-scheme: dark;
  background:
    linear-gradient(45deg, transparent 50%, rgba(232, 233, 238, 0.72) 50%) right 15px center / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(232, 233, 238, 0.72) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.04);
}

.settings-field select option {
  background: #222326;
  color: var(--text);
}

.settings-add-row select,
.settings-add-member select,
.settings-row select {
  color-scheme: dark;
}

.settings-field input:focus,
.settings-field select:focus,
.settings-add-row input:focus,
.settings-add-row select:focus,
.settings-add-member input:focus,
.settings-add-member select:focus,
.settings-add-project input:focus,
.settings-row input:focus,
.settings-row select:focus {
  border-color: rgba(116, 119, 229, 0.48);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.1);
}

.settings-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.settings-toggle strong,
.settings-toggle small {
  display: block;
}

.settings-toggle strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.settings-toggle.active {
  border-color: rgba(101, 104, 215, 0.32);
  background: rgba(101, 104, 215, 0.08);
}

.toggle-track {
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.toggle-track span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--secondary);
  transition: transform 0.16s ease, background 0.16s ease;
}

.settings-toggle.active .toggle-track {
  background: rgba(101, 104, 215, 0.34);
}

.settings-toggle.active .toggle-track span {
  transform: translateX(14px);
  background: #d8d9ff;
}

.profile-toggle {
  min-height: 44px;
  margin: 4px 0 12px;
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.03);
}

.profile-toggle.active {
  border-color: rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.035);
}

.profile-toggle strong {
  font-size: 13px;
}

.profile-toggle small {
  color: var(--muted);
}

.profile-toggle .toggle-track {
  background: rgba(255, 255, 255, 0.12);
}

.profile-toggle.active .toggle-track {
  background: rgba(101, 104, 215, 0.45);
}

.settings-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.settings-save {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(116, 119, 229, 0.42);
  border-radius: 9px;
  background: rgba(101, 104, 215, 0.15);
  color: #d8d9ff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
}

.settings-save:hover {
  background: rgba(101, 104, 215, 0.22);
}

.settings-actions-row.split-actions {
  justify-content: space-between;
}

.profile-logout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(223, 111, 111, 0.38);
  border-radius: 9px;
  background: rgba(223, 111, 111, 0.11);
  color: #efb0b0;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 750;
}

.profile-logout:hover {
  border-color: rgba(223, 111, 111, 0.52);
  background: rgba(223, 111, 111, 0.17);
  color: #ffd0d0;
}

.settings-add-row,
.settings-add-member,
.settings-add-project {
  display: grid;
  grid-template-columns: 1fr 112px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.settings-add-member {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.settings-add-member .color-row,
.settings-add-member .settings-save {
  align-self: center;
}

.settings-add-project {
  grid-template-columns: 1fr;
}

.settings-add-project .color-row {
  margin-top: -2px;
}

.profile-drawer {
  width: 420px;
}

.profile-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.profile-preview h3 {
  margin-bottom: 3px;
}

.profile-section {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-section:last-of-type {
  padding-bottom: 4px;
}

.profile-section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-section .settings-field:last-child {
  margin-bottom: 0;
}

.compact-field {
  margin-bottom: 0;
}

.quiet-button.active-soft {
  border-color: rgba(116, 119, 229, 0.38);
  background: rgba(101, 104, 215, 0.12);
  color: #d8d9ff;
}

.profile-avatar-button {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 13px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.profile-avatar-button::after {
  content: "Изменить";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.profile-avatar-button:hover::after,
.profile-avatar-button:focus-visible::after {
  opacity: 1;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 13px;
  font-size: 14px;
}

.profile-readonly-note {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  line-height: 1.35;
}

.avatar-menu {
  position: absolute;
  left: 12px;
  top: 72px;
  z-index: 3;
  min-width: 148px;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #242528;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.avatar-menu button {
  min-height: 30px;
  border-radius: 7px;
  background: transparent;
  color: var(--secondary);
  padding: 0 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}

.avatar-menu button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.settings-error {
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(223, 111, 111, 0.28);
  border-radius: 9px;
  background: rgba(223, 111, 111, 0.08);
  color: #eba0a0;
  font-size: 12px;
  font-weight: 650;
}

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

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
}

.settings-row-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.settings-row-fields {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}

.member-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.member-password-row .quiet-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.settings-row-fields input,
.settings-row-fields select {
  width: 100%;
}

.settings-row-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 20px;
}

.status-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-row-actions .quiet-button {
  min-width: 86px;
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.danger-link {
  color: #e08a8a;
  border-color: rgba(223, 111, 111, 0.2);
}

.danger-link:hover {
  color: #f0a4a4;
  background: rgba(223, 111, 111, 0.08);
}

.danger-link:disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.055);
  opacity: 0.65;
}

.danger-link:disabled:hover {
  color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.project-settings-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-color-preview {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.project-color-preview.large {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.color-swatch.active {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 2px rgba(101, 104, 215, 0.26),
    inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.task-editor {
  padding-top: 18px;
}

.task-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 34px;
  pointer-events: none;
}

.task-modal {
  pointer-events: auto;
  width: min(1080px, calc(100vw - 68px));
  height: min(780px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 140px),
    #1a1b1e;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.task-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
}

.task-title-wrap {
  min-width: 0;
}

.task-modal-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.task-title-wrap .editor-title-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
}

.task-title-wrap .editor-title-input:focus {
  border-color: rgba(116, 119, 229, 0.48);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.1);
}

.task-modal-head .context-chips {
  margin: 0;
}

.task-modal-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  padding: 0 16px 16px;
  overflow: auto;
}

.task-modal-main,
.task-inspector {
  min-width: 0;
}

.task-modal-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-modal-main .field {
  margin-bottom: 0;
}

.task-modal-main textarea {
  min-height: 132px;
}

.task-inspector {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.026);
}

.inspector-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.inspector-field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inspector-field input,
.inspector-field select {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  padding: 0 10px;
  font-size: 12px;
}

.inspector-field select {
  appearance: none;
  color-scheme: dark;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.inspector-field select option {
  background: #232428;
  color: var(--text);
}

.inspector-field input:focus,
.inspector-field select:focus {
  border-color: rgba(116, 119, 229, 0.48);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.1);
}

.inspector-select {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary);
  padding: 5px 9px;
  text-align: left;
}

.inspector-select:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.inspector-select svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--muted);
}

.people-select-content {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.people-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 800;
}

.deadline-select strong {
  color: var(--text);
  font-size: 12px;
}

.deadline-select.empty strong {
  color: var(--muted);
  font-weight: 650;
}

.editor-popover {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 8px;
  border: 1px solid rgba(116, 119, 229, 0.34);
  border-radius: 11px;
  background: #24262c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.editor-popover-title {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person-option {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
  padding: 5px 6px;
  text-align: left;
  font-size: 12px;
}

.person-option:hover,
.person-option.active {
  background: rgba(116, 119, 229, 0.14);
  color: var(--text);
}

.person-option.active .mini-avatar {
  filter: none;
  opacity: 1;
}

.person-option strong {
  color: #bfc0ff;
  font-size: 12px;
}

.deadline-picker {
  width: 260px;
  top: calc(100% + 6px);
  bottom: auto;
  left: auto;
}

.clear-date-button {
  width: 100%;
  height: 32px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 750;
}

.clear-date-button:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.calendar-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-head button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
  font-size: 17px;
}

.calendar-head strong {
  color: var(--text);
  text-align: center;
  font-size: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.calendar-grid button,
.calendar-empty {
  height: 28px;
}

.calendar-grid button {
  border-radius: 7px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
}

.calendar-grid button:hover {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.calendar-grid button.active {
  background: rgba(116, 119, 229, 0.92);
  color: #fff;
  font-weight: 850;
}

.inspector-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.inspector-status-row .choice {
  min-width: 0;
  min-height: 32px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0 6px;
  font-size: 11px;
  white-space: nowrap;
}

.inspector-status-row .choice:hover {
  background: rgba(255, 255, 255, 0.045);
}

.inspector-status-row .choice.active {
  border-color: color-mix(in srgb, var(--choice-color) 68%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--choice-color) 18%, rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

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

.inspector-meta {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.inspector-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.inspector-meta strong {
  color: var(--secondary);
  font-size: 11px;
}

.task-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 12px;
  padding: 14px 16px 16px;
}

.task-modal-actions button {
  flex: initial;
}

.field {
  margin-bottom: 18px;
}

.title-field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.field-label-row label {
  margin-bottom: 0;
}

.field-label-row span {
  color: var(--disabled);
  font-size: 11px;
  white-space: nowrap;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
}

.field select {
  appearance: none;
  color-scheme: dark;
  accent-color: var(--accent);
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: #232428;
  color: var(--text);
}

.field select option:disabled {
  color: var(--disabled);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(116, 119, 229, 0.48);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.1);
}

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

.editor-title-input {
  min-height: 44px;
  font-size: 18px !important;
  font-weight: 750;
  line-height: 1.25;
}

.editor-properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

.editor-properties .field {
  margin-bottom: 0;
}

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

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-row {
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.assignee-row {
  gap: 6px;
}

.choice {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary);
  padding: 0 12px;
  font-size: 12px;
}

.choice:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.choice.active {
  border-color: rgba(116, 119, 229, 0.46);
  background: rgba(101, 104, 215, 0.12);
  color: #bbbdf0;
}

.color-choice {
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary);
}

.color-choice:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.color-choice.active {
  border-color: color-mix(in srgb, var(--choice-color) 78%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--choice-color) 24%, #202124);
  color: #f1f1ee;
}

.assignee-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 7px;
}

.mini-avatar {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 850;
  filter: grayscale(1);
  opacity: 0.72;
}

.color-choice.active .mini-avatar {
  filter: none;
  opacity: 1;
}

.task-inspector .inspector-status-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
}

.task-inspector .inspector-status-row .choice {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0 6px;
  text-align: center;
}

.task-inspector .inspector-status-row .choice.active {
  border-color: color-mix(in srgb, var(--choice-color) 72%, rgba(255, 255, 255, 0.14));
  background: color-mix(in srgb, var(--choice-color) 22%, rgba(255, 255, 255, 0.04));
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.context-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(116, 119, 229, 0.26);
  border-radius: 999px;
  background: rgba(101, 104, 215, 0.09);
  color: #b9baec;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.editor-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.editor-section h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 13px;
}

.editor-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.attachments-section {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.attachment-preview {
  border: 0;
  width: 36px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

button.attachment-preview {
  cursor: pointer;
}

button.attachment-preview:hover {
  background:
    linear-gradient(135deg, rgba(116, 119, 229, 0.45), rgba(63, 169, 120, 0.28)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
}

.image-attachment .attachment-preview {
  background:
    linear-gradient(135deg, rgba(116, 119, 229, 0.34), rgba(63, 169, 120, 0.2)),
    rgba(255, 255, 255, 0.04);
  color: #eeeeff;
}

.attachment-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.attachment-info strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-info span,
.attachments-empty {
  color: var(--muted);
  font-size: 11px;
}

.attachments-empty {
  padding: 14px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

.attachment-remove {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
}

.attachment-download {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
}

.attachment-download:hover {
  border-color: rgba(116, 119, 229, 0.24);
  background: rgba(116, 119, 229, 0.08);
  color: #c7c8ff;
}

.attachment-download svg {
  width: 14px;
  height: 14px;
}

.attachment-item:hover .attachment-remove {
  opacity: 1;
}

.attachment-item:hover .attachment-download {
  opacity: 1;
}

.attachment-remove:hover {
  border-color: rgba(223, 111, 111, 0.24);
  background: rgba(223, 111, 111, 0.08);
  color: #e2a0a0;
}

.attachment-remove svg {
  width: 14px;
  height: 14px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
}

.image-lightbox-panel {
  width: min(640px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #1b1c1f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.image-lightbox-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.image-lightbox-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.image-lightbox-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.image-lightbox-preview {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  background:
    radial-gradient(circle at 30% 25%, rgba(116, 119, 229, 0.18), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(63, 169, 120, 0.14), transparent 34%),
    #111214;
}

.image-lightbox-preview img {
  max-width: min(72vw, 920px);
  max-height: 62vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.image-lightbox-preview span {
  width: 96px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #eeeeff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.image-lightbox-preview span svg {
  width: 30px;
  height: 30px;
}

.image-lightbox-preview p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.comments-section {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.comments-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.comments-head h3 {
  margin: 0;
}

.comments-head span {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.comment-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.comment-composer input {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  padding: 0 10px;
  font-size: 13px;
}

.comment-composer input:focus {
  border-color: rgba(116, 119, 229, 0.48);
  box-shadow: 0 0 0 1px rgba(101, 104, 215, 0.1);
}

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

.comment-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 24px;
  gap: 9px;
  padding: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
}

.comment-delete {
  width: 22px;
  height: 22px;
  align-self: start;
  border-radius: 7px;
  background: transparent;
  color: var(--disabled);
  opacity: 0;
}

.comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: start;
}

.comment-edit,
.comment-delete {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: transparent;
  color: var(--disabled);
  opacity: 0;
}

.comment-item:hover .comment-edit,
.comment-item:hover .comment-delete,
.comment-edit:focus-visible,
.comment-delete:focus-visible {
  opacity: 1;
}

.comment-edit:hover {
  background: rgba(116, 119, 229, 0.1);
  color: #b8baff;
}

.comment-delete:hover {
  background: rgba(223, 111, 111, 0.1);
  color: #ef9f9f;
}

.comment-edit svg,
.comment-delete svg {
  width: 13px;
  height: 13px;
}

.comment-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.comment-edit-row input {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(116, 119, 229, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 9px;
  outline: none;
}

.comment-edit-row button {
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
}

.comment-edit-row button:first-of-type {
  border-color: rgba(116, 119, 229, 0.45);
  color: var(--text);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.comment-meta strong {
  color: var(--text);
  font-size: 12px;
}

.comment-meta span {
  color: var(--disabled);
  font-size: 11px;
}

.comment-item p,
.comment-empty {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.35;
}

.comment-empty {
  margin-top: 10px;
  padding: 4px 0 0 29px;
  border: 0;
  color: var(--muted);
}

.drawer-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.drawer-actions button {
  flex: 1;
  height: 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.cancel {
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary);
}

.submit {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(55, 57, 148, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.submit:hover {
  background: var(--accent-hover);
}

.submit:disabled,
.archive-action:disabled,
.restore-action:disabled,
.delete-action:disabled {
  cursor: default;
  opacity: 0.55;
}

.task-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 12px;
  padding: 14px 16px 16px;
}

.task-modal-actions button {
  flex: initial;
}

.task-modal-actions .archive-action {
  justify-self: start;
  min-width: 120px;
}

.archive-action {
  border: 1px solid rgba(223, 111, 111, 0.22);
  background: rgba(223, 111, 111, 0.07);
  color: #d89a9a;
}

.archive-action:hover {
  border-color: rgba(223, 111, 111, 0.34);
  background: rgba(223, 111, 111, 0.1);
  color: #efb0b0;
}

.drawer-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.archive-drawer {
  width: 440px;
}

.archive-drawer .drawer-head {
  height: auto;
  min-height: 64px;
  align-items: center;
  padding: 12px 16px;
}

.archive-drawer .drawer-head > div {
  flex: 1;
  min-width: 0;
}

.archive-drawer .drawer-title {
  line-height: 1.2;
}

.archive-drawer .drawer-close {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: -2px;
}

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

.archive-toolbar {
  min-height: auto;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.018);
}

.archive-toolbar .filter-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.archive-toolbar .filter-trigger {
  width: 178px;
}

.archive-filter-count {
  align-self: flex-end;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.archive-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
}

.archive-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.archive-item p {
  margin: 5px 0 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.35;
}

.archive-item .task-footer {
  margin-top: 10px;
}

.archive-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 11px;
}

.restore-action,
.delete-action {
  height: 34px;
  border: 1px solid rgba(116, 119, 229, 0.24);
  border-radius: 9px;
  background: rgba(116, 119, 229, 0.08);
  color: #bfc0ef;
  font-size: 12px;
  font-weight: 700;
}

.restore-action:hover {
  border-color: rgba(116, 119, 229, 0.38);
  background: rgba(116, 119, 229, 0.12);
  color: #eeeeff;
}

.delete-action {
  min-width: 78px;
  border-color: rgba(223, 111, 111, 0.18);
  background: rgba(223, 111, 111, 0.06);
  color: #d8a0a0;
}

.delete-action:hover {
  border-color: rgba(223, 111, 111, 0.34);
  background: rgba(223, 111, 111, 0.11);
  color: #f0b5b5;
}

.archive-empty {
  padding: 28px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.task-view h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.task-view p {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
}

.task-view-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.property-grid div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.property-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.property-grid strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.overdue-text {
  color: var(--danger) !important;
}

.drawer-section {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.drawer-section h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
}

.drawer-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.narrow-drawer {
  width: 360px;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
