:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173139;background:#f4f6f4;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:#0b5968}input,select,textarea{width:100%;min-height:46px;border:1px solid #b7c8c9;border-radius:10px;background:#fff;color:#173139;padding:10px 12px}textarea{min-height:106px;resize:vertical}input[type=checkbox]{width:20px;min-height:20px;accent-color:#126f79}input[type=file]{padding:10px;min-height:54px}label{display:block;font-weight:650;font-size:.91rem;margin:0 0 6px}.hint{font-size:.83rem;color:#536870;line-height:1.45}.required:after{content:" *";color:#aa4f38}.field{margin:0 0 16px}.check{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-weight:550}.check input{flex:none;margin:2px 0 0}.boot{padding:32px;text-align:center}
.app-shell{min-height:100vh;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.topbar{background:#123d46;color:#fff;padding:calc(15px + env(safe-area-inset-top)) 16px 15px}.top-inner{max-width:940px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:35px;height:35px;border-radius:10px;background:#db8a45;color:#142f35;display:grid;place-items:center;font-weight:850}.brand small{display:block;opacity:.8;font-size:.72rem}.top-actions{display:flex;gap:8px;align-items:center}.top-link{color:#fff;text-decoration:none;font-size:.82rem;border:1px solid #7f9fa3;padding:7px 9px;border-radius:8px}.tiny-button{border:1px solid #81a0a5;color:#fff;background:transparent;border-radius:8px;padding:8px 10px;font-size:.82rem}.main{max-width:940px;margin:0 auto;padding:18px 15px 28px}.page-title{margin:0 0 4px;font-size:1.55rem;letter-spacing:-.025em}.subheading{margin:0 0 18px;color:#607178}.section-title{font-size:1.1rem;margin:24px 0 11px}.card{background:#fff;border:1px solid #d9e3e1;border-radius:17px;padding:17px;margin:0 0 14px;box-shadow:0 2px 8px #183c4610}.card h2,.card h3{margin:0 0 9px}.card p{line-height:1.48}.soft{background:#eaf1f0}.warm{background:#fff5e9;border-color:#efd4b1}.danger-card{background:#fff2ef;border-color:#e8b4a6}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:12px}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.muted{color:#587077}.small{font-size:.86rem}.strong{font-weight:750}.top-gap{margin-top:12px}.bottom-gap{margin-bottom:14px}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:.77rem;font-weight:700;background:#e3eceb;color:#164e57}.pill.pending{background:#fff0d8;color:#755015}.pill.error{background:#ffdfd8;color:#943b2e}.pill.received{background:#ddf2e7;color:#216346}.pill.locked{background:#e8e9ec;color:#505962}.pill.offline{background:#fff0d8;color:#755015}.status-line{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:12px}.notice{padding:12px 13px;border-radius:11px;background:#eaf1f0;margin:12px 0;font-size:.89rem;line-height:1.45}.notice.warning{background:#fff0da}.notice.error{background:#ffe5dd}.notice.success{background:#e0f4e7}.button{min-height:46px;border:0;border-radius:10px;background:#166675;color:#fff;padding:10px 16px;font-weight:700;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.button:hover{background:#104f5b}.button.secondary{background:#e6efed;color:#164d56}.button.secondary:hover{background:#d5e6e3}.button.outline{border:1px solid #9bb8bc;background:#fff;color:#155565}.button.warn{background:#a24b32}.button.full{width:100%}.button.small{min-height:37px;padding:7px 10px;font-size:.82rem}.button-group{display:flex;gap:8px;flex-wrap:wrap}.button-group .button{flex:1 1 auto}.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.action-card{min-height:93px;border:1px solid #bfd0d0;background:#fff;border-radius:12px;text-align:left;padding:12px;display:flex;flex-direction:column;justify-content:space-between;color:#174951;font-weight:750}.action-card span{font-size:.75rem;color:#577078;font-weight:500}.record-card{border-left:4px solid #3b8490}.record-card.observation{border-left-color:#d68c4a}.record-title{font-weight:760;margin:0 0 5px}.record-meta{font-size:.81rem;color:#5a6d72;margin:0 0 9px}.record-desc{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.record-resources{display:flex;flex-wrap:wrap;gap:7px;font-size:.78rem;color:#3d6268}.record-resources span{background:#eaf1f0;border-radius:7px;padding:5px 7px}.total-box{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.total-number{font-size:2.2rem;font-weight:820;line-height:1}.total-number small{font-size:.9rem;font-weight:600}.tabs{position:fixed;z-index:10;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #cad9d8;display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 10px #123d4612}.tab{height:67px;border:0;background:transparent;color:#587179;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:.76rem;font-weight:650}.tab.active{color:#0e5967;background:#e9f2f1}.tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.select-bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.select-bar label{font-size:.78rem}.mini-list{padding:0;margin:6px 0;list-style:none}.mini-list li{padding:8px 0;border-bottom:1px solid #e4ecea}.mini-list li:last-child{border:0}.divider{border:0;border-top:1px solid #dde7e5;margin:18px 0}.form-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}.form-head h1{margin:0;font-size:1.4rem}.line-item{border:1px solid #d7e3e1;padding:12px;border-radius:12px;margin-bottom:9px;background:#f9fbfa}.line-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.line-head strong{font-size:.89rem}.icon-button{border:0;background:#e8eeed;color:#365b62;border-radius:7px;min-height:35px;padding:6px 10px}.field-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}.field-grid.three{grid-template-columns:1.4fr .7fr .9fr}.field-grid .field{margin-bottom:0}.attachment{padding:12px;background:#f1f6f4;border-radius:10px;margin:8px 0}.attachment a{overflow-wrap:anywhere}.attachment .field{margin:10px 0 0}.help-list{padding-left:20px;line-height:1.55}.week-day{border:1px solid #d9e3e1;border-radius:12px;background:#fff;padding:13px;margin:8px 0;width:100%;text-align:left;color:inherit}.week-day strong{display:block}.week-day .row{margin-top:6px}.sync-item{border-top:1px solid #e0e8e7;padding:13px 0}.sync-item:first-of-type{border-top:0}.login-wrap{min-height:100vh;background:linear-gradient(160deg,#123d46 0 29%,#f4f6f4 29%);padding:clamp(24px,5vw,60px) 16px}.login-card{max-width:440px;margin:40px auto;background:#fff;padding:25px;border-radius:19px;box-shadow:0 14px 50px #062a3440}.login-card h1{margin:0 0 8px}.login-brand{color:#fff;text-align:center;font-weight:800;font-size:1.24rem;letter-spacing:.01em}.login-brand small{font-weight:400;font-size:.8rem;display:block}.login-note{font-size:.8rem;color:#566f75;line-height:1.5}.form-actions{position:sticky;bottom:calc(67px + env(safe-area-inset-bottom));z-index:5;background:#f4f6f4e9;backdrop-filter:blur(9px);padding:10px 0;border-top:1px solid #dbe7e5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:700px){.app-shell{padding-bottom:30px}.tabs{position:static;max-width:940px;margin:0 auto 18px;border:1px solid #cddcda;border-radius:0 0 14px 14px;box-shadow:none;padding:0}.tab{height:54px;flex-direction:row;font-size:.9rem}.tab svg{width:20px;height:20px}.action-grid{gap:14px}.action-card{min-height:104px}.form-actions{bottom:0}.main{padding-top:22px}}
@media(max-width:410px){.action-grid{grid-template-columns:1fr}.action-card{min-height:57px;flex-direction:row;align-items:center}.two-col,.three-col,.field-grid,.field-grid.three{grid-template-columns:1fr}.select-bar{grid-template-columns:1fr 1fr}.top-actions .top-link{display:none}}

.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.tab span{max-width:100%;overflow-wrap:anywhere}.feedback-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.feedback-message{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-history{margin-top:18px;padding-top:14px;border-top:1px solid #d9e3e1}.feedback-history summary{cursor:pointer;color:#155565;font-weight:650}.feedback-history ol{padding-left:22px}.feedback-history li{padding:12px 0;border-bottom:1px solid #e3eae8}.feedback-history li:last-child{border-bottom:0}.feedback-history small{color:#536870}.record-card:target{outline:2px solid #166675;outline-offset:3px}@media(max-width:440px){.tab{font-size:.65rem}.tab svg{width:21px;height:21px}.tab span{letter-spacing:-.02em}}

.tabs{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:440px){.tab{font-size:.59rem}}
