:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #eef6fc;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --line: #e7edf3;
  --primary: #2c3e50;
  --primary-2: #34495e;
  --green: #66bb6a;
  --amber: #f39c12;
  --orange: #ffa726;
  --red: #e74c3c;
  --blue: #3498db;
  --sky: #42a5f5;
  --accent: #2ecc71;
  --shadow: 0 8px 20px rgba(44, 62, 80, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(79,70,229,.78), rgba(14,165,233,.48)),
    url("../../assets/branding/login_bg.jpg") center/cover;
}
.login-box {
  width: min(440px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.brand h1 { margin: 0; font-size: 24px; line-height: 1.1; }
.brand p { margin: 3px 0 0; color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 326px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 24px;
  background: #17152a;
  border-right: 1px solid rgba(255,255,255,.08);
  overflow: auto;
}
.sidebar .brand { margin-bottom: 34px; }
.sidebar-brand {
  gap: 18px;
  align-items: center;
}
.sidebar-brand img {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.sidebar-brand h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.sidebar-brand p {
  margin-top: 7px;
  color: #aeb3e3;
  font-size: 18px;
  font-weight: 800;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  margin-bottom: 36px;
  padding: 20px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
}
.sidebar-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #625cf3;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.sidebar-profile strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}
.sidebar-profile small {
  display: block;
  margin-top: 9px;
  color: #aeb3e3;
  font-size: 14px;
  font-weight: 900;
}
.nav { display: grid; gap: 12px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 20px;
  color: rgba(238,240,255,.72);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.nav a.active, .nav a:hover {
  background: #25224a;
  color: #fff;
  font-weight: 900;
}
.nav-icon,
.logout-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: currentColor;
  opacity: .9;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.nav-icon-dashboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z'/%3E%3C/svg%3E"); }
.nav-icon-projects { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v3h5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5V3zm2 3h2V5h-2v1z'/%3E%3C/svg%3E"); }
.nav-icon-tasks { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8v3h3a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3V2zm2 3h4V4h-4v1zm-2 5h8v2H8v-2zm0 4h8v2H8v-2z'/%3E%3C/svg%3E"); }
.nav-icon-reminders { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.88 3.39 6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.28 1.53 4.59 3.86L22 5.72zM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 4v4.2l3 1.8-1 1.64-4-2.39V8h2z'/%3E%3C/svg%3E"); }
.nav-icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h4v17H3V5h4V2zm12 8H5v10h14V10z'/%3E%3C/svg%3E"); }
.nav-icon-approvals { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 13.7-4-4 1.4-1.4 2.6 2.58 5-5 1.4 1.42-6.4 6.4z'/%3E%3C/svg%3E"); }
.nav-icon-messages { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-5 4V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.nav-icon-users,
.nav-icon-profile { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.42 0-8 2.02-8 4.5V21h16v-2.5c0-2.48-3.58-4.5-8-4.5z'/%3E%3C/svg%3E"); }
.sidebar-logout {
  margin-top: auto;
  padding-top: 32px;
}
.sidebar-logout button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid rgba(255, 91, 91, .35);
  border-radius: 20px;
  background: rgba(255, 91, 91, .1);
  color: #ff6262;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.logout-icon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5v-2H5V5h5V3zm7.59 5.59L16.17 10H9v2h7.17l-1.59 1.59L16 15l4-4-4-4-1.41 1.59z'/%3E%3C/svg%3E");
}
.main { min-width: 0; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(245,246,255,.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.topbar-spacer { min-width: 1px; }
.content { padding: 24px; max-width: 1440px; margin: 0 auto; }
.page-title h2 { margin: 0; font-size: 25px; }
.page-title p { margin: 3px 0 0; color: var(--muted); }
.user-pill { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30,27,75,.04);
  padding: 18px;
}
.card h3 { margin: 0 0 12px; font-size: 17px; }
.stat .value { font-size: 32px; font-weight: 900; line-height: 1; }
.stat .label { color: var(--muted); font-weight: 700; margin-top: 6px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.secondary { background: var(--surface-2); color: var(--primary); }
.btn.danger { background: var(--red); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn.small { padding: 7px 10px; font-size: 13px; }
.input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: #344054; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 820px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  background: var(--surface-2);
  color: var(--primary);
  white-space: nowrap;
}
.badge.green { background: #dcfce7; color: var(--green); }
.badge.amber { background: #fef3c7; color: var(--amber); }
.badge.red { background: #fee2e2; color: var(--red); }
.badge.blue { background: #dbeafe; color: var(--blue); }
.muted { color: var(--muted); }
.notice, .error, .success {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.error { border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.notice { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.modal {
  border: 0;
  border-radius: 8px;
  width: min(760px, calc(100% - 24px));
  padding: 0;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(15, 23, 42, .45); }
.modal-header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px; }
.close { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kanban { grid-template-columns: repeat(3, minmax(240px, 1fr)); align-items: start; }
.task-card { display: grid; gap: 10px; margin-bottom: 10px; }
.progress {
  width: 100%;
  height: 9px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--primary); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.day { min-height: 118px; background: #fff; padding: 8px; }
.day strong { display: block; margin-bottom: 6px; }
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.conversation { display: block; padding: 12px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.conversation.active { border-color: var(--primary); background: var(--surface-2); }
.messages { min-height: 420px; max-height: 58vh; overflow: auto; display: grid; align-content: start; gap: 10px; }
.message { max-width: 76%; padding: 10px 12px; border-radius: 8px; background: #f1f5f9; }
.message.mine { justify-self: end; background: #e0e7ff; }
.mobile-menu { display: none; }
.hide-mobile { display: inline-flex; }

.dashboard-page { display: grid; gap: 24px; }
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  padding: 28px;
}
.dashboard-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dashboard-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--text);
}
.dashboard-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 640px;
}
.dashboard-stats { grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 24px; }
.dash-stat-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  padding: 22px;
}
.dash-stat-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(44,62,80,.16);
}
.dash-stat-primary .dash-stat-icon { background: var(--primary); }
.dash-stat-blue .dash-stat-icon { background: #448aff; }
.dash-stat-indigo .dash-stat-icon { background: #3f51b5; }
.dash-stat-sky .dash-stat-icon { background: var(--blue); }
.dash-stat-green .dash-stat-icon { background: var(--green); }
.dash-stat-red .dash-stat-icon { background: var(--red); }
.dash-stat-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}
.dash-stat-title {
  margin-top: 6px;
  color: var(--text);
  font-weight: 800;
}
.dash-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f6f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.dashboard-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dash-panel {
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  padding: 28px;
}
.dash-panel h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
.pie-wrap {
  min-height: 240px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}
.css-pie {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 40%, transparent 41%),
    conic-gradient(var(--orange) 0 var(--pending), var(--sky) var(--pending) var(--progress), var(--green) var(--progress) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.css-pie span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(44,62,80,.08);
}
.dash-legend { display: grid; gap: 14px; }
.dash-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}
.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}
.legend-dot.pending { background: var(--orange); }
.legend-dot.progress-dot { background: var(--sky); }
.legend-dot.completed { background: var(--green); }
.bar-chart {
  height: 240px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: end;
  padding: 8px 6px 0;
}
.bar-item {
  min-width: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.bar-track {
  width: 100%;
  max-width: 56px;
  height: 190px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 10px;
  background: #f5f7f9;
}
.bar {
  position: relative;
  width: 28px;
  min-height: 12px;
  border-radius: 6px 6px 0 0;
  transition: height .2s ease;
}
.bar b {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  font-size: 12px;
}
.bar.urgent { background: var(--red); }
.bar.high { background: var(--amber); }
.bar.medium { background: var(--blue); }
.bar.low { background: var(--accent); }
.bar-item small {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading h3 { margin: 0; }
.section-heading a {
  color: var(--blue);
  font-weight: 800;
}
.activity-list { display: grid; gap: 10px; }
.activity-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.activity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef6fc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.activity-row strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.tasks-workspace { display: grid; gap: 18px; }
.tasks-summary {
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 14px;
}
.task-summary-card {
  min-height: 86px;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 5px solid var(--primary);
}
.task-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.task-summary-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}
.task-summary-card.pending { border-left-color: var(--orange); }
.task-summary-card.active { border-left-color: var(--sky); }
.task-summary-card.complete { border-left-color: var(--green); }
.task-summary-card.overdue { border-left-color: var(--red); }
.tasks-filter-panel {
  border-radius: 16px;
  padding: 16px;
}
.tasks-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 160px 150px auto;
  gap: 12px;
  align-items: end;
}
.tasks-filters label {
  font-size: 12px;
  color: var(--muted);
}
.tasks-filters label span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tasks-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.task-card-list {
  display: grid;
  gap: 12px;
}
.flutter-task-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  background: #fff;
  border: 1.2px solid rgba(127, 140, 141, .45);
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(44,62,80,.06);
  padding: 16px;
  color: var(--text);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.flutter-task-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44,62,80,.1);
}
.flutter-task-card.accent-green { border-color: rgba(46, 204, 113, .65); }
.flutter-task-card.accent-blue { border-color: rgba(52, 152, 219, .65); }
.flutter-task-card.accent-amber { border-color: rgba(243, 156, 18, .68); }
.flutter-task-card.accent-red { border-color: rgba(231, 76, 60, .68); }
.flutter-task-card.is-submitted {
  border-color: rgba(255, 167, 38, .9);
  box-shadow: 0 8px 20px rgba(255, 167, 38, .12);
}
.task-card-main { min-width: 0; }
.task-title-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.task-assignee-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sky);
}
.task-title-wrap { min-width: 0; display: grid; gap: 4px; }
.task-title-wrap strong {
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.2;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-project,
.task-creator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-description {
  margin: 12px 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 18px;
}
.task-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.task-chip.green { color: var(--green); background: rgba(102,187,106,.12); }
.task-chip.blue { color: var(--sky); background: rgba(66,165,245,.12); }
.task-chip.amber { color: var(--amber); background: rgba(243,156,18,.12); }
.task-chip.red { color: var(--red); background: rgba(231,76,60,.12); }
.task-chip.gray { color: #7f8c8d; background: rgba(127,140,141,.1); }
.task-chip.submitted {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fdba74;
  text-transform: uppercase;
}
.task-chip.priority {
  align-self: end;
  font-size: 11px;
}
.task-card-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
  text-align: right;
}
.task-meta {
  display: grid;
  gap: 2px;
}
.task-meta span,
.task-card-side small {
  color: var(--muted);
  font-size: 12px;
}
.task-meta strong {
  color: var(--text);
  font-size: 13px;
}
.task-date-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.task-date-row b {
  padding: 2px 7px;
  border-radius: 8px;
  background: #f3f6f9;
  color: var(--muted);
  font-size: 10px;
}
.task-date-row.overdue span { color: var(--red); }
.task-date-row.overdue b { background: var(--red); color: #fff; }
.task-date-row.today b { background: var(--amber); color: #fff; }
.task-submitted-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-top: -2px;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.tasks-workspace {
  position: relative;
  display: grid;
  gap: 20px;
  padding-bottom: 96px;
}
.task-tabs {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 4px 0 8px;
  border-bottom: 1px solid transparent;
}
.task-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #7f8c8d;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.task-tabs a.active {
  color: #2c3e50;
}
.task-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #2c3e50;
}
.tab-badge {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.tab-badge.red { background: #ef4444; }
.tab-badge.blue { background: #3498db; }
.tab-badge.maroon { background: #8b0000; }
.tab-badge.orange { background: #f39c12; }
.tab-badge.pink { background: #e91e63; }
.tab-badge.purple { background: #c8a2c8; }
.tab-badge.gray { background: #9e9e9e; }
.tasks-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tasks-overview-head h3 {
  margin: 0;
  color: #151922;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border-radius: 14px;
  background: #e9ecef;
}
.view-toggle button {
  min-width: 126px;
  min-height: 42px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #1f2933;
  font-weight: 900;
  cursor: pointer;
}
.view-toggle button.active {
  background: #2c3e50;
  color: #fff;
}
.view-icon,
.summary-icon,
.filter-icon,
.reset-icon,
.task-mini-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.view-icon.list { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v4H4V5zm0 5h16v4H4v-4zm0 5h16v4H4v-4z'/%3E%3C/svg%3E"); }
.view-icon.calendar,
.task-mini-icon.due { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h4v17H3V5h4V2zm12 8H5v10h14V10z'/%3E%3C/svg%3E"); }
.tasks-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}
.task-summary-card {
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid #e1e5ea;
  border-left: 1px solid #e1e5ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44,62,80,.04);
}
.task-summary-card .summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2c3e50;
  background: #edf0f2;
  -webkit-mask: none;
  mask: none;
}
.summary-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.summary-icon.clipboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v2h4v18H5V4h4V2zm1 4v2h4V6h-4zm-1 5h6v2H9v-2zm0 4h6v2H9v-2z'/%3E%3C/svg%3E"); }
.summary-icon.clock,
.task-mini-icon.start { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5l4 2-.9 1.8-5.1-2.8V7h2z'/%3E%3C/svg%3E"); }
.summary-icon.progress-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10h-3a7 7 0 1 1-7-7V2zm1 0v11h9A10 10 0 0 0 13 2z'/%3E%3C/svg%3E"); }
.summary-icon.check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 13.7-4-4 1.4-1.4 2.6 2.58 5-5 1.4 1.42-6.4 6.4z'/%3E%3C/svg%3E"); }
.task-summary-card.pending { border-color: #ffe6bd; }
.task-summary-card.pending .summary-icon { color: #f39c12; background: #fff4df; }
.task-summary-card.active { border-color: #d9efff; }
.task-summary-card.active .summary-icon { color: #3498db; background: #eef7ff; }
.task-summary-card.complete { border-color: #dff3e4; }
.task-summary-card.complete .summary-icon { color: #66bb6a; background: #edf9ef; }
.task-summary-card strong {
  color: #151922;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}
.task-summary-card small {
  color: #7f8c8d;
  font-size: 15px;
  font-weight: 800;
}
.tasks-filter-panel {
  padding: 22px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44,62,80,.06);
}
.tasks-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.filter-head div,
.filter-head a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.filter-head strong {
  color: #151922;
  font-size: 17px;
  font-weight: 900;
}
.filter-head a {
  color: #2c3e50;
  font-weight: 900;
}
.filter-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  color: #2c3e50;
  background: #eef0f2;
  -webkit-mask: none;
  mask: none;
}
.filter-icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.filter-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h10v2H4V7zm12-2h2v2h2v2h-2v2h-2V9h-2V7h2V5zM4 15h4v2H4v-2zm6-2h2v2h8v2h-8v2h-2v-6z'/%3E%3C/svg%3E"); }
.reset-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V2L7 7l5 5V9a5 5 0 1 1-4.58 7H5.26A7 7 0 1 0 12 5z'/%3E%3C/svg%3E"); }
.tasks-search input,
.tasks-filters select {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #f3f4f5;
  color: #222;
  font-size: 16px;
}
.tasks-search {
  position: relative;
}
.tasks-search input {
  min-height: 54px;
  padding: 0 18px 0 50px;
}
.tasks-search::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: #b8bdc2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.32 12.9l4.39 4.39-1.42 1.42-4.39-4.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.32 12.9l4.39 4.39-1.42 1.42-4.39-4.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}
.filter-grid label {
  gap: 0;
}
.filter-grid label span {
  margin-left: 28px;
  margin-bottom: -2px;
  color: #424b55;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  z-index: 1;
}
.tasks-filters select {
  min-height: 54px;
  padding: 16px 14px 8px 46px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f656b 50%),
    linear-gradient(135deg, #5f656b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 25px,
    calc(100% - 12px) 25px;
  background-size: 7px 7px;
  background-repeat: no-repeat;
}
.task-card-list {
  display: grid;
  gap: 16px;
}
.flutter-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 20px;
  min-height: 250px;
  padding: 22px;
  border: 1.5px solid #c4aaa2;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.flutter-task-card:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(44,62,80,.06);
}
.task-card-title {
  display: inline-block;
  color: #151922;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.task-description {
  margin: 96px 0 18px;
  color: #7f8c8d;
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}
.task-divider {
  height: 2px;
  background: #d4d9de;
}
.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, .7fr) minmax(160px, .8fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
  color: #7f8c8d;
}
.task-detail-grid > div {
  min-width: 0;
}
.task-detail-grid strong {
  display: inline-block;
  color: #7f8c8d;
  font-size: 14px;
  font-weight: 900;
  vertical-align: middle;
}
.task-detail-grid small {
  display: block;
  margin-top: 6px;
  color: #7f8c8d;
  font-size: 14px;
  font-weight: 700;
}
.task-person-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #a8796d;
}
.task-mini-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  color: #7f8c8d;
  vertical-align: -2px;
}
.task-card-metrics {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.task-card-metrics span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  background: #edf1f5;
  color: #2c3e50;
  font-size: 13px;
  font-weight: 900;
}
.task-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.task-chip {
  min-height: 30px;
  padding: 5px 13px;
  border-radius: 11px;
  background: #f4f7fa;
  font-size: 13px;
}
.task-chip.green { color: #2eaf55; background: #edf9ef; border-color: #66bb6a; }
.task-chip.blue { color: #3498db; background: #eef7ff; border-color: #3498db; }
.task-chip.amber { color: #f39c12; background: #fff8ec; border-color: #f39c12; }
.task-chip.red { color: #e74c3c; background: #fff1f0; border-color: #e74c3c; }
.task-chip.gray { color: #2c3e50; background: #edf1f5; border-color: #2c3e50; }
.task-card-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.task-card-footer a {
  color: #b66ee0;
  font-size: 16px;
  font-weight: 800;
}
.task-fab {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 12;
  min-width: 148px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: #2c3e50;
  color: #fff;
  box-shadow: 0 8px 22px rgba(44,62,80,.24);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.task-fab span {
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}
.tasks-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border-radius: 20px;
  background: #fff;
  color: #7f8c8d;
  box-shadow: 0 10px 28px rgba(44,62,80,.06);
}
.tasks-empty strong {
  color: #151922;
  font-size: 20px;
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(326px, 88vw); z-index: 20; }
  .sidebar.open { display: flex; }
  .mobile-menu { display: inline-flex; }
  .stats, .two, .three, .kanban, .chat-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .hide-mobile { display: none; }
  .calendar-grid { grid-template-columns: 1fr; }
  .day { min-height: 84px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dashboard-charts { grid-template-columns: 1fr; gap: 16px; }
  .dash-panel { border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .pie-wrap { grid-template-columns: 1fr; justify-items: center; }
  .activity-row { grid-template-columns: 42px minmax(0, 1fr); }
  .activity-row .badge { grid-column: 2; justify-self: start; }
  .tasks-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks-filters { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .tasks-search { grid-column: 1 / -1; }
  .tasks-filter-actions { grid-column: 1 / -1; }
  .flutter-task-card { grid-template-columns: 1fr; }
  .task-card-side { justify-items: start; text-align: left; }
  .task-card-side { align-items: flex-start; text-align: left; }
  .task-detail-grid { grid-template-columns: 1fr 1fr; }
  .task-date-row { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .dash-stat-card { min-height: 112px; }
  .bar-chart { gap: 12px; }
  .tasks-summary { grid-template-columns: 1fr; }
  .tasks-filters { grid-template-columns: 1fr; }
  .task-tabs { gap: 18px; }
  .tasks-overview-head { align-items: flex-start; flex-direction: column; }
  .view-toggle { width: 100%; }
  .view-toggle button { min-width: 0; flex: 1; }
  .filter-grid { grid-template-columns: 1fr; }
  .task-detail-grid { grid-template-columns: 1fr; }
  .task-description { margin-top: 36px; }
  .task-fab { right: 16px; bottom: 16px; }
}
