:root{--green-900:#14481a;--green-800:#1b5e20;--green-700:#2e7d32;--green-100:#e6f2e7;--bg:#f4f8f4;--surface:#fff;--text:#14261a;--muted:#4a5d4e;--border:#c9d8ca;--danger:#b3261e;--tap:48px;--nav-height:68px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Hiragino Sans,Yu Gothic UI,Meiryo,sans-serif;font-size:18px;line-height:1.6}*{box-sizing:border-box}html,body,#root{min-height:100%}body{background:var(--bg);color:var(--text);margin:0}.app{flex-direction:column;min-height:100dvh;display:flex}.app-header{background:var(--green-800);color:#fff;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px}.app-header h1{letter-spacing:.05em;margin:0;font-size:1.15rem}.app-main{width:100%;max-width:720px;padding:16px;padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);flex:1;margin:0 auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:16px;padding:16px}.card h2{margin:0 0 8px;font-size:1.15rem}.card p{margin:0 0 8px}.muted{color:var(--muted)}.badge{background:var(--green-100);color:var(--green-900);border-radius:999px;padding:2px 12px;font-size:.85rem;font-weight:700;display:inline-block}.button{min-height:var(--tap);background:var(--green-800);color:#fff;font:inherit;cursor:pointer;border:0;border-radius:12px;padding:0 24px;font-weight:700}.button:hover{background:var(--green-900)}.button.secondary{background:var(--surface);color:var(--green-800);border:2px solid var(--green-800)}.button:focus-visible,.nav-item:focus-visible{outline-offset:2px;outline:3px solid #f9a825}.loading{color:var(--muted);justify-content:center;align-items:center;gap:12px;padding:48px 16px;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--green-700);border-radius:50%;width:22px;height:22px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.bottom-nav{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.nav-item{min-height:var(--nav-height);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.75rem;text-decoration:none;display:flex}.nav-item.active{color:var(--green-800);font-weight:700}.nav-item.disabled{opacity:.45;cursor:not-allowed}.nav-icon{font-size:1.4rem;line-height:1}.nav-item.primary .nav-icon{background:var(--green-800);color:#fff;border-radius:50%;place-items:center;width:44px;height:44px;margin-top:-14px;font-size:1.6rem;display:grid}@media (width>=900px){.bottom-nav{border-top:0;border-bottom:1px solid var(--border);order:-1;grid-template-columns:repeat(5,140px);justify-content:center;position:sticky;top:0;bottom:auto}.nav-item{flex-direction:row;gap:8px;min-height:56px;font-size:.95rem}.app-main{padding-bottom:32px}.nav-item.primary .nav-icon{width:32px;height:32px;margin-top:0;font-size:1.2rem}}.page-header{flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:12px;display:flex}.page-header h2{flex:1;min-width:8rem;margin:0;font-size:1.3rem}.back-link{color:var(--green-800);flex-basis:100%;align-items:center;min-height:32px;font-size:.9rem;text-decoration:none;display:inline-flex}.section-header{justify-content:space-between;align-items:baseline;display:flex}.section-header h2{margin:8px 0;font-size:1.15rem}.section-header a{color:var(--green-800)}a.button{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.button.small{min-height:40px;padding:0 14px;font-size:.9rem}.button.danger{background:var(--danger)}.button.danger:hover{background:#8c1d18}.button.danger-outline{background:var(--surface);color:var(--danger);border:2px solid var(--danger)}.button:disabled{opacity:.5;cursor:not-allowed}.actions{flex-wrap:wrap;gap:8px;margin:8px 0 16px;display:flex}.actions.compact{margin:4px 0 0}.reorder-buttons{gap:4px;display:inline-flex}.reorder-buttons .button{padding:0 10px}.empty{color:var(--muted);text-align:center;padding:24px 8px}.card h3{margin:0 0 4px;font-size:1.05rem}.muted-badge{color:var(--muted);background:#eceeec}.tabs{gap:8px;margin-bottom:12px;display:flex}.tab{min-height:var(--tap);border:2px solid var(--border);background:var(--surface);font:inherit;color:var(--muted);cursor:pointer;border-radius:12px;flex:1;font-weight:700}.tab.active{border-color:var(--green-800);color:var(--green-800);background:var(--green-100)}.filter{align-items:center;gap:12px;margin-bottom:12px;display:flex}.filter select{flex:1}.crop-list{gap:12px;display:grid}.crop-card{background:var(--surface);border:1px solid var(--border);color:inherit;min-height:var(--tap);border-radius:14px;flex-direction:column;gap:2px;padding:14px 16px;text-decoration:none;display:flex}.crop-card:hover{border-color:var(--green-700)}.crop-card-title{font-size:1.1rem;font-weight:700}.crop-card-meta{margin-top:4px}.form{gap:14px;display:grid}.form-field{border:0;gap:4px;min-width:0;margin:0;padding:0;display:grid}.form-label{font-size:.95rem;font-weight:700}.form-hint{color:var(--muted);font-size:.85rem}input[type=text],input[type=number],input[type=date],select,textarea{width:100%;min-height:var(--tap);font:inherit;color:var(--text);border:2px solid var(--border);background:#fff;border-radius:10px;padding:6px 12px}textarea{resize:vertical;min-height:7em;line-height:1.5}input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:1px;border-color:var(--green-700);outline:3px solid #f9a825}.form-error{color:var(--danger);margin:0;font-weight:700}.checks{flex-wrap:wrap;gap:8px 20px;display:flex}.check{min-height:var(--tap);align-items:center;gap:8px;display:inline-flex}.check input{width:22px;height:22px;accent-color:var(--green-800)}.inline-add{gap:8px;display:flex}.inline-add input{flex:1}.inline-add .button{flex:none}.details{grid-template-columns:8em 1fr;gap:6px 12px;margin:8px 0 0;display:grid}.details dt{color:var(--muted);font-size:.9rem}.details dd{margin:0}.details-row{display:contents}.pre-line{white-space:pre-line}.pair{grid-template-columns:1fr 1fr;gap:8px 12px;display:grid}.timeline{margin:8px 0 0;padding:0;list-style:none}.timeline li{border-bottom:1px solid var(--border);padding:12px 0}.timeline li:last-child{border-bottom:0}.timeline-head{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.timeline-detail{white-space:pre-line;margin:4px 0 0}.timeline-meta{margin:4px 0 0;font-size:.85rem}.growth-badge{color:#0d47a1;background:#e3f2fd}.choices{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;display:grid}.choice{min-height:var(--tap);font:inherit;color:var(--text);border:2px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;padding:8px 12px;font-weight:700}.choice[aria-pressed=true]{background:var(--green-700);border-color:var(--green-700);color:#fff}.choice:focus-visible{outline-offset:2px;outline:3px solid #f9a825}.saved-card{border-color:var(--green-700)}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}label.button:focus-within{outline-offset:2px;outline:3px solid #f9a825}label.button.is-disabled{opacity:.5;cursor:not-allowed}.photo-picker{justify-items:start;gap:8px;display:grid}.photo-notice{white-space:pre-line;margin:0}.photo-list{gap:8px;width:100%;margin:0;padding:0;list-style:none;display:grid}.photo-item{border:1px solid var(--border);border-radius:10px;grid-template-columns:64px 1fr;align-items:center;gap:4px 12px;padding:8px;display:grid}.photo-item .actions{grid-column:1/-1;margin:0}.photo-thumb{background:#eceeec;border-radius:8px;width:64px;height:64px;overflow:hidden}.photo-thumb img,.photo-placeholder{object-fit:cover;width:100%;height:100%;display:block}.photo-placeholder{background:#eceeec;min-height:64px}.photo-info{gap:2px;min-width:0;display:grid}.photo-name{overflow-wrap:anywhere;font-weight:700}.photo-info progress{width:100%}.thumb-row,.gallery{flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0;list-style:none;display:flex}.gallery{gap:6px}.thumb-button{border:2px solid var(--border);cursor:pointer;background:#eceeec;border-radius:8px;width:88px;height:88px;padding:0;display:block;overflow:hidden}.thumb-button:focus-visible{outline-offset:2px;outline:3px solid #f9a825}.thumb-button img{object-fit:cover;width:100%;height:100%;display:block}.thumb-status{min-height:44px;color:var(--muted);background:#eceeec;border-radius:8px;align-items:center;padding:0 10px;font-size:.85rem;display:inline-flex}.thumb-status.failed{color:var(--danger);background:#fdecea}.viewer-backdrop{z-index:40;background:#000000d9;place-items:center;padding:12px;display:grid;position:fixed;inset:0}.viewer{justify-items:center;gap:8px;max-width:min(96vw,1000px);max-height:96vh;display:grid}.viewer img{object-fit:contain;background:#000;border-radius:8px;max-width:100%;max-height:70vh}.viewer-caption{color:#fff;margin:0}.viewer .actions{justify-content:center}.plan-list{margin:0;padding:0;list-style:none;display:grid}.plan-item{border-bottom:1px solid var(--border);grid-template-columns:auto 1fr;align-items:start;gap:12px;padding:12px 0;display:grid}.plan-item:last-child{border-bottom:0}.compact-list .plan-item{grid-template-columns:1fr;padding:8px 0}.plan-item.is-done .plan-title,.plan-item.is-done .plan-date{color:var(--muted);text-decoration:line-through}.plan-check{width:28px;height:28px;accent-color:var(--green-700);cursor:pointer;margin-top:2px}.plan-body{gap:2px;min-width:0;display:grid}.plan-head{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.plan-date{font-weight:700}.plan-date.overdue{color:var(--danger)}.plan-crop{color:var(--muted);font-size:.9rem}.overdue-card{border-color:var(--danger)}.overdue-card h2{color:var(--danger)}.chart-group{margin-top:12px}.chart-group h3{margin:0 0 6px}.chart-tabs{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.chart-tabs .choice{min-height:40px;padding:4px 14px}.chart{margin:8px 0 0}.chart-svg{border:1px solid var(--border);background:#fff;border-radius:10px;width:100%;height:auto;display:block}.chart-legend{flex-wrap:wrap;gap:4px 16px;margin:6px 0 0;padding:0;font-size:.85rem;list-style:none;display:flex}.chart-legend .swatch{vertical-align:middle;border-radius:2px;width:14px;height:4px;margin-right:6px;display:inline-block}.chart-table{margin-top:8px}.dormancy-block{margin-top:12px}.alert-range{grid-template-columns:1fr 1fr;gap:8px;display:grid}.dormancy-block h3{margin:0 0 4px}.dormancy-block p{margin:4px 0}.dormancy-value{font-size:1.25rem;font-weight:700}.dormancy-block progress{width:100%;height:12px;accent-color:var(--green-700)}.chart-table summary{cursor:pointer;color:var(--green-700);min-height:32px;font-weight:700}.chart-table table{border-collapse:collapse;width:100%;font-size:.9rem}.chart-table th,.chart-table td{text-align:left;border-bottom:1px solid var(--border);padding:6px 8px}.weather-details{grid-template-columns:4em 1fr}.weather-source{margin:8px 0 0;font-size:.8rem}.timeline-weather{margin:2px 0 0;font-size:.85rem}.master-info{margin-top:6px}.master-info summary{cursor:pointer;color:var(--green-700);min-height:32px;font-weight:700}.link-list{padding:4px 16px;display:grid}.link-list a{min-height:56px;color:var(--text);border-bottom:1px solid var(--border);align-items:center;text-decoration:none;display:flex}.link-list a:last-child{border-bottom:0}.link-list a:after{content:"›";color:var(--muted);margin-left:auto;font-size:1.4rem}.master-list{margin:0 0 16px;padding:4px 16px;list-style:none}.master-row{border-bottom:1px solid var(--border);padding:12px 0}.master-row:last-child{border-bottom:0}.master-row.is-hidden .master-name{color:var(--muted);text-decoration:line-through}.master-main{flex-direction:column;display:flex}.master-name{font-weight:700}.dialog-backdrop{z-index:30;background:#14261a8c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:16px;width:100%;max-width:480px;padding:20px}.dialog h2{margin:0 0 8px;font-size:1.2rem}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.snackbar-area{left:0;right:0;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);z-index:20;pointer-events:none;gap:8px;padding:0 16px;display:grid;position:fixed}.snackbar{pointer-events:auto;color:#fff;background:#1f2a22;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:560px;margin:0 auto;padding:8px 8px 8px 16px;display:flex}.snackbar.error{background:var(--danger)}.snackbar-action{color:#ffd54f;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 14px;font-weight:700}.snackbar.error .snackbar-action{color:#fff}@media (width>=900px){.snackbar-area{bottom:16px}}.form-field-label{gap:4px;display:grid}.token{word-break:break-all;-webkit-user-select:all;user-select:all;background:#7f7f7f1f;border-radius:6px;padding:8px;display:block}
