:root {
  color-scheme: light;
  --bg: #edf4ff;
  --panel: #ffffff;
  --sidebar: #f4f8ff;
  --text: #101418;
  --muted: #5f6368;
  --line: #d7e2f0;
  --accent: #1a73e8;
  --accent-strong: #0b57d0;
  --accent-soft: #d7e8ff;
  --green: #34a853;
  --yellow: #fbbc04;
  --blue: #1a73e8;
  --violet: #a76df2;
  --red: #ea4335;
  --ink: #171a1c;
  --shadow: 0 18px 50px rgba(39, 70, 116, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(26, 115, 232, 0.12), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(167, 109, 242, 0.14), transparent 24%),
    var(--bg);
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(223, 63, 45, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(47, 112, 183, 0.12), transparent 34%),
    var(--bg);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand h1 {
  font-size: 28px;
}

.login-form {
  max-width: none;
  border: 0;
  padding: 0;
}

.login-form .primary-button {
  width: 100%;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-separator::before,
.login-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.google-button:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(40, 35, 30, 0.1);
}

.google-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-weight: 900;
}

.login-hint,
.form-error {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-error {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 10px 12px;
  margin-bottom: 14px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: color-mix(in srgb, var(--sidebar) 88%, white);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, white);
  backdrop-filter: blur(14px);
  padding: 16px 28px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  padding: 0 12px;
}

.menu-toggle span:first-child,
.menu-toggle span:first-child::before,
.menu-toggle span:first-child::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-toggle span:first-child {
  position: relative;
}

.menu-toggle span:first-child::before,
.menu-toggle span:first-child::after {
  position: absolute;
  left: 0;
}

.menu-toggle span:first-child::before {
  top: -6px;
}

.menu-toggle span:first-child::after {
  top: 6px;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
}

.header-add svg {
  width: 18px;
  height: 18px;
}

.profile,
.toolbar,
.toolbar-actions,
.form-actions,
.section-heading {
  display: flex;
  align-items: center;
}

.profile {
  gap: 10px;
  margin-bottom: 26px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34b7a7, var(--blue));
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(47, 112, 183, 0.22);
}

.profile-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--text);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin-right: auto;
}

.profile-menu {
  position: relative;
  margin-right: auto;
}

.profile-menu summary {
  cursor: pointer;
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 10px;
}

.profile-dropdown span {
  color: var(--muted);
  font-size: 12px;
}

.profile-dropdown a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.icon-button svg,
.nav-icon svg,
.plus svg,
.task-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.icon-button:hover,
.nav-item:hover,
.secondary-button:hover,
.ghost-button:hover {
  background: rgba(26, 115, 232, 0.08);
}

.add-task-wide,
.primary-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.add-task-wide {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 14px 28px rgba(26, 115, 232, 0.22);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
}

.add-task-wide:hover,
.primary-button:hover {
  background: var(--accent-strong);
}

.plus {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 10px;
  color: var(--muted);
}

.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.14);
}

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.nav-item,
.project-button,
.link-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
}

.nav-item strong,
.project-button strong,
.link-item strong {
  color: #7a8698;
  font-size: 13px;
  font-weight: 500;
}

.link-item {
  text-decoration: none;
}

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

a.primary-button,
a.secondary-button,
a.ghost-button {
  text-decoration: none;
}

a.primary-button,
a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active,
.project-button.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}

.nav-item.active .nav-icon,
.project-button.active .nav-icon,
.nav-item:hover .nav-icon,
.project-button:hover .nav-icon {
  color: currentColor;
}

.projects {
  margin-top: 34px;
}

.section-heading {
  justify-content: space-between;
  padding: 0 4px 8px;
}

.section-heading h2 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.project-list,
.maintainer-list {
  display: grid;
  gap: 3px;
}

.maintainers {
  margin-top: 28px;
}

.maintainer-block {
  margin-top: 8px;
}

.collapsible-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 4px 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.collapsible-heading::-webkit-details-marker {
  display: none;
}

.collapsible-heading::before {
  content: "▸";
  display: inline-grid;
  place-items: center;
  width: 16px;
  color: var(--muted);
}

details[open] > .collapsible-heading::before {
  content: "▾";
}

.collapsible-heading span {
  margin-right: auto;
}

.compact-heading {
  padding-top: 0;
}

.compact-heading {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.maintainer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 3px 4px;
}

.type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 28px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 3px 4px;
}

.maintainer-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  justify-self: end;
}

.maintainer-status {
  width: 76px;
  min-height: 32px;
  padding: 0 8px;
}

.type-delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent-strong);
}

.type-delete:disabled {
  cursor: not-allowed;
  color: #aaa39c;
}

.type-delete:not(:disabled):hover {
  background: var(--accent-soft);
}

.main-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-width: 0;
}

.task-column {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px 40px 72px;
}

.toolbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.toolbar-actions {
  gap: 10px;
}
.user-filter {
  position: relative;
  min-width: 230px;
}

.user-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent));
  border-radius: 999px;
  background: #ffffff;
  color: #102033;
  font-weight: 900;
  padding: 0 12px 0 16px;
  box-shadow: 0 10px 24px rgba(40, 35, 30, 0.08);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.user-filter-trigger:hover,
.user-filter-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.16);
  transform: translateY(-1px);
}

.user-filter-trigger span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #102033;
  opacity: 1;
}

.user-filter-trigger span:last-child {
  color: var(--accent);
  font-weight: 900;
}

.user-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 5px;
  width: min(300px, 84vw);
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(39, 70, 116, 0.22);
  padding: 8px;
}

.user-filter-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  text-align: left;
  padding: 0 10px;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.user-filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-filter-option:hover,
.user-filter-option.active {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--panel));
  color: var(--accent-strong);
  transform: translateX(2px);
}

.user-filter-check {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  pointer-events: none;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(39, 70, 116, 0.12);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  overflow: hidden;
}

button.dashboard-card {
  color: var(--text);
  text-align: left;
}

button.dashboard-card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 46px rgba(39, 70, 116, 0.18);
  transform: translateY(-2px);
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 18px;
}

.metric-label {
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
}

.metric-card small {
  color: color-mix(in srgb, currentColor 72%, transparent);
  line-height: 1.35;
}

.today-card {
  background: linear-gradient(135deg, #ff8a80 0%, #ea4335 100%);
  color: #ffffff;
}

.upcoming-card {
  background: linear-gradient(135deg, #7bb7ff 0%, #1a73e8 100%);
  color: #ffffff;
}

.no-date-card {
  background: linear-gradient(135deg, #fff2b8 0%, #fbbc04 100%);
  color: #1f1b0a;
}

.completed-card {
  background: linear-gradient(135deg, #d8f5e2 0%, #34a853 100%);
  color: #0f2818;
}

.chart-card {
  grid-column: span 2;
  padding: 18px;
  border-color: color-mix(in srgb, var(--line) 68%, white);
}

.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-heading h2 {
  margin: 0;
  font-size: 16px;
}

.chart-heading span {
  color: var(--muted);
  font-size: 13px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
}

.donut-chart {
  position: relative;
  width: 142px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#e3ddd6 0deg 360deg);
}

.donut-chart::after {
  content: attr(data-center);
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.donut-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.donut-legend span span {
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-today {
  background: var(--red);
}

.dot-upcoming {
  background: var(--blue);
}

.dot-nodate {
  background: var(--yellow);
}

.dot-done {
  background: var(--green);
}

.type-bars {
  display: grid;
  gap: 12px;
}

.type-bar-row {
  display: grid;
  gap: 6px;
}

.type-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.type-bar-label strong {
  color: var(--muted);
}

.type-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f7;
}

.type-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--green));
}

.type-bar-row small,
.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.priority-chart-card {
  grid-column: 1 / -1;
}

.priority-stack {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f7;
  margin-bottom: 12px;
}

.priority-stack-segment {
  display: block;
  min-width: 0;
  transition: width 160ms ease;
}

.priority-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-summary-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.priority-summary-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(39, 70, 116, 0.14);
}

.priority-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-summary-card strong {
  font-size: 28px;
  line-height: 1;
}

.priority-summary-card small {
  color: var(--muted);
}

.priority-high.priority-stack-segment {
  background: var(--accent);
}

.priority-medium.priority-stack-segment {
  background: var(--yellow);
}

.priority-low.priority-stack-segment {
  background: var(--green);
}

.priority-summary-card.priority-high {
  border-top: 4px solid var(--accent);
}

.priority-summary-card.priority-medium {
  border-top: 4px solid var(--yellow);
}

.priority-summary-card.priority-low {
  border-top: 4px solid var(--green);
}

.task-results {
  display: grid;
  gap: 12px;
}

.task-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.task-results-heading h2 {
  margin: 0;
  font-size: 20px;
}

.task-results-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.calendar-sections {
  display: grid;
  gap: 14px;
}

.calendar-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(40, 35, 30, 0.07);
  padding: 14px;
}

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

.calendar-toolbar h2 {
  margin: 0;
  font-size: 22px;
  text-transform: capitalize;
}

.calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.calendar-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.calendar-filters input {
  width: 14px;
  height: 14px;
}

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

.calendar-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.calendar-day:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(40, 35, 30, 0.1);
}

.calendar-day.muted-day {
  cursor: default;
  opacity: 0.45;
}

.calendar-tasks {
  display: grid;
  gap: 4px;
}

.calendar-tasks span,
.calendar-tasks small {
  overflow: hidden;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-tasks .done-calendar-task {
  background: #e6f1eb;
  color: var(--green);
  text-decoration: line-through;
}

.calendar-no-date {
  display: grid;
  gap: 8px;
}

.calendar-no-date-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  text-align: left;
}

.calendar-no-date-item:hover {
  border-color: var(--accent);
}

.calendar-no-date-item.completed span {
  color: var(--muted);
  text-decoration: line-through;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
}

select {
  min-height: 38px;
  padding: 0 10px;
}

.task-form {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 18px;
}

.form-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.form-heading h2 {
  margin: 0;
  font-size: 22px;
}

body.task-form-mode .dashboard,
body.task-form-mode .task-results {
  display: none;
}

body.task-form-mode .task-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
}

body.task-form-mode .toolbar {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.task-form-mode .toolbar-actions {
  display: none;
}

.task-form input,
.task-form textarea,
dialog input {
  width: 100%;
  padding: 11px 12px;
}

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

.audio-recorder {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 82%, var(--accent-soft));
  padding: 12px;
}

.audio-recorder > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-recorder strong {
  font-size: 14px;
}

.audio-recorder span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.ghost-button.danger {
  color: var(--red);
}

.audio-recorder audio,
.task-audio {
  width: 100%;
  max-width: 420px;
}

.task-audio {
  display: block;
  margin-top: 10px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
}

.ghost-button,
.secondary-button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  padding: 0 14px;
}

.secondary-button {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-top: 10px;
}

.secondary-button.danger {
  color: var(--accent-strong);
}

.task-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.task-check {
  width: 21px;
  height: 21px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
}

.task-check.done {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.task-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.task-content p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef2f0;
  padding: 0 9px;
}

.priority-2 {
  color: var(--yellow);
}

.priority-3 {
  color: var(--accent-strong);
}

.owner-pill {
  color: var(--violet);
  font-weight: 700;
}

.type-trabajo {
  color: var(--blue);
}

.type-casa {
  color: var(--green);
}

.type-personal {
  color: var(--accent-strong);
}

.task-actions {
  display: flex;
  gap: 6px;
}

.task-action {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, var(--accent-soft));
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
}

.task-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.task-item.completed h3,
.task-item.completed p {
  color: #9b9690;
  text-decoration: line-through;
}

.empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 360px;
  margin: 130px auto 0;
}

.empty-illustration {
  position: relative;
  width: 180px;
  height: 120px;
  margin-bottom: 18px;
}

.empty-illustration::before {
  content: "";
  position: absolute;
  inset: 18px 18px 0;
  border-radius: 45% 55% 34% 38%;
  background: linear-gradient(135deg, #edf4f0, #ffffff);
}

.empty-illustration span {
  position: absolute;
  left: 40px;
  top: 48px;
  width: 100px;
  height: 58px;
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, #ffd762, #f2be45);
  box-shadow: 0 16px 28px rgba(190, 144, 34, 0.18);
}

.empty-illustration span::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 48px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.detail-panel {
  position: sticky;
  top: 78px;
  align-self: start;
  min-height: calc(100vh - 78px);
  border-left: 1px solid var(--line);
  padding: 34px 20px;
  background: rgba(255, 255, 255, 0.5);
}

.summary {
  margin-bottom: 18px;
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.stats a:hover,
.info-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(40, 35, 30, 0.1);
  transform: translateY(-1px);
}

.stats strong {
  font-size: 24px;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

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

.info-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.info-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.info-list strong {
  font-size: 18px;
}

.priority-info a:nth-child(1) {
  border-left: 4px solid var(--accent);
}

.priority-info a:nth-child(2) {
  border-left: 4px solid var(--yellow);
}

.priority-info a:nth-child(3) {
  border-left: 4px solid var(--green);
}

dialog {
  width: min(420px, calc(100vw - 30px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0;
}

dialog::backdrop {
  background: rgba(25, 20, 18, 0.28);
}

dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

dialog h2 {
  margin: 0;
  font-size: 20px;
}

.page-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.page-actions .primary-button,
.page-actions .secondary-button,
.page-actions .ghost-button {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

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

.maintainer-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  min-height: 156px;
  padding: 18px;
  text-decoration: none;
  text-decoration-line: none;
  box-shadow: 0 10px 24px rgba(40, 35, 30, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.maintainer-card:visited,
.maintainer-card:hover,
.maintainer-card:focus {
  color: var(--text);
  text-decoration: none;
}

.maintainer-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(40, 35, 30, 0.12);
  transform: translateY(-1px);
}

.maintainer-card h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.maintainer-card p {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.maintainer-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.maintainer-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.maintainer-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
}

.maintainer-metrics strong {
  color: var(--text);
  font-size: 22px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(40, 35, 30, 0.06);
}

.data-table th {
  background: var(--sidebar);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: rgba(223, 63, 45, 0.04);
}

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

.data-table select {
  min-width: 82px;
}

.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.inline-form {
  display: inline;
}

.page-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.page-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.page-form input,
.page-form select {
  min-height: 40px;
  padding: 0 12px;
}

@media (max-width: 760px) {
  .page-toolbar,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .maintainer-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none;
}

.component-view .page-main {
  width: 100%;
  padding: 0;
}

.component-view .page-toolbar {
  margin-bottom: 22px;
}

.page-main-panel {
  grid-template-columns: minmax(0, 1fr);
}

.app-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding-top: 16px;
}

body.dark {
  color-scheme: dark;
  --bg: #101418;
  --panel: #171c1f;
  --sidebar: #12171b;
  --text: #f8fbff;
  --muted: #b8c2cf;
  --line: #2d3947;
  --accent: #8ab4f8;
  --accent-strong: #d2e3fc;
  --accent-soft: #18345f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

body.dark .pill {
  background: #2c302c;
}

body.dark .detail-panel {
  background: rgba(255, 255, 255, 0.02);
}

body.dark .app-header {
  background: color-mix(in srgb, var(--bg) 88%, black);
}

body.dark .search {
  background: rgba(255, 255, 255, 0.04);
}

body.dark .dashboard-card,
body.dark .priority-summary-card,
body.dark .user-filter-trigger,
body.dark .user-filter-menu {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .main-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .app-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .header-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-chip,
  .header-add {
    justify-content: center;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-chip {
    display: none;
  }

  .sidebar {
    display: none;
    position: absolute;
    top: 92px;
    left: 12px;
    right: 12px;
    grid-row: auto;
    height: auto;
    max-height: calc(100vh - 112px);
    overflow: auto;
    z-index: 20;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 12px;
  }

  body.menu-open .sidebar {
    display: block;
  }

  .profile {
    margin-bottom: 8px;
  }

  .avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .add-task-wide {
    min-height: 36px;
    margin-bottom: 8px;
    padding: 7px 10px;
  }

  .search {
    min-height: 36px;
    margin-bottom: 8px;
  }

  .nav-list {
    display: grid;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-item,
  .project-button,
  .link-item {
    min-height: 36px;
    width: 100%;
    min-width: 0;
    padding: 0 9px;
  }

  .nav-item span:nth-child(2),
  .project-button span:nth-child(2),
  .link-item span:nth-child(2) {
    white-space: nowrap;
  }

  .projects {
    margin-top: 10px;
  }

  .project-list {
    display: grid;
    gap: 4px;
    max-height: 150px;
    overflow: auto;
    padding-bottom: 0;
  }

  .maintainers {
    margin-top: 10px;
  }

  .main-panel {
    display: block;
  }

  .task-column {
    padding: 24px 16px 48px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions,
  .toolbar-actions select,
  .toolbar-actions button,
  .toolbar-actions .user-filter {
    width: 100%;
  }

  .user-filter-menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-card {
    grid-column: 1 / -1;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .priority-overview {
    grid-template-columns: 1fr;
  }

  .calendar-panel {
    overflow-x: hidden;
    padding: 8px;
    border-radius: 14px;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
  }

  .calendar-toolbar h2 {
    font-size: 18px;
  }

  .calendar-toolbar .ghost-button {
    width: 100%;
  }

  .calendar-grid {
    gap: 3px;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .calendar-weekday {
    display: block;
    font-size: 10px;
  }

  .calendar-day {
    min-height: 58px;
    gap: 3px;
    border-radius: 8px;
    padding: 5px 3px;
  }

  .calendar-day strong {
    font-size: 12px;
  }

  .calendar-tasks {
    gap: 2px;
  }

  .calendar-tasks span,
  .calendar-tasks small {
    max-width: 100%;
    font-size: 0;
    min-height: 5px;
    border-radius: 999px;
    padding: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .task-item {
    grid-template-columns: 28px 1fr;
  }

  .task-actions {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .nav-list,
  .project-list {
    grid-template-columns: 1fr;
  }

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

  .calendar-panel {
    padding: 6px;
  }

  .calendar-filters {
    gap: 6px;
  }

  .calendar-filters label {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-weekday {
    font-size: 9px;
  }

  .calendar-day {
    min-height: 46px;
    padding: 4px 2px;
  }

  .calendar-day strong {
    font-size: 11px;
  }

  .calendar-tasks span,
  .calendar-tasks small {
    min-height: 4px;
  }

  .metric-card {
    min-height: 92px;
    border-radius: 16px;
    gap: 4px;
    padding: 12px;
  }

  .metric-label {
    font-size: 10px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .metric-card small {
    font-size: 11px;
  }

  .task-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}




