:root {
  --ink: #2c2944;
  --muted: #79758c;
  --purple: #6355c7;
  --purple-dark: #4f42b0;
  --line: #eceaf2;
  --bg: #f8f8fc;
  --mint: #e2f2e9;
  --peach: #ffe8da;
  --butter: #fff1c4;
  --sky: #e4f1fc;
  --lavender: #ede7fb;
  --pink: #fbe5ef;
  --shadow: 0 10px 35px #30294706;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.55 ui-rounded,
    "SF Pro Rounded",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a078d8;
  outline-offset: 4px;
}
a {
  color: var(--purple);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  font-weight: 750;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 680;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.hidden,
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 0;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 32px 20px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 41px;
  border-radius: 13px;
  background: var(--purple);
  color: #fff0b2;
  font-size: 34px;
  line-height: 1;
}
.brand small {
  font-size: 10px;
  display: block;
  line-height: 1;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 44px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border-radius: 11px;
  min-height: 47px;
  color: #807b94;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-icon {
  width: 22px;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  font-weight: 400;
}
.nav-item:hover {
  background: #f8f6fd;
}
.nav-item[aria-current] {
  background: var(--lavender);
  color: var(--purple);
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 15px 12px;
}
.side-note {
  margin-top: auto;
  padding: 20px 16px;
  background: #faf5e9;
  border-radius: 16px;
  font-size: 12px;
  color: #8d7a52;
}
.side-note b {
  font-size: 21px;
  display: block;
  margin-bottom: 7px;
}
.side-note strong {
  color: #655436;
  display: block;
  margin-bottom: 5px;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.sidebar-bottom > span {
  font-size: 23px;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
}
.breadcrumb {
  font-size: 13px;
  color: #8a849c;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.icon-btn {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  position: relative;
  font-size: 19px;
}
.badge-dot {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: #ef9f81;
  border-radius: 50%;
  border: 2px solid #fff;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-align: left;
}
.profile-button strong {
  display: block;
  font-weight: 650;
}
.profile-button small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  flex: none;
  font-size: 24px;
  background: var(--lavender);
  position: relative;
}
.avatar.sm {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  font-size: 18px;
}
.avatar.lg {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 34px;
}
.peach {
  background: var(--peach);
}
.mint {
  background: var(--mint);
}
.butter {
  background: var(--butter);
}
.sky {
  background: var(--sky);
}
.lavender {
  background: var(--lavender);
}
.pink {
  background: var(--pink);
}
main {
  padding: 30px 40px 50px;
  max-width: 1580px;
  margin: auto;
}
.preview-banner {
  padding: 10px 16px;
  border: 1px solid #e8dff5;
  border-radius: 12px;
  background: #faf7ff;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  color: #78688d;
}
.preview-banner button {
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
  padding: 5px;
  white-space: nowrap;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
}
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}
.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 5px 12px #6355c71a;
}
.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}
.secondary {
  border: 1px solid var(--line);
  background: white;
}
.secondary:hover {
  border-color: #c7b8e8;
  background: #faf8ff;
}
.danger {
  background: #fff0ef;
  color: #b44949;
  border: 1px solid #f5d5d3;
}
.text-btn {
  color: var(--purple);
  font-size: 13px;
  min-height: 42px;
  font-weight: 650;
  padding: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 43%;
  min-height: 218px;
  border-radius: 24px;
  background: #ede7fa;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}
.hero-copy {
  padding: 31px 35px;
  align-self: center;
  z-index: 1;
}
.hero .eyebrow {
  color: #9383b7;
  margin-bottom: 10px;
}
.hero h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -1.1px;
  max-width: 460px;
}
.hero p:not(.eyebrow) {
  font-size: 13px;
  color: #8c7f9e;
  margin-top: 13px;
  max-width: 370px;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  align-self: end;
  transform: scale(1.13);
  transform-origin: center bottom;
}
.hero-today {
  background: #e4f1eb;
}
.hero-today .eyebrow {
  color: #799984;
}
.hero-today p:not(.eyebrow) {
  color: #6f897a;
}
.hero-today img {
  filter: hue-rotate(20deg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 30px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 47px;
  height: 47px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.stat strong {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 730;
  line-height: 1.1;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 26px;
  align-items: start;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 18px;
}
.section-heading .count {
  background: #ece7f9;
  font-size: 11px;
  color: #7965ab;
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 13px;
  min-height: 35px;
  font-size: 12px;
  background: white;
  color: var(--muted);
}
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 26px;
}
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 19px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.task-card:hover {
  transform: translateY(-2px);
  border-color: #d7cce9;
}
.task-card.done {
  background: #fbfefa;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.task-icon {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 29px;
}
.star-pill {
  font-size: 12px;
  font-weight: 650;
  background: #fff6db;
  color: #997d35;
  border-radius: 8px;
  padding: 4px 8px;
}
.star-pill b {
  font-size: 14px;
  margin-right: 3px;
  color: #d7aa45;
}
.task-title {
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  min-height: 24px;
}
.task-title:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 17px;
  z-index: 0;
}
.task-card button:not(.task-title) {
  position: relative;
  z-index: 1;
}
.task-meta {
  font-size: 11px;
  color: #aaa2b7;
  margin: 5px 0 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.task-meta .overdue {
  color: #bb6c52;
}
.task-meta .due {
  color: #8c7a5c;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #f2f0f7;
  padding-top: 13px;
  margin-top: auto;
}
.status {
  font-size: 11px;
  color: #7f7992;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status.available {
  color: #729680;
}
.status.available:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #89b399;
  border-radius: 50%;
}
.status .avatar {
  width: 24px;
  height: 24px;
  font-size: 14px;
  border-radius: 9px;
}
.card-action {
  border-radius: 9px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 11px;
  font-weight: 700;
  background: #f1edfb;
  color: var(--purple);
  white-space: nowrap;
}
.card-action:hover {
  background: #e8dff9;
}
.card-action.finish {
  background: #e4f2e8;
  color: #4c8a60;
}
.aside-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.aside-card h2 {
  font-size: 16px;
}
.aside-card .small-sub {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 17px;
}
.family-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}
.family-row .person-name {
  font-size: 12px;
  font-weight: 650;
  display: block;
}
.family-row small {
  font-size: 10px;
  color: var(--muted);
}
.family-row .score {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #ad8f49;
  font-weight: 600;
}
.progress {
  height: 4px;
  background: #f1edf7;
  border-radius: 9px;
  margin-top: 5px;
  overflow: hidden;
  width: 95px;
}
.progress-fill {
  height: 100%;
  background: #ab99d7;
  border-radius: 9px;
}
.progress-fill[data-percent="0"] {
  width: 0;
}
.progress-fill[data-percent="25"] {
  width: 25%;
}
.progress-fill[data-percent="50"] {
  width: 50%;
}
.progress-fill[data-percent="75"] {
  width: 75%;
}
.progress-fill[data-percent="100"] {
  width: 100%;
}
.week-note {
  background: #faf6e9;
  border-radius: 12px;
  padding: 13px;
  font-size: 11px;
  color: #9a8554;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
}
.week-note span {
  font-size: 24px;
}
.quote-card {
  background: #e9f1ed;
  border-color: #e2ebe4;
  color: #577561;
  position: relative;
  overflow: hidden;
}
.quote-card .quote-icon {
  font-size: 28px;
}
.quote-card h3 {
  font:
    22px/1.25 Georgia,
    serif;
  margin: 9px 0;
}
.quote-card p {
  font-size: 11px;
  color: #829284;
}
.family-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 23px;
  margin-top: 5px;
}
.family-strip h2 {
  font-size: 15px;
}
.family-strip p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.family-icons {
  display: flex;
  gap: 9px;
}
.family-icons button {
  padding: 0;
  position: relative;
}
.family-icons button:hover {
  transform: translateY(-3px);
}
.family-icons .leader:after {
  content: "✦";
  position: absolute;
  right: -3px;
  top: -9px;
  color: #dba94a;
  font-size: 18px;
}
.footer {
  font-size: 11px;
  color: #aaa3b7;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}
.library-top {
  display: flex;
  gap: 12px;
  margin: 24px 0 17px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 15px;
  flex: 1;
}
.search input {
  min-height: 47px;
  outline: none;
  border: 0;
  background: transparent;
  width: 100%;
  color: var(--ink);
}
.category-scroll {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 16px;
  margin-bottom: 12px;
}
.category-scroll .chip {
  white-space: nowrap;
  min-height: 39px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.library-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.library-card .task-icon {
  width: 50px;
}
.library-card h3 {
  font-size: 14px;
}
.library-card p {
  font-size: 11px;
  color: var(--muted);
}
.library-card .actions {
  margin-top: auto;
  justify-content: space-between;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.empty {
  padding: 35px 25px;
  border: 1px dashed #d9d1e6;
  border-radius: 17px;
  text-align: center;
  background: #ffffff6e;
  grid-column: 1/-1;
  color: var(--muted);
}
.empty > span {
  font-size: 35px;
  display: block;
  margin-bottom: 12px;
}
.empty h3 {
  color: #7c6e95;
  font-size: 15px;
}
.empty p {
  font-size: 12px;
  margin: 8px 0 12px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.member-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
}
.member-card .avatar {
  margin-bottom: 14px;
}
.member-card h3 {
  font-size: 19px;
}
.member-card .score-large {
  font-size: 34px;
  font-weight: 700;
  color: #ba9442;
  margin: 15px 0 2px;
}
.member-card small {
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 8px;
  background: #fff4d2;
  color: #a17f30;
  font-size: 10px;
  padding: 5px 8px;
  margin: 12px 2px 0;
}
.routine-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.routine-card h3 {
  margin: 12px 0;
}
.checklist {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #faf9fd;
  border: 1px solid #f0edf5;
  border-radius: 10px;
  font-size: 13px;
  min-height: 44px;
}
.check-row input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  flex: none;
}
.check-row:has(input:checked) span {
  text-decoration: line-through;
  color: #9b91ad;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: grid;
  gap: 6px;
  text-align: left;
}
.field.wide {
  grid-column: 1/-1;
}
label.field {
  font-size: 12px;
  font-weight: 600;
  color: #776d8b;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #e1dbe9;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  width: 100%;
  font-size: 13px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  min-height: 38px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.error {
  font-size: 12px;
  color: #b25a56;
  background: #fff0ed;
  padding: 10px 13px;
  border-radius: 9px;
  margin: 12px 0;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.section-gap {
  margin-top: 24px;
}
.history-row {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: flex-start;
}
.history-row:last-child {
  border: 0;
}
.history-row small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.history-row .avatar {
  width: 34px;
  height: 34px;
  font-size: 20px;
  border-radius: 12px;
}
.status-line {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #7d9586;
}
.status-line:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #88ad94;
}
.status-line.saving {
  color: #a08a58;
}
.status-line.saving:before {
  background: #d4b96d;
}
.status-line.failed {
  color: #bf6a5e;
}
.status-line.failed:before {
  background: #c8796d;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  max-width: 90vw;
  z-index: 120;
  display: none;
  background: #302944;
  color: white;
  padding: 14px 21px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0 10px 35px #35294f28;
}
#toast.visible {
  display: flex;
  gap: 15px;
  align-items: center;
}
#toast button {
  background: #ffffff20;
  color: #fff;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
}
dialog {
  border: 1px solid #e4ddeb;
  border-radius: 24px;
  padding: 0;
  width: 570px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #28204025;
}
dialog::backdrop {
  background: #28213d61;
  backdrop-filter: blur(5px);
}
.dialog-body {
  padding: 29px 30px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 15px;
}
.dialog-header h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
}
.close {
  border-radius: 50%;
  background: #f5f2fa;
  min-width: 36px;
  min-height: 36px;
  color: #91849f;
  font-size: 17px;
}
.dialog-body > p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.dialog-art {
  text-align: center;
  font-size: 52px;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 28px;
  margin-bottom: 20px;
}
.profile-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.profile-option {
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 5px;
  gap: 9px;
  font-size: 12px;
}
.profile-option:hover {
  background: #faf7ff;
  border-color: #c7b8e4;
}
.loading {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8a7ba5;
}
.offline-bar {
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff0cf;
  color: #98793c;
  font-size: 12px;
  margin-bottom: 15px;
}
.detail-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.pill {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #f3f0f9;
  color: #86749c;
}
.detail-steps {
  margin: 20px 0;
}
.detail-actions {
  display: grid;
  gap: 10px;
}
.detail-actions .primary {
  width: 100%;
}
.subtle-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
}
.share-link {
  font:
    12px/1.6 ui-monospace,
    monospace;
  background: #f4f0fa;
  padding: 14px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  user-select: all;
}
.display-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.display-grid .profile-option {
  min-height: 150px;
  background: #fff;
}
.week-days {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 16px;
}
.day-dot {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f0f9;
  font-size: 10px;
  color: #9b8baa;
}
.day-dot.checked {
  background: #dcecdf;
  color: #668b6f;
}
.saving-indicator {
  width: 14px;
  height: 14px;
  border: 2px solid #d8ccef;
  border-top-color: #7965b6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1500px) {
  .task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 12px;
  }
  .brand {
    font-size: 24px;
    padding: 0 10px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 26px 25px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }
  .hero-copy {
    padding: 25px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 32px;
  }
  .date {
    display: none;
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 16px 14px;
    gap: 10px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 21px;
  }
  .stat strong {
    font-size: 24px;
  }
}
@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-card {
    display: none;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero {
    min-height: 200px;
  }
  .family-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    gap: 9px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat-icon {
    width: 32px;
    height: 35px;
    font-size: 19px;
  }
  .stat strong {
    font-size: 22px;
  }
  .top-actions {
    gap: 9px;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 7px 9px 5px;
    z-index: 60;
    display: block;
    background: #fffffff5;
    backdrop-filter: blur(12px);
  }
  .sidebar .brand,
  .sidebar .side-note,
  .sidebar .sidebar-bottom,
  .sidebar .nav-divider {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    margin: 0;
    gap: 0;
  }
  .nav-item {
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    padding: 6px 9px;
    min-height: 53px;
    min-width: 53px;
  }
  .nav-icon {
    font-size: 20px;
  }
  .nav-item.optional {
    display: none;
  }
  .nav-item[aria-current] {
    border-radius: 12px;
  }
  .topbar {
    height: 76px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb:before {
    content: "⌂";
    font-size: 27px;
    color: var(--purple);
    margin-right: 7px;
    vertical-align: -3px;
  }
  .profile-button > span:not(.avatar) {
    display: none;
  }
  .top-actions {
    gap: 11px;
  }
  .icon-btn {
    width: 37px;
    min-width: 37px;
    min-height: 37px;
  }
  .avatar {
    width: 37px;
    height: 37px;
    font-size: 22px;
    border-radius: 13px;
  }
  main {
    padding: 21px 18px 94px;
  }
  .page-heading {
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 220px;
  }
  .page-heading > .primary {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 40px;
  }
  .hero {
    grid-template-columns: 1fr 37%;
    min-height: 188px;
    border-radius: 20px;
    margin-bottom: 18px;
  }
  .hero-copy {
    padding: 24px 0 24px 23px;
  }
  .hero h2 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .hero p:not(.eyebrow) {
    font-size: 11px;
    max-width: 210px;
    margin-top: 10px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .hero img {
    transform: scale(1.65);
    transform-origin: 20% bottom;
    object-fit: contain;
    opacity: 0.9;
  }
  .stats {
    gap: 8px;
    margin-bottom: 23px;
  }
  .stat {
    display: block;
    padding: 12px;
    border-radius: 14px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 19px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small {
    font-size: 10px;
    margin-top: 5px;
  }
  .task-grid {
    gap: 12px;
  }
  .task-card {
    padding: 15px;
    border-radius: 15px;
  }
  .task-icon {
    width: 41px;
    height: 41px;
    font-size: 25px;
    border-radius: 13px;
  }
  .task-title {
    font-size: 13px;
  }
  .card-top {
    margin-bottom: 12px;
  }
  .star-pill {
    padding: 3px 6px;
    font-size: 11px;
  }
  .task-meta {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .card-action {
    width: 100%;
    min-height: 39px;
  }
  .status {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .dashboard aside {
    grid-template-columns: 1fr;
  }
  .aside-card {
    padding: 19px;
  }
  .family-strip {
    padding: 18px;
  }
  .family-icons {
    gap: 10px;
    flex-wrap: wrap;
  }
  .family-icons .avatar {
    width: 39px;
    height: 39px;
    font-size: 24px;
  }
  .footer {
    font-size: 9px;
    margin-top: 23px;
    gap: 15px;
  }
  .preview-banner {
    font-size: 10px;
    padding: 9px 12px;
    margin-bottom: 20px;
    gap: 10px;
  }
  .preview-banner button {
    font-size: 10px;
  }
  .library-grid {
    gap: 11px;
  }
  .library-card {
    padding: 16px;
  }
  .library-card h3 {
    font-size: 13px;
  }
  .library-card .task-icon {
    width: 42px;
  }
  .library-card .actions {
    align-items: stretch;
  }
  .library-card .card-action {
    font-size: 10px;
  }
  .member-grid {
    gap: 12px;
  }
  .member-card {
    padding: 20px 12px;
  }
  .member-card h3 {
    font-size: 17px;
  }
  .member-card .score-large {
    font-size: 29px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .dialog-body {
    padding: 25px 22px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .form-actions .primary,
  .form-actions .secondary {
    font-size: 12px;
  }
  .display-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #toast {
    left: 50%;
    bottom: 86px;
    width: max-content;
    max-width: 90vw;
  }
  .profile-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-row {
    margin: 14px 0;
  }
  .progress {
    width: 115px;
  }
  .library-top {
    margin-top: 15px;
  }
  .routine-card {
    padding: 20px;
  }
}
@media (max-width: 680px) {
  .hero img {
    transform: none;
    width: 170%;
    height: auto;
    max-width: none;
    position: relative;
    left: -20px;
    align-self: end;
    margin-bottom: 7px;
    opacity: 1;
  }
  .sidebar-bottom {
    font-size: 12px;
  }
  .week-days {
    gap: 4px;
  }
  .day-dot {
    flex: 1;
    max-width: 29px;
    min-width: 16px;
  }
  .nav-item {
    min-width: 48px;
    padding-left: 6px;
    padding-right: 6px;
  }
}
.signed-out {
  max-width: 520px;
  margin: 8vh auto;
  padding: 20px;
  text-align: center;
}
.signed-out .brand {
  justify-content: center;
}
.signed-out > img {
  width: 100%;
  height: auto;
  margin-top: 20px;
}
.signed-out h1 {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 500;
}
.signed-out > p {
  color: var(--muted);
  margin: 15px 0 23px;
}
:root {
  --muted: #716b80;
}
.hero p:not(.eyebrow) {
  color: #716381;
}
.hero .eyebrow {
  color: #78658e;
}
.hero-today p:not(.eyebrow),
.hero-today .eyebrow {
  color: #536f60;
}
.task-meta {
  color: #75697e;
}
.status {
  color: #71687f;
}
.status.available {
  color: #4d7b5c;
}
.star-pill {
  color: #846621;
}
.footer,
.breadcrumb,
.task-meta .due {
  color: #776d80;
}
.quote-card p {
  color: #617765;
}
.week-note {
  color: #806a3a;
}
.person-name {
  color: var(--ink);
}
.sidebar-bottom {
  font-size: 12px;
  line-height: 1.5;
}
.day-dot {
  color: #76647f;
}
.preview-banner {
  color: #736183;
}
@media (max-width: 680px) {
  .chip {
    min-height: 42px;
  }
  .card-action {
    min-height: 44px;
  }
  .top-actions .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-item.optional {
    display: none;
  }
}
.sidebar-bottom > span:last-child {
  font-size: 12px;
  line-height: 1.6;
}
