@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/raleway-latin-ext-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/raleway-latin-ext-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/raleway-latin-ext-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/raleway-latin-ext-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("../fonts/raleway-latin-ext-800-normal.woff2") format("woff2");
}

:root {
  --navy: #0b334d;
  --navy-2: #08283d;
  --blue: #00a1d5;
  --blue-dark: #2673ad;
  --blue-soft: #e8f7fc;
  --ink: #17354d;
  --muted: #728797;
  --line: #dfe9ef;
  --surface: #ffffff;
  --canvas: #f4f8fb;
  --danger: #db3d55;
  --danger-soft: #fff0f2;
  --warning: #dd8a20;
  --warning-soft: #fff6e9;
  --success: #16a37a;
  --success-soft: #eaf8f3;
  --purple: #6d5ce7;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(19, 57, 82, 0.08);
  --sidebar: 286px;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e7f0f4;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e7f0f4;
}
*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
*::-webkit-scrollbar-track {
  background: #e7f0f4;
}
*::-webkit-scrollbar-thumb {
  min-height: 38px;
  border: 2px solid #e7f0f4;
  border-radius: 99px;
  background: linear-gradient(180deg, #22b9e3, var(--blue-dark));
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue), #185f95);
}
.main-nav::-webkit-scrollbar-track {
  background: transparent;
}
.main-nav::-webkit-scrollbar-thumb {
  border-color: transparent;
  background: #1db8e2;
}
body {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 10px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
h3 {
  font-size: 18px;
}
.muted {
  color: var(--muted);
}
.danger-text {
  color: var(--danger) !important;
}
.eyebrow {
  display: block;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 9px;
}
.eyebrow.light {
  color: #8ee7ff;
}

.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 35px rgba(5, 31, 47, 0.1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand img {
  width: 44px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: contain;
  box-sizing: border-box;
  padding: 3px 5px;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 0.11em;
}
.brand small {
  color: #81daef;
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-top: 6px;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 15px;
  border-radius: 12px;
  color: #b8cad5;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s ease;
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}
.main-nav a.active {
  color: #fff;
  background: linear-gradient(
    100deg,
    rgba(0, 161, 213, 0.32),
    rgba(0, 161, 213, 0.1)
  );
}
.main-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 24px;
  background: #25c1ea;
  border-radius: 0 4px 4px 0;
}
.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #6dd9f4;
}
.app-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.nav-icon .app-icon {
  width: 25px;
  height: 25px;
}
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  font-size: 12px;
}
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 7px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-user > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sidebar-user strong {
  font-size: 14px;
}
.sidebar-user small {
  font-size: 12px;
  color: #8fa9b8;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user > a {
  color: #7fa3b7;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.sidebar-user > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.page-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 82px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 3.6vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(15px);
}
.topbar-title {
  display: flex;
  flex-direction: column;
}
.topbar-title span {
  color: var(--muted);
  font-size: 12px;
}
.topbar-title strong {
  font-size: 17px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}
.topbar-search {
  position: relative;
  width: clamp(190px, 19vw, 300px);
}
.topbar-search-wrap {
  position: relative;
}
.topbar-search > span {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.topbar-search .app-icon {
  width: 19px;
  height: 19px;
}
.topbar-search input {
  min-height: 46px;
  padding: 9px 13px 9px 41px;
  background: #f7fafc;
}
.topbar-search-result {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  left: 0;
  width: 100%;
  min-width: 280px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid #bfe5f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 57, 81, 0.18);
  color: var(--ink);
}
.topbar-search-result[hidden] {
  display: none;
}
.topbar-search-result strong {
  font-size: 14px;
}
.topbar-search-result small {
  margin-top: 2px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}
.topbar-search-result.loading {
  opacity: 0.75;
}
.icon-button {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
  transition: 0.2s;
}
.icon-button:hover {
  border-color: #9fd9e9;
  color: var(--blue-dark);
  transform: translateY(-1px);
}
.notification-button span {
  position: absolute;
  right: -4px;
  top: -5px;
  background: var(--danger);
  color: #fff;
  width: 21px;
  height: 21px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.mobile-menu {
  display: none;
  margin-right: 12px;
}
.page-content {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 40px clamp(24px, 3.6vw, 58px) 76px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  background: none;
}
.button:hover {
  transform: translateY(-1px);
}
.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 161, 213, 0.23);
}
.button.primary:hover {
  box-shadow: 0 12px 28px rgba(0, 161, 213, 0.32);
}
.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.button.ghost:hover {
  border-color: #9ccfdd;
  color: var(--blue-dark);
}
.button.danger {
  background: var(--danger);
  color: #fff;
}
.button.danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #ffd3da;
}
.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}
.button.large {
  min-height: 58px;
  font-size: 16px;
}
.button.full,
.full {
  width: 100%;
}
.back-button {
  gap: 12px;
  padding-left: 15px;
}
.back-arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}
.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 14px;
}
.quick-task-button {
  min-width: 178px;
  justify-content: flex-start;
  padding: 0 20px 0 14px;
  gap: 13px;
}
.quick-task-button .button-plus {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}
.back-link:hover {
  color: var(--blue-dark);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(17, 62, 88, 0.035);
}
.panel-heading {
  min-height: 70px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 14px;
}
.page-heading-row,
.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.page-heading-row p,
.welcome-row p {
  color: var(--muted);
  margin-bottom: 0;
}
.welcome-row {
  align-items: center;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 17px;
}
.date-chip > span {
  font-size: 29px;
  font-weight: 800;
  color: var(--blue-dark);
}
.date-chip div {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.15;
}
.date-chip small {
  color: var(--muted);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.stat-card {
  min-height: 142px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 15px rgba(17, 62, 88, 0.025);
  transition: 0.2s;
}
a.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 26px;
  font-weight: 800;
}
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.stat-card strong {
  display: block;
  font-size: 34px;
  margin: 4px 0 1px;
  letter-spacing: -0.04em;
}
.stat-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.stat-card.blue .stat-icon {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.stat-card.red .stat-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
.stat-card.purple .stat-icon {
  background: #f0edff;
  color: var(--purple);
}
.stat-card.amber .stat-icon {
  background: var(--warning-soft);
  color: var(--warning);
}
.stat-card.green .stat-icon {
  background: var(--success-soft);
  color: var(--success);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}
.task-list.clean {
  padding: 5px 18px 13px;
}
.task-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 5px;
  border-bottom: 1px solid #edf2f5;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:hover .task-main strong {
  color: var(--blue-dark);
}
.task-main {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-main strong {
  transition: 0.2s;
  font-size: 16px;
}
.task-main small {
  color: var(--muted);
  font-size: 13px;
}
.row-arrow {
  color: #93a9b6;
  font-size: 22px;
}
.priority-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  display: inline-block;
}
.priority-dot.low,
.legend .low {
  background: #6fb59b;
}
.priority-dot.medium,
.legend .medium {
  background: #39a9d1;
}
.priority-dot.high,
.legend .high {
  background: #ef9d37;
}
.priority-dot.urgent,
.legend .urgent {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(219, 61, 85, 0.09);
}
.status-badge,
.due-badge,
.priority-pill,
.flag-badge,
.soft-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 11px;
}
.status-badge.backlog {
  background: #f0f4f6;
  color: #617987;
}
.status-badge.next {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.status-badge.in_progress,
.status-badge.working {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-badge.review {
  background: #f1eeff;
  color: var(--purple);
}
.status-badge.completed,
.status-badge.resolved {
  background: var(--success-soft);
  color: var(--success);
}
.status-badge.cancelled,
.status-badge.open {
  background: var(--danger-soft);
  color: var(--danger);
}
.due-badge.neutral {
  background: #f2f5f7;
  color: #728797;
}
.due-badge.success {
  background: var(--success-soft);
  color: var(--success);
}
.due-badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.due-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.flag-badge {
  background: var(--danger-soft);
  color: var(--danger);
}
.soft-badge {
  background: #edf6fa;
  color: #47788e;
}
.priority-pill {
  padding: 5px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}
.priority-pill.low {
  background: #edf7f3;
  color: #398b6f;
}
.priority-pill.medium {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.priority-pill.high {
  background: var(--warning-soft);
  color: var(--warning);
}
.priority-pill.urgent {
  background: var(--danger-soft);
  color: var(--danger);
}

.avatar {
  --avatar: var(--blue);
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: var(--avatar);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(20, 60, 82, 0.12);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.avatar.small {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 10px;
}
.avatar.large {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 17px;
}
.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
.avatar-stack .avatar + .avatar {
  margin-left: -8px;
}
.avatar-stack > span:last-child {
  margin-left: 9px;
  color: var(--muted);
  font-size: 13px;
}
.timeline {
  padding: 22px;
}
.timeline.mini {
  padding-top: 16px;
}
.timeline-item {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  position: relative;
}
.timeline-item > div {
  flex: 1;
}
.timeline-item p {
  color: #536d7d;
  line-height: 1.45;
  margin: 3px 0;
  font-size: 14px;
}
.timeline-item small {
  color: #9aabb5;
  font-size: 12px;
}
.timeline-date {
  margin: 12px 0 4px 45px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px;
}
.project-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: 0.22s;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #b7dfe9;
  box-shadow: var(--shadow);
}
.project-card.detailed {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}
.project-card-top .priority-pill {
  margin-left: auto;
}
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.health-dot.success {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 122, 0.1);
}
.health-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(221, 138, 32, 0.1);
}
.health-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(219, 61, 85, 0.1);
}
.health-dot.neutral {
  background: #93a5af;
}
.health-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.project-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.project-card > p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  min-height: 49px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 7px;
}
.progress-meta strong {
  color: var(--ink);
}
.progress,
.mini-progress {
  height: 6px;
  border-radius: 99px;
  background: #edf2f5;
  overflow: hidden;
}
.progress span,
.mini-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #58cae8);
  border-radius: inherit;
}
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
}
.project-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 18px;
}
.project-data > span {
  padding: 13px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-data > span + span {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.project-data small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.issue-strip {
  margin-top: 20px;
}
.issue-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.issue-list a {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
}
.issue-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 800;
  border-radius: 10px;
}
.issue-list a div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.issue-list small {
  color: var(--muted);
}

.filter-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.filter-tabs a {
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.filter-tabs a.active {
  color: var(--blue-dark);
  border-color: var(--blue);
}
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.filter-bar select {
  width: auto;
  min-width: 140px;
}
.search-box {
  flex: 1;
  min-width: 210px;
  position: relative;
}
.search-box span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 19px;
}
.search-box span .app-icon {
  width: 19px;
  height: 19px;
}
.search-box input {
  padding-left: 39px;
}
.check-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.check-filter input,
.option-card > input,
.module-picker label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.custom-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #bfd0da;
  border-radius: 7px;
  background: #fff;
  transition: 0.16s;
}
input:checked + .custom-check {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
input:checked + .custom-check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.reset-filter {
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.project-search-bar {
  max-width: 720px;
}
.table-panel {
  overflow: hidden;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(130px, 1fr) minmax(
      110px,
      0.8fr
    ) 110px 100px;
  align-items: center;
  gap: 18px;
}
.table-head {
  min-height: 48px;
  padding: 0 22px;
  background: #f8fbfc;
  color: #8195a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.table-row {
  min-height: 82px;
  padding: 9px 22px;
  border-top: 1px solid var(--line);
  transition: 0.16s;
}
.table-row:hover {
  background: #f9fcfd;
}
.task-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task-cell > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-cell small {
  color: var(--muted);
  font-size: 12px;
}

.project-hero {
  padding: 27px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
.project-hero-main h1 {
  font-size: 32px;
}
.project-hero-main > p {
  color: var(--muted);
  max-width: 800px;
  line-height: 1.6;
  margin: 0;
}
.project-summary {
  min-width: 335px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.project-summary > div:not(.ring) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.project-summary small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.ring {
  --progress: 0;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) calc(var(--progress) * 1%), #e8eff3 0);
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}
.ring span {
  position: relative;
  font-weight: 800;
  font-size: 13px;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 15px;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 15px;
}
.kanban-column {
  background: #edf3f6;
  border: 1px solid #e0eaef;
  border-radius: 16px;
  padding: 12px;
  min-height: 420px;
}
.kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 14px;
}
.kanban-title b {
  margin-left: auto;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.status-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a7b2;
}
.status-marker.next {
  background: var(--blue);
}
.status-marker.in_progress {
  background: var(--warning);
}
.status-marker.review {
  background: var(--purple);
}
.status-marker.completed {
  background: var(--success);
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kanban-card {
  position: relative;
  background: #fff;
  border: 1px solid #dde8ed;
  border-radius: 13px;
  padding: 15px;
  box-shadow: 0 3px 9px rgba(20, 60, 82, 0.035);
  transition: 0.18s;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(20, 60, 82, 0.1);
}
.kanban-card.flagged {
  border-left: 3px solid var(--danger);
}
.task-labels {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.kanban-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.kanban-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 28px;
}
.mini-progress {
  height: 4px;
  margin: 12px 0;
}
.kanban-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf2f5;
  padding-top: 11px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.kanban-footer > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.kanban-footer .due-badge {
  font-size: 12px;
  padding: 5px 8px;
}
.empty-column {
  min-height: 55px;
  width: 100%;
  border: 1px dashed #c7d7df;
  border-radius: 11px;
  background: transparent;
  color: #78909c;
  cursor: pointer;
}

.task-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 24px;
}
.task-detail-header h1 {
  margin-bottom: 8px;
}
.task-detail-header p {
  color: var(--muted);
}
.task-detail-header p a {
  color: var(--blue-dark);
  font-weight: 700;
}
.task-header-actions {
  display: flex;
  gap: 9px;
}
.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}
.task-detail-main,
.task-detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-section {
  overflow: hidden;
}
.rich-copy {
  padding: 24px;
  line-height: 1.7;
  color: #476475;
}
.blocked-note {
  margin: 0 24px 24px;
  padding: 15px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  border-radius: 9px;
}
.blocked-note p {
  margin: 5px 0 0;
  line-height: 1.5;
}
.detail-section > .progress {
  margin: 18px 23px 0;
}
.checklist {
  padding: 8px 22px;
}
.checklist-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f5;
}
.checklist-row.done > span {
  color: var(--muted);
  text-decoration: line-through;
}
.checklist-row small {
  margin-left: auto;
  color: var(--muted);
}
.check-button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #cbdbe3;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
}
.checklist-row.done .check-button {
  background: var(--success);
  border-color: var(--success);
}
.inline-add {
  display: flex;
  gap: 8px;
  padding: 8px 22px 20px;
}
.inline-add input {
  border-style: dashed;
}
.comments {
  padding: 8px 22px 0;
}
.comment {
  display: flex;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment > div {
  flex: 1;
}
.comment > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comment small {
  color: var(--muted);
  font-size: 12px;
}
.comment p {
  margin: 6px 0 0;
  color: #496675;
  line-height: 1.55;
}
.comment-form {
  display: flex;
  gap: 11px;
  padding: 20px 22px;
}
.comment-form > div {
  flex: 1;
}
.comment-form textarea {
  margin-bottom: 8px;
}
.meta-panel {
  padding: 20px;
}
.meta-panel h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.meta-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
}
.meta-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.meta-list select {
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 700;
}
.assignee-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.assignee-list span:not(.avatar) {
  font-weight: 700;
  font-size: 14px;
}
.meta-panel > .button {
  margin-top: 18px;
}
.file-list {
  padding: 8px 18px;
}
.file-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.file-list-item:last-child {
  border-bottom: 0;
}
.file-list-item > a {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.file-list a > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.file-list strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list small {
  color: var(--muted);
  font-size: 12px;
}
.file-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}
.upload-box {
  padding: 10px 18px 18px;
}
.upload-box label {
  min-height: 105px;
  padding: 15px 16px;
  border: 1px dashed #bcd3dd;
  background: #f8fbfc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.upload-box input {
  display: none;
}
.upload-box label span {
  color: var(--blue);
  font-size: 24px;
}
.upload-box label small {
  max-width: 265px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 5px auto 0;
  text-align: center;
}
.archive-action {
  text-align: center;
}
.archive-action button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.issues-detail-list {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.issue-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  padding: 15px;
  border-radius: 11px;
}
.issue-card.resolved {
  border-left-color: var(--success);
  opacity: 0.85;
}
.issue-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.issue-card-top > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.issue-card-top small,
.issue-card > small {
  color: var(--muted);
  font-size: 12px;
}
.issue-card > p {
  margin: 12px 0;
  color: #4f6c7b;
  line-height: 1.5;
}
.resolution {
  background: var(--success-soft);
  padding: 12px;
  border-radius: 9px;
  margin-top: 12px;
}
.resolution p {
  margin: 4px 0 0;
}
.issue-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.issue-actions > select {
  flex: 0 0 230px;
  width: 230px;
}
.issue-resolution {
  flex: 1;
  min-width: 260px;
  color: #496675;
  font-size: 13px;
  font-weight: 700;
}
.issue-resolution[hidden] {
  display: none;
}
.issue-resolution span {
  display: block;
  margin: 0 0 6px 2px;
}
.inline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: var(--muted);
}
.inline-empty span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.inline-empty p {
  margin: 0;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdee6;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 15px;
  outline: none;
  transition: 0.16s;
}
input,
select {
  min-height: 48px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 161, 213, 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.modal-card .form-grid {
  padding: 0 25px 25px;
}
.form-grid label {
  color: #496675;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.option-card {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 11px !important;
  min-height: 64px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfc;
  cursor: pointer;
}
.option-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.option-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.compact-option {
  min-height: 58px;
}
.disabled-field {
  opacity: 0.55;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
  padding: 14px;
}
legend {
  color: #496675;
  font-size: 14px;
  font-weight: 700;
  padding: 0 6px;
}
.member-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.member-picker label {
  flex: 1;
  min-width: 130px;
  min-height: 50px;
  padding: 6px 8px;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.member-picker label span:not(.avatar) {
  flex: 1;
}
.member-picker input {
  width: 19px;
  height: 19px;
  min-height: 0;
  accent-color: var(--blue);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 5px;
}
.form-actions.split {
  justify-content: space-between;
}
.form-actions.split > div {
  display: flex;
  gap: 9px;
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 34, 52, 0.64);
  backdrop-filter: blur(5px);
}
.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(5, 34, 52, 0.3);
  transform: translateY(15px) scale(0.98);
  transition: 0.24s;
}
.modal.open .modal-card {
  transform: none;
}
.modal-card.compact {
  width: min(520px, 100%);
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 17px;
  width: 40px;
  height: 40px;
  border: 0;
  background: #f1f5f7;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  color: var(--muted);
}
.modal-heading {
  padding: 26px 25px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
}
.modal-heading p {
  color: var(--muted);
  margin: 6px 45px 0 0;
  font-size: 14px;
}
.confirm-dialog {
  width: min(480px, 100%);
  padding: 32px;
  overflow: hidden;
}
.confirm-dialog::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 61, 85, 0.13), transparent 68%);
  pointer-events: none;
}
.confirm-dialog-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid #ffd6dc;
  border-radius: 17px;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: 0 10px 26px rgba(219, 61, 85, 0.12);
}
.confirm-dialog-icon svg {
  width: 27px;
  height: 27px;
}
.confirm-eyebrow {
  color: var(--danger);
  margin-bottom: 8px;
}
.confirm-dialog h2 {
  margin-bottom: 10px;
  font-size: 28px;
}
.confirm-dialog > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.confirm-dialog-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin-bottom: 25px;
  border: 1px solid #dcecf2;
  border-radius: 11px;
  background: #f5fafc;
  color: #537282;
}
.confirm-dialog-note[hidden] {
  display: none;
}
.confirm-dialog-note > span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dfeff5;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}
.confirm-dialog-note small {
  font-size: 13px;
  line-height: 1.5;
}
.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-dialog-actions .button {
  width: 100%;
}
.floating-add {
  display: none;
  position: fixed;
  z-index: 25;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: 32px;
  box-shadow: 0 12px 30px rgba(0, 161, 213, 0.35);
}
.alert {
  position: relative;
  border: 1px solid;
  border-radius: 11px;
  padding: 13px 42px 13px 15px;
  margin-bottom: 17px;
  transition: 0.3s;
}
.alert.success {
  background: var(--success-soft);
  color: #117859;
  border-color: #c5ebdd;
}
.alert.danger {
  background: var(--danger-soft);
  color: #b93047;
  border-color: #ffd1d8;
}
.alert.warning {
  background: var(--warning-soft);
  color: #a76211;
  border-color: #f6ddb8;
}
.alert button {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.alert.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.calendar-panel {
  overflow: hidden;
}
.calendar-title {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-week span {
  padding: 12px;
  text-align: center;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.calendar-day {
  min-height: 135px;
  padding: 9px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.outside {
  background: #fafcfd;
  color: #b6c2c8;
}
.day-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}
.calendar-day.today .day-number {
  color: #fff;
  background: var(--blue);
}
.day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.calendar-event {
  display: block;
  border-left: 3px solid;
  background: #f5f9fb;
  padding: 5px 6px;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
}
.calendar-event.low {
  border-color: #6fb59b;
}
.calendar-event.medium {
  border-color: var(--blue);
}
.calendar-event.high {
  border-color: var(--warning);
}
.calendar-event.urgent,
.calendar-event.flagged {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.calendar-controls {
  display: flex;
  gap: 6px;
}

.notification-list {
  overflow: hidden;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
.notification-item.unread {
  background: #f5fbfd;
}
.notification-item > div {
  flex: 1;
}
.notification-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.notification-item p {
  color: var(--muted);
  margin: 0 0 5px;
  font-size: 14px;
}
.notification-item small {
  color: #9aacb6;
  font-size: 12px;
}
.notification-type {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 800;
}
.notification-item.danger .notification-type {
  background: var(--danger-soft);
  color: var(--danger);
}
.notification-item.warning .notification-type {
  background: var(--warning-soft);
  color: var(--warning);
}
.notification-item.success .notification-type {
  background: var(--success-soft);
  color: var(--success);
}
.reports-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.report-bars,
.team-report,
.archive-list {
  padding: 18px 22px;
}
.report-bars a {
  display: block;
  padding: 11px 0;
}
.report-bars a > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.report-bars span {
  color: var(--muted);
  font-size: 13px;
}
.team-report > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.team-report > div > div {
  flex: 1;
}
.team-report small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 7px;
}
.team-report .progress {
  height: 4px;
}
.archive-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.archive-list article > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.archive-list small {
  color: var(--muted);
  font-size: 12px;
}
.archive-list .archive-expiry {
  color: #a16913;
  font-weight: 700;
}
.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.backup-card {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}
.backup-card.recommended {
  border-color: #b7e4ef;
  box-shadow: 0 20px 50px rgba(8, 76, 107, 0.09);
}
.backup-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.backup-icon .app-icon {
  width: 25px;
  height: 25px;
}
.backup-icon.secondary {
  background: #eef3f5;
  color: #647f8d;
}
.backup-badge {
  position: absolute;
  top: 31px;
  right: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.backup-card h2 {
  margin: 22px 0 8px;
}
.backup-card > p {
  color: var(--muted);
  line-height: 1.55;
}
.backup-card ul {
  margin: 21px 0 27px;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
  color: #486675;
  font-size: 14px;
}
.backup-card li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.backup-card li span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
}
.backup-card .button {
  margin-top: auto;
  gap: 12px;
}
.backup-card .button .app-icon {
  width: 20px;
  height: 20px;
}
.backup-card .button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}
.backup-note {
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
}
.backup-tip {
  margin-top: 20px;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.backup-tip > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--warning-soft);
  color: var(--warning);
}
.backup-tip strong {
  display: block;
  margin-bottom: 3px;
}
.backup-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-card {
  padding: 28px;
  text-align: center;
}
.team-card.inactive {
  opacity: 0.6;
}
.team-card h2 {
  margin: 13px 0 5px;
}
.team-card > p {
  color: var(--muted);
  font-size: 14px;
}
.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team-stats > span {
  padding: 13px 5px;
  display: flex;
  flex-direction: column;
}
.team-stats > span + span {
  border-left: 1px solid var(--line);
}
.team-stats strong {
  font-size: 20px;
}
.team-stats small {
  color: var(--muted);
  font-size: 12px;
}
.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.role-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef4f7;
  color: #557386;
  font-size: 12px;
  font-weight: 800;
}
.role-badge.admin {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.module-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  margin-bottom: 18px;
}
.module-chips span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef6fa;
  color: #47788e;
  font-size: 11px;
  font-weight: 700;
}
.module-chips .muted-chip {
  background: #f3f4f5;
  color: var(--muted);
}
.access-note {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.access-note > span {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.access-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.module-picker {
  display: grid;
  gap: 8px;
}
.module-picker label {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.module-picker label > span:last-child {
  display: flex;
  flex-direction: column;
}
.module-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.settings-grid > form {
  padding: 25px;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.profile-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}
.search-page-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 18px;
}
.search-page-form .search-box {
  flex: 1;
}
.search-page-form.is-searching {
  border-color: #a8dce9;
  box-shadow: 0 0 0 3px rgba(0, 161, 213, 0.08);
}
.search-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 12px;
}
.search-live-status {
  min-height: 20px;
  margin: -9px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}
.search-summary {
  margin: 0 2px 18px;
  color: var(--muted);
}
.search-section + .search-section {
  margin-top: 18px;
}
.search-results > a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.search-results > a:hover {
  background: #f8fbfc;
}
.search-result-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.search-results > a > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.search-results small {
  margin-top: 3px;
  color: var(--muted);
}
.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty-state > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 13px;
  font-size: 21px;
  margin-bottom: 10px;
}
.empty-state h3 {
  color: var(--ink);
  margin: 0 0 5px;
}
.empty-state p {
  margin-bottom: 13px;
}

.office-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 161, 213, 0.08), transparent 28%),
    var(--canvas);
}
.office-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 86px;
  padding: 13px clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(223, 233, 239, 0.9);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}
.office-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.office-logo {
  width: 48px;
  height: 54px;
  padding: 4px 8px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
}
.office-logo img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.office-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.office-brand strong {
  font-size: 17px;
  letter-spacing: 0.11em;
}
.office-brand small {
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.29em;
}
.office-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.office-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.office-nav a:hover,
.office-nav a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.office-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.office-user > div {
  min-width: 95px;
  display: flex;
  flex-direction: column;
}
.office-user small {
  color: var(--muted);
  font-size: 12px;
}
.office-settings-shortcut {
  display: none;
}
.office-website-shortcut {
  display: grid;
  margin-left: 3px;
  border-color: #0b4665;
  background: linear-gradient(145deg, #0b4665, #087fa7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 71, 99, 0.2);
}
.office-website-shortcut .app-icon {
  width: 23px;
  height: 23px;
}
.office-website-shortcut:hover {
  border-color: #00a1d5;
  background: linear-gradient(145deg, #0d5678, #00a1d5);
  color: #fff;
  box-shadow: 0 11px 24px rgba(0, 126, 168, 0.26);
}
.office-content {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 42px clamp(22px, 5vw, 72px) 80px;
}
.office-hero {
  min-height: 265px;
  padding: clamp(34px, 5vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(93, 225, 255, 0.26), transparent 24%),
    linear-gradient(135deg, #072a41, #0b4665);
  box-shadow: 0 24px 60px rgba(7, 42, 65, 0.17);
}
.office-hero::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 45px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}
.office-hero > * {
  position: relative;
  z-index: 1;
}
.office-hero h1 {
  margin-bottom: 12px;
}
.office-hero p {
  margin: 0;
  color: #bdd7e4;
  font-size: 17px;
}
.office-admin-button {
  min-height: 52px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(1, 21, 34, 0.2);
}
.office-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.office-settings-button {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
}
.office-settings-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}
.office-admin-button .app-icon,
.office-settings-button .app-icon {
  width: 21px;
  height: 21px;
}
.office-section-heading,
.office-admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.office-section-heading {
  margin: 43px 2px 18px;
}
.office-section-heading h2 {
  margin: 0;
  font-size: 30px;
}
.office-module-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f1f5;
  color: #55798c;
  font-size: 13px;
  font-weight: 750;
}
.office-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.office-module-card {
  min-height: 250px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}
.office-module-card.ready:hover {
  transform: translateY(-4px);
  border-color: #9ed9e8;
  box-shadow: 0 20px 48px rgba(15, 57, 81, 0.13);
}
.office-module-card.coming-soon {
  background: rgba(255, 255, 255, 0.72);
}
.office-module-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.office-module-icon .app-icon {
  width: 28px;
  height: 28px;
}
.office-module-status {
  position: absolute;
  top: 27px;
  right: 27px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.office-module-status.ready {
  background: var(--success-soft);
  color: var(--success);
}
.office-module-status.pending {
  background: #eef3f5;
  color: #718693;
}
.office-module-card h3 {
  margin: 25px 0 8px;
  font-size: 22px;
}
.office-module-card p {
  color: var(--muted);
  font-size: 14px;
}
.office-module-action {
  margin-top: auto;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}
.office-module-card.coming-soon .office-module-action {
  color: #869aa5;
}
.office-admin-heading {
  margin-bottom: 26px;
}
.office-admin-heading p {
  margin-bottom: 0;
  color: var(--muted);
}
.office-settings-heading {
  margin-bottom: 26px;
}
.office-settings-grid > form {
  align-self: start;
}
.office-team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.team-card-actions > .button:only-child {
  grid-column: 1 / -1;
}
.team-card-actions form {
  margin: 0;
}
.delete-user-trigger {
  width: 100%;
}
.delete-user-trigger .app-icon,
.delete-user-actions .app-icon {
  width: 18px;
  height: 18px;
}
.delete-user-dialog {
  overflow: hidden;
}
.delete-user-heading {
  padding: 30px 28px 23px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.delete-user-heading .eyebrow {
  margin: 15px 0 8px;
  color: var(--danger);
}
.delete-user-heading h2 {
  margin-bottom: 8px;
  font-size: 28px;
}
.delete-user-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.delete-user-heading p strong {
  color: var(--ink);
}
.delete-user-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd3da;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
}
.delete-user-icon .app-icon {
  width: 23px;
  height: 23px;
}
.delete-user-form {
  display: grid;
  gap: 17px;
  padding: 22px 28px 28px;
  text-align: left;
}
.delete-user-note {
  padding: 14px 15px;
  border: 1px solid #d9e7ed;
  border-radius: 11px;
  background: #f7fafc;
}
.delete-user-note strong {
  display: block;
  margin-bottom: 3px;
  color: #355b6e;
  font-size: 13px;
}
.delete-user-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.admin-password-field {
  display: grid;
  gap: 6px;
  color: #496675;
  font-size: 14px;
  font-weight: 750;
}
.admin-password-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.delete-user-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  margin-top: 2px;
}
.sensitive-action-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.sensitive-action-form label {
  display: grid;
  gap: 5px;
  color: #5f7784;
  font-size: 11px;
  font-weight: 800;
}
.sensitive-action-form input {
  min-height: 36px;
  padding: 7px 10px;
}
.logout-form {
  display: inline-flex;
  margin: 0;
}
.logout-form button {
  font: inherit;
}
.backup-download-form {
  display: grid;
  gap: 10px;
}
.backup-download-form label {
  display: grid;
  gap: 6px;
  color: #496675;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 161, 213, 0.2), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(38, 115, 173, 0.24), transparent 28%),
    linear-gradient(135deg, #061d2d 0%, #0b334d 55%, #0b4260 100%);
}
.login-layout {
  min-height: 100vh;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vh, 72px) clamp(28px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 540px);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}
.login-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: min(680px, calc(100vh - 100px));
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(70, 204, 237, 0.12);
  border-radius: 50%;
  width: 520px;
  height: 520px;
  right: -310px;
  top: 18%;
}
.login-visual::after {
  width: 360px;
  height: 360px;
  right: -230px;
  top: 28%;
}
.login-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  background: #04aadb;
  opacity: 0.12;
  filter: blur(90px);
  left: 27%;
  top: 36%;
}
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
}
.login-brand img {
  width: auto;
  height: 66px;
  flex: 0 0 auto;
  object-fit: contain;
  box-sizing: border-box;
  padding: 4px 6px;
}
.login-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.login-brand strong {
  font-size: 19px;
  letter-spacing: 0.12em;
}
.login-brand small {
  color: #7bdbf2;
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-top: 6px;
}
.login-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 650px;
}
.login-copy h1 {
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 25px;
}
.login-copy h1 em {
  font-style: normal;
  color: #4cccec;
}
.login-copy p {
  max-width: 520px;
  color: #adc6d4;
  font-size: 18px;
  line-height: 1.7;
}
.login-preview {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(460px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  backdrop-filter: blur(12px);
}
.preview-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(66, 204, 237, 0.18);
  color: #5de1ff;
  border-radius: 11px;
}
.login-preview > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.login-preview small {
  color: #73c9de;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.login-preview strong {
  font-size: 15px;
}
.login-preview > span {
  color: #6ad5ef;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(46px, 5vw, 68px);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(1, 17, 28, 0.38);
}
.login-form {
  width: min(440px, 100%);
}
.login-form h2 {
  font-size: 38px;
  margin-bottom: 10px;
}
.login-form > p {
  margin-bottom: 34px;
  font-size: 16px;
  line-height: 1.6;
}
.login-form > label {
  display: block;
  margin-bottom: 21px;
  color: #496675;
  font-size: 14px;
  font-weight: 700;
}
.input-with-icon {
  position: relative;
  margin-top: 7px;
}
.input-with-icon > span {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f8998;
  font-size: 17px;
}
.input-with-icon > span .app-icon {
  width: 18px;
  height: 18px;
}
.input-with-icon > span.password-icon {
  letter-spacing: 1px;
  font-weight: 800;
}
.input-with-icon input {
  min-height: 58px;
  padding-left: 48px;
  padding-right: 82px;
  border-radius: 13px;
  font-size: 16px;
}
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.login-form .button {
  margin-top: 8px;
}
.login-help {
  text-align: center;
  color: var(--muted);
  font-size: 12px !important;
  margin-top: 22px !important;
  margin-bottom: 0 !important;
}
.mobile-login-brand {
  display: none;
}

@media (max-width: 1250px) {
  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .search-box {
    flex: 1 0 100%;
  }
  .filter-bar select {
    flex: 1;
  }
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
  }
  .login-copy h1 {
    font-size: 58px;
  }
  .office-module-grid,
  .office-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .topbar-search-wrap {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar: 286px;
  }
  .office-brand > span:last-child,
  .office-user > div,
  .office-nav {
    display: none;
  }
  .office-settings-shortcut,
  .office-website-shortcut {
    display: grid;
  }
  .sidebar {
    width: min(var(--sidebar), calc(100vw - 28px));
    transform: translateX(-100%);
    transition: 0.25s;
    box-shadow: 20px 0 50px rgba(4, 28, 44, 0.25);
  }
  .sidebar-open .sidebar {
    transform: none;
  }
  .page-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .floating-add {
    display: block;
  }
  .dashboard-grid,
  .task-detail-grid,
  .reports-grid,
  .settings-grid,
  .backup-grid {
    grid-template-columns: 1fr;
  }
  .project-hero {
    grid-template-columns: 1fr;
  }
  .project-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    min-width: 0;
  }
  .table-head {
    display: none;
  }
  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 18px;
  }
  .task-cell {
    grid-column: 1/-1;
  }
  .table-row > span:not(.task-cell)::before,
  .table-row > .task-people-cell::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    width: min(650px, 100%);
    padding: 34px;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: auto;
    width: 100%;
  }
  .mobile-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
    font-size: 18px;
  }
  .mobile-login-brand img {
    width: auto;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    box-sizing: content-box;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
  }
}

.heic-status {
  display: block;
  margin-top: 8px;
  color: #526b7b;
  font-size: 13px;
  font-weight: 650;
}
.heic-status.processing {
  color: #087da5;
}
.heic-status.success {
  color: #23825a;
}
.heic-status.error {
  color: #b83742;
}

@media (max-width: 680px) {
  .login-layout {
    min-height: 100svh;
    padding: 18px;
  }
  .page-content {
    padding: 28px 17px 94px;
  }
  .topbar {
    padding: 0 17px;
    height: 72px;
  }
  .topbar-title span {
    display: none;
  }
  .office-header {
    min-height: 74px;
    padding: 10px 17px;
    gap: 12px;
  }
  .office-logo {
    width: 42px;
    height: 50px;
  }
  .office-user {
    gap: 6px;
  }
  .office-user .avatar {
    display: none;
  }
  .office-user .icon-button {
    width: 43px;
    height: 43px;
  }
  .office-content {
    padding: 22px 17px 60px;
  }
  .office-hero {
    min-height: 280px;
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    border-radius: 22px;
  }
  .office-hero h1 {
    font-size: 36px;
  }
  .office-hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .office-admin-button,
  .office-settings-button {
    width: 100%;
  }
  .office-section-heading,
  .office-admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .office-admin-heading .button {
    width: 100%;
  }
  .office-module-grid,
  .office-team-grid {
    grid-template-columns: 1fr;
  }
  .delete-user-heading {
    padding: 26px 20px 20px;
  }
  .delete-user-form {
    padding: 20px;
  }
  .delete-user-actions {
    grid-template-columns: 1fr;
  }
  .office-module-card {
    min-height: 230px;
  }
  .backup-card {
    min-height: 0;
    padding: 24px;
  }
  .backup-badge {
    top: 25px;
    right: 24px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .hide-mobile {
    display: none;
  }
  .page-heading-row,
  .welcome-row,
  .task-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading-row > .button,
  .task-header-actions {
    width: 100%;
  }
  .task-header-actions .button {
    flex: 1;
  }
  .date-chip {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .stat-card {
    min-height: 112px;
    padding: 18px;
    gap: 15px;
  }
  .stat-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .stat-card strong {
    font-size: 30px;
  }
  .stat-card small {
    font-size: 12px;
  }
  .project-grid,
  .compact-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .compact-grid {
    padding: 14px;
  }
  .issue-list {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    padding: 16px;
  }
  .task-row {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .task-row .task-main {
    min-width: calc(100% - 35px);
  }
  .task-row .status-badge {
    margin-left: 20px;
  }
  .task-row .row-arrow {
    margin-left: auto;
  }
  .filter-bar select {
    min-width: calc(50% - 5px);
  }
  .filter-bar .button {
    flex: 1;
  }
  .project-hero {
    padding: 20px;
  }
  .project-summary {
    flex-wrap: wrap;
  }
  .project-summary .button {
    width: 100%;
  }
  .kanban-board {
    margin-right: -15px;
  }
  .kanban-column {
    min-width: 270px;
  }
  .task-detail-header h1 {
    font-size: 31px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > * {
    grid-column: 1 !important;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex: 1;
  }
  .form-actions.split {
    align-items: stretch;
    flex-direction: column;
  }
  .form-actions.split > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .task-detail-side {
    order: -1;
  }
  .meta-list > div {
    grid-template-columns: 80px 1fr;
  }
  .issue-actions {
    flex-wrap: wrap;
  }
  .issue-actions select,
  .issue-actions input {
    flex: 1 0 100%;
  }
  .calendar-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .legend {
    flex-wrap: wrap;
  }
  .calendar-panel {
    overflow-x: auto;
  }
  .calendar-week,
  .calendar-grid {
    min-width: 760px;
  }
  .calendar-day {
    min-height: 120px;
  }
  .notification-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .notification-item > .button,
  .notification-item > form {
    margin-left: 50px;
  }
  .login-panel {
    padding: 34px 25px;
    border-radius: 24px;
  }
  .login-form h2 {
    font-size: 34px;
  }
  .modal {
    padding: 0;
    align-items: end;
  }
  .modal-card,
  .modal-card.compact {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .confirm-dialog,
  .confirm-dialog.compact {
    padding: 28px 20px 22px;
  }
  .modal-heading {
    padding: 23px 19px 18px;
  }
  .modal-card .form-grid {
    padding: 0 19px 22px;
  }
}

/* Planner v2.0 */
.project-people .avatar-stack {
  min-height: 40px;
  margin-top: 0;
}
.project-people .leader-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 13px;
}

.project-task-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.project-task-card > .task-labels,
.project-task-card > h3,
.project-task-card > p,
.project-task-card > .project-task-meta,
.project-task-card > .project-task-card-footer {
  position: relative;
  z-index: 2;
}
.project-task-card > p {
  min-height: 0;
}
.project-task-meta {
  margin-top: auto;
  padding-top: 16px;
}
.project-task-card-footer {
  position: relative;
  inset: auto;
  margin-top: 13px;
  padding-top: 13px;
}

.assignee-list {
  gap: 7px;
}
.assignee-person {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 3px;
  border: 1px solid #d7e8ef;
  border-radius: 12px;
  background: #f5fafc;
}
.assignee-person .avatar.small {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
}
.assignee-person > span:last-child {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-choice label {
  position: relative;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.upload-choice label:hover {
  border-color: #9bd8eb;
  transform: translateY(-1px);
}
.upload-choice label.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(0, 161, 213, 0.1);
}
.upload-choice label.selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.media-upload > .upload-selection {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dce8ee;
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.media-upload > .upload-selection.selected-file {
  border-color: #91d7eb;
  background: #edf9fd;
  color: var(--blue-dark);
  font-weight: 750;
}
.media-upload > .upload-selection.selected-file::before {
  content: "✓";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
}

.live-toast-stack {
  width: min(430px, calc(100vw - 34px));
  gap: 12px;
}
.live-toast {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 18px 19px;
  border: 1px solid #8fd9ed;
  border-left: 6px solid var(--blue);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(34, 185, 227, 0.17), transparent 38%),
    #fff;
  box-shadow:
    0 22px 60px rgba(5, 34, 51, 0.28),
    0 0 0 4px rgba(0, 161, 213, 0.08);
  transform: translateY(24px) scale(0.96);
}
.live-toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--blue);
  transform-origin: left;
  animation: toast-progress 8.5s linear forwards;
}
.live-toast.warning::after {
  background: var(--warning);
}
.live-toast.danger::after {
  background: var(--danger);
}
.live-toast.success::after {
  background: var(--success);
}
.live-toast > span {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(38, 115, 173, 0.1);
  font-size: 18px;
}
.live-toast > div {
  min-width: 0;
}
.live-toast-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.live-toast strong {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 16px;
}
.live-toast p {
  color: #587180;
  font-size: 13px;
  line-height: 1.45;
}
@keyframes toast-progress {
  to {
    transform: scaleX(0);
  }
}

.calendar-grid.calendar-range-grid {
  display: block;
}
.calendar-week-row {
  --week-lanes: 1;
  position: relative;
  min-height: calc(61px + var(--week-lanes) * 31px);
}
.calendar-days {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-week-row .calendar-day {
  min-height: 100%;
  padding: 0;
  cursor: pointer;
  transition: background 0.16s ease;
}
.calendar-week-row .calendar-day:hover {
  background: #f7fbfd;
}
.calendar-week-row .calendar-day.outside:hover {
  background: #f3f8fa;
}
.calendar-day-open {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 10px 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.calendar-day-open:hover .day-number {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.calendar-day.today .calendar-day-open:hover .day-number {
  color: #fff;
  background: var(--blue-dark);
}
.calendar-day-count {
  color: #98aab4;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.calendar-day.outside .calendar-day-count {
  opacity: 0.62;
}
.calendar-ranges {
  position: absolute;
  z-index: 3;
  top: 49px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(var(--week-lanes), 26px);
  grid-auto-rows: 26px;
  row-gap: 5px;
  pointer-events: none;
}
.calendar-range {
  --event-color: var(--blue);
  position: relative;
  height: 26px;
  min-width: 0;
  display: flex;
  align-items: center;
  color: color-mix(in srgb, var(--event-color) 58%, #102f43);
  pointer-events: auto;
}
.calendar-range::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -1px;
  left: -1px;
  height: 5px;
  border-radius: 0;
  background: var(--event-color);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--event-color) 25%, transparent);
  transform: translateY(-50%);
}
.calendar-range.starts-here::before {
  left: 7px;
  border-radius: 99px 0 0 99px;
}
.calendar-range.ends-here::before {
  right: 7px;
  border-radius: 0 99px 99px 0;
}
.calendar-range.starts-here.ends-here::before {
  border-radius: 99px;
}
.calendar-range-start-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: calc(100% - 8px);
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 7px;
  padding: 3px 8px 3px 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--event-color) 35%, white);
  border-left: 4px solid var(--event-color);
  border-radius: 7px;
  background: color-mix(in srgb, var(--event-color) 14%, white);
  box-shadow: 0 2px 8px rgba(19, 57, 82, 0.08);
  font-size: 11px;
  font-weight: 800;
}
.calendar-range-start-label .calendar-event-icons {
  font-size: 10px;
}
.calendar-day-card {
  width: min(660px, calc(100vw - 30px));
  max-height: min(760px, 90vh);
  overflow: auto;
}
.calendar-day-heading {
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.calendar-day-heading h2 {
  margin-bottom: 6px;
}
.calendar-day-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.calendar-day-list {
  padding: 12px 16px 18px;
}
.calendar-day-item {
  --event-color: var(--blue);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--event-color);
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.calendar-day-item:hover {
  background: #f6fbfd;
  transform: translateX(2px);
}
.calendar-day-item-signals {
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--event-color) 12%, white);
  color: color-mix(in srgb, var(--event-color) 68%, var(--navy));
}
.calendar-day-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calendar-day-item-copy small {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.calendar-day-item-copy strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-day-item-copy > span {
  color: var(--muted);
  font-size: 11px;
}
.calendar-day-empty {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.calendar-day-empty > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 15px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 22px;
}
.calendar-day-empty small {
  color: var(--muted);
}

@media (max-width: 680px) {
  *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .calendar-day-count {
    display: none;
  }
  .calendar-day-card {
    width: 100%;
    max-height: 92vh;
  }
  .calendar-day-heading {
    padding: 26px 20px 16px;
  }
  .calendar-day-list {
    padding-inline: 10px;
  }
  .calendar-day-item {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-inline: 9px;
  }
}

/* Planner v1.9 */
.field-help,
.form-grid label > small.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.deadline-picker {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfc;
}
.field-label {
  color: #496675;
  font-size: 14px;
  font-weight: 700;
}
.deadline-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.deadline-shortcuts button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbdbe3;
  border-radius: 9px;
  background: #fff;
  color: #496675;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.deadline-shortcuts button:hover,
.deadline-shortcuts button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.deadline-custom-field {
  max-width: 270px;
}
.deadline-picker > small {
  color: var(--muted);
  font-size: 12px;
}
.color-input {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.color-input input {
  width: 56px;
  min-height: 34px;
  padding: 2px;
  border: 0;
  cursor: pointer;
}
.color-input small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.project-people {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
}
.leader-chip {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--project-color, var(--blue)) 30%, white);
  border-radius: 9px;
  background: color-mix(
    in srgb,
    var(--project-color, var(--blue)) 10%,
    white
  );
  color: #496675;
  font-size: 13px;
}
.board-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.view-switcher form {
  display: flex;
}
.view-switcher button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.view-switcher button.active {
  background: var(--navy);
  color: #fff;
}
.task-signals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.task-signal {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #eef5f8;
  color: var(--navy);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.task-signal.labeled {
  width: auto;
  padding: 0 9px;
}
.task-signal.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.signal-divider {
  width: 1px;
  height: 18px;
  display: inline-block;
  background: #ccd9df;
}
.project-task-list {
  overflow: hidden;
}
.project-task-list-head,
.project-task-list-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(220px, 1.15fr) 115px 100px 130px;
  align-items: center;
  gap: 15px;
}
.project-task-list-head {
  min-height: 48px;
  padding: 0 20px;
  background: #f8fbfc;
  color: #8195a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.project-task-list-row {
  min-height: 96px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--task-color, var(--blue));
}
.project-task-main-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.project-task-main-link > span:last-child,
.project-task-list-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.project-task-main-link small,
.project-task-list-row small,
.task-leader-line,
.table-subline {
  color: var(--muted);
  font-size: 12px;
}
.task-people-cell {
  min-width: 0;
}
.task-people-summary {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.task-people-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
}
.task-people-label {
  padding-top: 4px;
  color: #8095a1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.task-leader-name {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-leader-name.empty {
  background: #eef3f5;
  color: #738995;
  font-weight: 750;
}
.task-assignee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.task-assignee-tag {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid #d7e5eb;
  border-radius: 7px;
  background: #f7fafb;
  color: #536f7d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-assignee-tag.empty {
  border-style: dashed;
  color: #8498a3;
  font-weight: 650;
}
.kanban-task-people {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #edf2f5;
}
.kanban-task-people .task-people-group {
  grid-template-columns: 58px minmax(0, 1fr);
}
.kanban-footer.due-only {
  justify-content: flex-end;
  margin-top: 10px;
  border-top: 0;
  padding-top: 0;
}
.project-task-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-task-card {
  position: relative;
  min-height: 230px;
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--task-color, var(--blue));
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.project-task-card h3 {
  margin-bottom: 8px;
}
.project-task-card > p {
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
}
.project-task-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.project-task-card-footer {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.kanban-card {
  border-top: 3px solid var(--task-color, var(--blue));
}
.kanban-card .task-quick-actions {
  position: relative;
  z-index: 3;
  margin-top: 11px;
}
.task-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.task-quick-actions form {
  display: flex;
}
.quick-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #cbdbe3;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.quick-action:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.quick-action.complete {
  width: 34px;
  padding: 0;
  border-color: #bfe4d7;
  color: var(--success);
}
.task-table-head,
.task-table-row {
  grid-template-columns:
    minmax(230px, 1.55fr) minmax(120px, 0.75fr) minmax(205px, 1.15fr)
    105px 95px 125px;
}
.task-table-row {
  min-height: 96px;
  border-left: 4px solid var(--task-color, var(--blue));
}
.task-table-row .task-cell {
  min-width: 0;
}
.task-table-row > span,
.task-table-row > .task-people-cell {
  min-width: 0;
}

.comment {
  scroll-margin-top: 90px;
}
.comment-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}
.comment-media a {
  min-height: 95px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4f7;
}
.comment-media img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  display: block;
  object-fit: cover;
}
.comment-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}
.comment-reactions form {
  display: flex;
}
.comment-reactions button,
.emoji-more summary {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.comment-reactions button.active {
  border-color: #9bdaf0;
  background: var(--blue-soft);
}
.comment-reactions button span {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}
.comment-content {
  min-width: 0;
}
.comment-heading {
  position: relative;
  gap: 12px;
}
.comment-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.comment-edited {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.comment-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.comment-tools > form {
  display: flex;
}
.comment-tools > form > button,
.comment-edit > summary {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #65808e;
  cursor: pointer;
  list-style: none;
}
.comment-tools > form > button:hover {
  border-color: #f0b8bc;
  background: #fff3f4;
  color: var(--danger);
}
.comment-edit {
  position: relative;
}
.comment-edit > summary::-webkit-details-marker {
  display: none;
}
.comment-edit[open] > summary {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.comment-edit > form {
  position: absolute;
  z-index: 20;
  top: 39px;
  right: 0;
  width: min(340px, calc(100vw - 54px));
  padding: 14px;
  border: 1px solid #d5e4eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 34, 52, 0.2);
}
.comment-edit label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}
.comment-edit textarea {
  min-height: 105px;
  resize: vertical;
  font-weight: 500;
}
.comment-edit .button {
  margin-top: 9px;
}
.comment-deleted {
  margin-top: 8px !important;
  padding: 11px 13px;
  border: 1px dashed #cfdae0;
  border-radius: 10px;
  background: #f7fafb;
  color: #788d98 !important;
  font-style: italic;
}
.comment-deleted strong {
  color: #5d7480;
}
.comment-documents {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}
.comment-document {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe7ec;
  border-radius: 11px;
  background: #f8fbfc;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.comment-document:hover {
  border-color: #9bdaf0;
  background: var(--blue-soft);
  transform: translateY(-1px);
}
.comment-document > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.comment-document strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-document small {
  color: var(--muted);
  font-size: 11px;
}
.emoji-more {
  position: relative;
}
.emoji-more summary::-webkit-details-marker {
  display: none;
}
.emoji-more > form {
  position: absolute;
  z-index: 8;
  top: 36px;
  left: 0;
  width: 155px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.emoji-more input {
  width: 55px;
  min-height: 35px;
}
.emoji-more button {
  border-radius: 8px;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 12px 14px 16px;
}
.image-gallery a {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: #eaf1f5;
}
.image-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.2s;
}
.image-gallery a:hover img {
  transform: scale(1.035);
}
.image-gallery a > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 14px 7px 6px;
  background: linear-gradient(transparent, rgba(4, 28, 44, 0.75));
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.document-section > strong {
  display: block;
  padding: 0 18px;
  font-size: 13px;
}
.media-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px;
  padding: 13px;
  border: 1px dashed #bcd1dc;
  border-radius: 13px;
  background: #f8fbfc;
}
.upload-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.upload-choice label {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.upload-choice label > span {
  color: var(--blue-dark);
  font-size: 20px;
}
.upload-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #496675;
  font-size: 12px;
  font-weight: 700;
}
.upload-caption textarea {
  min-height: 70px;
  resize: vertical;
}
.media-upload > small {
  color: var(--muted);
  font-size: 11px;
}
.media-upload > small.error {
  color: var(--danger);
}
.gallery-lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  padding: 35px;
  background: rgba(4, 20, 31, 0.94);
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox figure {
  width: 100%;
  height: min(82vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.gallery-lightbox img {
  max-width: 100%;
  max-height: calc(100% - 38px);
  object-fit: contain;
  border-radius: 12px;
}
.gallery-lightbox figcaption {
  color: #d9e5eb;
  text-align: center;
}
.gallery-close,
.gallery-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.gallery-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
}
.gallery-nav {
  width: 48px;
  height: 58px;
  border-radius: 12px;
  font-size: 35px;
}

.live-toast-stack {
  position: fixed;
  z-index: 220;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 34px));
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.live-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid #d4e3ea;
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(5, 34, 51, 0.2);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.24s ease;
  pointer-events: auto;
}
.live-toast.visible {
  opacity: 1;
  transform: none;
}
.live-toast.warning {
  border-left-color: var(--warning);
}
.live-toast.danger {
  border-left-color: var(--danger);
}
.live-toast.success {
  border-left-color: var(--success);
}
.live-toast > span {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 850;
}
.live-toast strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}
.live-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.notification-ring {
  animation: notification-ring 0.72s ease-in-out 4;
}
@keyframes notification-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(12deg) scale(1.08);
  }
  75% {
    transform: rotate(-12deg) scale(1.08);
  }
}

.calendar-icon-legend i {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-style: normal;
  font-weight: 850;
}
.calendar-day {
  overflow: hidden;
}
.day-events {
  gap: 4px;
}
.calendar-event.range-event {
  --event-color: var(--blue);
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-left: 4px solid var(--event-color);
  border-radius: 0;
  background: color-mix(in srgb, var(--event-color) 17%, white);
  color: color-mix(in srgb, var(--event-color) 58%, #102f43);
  padding: 4px 6px;
}
.calendar-event.range-event.range-start {
  margin-right: -10px;
  border-radius: 6px 0 0 6px;
}
.calendar-event.range-event.range-end {
  margin-left: -10px;
  border-left-color: transparent;
  border-radius: 0 6px 6px 0;
}
.calendar-event.range-event.range-start.range-end {
  margin-inline: 0;
  border-left-color: var(--event-color);
  border-radius: 6px;
}
.calendar-event.range-event.range-middle {
  margin-inline: -10px;
  border-left-color: transparent;
}
.calendar-event-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.calendar-event-icons i {
  font-style: normal;
  font-weight: 900;
}
.calendar-event-icons b {
  width: 1px;
  height: 13px;
  background: currentColor;
  opacity: 0.35;
}
.calendar-event-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-icon.step {
  font-size: 17px;
}

@media (max-width: 1180px) {
  .project-task-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-table-head,
  .task-table-row {
    grid-template-columns: minmax(230px, 1.35fr) minmax(120px, 0.75fr) minmax(
        195px,
        1fr
      ) 105px 95px;
  }
  .task-table-head > :last-child,
  .task-table-row > :last-child {
    grid-column: 2/-1;
  }
}

@media (max-width: 960px) {
  .project-task-list-head,
  .task-table-head {
    display: none;
  }
  .project-task-list-row,
  .task-table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
  }
  .project-task-main-link,
  .task-table-row .task-cell {
    grid-column: 1/-1;
  }
  .project-task-list-row > *:not(.project-task-main-link)::before,
  .task-table-row > span::before,
  .task-table-row > .task-people-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
  }
  .task-table-row > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .board-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .board-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .view-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .view-switcher form,
  .view-switcher button {
    width: 100%;
  }
  .project-task-cards {
    grid-template-columns: 1fr;
  }
  .project-task-list-row,
  .task-table-row {
    grid-template-columns: 1fr;
  }
  .project-task-list-row > *,
  .task-table-row > *,
  .task-table-row > :last-child {
    grid-column: 1 !important;
  }
  .task-people-group {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .task-people-label {
    padding-top: 5px;
    font-size: 10px;
  }
  .task-leader-name {
    padding: 5px 9px;
    font-size: 12px;
  }
  .task-assignee-tag {
    padding: 4px 8px;
    font-size: 11px;
  }
  .deadline-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .deadline-shortcuts button:last-child {
    grid-column: 1/-1;
  }
  .comment-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 18px 8px;
  }
  .gallery-nav {
    width: 38px;
    height: 50px;
  }
  .live-toast-stack {
    right: 17px;
    bottom: 82px;
  }
}

/* Planner v2.1 */
.project-summary > .project-summary-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
}
.project-summary > .project-summary-actions .button {
  width: 100%;
}

.project-task-card {
  min-height: 240px;
}
.project-task-card h3 {
  margin: 11px 0 7px;
  line-height: 1.3;
}
.project-task-card > p {
  margin: 0;
  line-height: 1.5;
}
.project-task-meta {
  margin-top: 12px;
  padding-top: 0;
  gap: 6px;
}
.project-task-card-footer {
  margin-top: auto;
}
.project-task-card-footer .due-badge {
  flex: 0 0 auto;
}
.task-quick-actions {
  position: relative;
  z-index: 4;
  justify-content: flex-start;
}

.comment > div > .comment-reactions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}
.comment-reactions > form,
.comment-reactions > .emoji-more {
  flex: 0 0 auto;
}
.comment-reactions button,
.emoji-more summary {
  min-width: 38px;
  min-height: 32px;
}
.emoji-more[open] summary {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.emoji-popover {
  position: absolute;
  z-index: 18;
  top: 39px;
  left: 0;
  width: 230px;
  padding: 12px;
  border: 1px solid #d5e4eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 34, 52, 0.2);
}
.comment > div > .comment-reactions .emoji-popover {
  display: block;
}
.emoji-popover > strong {
  display: block;
  margin-bottom: 8px;
  color: #496675;
  font-size: 12px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.emoji-grid form,
.emoji-grid button {
  width: 100%;
}
.emoji-grid button {
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border-radius: 9px;
  font-size: 18px;
}
.emoji-custom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.emoji-custom input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  font-size: 12px;
}
.emoji-custom button {
  min-width: auto;
  min-height: 38px;
  border-radius: 9px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}
.emoji-more > form {
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.image-gallery-item {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
}
.image-gallery-item > a {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 11px;
  background: #eaf1f5;
}
.image-delete-form {
  position: absolute;
  z-index: 5;
  top: 7px;
  right: 7px;
}
.image-delete-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: rgba(9, 34, 50, 0.78);
  color: #fff;
  box-shadow: 0 7px 18px rgba(3, 24, 37, 0.28);
  cursor: pointer;
  opacity: 0.92;
  transition: 0.18s ease;
}
.image-delete-button:hover {
  background: var(--danger);
  transform: translateY(-1px);
}
.image-delete-button .app-icon {
  width: 17px;
  height: 17px;
}
.document-delete-form {
  flex: 0 0 auto;
}
.document-delete-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e5ea;
  border-radius: 10px;
  background: #f5f9fb;
  color: #6f818b;
  cursor: pointer;
  transition: 0.18s ease;
}
.document-delete-button:hover {
  border-color: rgba(214, 65, 65, 0.3);
  background: rgba(214, 65, 65, 0.1);
  color: var(--danger);
  transform: translateY(-1px);
}
.document-delete-button .app-icon {
  width: 17px;
  height: 17px;
}

.task-entry-modal {
  width: min(790px, 100%);
}
.task-entry-form {
  gap: 13px;
}
.task-entry-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 17px;
  padding: 16px;
  border: 1px solid #dce8ee;
  border-radius: 15px;
  background: #fbfdfe;
}
.task-entry-section-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 3px;
}
.task-entry-section-title > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}
.task-entry-section-title > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.task-entry-section-title strong {
  color: var(--navy);
  font-size: 13px;
}
.task-entry-section-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.task-entry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.task-entry-fields .full {
  grid-column: 1/-1;
}
.schedule-fields {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}
.schedule-fields .deadline-picker {
  grid-column: auto;
  padding: 12px;
}
.start-date-field {
  align-self: stretch;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.date-control {
  position: relative;
  display: block;
}
.date-control::before {
  content: "▣";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--blue);
  transform: translateY(-50%);
  pointer-events: none;
}
.date-control input {
  padding-left: 36px;
}
.deadline-picker .field-label::before {
  content: "Rok · ";
  color: var(--blue);
}
.compact-entry-section {
  padding-block: 13px;
}

.task-finish-dialog {
  overflow: hidden;
}
.finish-dialog-content {
  position: relative;
  padding: 30px;
}
.finish-dialog-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 17px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 27px;
  font-weight: 900;
}
.finish-dialog-content h2 {
  margin: 6px 0;
  font-size: 27px;
}
.finish-dialog-content > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.finish-mode-options {
  display: grid;
  gap: 9px;
}
.finish-mode-options label {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1px 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}
.finish-mode-options label:has(input:checked) {
  border-color: #88d2e8;
  background: #f0faff;
  box-shadow: 0 0 0 3px rgba(0, 161, 213, 0.08);
}
.finish-mode-options input {
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.finish-option-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef5f8;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}
.finish-mode-options label:has(input:checked) .finish-option-mark {
  background: var(--blue);
  color: #fff;
}
.finish-mode-options label > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.finish-mode-options strong {
  color: var(--navy);
  font-size: 14px;
}
.finish-mode-options small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.finish-handoff-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #dce8ee;
  border-radius: 13px;
  background: #f8fbfc;
}
.finish-handoff-fields[hidden] {
  display: none;
}
.finish-handoff-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #496675;
  font-size: 13px;
  font-weight: 700;
}
.finish-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.finish-animation {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
}
.finish-animation[hidden] {
  display: none;
}
.finish-animation > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 39px;
  font-weight: 900;
  animation: finish-pop 0.55s cubic-bezier(0.2, 1.5, 0.45, 1);
}
.finish-animation strong {
  font-size: 18px;
  animation: finish-fade 0.45s ease both 0.12s;
}
@keyframes finish-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes finish-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .task-entry-section {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .task-entry-section-title {
    align-items: center;
  }
  .task-entry-section-title small {
    display: none;
  }
  .task-entry-fields,
  .schedule-fields {
    grid-template-columns: 1fr;
  }
  .project-summary > .project-summary-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .project-summary > .project-summary-actions .button {
    width: 100%;
  }
  .emoji-popover {
    left: auto;
    right: 0;
  }
}

.project-export-button.is-exporting {
  cursor: wait;
  opacity: 0.78;
}

.project-export-frame {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -20000px;
  width: 1200px;
  height: 900px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.project-export-toast {
  position: fixed;
  z-index: 260;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 34px));
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid #8fd9ed;
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(5, 34, 51, 0.26);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.24s ease;
}

.project-export-toast[hidden] {
  display: none;
}

.project-export-toast.visible {
  opacity: 1;
  transform: none;
}

.project-export-toast.success {
  border-color: #7ed8bd;
  border-left-color: var(--success);
}

.project-export-toast.error {
  border-color: #f0aeb8;
  border-left-color: var(--danger);
}

.project-export-toast-marker {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 900;
}

.project-export-toast.working .project-export-toast-marker {
  border: 3px solid rgba(0, 161, 213, 0.22);
  border-top-color: var(--blue);
  border-radius: 50%;
  background: transparent;
  animation: project-export-spin 0.8s linear infinite;
}

.project-export-toast.success .project-export-toast-marker {
  background: #e8f8f2;
  color: var(--success);
}

.project-export-toast.error .project-export-toast-marker {
  background: #fff0f2;
  color: var(--danger);
}

.project-export-toast > div {
  min-width: 0;
}

.project-export-toast strong,
.project-export-toast small {
  display: block;
}

.project-export-toast strong {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 14px;
}

.project-export-toast small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes project-export-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .project-export-toast {
    right: 17px;
    bottom: 17px;
  }
}

/* Planner v2.8: stable page width, clearer people and admin user overview */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.app-shell,
.page-shell,
.topbar,
.page-content,
.table-panel,
.responsive-table {
  min-width: 0;
  max-width: 100%;
}
.page-shell {
  width: calc(100% - var(--sidebar));
}
.topbar-actions,
.filter-bar > * {
  min-width: 0;
}
.responsive-table {
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.avatar.tiny {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-width: 1px;
  border-radius: 7px;
  font-size: 8px;
  box-shadow: 0 2px 6px rgba(15, 56, 80, 0.12);
}
.task-people-summary {
  display: grid;
  gap: 8px;
}
.task-people-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.task-people-label {
  width: 72px;
  flex: 0 0 72px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0 0;
  color: #718b99;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}
.task-people-label i {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: #e9f3f7;
  color: var(--blue-dark);
  font-size: 8px;
  font-style: normal;
}
.task-person-list,
.assignee-list {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.person-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 2px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #365768;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
}
.person-chip.leader {
  color: #0d5f8d;
}
.person-chip.leader .avatar {
  box-shadow:
    0 0 0 2px #d9f0f7,
    0 2px 6px rgba(15, 56, 80, 0.12);
}
.person-chip.empty {
  min-height: 27px;
  padding: 4px 9px;
  border: 1px dashed #ccdce3;
  border-style: dashed;
  background: #f8fafb;
  color: #82949e;
  font-weight: 650;
}
.person-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.person-chip {
  appearance: none;
  cursor: pointer;
}
.person-chip.interactive {
  position: relative;
  z-index: 5;
  transition:
    background 0.17s ease,
    color 0.17s ease;
}
.person-chip.interactive:hover,
.person-chip.interactive:focus-visible {
  background: #edf8fb;
  color: var(--blue-dark);
  outline: none;
}
.person-chip-open {
  width: 12px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.55;
}
.task-person-list .person-chip + .person-chip,
.assignee-list .person-chip + .person-chip {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid #dbe6eb;
  border-radius: 0 8px 8px 0;
}
.meta-list .assignee-list {
  padding: 8px 0;
}

.user-summary-card {
  width: min(680px, 100%);
  padding: 0;
  overflow: hidden;
}
.user-summary-loading {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: var(--muted);
}
.user-summary-loading[hidden] {
  display: none;
}
.user-summary-loading > span {
  width: 36px;
  height: 36px;
  border: 3px solid #d7edf4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: project-export-spin 0.75s linear infinite;
}
.user-summary-profile {
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 28px 72px 24px 27px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% -20%, rgba(0, 161, 213, 0.14), transparent 38%),
    #fff;
}
.user-summary-profile > div {
  min-width: 0;
}
.user-summary-profile .eyebrow {
  margin-bottom: 3px;
}
.user-summary-profile h2 {
  margin: 0;
  font-size: 25px;
}
.user-summary-profile p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.user-summary-presence {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 99px;
  background: #f0f4f6;
  color: #6f828c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.user-summary-presence i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aabb3;
}
.user-summary-presence.online-today {
  background: #e8f8f2;
  color: #14855f;
}
.user-summary-presence.online-today i {
  background: #21ad7d;
  box-shadow: 0 0 0 3px rgba(33, 173, 125, 0.13);
}
.user-summary-login {
  margin: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce7ec;
  border-radius: 14px;
  background: #f8fafb;
}
.user-summary-login.has-login {
  border-color: #aee1d2;
  background: linear-gradient(135deg, #ebfaf5, #f8fcfb);
}
.user-summary-login-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8eef1;
  color: #78909c;
  font-size: 18px;
  font-weight: 900;
}
.user-summary-login.has-login .user-summary-login-icon {
  background: #20a978;
  color: #fff;
}
.user-summary-login > div {
  min-width: 0;
  display: grid;
}
.user-summary-login small {
  color: #718994;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.user-summary-login strong {
  margin: 1px 0;
  color: var(--navy);
  font-size: 20px;
}
.user-summary-login > div > span {
  color: var(--muted);
  font-size: 11px;
}
.user-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 17px;
}
.user-summary-stats > div {
  min-width: 0;
  min-height: 80px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.user-summary-stats strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}
.user-summary-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}
.user-summary-stats .warning {
  border-color: #f3d6b3;
  background: #fffaf3;
}
.user-summary-stats .warning strong {
  color: var(--warning);
}
.user-summary-details {
  margin: 0 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.user-summary-details > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}
.user-summary-details > div:last-child {
  border-right: 0;
}
.user-summary-details small,
.user-summary-details strong {
  display: block;
}
.user-summary-details small {
  margin-bottom: 4px;
  color: #80939d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.user-summary-details strong {
  overflow: hidden;
  color: #315264;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-summary-recent {
  padding: 20px 24px 25px;
}
.user-summary-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.user-summary-section-title strong {
  color: var(--navy);
  font-size: 14px;
}
.user-summary-section-title span {
  color: var(--muted);
  font-size: 10px;
}
.user-summary-activity-list {
  display: grid;
}
.user-summary-activity-list > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #edf2f4;
}
.user-summary-activity-list i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 2px solid #b8e1ed;
  border-radius: 50%;
  background: #fff;
}
.user-summary-activity-list span,
.user-summary-activity-list strong,
.user-summary-activity-list small {
  min-width: 0;
  display: block;
}
.user-summary-activity-list strong {
  overflow: hidden;
  color: #3b5969;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-summary-activity-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.user-summary-empty {
  margin: 0;
  padding: 15px;
  border-radius: 11px;
  background: #f7fafb;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.user-summary-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 30px;
  color: var(--navy);
  text-align: center;
}
.user-summary-error span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 960px) {
  .page-shell {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .task-people-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .task-people-label {
    width: auto;
    padding-top: 0;
  }
  .person-chip {
    font-size: 12px;
  }
  .user-summary-card {
    max-height: 92vh;
    overflow-y: auto;
  }
  .user-summary-profile {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 23px 62px 20px 19px;
  }
  .user-summary-presence {
    width: fit-content;
    margin: 0;
  }
  .user-summary-login {
    margin: 15px 16px 12px;
  }
  .user-summary-stats {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 14px;
  }
  .user-summary-details {
    margin: 0 16px;
    grid-template-columns: 1fr;
  }
  .user-summary-details > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .user-summary-details > div:last-child {
    border-bottom: 0;
  }
  .user-summary-recent {
    padding: 18px 16px 22px;
  }
}

/* Planner v2.9: redesigned task views inside a project */
.board-heading {
  align-items: flex-end;
  margin: 30px 0 16px;
}
.board-heading h2 {
  margin: 2px 0 0;
  font-size: 27px;
}
.board-heading .eyebrow {
  margin-bottom: 2px;
}
.board-heading-actions {
  gap: 12px;
}
.view-switcher {
  gap: 3px;
  padding: 5px;
  border-color: #d9e5eb;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(16, 56, 79, 0.035);
}
.view-switcher button {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}
.view-switcher button:hover {
  background: #f1f6f8;
  color: var(--navy);
}
.view-switcher button.active,
.view-switcher button.active:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 12px rgba(11, 51, 77, 0.16);
}

.project-task-team {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.project-task-team-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.project-task-team-label {
  color: #7b909c;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}
.project-task-team-members {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.project-task-team .person-chip {
  min-height: 27px;
  gap: 6px;
  padding: 2px 6px 2px 2px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}
.project-task-team .avatar.tiny {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border-radius: 7px;
}
.project-task-team .person-chip + .person-chip {
  margin-left: 0;
  padding-left: 7px;
  border-left: 1px solid #dbe6eb;
  border-radius: 0 8px 8px 0;
}
.project-task-team .person-chip.empty {
  min-height: 25px;
  padding: 3px 8px;
  border: 1px dashed #cedde4;
  background: #fff;
}

.project-task-list {
  overflow: hidden;
  border-color: #d9e5eb;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 62, 88, 0.055);
}
.project-task-list-head,
.project-task-list-row {
  grid-template-columns:
    minmax(290px, 1.85fr) minmax(240px, 1.2fr) minmax(105px, 0.56fr)
    minmax(100px, 0.54fr) minmax(104px, 0.52fr);
  gap: 18px;
}
.project-task-list-head {
  min-height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid #e3ebef;
  background: #f7fafb;
  color: #7b919d;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.project-task-list-row {
  position: relative;
  min-height: 106px;
  padding: 14px 22px;
  border-top: 1px solid #e5edf1;
  border-left: 0;
  background: #fff;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.project-task-list-row:first-of-type {
  border-top: 0;
}
.project-task-list-row::before {
  content: "";
  position: absolute;
  inset: 15px auto 15px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--task-color, var(--blue));
}
.project-task-list-row:hover {
  z-index: 1;
  background: #fbfdfe;
  box-shadow: inset 0 0 0 1px rgba(0, 161, 213, 0.08);
}
.project-task-main-link {
  gap: 12px;
}
.project-task-list-marker {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--task-color, var(--blue)) 10%, white);
  color: var(--task-color, var(--blue-dark));
  font-size: 14px;
  font-weight: 900;
}
.project-task-main-link > span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.project-task-main-link strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-task-main-link small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #7a8f9b;
  font-size: 10px;
  font-weight: 600;
}
.project-task-main-link small i {
  width: 3px;
  height: 3px;
  display: inline-block;
  border-radius: 50%;
  background: #aabac2;
}
.project-task-main-link small em {
  color: var(--danger);
  font-style: normal;
  font-weight: 750;
}
.project-task-list-progress {
  width: min(150px, 100%);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #eaf0f3;
}
.project-task-list-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #64cae6);
}
.project-task-list-row > span {
  min-width: 0;
}
.project-task-list-row .status-badge,
.project-task-list-row .due-badge {
  justify-content: center;
  padding: 6px 9px;
  font-size: 10px;
}
.project-task-list-row .task-quick-actions {
  flex-wrap: wrap;
}
.project-task-list-row .quick-action {
  min-height: 31px;
  font-size: 10px;
}
.project-task-list-row .quick-action.review {
  padding: 0 8px;
}

.project-task-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.project-task-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-top: 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 62, 88, 0.055);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.project-task-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--task-color, var(--blue));
}
.project-task-card:hover {
  transform: translateY(-3px);
  border-color: #c8dce5;
  box-shadow: 0 15px 34px rgba(17, 62, 88, 0.1);
}
.project-task-card-top {
  position: relative;
  z-index: 2;
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-task-card-top .priority-pill {
  padding: 5px 8px;
  font-size: 9px;
}
.project-task-card-top .status-badge {
  margin-left: auto;
  padding: 6px 9px;
  font-size: 9px;
}
.project-task-card-flag,
.kanban-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 99px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.project-task-card h3 {
  margin: 17px 0 7px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}
.project-task-card > p {
  min-height: 42px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #728797;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.task-checklist-progress {
  position: relative;
  z-index: 2;
  margin-top: 15px;
}
.task-checklist-progress > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.task-checklist-progress small {
  color: #7b909c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.task-checklist-progress strong {
  color: #456574;
  font-size: 10px;
}
.task-checklist-progress .mini-progress {
  height: 4px;
  margin: 0;
}
.task-checklist-progress .mini-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #63c9e5);
}
.project-task-meta {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid #e5edf1;
  border-radius: 12px;
  background: #f8fafb;
}
.project-task-card-footer {
  position: relative;
  z-index: 3;
  inset: auto;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e5edf1;
}
.project-task-card-footer .due-badge {
  padding: 6px 9px;
  font-size: 10px;
}
.project-task-card-footer .quick-action {
  min-height: 31px;
  font-size: 10px;
}

.kanban-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 17px;
  overflow: visible;
  padding-bottom: 0;
}
.kanban-column {
  min-width: 0;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border-color: #dce7ec;
  border-radius: 16px;
  background: #f1f6f8;
  box-shadow: 0 6px 18px rgba(17, 62, 88, 0.045);
}
.kanban-title {
  min-height: 64px;
  padding: 13px 15px;
  border-bottom: 1px solid #dfe9ee;
  background: #fff;
}
.kanban-title > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.kanban-title strong {
  color: var(--navy);
  font-size: 13px;
}
.kanban-title small {
  color: #82949e;
  font-size: 9px;
  font-weight: 650;
}
.kanban-title b {
  width: 27px;
  height: 27px;
  border: 1px solid #e0e9ed;
  background: #f7fafb;
  color: #58717e;
  font-size: 10px;
}
.kanban-cards {
  gap: 11px;
  padding: 12px;
}
.kanban-card {
  padding: 15px;
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-top: 3px solid var(--task-color, var(--blue));
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(17, 62, 88, 0.045);
}
.kanban-card.flagged {
  border-left: 1px solid #dce7ec;
}
.kanban-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.kanban-card-top .priority-pill {
  padding: 4px 7px;
  font-size: 8px;
}
.kanban-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
}
.kanban-card p {
  min-height: auto;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #758a96;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.kanban-task-people {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  padding: 11px 0 0;
  border-top: 1px solid #e9eff2;
}
.project-task-team.compact {
  gap: 5px;
}
.project-task-team.compact .project-task-team-group {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 6px;
}
.project-task-team.compact .project-task-team-label {
  font-size: 8px;
}
.project-task-team.compact .person-chip {
  min-height: 24px;
  padding-right: 4px;
  font-size: 9px;
}
.project-task-team.compact .avatar.tiny {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  font-size: 7px;
}
.project-task-team.compact .person-chip.empty {
  min-height: 23px;
  padding: 3px 7px;
}
.kanban-footer {
  position: relative;
  z-index: 3;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
}
.kanban-footer .due-badge {
  padding: 5px 8px;
  font-size: 9px;
}
.kanban-footer .quick-action {
  min-height: 29px;
  padding: 0 7px;
  font-size: 9px;
}
.kanban-footer .quick-action.complete {
  width: 31px;
}
.empty-column {
  min-height: 64px;
  border-color: #bfd2dc;
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1220px) {
  .project-task-cards,
  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-task-list-head,
  .project-task-list-row {
    grid-template-columns:
      minmax(220px, 1.45fr) minmax(180px, 1.05fr) minmax(92px, 0.58fr)
      minmax(90px, 0.54fr) minmax(90px, 0.5fr);
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 1100px) {
  .project-task-list-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 16px;
    padding: 18px;
  }
  .project-task-main-link,
  .project-task-list-row > .task-people-cell {
    grid-column: 1/-1;
  }
  .project-task-list-row > :last-child {
    grid-column: auto;
  }
  .project-task-list-row > *:not(.project-task-main-link)::before {
    margin-bottom: 6px;
    color: #82949e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .project-task-team.list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #f7fafb;
  }
}

@media (max-width: 720px) {
  .board-heading h2 {
    font-size: 24px;
  }
  .board-heading-actions {
    width: 100%;
  }
  .view-switcher button {
    min-width: 0;
    padding: 0 8px;
  }
  .project-task-cards,
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .project-task-card {
    min-height: 330px;
  }
  .project-task-list-row {
    grid-template-columns: 1fr 1fr;
  }
  .project-task-main-link,
  .project-task-list-row > .task-people-cell,
  .project-task-list-row > :last-child {
    grid-column: 1/-1 !important;
  }
  .project-task-team.list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .project-task-list-row {
    grid-template-columns: 1fr;
  }
  .project-task-list-row > * {
    grid-column: 1 !important;
  }
  .project-task-main-link {
    align-items: flex-start;
  }
  .project-task-main-link strong {
    white-space: normal;
  }
  .project-task-card {
    padding: 18px;
  }
  .project-task-card-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .project-task-card-top .status-badge {
    margin-left: 0;
  }
  .project-task-team-group,
  .project-task-team.compact .project-task-team-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
