.collection-empty {
  display:flex; align-items:center; gap:22px; margin-top:14px;
  padding:clamp(18px,4vw,40px); border:1px solid var(--line); border-radius:12px;
  background:#f8f6ee;
}
.collection-empty>svg {width:112px;height:76px;flex:none}
.collection-empty h3,.widget-preview h3 {margin:0;font:550 clamp(20px,2.3vw,28px)/1.16 var(--serif);color:var(--ink)}
.collection-empty p,.trip-overview>p {margin:7px 0 0;color:var(--muted);line-height:1.5}
.record-highlight,.collection-summary,.exercise-summary,.backup-overview,.trip-filter {
  display:flex;align-items:center;gap:12px;background:#edf2e9;color:#274738;
  padding:13px 16px;border-radius:10px;margin-block:12px;
}
.record-highlight {width:100%;text-align:left;border:0}
.record-highlight>span,.goal-open>span {min-width:0;display:grid;gap:4px}
.record-highlight strong,.goal-open strong {overflow-wrap:anywhere}
.record-highlight small,.exercise-summary small,.backup-overview small,.goal-open small,.day-total {font:550 12px/1.45 var(--sans);color:#516653}
.record-highlight>b,.collection-summary>:last-child,.goal-open>b {margin-left:auto;flex:none;font-variant-numeric:tabular-nums}
.goal-row {border-bottom:1px solid var(--line);padding-block:10px}
.goal-open {border:0;background:transparent;color:var(--ink);width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:5px 0}
.goal-row progress {accent-color:var(--green);width:100%;height:7px}
.trip-filter {background:#f2efe5;color:var(--ink);font-weight:650;flex-wrap:wrap}
.trip-filter select {max-width:100%;min-height:40px;border:1px solid var(--line);background:var(--card);border-radius:7px;padding:5px 10px;font:inherit}
.trip-part {margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.trip-part .panelhead h2 {font-size:19px}
.schedule-long {display:none}
.monthly-budget .weeknav {margin-block:12px}
.monthly-budget .statgrid b,.exercise-summary strong,.shop-qty,.day-task .recordbody small,.day-total,.budget-table td {font-variant-numeric:tabular-nums}
.exercise-summary {gap:32px;margin:10px 0 18px}
.exercise-summary>div {display:grid;gap:2px}
.exercise-summary strong {font:600 24px/1.2 var(--serif);font-variant-numeric:tabular-nums}
.health-info,.mail-maintenance,.purchased-items {margin-top:16px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.health-info summary,.mail-maintenance summary,.purchased-items summary {cursor:pointer;min-height:32px;align-content:center;font-weight:600}
.purchased-items summary b {margin-left:5px}
.shop-tick {display:grid;place-items:center;align-self:center;color:var(--green);background:none;border:0;padding:0;min-width:44px;min-height:44px}
.shop-tick>span {width:22px;height:22px;border:1px solid #718878;border-radius:6px;display:grid;place-items:center}
.shop-tick[aria-pressed=true]>span {background:var(--green);color:white}
.grocery-line .shop-qty {margin-left:auto;text-align:right;max-width:32%;overflow-wrap:anywhere}
.grocery-line .recordbody {min-width:0;flex:1}.grocery-line .recordbody strong {overflow-wrap:anywhere}
#toast.show:has(a) {pointer-events:auto} #toast a {display:inline-flex;align-items:center;min-height:32px;margin-inline-start:6px;color:#fff4cd;font-weight:700;text-underline-offset:3px}
.day-task:not(.finished) .recordbody small {font-weight:700;color:#345a45}
.widget-preview {max-width:300px;margin-block:14px;padding:16px 18px;background:#284b3e;color:#fffdf3;border-radius:15px}
.widget-preview>div,.widget-preview li {display:flex;gap:8px;align-items:center}
.widget-preview>div {justify-content:space-between;color:#d2e1cc;font:600 12px var(--sans)}
.widget-preview h3 {color:inherit;margin:8px 0;font-size:21px}
.widget-preview ul {list-style:none;padding:0;margin:0}.widget-preview li {padding:5px 0;font-size:13px}
.widget-preview li svg {flex:none}.widget-preview li span {overflow-wrap:anywhere}.widget-preview li small {margin-left:auto}
.backup-overview {align-items:baseline;flex-wrap:wrap}.backup-overview>span {display:inline-flex;gap:6px;align-items:center}
.backup-overview small {margin-left:auto}
.mail-attention>h2 {font:600 19px var(--serif);color:#733d29}.mail-attention {border-left:3px solid #a85c39;padding-left:14px}
.quick-choices+.textbtn {margin-top:14px}
@media screen and (max-width:700px) {
 .collection-empty {gap:13px;padding:19px 13px}.collection-empty>svg {width:74px;height:54px}
 .collection-empty h3 {font-size:20px}.collection-empty p {font-size:13px}
 .trip-filter select {flex:1;min-width:135px}
 .schedule-wrap table.schedule {width:100%;min-width:0;table-layout:fixed}
 .schedule-wrap .schedule tr>:not(:first-child):not(.schedule-selected) {display:none}
 .schedule-wrap .schedule tr>:first-child {width:35%}
 .schedule-wrap .schedule input {width:100%;min-width:0;min-height:44px}
 .schedule-wrap tbody {display:flex;flex-direction:column}
 .schedule-wrap table,.schedule-wrap thead {display:block}
 .schedule-wrap .schedule tr {display:flex;width:100%}
 .schedule-wrap .schedule .schedule-selected {width:65%}
 .schedule-long {display:inline}.schedule-short {display:none}
 body[data-section=health] .viewtabs {overflow:visible;flex-wrap:wrap}
 body[data-section=health] .chapterbar {align-items:flex-start}
 body[data-section=health] .viewtabs a {display:inline-flex;align-items:center;min-height:36px}
 .chapterbar .printbtn {min-width:36px;min-height:36px}
 .budget-table table {table-layout:fixed;width:100%;min-width:0;font-size:12px}
 .budget-table td,.budget-table th {padding:8px 3px;overflow-wrap:anywhere}
 .budget-table input {width:100%;min-width:0;padding:6px 2px}
 .budget-table th:first-child {width:24%}
 .monthly-budget .statgrid div {min-width:0}.monthly-budget .statgrid b {font-size:clamp(15px,4.3vw,23px);overflow-wrap:anywhere}
 .day-list>header>div {min-width:0}.day-total {display:block;margin-top:3px}
}
@media print {.shop-tick,.trip-filter,.widget-preview+.btn {display:none}.schedule-short {display:inline}.schedule-long {display:none}}

.period-month {position:relative;display:inline-flex;align-items:center;gap:6px;min-height:36px;cursor:pointer}
.period-month input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;color-scheme:light}
.period-month input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.period-month:focus-within {outline:2px solid var(--green);border-radius:4px}
.trip-link {display:flex;gap:13px;align-items:center;text-align:left;width:100%;min-height:62px;padding:9px 4px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}
.trip-link span {display:grid;gap:3px;min-width:0}.trip-link strong {overflow-wrap:anywhere}.trip-link small {color:var(--muted)}.trip-link svg:last-child {margin-left:auto}

.contact-import p { margin: 0 0 .65rem; }
.contact-import p:empty { display: none; }
.contact-import [data-card-fallback] { padding: .85rem; background: var(--sage); border-radius: 12px; }
.contact-import select, .contact-import input { max-width: 100%; min-width: 0; }
.contact-import [data-contact-choices]:not(:empty) { margin-top: .65rem; }
@media (max-width: 620px) {
  body[data-section="family"] .panelhead:has([data-act="import-person"]) { flex-wrap: wrap; gap: .6rem; }
  body[data-section="family"] .actions:has([data-act="import-person"]) { flex-wrap: wrap; }
}
