:root {
  color-scheme:dark;
  --background:#0B0D12;
  --surface:#1D222D;
  --text:#F2F4F8;
  --secondary:#A5ADBC;
  --cyan:#42E8E0;
  --magenta:#FF4FA3;
  font-variant-numeric:tabular-nums;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--background);
  font-synthesis:none;
  --green:#42E8E0;
  --muted:#8D95A5;
  --card:#151923;
  --line:#2b3240
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,select,input {
  font:inherit
}
button,a,select {
  -webkit-tap-highlight-color:transparent
}
button,select {
  min-height:46px
}
button {
  cursor:pointer;
  border:0;
  border-radius:13px;
  padding:12px 18px;
  background:var(--green);
  color:#0B0D12;
  font-weight:600
}
button.secondary {
  background:var(--surface);
  color:var(--text)
}
button:disabled {
  background:var(--surface);
  color:#8D95A5;
  cursor:default
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--cyan);
  outline-offset:4px
}
.app {
  max-width:860px;
  margin:auto;
  padding:0 24px 120px
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:28px 0
}
.brand {
  font-size:24px;
  font-weight:750;
  text-decoration:none;
  letter-spacing:-1px;
  display:flex;
  align-items:center;
  gap:10px
}
.brand-icon {
  background:var(--surface);
  color:var(--green);
  border-radius:13px;
  font-size:27px;
  width:44px;
  text-align:center
}
.profile-label {
  font-size:11px;
  color:var(--muted);
  display:grid;
  gap:3px
}
select {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 30px 8px 12px;
  color:var(--text)
}
.preview-note {
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 15px;
  font-size:12px;
  color:var(--secondary)
}
.preview-note span {
  display:block;
  color:var(--muted);
  margin-top:4px
}
main {
  padding-top:28px
}
h1 {
  font-size:27px;
  letter-spacing:-1px;
  margin:0 0 9px
}
h2 {
  font-size:19px;
  letter-spacing:-.4px;
  margin:0 0 16px
}
h3 {
  font-size:16px;
  margin:0 0 6px
}
p {
  color:var(--muted);
  line-height:1.5;
  margin:6px 0 18px
}
.eyebrow {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-weight:600;
  color:var(--green)
}
.card {
  background:var(--card);
  padding:23px;
  border-radius:20px;
  margin:20px 0
}
.row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.big-number {
  font-size:36px;
  letter-spacing:-1.5px;
  font-weight:700
}
.small {
  font-size:13px;
  color:var(--muted)
}
progress {
  width:100%;
  height:12px;
  appearance:none;
  border:0;
  margin:18px 0 10px
}
progress::-webkit-progress-bar {
  background:var(--surface);
  border-radius:10px
}
progress::-webkit-progress-value {
  background:var(--green);
  border-radius:10px
}
progress::-moz-progress-bar {
  background:var(--green);
  border-radius:10px
}
.section {
  margin:30px 0
}
.section-link {
  font-size:13px;
  color:var(--green)
}
.task {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.task:last-child {
  border-bottom:0
}
.task p {
  font-size:12px;
  margin:4px 0
}
.points {
  font-size:12px;
  background:var(--surface);
  color:var(--cyan);
  padding:5px 8px;
  border-radius:8px;
  white-space:nowrap
}
.task-actions {
  display:flex;
  align-items:center;
  gap:10px
}
.task button {
  font-size:13px;
  padding:10px 13px
}
.room {
  background:var(--card);
  border-radius:16px;
  margin:10px 0;
  overflow:hidden
}
.room summary {
  list-style:none;
  cursor:pointer;
  min-height:76px;
  padding:20px;
  display:flex;
  align-items:center;
  gap:14px
}
.room summary::-webkit-details-marker {
  display:none
}
.room-symbol {
  height:38px;
  width:38px;
  display:grid;
  place-items:center;
  background:var(--surface);
  border-radius:11px;
  color:var(--green);
  font-size:20px
}
.room-title {
  flex:1;
  font-weight:600
}
.room-title .small {
  display:block;
  margin-top:5px;
  font-weight:400;
  font-size:12px
}
.arrow {
  color:var(--muted)
}
details[open] .arrow {
  transform:rotate(180deg)
}
.room-content {
  padding:0 20px 12px
}
.room-content .task:first-child {
  border-top:1px solid var(--line)
}
.family-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.member-card {
  margin:0;
  padding:20px
}
.avatar {
  border-radius:50%;
  background:var(--surface);
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  font-size:18px;
  color:var(--green);
  font-weight:600;
  margin-bottom:16px
}
.badge {
  font-size:11px;
  color:var(--cyan);
  background:var(--surface);
  display:inline-block;
  padding:4px 7px;
  border-radius:7px
}
.empty {
  padding:20px 0;
  font-size:14px;
  color:var(--muted)
}
.settings-list .row {
  padding:16px 0;
  border-bottom:1px solid var(--line)
}
.settings-list .row:last-child {
  border:0
}
.settings-list p {
  font-size:13px;
  margin:3px 0
}
.settings-list strong {
  font-size:14px
}
.settings-value {
  font-size:13px;
  text-align:right;
  color:var(--green)
}
nav {
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:min(860px,100%);
  display:flex;
  background:var(--background);
  border-top:1px solid var(--line);
  padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  z-index:5
}
nav a {
  flex:1;
  display:grid;
  gap:4px;
  justify-items:center;
  text-decoration:none;
  font-size:11px;
  color:var(--muted);
  padding:7px;
  border-radius:12px
}
nav a span {
  font-size:24px;
  line-height:26px
}
nav a[aria-current="page"] {
  background:var(--surface);
  color:var(--green);
  font-weight:700
}
#status:not(:empty) {
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  background:var(--cyan);
  color:#0B0D12;
  padding:13px 20px;
  border-radius:12px;
  width:max-content;
  max-width:90%;
  font-size:14px;
  z-index:10
}
.storage-warning {
  color:var(--text);
  background:var(--background)2e7;
  padding:12px;
  border-radius:12px
}
@media(max-width:480px) {
  .app {
    padding-left:18px;
    padding-right:18px
  }
  header {
    padding-top:20px
  }
  .brand {
    font-size:21px
  }
  .task-actions {
    flex-direction:column;
    align-items:stretch;
    gap:6px
  }
  .points {
    text-align:center
  }
  h1 {
    font-size:29px
  }
  .family-grid {
    gap:10px
  }
  .member-card {
    padding:17px
  }
  .card {
    padding:20px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
label {
  display:grid;
  gap:8px;
  font-size:13px;
  color:var(--secondary)
}
input:not([type=checkbox]):not([type=range]) {
  min-height:46px;
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--background);
  color:var(--text)
}
input:focus-visible {
  outline:3px solid var(--cyan);
  outline-offset:3px
}
input[type=range] {
  width:100%;
  accent-color:var(--cyan);
  min-height:44px
}
input[type=checkbox] {
  width:22px;
  height:22px;
  accent-color:var(--cyan);
  flex-shrink:0
}
select {
  max-width:100%;
  width:100%
}
.profile-label select {
  width:auto
}
.check {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:var(--text)
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:18px
}
.full {
  grid-column:1/-1
}
fieldset {
  border:1px solid var(--line);
  border-radius:12px;
  margin:20px 0;
  padding:14px
}
legend {
  font-size:13px;
  color:var(--secondary)
}
dialog {
  background:var(--card);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  width:min(520px,calc(100% - 32px));
  max-height:85dvh;
  overflow:auto
}
dialog::backdrop {
  background:rgba(0,0,0,.7)
}
dialog form {
  display:grid;
  gap:16px
}
.dialog-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px
}
.target-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:20px 0
}
.target-grid strong,.plan-stats strong {
  display:block;
  font-size:22px;
  margin-top:8px
}
.plan-stats {
  margin-top:20px;
  align-items:flex-start
}
.planning-task {
  flex-wrap:wrap
}
.planning-task .task-info {
  flex:1;
  min-width:200px
}
.planning-task .task-actions {
  flex-wrap:wrap;
  width:100%;
  justify-content:flex-start
}
.deadline {
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:13px
}
.deadline>span:first-child {
  flex:1
}
.deadline:last-child {
  border:0
}
.late {
  color:var(--magenta)!important
}
.form-error {
  color:var(--magenta);
  font-size:14px
}
.form-error:empty {
  display:none
}
.history-item {
  padding:12px 0;
  border-bottom:1px solid var(--line)
}
.history-item p {
  overflow-wrap:anywhere
}
.card>button {
  margin:4px 8px 12px 0
}
.task-info {
  min-width:0
}
.task h3 {
  overflow-wrap:anywhere
}
.task-actions {
  flex-shrink:0
}
output {
  font-size:14px;
  color:var(--cyan)
}
@media(max-width:480px) {
  .form-grid {
    grid-template-columns:1fr
  }
  .planning-task .task-info {
    min-width:0;
    width:100%;
    flex-basis:100%
  }
  .planning-task .task-actions {
    flex-direction:row
  }
  .planning-task .task-actions button {
    flex:1
  }
  .row>div {
    min-width:0
  }
  .target-grid {
    gap:8px
  }
  .target-grid strong {
    font-size:18px
  }
  .preview-note {
    font-size:11px
  }
  .brand {
    font-size:20px
  }
  .profile-label {
    max-width:45%
  }
  h1 {
    font-size:27px
  }
}
/* Calendar and helper controls extend the existing mobile layout. */
.calendar-toolbar { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.calendar-toolbar button { min-width:46px; }
.calendar-date { max-width:300px; margin:18px 0; }
.month-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0; }
.month-week { display:grid; gap:14px; padding:22px; text-align:left; font-weight:400; background:var(--card)!important; color:var(--text)!important; }
.month-week strong { font-size:18px; color:var(--cyan); }
.month-week span { font-size:13px; line-height:1.5; }
.helper-row { display:flex; align-items:end; gap:12px; }
.helper-row label { flex:1; }
.helper-row input { max-width:150px; }
.helper-row .small { padding:14px 0; }
.add-helper { display:flex; align-items:end; gap:12px; }
.add-helper label { flex:1; min-width:0; }
.review-details summary { cursor:pointer; min-height:46px; font-weight:600; }
.review-details p:first-of-type { margin-top:16px; }
.recommendation-reason { color:var(--cyan); }
@media(max-width:480px) { .month-grid { grid-template-columns:1fr; } .calendar-toolbar { gap:8px; } .calendar-toolbar button { padding:12px 14px; } }
