:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #233b35;
  background: #f7f8f5;
  font-synthesis: none;
  font-size: 14px;
  --bg: #f7f8f5;
  --surface: #fff;
  --surface-2: #f1f4ee;
  --text: #233b35;
  --muted: #79857e;
  --border: #e6ebe4;
  --accent: #477a62;
  --accent-soft: #e9f1e5;
  --accent-text: #396449;
  --sidebar: #fbfcf9;
  --warm: #ac7852;
  --shadow: 0 12px 40px #1c382509;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101a19;
  --surface: #172422;
  --surface-2: #1d2d29;
  --text: #e1ebe3;
  --muted: #93a59b;
  --border: #2a3b35;
  --accent: #a1d8b6;
  --accent-soft: #283f32;
  --accent-text: #b8ddc3;
  --sidebar: #14201d;
  --warm: #e0ab85;
  --shadow: 0 12px 40px #0002;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 580;
  letter-spacing: -1.1px;
  line-height: 1.28;
}
h2 {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 650;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 12px;
  white-space: nowrap;
  min-height: 40px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
:root:not([data-theme="dark"]) .button.primary {
  color: #fff;
}
.full {
  width: 100%;
}
.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 7px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-size: 12px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-button:hover {
  text-decoration: underline;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo > strong {
  font-size: 24px;
  letter-spacing: -1.1px;
  font-weight: 650;
}
.logo > strong > span {
  font-weight: 400;
}
.brand-logo-image {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-story .brand-logo-image {
  width: 44px;
  height: 44px;
}
.bin-icon {
  color: var(--muted);
  flex-shrink: 0;
}
.bin-list .task-content {
  cursor: default;
}
.bin-list .task-row {
  gap: 15px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 232px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 32px 21px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 20;
}
.sidebar .logo {
  margin: 0 9px 34px;
}
.sidebar-create {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 13px;
  text-align: left;
  font-weight: 550;
  font-size: 12px;
  box-shadow: 0 2px 3px #00000003;
}
.sidebar-create > span {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  font-size: 13px;
  padding: 0 3px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 32px 13px 13px;
  font-weight: 600;
}
nav {
  display: grid;
  gap: 5px;
}
nav > button,
.settings-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
nav > button:hover,
.settings-nav:hover {
  background: var(--surface-2);
  color: var(--text);
}
nav > button.active,
.settings-nav.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
}
nav > button b {
  margin-left: auto;
  font-size: 10px;
  background: var(--surface);
  padding: 3px 6px;
  border-radius: 5px;
}
nav > button:nth-child(7) {
  margin-top: 22px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.quiet-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px 15px;
  margin-bottom: 19px;
  background: linear-gradient(130deg, var(--surface-2), var(--sidebar));
}
.quiet-sun {
  display: block;
  font-size: 27px;
  color: var(--accent);
  margin-bottom: 10px;
}
.quiet-card strong {
  font-size: 12px;
  font-weight: 550;
}
.quiet-card p {
  font-size: 11px;
  margin: 7px 0 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 14px;
}
.profile > div {
  min-width: 0;
  flex: 1;
}
.profile strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100px;
}
.profile small {
  font-size: 10px;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #e3dfcf;
  color: #5f624b;
  border: 3px solid var(--surface);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.avatar.small {
  width: 31px;
  height: 31px;
}
.workspace {
  margin-left: 232px;
}
.topbar {
  height: 77px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb > span {
  color: var(--text);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.today-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-right: 12px;
}
.notification-button {
  position: relative;
}
.notification-button i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  top: 5px;
  right: 6px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1580px;
  margin: auto;
  padding: 38px 40px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.page-heading > .button {
  margin-top: 17px;
}
.greeting-sun {
  display: inline-block;
  color: var(--accent);
  font-size: 34px;
  margin-left: 14px;
  vertical-align: middle;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 20px 22px;
}
.stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat > div svg {
  color: var(--accent);
}
.stat.warm > div svg {
  color: var(--warm);
}
.stat > strong {
  display: block;
  font-size: 33px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 16px 0 6px;
}
.stat > p {
  font-size: 10px;
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
}
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > .muted {
  font-size: 11px;
}
.section-heading > svg {
  color: var(--muted);
}
.focus-banner {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #edf1e5;
  border: 1px solid #e2e8d9;
  border-radius: 11px;
  min-height: 236px;
  padding: 27px 30px;
  margin-bottom: 24px;
  color: #344e3c;
}
.focus-banner .eyebrow {
  font-size: 8px;
  color: #7b8c73;
  margin-bottom: 12px;
}
.focus-banner h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin-bottom: 11px;
}
.focus-banner p {
  font-size: 11px;
  max-width: 295px;
  color: #7c8976;
  margin-bottom: 18px;
}
.focus-banner .button {
  font-size: 10px;
  padding: 9px 12px;
  background: #ffffff90;
  border-color: #d4dec9;
  color: #405e44;
}
.focus-banner > div:first-child {
  position: relative;
  z-index: 2;
}
.focus-art {
  position: absolute;
  right: 12px;
  width: 200px;
  height: 210px;
  opacity: 0.95;
}
.focus-star {
  position: absolute;
  left: 65px;
  top: 42px;
  font-size: 116px;
  color: #aebd8f;
  font-family: Georgia, serif;
  line-height: 1.2;
  transform: rotate(15deg);
}
.orbit {
  position: absolute;
  border: 1px solid #c6d1b56e;
  border-radius: 50%;
  height: 185px;
  width: 185px;
  top: 10px;
  left: 13px;
}
.orbit.two {
  height: 230px;
  width: 230px;
  left: -10px;
  top: -12px;
}
.floating-check {
  position: absolute;
  left: 27px;
  bottom: 13px;
  background: #ffffffe0;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-11deg);
  box-shadow: 0 12px 30px #76875517;
  color: #7a9462;
}
:root[data-theme="dark"] .focus-banner {
  background: #24372c;
  border-color: #304435;
  color: #d5e2c8;
}
:root[data-theme="dark"] .focus-banner p,
:root[data-theme="dark"] .focus-banner .eyebrow {
  color: #a0b29a;
}
:root[data-theme="dark"] .focus-banner .button {
  background: #324737;
  border-color: #40593e;
  color: #dbe6d2;
}
:root[data-theme="dark"] .focus-art {
  opacity: 0.65;
}
.today-tasks {
  padding: 23px 24px;
}
.count {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 3px 6px;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--muted);
}
.mini-tabs {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin: 0 -24px;
  padding: 0 24px;
}
.mini-tabs > span {
  padding: 4px 0 12px;
}
.mini-tabs .active {
  color: var(--accent-text);
  border-bottom: 2px solid var(--accent);
}
.task-wrap {
  border-bottom: 1px solid var(--border);
}
.task-wrap:last-child {
  border-bottom: 0;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 79px;
  padding: 14px 0;
}
.task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0;
}
.task-check:hover {
  border-color: var(--accent);
}
.completed .task-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.completed .task-content > strong {
  text-decoration: line-through;
  color: var(--muted);
}
.task-content {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.task-content > strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.task-content > span {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.task-content > span > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task-content .late {
  color: var(--warm);
}
.priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  text-transform: capitalize;
  white-space: nowrap;
}
.priority i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.priority.high {
  color: #bb8660;
}
.priority.medium {
  color: #9b9967;
}
.priority.low {
  color: #84a59a;
}
.kind {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
}
.kind.followup {
  color: #9f8ab3;
}
.kind.event {
  color: #7d9eaf;
}
.danger-subtle {
  opacity: 0.45;
  width: 26px;
}
.task-row:hover .danger-subtle {
  opacity: 1;
}
.task-row > .icon-button {
  width: 26px;
}
.subtasks {
  margin-left: 30px;
  margin-bottom: 10px;
}
.subtasks summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.progress-track {
  height: 4px;
  max-width: 130px;
  flex: 1;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.child .task-row {
  min-height: 64px;
  padding: 10px 0;
}
.progress-panel {
  text-align: center;
  padding: 22px 20px;
}
.progress-panel .section-heading {
  text-align: left;
}
.progress-panel .section-heading h2 {
  font-size: 14px;
}
.progress-ring {
  height: 151px;
  width: 151px;
  border-radius: 50%;
  margin: 27px auto 22px;
  padding: 9px;
  transform: rotate(-0.001deg);
}
.progress-ring > div {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.progress-ring strong {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -1px;
}
.progress-ring strong small {
  font-size: 18px;
  margin-left: 1px;
  color: var(--text);
}
.progress-ring span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.progress-panel h3 {
  font-size: 12px;
  margin: 0 0 9px;
}
.progress-panel p {
  font-size: 11px;
  margin: 0;
}
.upcoming {
  padding: 22px 20px;
}
.upcoming .section-heading h2 {
  font-size: 14px;
}
.upcoming > button:not(.text-button) {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.date-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 38px;
  height: 44px;
  flex-shrink: 0;
  font-size: 17px;
}
.date-badge small {
  font-size: 8px;
  text-transform: uppercase;
}
.upcoming > button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.upcoming strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.upcoming small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.upcoming > p {
  font-size: 12px;
  padding: 15px 0;
  margin: 0;
}
.upcoming > .text-button {
  font-size: 10px;
  margin-top: 12px;
}
.empty {
  text-align: center;
  padding: 46px 18px;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 16px;
  transform: rotate(-4deg);
  margin-bottom: 20px;
}
.empty h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 350px;
  margin: 0 auto 12px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  font-size: 9px;
  color: var(--muted);
  padding: 10px 0;
}
.footer-dot {
  padding: 0 7px;
}
.filters {
  display: flex;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filters select {
  width: auto;
  max-width: 150px;
  font-size: 11px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1;
  min-width: 180px;
  color: var(--muted);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.search input {
  border: 0;
  min-width: 0;
  padding: 10px 0;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.month-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
}
.month-nav h2 {
  margin: 0;
  font-size: 20px;
}
.calendar-toolbar > input {
  width: auto;
  font-size: 12px;
}
.segmented {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 8px;
}
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-transform: capitalize;
  padding: 8px 12px;
  border-radius: 5px;
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 4px #0001;
}
.calendar-scroll {
  overflow: auto;
  margin-bottom: 23px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--border);
  gap: 1px;
  min-width: 580px;
}
.weekday {
  background: var(--surface);
  font-size: 10px;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}
.calendar-cell {
  background: var(--surface);
  border: 0;
  min-height: 107px;
  text-align: left;
  padding: 10px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.week .calendar-cell {
  min-height: 240px;
}
.calendar-cell:hover {
  background: var(--surface-2);
}
.calendar-cell.selected {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: var(--accent-soft);
}
.calendar-cell.outside {
  opacity: 0.6;
}
.date-number {
  font-size: 11px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 3px;
}
.is-today .date-number {
  background: var(--accent);
  color: var(--bg);
}
.calendar-entry {
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 3px 5px;
  font-size: 9px;
  color: var(--accent-text);
}
.calendar-entry.done {
  text-decoration: line-through;
  opacity: 0.6;
}
.calendar-entry.followup {
  border-color: #b39bc8;
}
.calendar-entry.event {
  border-color: #82a7c0;
}
.agenda-date {
  font-size: 12px;
  margin-top: 22px;
  color: var(--accent-text);
}
.date-agenda .empty {
  padding: 20px;
}
.date-agenda .empty-icon {
  display: none;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.workflow-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.workflow-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 12px;
  margin-bottom: 22px;
}
.workflow-card h2 {
  margin-bottom: 7px;
}
.workflow-card p {
  font-size: 12px;
}
.workflow-steps {
  margin: 7px 0 24px;
  flex: 1;
}
.workflow-steps > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 11px;
}
.workflow-steps > div > span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 9px;
  flex-shrink: 0;
}
.workflow-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
.workflow-card footer > span {
  margin-right: auto;
  font-size: 11px;
  color: var(--muted);
}
.new-workflow {
  min-height: 280px;
  border: 1px dashed var(--border);
  border-radius: 11px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  padding: 30px;
}
.new-workflow:hover {
  background: var(--surface-2);
}
.new-workflow strong {
  font-size: 14px;
  color: var(--text);
}
.new-workflow span {
  font-size: 11px;
  line-height: 1.6;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.metric-row:last-child {
  border: 0;
}
.metric-row p {
  margin: 5px 0 0;
  font-size: 11px;
}
.metric-row > span:first-child {
  margin-right: auto;
  text-transform: capitalize;
}
.metric-row > span:nth-child(2) {
  color: var(--muted);
}
.insights-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.insights-grid > .panel > p {
  font-size: 12px;
}
.bar-chart {
  height: 225px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding: 20px 6px 0;
}
.bar-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: center;
  align-items: stretch;
  gap: 9px;
}
.bar-column strong {
  font-size: 11px;
  font-weight: 500;
}
.bar-column span {
  font-size: 10px;
  color: var(--muted);
}
.bar-space {
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar {
  background: var(--accent);
  width: 65%;
  border-radius: 5px 5px 2px 2px;
  opacity: 0.7;
}
.inbox-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--accent-soft);
}
.inbox-banner > svg {
  color: var(--accent);
  flex-shrink: 0;
}
.inbox-banner h2 {
  margin: 0 0 5px;
}
.inbox-banner p {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  color: var(--accent-text);
  background: var(--surface);
}
.inbox-banner > .badge {
  margin-left: auto;
}
.import-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.import-actions > label {
  margin: 0;
  cursor: pointer;
}
.file-input {
  display: none;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.inbox-item > div {
  flex: 1;
  min-width: 0;
}
.inbox-item strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.inbox-item p {
  font-size: 11px;
  margin: 6px 0 0;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.history-row > div {
  flex: 1;
  min-width: 0;
}
.history-row strong {
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.history-row p {
  font-size: 11px;
  margin: 5px 0 0;
  text-transform: capitalize;
}
.history-row time {
  font-size: 10px;
  color: var(--muted);
}
.history-dot {
  height: 8px;
  width: 8px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}
.history-dot.completed {
  background: var(--accent);
}
.history-dot.deleted {
  background: var(--warm);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.settings-grid > .panel,
.settings-grid > div > .panel {
  margin-bottom: 22px;
}
.settings-grid p {
  font-size: 12px;
}
.section-icon {
  color: var(--accent);
  margin-bottom: 15px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 17px;
  color: var(--text);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  margin-top: 8px;
  min-height: 40px;
  line-height: 1.4;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}
textarea {
  resize: vertical;
}
input:disabled {
  background: var(--surface-2);
  color: var(--muted);
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
  font-weight: 400;
}
.hint {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.65;
}
.error {
  background: #ad553517;
  border: 1px solid #ad553555;
  padding: 12px;
  border-radius: 6px;
  color: var(--warm);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice {
  background: var(--accent-soft);
  padding: 12px;
  font-size: 12px;
  border-radius: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid > * {
  min-width: 0;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  width: min(600px, calc(100% - 28px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #0004;
}
dialog::backdrop {
  background: #08161075;
  backdrop-filter: blur(4px);
}
dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 25px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
}
dialog h2 {
  margin: 0;
  font-size: 17px;
}
.editor {
  padding: 24px;
}
.editor > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.editor > details > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
  padding: 12px 0;
}
.dependency-list {
  max-height: 160px;
  overflow: auto;
  padding: 12px;
}
.step-editor {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 17px;
  margin: 18px 0;
}
.step-editor .section-heading {
  justify-content: flex-start;
  font-size: 12px;
}
.step-editor .section-heading .icon-button {
  margin-left: auto;
}
.step-number {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 50%;
  font-size: 10px;
}
.recovery-code {
  display: block;
  background: var(--surface-2);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow-wrap: anywhere;
  user-select: all;
  margin: 20px 0;
  font-size: 15px;
}
.editor > .button + .button {
  margin-left: 10px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 20px;
  border-radius: 9px;
  box-shadow: 0 10px 40px #0003;
  z-index: 100;
  font-size: 12px;
  max-width: min(560px, 90vw);
  line-height: 1.5;
}
.toast .icon-button {
  color: inherit;
}
.loading {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-story {
  background: #203c30;
  color: #e4eadb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px 8%;
  overflow: hidden;
}
.auth-story .logo-mark {
  background: #bad0a3;
  color: #203c30;
}
.auth-story > div:nth-child(2) {
  padding-top: 60px;
}
.auth-story .eyebrow {
  color: #9eb899;
  font-size: 9px;
}
.auth-story h1 {
  font-size: clamp(32px, 3.2vw, 51px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -1.6px;
  margin: 24px 0;
}
.auth-story p {
  color: #acbdad;
  font-size: 13px;
  line-height: 1.9;
}
.auth-story > small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8ba78d;
  padding-bottom: 10px;
}
.auth-art {
  height: 220px;
  position: relative;
  margin-top: 30px;
}
.art-orbit {
  position: absolute;
  left: 30%;
  top: 0;
  border: 1px solid #6a916740;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  box-shadow:
    0 0 0 25px #45623b18,
    0 0 0 55px #45623b12;
}
.art-card {
  position: absolute;
  top: 30px;
  left: 5%;
  transform: rotate(-5deg);
  border: 1px solid #7385696b;
  border-radius: 10px;
  background: #405c43;
  box-shadow: 0 20px 50px #0b261d40;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #e0e8d7;
}
.art-card.second {
  top: 125px;
  left: 19%;
  transform: rotate(6deg);
  background: #ced9b7;
  color: #3e5b3e;
}
.auth-form {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 60px 35px;
}
.auth-form h2 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.9px;
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 12px;
  margin-bottom: 29px;
}
.auth-form .eyebrow {
  font-size: 8px;
}
.auth-form form > .button {
  margin: 22px 0 16px;
}
.auth-form > .text-button {
  display: flex;
  margin: 0 auto 4px;
}
.auth-trust {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.mobile-logo {
  display: none;
}
@media (min-width: 1600px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .focus-art {
    right: 45px;
  }
  .focus-banner {
    min-height: 260px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px 18px;
  }
  .workspace {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 30px 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 18px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .focus-banner {
    padding: 25px;
  }
  .focus-art {
    right: -25px;
    opacity: 0.45;
  }
  .focus-banner p {
    max-width: 260px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-row {
    gap: 8px;
  }
  .today-label {
    display: none;
  }
  .quiet-card {
    padding: 13px;
  }
  .stat p {
    font-size: 9px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 190px;
  }
  .workspace {
    margin-left: 190px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .greeting-sun {
    font-size: 28px;
  }
  .page-heading > .button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .focus-art {
    right: 25px;
    opacity: 0.9;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 40px 7%;
  }
  .art-card {
    font-size: 10px;
    padding: 18px 16px;
    left: -10%;
  }
  .art-card.second {
    left: 0;
  }
  .auth-form {
    padding: 40px 28px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 248px;
    padding: 26px 22px;
    z-index: 40;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 35;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
    gap: 12px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
    gap: 6px;
  }
  .breadcrumb > span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-right .avatar {
    display: none;
  }
  main {
    padding: 26px 18px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 27px;
    margin-bottom: 9px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.7;
  }
  .page-heading > .button {
    margin-top: 0;
  }
  .greeting-sun {
    margin-left: 10px;
    font-size: 27px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 16px;
  }
  .stat > strong {
    font-size: 29px;
    margin-top: 12px;
  }
  .stat > div {
    font-size: 10px;
  }
  .stat > div > svg {
    width: 15px;
  }
  .stat p {
    font-size: 9px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .focus-banner {
    min-height: 236px;
    padding: 24px;
    margin-bottom: 20px;
  }
  .focus-banner h2 {
    font-size: 23px;
  }
  .focus-art {
    right: -38px;
    opacity: 0.45 !important;
  }
  .focus-banner p {
    max-width: 245px;
    font-size: 10px;
  }
  .focus-banner .eyebrow {
    font-size: 7px;
  }
  .panel {
    padding: 20px 17px;
    border-radius: 10px;
  }
  .today-tasks .mini-tabs {
    margin: 0 -17px;
    padding: 0 17px;
  }
  .dashboard-right {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .progress-panel {
    padding: 23px;
  }
  .progress-ring {
    margin: 21px auto;
  }
  .task-row {
    gap: 8px;
    min-height: 84px;
  }
  .task-row > .icon-button {
    width: 24px;
  }
  .task-content > strong {
    font-size: 12px;
  }
  .task-content > span {
    font-size: 9px;
    gap: 6px;
  }
  .priority {
    font-size: 0;
    gap: 0;
  }
  .priority i {
    width: 6px;
    height: 6px;
  }
  .danger-subtle {
    opacity: 0.65;
  }
  .task-check {
    min-width: 21px;
    height: 21px;
  }
  .filters {
    gap: 9px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    max-width: none;
    min-width: 70px;
    padding: 9px 5px;
    font-size: 10px;
    margin: 0;
  }
  .calendar-toolbar {
    gap: 10px;
  }
  .month-nav {
    width: 100%;
    justify-content: space-between;
  }
  .month-nav h2 {
    font-size: 19px;
  }
  .calendar-toolbar > input {
    width: 145px;
  }
  .calendar-toolbar .segmented {
    margin-top: 2px;
    width: 100%;
    justify-content: space-between;
  }
  .segmented > button {
    flex: 1;
  }
  .calendar-cell {
    min-height: 98px;
  }
  .calendar-scroll {
    margin-left: -4px;
    margin-right: -4px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .new-workflow {
    min-height: 200px;
  }
  .inbox-banner {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .inbox-banner > div {
    flex: 1;
    min-width: 200px;
  }
  .inbox-banner > .badge {
    margin-left: 40px;
  }
  .inbox-banner h2 {
    font-size: 15px;
  }
  .inbox-banner p {
    font-size: 11px;
  }
  .inbox-item {
    gap: 10px;
  }
  .inbox-item > .button {
    padding: 9px;
  }
  .history-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .history-row time {
    font-size: 9px;
  }
  .workspace-footer {
    font-size: 8px;
    gap: 20px;
    line-height: 1.6;
    margin-top: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 20px;
  }
  .editor > .button {
    margin: 6px 0 !important;
    width: 100%;
  }
  dialog {
    max-height: 93dvh;
    width: calc(100% - 20px);
    border-radius: 11px;
  }
  dialog > header {
    padding: 17px 20px;
  }
  .toast {
    bottom: 15px;
    max-width: calc(100vw - 24px);
    width: max-content;
    font-size: 11px;
  }
  .auth-page {
    display: block;
    min-height: 100dvh;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    max-width: 430px;
    padding: 45px 27px;
  }
  .mobile-logo {
    display: block;
    margin-bottom: 65px;
  }
  .auth-form h2 {
    font-size: 27px;
  }
  .auth-form .eyebrow {
    font-size: 8px;
  }
  .auth-form > p {
    font-size: 12px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  input[type="date"],
  input[type="datetime-local"] {
    min-width: 0;
    max-width: 100%;
  }
  .search input {
    font-size: 14px;
  }
  .bar-chart {
    gap: 8px;
  }
  .metric-row {
    font-size: 11px;
    gap: 10px;
  }
  .settings-grid {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.quick-add {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.quick-add > svg { color: var(--accent); flex-shrink: 0; }
.quick-add input { border: 0; flex: 1; min-width: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-card { text-align: left; cursor: pointer; position: relative; margin: 0; color: var(--text); }
.project-card > .badge { position: absolute; right: 20px; top: 20px; }
.project-card-icon { width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border-radius: 12px; margin-bottom: 18px; }
.project-card footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 12px; }
.project-detail > .button { margin-bottom: 18px; }
.project-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.project-hero h2 { font-size: 25px; margin-bottom: 8px; }
.project-progress { width: 105px; height: 105px; border-radius: 50%; background: var(--accent-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.project-progress strong { font-size: 25px; }
.project-progress span { color: var(--muted); font-size: 10px; }
.project-columns { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; }
.project-task, .member-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.project-task > div, .member-row > div { min-width: 0; flex: 1; }
.project-task strong, .member-row strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.project-task p { margin: 4px 0 0; font-size: 10px; }
.project-task select, .member-row select { width: auto; max-width: 145px; font-size: 10px; }
.member-row small { display: block; overflow: hidden; text-overflow: ellipsis; }
.project-form { display: grid; gap: 11px; padding-top: 22px; margin-top: 10px; }
.project-form h3 { margin: 0; }
.project-chat { max-height: 390px; overflow-y: auto; }
.chat-message { border-bottom: 1px solid var(--border); padding: 13px 0; }
.chat-message > strong { font-size: 11px; }
.chat-message > span, .chat-message > small { color: var(--muted); font-size: 9px; }
.chat-message p { margin: 5px 0; color: var(--text); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 9px; margin-top: 16px; }
@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-columns { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .quick-add { align-items: stretch; flex-wrap: wrap; }
  .quick-add input { flex-basis: calc(100% - 32px); }
  .quick-add .button { width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-hero { align-items: flex-start; }
  .project-progress { width: 80px; height: 80px; }
  .project-task { align-items: flex-start; flex-wrap: wrap; }
  .project-task select { margin-left: 30px; }
  .chat-form { grid-template-columns: 1fr; }
  .member-row { flex-wrap: wrap; }
}

.button.danger { color: #fff; background: #a64b4b; border-color: #a64b4b; }
.danger-zone-card { border-color: #a64b4b55; }

.notification-preferences {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 4px 0 16px;
  display: grid;
  gap: 10px;
}
.notification-preferences legend {
  padding: 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.notification-preferences .checkbox-label { margin: 0; }

.project-owner-controls{display:grid;gap:.75rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.project-owner-controls form{display:grid;gap:.6rem}
.button.danger{color:#b42318;border-color:color-mix(in srgb,#b42318 35%,var(--line));background:color-mix(in srgb,#b42318 8%,var(--panel))}
.button.danger:hover{background:color-mix(in srgb,#b42318 14%,var(--panel))}
