:root{color-scheme:dark;--bg: #15180f;--surface: #1e2217;--surface-2: #272c1f;--border: #3a4030;--text: #e8ebe0;--text-muted: #9aa48c;--accent: #6fbf8e;--accent-weak: #22321f;--estimate: #7fa6df;--estimate-weak: #1d2636;--actual: #6fbf8e;--actual-weak: #22321f;--warn: #e0954f;--warn-weak: #332413;--danger: #e07a7a;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .3);--radius: 10px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--accent)}h1,h2,h3{line-height:1.2;margin:0 0 .4em}h1{font-size:1.5rem}h2{font-size:1.15rem}.muted{color:var(--text-muted)}.small{font-size:.85rem}.mono{font-family:var(--mono)}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1rem;padding:.6rem 1rem;background:var(--surface);border-bottom:1px solid var(--border)}.topbar .brand{font-weight:700;letter-spacing:-.01em;white-space:nowrap}.topbar .brand small{display:block;font-weight:400;font-size:.7rem;color:var(--text-muted)}.nav{display:flex;gap:.25rem;flex-wrap:wrap;flex:1}.nav a{padding:.45rem .7rem;border-radius:8px;color:var(--text-muted);text-decoration:none;font-weight:600;font-size:.92rem}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a.active{background:var(--accent-weak);color:var(--accent)}.content{width:100%;max-width:920px;margin:0 auto;padding:1.25rem 1rem 4rem;flex:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.1rem 1.15rem;margin-bottom:1.1rem}.card>h2:first-child,.card>h1:first-child{margin-top:0}.grid{display:grid;gap:.9rem}.grid.cols-2{grid-template-columns:repeat(2,1fr)}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-4{grid-template-columns:repeat(4,1fr)}@media (max-width: 640px){.grid.cols-2,.grid.cols-3{grid-template-columns:1fr}.grid.cols-4{grid-template-columns:repeat(2,1fr)}}.stat{background:var(--surface-2);border-radius:var(--radius);padding:.8rem .9rem}.stat .label{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.stat .value{font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums}.stat.estimate{background:var(--estimate-weak)}.stat.actual{background:var(--actual-weak)}.pill{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.pill.estimate{background:var(--estimate-weak);color:var(--estimate)}.pill.actual{background:var(--actual-weak);color:var(--actual)}.pill.status-planned{background:var(--surface-2);color:var(--text-muted)}.pill.status-in_progress{background:var(--estimate-weak);color:var(--estimate)}.pill.status-complete{background:var(--actual-weak);color:var(--actual)}.pill.status-partial{background:var(--warn-weak);color:var(--warn)}.pill.status-blocked{background:var(--warn-weak);color:var(--danger)}.field{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.7rem}.field label{font-size:.82rem;font-weight:600;color:var(--text-muted)}.field .unit{font-weight:400;color:var(--text-muted)}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.35rem .55rem;min-height:34px;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}.field .note{font-size:.75rem;color:var(--text-muted)}.btn{font:inherit;font-weight:600;cursor:pointer;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:7px;padding:.3rem .8rem;min-height:34px;font-size:.9rem;line-height:1.2}.btn.small{padding:.2rem .55rem;min-height:28px;font-size:.82rem}.btn:hover{border-color:var(--text-muted)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#0d130c}.btn.ghost{background:transparent}.btn.danger{color:var(--danger);border-color:var(--danger);background:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--border);white-space:nowrap}th{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}td.num,th.num{text-align:right}@media (max-width: 640px),(pointer: coarse){.btn{min-height:38px;padding:.35rem .85rem}.btn.small{min-height:34px;padding:.25rem .65rem}input,select,textarea{min-height:40px;font-size:16px}.inline-input{min-height:34px}.cage-table .col-time{width:90px}.cage-table .col-actions{width:140px}.cage-table input.feed-check{width:28px;height:28px;min-height:0}}@media (max-width: 640px){th,td{padding:.45rem .4rem}.content{padding-left:.6rem;padding-right:.6rem}}.banner{border-radius:8px;padding:.6rem .75rem;font-size:.88rem;margin-bottom:.9rem}.banner.info{background:var(--estimate-weak);color:var(--estimate)}.banner.warn{background:var(--warn-weak);color:var(--warn)}.banner.error{background:var(--warn-weak);color:var(--danger)}.eq{font-family:var(--mono);font-size:.85rem;background:var(--surface-2);padding:.6rem .7rem;border-radius:8px;overflow-x:auto}.divider{height:1px;background:var(--border);margin:1rem 0}.center{display:grid;place-items:center;min-height:70vh}.login-card{width:100%;max-width:360px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.inline-input{width:100%;max-width:140px;display:inline-block;min-height:28px;padding:.2rem .45rem}.cage-table{table-layout:fixed}.cage-table .col-time{width:110px}.cage-table .col-actions{width:150px}.cage-table .col-fed{width:70px}.cage-table .col-pct{width:100px}input.feed-check{width:22px;height:22px;min-height:0;padding:0;margin:0;accent-color:var(--accent);cursor:pointer;vertical-align:middle}.cage-table td{height:44px;overflow:hidden;text-overflow:ellipsis}.clock-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;min-height:52px;padding:.45rem .6rem;border-bottom:1px solid var(--border)}.btn.clock-btn{min-width:96px}.clock-last{flex-basis:100%;font-size:.8rem;color:var(--text-muted)}@media (max-width: 640px){.clock-row .btn-row{width:100%}.btn.clock-btn{flex:1;min-height:44px}}.cage-table tr.manual-row td{height:auto;overflow:visible;white-space:normal;padding-top:.25rem}.manual-row input[type=datetime-local]{width:auto;flex:1 1 170px;min-width:0}
