/* THC Care 0.3.0: /care/planning/. Colours are the theme's tokens (--thc-*, then --wp--preset--color--*, then the
   brand literals), as THC Gear does, so Core's Display switch carries Dark and High contrast; the one literal (text on
   the leaf-coloured buttons) is restated for Dark. Phone first, 44px tap targets, nothing floating or sticky. */
.thc-plan{--p-canvas:var(--thc-canvas,var(--wp--preset--color--base,#f7f1e4));--p-raised:var(--thc-surface-raised,var(--wp--preset--color--accent-5,#fcf8ef));--p-muted:var(--thc-surface-muted,var(--wp--preset--color--accent-4,#ece4d9));--p-border:var(--thc-border,var(--wp--preset--color--accent-6,#d9d0bc));--p-text:var(--thc-text,var(--wp--preset--color--contrast,#332d25));--p-leaf:var(--thc-leaf,var(--wp--preset--color--accent-1,#5e7d53));--p-deep:var(--thc-leaf-deep,var(--wp--preset--color--accent-3,#3f5c3b));--p-stroke:var(--thc-control-stroke,var(--wp--preset--color--control-stroke,#8a7f66));--p-error:var(--thc-error,#a13d2d);--p-on-leaf:#fff;overflow-wrap:anywhere}
:root[data-thc-theme="dark"] .thc-plan{--p-on-leaf:#15130f}
:root[data-thc-contrast="high"][data-thc-theme="dark"] .thc-plan{--p-on-leaf:#000}
.thc-plan *,.thc-plan *::before,.thc-plan *::after{box-sizing:border-box}
.thc-plan [hidden]{display:none!important}
.thc-plan__local{border-left:4px solid var(--p-leaf);margin:1rem 0;padding:.25rem 0 .25rem .75rem}
.thc-plan__local--warn{border-left-color:var(--p-error)}
.thc-plan__noscript{font-style:italic}
.thc-plan__jump ul{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0 0 1rem;padding:0}
.thc-plan__jump a{align-items:center;border:1.5px solid var(--p-border);border-radius:999px;color:inherit;display:inline-flex;min-height:44px;padding:0 1rem;text-decoration:none}
.thc-plan__jump a:hover,.thc-plan__jump a:focus-visible{background:var(--p-raised)}
.thc-plan__tool{border-top:1.5px solid var(--p-border);margin-top:1.75rem;padding-top:1.25rem;scroll-margin-top:5rem}
.thc-plan__tool h2{margin:0 0 .5rem}
.thc-plan__tool h3{font-size:1.05rem;margin:1rem 0 .5rem}
.thc-plan__fields{display:grid;gap:.75rem 1rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){.thc-plan__fields{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}}
.thc-plan__field{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.thc-plan__field label{font-weight:600}
.thc-plan input[type=text],.thc-plan input[type=number],.thc-plan input[type=date],.thc-plan select,.thc-plan textarea{background:var(--p-canvas);border:1.5px solid var(--thc-control-stroke,var(--p-border));border-radius:var(--thc-radius-sm,8px);box-sizing:border-box;color:var(--p-text);font:inherit;max-width:100%;min-height:44px;padding:.4rem .6rem;width:100%}
.thc-plan textarea{min-height:3.5rem;resize:vertical}
.thc-plan input[aria-invalid=true]{border-color:var(--p-error)}
.thc-plan input:focus-visible,.thc-plan select:focus-visible,.thc-plan textarea:focus-visible,.thc-plan button:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.thc-plan__hint{font-size:.92em;margin:.15rem 0 0;opacity:.85}
.thc-plan__note{font-size:.92em;margin:.75rem 0 0;opacity:.9}
.thc-plan__group{border:1.5px solid var(--p-border);border-radius:var(--thc-radius-md,12px);margin:1rem 0;padding:.75rem 1rem 1rem}
.thc-plan__group legend{font-weight:700;padding:0 .35rem}
.thc-plan__rows{display:flex;flex-direction:column;gap:.75rem;margin:.75rem 0}
.thc-plan__row{align-items:end;background:var(--p-muted);border-radius:var(--thc-radius-sm,8px);display:grid;gap:.5rem .75rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:.6rem}
.thc-plan__row>.thc-plan__field:first-child{grid-column:1/-1}
@media (min-width:760px){.thc-plan__row{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)) auto}.thc-plan__row>.thc-plan__field:first-child{grid-column:auto}.thc-plan__row--other{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}}
.thc-plan__each{font-size:.9em;grid-column:1/-1;margin:0;opacity:.85}
.thc-plan__row>.thc-plan__rm{justify-self:start}
@media (min-width:760px){.thc-plan__row>.thc-plan__rm{grid-column:-2/-1;grid-row:1;align-self:end}}
.thc-plan__each:empty{display:none}
.thc-plan button{cursor:pointer;font:inherit;min-height:44px}
.thc-plan__add,.thc-plan__btn{background:var(--p-leaf);border:1px solid var(--p-leaf);border-radius:999px;color:var(--p-on-leaf);font-weight:600;padding:.5rem 1.15rem}
.thc-plan__add:hover,.thc-plan__btn:hover{background:var(--p-deep);border-color:var(--p-deep)}
.thc-plan__add:disabled{opacity:.5}
.thc-plan__btn--quiet,.thc-plan__rm{background:transparent;border:1px solid var(--p-stroke);border-radius:999px;color:var(--p-deep);font-weight:600;padding:.4rem .9rem}
.thc-plan__btn--quiet:hover,.thc-plan__rm:hover{background:var(--p-muted);border-color:var(--p-stroke)}
.thc-plan__result{margin-top:1rem}
.thc-plan__totals{display:grid;gap:.35rem 1rem;grid-template-columns:auto 1fr;margin:0}
.thc-plan__totals dt{font-weight:600}
.thc-plan__totals dd{margin:0}
.thc-plan__totals .thc-plan__total{font-size:1.1em;font-weight:700}
.thc-plan__cgroup{margin-top:.5rem}
.thc-plan__pair{align-items:end;display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);margin:.5rem 0}
.thc-plan__eq{font-size:1.3em;padding-bottom:.55rem}
.thc-plan__unit{font-weight:400;opacity:.8}
.thc-plan__qform{margin:1rem 0}
.thc-plan__qform .thc-plan__add{margin-top:.75rem}
.thc-plan__err{color:var(--p-error);font-weight:600;margin:.5rem 0 0}
.thc-plan__timers{display:grid;gap:.75rem;list-style:none;margin:1rem 0;padding:0}
@media (min-width:700px){.thc-plan__timers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.thc-plan__timer{border:1.5px solid var(--p-border);border-radius:var(--thc-radius-md,12px);margin:0;padding:.75rem 1rem}
.thc-plan__timer--reached{border-style:dashed}
.thc-plan__tname{margin:0 0 .25rem}
.thc-plan__tday{font-size:1.6em;font-weight:700;margin:0}
.thc-plan__tmeta{margin:.25rem 0 .6rem}
.thc-plan__why{background:var(--p-raised);border-radius:var(--thc-radius-md,12px);margin-top:1rem;padding:.75rem 1rem}
.thc-plan__why summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.thc-plan__source{font-size:.9em;opacity:.9}
.thc-plan__progress{font-weight:700}
.thc-plan__cklist{display:flex;flex-direction:column;gap:.75rem;list-style:none;margin:0;padding:0}
.thc-plan__ck{border:1.5px solid var(--p-border);border-radius:var(--thc-radius-md,12px);margin:0;padding:.75rem 1rem}
.thc-plan__ck.is-done{background:var(--p-muted)}
.thc-plan__ckrow{align-items:center;display:flex;gap:.6rem;min-height:44px}
.thc-plan__ckrow input{flex:none;height:1.4rem;width:1.4rem}
.thc-plan__ckrow label{font-weight:600}
.thc-plan__notelabel{display:block;font-size:.9em;margin:.5rem 0 .2rem}
.thc-plan__actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.thc-plan__share{margin-top:2rem}
@media print{
	.thc-plan__jump,.thc-plan__add,.thc-plan__rm,.thc-plan__actions,.thc-plan__share,.thc-plan__local{display:none}
	.thc-plan--print-ck>*:not(#thc-plan-checklist){display:none}
	.thc-plan textarea{border:1px solid #999;min-height:2.5rem}
	.thc-plan__tool{break-inside:avoid-page}
}
.thc-plan__pointer{border-left:4px solid var(--p-border);margin:1.5rem 0 0;padding:.25rem 0 .25rem .75rem}
