:root {
  color-scheme: light;
  --cream: #f4f0e6;
  --cream-deep: #ebe4d5;
  --paper: #fffdf8;
  --paper-soft: #faf7f0;
  --ink: #173b30;
  --ink-soft: #476057;
  --muted: #7d8a83;
  --forest: #1f5a45;
  --forest-deep: #143f31;
  --leaf: #70957c;
  --sage: #dce6da;
  --sage-soft: #edf2e9;
  --line: #dde3d8;
  --amber: #b78236;
  --amber-soft: #f4e7cf;
  --red: #a54e43;
  --red-soft: #f8e9e6;
  --shadow-lg: 0 26px 70px rgba(31, 67, 50, 0.12);
  --shadow-md: 0 12px 32px rgba(31, 67, 50, 0.08);
  --shadow-card: 0 5px 18px rgba(31, 67, 50, 0.065);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 3%, rgba(112, 149, 124, 0.14), transparent 29rem),
    radial-gradient(circle at 96% 23%, rgba(183, 130, 54, 0.08), transparent 24rem),
    var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: -62px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--forest);
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid rgba(31, 90, 69, 0.75);
  outline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 7px 18px rgba(31, 90, 69, 0.2);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 100% 0 100% 0;
}

.brand-mark::before {
  width: 13px;
  height: 23px;
  top: 10px;
  left: 13px;
  transform: rotate(-30deg);
}

.brand-mark::after {
  width: 10px;
  height: 17px;
  right: 10px;
  bottom: 8px;
  opacity: 0.72;
  transform: rotate(150deg);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-note {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
}

.boot-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(31, 90, 69, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.64);
}

.boot-mark::before {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 14px;
  height: 24px;
  content: "";
  border: 1.5px solid var(--leaf);
  border-radius: 100% 0 100% 0;
  transform: rotate(-30deg);
  animation: breathe 1.8s ease-in-out infinite;
}

.auth-screen {
  min-height: 100vh;
  padding: 0 clamp(18px, 4vw, 64px);
}

.auth-header {
  display: flex;
  width: min(1370px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid rgba(31, 90, 69, 0.12);
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.secure-note svg {
  width: 14px;
  height: 14px;
  color: var(--leaf);
}

.auth-layout {
  display: grid;
  width: min(1240px, 100%);
  min-height: calc(100vh - 156px);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(45px, 7vw, 90px) 0;
}

.auth-story {
  position: relative;
}

.auth-story h1,
.app-intro h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.auth-story h1 em,
.app-intro h1 em {
  color: var(--leaf);
  font-style: normal;
}

.auth-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.auth-points svg {
  width: 14px;
  height: 14px;
  color: var(--leaf);
}

.leaf-orbit {
  position: absolute;
  right: 4%;
  bottom: -8px;
  width: 153px;
  height: 115px;
  opacity: 0.34;
  pointer-events: none;
}

.leaf-orbit span {
  position: absolute;
  border: 1px solid var(--leaf);
  border-radius: 100% 0 100% 0;
}

.leaf-orbit span:nth-child(1) {
  top: 16px;
  left: 52px;
  width: 34px;
  height: 63px;
  transform: rotate(26deg);
}

.leaf-orbit span:nth-child(2) {
  bottom: 3px;
  left: 18px;
  width: 27px;
  height: 51px;
  transform: rotate(80deg);
}

.leaf-orbit span:nth-child(3) {
  top: 2px;
  right: 7px;
  width: 30px;
  height: 55px;
  transform: rotate(130deg);
}

.auth-card {
  padding: clamp(24px, 3vw, 35px);
  border: 1px solid rgba(31, 90, 69, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--leaf);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.step-line {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card-lead {
  margin: 10px 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.card-lead strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.form-field > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.form-input,
.form-textarea,
.form-select,
.code-input,
.phone-input-wrap,
.task-input,
.compact-field select,
.compact-field input {
  border: 1px solid var(--line);
  outline: none;
  color: var(--ink);
  background: var(--paper-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-input,
.form-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
}

.form-textarea {
  width: 100%;
  min-height: 88px;
  padding: 11px 12px;
  border-radius: 10px;
  line-height: 1.65;
  resize: vertical;
}

.form-select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23476057' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.code-input:focus,
.phone-input-wrap:focus-within,
.task-input:focus,
.compact-field select:focus,
.compact-field input:focus {
  border-color: rgba(31, 90, 69, 0.42);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(31, 90, 69, 0.075);
}

.phone-input-wrap {
  display: flex;
  height: 50px;
  align-items: center;
  overflow: hidden;
  border-radius: 11px;
}

.phone-prefix {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.phone-input-wrap input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 13px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.phone-input-wrap input::placeholder {
  color: #99a39d;
  font-size: 12px;
  letter-spacing: 0;
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.consent-row input {
  width: 14px;
  height: 14px;
  margin: 0 4px 0 0;
  accent-color: var(--forest);
}

.inline-link {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.add-button,
.subtle-button,
.text-button,
.icon-button,
.filter-tab,
.dialog-close,
.card-button {
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--forest);
  border-radius: 11px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 8px 18px rgba(31, 90, 69, 0.18);
  font-size: 12px;
  font-weight: 650;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary-button svg {
  width: 15px;
  height: 15px;
}

.primary-button:hover {
  background: var(--forest-deep);
  box-shadow: 0 10px 21px rgba(31, 90, 69, 0.22);
  transform: translateY(-1px);
}

.primary-button:disabled,
.add-button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.primary-button.compact {
  width: auto;
  height: 39px;
  border-radius: 9px;
}

.secondary-button {
  height: 39px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.secondary-button:hover {
  background: var(--sage-soft);
}

.text-button {
  padding: 3px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:disabled {
  color: #a1aaa5;
  cursor: default;
  text-decoration: none;
}

.auth-message {
  min-height: 17px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 11px;
  line-height: 1.5;
}

.auth-footnote {
  margin: 17px 0 0;
  color: #96a099;
  font-size: 10px;
  text-align: center;
}

.code-input {
  width: 100%;
  height: 58px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.35em;
  text-align: center;
}

.code-input::placeholder {
  color: #bbc1bd;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.dev-code {
  margin: -4px 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #85601f;
  background: var(--amber-soft);
  font-size: 10px;
}

.code-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.auth-footer {
  width: min(1370px, 100%);
  margin: 0 auto;
  padding: 18px 0 25px;
  color: #97a19b;
  font-size: 10px;
  text-align: center;
}

.app-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 25px 0 40px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(31, 90, 69, 0.12);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(112, 149, 124, 0.1);
}

.account-phone {
  padding: 8px 12px;
  border: 1px solid rgba(31, 90, 69, 0.13);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.62);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(31, 90, 69, 0.13);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.62);
}

.icon-button:hover {
  color: var(--forest);
  background: var(--paper);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.app-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(44px, 6vw, 78px) 14px clamp(29px, 4vw, 46px);
}

.app-intro h1 {
  font-size: clamp(37px, 4.5vw, 62px);
}

.app-lead {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.today-card {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 15px;
  padding: 16px 19px;
  border: 1px solid rgba(31, 90, 69, 0.1);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.64);
}

.progress-ring {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  place-items: center;
  border: 5px solid var(--sage);
  border-radius: 50%;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 200ms ease;
}

.progress-ring.is-started {
  border-color: rgba(183, 130, 54, 0.35);
  border-top-color: var(--amber);
  border-right-color: var(--amber);
}

.progress-ring.is-complete {
  border-color: var(--leaf);
}

.today-card p,
.today-card strong,
.today-card span {
  display: block;
}

.today-card .today-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.today-card strong {
  font-size: 13px;
}

.today-card div > span {
  margin-top: 4px;
  color: #8b9790;
  font-size: 10px;
}

.composer-card {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(31, 90, 69, 0.12);
  border-radius: 21px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.composer-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-index {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-size: 22px;
  font-weight: 300;
}

.composer-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.composer-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.task-main-row {
  display: flex;
  gap: 8px;
}

.task-input {
  min-width: 0;
  height: 45px;
  flex: 1;
  padding: 0 14px;
  border-radius: 10px;
}

.task-input::placeholder {
  color: #9aa49e;
}

.add-button {
  display: inline-flex;
  min-width: 92px;
  height: 45px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--forest);
  font-size: 12px;
  font-weight: 650;
}

.add-button:hover {
  background: var(--forest-deep);
}

.add-button svg {
  width: 16px;
  height: 16px;
}

.task-options {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.compact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-field > span {
  padding-left: 3px;
  color: #8b9790;
  font-size: 9px;
  font-weight: 600;
}

.compact-field select,
.compact-field input {
  height: 31px;
  padding: 0 26px 0 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}

.compact-field select {
  min-width: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23476057' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
}

.compact-field input {
  width: 126px;
  padding-right: 7px;
}

.input-hint {
  align-self: center;
  padding: 11px 0 0 4px;
  color: #9ca59f;
  font-size: 9px;
}

.board-section {
  margin-top: 18px;
  padding: clamp(17px, 2.3vw, 27px);
  border: 1px solid rgba(31, 90, 69, 0.1);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(13px);
}

.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3px;
}

.board-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
}

.board-header p {
  margin: 5px 0 0;
  color: #8d9892;
  font-size: 10px;
}

.subtle-button {
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.subtle-button:hover {
  color: var(--red);
  background: var(--red-soft);
}

.board-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 15px 3px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 90, 69, 0.09);
}

.search-box {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #8e9992;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 35px;
  padding: 0 12px 0 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
  font-size: 11px;
}

.search-box input::placeholder {
  color: #99a29d;
}

.search-box input:focus {
  border-color: rgba(31, 90, 69, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 90, 69, 0.07);
}

.filter-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(31, 90, 69, 0.09);
  border-radius: 9px;
  background: rgba(250, 247, 240, 0.9);
}

.filter-tab {
  min-width: 50px;
  height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #7b8981;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}

.filter-tab.is-active {
  color: var(--forest);
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 67, 50, 0.07);
}

.sort-select {
  height: 35px;
  padding: 0 27px 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  color: var(--ink-soft);
  background-color: rgba(255, 253, 248, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23476057' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  font-size: 10px;
  appearance: none;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: start;
}

.board.is-status-filtered {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.column {
  min-height: 340px;
  padding: 15px;
  border: 1px solid rgba(31, 90, 69, 0.08);
  border-radius: 18px;
  background: rgba(250, 247, 240, 0.78);
  transition: background 150ms ease, outline-color 150ms ease;
}

.column[data-status="in-progress"] {
  background: rgba(244, 231, 207, 0.31);
}

.column[data-status="done"] {
  background: rgba(237, 242, 233, 0.82);
}

.column.is-hidden {
  display: none;
}

.column.is-dragover {
  outline: 2px dashed rgba(31, 90, 69, 0.38);
  outline-offset: -5px;
  background: rgba(220, 230, 218, 0.55);
}

.column-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.column-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 90, 69, 0.08);
}

.column[data-status="in-progress"] .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 130, 54, 0.1);
}

.column[data-status="done"] .status-dot {
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(111, 148, 121, 0.12);
}

.column-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.task-list {
  display: flex;
  min-height: 272px;
  flex-direction: column;
  gap: 9px;
}

.task-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(31, 90, 69, 0.09);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  cursor: grab;
  animation: card-in 180ms ease both;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.task-card:hover {
  box-shadow: 0 9px 24px rgba(31, 67, 50, 0.095);
  transform: translateY(-2px);
}

.task-card.is-dragging {
  opacity: 0.45;
  transform: rotate(1.4deg);
}

.task-card-top {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.priority-badge,
.due-badge {
  display: inline-flex;
  height: 20px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 99px;
  color: #708078;
  background: #f0f2ec;
  font-size: 9px;
  font-weight: 650;
}

.priority-badge::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.priority-badge.priority-high {
  color: #9d5d38;
  background: #f7e9df;
}

.priority-badge.priority-low {
  color: #89938d;
  background: #f2f2ed;
}

.card-actions {
  display: flex;
  gap: 1px;
  margin: -4px -4px 0 0;
  opacity: 0;
  transition: opacity 140ms ease;
}

.task-card:hover .card-actions,
.task-card:focus-within .card-actions {
  opacity: 1;
}

.card-button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #9ba59e;
  background: transparent;
}

.card-button:hover {
  color: var(--forest);
  background: var(--sage-soft);
}

.card-button[data-action="delete"]:hover {
  color: var(--red);
  background: var(--red-soft);
}

.card-button svg {
  width: 13px;
  height: 13px;
}

.task-title-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.task-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.task-title-button:hover .task-title {
  color: var(--forest);
}

.column[data-status="done"] .task-title {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(111, 148, 121, 0.62);
  text-decoration-thickness: 1px;
}

.task-note {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #7e8c84;
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 9px 0 11px;
}

.due-badge {
  height: 20px;
  border-radius: 7px;
  color: #718077;
  background: #f4f4ee;
  font-weight: 600;
}

.due-badge svg {
  width: 10px;
  height: 10px;
}

.due-badge.is-today {
  color: #96671f;
  background: var(--amber-soft);
}

.due-badge.is-overdue {
  color: var(--red);
  background: var(--red-soft);
}

.task-time {
  color: #929d96;
  font-size: 9px;
  white-space: nowrap;
}

.task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drag-hint {
  color: #9ca69f;
  font-size: 9px;
}

.status-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.status-select {
  height: 27px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink-soft);
  background: var(--paper-soft);
  font-size: 10px;
  font-weight: 650;
  appearance: none;
  cursor: pointer;
}

.status-select-wrap svg {
  position: absolute;
  right: 7px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 20px 8px;
  text-align: center;
}

.empty-mark {
  position: relative;
  width: 49px;
  height: 49px;
  margin: 0 auto 12px;
  border: 1px solid rgba(31, 90, 69, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.56);
}

.empty-mark::before {
  position: absolute;
  top: 19px;
  left: 16px;
  width: 15px;
  height: 8px;
  content: "";
  border-bottom: 1.5px solid var(--leaf);
  border-left: 1.5px solid var(--leaf);
  transform: rotate(-45deg);
}

.empty-state strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}

.empty-state span {
  display: block;
  margin-top: 5px;
  color: #99a29d;
  font-size: 9px;
}

.loading-card {
  min-height: 100px;
  border: 1px solid rgba(31, 90, 69, 0.07);
  border-radius: 13px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent)
      0 0 / 200% 100%,
    rgba(255, 253, 248, 0.55);
  animation: shimmer 1.4s linear infinite;
}

.privacy-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.privacy-footnote svg {
  width: 12px;
  height: 12px;
}

.app-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(31, 90, 69, 0.13);
  border-radius: 21px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(20, 63, 49, 0.24);
}

.app-dialog::backdrop {
  background: rgba(18, 44, 35, 0.39);
  backdrop-filter: blur(5px);
}

.app-dialog[open] {
  animation: dialog-in 170ms ease both;
}

.dialog-form {
  padding: 22px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dialog-eyebrow {
  margin: 0 0 5px;
  color: var(--leaf);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.dialog-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
}

.dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--sage-soft);
}

.dialog-close svg {
  width: 12px;
  height: 12px;
}

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

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.privacy-copy {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.privacy-copy p {
  margin: 0 0 11px;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  display: flex;
  max-width: calc(100vw - 30px);
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--forest-deep);
  box-shadow: 0 12px 32px rgba(20, 63, 49, 0.22);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 11px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: rotate(-30deg) scale(0.96); }
  50% { opacity: 1; transform: rotate(-30deg) scale(1.05); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(9px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  to { background-position: -200% 0, 0 0; }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 45px;
  }

  .auth-story h1 {
    max-width: 720px;
    font-size: 53px;
  }

  .auth-card {
    width: min(100%, 590px);
  }

  .leaf-orbit {
    display: none;
  }

  .composer-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .composer-copy {
    display: none;
  }

  .board {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    overflow-x: auto;
    padding-bottom: 7px;
    scroll-snap-type: x proximity;
  }

  .column {
    scroll-snap-align: start;
  }
}

@media (max-width: 680px) {
  .auth-screen {
    padding: 0 12px;
  }

  .auth-header {
    padding: 18px 4px;
  }

  .secure-note {
    max-width: 130px;
    line-height: 1.5;
  }

  .auth-layout {
    min-height: auto;
    padding: 38px 0 30px;
  }

  .auth-story h1 {
    font-size: clamp(36px, 11vw, 47px);
  }

  .auth-lead {
    font-size: 13px;
  }

  .auth-points {
    display: grid;
    gap: 9px;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: 23px;
  }

  .auth-card h2 {
    font-size: 24px;
  }

  .auth-footer {
    padding-bottom: 21px;
  }

  .app-shell {
    width: min(100% - 24px, 620px);
    padding-top: 17px;
  }

  .app-header {
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-note {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .sync-state {
    display: none;
  }

  .account-area {
    gap: 7px;
  }

  .account-phone {
    padding: 7px 9px;
    font-size: 10px;
  }

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

  .app-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 37px 4px 27px;
  }

  .app-intro h1 {
    font-size: 35px;
  }

  .app-lead {
    margin-top: 13px;
    font-size: 13px;
  }

  .today-card {
    width: 100%;
  }

  .composer-card {
    padding: 15px;
    border-radius: 19px;
  }

  .task-main-row {
    flex-direction: column;
  }

  .add-button {
    width: 100%;
  }

  .task-options {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .compact-field select,
  .compact-field input {
    width: 100%;
  }

  .input-hint {
    grid-column: 1 / -1;
    padding: 0 2px;
  }

  .board-section {
    margin-top: 13px;
    padding: 14px;
    border-radius: 21px;
  }

  .board-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .filter-tabs {
    min-width: 0;
  }

  .filter-tab {
    min-width: 45px;
    padding: 0 6px;
  }

  .sort-select {
    max-width: 103px;
  }

  .board {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .board.is-status-filtered {
    grid-template-columns: 1fr;
  }

  .column {
    min-height: auto;
    padding: 13px;
  }

  .task-list {
    min-height: 0;
  }

  .task-list:has(.empty-state) {
    min-height: 145px;
  }

  .empty-state {
    min-height: 125px;
  }

  .card-actions {
    opacity: 1;
  }

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

  .dialog-form {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .secure-note {
    display: none;
  }

  .account-phone {
    max-width: 103px;
  }

  .board-toolbar {
    grid-template-columns: 1fr;
  }

  .search-box,
  .filter-tabs,
  .board-toolbar > label:last-child {
    grid-column: 1;
  }

  .filter-tabs {
    justify-content: space-between;
  }

  .filter-tab {
    flex: 1;
  }

  .sort-select {
    width: 100%;
    max-width: none;
  }
}

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