.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 20px 16px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand img {
  flex-shrink: 0;
}
.brand-second {
  display: block;
  font-size: 25px;
}
.brand-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 8px;
  color: var(--muted);
}
.workspace-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 8px 24px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 12px;
  font-size: 11px;
  color: var(--muted);
}
.board-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 35dvh;
  overflow-y: auto;
  margin: 8px 0;
}
.board-link {
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--muted);
  width: 100%;
  min-height: 44px;
}
.board-link span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-link .nav-count {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  text-align: center;
}
.board-link:hover {
  background: var(--surface-alt);
}
.board-link.selected {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.board-link.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: -3px;
  background: var(--accent-soft);
  color: var(--text);
}
.board-link svg {
  width: 18px;
}
.sidebar-actions {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-actions .text-button {
  justify-content: flex-start;
  padding: 8px 0;
  font-size: 12px;
}
.sidebar-actions svg {
  width: 17px;
}
.sidebar-grow {
  margin-top: auto;
  text-align: center;
  padding: 24px 0 28px;
  font-size: 12px;
}
.sidebar-grow img {
  display: block;
  margin: 0 auto 8px;
}
.sidebar-grow p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.account-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-row > div {
  min-width: 0;
  flex: 1;
}
.account-row strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--butter);
  font-size: 13px;
  flex-shrink: 0;
}
.topbar {
  height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}
.breadcrumb strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.connection {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-right: 12px;
  white-space: nowrap;
}
.connection i {
  width: 6px;
  height: 6px;
  background: #668b50;
  border-radius: 50%;
}
.connection.offline i {
  background: var(--red);
}
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px 16px;
}
.garden-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 278px;
  background: var(--hero);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.garden-copy {
  padding: 32px 0 28px 32px;
  position: relative;
  z-index: 1;
}
.garden-copy h1 {
  font-size: clamp(26px, 2.3vw, 36px);
  margin: 12px 0 8px;
  font-weight: 500;
  line-height: 1.5;
}
.garden-copy > p {
  font-size: 12px;
  color: var(--muted);
}
.garden-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}
.garden-sticker {
  position: absolute;
  right: 28px;
  top: 24px;
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  transform: rotate(5deg);
  border-radius: 6px;
  z-index: 1;
}
.garden-friend {
  border: 0;
  background: none;
  padding: 0;
  width: 115%;
  flex-shrink: 0;
  display: block;
  margin-left: -24px;
}
.garden-friend img {
  width: 100%;
  height: auto;
  display: block;
}
.garden-friend:hover {
  transform: translateY(-3px);
}
.garden-progress {
  margin-top: 24px;
  max-width: 310px;
}
.progress-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.progress-caption > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-caption b {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.progress-track {
  height: 5px;
  border-radius: 6px;
  background: var(--line);
  margin: 8px 0;
}
.progress-track > div {
  height: 100%;
  background: var(--accent);
  width: 0;
  border-radius: inherit;
  transition: width 0.4s;
}
.garden-progress small {
  font-size: 10px;
  color: var(--muted);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
  margin: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
  border: 0;
}
.stat > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stat > div > span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat-symbol {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sage {
  background: var(--accent-soft);
}
.peach {
  background: var(--peach);
}
.butter {
  background: var(--butter);
}
.board-section {
  padding-top: 12px;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.board-heading-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.board-heading h2 {
  overflow-wrap: anywhere;
}
.board-heading-title .icon-button {
  width: 28px;
  height: 28px;
}
.board-heading-title svg {
  width: 15px;
}
.board-description {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.board-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.task-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.zone-column {
  min-width: 0;
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 12px;
}
.zone-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.zone-header .nav-count {
  margin-left: auto;
}
.zone-area {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 12px;
}
.zone-area.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}
.zone-empty {
  text-align: center;
  padding: 40px 8px;
  color: var(--muted);
  font-size: 11px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.board-footer,
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
.board-footer {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.board-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-footer {
  padding: 16px 0;
}
.page-footer > span {
  font-weight: 600;
}
.page-footer > span > span:last-child {
  font-weight: 400;
  margin-left: 8px;
}
.page-footer .text-button {
  font-size: 10px;
}
.page-footer svg {
  width: 14px;
}
.auth-screen {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100dvh;
}
.auth-story {
  background: var(--hero);
  padding: 40px 56px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-story .brand {
  font-size: 23px;
}
.auth-story-copy {
  margin: 64px 0 0;
  z-index: 1;
}
.auth-story-copy h1 {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  margin: 16px 0;
}
.auth-story-copy > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.auth-garden {
  width: min(100%, 660px);
  height: auto;
  align-self: center;
  margin: 24px 0 0;
}
.auth-story-footer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: auto;
  padding: 12px 0;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 64px 40px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 360px;
}
.auth-form-wrap h2 {
  font-size: 26px;
  margin: 12px 0 8px;
}
.auth-form-wrap > .muted {
  font-size: 12px;
}
.auth-language {
  position: absolute;
  right: 32px;
  top: 24px;
}
.auth-flower {
  margin-left: -16px;
}
.auth-tabs {
  margin: 28px 0 24px;
}
.auth-tabs > button {
  flex: 1;
  min-height: 40px;
}
.auth-form-wrap .field {
  margin-bottom: 20px;
}
.auth-form-wrap .primary {
  margin-top: 8px;
}
.auth-join-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 11px;
}
.auth-join-note svg {
  width: 19px;
  margin-top: 2px;
}
.auth-copyright {
  position: absolute;
  bottom: 24px;
  font-size: 10px;
  color: var(--muted);
}
.garden-friend {
  position: absolute;
  inset-inline-end: -16px;
  bottom: 0;
  width: 112%;
  height: 100%;
  max-width: 570px;
  margin-left: 0;
}
.garden-friend img {
  height: 100%;
  object-position: center bottom;
}
.icon-button.mobile-logout {
  display: none;
}
@media (max-width: 839px) {
  .icon-button.mobile-logout {
    display: inline-flex;
  }
}
@media (min-width: 1600px) {
  .garden-banner {
    min-height: 320px;
  }
  .garden-copy {
    padding-top: 40px;
  }
  .garden-friend {
    max-width: 580px;
  }
}
@media (max-width: 1199px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px 16px;
  }
  .main-content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .garden-copy {
    padding: 24px 0 24px 24px;
  }
  .garden-copy h1 {
    font-size: 28px;
  }
  .garden-banner {
    min-height: 266px;
  }
  .garden-sticker {
    right: 16px;
    font-size: 9px;
  }
  .stat {
    padding: 0 12px;
    gap: 8px;
  }
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-zones {
    gap: 8px;
  }
  .zone-column {
    padding: 8px;
  }
  .auth-story {
    padding: 32px;
  }
  .auth-story-copy {
    margin-top: 48px;
  }
  .auth-form-side {
    padding: 64px 32px;
  }
}
@media (max-width: 839px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 16px 24px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .brand-second {
    display: inline;
    font-size: 16px;
    margin-left: 4px;
  }
  .sidebar .brand img {
    width: 36px;
    height: 36px;
  }
  .sidebar .brand > span {
    white-space: nowrap;
  }
  .workspace-caption,
  .sidebar-label,
  .sidebar-grow,
  .account-row {
    display: none;
  }
  .board-nav {
    grid-row: 2;
    grid-column: 1/-1;
    flex-direction: row;
    max-height: none;
    margin: 0;
    gap: 8px;
    overflow-x: auto;
  }
  .board-link {
    width: auto;
    flex-shrink: 0;
    padding: 8px 12px;
  }
  .board-link span:nth-child(2) {
    max-width: 180px;
  }
  .sidebar-actions {
    border: 0;
    padding: 0;
    margin: 0;
    flex-direction: row;
    gap: 12px;
  }
  .sidebar-actions .text-button {
    font-size: 11px;
  }
  .topbar {
    height: 56px;
  }
  .topbar .connection {
    margin-right: 0;
  }
  .task-zones {
    grid-template-columns: 1fr;
  }
  .zone-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 80px;
  }
  .auth-story-copy h1 {
    font-size: 28px;
  }
  .auth-story .brand {
    font-size: 18px;
  }
  .auth-story {
    padding: 32px 24px;
  }
  .auth-form-side {
    padding: 64px 24px;
  }
  .garden-banner {
    grid-template-columns: 1.1fr 1fr;
  }
  .garden-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .garden-copy h1 {
    font-size: 27px;
  }
  .garden-progress {
    max-width: 270px;
  }
  .garden-sticker {
    font-size: 8px;
    right: 12px;
    top: 20px;
  }
  .page-footer {
    padding-bottom: 28px;
  }
  .account-mobile {
    display: inline-flex;
  }
}
@media (max-width: 599px) {
  .sidebar {
    padding: 12px 16px;
    gap: 8px;
  }
  .sidebar-actions .text-button > span:not([data-icon]) {
    max-width: 70px;
    line-height: 1.5;
  }
  .sidebar-actions .text-button {
    font-size: 10px;
    gap: 4px;
  }
  .sidebar-actions {
    gap: 8px;
  }
  .sidebar .brand {
    font-size: 13px;
    gap: 4px;
  }
  .sidebar .brand-second {
    font-size: 13px;
    margin-left: 2px;
  }
  .sidebar .brand img {
    width: 28px;
    height: 32px;
  }
  .board-link {
    font-size: 12px;
    min-height: 40px;
  }
  .main-content {
    padding: 16px;
  }
  .topbar {
    padding: 0 16px;
    gap: 8px;
  }
  .topbar .connection {
    display: none;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .garden-banner {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .garden-copy {
    padding: 24px 24px 0;
  }
  .garden-copy h1 {
    font-size: 28px;
  }
  .garden-copy > p {
    font-size: 11px;
  }
  .garden-progress {
    max-width: 100%;
    margin-top: 20px;
  }
  .garden-art {
    height: 190px;
    align-self: center;
    width: 100%;
    margin-top: 0;
  }
  .garden-friend {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
  }
  .garden-sticker {
    top: 16px;
    right: 20px;
    font-size: 9px;
  }
  .stats-strip {
    padding: 20px 0;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border: 0;
    padding: 0;
    gap: 12px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat-symbol {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .board-heading {
    margin: 4px 0 20px;
    align-items: flex-start;
    gap: 8px;
  }
  .board-heading h2 {
    font-size: 21px;
  }
  .board-heading > .primary {
    font-size: 11px;
    padding: 10px 12px;
    flex-shrink: 0;
    gap: 4px;
  }
  .board-heading > .primary svg {
    width: 16px;
  }
  .board-description {
    gap: 6px;
    font-size: 10px;
  }
  .board-toolbar {
    gap: 16px;
  }
  .board-tools {
    width: 100%;
    justify-content: space-between;
  }
  .search-wrap {
    flex: 1;
  }
  .filter-chips {
    gap: 2px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .zone-area {
    grid-template-columns: 1fr;
  }
  .page-footer > span > span:last-child {
    display: none;
  }
  .board-footer {
    font-size: 9px;
    gap: 4px;
  }
  .auth-screen {
    display: flex;
    flex-direction: column;
  }
  .auth-story {
    padding: 24px;
    min-height: 0;
  }
  .auth-story-copy {
    margin-top: 28px;
    max-width: 65%;
  }
  .auth-story-copy h1 {
    font-size: 25px;
    margin: 12px 0 8px;
  }
  .auth-story-copy > p {
    font-size: 11px;
  }
  .auth-story-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .auth-garden {
    position: absolute;
    right: -48px;
    bottom: 8px;
    width: 54%;
    height: auto;
    margin: 0;
  }
  .auth-story-footer {
    display: none;
  }
  .auth-story .brand img {
    width: 36px;
    height: 36px;
  }
  .auth-story .brand {
    font-size: 17px;
  }
  .auth-form-side {
    padding: 28px 24px 64px;
  }
  .auth-flower {
    display: none;
  }
  .auth-form-wrap h2 {
    font-size: 24px;
  }
  .auth-language {
    right: 16px;
    top: 12px;
    font-size: 10px;
  }
  .auth-form-wrap {
    max-width: 420px;
  }
  .auth-form-wrap > .muted {
    font-size: 11px;
  }
  .auth-tabs {
    margin-top: 24px;
  }
  .auth-copyright {
    bottom: 20px;
  }
}
