#tab-plant-care, .plant-task-card { min-width: 0; }
.plant-library-head, .plant-history-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.plant-library-head p { margin:5px 0 0; }
.plant-filter-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.plant-filter-tabs button { min-height:44px; border:1px solid #b9cab8; border-radius:999px; padding:8px 16px; background:#fff; color:#24512d; font-weight:600; }
.plant-filter-tabs button.active { background:#245d32; border-color:#245d32; color:#fff; }
.plant-library-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:12px; margin-top:16px; }
.plant-records-list { grid-column:1/-1; display:grid; gap:12px; }
.plant-records-list > div { padding:12px 16px; border:1px solid #d9e4d9; border-radius:14px; background:#fbfdf9; }
.plant-record-name { min-height:44px; border:0; background:none; color:#24512d; font-weight:700; text-align:left; cursor:pointer; }
.plant-library-card, .plant-task-card { border:1px solid #d9e4d9; border-radius:16px; background:#fbfdf9; padding:14px; min-width:0; }
.plant-library-card { display:grid; grid-template-columns:88px minmax(0,1fr); column-gap:12px; row-gap:12px; }
.plant-library-card.plant-inactive { opacity:.67; }
.plant-image-button { width:88px; height:88px; padding:0; border:0; border-radius:12px; overflow:hidden; background:#e7eee4; flex:none; cursor:zoom-in; }
.plant-image-button img { display:block; width:100%; height:100%; object-fit:cover; }
.plant-library-copy { display:flex; flex-direction:column; gap:4px; min-width:0; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.plant-library-title { display:flex; align-items:center; gap:5px 8px; flex-wrap:wrap; }
.plant-library-title strong { font-size:17px; }
.plant-code { font-size:12px; font-weight:700; color:#315b3a; background:#e6f2e4; padding:2px 6px; border-radius:6px; }
.plant-status { font-size:12px; color:#375a38; }
.plant-library-actions, .plant-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
.plant-library-check { grid-column:1/-1; }
.plant-library-actions button, .plant-actions button, .plant-start, .plant-dialog-close { min-height:44px; }
.plant-library-actions button { border:1px solid #b9cab8; background:white; border-radius:9px; padding:8px 12px; color:#24512d; }
.plant-editor, .plant-history { margin-top:12px; }
.plant-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0; }
.plant-form-grid label, .plant-issue-fields label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; min-width:0; }
.plant-form-grid input:not([type=checkbox]), .plant-form-grid textarea, .plant-issue-fields textarea { width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
.plant-form-grid textarea, .plant-issue-fields textarea { min-height:84px; }
.plant-wide { grid-column:1 / -1; }
.plant-form-grid .plant-active-field { display:flex; flex-direction:row; align-items:center; gap:8px; }
.plant-photo-preview { width:104px; height:104px; object-fit:cover; border-radius:10px; margin-top:4px; }
.plant-history-summary, .plant-task-main { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.plant-history-record { border-top:1px solid #e2e9e1; padding:12px 0; display:flex; flex-direction:column; gap:5px; overflow-wrap:anywhere; }
.plant-history-record .plant-image-button { width:72px; height:72px; }
.plant-task-card { margin:10px 0; }
.plant-task-top { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.plant-task-kicker { font-weight:700; color:#236b39; }
.plant-task-state { font-size:13px; color:#975a12; text-align:right; }
.plant-task-main .plant-image-button { width:96px; height:96px; }
.plant-task-copy { display:flex; flex-direction:column; gap:4px; min-width:0; overflow-wrap:anywhere; }
.plant-task-copy strong { font-size:18px; }
.plant-task-tip { display:flex; flex-direction:column; gap:5px; white-space:pre-line; overflow-wrap:anywhere; margin:12px 0; padding:10px; border-radius:10px; background:#ecf5e9; font-size:14px; line-height:1.5; }
.plant-task-tip strong { color:#205a32; }
.plant-task-done { background:#f4f8f3; }
.plant-done-note { font-size:13px; color:#48684d; }
.plant-start { width:100%; }
.plant-check-form { margin-top:12px; }
.plant-check-form fieldset { min-width:0; border:0; padding:0; margin:0 0 14px; }
.plant-check-form legend { font-weight:700; margin-bottom:8px; }
.plant-choice-row { display:flex; flex-wrap:wrap; gap:8px; }
.plant-choice-row label { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px 10px; border:1px solid #bdd3bd; border-radius:10px; background:white; font-size:14px; box-sizing:border-box; }
.plant-choice-row input { width:18px; height:18px; margin:0; }
.plant-issue-fields { margin-bottom:14px; }
.plant-issue-fields > label { margin-bottom:12px; }
.plant-check-photo { margin:4px 0 16px; min-width:0; }
.plant-check-photo-title { font-weight:700; }
.plant-check-photo p { margin:6px 0 10px; font-size:14px; line-height:1.5; color:#38573b; }
.plant-photo-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.plant-photo-choice { position:relative; display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px; border:1px solid #a9c6a9; border-radius:10px; background:#f7fbf6; color:#24512d; font-weight:600; text-align:center; box-sizing:border-box; cursor:pointer; }
.plant-photo-choice:focus-within { outline:2px solid #245dbe; outline-offset:2px; }
.plant-photo-choice input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.plant-photo-selected { display:flex; align-items:center; gap:10px; margin-top:10px; min-width:0; font-size:13px; overflow-wrap:anywhere; }
.plant-photo-selected img { width:76px; height:76px; object-fit:cover; border-radius:9px; flex:none; background:#e7eee4; }
.plant-history-no-photo { font-size:13px; color:#687969; }
.plant-image-dialog { max-width:min(96vw,720px); max-height:92vh; padding:12px; border:0; border-radius:14px; background:#fff; }
.plant-image-dialog::backdrop { background:rgba(0,0,0,.75); }
.plant-image-dialog img { display:block; max-width:100%; max-height:78vh; object-fit:contain; margin:auto; }
.plant-dialog-close { display:block; margin:0 0 8px auto; }
.home-plant-care-reminder { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:12px; min-height:52px; padding:10px 14px; border:1px solid #a9cbaa; border-radius:12px; background:#ecf7e9; color:#24512d; text-align:left; cursor:pointer; }
.home-plant-care-reminder strong { font-size:16px; }
.home-plant-care-reminder > span:last-child { font-weight:700; }
@media(max-width:600px) {
  .plant-form-grid { grid-template-columns:1fr; gap:12px; }
  .plant-library-head { align-items:center; }
  .plant-library-head .primary { flex:none; }
  .plant-library-card { grid-template-columns:80px minmax(0,1fr); }
  .plant-library-card .plant-image-button { width:80px; height:80px; }
  .plant-library-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .plant-library-actions button { min-width:0; }
  .plant-actions button { flex:1 1 120px; }
}
