:root{--bg: #0f1412;--surface: #171e1a;--surface2: #1f2823;--surface3: #26312b;--line: #26312b;--dash: #3c4b43;--text: #e8eee9;--muted: #93a39a;--lime: #b7e34b;--red: #f28b7b;--amber: #e2b866;--font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font-family:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid var(--lime);outline-offset:2px}.page{max-width:480px;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;background:var(--bg)}.body{flex:1 1 auto;padding:4px 20px 24px}.topbar{display:flex;align-items:center;gap:8px;height:64px;padding:8px 20px 0 12px;flex:none}.topbar h1{margin:0;font-size:20px;font-weight:700}.iconbtn{flex:none;width:48px;height:48px;border:0;border-radius:24px;background:transparent;display:flex;align-items:center;justify-content:center}.iconbtn.filled{background:var(--surface2)}.footer{position:sticky;bottom:0;padding:12px 20px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#121917}.primary{width:100%;height:56px;border:0;border-radius:28px;background:var(--lime);color:var(--bg);font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center}.primary:disabled{background:var(--surface3);color:var(--muted);cursor:not-allowed}.label{margin-top:14px;font-size:12px;color:var(--muted);display:block}.label.first{margin-top:0}.hint{margin:8px 4px 0;font-size:12px;line-height:1.7;color:var(--muted)}.chips{margin-top:6px;display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.chips.wrap{flex-wrap:wrap;overflow-x:visible}.chip{flex:none;height:44px;padding:0 16px;border:0;border-radius:22px;background:var(--surface2);color:var(--text);font-size:14px;font-weight:700;white-space:nowrap}.chip[aria-pressed=true]{background:var(--lime);color:var(--bg)}.chip.ghost{background:transparent;color:var(--muted);font-weight:500}.chip.danger[aria-pressed=true]{background:var(--red);color:var(--bg)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.field{margin-top:6px;width:100%;height:52px;padding:0 16px;border:0;border-radius:18px;background:var(--surface);color:var(--text);font-size:16px}.field::placeholder{color:var(--muted);opacity:1}.field.mono{font-family:var(--mono);font-size:15px}textarea.field{height:auto;min-height:84px;padding:14px 16px;line-height:1.6;resize:vertical}.unit-field{margin-top:6px;display:flex;align-items:center;height:52px;padding:0 16px;border-radius:18px;background:var(--surface)}.unit-field input{flex:1 1 0;min-width:0;border:0;background:transparent;font-family:var(--mono);font-size:16px}.unit-field span{margin-left:6px;font-size:14px;color:var(--muted)}.card{padding:12px 14px;border-radius:18px;background:var(--surface)}.tile{width:52px;height:52px;flex:none;border-radius:14px;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:600;font-size:15px}.tile.sm{width:40px;height:40px;border-radius:12px;font-size:12px}.badge{padding:2px 8px;border-radius:10px;font-size:11px;font-weight:700;white-space:nowrap;background:var(--surface2);color:var(--muted)}.badge.due{background:#b7e34b29;color:var(--lime)}.badge.late{background:#e2b86629;color:var(--amber)}.badge.refuse{background:#f28b7b29;color:var(--red)}.badge.ok{background:var(--surface2);color:var(--muted)}.home-head{display:flex;align-items:flex-end;justify-content:space-between;padding:28px 20px 12px}.home-head .date{font-size:13px;color:var(--muted)}.home-head h1{margin:2px 0 0;font-size:28px;line-height:1.2;font-weight:700}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:4px 20px 12px}.stat{padding:12px 14px;border-radius:16px;background:var(--surface)}.stat .n{font-family:var(--mono);font-weight:600;font-size:26px;line-height:1}.stat .n small{margin-left:2px;font-family:var(--font);font-weight:500;font-size:13px;color:var(--muted)}.stat .t{margin-top:6px;font-size:12px;color:var(--muted)}.filters{display:flex;gap:8px;overflow-x:auto;padding:0 20px 12px}.list{list-style:none;margin:0;padding:0 20px 110px;display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 12px;border-radius:18px;background:var(--surface)}.row .main{flex:1 1 0;min-width:0}.row .name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row .sub{margin-top:3px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row .side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}.row .weight{font-family:var(--mono);font-weight:500;font-size:14px}.fab-wrap{position:sticky;bottom:20px;display:flex;justify-content:flex-end;padding:0 20px;margin-top:-76px;pointer-events:none}.fab{pointer-events:auto;height:56px;padding:0 24px 0 18px;border:0;border-radius:28px;background:var(--lime);color:var(--bg);display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;box-shadow:0 8px 24px #00000080}.empty{margin:16px 20px;padding:28px 20px;border-radius:20px;background:var(--surface);text-align:center}.empty p{margin:0 0 16px;font-size:14px;line-height:1.8;color:var(--muted)}.picker{margin-top:10px;display:flex;gap:10px;overflow-x:auto;padding:8px 6px;margin-left:-6px;margin-right:-6px}.pick{flex:none;position:relative;width:60px;height:56px;padding:0;border-radius:16px;font-family:var(--mono);font-weight:600;font-size:13px;border:2px solid transparent}.pick[aria-pressed=true]{border-color:var(--lime)}.pick .check{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:10px;background:var(--lime);color:var(--bg);display:flex;align-items:center;justify-content:center}.types{margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:76px;gap:10px}.type{display:flex;align-items:center;gap:12px;padding:0 14px;border:1px solid transparent;border-radius:20px;background:var(--surface2);text-align:left}.type[disabled]{opacity:.45;cursor:not-allowed}.type.active{border-color:#b7e34b80}.type .ico{flex:none;width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center}.type .tt{display:block;font-size:15px;font-weight:700}.type .ts{display:block;margin-top:2px;font-size:11px;color:var(--muted)}.result-card{margin-top:6px;padding:4px 12px;border-radius:18px;background:var(--surface)}.result-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 0}.result-row+.result-row{border-top:1px solid var(--line)}.result-row .nm{flex:1 1 0;min-width:0;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seg{flex:none;display:flex;gap:6px}.seg button{width:68px;height:44px;border:0;border-radius:22px;background:var(--surface3);color:var(--text);font-size:14px;font-weight:700}.seg button[aria-pressed=true].ate{background:var(--lime);color:var(--bg)}.seg button[aria-pressed=true].ref{background:var(--red);color:var(--bg)}.stepper{display:flex;align-items:center;justify-content:space-between}.stepper .v{font-family:var(--mono);font-weight:600;font-size:22px}.stepper button{width:44px;height:44px;border:0;border-radius:22px;background:var(--surface3);display:flex;align-items:center;justify-content:center}.sub-label{font-size:11px;color:var(--muted)}.detail-head{display:flex;align-items:center;gap:14px}.detail-head .tile{width:64px;height:64px;border-radius:18px;font-size:18px}.detail-head h2{margin:0;font-size:22px;line-height:1.25}.meta{margin-top:8px;font-size:12px;line-height:1.7;color:var(--muted)}.stat-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-grid .v{margin-top:4px;font-family:var(--mono);font-weight:600;font-size:22px}.stat-grid .v small{margin-left:3px;font-family:var(--font);font-size:13px;font-weight:500;color:var(--muted)}.stat-grid .s{margin-top:2px;font-size:12px;color:var(--muted)}.hist{list-style:none;margin:4px 0 0;padding:0}.hist li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--surface2)}.hist .ic{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center}.hist .tx{flex:1 1 0;min-width:0}.hist .tt{font-size:14px;font-weight:700}.hist .tm{margin-top:2px;font-family:var(--mono);font-size:12px;color:var(--muted)}.linkbtn{flex:none;height:44px;padding:0 12px;border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:700}.linkbtn.warn{color:var(--red)}.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%);width:min(440px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 18px;border-radius:28px;background:#e8eee9;color:#0f1412;font-size:14px;font-weight:700;box-shadow:0 8px 24px #00000080;z-index:10}.toast button{height:44px;padding:0 14px;border:0;border-radius:22px;background:transparent;color:#3a5a00;font-size:14px;font-weight:700}.section-title{margin:20px 0 0;font-size:17px;font-weight:700}.tile.photo{position:relative;background-size:cover;background-position:center;overflow:hidden}.tile.photo .code{position:absolute;left:0;right:0;bottom:0;padding:1px 0;text-align:center;font-size:10px;color:#fff;background:#0000008c}.tile.sm.photo .code{font-size:8px}.detail-head .tile.photo .code{font-size:11px}.photo-edit{display:flex;align-items:center;gap:14px}.photo-edit .tile{width:88px;height:88px;border-radius:22px}.photo-edit .btns{display:flex;flex-direction:column;gap:8px}.photo-edit .btns button,.photo-edit .btns label{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:var(--surface2);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.edit-link{margin-left:auto;min-height:44px;padding:0 14px;border:0;border-radius:14px;background:var(--surface2);color:var(--text);font:inherit;font-weight:600}
