: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}.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{width:100%;min-height:var(--tap);font:inherit;color:var(--text);border:2px solid var(--border);background:#fff;border-radius:10px;padding:6px 12px}input:focus-visible,select: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}.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}
