:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --text: #16342d;
  --text-muted: #667b75;
  --line: #dfe8e4;
  --primary: #2f6f62;
  --primary-dark: #24594f;
  --primary-soft: #e4f1ed;
  --danger: #c7463a;
  --danger-soft: #fff0ee;
  --warning: #d18a2f;
  --warning-soft: #fff5e5;
  --blue: #477cad;
  --shadow: 0 18px 50px rgba(28, 67, 58, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --sidebar-width: 248px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101915;
  --surface: #18241f;
  --surface-soft: #1e2d27;
  --text: #edf6f2;
  --text-muted: #a9bbb4;
  --line: #2b3c35;
  --primary: #69ad9c;
  --primary-dark: #8bc6b8;
  --primary-soft: #243f36;
  --danger: #f07a6f;
  --danger-soft: #3b2422;
  --warning: #efb665;
  --warning-soft: #3b3122;
  --blue: #78a8d5;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 111, 98, 0.25);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px 20px;
  background: #123d34;
  color: #ecf7f3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #174f43;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.brand strong,
.brand small {
  display: block;
  font-family: "Manrope", sans-serif;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: #a9c8be;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #bcd1ca;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-icon {
  font-size: 19px;
}

.nav-count {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 12px;
  text-align: center;
}

.nav-count--danger {
  background: #d45a4f;
  color: #fff;
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 10px;
  background: #e3b76b;
  color: #433012;
}

.sidebar-card strong {
  display: block;
  font-size: 14px;
}

.sidebar-card p {
  margin: 6px 0 12px;
  color: #bcd1ca;
  font-size: 13px;
  line-height: 1.45;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-mini {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-mini strong,
.profile-mini span {
  display: block;
}

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

.profile-mini span {
  margin-top: 2px;
  color: #abc7bd;
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #deeee9;
  color: #285f53;
  font-size: 12px;
  font-weight: 800;
}

.avatar--admin {
  background: #f2cb83;
  color: #5a3f10;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67d09c;
  box-shadow: 0 0 0 3px rgba(103, 208, 156, 0.15);
}

.main-content {
  width: calc(100% - var(--sidebar-width));
  max-width: 1650px;
  margin-left: var(--sidebar-width);
  padding: 28px 34px 54px;
}

.main-content > *,
.dashboard-grid > *,
.hero-panel > * {
  min-width: 0;
}

.topbar,
.hero-panel,
.panel-header,
.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(21px, 2.2vw, 29px);
  letter-spacing: -0.04em;
}

.topbar-actions,
.hero-actions,
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  display: flex;
  width: min(360px, 32vw);
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(20, 58, 50, 0.03);
}

.search-field span {
  color: var(--text-muted);
  font-size: 22px;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-field kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 10px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 19px;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
  padding: 11px 15px;
  border: 1px solid #d5e5df;
  border-radius: 13px;
  background: #edf6f2;
  color: #315c52;
  font-size: 13px;
}

[data-theme="dark"] .demo-banner {
  border-color: #315044;
  background: #1e352d;
  color: #c5ddd5;
}

.demo-banner div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba475;
}

.demo-banner button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
}

.hero-panel {
  min-height: 158px;
  padding: 28px 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 79% 8%, rgba(242, 203, 131, 0.22), transparent 26%),
    linear-gradient(120deg, #153f36, #276a5c);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel .eyebrow {
  color: #aed3c8;
}

.hero-panel h2 {
  margin: 0 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3.5vw, 37px);
  letter-spacing: -0.045em;
}

.hero-panel p:last-child {
  max-width: 620px;
  margin: 0;
  color: #c6ded7;
  overflow-wrap: anywhere;
}

.button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 98, 0.2);
}

.hero-panel .button--primary {
  background: #fff;
  color: #184c40;
}

.button--voice {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(8px);
}

.pulse-icon {
  display: inline-block;
  margin-right: 6px;
  color: #f5bb69;
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  50% { opacity: 0.4; transform: scale(0.82); }
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button--danger-ghost {
  border-color: #f0b8b2;
  background: #fff;
  color: var(--danger);
}

[data-theme="dark"] .button--danger-ghost {
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 58, 50, 0.04);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 800;
}

.stat-icon--green { background: var(--primary-soft); color: var(--primary); }
.stat-icon--orange { background: var(--warning-soft); color: var(--warning); }
.stat-icon--red { background: var(--danger-soft); color: var(--danger); }
.stat-icon--blue { background: #e8f1fa; color: var(--blue); }
[data-theme="dark"] .stat-icon--blue { background: #21364a; }

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  margin: 1px 0;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.stat-card small {
  color: var(--text-muted);
  font-size: 11px;
}

.overdue-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #efc7c3;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
}

.overdue-alert[hidden] {
  display: none;
}

.overdue-alert-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
}

.overdue-alert strong,
.overdue-alert p {
  margin: 0;
}

.overdue-alert p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(270px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.task-panel,
.team-panel {
  padding: 22px;
}

.panel-header {
  align-items: flex-start;
}

.panel-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.priority-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}

.priority-dot--high { background: var(--danger); }
.priority-dot--medium { background: var(--warning); }
.priority-dot--low { background: var(--blue); }

#sortSelect {
  min-height: 34px;
  margin-left: auto;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.task-item:hover {
  transform: translateY(-1px);
  border-color: #b9d0c8;
  box-shadow: 0 9px 22px rgba(30, 71, 61, 0.06);
}

.task-item.is-overdue {
  border-left: 4px solid var(--danger);
}

.task-item.is-completed {
  opacity: 0.67;
}

.task-item.is-completed .task-title {
  text-decoration: line-through;
}

.task-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #a8bdb6;
  border-radius: 9px;
  background: var(--surface);
  color: transparent;
  font-size: 15px;
  font-weight: 800;
}

.task-item.is-completed .task-check {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.task-main {
  min-width: 0;
}

.task-title-row,
.task-meta,
.task-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-title {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.priority-badge--high { background: var(--danger-soft); color: var(--danger); }
.priority-badge--medium { background: var(--warning-soft); color: var(--warning); }
.priority-badge--low { background: #e8f1fa; color: var(--blue); }
[data-theme="dark"] .priority-badge--low { background: #21364a; }

.task-meta {
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.date-overdue {
  color: var(--danger);
  font-weight: 700;
}

.mini-avatar {
  display: inline-grid !important;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.task-action {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
}

.task-action:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.task-action--delete:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.empty-state {
  padding: 50px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 24px;
}

.empty-state strong,
.empty-state p {
  display: block;
  margin: 0;
}

.empty-state p {
  margin-top: 5px;
  font-size: 14px;
}

.right-column {
  display: grid;
  gap: 16px;
}

.panel-header--compact {
  align-items: center;
}

.live-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.team-list {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.team-member {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
}

.member-info strong,
.member-info span {
  display: block;
}

.member-info strong {
  font-size: 13px;
}

.member-info span,
.member-count {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.progress-track {
  grid-column: 2 / 4;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.focus-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #e8f2ed, #f8f2e3);
  color: #214e43;
}

[data-theme="dark"] .focus-card {
  background: linear-gradient(140deg, #213b32, #3a3121);
  color: #e6f3ee;
}

.focus-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #f2c977;
  color: #5d4314;
}

.focus-card h3,
.focus-card p {
  margin: 0;
}

.focus-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.focus-card p:last-child {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.task-dialog {
  width: min(620px, calc(100vw - 30px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(8, 25, 20, 0.28);
}

.task-dialog::backdrop {
  background: rgba(8, 25, 20, 0.62);
  backdrop-filter: blur(4px);
}

.task-dialog form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.dialog-header {
  align-items: flex-start;
}

.dialog-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-field > span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
}

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

.input-with-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-with-action button {
  width: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 17px;
}

.input-with-action button.is-listening {
  background: var(--danger-soft);
  color: var(--danger);
  animation: pulse 1s infinite;
}

.dialog-footer {
  justify-content: flex-end;
  padding-top: 4px;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(14, 42, 34, 0.2);
  animation: toast-in 250ms ease-out;
}

.toast--alarm {
  border-left-color: var(--danger);
  padding: 21px;
}

.toast-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 19px;
}

.toast--alarm .toast-icon {
  width: 48px;
  height: 48px;
  background: var(--danger-soft);
  animation: ring 0.7s ease-in-out 2;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 14px;
}

.toast span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.toast button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
}

@keyframes ring {
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .right-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 76px; }

  .sidebar {
    align-items: center;
    padding: 22px 12px;
  }

  .brand-copy,
  .nav-label,
  .nav-count,
  .sidebar-card,
  .profile-copy,
  .status-dot {
    display: none;
  }

  .nav-item {
    display: grid;
    width: 48px;
    padding: 0;
    place-items: center;
  }

  .nav-icon {
    grid-column: 1 / -1;
  }

  .profile-mini {
    display: block;
    margin-top: auto;
    padding-top: 16px;
  }

  .main-content {
    width: calc(100% - var(--sidebar-width));
    padding: 22px 20px 42px;
  }

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

@media (max-width: 620px) {
  :root { --sidebar-width: 0px; }

  html,
  body,
  .app-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    height: 66px;
    flex-direction: row;
    justify-content: stretch;
    gap: 0;
    padding: 9px;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(10, 34, 27, 0.28);
    overflow: hidden;
  }

  .brand,
  .profile-mini {
    display: none;
  }

  .nav-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    min-width: 0;
  }

  .nav-item {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 3px 2px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  .nav-label {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-icon {
    font-size: 18px;
  }

  .main-content {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    padding: 18px 14px 100px;
    overflow-x: hidden;
  }

  .main-content > * {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 20px;
    line-height: 1.2;
  }

  .topbar-actions {
    display: none;
  }

  .search-field {
    display: none;
  }

  .demo-banner span:last-child {
    display: none;
  }

  .hero-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 23px;
  }

  .hero-panel h2 {
    font-size: 27px;
    line-height: 1.12;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats-grid {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .stat-card {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .stat-card > div {
    min-width: 0;
  }

  .stat-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .stat-card small {
    display: none;
  }

  .overdue-alert {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    grid-template-columns: auto 1fr;
  }

  .overdue-alert .button {
    grid-column: 1 / -1;
  }

  .task-panel,
  .team-panel {
    width: 100%;
    max-width: 100%;
    padding: 17px;
  }

  .panel-header {
    flex-direction: column;
  }

  .panel-actions {
    width: 100%;
  }

  .panel-actions .button {
    flex: 1;
    padding: 0 10px;
  }

  .task-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .task-title {
    flex-basis: 100%;
    white-space: normal;
  }

  .task-menu {
    grid-column: 2;
    justify-content: flex-end;
  }

  .right-column {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
