/* Schedule page styles: spaces, weekly planning, day cards, and schedule dialogs. */

/* Space switcher, weekly planner, day cards, reports, and schedule dialogs. */
.space-section{
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 28px;
  margin-top: 64px;
  padding: 30px 32px;
  border: 1px solid rgba(87, 102, 144, 0.11);
  border-radius: 26px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 16px 42px rgba(70, 59, 91, .075);
}
.space-section-copy h2{
  margin: 8px 0 5px;
  color: #302b43;
  font-size: clamp(23px, 2.4vw, 34px);
}
.space-section-copy p{
  margin: 0;
  color: #7d7584;
  line-height: 1.65;
}
.space-section-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.space-section-actions > span{ color: #91899a; font-size: 12px; font-weight: 800; }
.space-section-actions button{ min-height: 42px; padding: 0 14px; font-size: 13px; font-weight: 800; }
.space-switcher{
  display: grid;
  gap: 11px;
}
.space-switcher-desktop{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
.space-switcher-item{ position: relative; min-width: 0; }
.space-switcher-button{
  --space-color: var(--member-eileen);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 102, 144, .12);
  border-radius: 18px;
  color: #575064;
  background: rgba(255, 255, 255, .8);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.space-switcher-button::before{
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--space-color);
  content: "";
}
.space-switcher-button:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(70, 59, 91, .09); }
.space-switcher-button.is-active{
  border-color: color-mix(in srgb, var(--space-color) 38%, white);
  color: color-mix(in srgb, var(--space-color) 72%, #30293a);
  background: color-mix(in srgb, var(--space-color) 9%, white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 24px color-mix(in srgb, var(--space-color) 12%, transparent);
}
.space-switcher-icon{
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--space-color);
  font-size: 20px;
  font-weight: 900;
}
.space-switcher-icon.has-sticker{
  overflow: hidden;
  border: 1px solid rgba(143, 122, 234, .13);
  background: #fff;
}
.space-switcher-icon img{
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
}
.space-switcher-button span:last-child{ display: grid; min-width: 0; gap: 2px; }
.space-switcher-button strong{ font-size: 16px; }
.space-switcher-button small{ overflow: hidden; color: #91899a; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.space-switcher-empty{
  display: flex;
  grid-column: 1 / -1;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px dashed rgba(143, 122, 234, .24);
  border-radius: 18px;
  color: #766e82;
  background: rgba(255,255,255,.58);
  text-align: left;
}
.space-switcher-empty > span{ color: #8f7aea; font-size: 25px; font-weight: 500; }
.space-switcher-empty div{ display: grid; gap: 3px; }
.space-switcher-empty strong{ font-size: 14px; }
.space-switcher-empty small{ color: #9891a0; font-size: 11px; line-height: 1.55; }
.space-template-options{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 20px;
  padding: 0;
  border: 0;
}
.space-template-options legend{ margin-bottom: 10px; color: #625b69; font-size: 13px; font-weight: 900; }
.space-template-options label{ position: relative; cursor: pointer; }
.space-template-options input{ position: absolute; opacity: 0; }
.space-template-options label > span{ display: grid; gap: 3px; min-height: 72px; padding: 12px 14px; border: 1px solid rgba(87,102,144,.13); border-radius: 15px; background: #fff; }
.space-template-options b{ color: #544e60; font-size: 14px; }
.space-template-options small{ color: #948c9a; font-size: 11px; line-height: 1.45; }
.space-template-options input:checked + span{ border-color: rgba(143,122,234,.5); background: #f5f1ff; box-shadow: inset 0 0 0 1px rgba(143,122,234,.1); }
.ai-plan-steps{ display: grid; gap: 16px; }
.ai-plan-overview{ margin-bottom: 16px; padding: 15px 17px; border: 1px solid rgba(143,122,234,.18); border-radius: 17px; background: linear-gradient(135deg,#f5f1ff,#fff7fa); }
.ai-plan-overview strong{ color: #4f436d; font-size: 14px; }
.ai-plan-overview ol{ display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 11px 0 8px; padding: 0; list-style: none; counter-reset: ai-overview; }
.ai-plan-overview li{ counter-increment: ai-overview; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 9px; border-radius: 11px; color: #635975; background: rgba(255,255,255,.76); font-size: 11px; font-weight: 800; }
.ai-plan-overview li::before{ content: counter(ai-overview); display: grid; width: 21px; height: 21px; flex: none; place-items: center; border-radius: 8px; color: #fff; background: #8f7aea; font-size: 10px; }
.ai-plan-overview small{ color: #8b8390; font-size: 11px; line-height: 1.5; }
.ai-plan-step{ display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid rgba(87,102,144,.11); border-radius: 17px; background: rgba(255,255,255,.72); }
.ai-plan-step-number{ display: grid; width: 31px; height: 31px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#e799b0,#8f7aea); font-weight: 950; }
.ai-plan-step h3{ margin: 3px 0 3px; color: #393348; font-size: 16px; }
.ai-plan-step p{ margin: 0 0 12px; color: #8b8390; font-size: 12px; line-height: 1.6; }
.ai-context-fields{ display: grid; gap: 10px; }
.ai-context-fields textarea{ min-height: 150px; resize: vertical; }
.ai-previous-week{ display: grid; gap: 6px; margin-top: 11px; padding: 12px 14px; border-radius: 13px; color: #716878; background: #f8f6fb; }
.ai-previous-week strong{ color: #665982; font-size: 12px; }
.ai-previous-week p{ margin: 0; white-space: pre-line; }
.week-plan-text-output{ width: 100%; padding: 14px; border: 1px solid rgba(87,102,144,.14); border-radius: 14px; color: #575064; background: #fbfaff; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.ai-plan-step .week-import-toolbar{ justify-content: flex-start; margin-top: 10px; }
.weekly-section{
  --week-purple: var(--accent-violet);
  --week-pink: var(--member-diana);
  --week-red: var(--member-bella);
  --week-blue: var(--member-eileen);
  --week-mint: var(--accent-mint);
  --week-oat: #b89558;
  --week-ink: var(--color-ink);
}
@media (max-width: 899.98px) {.space-section{ grid-template-columns: 1fr; }
}
@media (max-width: 620px) {.space-section{ margin-top: 72px; padding: 21px 18px; }
.space-switcher{ grid-template-columns: 1fr; }
.space-switcher-button{ min-height: 65px; }
.space-template-options,
.ai-context-fields{ grid-template-columns: 1fr; }
.ai-plan-step{ grid-template-columns: 1fr; }
.ai-plan-overview ol{ grid-template-columns: 1fr; }
}
.weekly-report-day > header img,
.space-switcher-icon.has-sticker{
  background: #fff;
}
.weekly-report-day > header img{ overflow: hidden; border: 1px solid rgba(87, 102, 144, .1); border-radius: 15px; }
#weeklyTrackStart{
  scroll-margin-top: 24px;
}
.weekly-heading{ align-items: center; margin-bottom: 24px; }
.weekly-heading .eyebrow{
  display:inline-block;
  color: var(--member-diana-ink);
  background: transparent;
  box-shadow: none;
}
.weekly-heading h2{
  margin: 6px 0 0;
  color: var(--week-ink);
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.weekly-heading-actions{ align-items: center; }
.weekly-heading-actions .primary-button,
.weekly-heading-actions .secondary-button,
.weekly-chart-jump,
.week-sound-toggle{ min-height: 46px; border-radius: 14px; }
.week-sound-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(85, 165, 143, 0.24);
  color: #397d69;
  background: linear-gradient(135deg, #eff9f5, #f8fcfa);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(85, 165, 143, 0.09);
}
.week-sound-toggle > span:first-child{ font-size: 20px; line-height: 1; }
.week-sound-toggle[aria-pressed="false"]{
  color: #8b848f;
  border-color: rgba(87, 102, 144, 0.12);
  background: #f7f6f8;
  box-shadow: none;
}
.week-import-template{
  min-height: 40px;
  padding-inline: 12px;
  color: #5d668d;
  border: 1px dashed rgba(87, 102, 144, 0.28);
  background: #f6f7fb;
  font-size: 13px;
  font-weight: 800;
}
.week-import-template:hover{ color: #4c587e; border-color: rgba(87, 102, 144, 0.42); background: #eef0f7; }
.week-import-guide{
  display: grid;
  gap: 6px;
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 122, 234, 0.15);
  border-radius: 14px;
  color: #716a79;
  background: linear-gradient(135deg, #fbfaff, #fffdfd);
  font-size: 12px;
  line-height: 1.6;
}
.week-import-guide strong{ display: block; color: #5c548a; font-size: 13px; font-weight: 950; }
.weekly-chart-jump{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9e4f6f;
  border-color: rgba(231, 153, 176, 0.34);
  background: linear-gradient(135deg, #fff2f6, #fff8fa);
  box-shadow: 0 9px 20px rgba(231, 153, 176, 0.12);
  text-decoration: none;
}
.weekly-chart-jump:hover{
  border-color: rgba(231, 153, 176, 0.55);
  background: #ffedf4;
  transform: translateY(-1px);
}
.weekly-planner{
  padding: 24px;
  border-color: rgba(87, 102, 144, 0.1);
  background:
    radial-gradient(circle at 95% 3%, rgba(231, 153, 176, 0.09), transparent 24%),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(87, 102, 144, 0.035) 43px 44px),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 70px rgba(73, 57, 86, 0.08);
}
.week-timeline-panel{
  border-color: rgba(87, 102, 144, 0.12);
  background: linear-gradient(135deg, rgba(248, 247, 253, 0.96), rgba(255, 250, 248, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.week-timeline-copy strong{ color: var(--week-blue); background: #f1f3f8; }
.week-timeline-controls label,
.week-node-actions button{
  border-color: rgba(87, 102, 144, 0.12);
  background: rgba(255, 255, 255, 0.86);
}
.week-timeline-caption{ font-size: 13px; }
.week-timeline-copy{ gap: 11px; }
.week-timeline-copy strong{ font-size: 13px; }
.week-timeline-copy small{ color: #948c9a; font-size: 10px; line-height: 1.45; }
.week-record-rule{ display: flex; gap: 6px; margin: 8px 1px 0; color: #91899a; font-size: 11px; line-height: 1.55; }
.week-record-rule b{ flex: none; color: #665982; }
.week-timeline-controls{ gap: 8px; }
.week-timeline-controls label{
  min-height: 40px;
  gap: 7px;
  padding: 0 9px 0 11px;
  font-size: 12px;
}
.week-timeline-controls select{
  min-width: 96px;
  height: 32px;
  padding: 0 24px 0 6px;
  font-size: 12px;
}
.week-node-actions{ gap: 6px; padding-left: 9px; }
.week-node-actions button{ min-height: 40px; padding: 0 12px; font-size: 12px; }
.week-day-dialog-status--pending span{ color: #927755; border-color: rgba(184, 149, 88, 0.2); background: #fbf7ed; }
.week-day-dialog-status--missed span{ color: #536188; border-color: rgba(87, 102, 144, 0.16); background: #f4f5f9; }
.week-day-dialog-status--okay span{ color: #ab6980; border-color: rgba(231, 153, 176, 0.18); background: #fff6f9; }
.week-day-dialog-status--great span{ color: #af5b51; border-color: rgba(219, 125, 116, 0.18); background: #fff6f4; }
.week-day-dialog-status--record{ margin-left: auto; }
.week-day-dialog-status--record span{ color: #437d6d; border-color: rgba(85,165,143,.24); background: #f3faf7; }
.week-day-dialog-status--pending input:checked + span{ color: #856a42; border-color: rgba(184, 149, 88, 0.44); background: #f8efd9; box-shadow: 0 5px 12px rgba(184, 149, 88, 0.13); }
.week-day-dialog-status--missed input:checked + span{ color: #445176; border-color: rgba(87, 102, 144, 0.38); background: #e9edf7; box-shadow: 0 5px 12px rgba(87, 102, 144, 0.12); }
.week-day-dialog-status--okay input:checked + span{ color: #a95878; border-color: rgba(231, 153, 176, 0.42); background: #fff0f5; box-shadow: 0 5px 12px rgba(231, 153, 176, 0.12); }
.week-day-dialog-status--great input:checked + span{ color: #a94f49; border-color: rgba(219, 125, 116, 0.42); background: #fff0ed; box-shadow: 0 5px 12px rgba(219, 125, 116, 0.12); }
.week-day-dialog-status--record input:checked + span{ color: #fff; border-color: #55a58f; background: #55a58f; box-shadow: 0 5px 12px rgba(85,165,143,.2); }
.week-timeline{
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px 0 2px;
  overflow: visible;
}
.week-timeline[data-count="1"]{ grid-template-columns: minmax(220px, 360px); }
.week-timeline[data-count="2"]{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.week-timeline[data-count="3"]{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.week-timeline[data-count="4"]{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.week-timeline[data-count="5"]{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week-timeline::before{ display: none; }
.week-node{
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 106px;
  align-content: start;
  justify-items: stretch;
  gap: 8px;
  padding: 13px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(87, 102, 144, .12);
  border-radius: 16px;
  color: #665f72;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 7px 18px rgba(71, 61, 86, .045);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.week-node::before{
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(143,122,234,.22), rgba(231,153,176,.2));
  content: "";
}
.week-node:hover{
  transform: translateY(-2px);
  border-color: rgba(143, 122, 234, .28);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(77, 60, 103, .08);
}
.week-node-head{
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.week-node-head > span{
  color: #8b8296;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}
.week-node-head em{
  padding: 4px 7px;
  border-radius: 999px;
  color: #7864c1;
  background: #f0ebff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.week-node > strong{
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #3f394a;
  font-family: "Trebuchet MS", "Microsoft YaHei UI", sans-serif;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}
.week-node > strong i{ color: #c7c0cd; font-size: 11px; font-style: normal; }
.week-day-recorded-toggle{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; margin: 2px 0 16px; padding: 13px 15px; align-items: center; border: 1px solid rgba(85,165,143,.2); border-radius: 15px; background: linear-gradient(135deg,#f3faf7,#fff); cursor: pointer; }
.week-day-recorded-toggle input{ width: 19px; height: 19px; accent-color: #55a58f; }
.week-day-recorded-toggle > span{ display: grid; gap: 2px; }
.week-day-recorded-toggle b{ color: #437d6d; font-size: 13px; }
.week-day-recorded-toggle small{ color: #8b8391; font-size: 10px; line-height: 1.5; }
.week-node-progress{
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(87,102,144,.09);
}
.week-node-progress i{
  display: block;
  width: var(--week-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9abea, #e7a8bd);
  transition: width .22s ease;
}
.week-node > small{ color: #948d9b; font-size: 10px; font-weight: 750; }
.week-node.is-current:not(.is-selected){ border-color: rgba(85,165,143,.28); background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,249,246,.78)); }
.week-node.is-current:not(.is-selected) .week-node-head em{ color: #3f8171; background: #e5f5f0; }
.week-node.is-complete:not(.is-selected) .week-node-progress i{ background: linear-gradient(90deg, #78b9a7, #55a58f); }
.week-node.is-selected{
  border-color: rgba(123, 101, 204, .42);
  color: #584b84;
  background: linear-gradient(145deg, #f5f1ff, #fff8fb);
  box-shadow: 0 14px 30px rgba(94, 76, 145, .13), inset 0 0 0 1px rgba(255,255,255,.84);
}
.week-node.is-selected::before{ left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #8f7aea, #e799b0); }
.week-node.is-selected .week-node-head > span{ color: #6f5cb6; }
.week-node.is-selected .week-node-progress i{ background: linear-gradient(90deg, #8f7aea, #e799b0); }
.week-detail{ margin-top: 18px; }
.week-board{
  border-color: rgba(87, 102, 144, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 46px rgba(69, 55, 82, 0.06);
}
.week-inline-day{
  padding: 17px 20px 20px;
  background: radial-gradient(circle at 98% 0, color-mix(in srgb, var(--day-color) 8%, transparent), transparent 25%), linear-gradient(180deg, color-mix(in srgb, var(--day-color) 2.5%, white), white 38%);
}
.week-inline-day--pending{ --day-color: var(--week-oat); }
.week-inline-day--missed{ --day-color: var(--week-blue); }
.week-inline-day--okay{ --day-color: var(--week-pink); }
.week-inline-day--great{ --day-color: var(--week-red); }
.week-paired-text{
  gap: 10px;
  margin-top: 0;
  padding: 11px 12px;
  border-color: color-mix(in srgb, var(--day-color) 10%, white);
  background: color-mix(in srgb, var(--day-color) 2.5%, white);
}
.week-paired-text label{ gap: 9px; }
.week-paired-text label > span{ color: #706878; font-size: 14px; font-weight: 700; }
.week-paired-text input{ height: 46px; border-color: rgba(87, 102, 144, 0.11); background: rgba(255, 255, 255, 0.92); font-size: 16px; font-weight: 400; }
.week-paired-text label:first-child input{ border-color: rgba(238, 157, 66, 0.2); background: #fffbf5; }
.week-paired-text label:last-child input{ border-color: rgba(85, 165, 143, 0.2); background: #f6fcfa; }
.week-pair-table{
  margin-top: 14px;
  padding: 13px;
  border-color: rgba(87, 102, 144, 0.09);
  background: linear-gradient(145deg, #fbfafc, #fafbfd);
}
.week-pair-table-head,
.week-pair-row{
  grid-template-columns: 38px minmax(0, 0.95fr) minmax(0, 1.15fr) 31px;
  gap: 10px;
}
.week-pair-table-head{ padding: 0 4px 8px; }
.week-pair-row{
  min-height: 60px;
  padding: 7px;
  border-color: rgba(87, 102, 144, 0.08);
  border-left: 3px solid color-mix(in srgb, var(--day-color) 38%, white);
  box-shadow: 0 4px 12px rgba(69, 56, 81, 0.025);
}
.week-pair-number{
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: color-mix(in srgb, var(--day-color) 82%, #564d5d);
  background: color-mix(in srgb, var(--day-color) 9%, white);
}
.week-pair-table-head strong:first-of-type{ color: #a66b42; }
.week-pair-table-head strong:last-of-type{ color: #32806b; }
.week-pair-plan input{ border-color: rgba(238, 157, 66, 0.19); background: #fffaf3; }
.week-pair-record input{ border-color: rgba(85, 165, 143, 0.19); background: #f5fbf9; }
.week-pair-checks{
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(87, 102, 144, 0.09);
  border-radius: 12px;
  background: #f7f7f9;
}
.week-pair-checks button{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #9c96a1;
  background: transparent;
  font-size: 15px;
}
.week-pair-checks button:first-child[aria-pressed="true"]{
  color: #217b65;
  background: #dff4ed;
  box-shadow: 0 4px 10px rgba(63, 151, 127, 0.12);
}
.week-pair-checks button:last-child[aria-pressed="true"]{
  color: #a34f57;
  background: #fbe8e9;
  box-shadow: 0 4px 10px rgba(183, 89, 98, 0.1);
}
.week-pair-row > button{
  color: #a46a70;
  background: #fff1f1;
  opacity: 0.68;
}
.week-pair-row:hover > button{ opacity: 1; }
.week-add-pair{ border-color: color-mix(in srgb, var(--day-color) 26%, white); background: color-mix(in srgb, var(--day-color) 5%, white); }
.week-inline-note{
  display:grid;
  width:100%;
  margin-top:16px;
  gap:8px;
}
.week-inline-note > span{ color: #5e5664; font-size: 13px; font-weight: 900; }
.week-inline-note textarea{
  width:100%;
  min-height:104px;
  padding:13px 14px;
  resize:vertical;
  border:1px solid var(--soul-line);
  border-left:3px solid var(--member-diana);
  border-radius:16px;
  outline:0;
  color:var(--soul-ink);
  background:#fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
@media (max-width: 1000px) {.weekly-heading{ align-items: flex-start; flex-direction: column; }
.weekly-heading-actions{ justify-content: flex-start; }
}
@media (max-width: 720px) {.weekly-planner{ padding: 14px; }
}
@media (max-width: 440px) {
.weekly-heading-actions > *{ flex: 1 1 100%; justify-content: center; }
}
.week-pair-table-head{
  font-size: 14px;
}
.week-pair-table-head,
.week-pair-row{
  grid-template-columns: 44px minmax(0, 0.95fr) minmax(0, 1.15fr) 44px;
  gap: 12px;
}
.week-pair-row{
  min-height: 70px;
  padding: 9px;
}
.week-pair-number{
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.week-pair-plan,
.week-pair-record{
  gap: 9px;
}
.week-pair-row input{
  height: 46px;
  padding-inline: 13px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
.week-pair-checks{
  grid-template-columns: repeat(2, 38px);
  gap: 4px;
  padding: 4px;
}
.week-pair-checks button{
  width: 38px;
  height: 38px;
  font-size: 17px;
  line-height: 1;
}
.week-pair-record{
  grid-template-columns: 88px minmax(0, 1fr);
}
.week-pair-row > button{
  width: 36px;
  height: 36px;
  justify-self: center;
  align-self: center;
  margin: 0;
  font-size: 17px;
  line-height: 1;
}
.week-add-pair{
  min-height: 42px;
  margin-top: 12px;
  font-size: 12px;
}
.week-weight-text{
  display: block;
  margin-top: 14px;
}
.week-weight-text label{
  display: grid;
  grid-template-columns: auto minmax(220px, 0.48fr);
  align-items: center;
  gap: 12px;
}
.week-weight-text label > span:first-child{ color: #706878; font-size: 14px; font-weight: 700; }
.week-weight-input{ position: relative; display: block; }
.week-weight-input input{
  width: 100%;
  height: 46px;
  padding-right: 43px;
  border-color: rgba(87, 102, 144, 0.11);
  background: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 400;
}
.week-weight-input b{
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: #8b8392;
  font-size: 16px;
  font-weight: 400;
}
.week-paired-text input,
.week-weight-input input{
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
.weekly-report-dialog-card{ width: min(1400px, calc(100vw - 30px)); padding: 18px 22px 22px; }
.dialog:has(.weekly-report-dialog-card){ width: min(1400px, calc(100% - 30px)); }
.weekly-report-utility{ display: flex; justify-content: flex-end; min-height: 32px; margin-bottom: 7px; }
.weekly-report-utility > span{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.weekly-report-utility .icon-button{ width: 32px; height: 32px; }
.weekly-report-capture{
  overflow: hidden;
  border: 1px solid rgba(87, 102, 144, 0.14);
  border-radius: 22px;
  background: radial-gradient(circle at 94% 6%, rgba(231, 153, 176, 0.18), transparent 23%), radial-gradient(circle at 3% 100%, rgba(135, 159, 108, 0.13), transparent 26%), #fffeff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.weekly-report-capture-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 19px;
  border-bottom: 1px dashed rgba(87, 102, 144, 0.16);
}
.weekly-report-capture-head > div:first-child > span{ color: var(--week-blue); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.weekly-report-capture-head h3{ margin: 5px 0 3px; color: #2d334a; font-size: 28px; line-height: 1.12; }
.weekly-report-capture-head p{ margin: 0; color: #817b89; font-size: 13px; font-weight: 750; }
.weekly-report-score{ display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.weekly-report-score span{ padding: 7px 10px; border-radius: 10px; color: #69718a; background: rgba(87, 102, 144, 0.07); font-size: 11px; font-weight: 800; }
.weekly-report-score b{ margin-right: 3px; color: var(--week-blue); font-size: 17px; }
.weekly-report-score span:nth-child(1){ color:#397f6d; background:#eaf6f2; }
.weekly-report-score span:nth-child(1) b{ color:#397f6d; }
.weekly-report-score span:nth-child(2){ color:#9a6c25; background:#fff7df; }
.weekly-report-score span:nth-child(2) b{ color:#9a6c25; }
.weekly-report-score span:nth-child(3){ color:#a85f6b; background:#fff0f2; }
.weekly-report-score span:nth-child(3) b{ color:#a85f6b; }
.weekly-report-goals{ display: block; padding: 14px 28px; border-bottom: 1px solid rgba(87, 102, 144, .08); background: linear-gradient(90deg, rgba(143,122,234,.06), rgba(231,153,176,.05)); }
.weekly-report-goals-title{ display: grid; gap: 3px; }
.weekly-report-goals-title span{ color: #7462b6; font-size: 9px; font-weight: 950; letter-spacing: .11em; }
.weekly-report-goals-title small{ color: #948c9a; font-size: 9px; white-space: nowrap; }
.weekly-report-milestone-groups{ display: grid; gap: 10px; }
.weekly-report-milestone-group{ display: block; }
.weekly-report-milestone-label{ display: grid; align-content: center; gap: 3px; padding: 8px 9px; border: 1px dashed rgba(116,98,182,.16); border-radius: 10px; background: rgba(255,255,255,.48); }
.weekly-report-milestone-label b{ color: #665982; font-size: 10px; }
.weekly-report-milestone-label small{ color: #9a929f; font-size: 8px; line-height: 1.4; }
.weekly-report-goal-list{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.weekly-report-goal{ --report-goal-color: #8f7aea; position: relative; display: grid; gap: 2px; min-width: 0; min-height: 70px; padding: 9px 60px 9px 11px; align-content: center; border-left: 4px solid var(--report-goal-color); border-radius: 10px; background: rgba(255,255,255,.84); }
.weekly-report-goal--tone-1{ --report-goal-color: #e799b0; }
.weekly-report-goal--tone-2{ --report-goal-color: #55a58f; }
.weekly-report-goal--tone-3{ --report-goal-color: #db7d74; }
.weekly-report-goal span{ overflow: hidden; color: #686071; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.weekly-report-goal strong{ color: var(--report-goal-color); font-size: 15px; }
.weekly-report-goal small{ color: #9b949f; font-size: 9px; }
.weekly-report-goal img{ position: absolute; top: 9px; right: 9px; width: 50px; height: 50px; padding: 2px; border-radius: 12px; object-fit: contain; background: #fff; }
.weekly-report-progress{ padding-bottom: 10px; }
.weekly-report-progress strong{ overflow-wrap: anywhere; font-size: 12px; line-height: 1.28; }
.weekly-report-progress > i{ display: block; width: calc(100% - 2px); height: 5px; margin: 3px 0 1px; overflow: hidden; border-radius: 999px; background: rgba(87,102,144,.09); }
.weekly-report-progress > i > b{ display: block; width: var(--report-progress); height: 100%; border-radius: inherit; background: var(--report-goal-color); }
.weekly-report-statuses{ display: flex; gap: 8px; padding: 13px 28px; border-bottom: 1px solid rgba(87, 102, 144, 0.08); }
.weekly-report-status{ padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.weekly-report-status--great{ color: #a2443e; background: rgba(219, 125, 116, 0.13); }
.weekly-report-status--okay{ color: #a35d76; background: rgba(231, 153, 176, 0.16); }
.weekly-report-status--missed{ color: #4a5a85; background: rgba(87, 102, 144, 0.13); }
.weekly-report-status--pending{ color: #857358; background: rgba(184, 149, 88, 0.14); }
.weekly-report-days{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.weekly-report-day{ min-width: 0; min-height: 230px; padding: 15px; border: 1px solid rgba(87, 102, 144, 0.11); border-top: 5px solid var(--report-color); border-radius: 16px; background: rgba(255, 255, 255, 0.93); }
.weekly-report-day--great{ --report-color: var(--week-red); }
.weekly-report-day--okay{ --report-color: var(--week-pink); }
.weekly-report-day--missed{ --report-color: var(--week-blue); }
.weekly-report-day--pending{ --report-color: var(--week-oat); }
.weekly-report-day > header{ position: relative; display: flex; min-height: 58px; padding-right: 48px; }
.weekly-report-day-title{ display: grid; align-content: start; gap: 1px; }
.weekly-report-day-heading{ display: flex; align-items: center; gap: 7px; min-height: 21px; }
.weekly-report-day-title strong{ color: #40465b; font-size: 18px; line-height: 1.05; }
.weekly-report-day-title time{ color: var(--report-color); font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.weekly-report-day-title small{ color: #8b8392; font-size: 11px; font-weight: 800; }
.weekly-report-day > header img{ position: absolute; top: -4px; right: -3px; width: 56px; height: 56px; object-fit: contain; }
.weekly-report-day > header em{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .01em;
}
.weekly-report-day > header em::before{ width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.weekly-report-day--great > header em{ color: #af5b51; border-color: rgba(219, 125, 116, 0.18); background: #fff2ef; }
.weekly-report-day--okay > header em{ color: #ab6980; border-color: rgba(231, 153, 176, 0.2); background: #fff1f5; }
.weekly-report-day--missed > header em{ color: #536188; border-color: rgba(87, 102, 144, 0.19); background: #f0f2f8; }
.weekly-report-day--pending > header em{ color: #927755; border-color: rgba(184, 149, 88, 0.18); background: #fbf6ea; }
.weekly-report-day ul{ display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.weekly-report-day li{ display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 5px; align-items: baseline; color: #514b5a; font-size: 12px; line-height: 1.38; }
.weekly-report-day li b{ font-size: 16px; line-height: 1; }
.weekly-report-day li b.is-done{ color: #2b9c82; }
.weekly-report-day li b.is-missed{ color: #bf6268; }
.weekly-report-day li b.is-pending{ color: #b89558; }
.weekly-report-day li span{ font-weight: 900; }
.weekly-report-day li small{ grid-column: 2; margin-top: -5px; color: #807986; font-size: 11px; }
.weekly-report-day li.is-empty{ display: block; color: #a6a0aa; font-style: italic; }
.weekly-report-weight,
.weekly-report-diet,
.weekly-report-note{ margin: 12px 0 0; color: #837c88; font-size: 11px; line-height: 1.5; }
.weekly-report-weight b{ margin-right: 4px; color: #c77b72; }
.weekly-report-weight strong{ color: #837c88; font-size: inherit; font-weight: 750; }
.weekly-report-diet b{ margin-right: 4px; color: #688d7e; }
.weekly-report-note{ padding-top: 7px; border-top: 1px dashed rgba(87, 102, 144, 0.13); }
@media (max-width: 1200px) {.weekly-report-days{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {.weekly-report-goals{ grid-template-columns: 1fr; }
.weekly-report-goal-list{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.weekly-report-days{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weekly-report-day{ min-height: 0; }
}
@media (max-width: 560px) {.weekly-report-dialog-card{ width: min(100vw - 16px, 1400px); }
.dialog:has(.weekly-report-dialog-card){ width: min(100% - 16px, 1400px); }
.weekly-report-capture-head{ align-items: start; flex-direction: column; padding: 18px; }
.weekly-report-score{ justify-content: start; }
.weekly-report-goals{ padding: 12px 18px; }
.weekly-report-milestone-group{ grid-template-columns: 1fr; }
.weekly-report-goal-list{ grid-template-columns: 1fr; }
.weekly-report-statuses{ flex-wrap: wrap; padding: 10px 18px; }
.weekly-report-days{ grid-template-columns: 1fr; padding: 10px; }
.weekly-report-day{ min-height: 0; }
}
@media (max-width: 720px) {.week-node-actions{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.week-timeline,
.week-timeline[data-count]{
    display: flex;
    gap: 9px;
    margin-inline: -2px;
    padding: 12px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
.week-node{ flex: 0 0 184px; min-height: 102px; scroll-snap-align: start; }
.week-pair-table-head{ display: none; }
.week-pair-row{
    grid-template-columns: 36px minmax(0, 1fr) 38px;
    gap: 8px;
  }
.week-pair-plan,
.week-pair-record{
    grid-column: 2;
  }
.week-pair-number{
    grid-row: 1 / 3;
  }
.week-pair-row > button{
    grid-column: 3;
    grid-row: 1 / 3;
  }
.week-weight-text label{ grid-template-columns: 1fr; gap: 7px; }
.week-weight-input{ width: min(100%, 260px); }
}

/* Export, import, and dialog polish. */
#spaceSectionStart,
#weeklySection{ scroll-margin-top: 92px; }
.weekly-report-capture{
  background:
    radial-gradient(circle at 92% 2%, rgba(231,153,176,.13), transparent 25%),
    radial-gradient(circle at 5% 22%, rgba(85,165,143,.08), transparent 22%),
    #fcfbff;
}
.weekly-report-capture-head{ border-bottom: 1px solid rgba(87,102,144,.09); }
.weekly-report-days{ gap: 12px; }
.weekly-report-day{
  position: relative;
  overflow: hidden;
  border-top-width: 1px;
  border-color: color-mix(in srgb, var(--report-color) 18%, white);
  background: rgba(255,255,255,.9);
  box-shadow: 0 9px 25px rgba(70,58,89,.045);
}
.weekly-report-day::before{
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 15px 15px 0 0;
  background: var(--report-color);
  content: "";
}
.weekly-report-day--great{ --report-color: #db7d74; }
.weekly-report-day--okay{ --report-color: #e799b0; }
.weekly-report-day--missed{ --report-color: #576690; }
.weekly-report-day--pending{ --report-color: #b89558; }
#weekImportDialog .dialog-card{
  width: min(860px, calc(100vw - 28px));
  background:
    radial-gradient(circle at 100% 0, rgba(231,153,176,.12), transparent 25%),
    radial-gradient(circle at 0 55%, rgba(143,122,234,.08), transparent 30%),
    #fffdfc;
}
#weekImportDialog .dialog-head{ margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid rgba(87,102,144,.08); }
#weekImportDialog .dialog-head h2{ letter-spacing: -.035em; }
.ai-simple-guide{
  position: relative;
  display: grid;
  margin-bottom: 16px;
  padding: 18px 20px 18px 64px;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(143,122,234,.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #f1edff 0%, #fff6fa 72%);
  box-shadow: 0 12px 30px rgba(83,67,123,.07);
}
.ai-simple-guide::before{ position: absolute; top: 16px; left: 18px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#8f7aea,#e799b0); box-shadow: 0 8px 17px rgba(118,93,204,.2); content: "✦"; font-size: 15px; }
.ai-simple-guide::after{ position: absolute; top: -45px; right: -35px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.32); content: ""; }
.ai-simple-guide strong{ position: relative; z-index: 1; color: #453b65; font-size: 15px; }
.ai-simple-guide small{ color: #817789; font-size: 11px; line-height: 1.6; }
.ai-provider-link{ position: relative; z-index: 1; display: inline-flex; width: fit-content; min-height: 32px; margin-top: 4px; padding: 0 12px; align-items: center; gap: 6px; border: 1px solid rgba(143,122,234,.18); border-radius: 11px; color: #6754ad; background: rgba(255,255,255,.72); font-size: 11px; font-weight: 900; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.ai-provider-link:hover{ transform: translateY(-1px); background: #fff; }
.ai-context-compact{ margin-bottom: 14px; padding: 0 17px 15px; border: 1px solid rgba(87,102,144,.1); border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px rgba(255,255,255,.9); }
.ai-context-compact summary{ padding: 14px 0 11px; color: #655a75; font-size: 12px; font-weight: 900; cursor: pointer; }
.ai-context-compact p{ margin: -2px 0 10px; color: #918995; font-size: 11px; }
.ai-context-compact textarea{ min-height: 92px; }
.ai-copy-stack{ position: relative; display: grid; gap: 11px; }
.ai-copy-stack::before{ position: absolute; top: 36px; bottom: -88px; left: 30px; width: 2px; background: linear-gradient(var(--member-diana),var(--member-bella),var(--member-eileen)); content: ""; opacity: .42; }
.ai-copy-row{
  --ai-step-color: var(--member-diana);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 14px 15px;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--ai-step-color) 26%, white);
  border-radius: 19px;
  background: linear-gradient(135deg,color-mix(in srgb,var(--ai-step-color) 7%,white),rgba(255,255,255,.94));
  box-shadow: 0 10px 26px rgba(61,50,80,.055);
}
.ai-copy-row:nth-child(2){ --ai-step-color: var(--member-bella); }
.ai-copy-number{ position: relative; z-index: 1; display: grid; width: 33px; height: 33px; place-items: center; border: 3px solid #fff; border-radius: 12px; color: #fff; background: var(--ai-step-color); box-shadow: 0 5px 13px color-mix(in srgb,var(--ai-step-color) 24%,transparent); font-size: 12px; font-weight: 950; }
.ai-copy-row > div{ display: grid; min-width: 0; gap: 3px; }
.ai-copy-row strong{ color: #3e3749; font-size: 14px; }
.ai-copy-row small{ overflow: hidden; color: #8b8390; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.ai-copy-row button{ min-width: 132px; color:color-mix(in srgb,var(--ai-step-color) 78%,#302b43); border-color:color-mix(in srgb,var(--ai-step-color) 34%,white); background:color-mix(in srgb,var(--ai-step-color) 8%,white); box-shadow: none; }
#copyPreviousWeekButton{ color:var(--member-diana-ink); border-color:color-mix(in srgb,var(--member-diana) 38%,white); background:color-mix(in srgb,var(--member-diana) 10%,white); }
#copyAiPromptButton{ color:#fff; border-color:var(--member-bella); background:var(--member-bella); }
#copyAiPromptButton:hover{ background:color-mix(in srgb,var(--member-bella) 86%,#8f3f3a); }
.ai-import-final{ --ai-step-color:var(--member-eileen); position:relative; display: grid; margin-top: 16px; padding: 19px; gap: 13px; border: 1px solid color-mix(in srgb,var(--ai-step-color) 28%,white); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb,var(--ai-step-color) 7%,white), rgba(255,255,255,.94)); box-shadow: 0 12px 30px color-mix(in srgb,var(--ai-step-color) 9%,transparent); }
.ai-import-final > div{ display: grid; gap: 3px; }
.ai-import-final strong{ color: color-mix(in srgb,var(--ai-step-color) 82%,#302b43); font-size: 15px; }
.ai-import-final small{ color: #7d7d89; font-size: 11px; line-height: 1.5; }
.ai-import-final textarea{ min-height: 230px; border-color: color-mix(in srgb,var(--ai-step-color) 22%,white); background: rgba(255,255,255,.92); }
@media (max-width: 899.98px) {#spaceSectionStart,
#weeklySection{ scroll-margin-top: 22px; }
}
@media (max-width: 560px) {.ai-copy-row{ grid-template-columns: 30px minmax(0, 1fr); }
.ai-copy-row button{ grid-column: 1 / -1; width: 100%; }
.ai-copy-row small{ white-space: normal; }
.ai-context-compact{ padding-inline: 13px; }
.ai-import-final{ padding: 14px; }
.ai-provider-link{ width: 100%; justify-content: center; }
}

/* Mobile schedule interaction and layout. */
.space-switcher-mobile{ display:none; }
.week-item-state{ position:relative; }
.week-item-state summary{ list-style:none; }
.week-item-state summary::-webkit-details-marker{ display:none; }
.week-item-state-choices{ position:absolute; z-index:20; top:calc(100% + 7px); left:0; display:grid; width:244px; padding:7px; grid-template-columns:repeat(4,1fr); gap:5px; border:1px solid var(--soul-line); border-radius:16px; background:#fff; box-shadow:0 18px 42px rgba(52,41,64,.16); }
.week-item-state:not([open]) .week-item-state-choices{ display:none; }
.week-item-state-choices button{ display:grid; min-height:52px; padding:5px 2px; place-items:center; align-content:center; gap:2px; border:0; border-radius:10px; color:var(--soul-muted); background:#f8f6f7; cursor:pointer; }
.week-item-state-choices b{ font-size:18px; }
.week-item-state-choices span{ font-size:10px; font-weight:800; }
.week-item-state-choices button[aria-pressed="true"]{ color:var(--soul-violet); background:var(--soul-violet-soft); }
.weekly-report-day li b.is-changed{ color:var(--soul-gold); }
@media (max-width:899.98px) {.space-section::before,
.weekly-section::before,
.weekly-planner::before,
.week-timeline-panel::before,
.week-timeline-caption::before,
.weekly-heading::before{ display:none; }
.space-section,
.weekly-section{ width:auto; max-width:none; margin:12px 10px; }
.space-section,
.weekly-section{ padding:20px 16px; overflow:visible; border:1px solid rgba(71,60,79,.08); border-radius:26px; background:var(--soul-paper); box-shadow:var(--soul-shadow); }
.space-section-copy{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.space-section-copy h2{ margin:6px 0 0; color:var(--soul-ink); font-size:clamp(27px,7.4vw,34px); line-height:1.12; }
.space-section-copy p,
.week-timeline-copy{ display:none; }
.space-section-actions{ display:flex; width:auto; align-items:center; gap:4px; }
.space-section-actions>span{ display:none; }
.week-action-menu>summary{ display:grid; width:38px; min-width:38px; height:38px; padding:0; place-items:center; border:0; border-radius:50%; color:#7765c2; background:transparent; box-shadow:none; font-size:19px; font-weight:900; list-style:none; cursor:pointer; }
.week-action-menu{ position:relative; }
.week-action-menu>summary::-webkit-details-marker{ display:none; }
.week-action-menu[open]>div{ position:fixed; z-index:120; right:14px; bottom:calc(88px + env(safe-area-inset-bottom)); left:14px; display:grid; padding:12px; grid-template-columns:1fr 1fr; gap:8px; border:1px solid var(--soul-line); border-radius:22px; background:rgba(255,254,252,.98); box-shadow:0 20px 70px rgba(46,36,54,.24); }
.week-action-menu[open]>div button{ min-width:0; min-height:48px; padding:0 10px; border:1px solid rgba(125,107,210,.14); border-radius:14px; color:#6555aa; background:#f7f4ff; font-size:11px; font-weight:850; }
.week-action-menu[open]>div .is-danger{ color:var(--color-danger); border-color:rgba(207,69,91,.14); background:#fff7f8; }
.space-section-actions .section-add-button,
.space-section-actions .section-action-menu>summary{ color:#6e61a8; }
.space-section{ background:linear-gradient(155deg,rgba(248,252,251,.97),rgba(255,251,253,.95)); }
.space-section-copy{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"space-eyebrow space-actions" "space-title space-actions"; align-items:center; gap:4px 8px; }
.space-section-copy>.eyebrow{ grid-area:space-eyebrow; align-self:end; }
.space-section-copy>h2{ grid-area:space-title; align-self:start; }
.space-section-copy>.space-section-actions{ grid-area:space-actions; align-self:center; }
.space-switcher{ margin-top:15px; }
.space-switcher-desktop{ display:none; }
.space-switcher-mobile{ display:flex; width:calc(100% + 32px); margin:0 -16px; padding:0 16px 5px; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.space-switcher-mobile::-webkit-scrollbar{ display:none; }
.space-switcher-item{ flex:0 0 82%; scroll-snap-align:center; }
.space-switcher-button{ display:flex; width:100%; min-height:118px; padding:18px; align-items:center; gap:15px; border:1px solid var(--soul-line); border-radius:22px; color:var(--soul-ink); background:#fff; box-shadow:0 10px 24px rgba(73,58,80,.06); text-align:left; }
.space-switcher-button.is-active{ border-color:color-mix(in srgb,var(--space-color) 32%,white); background:color-mix(in srgb,var(--space-color) 8%,white); }
.space-switcher-icon{ display:grid; width:64px; height:64px; flex:0 0 auto; place-items:center; overflow:hidden; border-radius:18px; background:var(--space-color); color:#fff; font-size:26px; }
.space-switcher-icon img{ width:100%; height:100%; object-fit:contain; }
.space-switcher-button>span:last-child{ display:grid; gap:3px; }
.space-switcher-button strong{ font-size:22px; }
.space-switcher-button small{ color:var(--soul-muted); font-size:11px; }
.space-switcher-empty{ padding:18px; border-radius:18px; background:#f8f6f7; }
.weekly-section{ padding:0; overflow:visible; border:0; background:transparent; box-shadow:none; }
.weekly-heading{ padding:3px 4px 12px; }
.weekly-heading .eyebrow{ display:block; }
.weekly-heading h2{ max-width:none; margin:5px 0 0; color:var(--soul-ink); font-size:clamp(26px,7.5vw,34px); line-height:1.15; white-space:normal; }
.weekly-planner{ width:100%; }
.week-timeline-panel{ padding:13px; border:1px solid var(--soul-line); border-radius:23px; background:rgba(255,254,251,.94); box-shadow:var(--soul-shadow); }
.week-timeline-caption{ display:block; }
.week-timeline-controls{ display:grid; gap:8px; }
.week-month-switcher{ display:grid; grid-template-columns:38px minmax(0,1fr) 38px; align-items:center; gap:5px; }
.week-month-switcher>button{ width:38px; min-height:40px; padding:0; border:0; border-radius:12px; color:#7462bd; background:#f6f3ff; font-size:18px; font-weight:900; }
.week-period-fields{ display:grid; min-width:0; grid-template-columns:1fr 1fr; gap:5px; }
.week-period-fields select{ width:100%; min-width:0; height:40px; padding:0 25px 0 9px; border:1px solid var(--soul-line); border-radius:12px; color:var(--soul-ink); background-color:#fff; font-size:12px; font-weight:800; }
.week-node-actions{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 40px; gap:6px; }
.week-node-actions>button{ min-width:0; min-height:42px; padding:0 7px; border-radius:13px; font-size:11px; font-weight:900; }
.week-action-menu>summary{ width:40px; min-width:40px; height:42px; font-size:18px; }
.week-timeline{ display:flex; width:calc(100% + 26px); margin:12px -13px 0; padding:0 13px 5px; gap:9px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.week-timeline::-webkit-scrollbar{ display:none; }
.week-node{ flex:0 0 84%; scroll-snap-align:center; }
.week-record-rule{ margin:7px 2px 0; color:var(--soul-muted); font-size:10px; }
.week-empty{ margin-top:12px; border-radius:20px; }
.week-detail{ margin-top:12px; }
.week-board{ padding:10px; border:1px solid var(--soul-line); border-radius:24px; background:rgba(255,254,252,.96); box-shadow:var(--soul-shadow); }
.week-inline-day{ margin:0; padding:16px 12px; border:0; border-radius:20px; background:#fffaf9; box-shadow:none; }
.week-inline-day-head{ display:grid; margin-bottom:16px; grid-template-columns:minmax(0,1fr) 74px; grid-template-areas:"identity sticker" "statuses statuses" "actions actions"; align-items:center; gap:10px 12px; }
.week-day-identity{ grid-area:identity; display:grid; min-width:0; gap:5px; }
.week-day-identity > span{ color:var(--day-color,var(--soul-pink)); font-size:10px; font-weight:900; letter-spacing:.13em; }
.week-day-identity input{ width:100%; min-width:0; padding:0; border:0; outline:0; color:var(--soul-ink); background:transparent; font-size:29px; font-weight:800; line-height:1.15; }
.week-day-sticker-button{ grid-area:sticker; display:grid; width:74px; height:74px; padding:0; place-items:center; overflow:hidden; border:1px solid var(--soul-line); border-radius:20px; color:var(--soul-muted); background:#fff; }
.week-day-sticker-button img{ width:100%; height:100%; object-fit:contain; }
.week-day-sticker-button small{ font-size:9px; }
.week-day-statuses{ grid-area:statuses; display:grid; grid-template-columns:repeat(4,1fr); gap:5px; }
.week-day-statuses button{ min-width:0; min-height:34px; padding:0 3px; border:1px solid var(--soul-line); border-radius:11px; color:#817987; background:#fff; font-size:9px; font-weight:850; }
.week-day-statuses button.is-active{ color:#fff; border-color:transparent; background:var(--day-color,var(--soul-pink)); }
.week-day-primary-actions{ grid-area:actions; display:grid; grid-template-columns:1.15fr .85fr; gap:7px; }
.week-record-today,
.week-shift-day{ min-height:40px; border:1px solid var(--soul-line); border-radius:13px; color:#756d79; background:#fff; font-size:10px; font-weight:900; }
.week-record-today.is-recorded{ color:#2f806c; border-color:rgba(76,167,140,.25); background:var(--soul-mint-soft); }
.week-shift-day{ color:#9a6c26; border-color:rgba(215,155,63,.22); background:var(--soul-gold-soft); }
.week-focus-field{ margin:0 0 14px; }
.week-focus-field label{ display:grid; gap:7px; }
.week-focus-field span,
.week-inline-note>span{ color:#5e5664; font-size:14px; font-weight:900; }
.week-focus-field input{ width:100%; height:50px; padding:0 13px; border:1px solid rgba(215,155,63,.2); border-radius:15px; outline:0; color:var(--soul-ink); background:#fffdf8; font-size:13px; }
.week-item-table{ padding:12px 9px; border:1px solid var(--soul-line); border-radius:18px; background:#fff; }
.week-item-table-head{ display:flex; padding:0 3px 10px; align-items:center; justify-content:space-between; gap:8px; }
.week-item-table-head strong{ font-size:14px; }
.week-item-table-head small{ display:none; }
.week-item-rows{ display:grid; gap:8px; }
.week-item-row{ display:grid; min-width:0; grid-template-columns:44px minmax(0,1fr) 34px; align-items:center; gap:6px; }
.week-item-number{ display:none; }
.week-item-state{ grid-column:1; }
.week-item-state-current{ display:grid; width:44px; height:44px; padding:0; place-items:center; border:1px solid var(--soul-line); border-radius:13px; color:#7e7582; background:#faf9fa; }
.week-item-state-current b{ font-size:21px; }
.week-item-state-current span{ display:none; }
.week-item-row--done .week-item-state-current{ color:#2f8a73; border-color:rgba(76,167,140,.25); background:var(--soul-mint-soft); }
.week-item-row--changed .week-item-state-current{ color:#ad792b; border-color:rgba(215,155,63,.25); background:var(--soul-gold-soft); }
.week-item-row--missed .week-item-state-current{ color:#bd6370; border-color:rgba(220,121,111,.22); background:var(--soul-coral-soft); }
.week-item-state-choices{ position:fixed; z-index:140; top:auto; right:14px; bottom:calc(88px + env(safe-area-inset-bottom)); left:14px; width:auto; grid-template-columns:repeat(4,1fr); }
.week-item-text{ grid-column:2; width:100%; min-width:0; height:44px; padding:0 11px; border:1px solid var(--soul-line); border-radius:13px; outline:0; color:var(--soul-ink); background:#fff; font-size:13px; text-overflow:ellipsis; }
.week-item-remove{ grid-column:3; display:grid; width:34px; height:34px; padding:0; place-items:center; border:0; border-radius:11px; color:#bd6e7b; background:var(--soul-pink-soft); font-size:17px; }
.week-add-item{ width:100%; min-height:41px; margin-top:9px; border:1px dashed rgba(125,107,210,.23); border-radius:13px; color:#705dbb; background:#faf8ff; font-size:10px; font-weight:900; }
.week-paired-text{ margin-top:12px; }
.week-inline-note{ display:grid; margin-top:16px; gap:8px; }
.week-inline-note textarea{ width:100%; min-height:104px; padding:13px; resize:vertical; border:1px solid var(--soul-line); border-left:4px solid var(--soul-pink); border-radius:16px; outline:0; color:var(--soul-ink); background:#fff; font-size:13px; line-height:1.6; }
.space-template-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.space-template-option{ min-height:90px; padding:13px; }
}
@media (max-width:390px) {.space-section{ margin-inline:7px; padding-inline:13px; }
.space-switcher-mobile{ width:calc(100% + 26px); margin-inline:-13px; padding-inline:13px; }
.weekly-heading h2{ font-size:26px; }
.week-item-row{ grid-template-columns:42px minmax(0,1fr) 32px; }
.week-day-statuses button{ font-size:8px; }
}
@media (max-width:899.98px) {.space-section{ border-color:rgba(71,60,79,.065); box-shadow:0 13px 34px rgba(70,55,77,.065); }
.week-action-menu>summary{ width:34px; min-width:34px; height:34px; }
.week-action-menu[open]>div{ padding-top:16px; }
.space-switcher-mobile{ scroll-padding-inline:16px; }
.space-switcher-item{ flex-basis:88%; }
.space-switcher-button{ min-height:104px; padding:15px; border-color:rgba(69,61,75,.08); box-shadow:0 8px 20px rgba(73,58,80,.045); }
.space-switcher-button.is-active{ border-color:color-mix(in srgb,var(--space-color) 28%,white); background:color-mix(in srgb,var(--space-color) 7%,white); }
.space-switcher-icon{ width:58px; height:58px; border-radius:16px; }
.space-switcher-button strong{ font-size:20px; }
.weekly-heading{ padding-inline:0; }
.week-timeline-panel{ padding:11px; border-color:rgba(71,60,79,.07); box-shadow:0 10px 28px rgba(70,55,77,.055); }
.week-board{ padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.week-inline-day{ padding:14px 3px 7px; background:transparent; }
.week-day-statuses button{ border-color:rgba(70,62,75,.09); background:#fff; }
.week-day-statuses .week-day-status--pending.is-active{ color:#665f69; background:#eee9ed; }
.week-day-statuses .week-day-status--missed.is-active{ color:#fff; background:#cf6f77; }
.week-day-statuses .week-day-status--okay.is-active{ color:#fff; background:#df8ca5; }
.week-day-statuses .week-day-status--great.is-active{ color:#fff; background:#4ca78c; }
.week-item-table{ padding:3px 0 0; border:0; border-radius:0; background:transparent; }
.week-item-table-head{ padding:0 1px 8px; }
.week-item-rows{ gap:7px; }
.week-item-row{ grid-template-columns:43px minmax(0,1fr) 32px; gap:5px; }
.week-item-state-current,
.week-item-text{ border-color:rgba(70,62,75,.09); background:#fff; }
.week-item-text{ padding-inline:10px; font-size:12px; }
.week-item-remove{ width:32px; background:#fff2f3; }
.week-add-item{ color:#6b5aad; border-color:rgba(125,107,210,.16); background:#fbfaff; }
.week-focus-field input{ border-color:rgba(215,155,63,.14); background:#fffdfa; }
.week-inline-note textarea{ border-left-width:3px; }
#spaceForm .space-template-options{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#spaceForm .space-template-options legend{ grid-column:1/-1; margin-bottom:0; }
#spaceForm .space-template-options label>span{ min-height:58px; padding:10px 11px; align-content:center; }
#spaceForm .dialog-fields{ margin-top:11px; }
#spaceForm .space-icon-picker{ margin-top:10px; }
#weekImportDialog .dialog-card{ max-height:min(90dvh,760px); }
.ai-simple-guide{ display:grid; min-height:0; padding:13px 13px 13px 54px; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
.ai-simple-guide::before{ top:13px; left:13px; width:31px; height:31px; }
.ai-simple-guide strong{ font-size:12px; line-height:1.45; }
.ai-provider-link{ min-height:34px; padding-inline:9px; }
.ai-copy-stack{ gap:8px; }
.ai-copy-row{ min-height:0; padding:10px; grid-template-columns:31px minmax(0,1fr) 58px; gap:8px; }
.ai-copy-number{ width:29px; height:29px; }
.ai-copy-row strong{ font-size:12px; }
.ai-copy-row small{ font-size:9px; }
.ai-copy-row button{ min-width:0; min-height:36px; padding:0 8px; font-size:10px; }
.ai-import-final{ margin-top:9px; padding:11px; }
.ai-import-final>div{ margin-bottom:7px; }
.ai-import-final strong{ font-size:12px; }
.ai-import-final small{ font-size:9px; }
.week-import-paste textarea{ min-height:118px; }
.weekly-report-goals{ padding-top:9px; }
.weekly-report-milestone-groups,
.weekly-report-milestone-group{ display:block; }
.weekly-report-milestone-group + .weekly-report-milestone-group{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(87,102,144,.12);
}
.weekly-report-goal-list{ display:grid; grid-template-columns:1fr; gap:7px; }
.weekly-report-goal span,
.weekly-report-progress strong{ overflow:visible; text-overflow:clip; white-space:normal; }
.weekly-report-dialog-card>.dialog-actions{ display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.weekly-report-dialog-card>.dialog-actions .dialog-spacer{ display:none; }
.weekly-report-dialog-card>.dialog-actions .text-button{ display:none; }
.weekly-report-dialog-card>.dialog-actions button{ min-width:0; padding-inline:8px; font-size:10px; }
.weekly-report-dialog-card>.dialog-actions .primary-button{ grid-column:1/-1; }
.weekly-report-utility>.icon-button{ display:none; }
}
@media (max-width:899.98px) {.space-section{
    padding-top:17px;
    padding-bottom:17px;
  }
.space-section-copy{ margin-bottom:10px; }
.space-section-copy h2{ text-wrap:balance; }
.space-section-actions{ gap:4px; }
.week-action-menu>summary{
    width:32px;
    min-width:32px;
    height:32px;
    border-radius:50%;
    color:var(--nailin-blue);
    background:transparent;
    box-shadow:none;
  }
.week-action-menu>summary{ letter-spacing:-2px; }
.space-switcher-mobile{ margin-top:2px; }
.space-switcher-button{ min-height:92px; }
.space-switcher-icon{ width:52px; height:52px; }
.weekly-section{ margin-top:9px; }
.weekly-heading{ margin-bottom:8px; }
.week-timeline-panel{ padding-inline:7px; }
.week-inline-day{ padding-inline:0; }
.week-inline-day>.week-inline-day-main,
.week-item-table,
.week-focus-field,
.week-inline-note{ width:100%; max-width:none; }
.week-day-statuses .week-day-status--pending.is-active{ color:#5f5961; background:var(--neutral-soft); }
.week-day-statuses .week-day-status--missed.is-active{ color:#fff; background:#88727c; }
.week-day-statuses .week-day-status--okay.is-active{ color:#503641; background:var(--jiaran-pink); }
.week-day-statuses .week-day-status--great.is-active{ color:#fff; background:var(--bella-red); }
.week-item-state-current[data-state="changed"]{ color:#fff; background:var(--bella-red); }
.week-day-dialog-status--pending input:checked + span{ color:#5f5961; border-color:#ded9de; background:var(--neutral-soft); box-shadow:none; }
.week-day-dialog-status--missed input:checked + span{ color:#fff; border-color:#88727c; background:#88727c; box-shadow:none; }
.week-day-dialog-status--okay input:checked + span{ color:#503641; border-color:var(--jiaran-pink); background:var(--jiaran-pink); box-shadow:none; }
.week-day-dialog-status--great input:checked + span{ color:#fff; border-color:var(--bella-red); background:var(--bella-red); box-shadow:none; }
.weekly-report-status--missed{ color:#66515b; background:rgba(136,114,124,.13); }
}
@media (max-width:899.98px) {body.is-mobile-app #spaceSectionStart[hidden],
body.is-mobile-app #weeklySection[hidden]{ display:none; }
.space-section{
    margin-inline:8px;
    padding:16px 13px;
    border-radius:24px;
    border-color:var(--soul-hairline);
    box-shadow:0 12px 34px rgba(69,52,65,.05);
  }
.space-section-copy{
    min-height:0;
    margin:0 0 9px;
    gap:9px;
    align-items:end;
  }
.space-section-copy h2{
    margin:0;
    color:var(--soul-ink);
    font-size:27px;
    line-height:1.08;
  }
.space-section-actions{
    align-self:end;
    gap:6px;
  }
.week-action-menu>summary{
    display:grid;
    width:30px;
    min-width:30px;
    height:30px;
    padding:0;
    place-items:center;
    border:0;
    border-radius:50%;
    color:var(--soul-nailin);
    background:rgba(87,102,144,.065);
    box-shadow:none;
    font-size:16px;
    line-height:1;
  }
.week-action-menu[open]>div{
    right:10px;
    bottom:calc(79px + env(safe-area-inset-bottom));
    left:10px;
    padding:10px;
    gap:7px;
    border:1px solid var(--soul-hairline);
    border-radius:19px;
    background:rgba(255,253,251,.985);
    box-shadow:0 18px 54px rgba(49,43,61,.2);
  }
.week-action-menu[open]>div button{
    min-height:43px;
    border:1px solid rgba(87,102,144,.1);
    border-radius:12px;
    color:var(--soul-nailin);
    background:#f7f8fb;
    font-size:10px;
  }
.week-day-statuses{ gap:5px; }
.week-day-statuses button{ min-height:33px; border-color:var(--soul-hairline); color:#766f79; background:#fff; }
.week-day-statuses .week-day-status--pending.is-active{ color:#5e5861; background:#ece9ec; }
.week-day-statuses .week-day-status--missed.is-active{ color:#fff; background:#89777f; }
.week-day-statuses .week-day-status--okay.is-active{ color:#573c48; background:var(--soul-jiaran); }
.week-day-statuses .week-day-status--great.is-active{ color:#fff; background:var(--soul-bella); }
.week-item-state-current[data-state="changed"]{ color:#fff; background:var(--soul-nailin); }
.week-day-dialog-status--pending input:checked+span{ color:#5e5861; border-color:#ddd7dc; background:#ece9ec; }
.week-day-dialog-status--missed input:checked+span{ color:#fff; border-color:#89777f; background:#89777f; }
.week-day-dialog-status--okay input:checked+span{ color:#573c48; border-color:var(--soul-jiaran); background:var(--soul-jiaran); }
.week-day-dialog-status--great input:checked+span{ color:#fff; border-color:var(--soul-bella); background:var(--soul-bella); }
.weekly-report-status--pending{ color:#68636b; background:#efedf0; }
.weekly-report-status--missed{ color:#66555d; background:#f1ecee; }
.weekly-report-status--okay{ color:#9f5672; background:rgba(231,153,176,.18); }
.weekly-report-status--great{ color:#aa514a; background:rgba(219,125,116,.17); }
.space-section{ padding-bottom:13px; }
.space-switcher-mobile{ margin:0 -3px; }
.space-switcher-track{ gap:7px; padding:0 3px 3px; }
.space-switcher-button{ min-height:79px; padding:10px 12px; border-radius:18px; }
.space-switcher-icon{ width:45px; height:45px; }
.weekly-section{
    margin:7px 0 4px;
    padding:14px 8px calc(86px + env(safe-area-inset-bottom));
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
.weekly-heading{ margin:0 5px 8px; }
.weekly-heading h2{ font-size:27px; line-height:1.08; }
.weekly-planner{ padding:10px 8px 12px; border-radius:20px; }
.week-toolbar{ gap:7px; }
.week-timeline-panel{ margin-inline:0; border:0; background:transparent; }
.week-inline-day{ margin-inline:0; padding:10px 0 0; }
.week-inline-day-head{ margin-bottom:11px; grid-template-columns:minmax(0,1fr) 68px; gap:8px; }
.week-inline-day-main{ padding:0; }
.week-day-statuses{ margin-inline:0; }
.week-item-table{ width:100%; margin:0; padding:2px 0 0; }
.week-item-row{ grid-template-columns:42px minmax(0,1fr) 32px; gap:6px; }
.week-item-text{ min-width:0; padding-inline:9px; font-size:12px; text-overflow:ellipsis; }
.week-inline-note,
.week-focus-field{ width:100%; }
#spaceForm .space-template-options{ grid-template-columns:1fr 1fr; gap:7px; }
#spaceForm .space-template-options label>span{ min-height:50px; padding:8px 9px; border-radius:12px; }
#spaceForm .dialog-fields{ margin-top:9px; }
}
@media (max-width:899.98px) {.space-section-actions{ gap:10px; }
.week-action-menu>summary{
    width:auto;
    min-width:23px;
    height:30px;
    min-height:30px;
    padding:0 2px;
    border:0;
    border-radius:0;
    color:var(--soul-nailin);
    background:transparent;
    box-shadow:none;
    font-size:18px;
    line-height:1;
  }
.week-action-menu>summary{ letter-spacing:-2px; }
.space-section-copy{ margin-bottom:3px; }
.space-switcher-mobile{
    width:100%;
    margin:0;
    padding:1px 0 4px;
    gap:8px;
    scroll-padding-inline:7%;
  }
.space-switcher-mobile[data-count="1"]{ justify-content:center; }
.space-switcher-item{ flex:0 0 86%; }
.space-switcher-mobile[data-count="1"] .space-switcher-item{ flex-basis:100%; }
.space-switcher-button{
    min-height:70px;
    padding:8px 11px;
    border-radius:17px;
  }
.space-switcher-icon{ width:44px; height:44px; border-radius:13px; }
}
@media (min-width:899.99px) {.week-inline-day-head{
    display:grid;
    margin-bottom:16px;
    padding-bottom:10px;
    grid-template-columns:minmax(0,1fr) 88px;
    grid-template-areas:
      "identity sticker"
      "statuses sticker"
      "actions actions";
    align-items:center;
    gap:12px 18px;
    border-bottom:1px dashed color-mix(in srgb,var(--day-color) 18%,white);
  }
.week-day-identity{
    grid-area:identity;
    display:grid;
    min-width:0;
    gap:6px;
  }
.week-day-identity > span{
    color:color-mix(in srgb,var(--day-color) 78%,#504858);
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
  }
.week-day-identity input{
    width:100%;
    min-width:0;
    padding:0;
    border:0;
    outline:0;
    color:var(--soul-ink);
    background:transparent;
    font:inherit;
    font-size:34px;
    font-weight:850;
    line-height:1.18;
  }
.week-day-sticker-button{
    grid-area:sticker;
    display:grid;
    width:88px;
    height:88px;
    padding:4px;
    place-items:center;
    align-content:center;
    gap:2px;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--day-color) 22%,white);
    border-radius:22px;
    color:var(--soul-muted);
    background:color-mix(in srgb,var(--day-color) 5%,white);
    font:inherit;
    cursor:pointer;
  }
.week-day-sticker-button img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
  }
.week-day-sticker-button small{ font-size:10px; font-weight:850; }
.week-day-statuses{
    grid-area:statuses;
    display:grid;
    max-width:560px;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
  }
.week-day-statuses button{
    min-width:0;
    min-height:42px;
    padding:0 11px;
    border:1px solid var(--soul-line);
    border-radius:12px;
    color:#817987;
    background:#fff;
    font:inherit;
    font-size:13px;
    font-weight:850;
    cursor:pointer;
  }
.week-day-statuses .week-day-status--pending.is-active{ color:#5f5961; background:#eee9ed; }
.week-day-statuses .week-day-status--missed.is-active{ color:#fff; border-color:#576690; background:#576690; }
.week-day-statuses .week-day-status--okay.is-active{ color:#593c49; border-color:#e799b0; background:#f7cbd7; }
.week-day-statuses .week-day-status--great.is-active{ color:#fff; border-color:#db7d74; background:#db7d74; }
.week-day-primary-actions{
    grid-area:actions;
    display:flex;
    justify-content:flex-end;
    gap:8px;
  }
.week-record-today,
.week-shift-day{
    min-height:44px;
    padding:0 18px;
    border:1px solid var(--soul-line);
    border-radius:13px;
    color:#756d79;
    background:#fff;
    font:inherit;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
  }
.week-record-today.is-recorded{
    color:#2f806c;
    border-color:rgba(76,167,140,.25);
    background:var(--soul-mint-soft);
  }
.week-shift-day{
    color:#9a6c26;
    border-color:rgba(215,155,63,.22);
    background:var(--soul-gold-soft);
  }
.week-focus-field{ margin:0 0 16px; }
.week-focus-field label{ display:grid; gap:7px; }
.week-focus-field span,
.week-inline-note > span{ color:#5e5664; font-size:15px; font-weight:900; }
.week-focus-field input{
    width:100%;
    height:52px;
    padding:0 16px;
    border:1px solid rgba(215,155,63,.18);
    border-radius:14px;
    outline:0;
    color:var(--soul-ink);
    background:#fffdf8;
    font:inherit;
    font-size:15px;
  }
.week-item-table{
    padding:16px;
    border:1px solid var(--soul-line);
    border-radius:18px;
    background:rgba(255,255,255,.9);
  }
.week-item-table-head{
    display:flex;
    padding:0 3px 11px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
.week-item-table-head strong{ font-size:16px; }
.week-item-table-head small{ color:var(--soul-muted); font-size:12px; }
.week-item-rows{ display:grid; gap:9px; }
.week-item-row{
    display:grid;
    min-width:0;
    grid-template-columns:136px minmax(0,1fr) 40px;
    align-items:center;
    gap:8px;
  }
.week-item-state{ min-width:0; }
.week-item-state-current{
    display:flex;
    width:100%;
    min-height:48px;
    padding:0 12px;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    border:1px solid var(--soul-line);
    border-radius:13px;
    color:#7e7582;
    background:#faf9fa;
    cursor:pointer;
  }
.week-item-state-current b{
    display:grid;
    width:20px;
    height:20px;
    flex:none;
    place-items:center;
    font-size:18px;
    line-height:1;
  }
.week-item-state-current span{
    overflow:hidden;
    font-size:13px;
    font-weight:850;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
.week-item-row--done .week-item-state-current{ color:#2f8a73; border-color:rgba(76,167,140,.25); background:var(--soul-mint-soft); }
.week-item-row--changed .week-item-state-current{ color:#ad792b; border-color:rgba(215,155,63,.25); background:var(--soul-gold-soft); }
.week-item-row--missed .week-item-state-current{ color:#bd6370; border-color:rgba(220,121,111,.22); background:var(--soul-coral-soft); }
.week-item-text{
    width:100%;
    min-width:0;
    height:48px;
    padding:0 14px;
    border:1px solid var(--soul-line);
    border-radius:13px;
    outline:0;
    color:var(--soul-ink);
    background:#fff;
    font:inherit;
    font-size:15px;
  }
.week-item-remove{
    display:grid;
    width:40px;
    height:40px;
    padding:0;
    place-items:center;
    border:0;
    border-radius:11px;
    color:#bd6e7b;
    background:var(--soul-pink-soft);
    font:inherit;
    font-size:17px;
    cursor:pointer;
  }
.week-add-item{
    width:100%;
    min-height:46px;
    margin-top:10px;
    border:1px dashed rgba(125,107,210,.23);
    border-radius:13px;
    color:#705dbb;
    background:#faf8ff;
    font:inherit;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
  }
}
@media (max-width:899.98px) {body.is-mobile-app .week-timeline-panel{
    width:100%;
    margin-inline:0;
    padding-inline:clamp(9px,2.4vw,14px);
  }
body.is-mobile-app .week-inline-day{
    width:100%;
    margin-inline:0;
  }
body.is-mobile-app .week-item-table,
body.is-mobile-app .week-item-rows,
body.is-mobile-app .week-item-row{ width:100%; min-width:0; }
body.is-mobile-app .week-item-row{
    grid-template-columns:42px minmax(0,1fr) 32px;
    gap:6px;
  }
body.is-mobile-app .week-item-state-current,
body.is-mobile-app .week-item-remove{ width:100%; max-width:100%; }
}
@media (max-width:360px) {body.is-mobile-app .week-timeline-panel{ padding-inline:8px; }
body.is-mobile-app .week-item-row{
    grid-template-columns:40px minmax(0,1fr) 30px;
    gap:4px;
  }
}

/* Final responsive schedule contract: one toolbar, one day navigator, one readable legend. */
.week-action-menu > summary{ list-style:none; }
.week-action-menu > summary::marker{ content:""; }
.week-action-menu > summary::-webkit-details-marker{ display:none; }
.week-action-menu:not([open]) > div{ display:none; }
.week-node-actions > .week-action-menu{ display:flex; align-self:stretch; align-items:center; justify-content:center; }

.week-day-heading-group{ display:contents; }
.week-day-title-edit{ position:relative; display:flex; min-width:0; max-width:100%; align-items:center; gap:6px; cursor:text; }
.week-day-title-edit input{ field-sizing:content; width:auto; min-width:3.2em; max-width:100%; border-bottom:1px solid transparent; transition:border-color .16s ease,background .16s ease; }
.week-day-title-edit:hover input{ border-bottom-color:color-mix(in srgb,var(--day-color,var(--soul-pink)) 32%,white); }
.week-day-title-edit input:focus{ border-bottom-color:color-mix(in srgb,var(--day-color,var(--soul-pink)) 72%,white); background:color-mix(in srgb,var(--day-color,var(--soul-pink)) 4%,white); }
.week-day-title-help{ grid-area:help; margin:-3px 0 0 2px; color:#948b99; font-size:11px; font-weight:750; line-height:1.35; }
.week-day-sticker-button{ background:#fff; }
.week-day-sticker-empty{
  display:grid;
  place-items:center;
  align-content:center;
  gap:3px;
  line-height:1;
}
.week-day-sticker-empty b{ font-size:18px; font-weight:500; line-height:1; }
.week-day-sticker-empty small{ line-height:1.15; }
.week-node-actions > button{ border-style:solid; }
#importWeekButton{ border-color:rgba(76,167,140,.24); background:#f8fcfa; }
#showSelectedWeekReportButton{ border-color:rgba(143,122,234,.22); background:#fbfaff; }

.week-day-navigation{
  display:grid;
  min-width:196px;
  min-height:44px;
  padding:4px;
  grid-template-columns:36px minmax(104px,1fr) 36px;
  align-items:center;
  gap:4px;
  border:1px solid rgba(87,102,144,.11);
  border-radius:15px;
  background:#f8f7fb;
}
.week-day-navigation button{
  display:grid;
  width:36px;
  height:36px;
  padding:0;
  place-items:center;
  border:0;
  border-radius:10px;
  color:#6656a8;
  background:#fff;
  font:inherit;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}
.week-day-navigation button:disabled{ opacity:.24; }
.week-day-navigation strong{ display:grid; gap:1px; color:#484150; font-size:12px; line-height:1.15; text-align:center; }
.week-day-navigation strong span{ font-size:12px; }
.week-day-navigation small{ color:#8d8592; font-size:10px; font-weight:800; }
.week-item-legend{ display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
.week-item-legend span{ padding:4px 7px; border-radius:999px; font-size:12px; font-weight:850; line-height:1; }
.week-item-legend .is-done{ color:#2f806c; background:var(--soul-mint-soft); }
.week-item-legend .is-changed{ color:#9a6c26; background:var(--soul-gold-soft); }
.week-item-legend .is-missed{ color:#ad5966; background:var(--soul-coral-soft); }

@media (min-width:899.99px) {
  .weekly-section{ padding-top:56px; }
  .space-section{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    gap:22px;
    padding:32px;
  }
  .space-section-copy{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"space-eyebrow space-actions" "space-title space-actions";
    align-items:center;
    gap:4px 20px;
  }
  .space-section-copy > .eyebrow{ grid-area:space-eyebrow; align-self:end; }
  .space-section-copy > h2{ grid-area:space-title; max-width:720px; margin-bottom:0; align-self:start; }
  .space-section-copy > .space-section-actions{ grid-area:space-actions; }
  .space-section-actions{ display:flex; align-items:center; justify-content:flex-end; gap:9px; margin-top:0; }
  .space-switcher-desktop{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .space-switcher-button{ min-height:96px; padding:15px 18px; gap:14px; }
  .space-switcher-icon{ width:52px; height:52px; flex-basis:52px; border-radius:16px; font-size:24px; }
  .space-switcher-button strong{ font-size:18px; }
  .space-switcher-button small{ font-size:12px; }

  .week-timeline-panel{ padding:14px 16px 15px; border:1px solid rgba(87,102,144,.1); border-radius:20px; }
  .week-timeline-caption{ display:flex; min-height:52px; align-items:center; justify-content:space-between; gap:18px; }
  .week-timeline-copy{
    display:grid;
    min-width:172px;
    padding:4px 0 4px 13px;
    flex:0 0 auto;
    gap:2px;
    border-left:3px solid color-mix(in srgb,var(--member-diana) 72%,white);
  }
  .week-timeline-copy span{ color:#4f4858; font-size:13px; font-weight:900; }
  .week-timeline-copy small{ color:#948c9a; font-size:11px; font-weight:750; }
  .week-timeline-controls{ display:flex; min-width:0; align-items:center; justify-content:flex-end; gap:8px; }
  .week-month-switcher{
    display:grid;
    min-width:282px;
    padding:5px;
    grid-template-columns:38px minmax(0,1fr) 38px;
    align-items:center;
    gap:6px;
    border:1px solid rgba(87,102,144,.11);
    border-radius:15px;
    background:rgba(255,255,255,.88);
  }
  .week-month-switcher > button{
    display:grid;
    width:38px;
    height:38px;
    padding:0;
    place-items:center;
    border:0;
    border-radius:11px;
    color:#6f5cbc;
    background:#f4f1fd;
    font:inherit;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
  }
  .week-period-fields{ display:grid; min-width:0; grid-template-columns:1fr 1fr; gap:6px; }
  .week-period-fields select{
    width:100%;
    min-width:0;
    height:38px;
    padding:0 25px 0 10px;
    border:1px solid rgba(87,102,144,.1);
    border-radius:10px;
    outline:0;
    color:#514a60;
    background:#fff;
    font:inherit;
    font-size:12px;
    font-weight:850;
  }
  .week-node-actions{ display:flex; padding:0; align-items:center; gap:7px; border:0; }
  .week-node-actions > button{
    min-height:48px;
    padding:0 14px;
    border:1px solid rgba(87,102,144,.13);
    border-radius:13px;
    color:#5f566c;
    background:#fff;
    font:inherit;
    font-size:12px;
    font-weight:850;
  }
  #importWeekButton{ color:#397d69; background:#f8fcfa; }
  #showSelectedWeekReportButton{ color:#6754ad; background:#fbfaff; }
  .week-action-menu{ position:relative; }
  .week-action-menu > summary{
    display:grid;
    width:42px;
    min-width:42px;
    height:48px;
    padding:0;
    place-items:center;
    border:1px solid transparent;
    border-radius:12px;
    color:#665982;
    background:transparent;
    font-size:15px;
    font-weight:950;
    letter-spacing:-2px;
    cursor:pointer;
  }
  .week-action-menu > summary:hover{ border-color:rgba(87,102,144,.12); background:#fff; }
  .week-action-menu[open] > div{
    position:absolute;
    z-index:90;
    top:calc(100% + 8px);
    right:0;
    display:grid;
    width:240px;
    padding:10px;
    gap:7px;
    border:1px solid rgba(87,102,144,.12);
    border-radius:16px;
    background:rgba(255,255,255,.98);
    box-shadow:0 18px 42px rgba(57,45,67,.16);
  }
  .week-action-menu[open] > div > button{ min-height:40px; border:1px solid rgba(87,102,144,.1); border-radius:11px; background:#faf9fc; font:inherit; font-size:11px; font-weight:850; }
  .week-action-menu[open] > div > .is-danger{
    color:var(--color-danger);
    border-color:rgba(207,69,91,.14);
    background:#fff7f8;
  }

  .week-detail{ margin-top:14px; }
  .week-board{ border:0; background:transparent; box-shadow:none; }
  .week-inline-day{ padding:24px; border:1px solid rgba(87,102,144,.1); border-radius:24px; box-shadow:0 18px 46px rgba(69,55,82,.06); }
  .week-inline-day-head{
    padding-right:0;
    grid-template-columns:minmax(420px,560px) minmax(250px,290px) minmax(12px,1fr) 96px;
    grid-template-areas:"heading heading . sticker" "statuses actions . sticker" "help help . sticker";
    align-items:end;
    gap:9px 18px;
  }
  .week-day-heading-group{ grid-area:heading; display:flex; min-width:0; align-items:end; gap:14px; }
  .week-day-identity{ max-width:calc(100% - 210px); flex:0 1 auto; }
  .week-day-navigation{ grid-area:navigation; flex:none; align-self:end; justify-self:start; }
  .week-day-sticker-button{ width:96px; height:96px; align-self:center; justify-self:end; }
  .week-day-statuses{ max-width:560px; }
  .week-day-primary-actions{ align-self:end; justify-content:flex-start; }
  .week-item-legend span{ display:inline-flex; min-height:28px; align-items:center; font-size:13px; }
}

@media (min-width:899.99px) and (max-width:1199px) {
  .space-section-copy h2{ font-size:32px; }
  .week-timeline-caption{ align-items:stretch; flex-direction:column; }
  .week-timeline-controls{ justify-content:space-between; }
  .week-inline-day-head{
    grid-template-columns:minmax(0,1fr) 88px;
    grid-template-areas:"heading sticker" "statuses sticker" "help sticker" "actions actions";
  }
  .week-day-sticker-button{ width:88px; height:88px; }
}

@media (max-width:899.98px) {
  body.is-mobile-app .space-section{ gap:8px; }
  body.is-mobile-app .space-section-copy{ margin-bottom:0; }
  body.is-mobile-app .space-switcher{ margin-top:0; }
  body.is-mobile-app .week-detail{ margin-top:7px; }
  body.is-mobile-app .week-inline-day-head{
    --day-sticker-size:clamp(80px,16vw,94px);
    padding-right:0;
    grid-template-columns:minmax(0,1fr) var(--day-sticker-size);
    grid-template-areas:"identity sticker" "navigation navigation" "statuses statuses" "help help" "actions actions";
  }
  body.is-mobile-app .week-day-heading-group{ display:contents; }
  body.is-mobile-app .week-day-navigation{ grid-area:navigation; width:100%; min-width:0; margin-top:1px; }
  body.is-mobile-app .week-day-title-help{ margin-top:-3px; font-size:10px; }
  body.is-mobile-app .week-day-sticker-button{
    width:var(--day-sticker-size);
    height:var(--day-sticker-size);
    padding:3px;
    justify-self:end;
  }
  body.is-mobile-app .week-day-sticker-button img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
  }
  body.is-mobile-app .week-item-legend{ display:none; }
}

@media (min-width:640px) and (max-width:899.98px) {
  body.is-mobile-app .space-section-copy h2{ font-size:32px; }
  body.is-mobile-app .space-switcher-button{ min-height:82px; padding:11px 14px; }
  body.is-mobile-app .space-switcher-icon{ width:52px; height:52px; flex-basis:52px; }
  body.is-mobile-app .space-switcher-button strong{ font-size:18px; }
  body.is-mobile-app .space-switcher-button small{ font-size:12px; }
  body.is-mobile-app .week-inline-day-head{
    grid-template-columns:minmax(0,1fr) var(--day-sticker-size);
    grid-template-areas:"heading sticker" "statuses statuses" "help help" "actions actions";
  }
  body.is-mobile-app .week-day-heading-group{ grid-area:heading; display:flex; min-width:0; align-items:end; gap:12px; }
  body.is-mobile-app .week-day-identity{ max-width:calc(100% - 208px); flex:0 1 auto; }
  body.is-mobile-app .week-day-navigation{ width:196px; min-width:196px; margin-top:0; flex:none; }
}

@media (min-width:1440px) {
  .space-section{ padding:36px; gap:26px; }
  .space-section-copy h2{ font-size:38px; }
  .space-switcher-button{ min-height:104px; padding:17px 20px; }
  .space-switcher-icon{ width:58px; height:58px; flex-basis:58px; }
  .space-switcher-button strong{ font-size:19px; }
  .space-switcher-button small{ font-size:13px; }
  .space-section-actions button{ font-size:14px; }
  .week-timeline-copy span{ font-size:14px; }
  .week-timeline-copy small,
  .week-period-fields select,
  .week-node-actions > button{ font-size:13px; }
  .week-item-table-head strong{ font-size:16px; }
  .week-item-legend span{ font-size:13px; }
  .week-node-head > span{ font-size:11px; }
  .week-node-head em{ font-size:10px; }
  .week-node > strong{ font-size:20px; }
  .week-node > small{ font-size:11px; }
}

@media (max-width:380px) {
  body.is-mobile-app .week-inline-day-head{
    --day-sticker-size:80px;
    grid-template-columns:minmax(0,1fr) var(--day-sticker-size);
  }
  body.is-mobile-app .week-day-sticker-button{ width:var(--day-sticker-size); height:var(--day-sticker-size); }
  body.is-mobile-app .week-day-navigation{ grid-template-columns:34px minmax(92px,1fr) 34px; }
  body.is-mobile-app .week-day-navigation button{ width:34px; height:34px; }
}

.weekly-report-back-button{ display:none; }

/* Report summaries use the same four-state color contract as the editable day card. */
.weekly-report-status--great{ color:#fff; background:#db7d74; }
.weekly-report-status--okay{ color:#593c49; background:#f7cbd7; }
.weekly-report-status--missed{ color:#fff; background:#89777f; }
.weekly-report-status--pending{ color:#fff; background:#576690; }
.weekly-report-day--missed{ --report-color:#89777f; }
.weekly-report-day--pending{ --report-color:#576690; }
.weekly-report-day--missed > header em{
  color:#6d5962;
  border-color:rgba(137,119,127,.2);
  background:#f3edef;
}
.weekly-report-day--pending > header em{
  color:#4a587f;
  border-color:rgba(87,102,144,.2);
  background:#f0f2f8;
}
.week-day-statuses .week-day-status--missed.is-active{
  color:#fff;
  border-color:#89777f;
  background:#89777f;
}
.week-day-statuses .week-day-status--pending.is-active{
  color:#fff;
  border-color:#576690;
  background:#576690;
}
.week-day-dialog-status--missed input:checked + span{
  color:#fff;
  border-color:#89777f;
  background:#89777f;
  box-shadow:none;
}
.week-day-dialog-status--pending input:checked + span{
  color:#fff;
  border-color:#576690;
  background:#576690;
  box-shadow:none;
}

/* Mobile schedule rails share the milestone carousel contract. */
@media (max-width:899.98px) {
  body.is-mobile-app .week-day-statuses .week-day-status--missed.is-active{
    color:#fff;
    border-color:#89777f;
    background:#89777f;
  }

  body.is-mobile-app .week-day-statuses .week-day-status--pending.is-active{
    color:#fff;
    border-color:#576690;
    background:#576690;
  }

  body.is-mobile-app .week-day-dialog-status--missed input:checked + span{
    color:#fff;
    border-color:#89777f;
    background:#89777f;
    box-shadow:none;
  }

  body.is-mobile-app .week-day-dialog-status--pending input:checked + span{
    color:#fff;
    border-color:#576690;
    background:#576690;
    box-shadow:none;
  }

  body.is-mobile-app .space-section,
  body.is-mobile-app .space-switcher,
  body.is-mobile-app .week-timeline-panel{ min-width:0; overflow:hidden; }

  body.is-mobile-app .space-switcher-mobile,
  body.is-mobile-app .week-timeline,
  body.is-mobile-app .week-timeline[data-count]{
    box-sizing:border-box;
    display:flex;
    width:100%;
    margin:0;
    padding:4px 24px 8px;
    gap:10px;
    overflow-x:auto;
    scroll-padding-inline:24px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
  }

  body.is-mobile-app .week-timeline,
  body.is-mobile-app .week-timeline[data-count]{ margin-top:10px; }

  body.is-mobile-app .space-switcher-mobile::-webkit-scrollbar,
  body.is-mobile-app .week-timeline::-webkit-scrollbar{ display:none; }

  body.is-mobile-app .space-switcher-item,
  body.is-mobile-app .space-switcher-mobile[data-count="1"] .space-switcher-item,
  body.is-mobile-app .week-node{
    min-width:100%;
    flex:0 0 100%;
    scroll-snap-align:center;
    scroll-snap-stop:always;
  }

  .weekly-report-dialog-card > .dialog-actions .weekly-report-back-button{
    display:inline-flex;
    min-height:44px;
    grid-column:1 / -1;
    align-items:center;
    justify-content:center;
    border:1px solid color-mix(in srgb,var(--member-eileen) 24%,white);
    border-radius:13px;
    color:var(--member-eileen);
    background:color-mix(in srgb,var(--member-eileen) 6%,white);
    font-size:11px;
    font-weight:900;
  }
}
