.chore-main { --max-width: 1500px; padding-top: 54px; }
.chore-intro { max-width: 840px; margin-bottom: 36px; }
.chore-intro h1 { max-width: 840px; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.03; }
.chore-intro > p:last-child { max-width: 680px; font-size: 18px; }
.chore-workspace { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start; gap: 24px; }
.chore-toolbox { display: grid; gap: 18px; }
.chore-panel { padding: 20px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 22px; box-shadow: 0 8px 24px rgb(40 64 96 / 5%); }
.chore-panel-heading { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.chore-panel h2 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.035em; }
.chore-step { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; background: var(--page); color: var(--blue-deep); border-radius: 8px; font-size: 12px; font-weight: 750; }
.chore-hint { margin-bottom: 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.chore-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.chore-add-form input, .chore-search, .chore-week-controls input, .chore-week-controls select, .chore-export select, .chore-move-select { min-width: 0; width: 100%; padding: 10px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px; font-size: 13px; }
.chore-add-form input::placeholder, .chore-search::placeholder { color: var(--muted); opacity: .8; }
.chore-small-button { padding: 9px 12px; color: #fff; border: 0; border-radius: 10px; background: #126ccb; cursor: pointer; font-size: 12px; font-weight: 700; }
.tag-colors { grid-column: 1 / -1; margin: 0 0 12px; padding: 0; border: 0; }
.tag-colors legend { margin: 2px 0 7px; color: var(--muted); font-size: 11px; }
#tag-colors { display: flex; gap: 10px; }
.tag-color { position: relative; cursor: pointer; }
.tag-color input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tag-color span { display: block; width: 23px; height: 23px; border: 1px solid var(--tag-edge); border-radius: 50%; background: var(--tag-bg); }
.tag-color input:checked + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.tag-color input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
[data-color="blue"] { --tag-bg: #cce8ff; --tag-edge: #83b9e5; --tag-ink: #184b78; }
[data-color="peach"] { --tag-bg: #ffddce; --tag-edge: #e9a98b; --tag-ink: #793c27; }
[data-color="mint"] { --tag-bg: #d3eee1; --tag-edge: #93c6ae; --tag-ink: #255d43; }
[data-color="lavender"] { --tag-bg: #e5ddff; --tag-edge: #b2a2de; --tag-ink: #514078; }
[data-color="yellow"] { --tag-bg: #fff0b8; --tag-edge: #d9c26d; --tag-ink: #685315; }
[data-color="pink"] { --tag-bg: #ffdce8; --tag-edge: #dc9ab1; --tag-ink: #7a3550; }
.family-tags { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.family-tag-wrap { position: relative; max-width: 100%; padding-right: 9px; }
.name-tag { display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 5px 10px 5px 7px; gap: 6px; color: var(--tag-ink); background: var(--tag-bg); border: 1px solid var(--tag-edge); border-radius: 8px 14px 14px 8px; box-shadow: 0 2px 0 var(--tag-edge); font-size: 12px; font-weight: 750; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
button.name-tag { cursor: grab; }
.name-tag.is-selected { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.tag-initial { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border-right: 1px dashed var(--tag-edge); font-size: 12px; }
.tag-name { min-width: 0; }
.tag-remove { display: grid; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 58%); color: var(--tag-ink); cursor: pointer; place-items: center; font-size: 14px; }
.family-tag-wrap > .tag-remove { position: absolute; top: -5px; right: 0; z-index: 1; border: 1px solid var(--tag-edge); }
.chore-search { margin-bottom: 12px; }
.chore-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 600px; overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; }
.chore-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: start; padding: 8px 5px 10px; gap: 4px; min-width: 0; border: 1px solid var(--paper-line); border-radius: 13px; background: var(--paper); color: var(--ink); cursor: grab; font-size: 11px; font-weight: 650; line-height: 1.3; text-align: center; }
.chore-tile:hover { border-color: var(--blue); background: var(--page); }
.chore-tile.is-selected { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; }
.chore-art { display: block; width: 64px; height: 64px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.custom-art { display: grid; place-items: center; color: #e6b84c; font-size: 42px; }
.drag-grip { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 18px; height: 24px; padding: 0; color: currentColor; opacity: .45; cursor: grab; touch-action: none; letter-spacing: -2px; font-size: 14px; line-height: 1; }
.chore-tile > .drag-grip { position: absolute; top: 4px; right: 4px; }
.custom-chore { margin-top: 15px; color: var(--muted); font-size: 12px; }
.custom-chore summary { cursor: pointer; font-weight: 650; }
.custom-chore form { margin-top: 12px; }
.chore-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 17px; }
.chore-week-controls { display: flex; gap: 12px; }
.chore-week-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.chore-week-controls input, .chore-week-controls select { min-height: 40px; }
.chore-history { display: flex; align-items: center; gap: 8px; }
.chore-icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; place-items: center; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 11px; font-size: 22px; cursor: pointer; }
.chore-icon-button:disabled { opacity: .35; cursor: default; }
.chore-text-button { min-height: 38px; padding: 8px; color: var(--muted); background: transparent; border: 0; font-size: 12px; cursor: pointer; }
.chore-text-button:hover { color: var(--ink); }
.chore-board { position: relative; padding: 25px 18px 15px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 24px; box-shadow: 0 16px 45px rgb(29 53 91 / 9%); }
.chore-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 7px 20px; }
.chore-title-group { min-width: 0; flex: 1; }
#chore-title { display: block; width: 100%; padding: 4px 0; color: var(--ink); border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: clamp(20px, 2.3vw, 29px); font-weight: 750; letter-spacing: -.045em; }
#chore-title::placeholder { color: var(--ink); opacity: 1; }
#chore-title:hover { border-bottom-color: var(--paper-line); }
#chore-date-range { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.chore-board-sticker { width: 54px; height: 54px; color: #ecc25b; transform: rotate(9deg); }
.chore-board-sticker svg { width: 100%; height: 100%; }
.chore-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.chore-day { min-width: 0; display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--paper-line); border-radius: 14px; }
.chore-day:nth-child(7n + 1) { --day-color: #1676b4; }
.chore-day:nth-child(7n + 2) { --day-color: #77519e; }
.chore-day:nth-child(7n + 3) { --day-color: #31806c; }
.chore-day:nth-child(7n + 4) { --day-color: #c26d43; }
.chore-day:nth-child(7n + 5) { --day-color: #ae577d; }
.chore-day:nth-child(7n + 6) { --day-color: #9a7b20; }
.chore-day:nth-child(7n + 7) { --day-color: #5576a9; }
.chore-day-heading { padding: 12px 5px 10px; text-align: center; border-bottom: 1px solid var(--paper-line); }
.chore-day-heading h3 { margin: 0 0 3px; color: var(--day-color); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
:root[data-theme="dark"] .chore-day-heading h3 { color: var(--ink); }
.chore-day-heading time { display: block; color: var(--muted); font-size: 10px; }
.chore-day-list { display: flex; flex-direction: column; gap: 8px; min-height: 300px; flex: 1; padding: 7px; transition: background .15s; border-radius: 0 0 14px 14px; }
.chore-day-list.is-drop-target { outline: 2px dashed var(--blue); outline-offset: -3px; background: color-mix(in srgb, var(--blue) 12%, var(--paper)); }
.day-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: auto 0; padding: 24px 3px; color: var(--muted); font-size: 10px; text-align: center; opacity: .65; }
.day-empty span:first-child { display: grid; width: 32px; height: 32px; place-items: center; font-size: 22px; border: 1px dashed var(--muted); border-radius: 10px; }
.chore-day-add { min-height: 36px; margin: 0 7px 9px; padding: 8px 3px; background: transparent; border: 1px dashed var(--paper-line); border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; }
.chore-day-add:hover, .has-chore-selection .chore-day-add { color: var(--blue-deep); border-color: var(--blue); background: var(--paper); }
.chore-entry { position: relative; padding: 8px 6px; border: 1px solid var(--paper-line); border-radius: 11px; background: var(--paper); min-width: 0; }
.chore-entry.is-drop-target { outline: 2px dashed var(--blue); outline-offset: 2px; }
.chore-entry.is-drag-source { opacity: .3; }
.chore-entry.is-insert-before::before, .chore-entry.is-insert-after::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--blue); border-radius: 3px; }
.chore-entry.is-insert-before::before { top: -6px; }.chore-entry.is-insert-after::after { bottom: -6px; }
.chore-entry-tools { display: flex; align-items: center; justify-content: space-between; height: 23px; margin-bottom: 2px; }
.entry-more { padding: 0; width: 23px; height: 23px; color: var(--muted); background: none; border: 0; border-radius: 5px; cursor: pointer; font-size: 17px; }
.entry-more:hover { background: var(--page); }
.entry-main { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.entry-main .chore-art { width: 55px; height: 55px; }
.entry-main h4 { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.entry-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 9px; }
.entry-people .name-tag { min-height: 25px; padding: 3px 5px; gap: 4px; font-size: 10px; box-shadow: 0 1px 0 var(--tag-edge); border-radius: 6px 10px 10px 6px; }
.entry-people .tag-initial { display: none; }.entry-people .tag-remove { width: 15px; height: 15px; flex-basis: 15px; font-size: 12px; }
.entry-assign { display: block; min-height: 30px; width: 100%; margin-top: 6px; padding: 5px 2px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 10px; }
.entry-assign:hover, .has-person-selection .entry-assign { color: var(--blue-deep); background: var(--page); }
.chore-board-footer { display: flex; justify-content: space-between; gap: 10px; padding: 17px 5px 0; font-size: 11px; color: var(--muted); }
.chore-selection { min-height: 32px; padding: 11px 5px 0; color: var(--blue-deep); font-size: 12px; }
.chore-selection button { margin-left: 8px; padding: 0; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: inherit; }
.chore-export { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.chore-export-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.chore-export-controls .calendar-action-button { min-height: 45px; padding: 10px 15px; font-size: 13px; }
.chore-export select { width: auto; min-height: 45px; }
.chore-save-note { margin: 0; color: var(--muted); font-size: 11px; }
.chore-status { min-height: 20px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.chore-context { margin-top: 42px; }
.chore-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 23px; box-shadow: 0 28px 90px rgb(0 0 0 / 22%); }
.chore-dialog::backdrop { background: rgb(17 32 51 / 35%); backdrop-filter: blur(5px); }
.chore-dialog-close { position: absolute; top: 12px; right: 12px; }
.chore-dialog h2 { padding-right: 30px; font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.chore-dialog p { font-size: 13px; color: var(--muted); }
.dialog-person { display: flex; align-items: center; gap: 12px; margin: 14px 0; cursor: pointer; }
.dialog-person input { width: 18px; height: 18px; accent-color: var(--blue); }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dialog-move { display: grid; gap: 8px; margin: 20px 0; font-size: 13px; }
.dialog-danger { color: #b63843; }
.chore-drag-ghost { position: fixed; z-index: 100; width: 115px; pointer-events: none; opacity: .95; box-shadow: 0 12px 30px rgb(21 44 76 / 20%); transform: rotate(-4deg); }
.chore-drag-ghost.name-tag { width: max-content; max-width: 220px; }.chore-drag-ghost.chore-entry { max-height: 180px; overflow: hidden; }
body.is-chore-dragging { user-select: none; cursor: grabbing; }body.is-chore-dragging * { cursor: grabbing !important; }
.chore-print-pages { position: fixed; left: -10000px; top: 0; width: 277mm; color: #122033; background: #fff; pointer-events: none; }
.chore-print-pages.is-visible[data-paper] { position: static; width: min(277mm, calc(100% - 28px)); margin: 20px auto 40px; overflow: auto; pointer-events: auto; border: 1px solid #dfe5ed; border-radius: 12px; scroll-margin-top: 100px; }
.chore-print-pages.is-visible .chore-print-page + .chore-print-page { border-top: 2px dashed #dfe5ed; }
.chore-print-page { width: 277mm; height: 189mm; display: flex; flex-direction: column; background: #fff; padding: 1mm; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.chore-print-pages[data-paper="letter"], .chore-print-pages[data-paper="letter"] .chore-print-page { width: 259.4mm; }.chore-print-pages[data-paper="letter"] .chore-print-page { height: 194.9mm; }
.print-chart-heading { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 8mm; padding: 0 0 5mm; }
.print-chart-heading > div { min-width: 0; }
.print-chart-heading h2 { margin: 0 0 1.5mm; font-size: 20pt; line-height: 1.15; overflow-wrap: anywhere; }.print-chart-heading p { margin: 0; font-size: 9pt; }
.print-app-link { display: flex; align-items: center; gap: 3mm; flex: 0 0 auto; color: #68768c; font-size: 10pt; font-weight: 700; text-decoration: none; }
.print-app-qr { display: block; width: 24mm; height: 24mm; flex: 0 0 auto; background: #fff; }
.print-chart-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2mm; flex: 1; min-height: 0; }
.print-day { min-width: 0; border: .3mm solid #dfe5ed; border-radius: 3mm; display: flex; flex-direction: column; }
.print-day h3 { margin: 0; padding: 3mm 1mm; text-align: center; border-bottom: .3mm solid #dfe5ed; font-size: 9pt; overflow-wrap: anywhere; }.print-day h3 span { display: block; font-size: 7pt; color: #677487; margin-top: 1mm; font-weight: 400; }
.print-day-list { flex: 1; min-height: 0; padding: 2mm; }
.print-entry { padding: 2mm; margin-bottom: 2mm; border: .25mm solid #dfe5ed; border-radius: 2mm; break-inside: avoid; }
.print-entry-title { display: flex; align-items: center; gap: 1.5mm; margin-bottom: 1.5mm; }
.print-entry-title .chore-art { width: 11mm; height: 11mm; flex: 0 0 auto; }.print-entry-title .custom-art { font-size: 20pt; }
.print-entry-title h4 { min-width: 0; margin: 0; font-size: 8pt; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.print-entry-tags { display: flex; flex-wrap: wrap; gap: 1.5mm; }.print-entry-tags .name-tag { min-height: 0; padding: 1mm 1.5mm; font-size: 7pt; border-radius: 1.5mm; box-shadow: none; }.print-entry-tags .tag-initial { display: none; }
.print-continuation { display: block; margin-top: 1mm; font-size: 6.5pt; color: #677487; }
.print-chart-footer { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 4mm; padding-top: 3mm; font-size: 7pt; color: #677487; }
@media (max-width: 1250px) and (min-width: 721px) {
  .chore-workspace { grid-template-columns: 1fr; }.chore-toolbox { grid-template-columns: 260px 1fr; }.chore-library { grid-template-columns: repeat(8,minmax(0,1fr)); max-height: 255px; }.chore-panel { padding: 16px; }.chore-tile .chore-art { width: 48px; height: 48px; }.chore-tile { font-size: 10px; }.chore-panel-heading { margin-bottom: 6px; }
}
@media (max-width: 1000px) and (min-width: 721px) { .chore-library { grid-template-columns: repeat(5,minmax(0,1fr)); }.chore-board { padding: 20px 10px 12px; }.chore-days { gap: 5px; }.chore-day-list { padding: 5px; }.chore-entry { padding: 6px 4px; }.entry-main h4 { font-size: 10px; }.entry-people .name-tag { font-size: 9px; } }
@media (max-width: 720px) {
  .chore-main { width: calc(100% - 28px); padding-top: 36px; }.chore-intro { margin-bottom: 24px; }.chore-intro > p:last-child { font-size: 15px; }.chore-workspace { grid-template-columns: 1fr; gap: 18px; }.chore-panel { padding: 17px; }.chore-library { grid-template-columns: repeat(4,minmax(0,1fr)); max-height: 258px; }.chore-tile .chore-art { width: 52px; height: 52px; }.chore-tile { font-size: 10px; }.chore-toolbox { gap: 12px; }.chore-hint { margin-bottom: 12px; }.chore-week-controls { flex: 1; }.chore-week-controls label:first-child { flex: 1; }.chore-history { margin-left: auto; }.chore-board { padding: 20px 13px 14px; border-radius: 20px; }.chore-board-heading { padding: 0 2px 18px; }.chore-days { grid-template-columns: 1fr; gap: 12px; }.chore-day-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; }.chore-day-heading h3 { font-size: 14px; margin: 0; }.chore-day-heading time { font-size: 12px; }.chore-day-list { min-height: 85px; padding: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }.day-empty { grid-column: 1 / -1; margin: 0; flex-direction: row; justify-content: center; padding: 14px; font-size: 12px; }.chore-entry { padding: 10px; }.entry-main { flex-direction: row; text-align: left; }.entry-main .chore-art { width: 48px; height: 48px; flex: 0 0 auto; }.entry-main h4 { font-size: 12px; }.entry-people { justify-content: start; }.entry-people .name-tag { font-size: 11px; }.chore-day-add { min-height: 42px; font-size: 12px; }.chore-board-footer { flex-direction: column; gap: 4px; }.chore-export { justify-content: center; }.chore-save-note { text-align: center; }.chore-context { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { .chore-day-list { transition: none; } }
@media print {
  :root, html, body { background: #fff !important; color-scheme: light; margin: 0; padding: 0; min-width: 0; }
  body > :not(.chore-print-pages) { display: none !important; }
  .chore-print-pages, .chore-print-pages.is-visible[data-paper] { position: static; display: block; width: auto; margin: 0; overflow: visible; border: 0; border-radius: 0; pointer-events: auto; }
  .chore-print-page { zoom: 1 !important; break-after: page; break-inside: avoid; page-break-after: always; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .chore-print-page:last-child { break-after: auto; page-break-after: auto; }
}
