

* { box-sizing: border-box; }
body { margin: 0; background: #f7f9fc; color: #202e42; font-family: Arial, sans-serif; font-size: 16px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .5; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8ca9ff; outline-offset: 3px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23617493' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; padding-right: 36px; }
.shell { display: flex; min-height: 100vh; }
aside { width: 260px; flex-shrink: 0; background: white; border-right: 1px solid #e5eaf0; padding: 38px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.logo { background: #e9f0ff; color: #436de0; border-radius: 14px; font-size: 36px; padding: 6px 10px; }
.caption { font-size: 12px; letter-spacing: 1.5px; color: #8491a4; margin: 54px 12px 20px; }
nav button { display: flex; gap: 14px; width: 100%; padding: 15px 13px; border: 0; background: transparent; text-align: left; border-radius: 10px; color: #617089; margin-bottom: 7px; }
nav button.selected { background: #edf2ff; color: #4164cf; }
nav small { margin-left: auto; }
.sidebottom { margin-top: auto; padding: 24px 12px 0; color: #5e708c; line-height: 1.7; }
.sidebottom p { font-size: 14px; color: #7a8799; }
main { flex: 1; min-width: 0; }
header { min-height: 85px; border-bottom: 1px solid #e5eaf0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 48px; background: #ffffffaa; font-size: 14px; color: #718096; }
.sync { max-width: 60%; text-align: right; line-height: 1.5; }
.content { max-width: 1100px; margin: auto; padding: 55px 50px; }
.eyebrow { color: #6b85b4; letter-spacing: 2px; font-size: 12px; font-weight: bold; }
h1 { font-size: 44px; letter-spacing: -1.8px; line-height: 1.18; margin: 18px 0; }
h1 span { color: #8493ab; }
.intro { color: #6b7c94; line-height: 1.6; max-width: 620px; }
.composer { margin-top: 30px; background: white; border: 1px solid #dce5f4; border-radius: 18px; padding: 23px; box-shadow: 0 8px 30px #243b6210; }
.composerlabel { color: #607fac; font-size: 14px; }
textarea { display: block; width: 100%; border: 0; resize: vertical; min-height: 90px; padding: 18px 0; color: #27384f; background: white; }
textarea::placeholder { color: #8996aa; }
.schedule-field { display: flex; align-items: center; gap: 14px; border-top: 1px solid #edf0f5; padding-top: 16px; margin-bottom: 20px; }
.schedule-field label { font-size: 14px; color: #6b7c94; }
.schedule-field select { min-width: 178px; max-width: 100%; border: 1px solid #dce5f4; border-radius: 9px; padding: 10px 36px 10px 12px; background-color: #f8faff; color: #3f5b8c; }
.composerfoot { display: flex; justify-content: space-between; gap: 12px; }
.voice { border: 1px solid #e0e7f2; background: #f8faff; color: #5c7399; border-radius: 9px; padding: 12px 16px; }
.recording { background: #ffe7e7; color: #b83131; }
.primary { border: 0; background: #486edd; color: white; border-radius: 9px; padding: 12px 20px; }
.listhead { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; gap: 15px; }
h2 { font-size: 23px; margin: 20px 0; }
h2 small { font-size: 14px; color: #8291a9; margin-left: 8px; }
.listhead input { width: 190px; max-width: 100%; background: transparent; border: 1px solid #d9e0eb; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.mobile-status { display: none; }
.week-planner { margin: 4px 0 20px; }
.week-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.week-label { color: #617493; font-size: 14px; }
.day-scope { display: flex; gap: 6px; }
.day-scope button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #65758f; font-size: 14px; padding: 10px 12px; }
.day-scope button.selected { background: #eaf0ff; border-color: #d8e3ff; color: #345dc5; }
.day-scope small { font-size: 12px; opacity: .8; }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekdays button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 88px; border: 1px solid #e0e7f2; border-radius: 12px; background: white; color: #536782; padding: 12px 6px; }
.weekdays button:hover { border-color: #aabfeb; }
.weekdays button.selected { border-color: #486edd; background: #486edd; color: white; box-shadow: 0 5px 12px #486edd24; }
.day-short { font-size: 16px; font-weight: 600; }
.day-full { display: none; }
.weekdays small { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 7px; font-size: 14px; background: #f0f4fb; color: #657f9f; }
.weekdays .selected small { background: #ffffff26; color: white; }
.week-note { margin: 12px 0 0; color: #78889e; font-size: 14px; line-height: 1.5; }
.tasks { background: white; border: 1px solid #e7ecf3; border-radius: 14px; overflow: hidden; }
article { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-bottom: 1px solid #edf0f5; }
article:last-child { border-bottom: 0; }
.check { flex-shrink: 0; width: 28px; height: 28px; margin-top: 1px; border: 1.5px solid #c4cfe1; background: white; border-radius: 8px; }
.checked { background: #eaf2ff; color: #4871d9; }
.tasktext { flex: 1; min-width: 0; line-height: 1.5; }
.task-title { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.task-meta small { font-size: 12px; color: #8593a7; }
.task-day { max-width: 100%; min-height: 40px; border: 1px solid #e2e9f5; border-radius: 8px; background-color: #f5f8ff; color: #5272aa; font-size: 14px; padding: 8px 32px 8px 10px; background-position: right 9px center; }
.completed { text-decoration: line-through; color: #8b98aa; }
.task-actions { display: flex; gap: 2px; }
.quiet { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #7587a2; font-size: 22px; }
.quiet:hover { background: #f1f5fc; }
.empty { text-align: center; padding: 42px 20px; color: #7d8da3; }
.empty > span { font-size: 42px; color: #8ba4d5; }
.empty h3 { font-size: 17px; color: #627590; font-weight: 500; }
.empty p { max-width: 420px; margin: 12px auto 0; font-size: 14px; line-height: 1.6; }
footer { display: flex; justify-content: space-between; color: #8190a5; font-size: 12px; margin-top: 22px; gap: 20px; }
.hint { font-size: 14px; line-height: 1.7; color: #8190a5; margin-top: 30px; }
@media (min-width: 1400px) {
  .day-short { display: none; }
  .day-full { display: block; font-size: 14px; }
}
@media (max-width: 1050px) {
  aside { width: 220px; padding-inline: 16px; }
  .content { padding: 40px 30px; }
}
@media (max-width: 760px) {
  aside { display: none; }
  header { padding: 14px 20px; min-height: 70px; }
  .content { padding: 30px 20px; }
  h1 { font-size: 34px; }
  .composer { padding: 18px; }
  .mobile-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
  .mobile-status button { display: flex; align-items: center; gap: 7px; border: 1px solid #e0e7f2; border-radius: 8px; padding: 10px 12px; color: #647791; background: white; font-size: 14px; }
  .mobile-status button.selected { color: #345dc5; background: #eaf0ff; border-color: #d8e3ff; }
  .mobile-status small { font-size: 12px; }
  .weekdays { gap: 6px; }
  .weekdays button { min-height: 80px; border-radius: 10px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .content { padding: 26px 16px; }
  h1 { font-size: 30px; }
  .composer { padding: 16px; }
  .composerfoot { flex-wrap: wrap; }
  .composerfoot button { flex: 1 1 140px; font-size: 14px; padding: 13px 12px; }
  .schedule-field { align-items: flex-start; flex-direction: column; gap: 8px; }
  .schedule-field select { width: 100%; }
  .listhead { flex-wrap: wrap; gap: 0; margin-bottom: 14px; }
  .listhead input { width: 100%; font-size: 16px; }
  .mobile-status { gap: 5px; }
  .mobile-status button { flex: 1; justify-content: center; padding: 10px 6px; gap: 5px; }
  .week-topline { align-items: flex-start; flex-direction: column; gap: 7px; }
  .day-scope { width: 100%; }
  .day-scope button { justify-content: center; flex: 1; border-color: #e0e7f2; }
  .weekdays { gap: 4px; }
  .weekdays button { padding: 10px 2px; border-radius: 8px; }
  article { padding: 16px 12px; gap: 10px; }
  .task-actions { flex-direction: column; gap: 6px; }
  .quiet { width: 32px; height: 36px; }
  .task-day { width: 100%; font-size: 16px; }
}
.space-switch,.family-actions { display:flex; flex-wrap:wrap; gap:.5rem }
.space-switch button,.family-actions button,.family-summary,.family-panel>button {color:#315989;background:#edf2fa;border:0;border-radius:.65rem;padding:.65rem .95rem;font:inherit;cursor:pointer}
.space-switch button[aria-pressed=true],.family-actions button[aria-pressed=true] {background:#294f9f;color:white}
.family-panel {background:white;border:1px solid #dce5ef;border-radius:1rem;padding:1.15rem;margin:1rem 0 1.4rem}
.family-panel h2 {margin-top:0}.family-panel label {display:grid;gap:.35rem}
.family-panel form {display:grid;gap:.8rem;margin-top:1rem;max-width:28rem}
.family-panel input {padding:.72rem;border:1px solid #b9cadc;border-radius:.5rem;font:inherit}
.family-panel button:disabled {opacity:.55}.family-panel code {font-size:1.05rem;align-self:center;user-select:all;overflow-wrap:anywhere}
.family-summary {font-weight:600}.family-panel ul {padding-left:1.4rem;line-height:1.6}
.family-day-heading {margin:1rem 0 .4rem;color:#355078;font-size:1rem;font-weight:650}
