/* HERB-CARE-TIMELINE: scoped to dashboard, not another full-height tab. */
.ct-widget {
  --ct-ink:#213e2a;--ct-line:#d9e4d8;--ct-soft:#f3f8ef;--ct-green:#26754d;
  color:var(--ct-ink);border:1px solid var(--ct-line);border-radius:20px;
  padding:clamp(14px,1.9vw,24px);margin:16px 0;background:linear-gradient(155deg,#fff 0%,#fbfcf7 65%,#f4f8f0 100%);
  box-shadow:0 8px 26px rgb(25 62 32 / 6%);font-size:14px;
}
.ct-widget *{box-sizing:border-box}
.ct-widget button,.ct-widget input{font:inherit}
.ct-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ct-eyebrow{letter-spacing:.11em;font-size:10px;font-weight:800;color:#4d765e;margin:0 0 5px}
.ct-title{margin:0;font-weight:800;font-size:clamp(20px,2vw,26px);line-height:1.25;color:#183a25}
.ct-lead{margin:6px 0 0;color:#586958;line-height:1.5;max-width:780px}
.ct-topmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ct-period{color:#48654c;font-weight:750}
.ct-button,.ct-tab,.ct-approve,.ct-complete{
  appearance:none;border:1px solid #bed2be;border-radius:10px;background:white;color:#28553b;
  cursor:pointer;padding:8px 12px;font-size:12px;font-weight:750;min-height:34px;
}
.ct-button:hover,.ct-tab:hover,.ct-approve:hover,.ct-complete:hover{border-color:var(--ct-green);background:#f3faf1}
.ct-button:focus-visible,.ct-tab:focus-visible,.ct-approve:focus-visible,.ct-complete:focus-visible,.ct-scroll:focus-visible{
  outline:3px solid #7cbb82;outline-offset:2px;
}
.ct-button:disabled,.ct-tab:disabled,.ct-approve:disabled,.ct-complete:disabled{opacity:.5;cursor:progress}
.ct-button-today,.ct-approve{color:#fff;background:#26754d;border-color:#26754d}
.ct-button-today:hover,.ct-approve:hover{background:#1d6241;color:#fff}
.ct-toolbar{margin:16px 0 12px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ct-presets{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.ct-tab{border-color:transparent;background:#f0f4ee;font-size:12px}
.ct-tab.is-active{background:#26754d;color:white;border-color:#26754d}
.ct-navigation{display:flex;align-items:center;gap:6px}
.ct-arrow{width:40px;font-size:22px;line-height:1;padding:3px 9px}
.ct-custom-form{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px;border:1px solid #dbe6d9;background:#f5faf4;border-radius:13px}
.ct-custom-form input{color:#244832;background:white;border:1px solid #b9cfb9;padding:8px;border-radius:9px;max-width:155px}
.ct-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:10px 0 12px;color:#607060;font-size:12px}
.ct-legend-item{display:inline-flex;align-items:center;gap:7px}
.ct-mark{width:12px;height:12px;border-radius:4px;display:inline-block}
.ct-legend-record{background:#5d9a72}
.ct-legend-forecast{background:#e0f1e0;border:1px dashed #86b18b}
.ct-legend-today{background:#26754d;width:3px;border-radius:3px}
.ct-notice,.ct-warning,.ct-error,.ct-loading,.ct-empty{
  margin:10px 0;padding:12px;border-radius:10px;background:#eef8ed;color:#2b5639
}
.ct-warning{background:#fff5df;color:#755624}
.ct-error{background:#fff2ef;color:#754039}
.ct-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:6px 0 13px}
.ct-stat{min-height:58px;display:flex;gap:10px;align-items:center;padding:9px 14px;background:#f7faf4;border:1px solid #e0eae0;border-radius:12px}
.ct-stat strong{font-size:22px;font-weight:800;color:#2c7049}
.ct-stat span{font-size:11px;color:#596b5b;line-height:1.3}
.ct-track{border-radius:14px;border:1px solid #d7e3d5;background:#fff;overflow:hidden}
.ct-scroll{overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;scrollbar-color:#a0bfa7 #f1f6ef;max-height:min(57vh,540px)}
.ct-grid{display:grid;align-items:stretch;grid-auto-rows:minmax(47px,auto)}
.ct-grid>.ct-head{position:sticky;top:0;z-index:2;min-height:54px;background:#f3f8f2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;font-weight:750}
.ct-grid>.ct-head.ct-fixed{z-index:4;justify-content:flex-start;padding:12px}
.ct-fixed{position:sticky;left:0;z-index:1;background:#f9fbf7;border-right:1px solid #cdddcf;text-overflow:ellipsis}
a.ct-fixed{color:#285039;text-decoration:none;font-weight:750;font-size:12px;padding:9px 10px;display:flex;align-items:center;min-width:0;overflow:hidden}
a.ct-fixed:hover{text-decoration:underline;background:#eaf6e7}
a.ct-plant-planned{color:#6e7b63;font-weight:600;font-style:italic;background:#fafbf8}
.ct-date{border-right:1px solid #e2ebe0;text-align:center;font-size:11px}
.ct-date-today{background:#e1f4e1!important;color:#145837;font-weight:800;border-left:2px solid #2a9251}
.ct-today-label{display:inline-block;background:#277c4c;color:#fff;border-radius:12px;padding:2px 8px;font-size:10px}
.ct-slot{border-right:1px solid #eef1ec;border-top:1px solid #e5ebe2;min-height:48px;padding:5px 4px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.ct-slot:nth-child(odd){background:#fcfefa}
.ct-slot-today{background:#eef9e9!important;border-left:2px solid #28954d}
.ct-chip{display:block;max-width:100%;border-radius:7px;padding:4px 5px;font-size:10px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;color:#2c5337;background:#d6ebd8}
.ct-chip-high{color:#8c2c2c;background:#ffe5e5}
.ct-chip-medium{color:#805a22;background:#fff0d5}
.ct-chip-low{color:#246545;background:#e0f2e5}
.ct-chip-done{background:#edf1ef;color:#66776a;text-decoration:line-through}
.ct-chip-forecast{background:#eff5e9;color:#60775d;border:1px dashed #bad2b6}
.ct-chip-more{font-size:10px;color:#5b745e;display:block;text-align:center}
.ct-track-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0}
.ct-outside{font-size:12px;color:#7f6941}
.ct-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.ct-card{padding:15px;border:1px solid #dce5d9;border-radius:15px;background:#fff;min-width:0}
.ct-card h4{font-size:17px;line-height:1.35;margin:0 0 10px;color:#20462e}
.ct-task-list{display:grid;gap:7px}
.ct-task{display:flex;align-items:center;gap:9px;border-bottom:1px solid #eef1ed;padding:7px 0}
.ct-task:last-child{border-bottom:0}
.ct-task-main{display:grid;gap:2px;flex:1;min-width:0}
.ct-task-main strong{font-size:12px;line-height:1.4}
.ct-task-main small,.ct-suggestion-plant{font-size:11px;color:#687868}
.ct-priority{font-size:10px;padding:4px 7px;border-radius:8px;font-weight:750;white-space:nowrap;background:#edf4ea;color:#51704d}
.ct-priority-high{background:#ffe2e2;color:#ae3030}
.ct-priority-medium{background:#fff0d6;color:#856018}
.ct-complete{min-width:33px;padding:6px}
.ct-suggestion{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #e9efe6;padding:10px 0}
.ct-suggestion>div{display:grid;gap:3px;min-width:0}
.ct-suggestion strong{font-size:13px}
.ct-suggestion p{font-size:12px;line-height:1.4;color:#647463;margin:0}
.ct-approve{white-space:nowrap;font-size:11px;padding:8px}
.ct-muted{color:#718071;font-size:12px;line-height:1.4;margin:5px 0 12px}
@media(max-width:1050px){
  .ct-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ct-bottom{grid-template-columns:1fr}
  .ct-scroll{max-height:380px}
}
@media(max-width:650px){
  .ct-widget{border-radius:14px;padding:12px;margin:12px 0}
  .ct-topmeta{width:100%;justify-content:space-between}
  .ct-toolbar{gap:8px}
  .ct-presets{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:5px}
  .ct-tab{white-space:nowrap;flex-shrink:0}
  .ct-navigation{margin-left:auto}
  .ct-stat{min-height:50px;padding:8px}
  .ct-stat strong{font-size:20px}
  .ct-bottom{gap:10px}
  .ct-suggestion{align-items:flex-start;flex-direction:column}
  .ct-approve{align-self:flex-end}
  .ct-custom-form input{width:135px}
}

.ct-context{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.5rem 0 .85rem}.ct-context-plant,.ct-context-garden{min-width:0;overflow-wrap:anywhere}.ct-context .ct-button{display:inline-flex;align-items:center;text-decoration:none;min-height:40px}

/* One continuous visual surface during timeline range/zoom changes. */
.ct-track{position:relative;isolation:isolate}
.ct-track>.ct-morph-ghost{position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden;border:0;border-radius:inherit}
.ct-widget.ct-is-loading .ct-period::after{content:" ···";display:inline-block;animation:ct-period-pulse 1s ease-in-out infinite}
@keyframes ct-period-pulse{0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.ct-widget.ct-is-loading .ct-period::after{animation:none}}
