:root{font-family:system-ui,sans-serif;color:#18313c;background:#f2f7f8}*{box-sizing:border-box}body{margin:0}main{max-width:96rem;margin:0 auto;padding:1rem 1rem calc(5rem + env(safe-area-inset-bottom))}header{padding:1rem .25rem 1.5rem}.app-header{display:flex;justify-content:space-between;align-items:start;gap:1rem}.app-header p:last-child{margin-bottom:0}.fullscreen-button{flex:none;margin-top:.3rem}.app-header h1{margin:0}.preview-notice{margin:0 0 1rem;padding:.6rem .8rem;border-radius:.6rem;background:#e9f7f8;color:#075a6a;font-weight:700}.uat-assist-toggle{display:flex;align-items:center;gap:.5rem;width:fit-content;margin-bottom:1rem}.uat-assist-toggle input{width:auto}body.uat-assist [data-uat-choice]{position:relative;border-width:3px;border-color:#087646;box-shadow:0 0 0 3px #b7edce}body.uat-assist [data-uat-choice]:before{content:attr(data-uat-choice) "｜";font-size:1.2em;font-weight:900}body.uat-assist [data-uat-choice=C]{border-color:#a53428;box-shadow:0 0 0 3px #f3c8c3}h1{font-size:1.9rem;margin:.25rem 0}h2{font-size:1.15rem;margin:0 0 1rem}p{line-height:1.55}.eyebrow{color:#146a79;font-size:.85rem;font-weight:700;letter-spacing:.04em}.card{background:#fff;border:1px solid #d5e3e6;border-radius:1rem;padding:1.25rem;margin:1rem 0;box-shadow:0 2px 12px #18313c0a}.notice{background:#fff5ed;color:#823e13;border:1px solid #e7b18a;border-radius:.75rem;padding:1rem}dl{display:grid;grid-template-columns:minmax(8rem,1fr) 2fr;gap:.75rem 1rem;margin:0}dt{color:#55717b}dd{margin:0;font-weight:600;overflow-wrap:anywhere}.note{color:#5a4a1b;background:#fff9e8;border-radius:.6rem;padding:.75rem;margin-bottom:0}.actor-list{display:grid;gap:.6rem}button{min-height:3rem;text-align:left;background:#fff;border:1px solid #a7c5cb;border-radius:.6rem;padding:.75rem 1rem;color:inherit;font:inherit;cursor:pointer}button[aria-pressed=true]{border-color:#11788b;background:#e9f7f8}button:disabled{opacity:.5;cursor:wait}.report-section{margin-top:1.25rem;border-top:2px solid #d5e3e6;padding-top:1rem}.report-slots,.report-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.6rem 0}.report-slots button{flex:1 1 9rem}.report-extra{width:100%;margin:.25rem 0}.report-editor{margin-top:1rem;padding:.9rem;border:1px solid #d5e3e6;border-radius:.7rem;background:#f8fbfc;scroll-margin-top:.75rem}.report-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.report-observation{padding:.85rem;margin:.8rem 0;border:2px solid #2b7280;border-left-width:6px;border-radius:.65rem;background:#eaf5f8}.report-observation-alternate{border-color:#7054a0;background:#f3effa}.report-observation-title{margin:0 0 .75rem;font-size:1rem}.report-actions{position:sticky;bottom:0;padding:.7rem 0;background:#f8fbfc;z-index:2}.report-actions button{flex:1 1 10rem}.report-assessment{margin:.9rem 0;padding:.8rem;border:1px solid #d8b86e;border-radius:.6rem;background:#fffaf0}.report-assessment h5{margin:0 0 .55rem}.report-assessment details{padding:.4rem 0;border-bottom:1px solid #e9dcc3;overflow-wrap:anywhere}.report-assessment small{display:block;margin:.25rem 0;color:#5a6267}.report-assessment pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem}.report-change{margin-top:1rem;padding:.9rem;border:1px solid #7054a0;border-radius:.65rem}.report-status-grid details{margin-top:.3rem;font-size:.85rem}.rule-config{max-width:48rem}.rule-config details{margin:.7rem 0}.rule-config li{margin-bottom:.35rem;overflow-wrap:anywhere}@media(max-width:520px){.report-status-grid{grid-template-columns:1fr}}small{display:block;color:#607780}form{display:grid;gap:.8rem}label{display:grid;gap:.35rem;color:#405e68}input,select,textarea{width:100%;border:1px solid #a7c5cb;border-radius:.5rem;padding:.8rem;font:inherit;color:#18313c;background:#fff}textarea{resize:vertical}.identity-card{margin-top:0}.identity-card dl{font-size:.92rem}.identity-compact{display:none}.nav-more{flex:1 1 auto;position:relative}.nav-more summary{list-style:none;text-align:center;min-height:3rem;padding:.75rem 1rem;border:1px solid #a7c5cb;border-radius:.6rem;background:#fff;cursor:pointer;font-weight:650}.nav-more summary::-webkit-details-marker{display:none}.nav-more>div{display:grid;gap:.4rem;padding:.4rem 0}.nav-more button{width:100%}.clinical-area{margin-top:1.5rem}.nav-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.5rem}.nav-row button{flex:1 1 auto;text-align:center;font-weight:650}.nav-row .nav-active{border-color:#11788b;background:#e9f7f8}.primary{background:#087084;color:#fff;border-color:#087084;text-align:center;font-weight:700}.primary:hover{background:#075f70}.danger{background:#a53428;color:#fff;border-color:#a53428;text-align:center;font-weight:700}.danger:hover{background:#8c291f}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-heading h2{margin:0}.section-heading button{flex:none}.empty-state{background:#fff;border:1px dashed #a7c5cb;border-radius:1rem;padding:2rem 1.25rem;color:#54717a}.patient-list{display:grid;gap:.8rem}.patient-card{display:grid;gap:.3rem;width:100%;border-radius:1rem;padding:1.15rem;background:#fff;box-shadow:0 2px 12px #18313c0a}.patient-card:hover{border-color:#11788b}.patient-title{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:1.2rem;font-weight:750}.patient-meta{color:#58727b;font-size:.93rem;margin:.2rem 0}.patient-problem{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.due-summary,.due-filters,.due-group{max-width:54rem;margin-inline:auto}.due-summary{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;font-weight:700}.due-summary span{padding:.35rem .7rem;border-radius:999px;background:#e5f2f5;color:#164e5b}.due-summary .due-summary-late{background:#fbe5d8;color:#813510}.due-filters{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.25rem}.due-filters button{min-height:2.4rem;padding:.4rem .75rem}.due-group{margin-bottom:1.5rem}.due-group h3{display:flex;align-items:center;gap:.5rem;margin:0 0 .65rem;font-size:1.05rem}.due-group h3 span{font-size:.85rem;color:#58727b}.due-list{display:grid;gap:.55rem}.due-card{display:grid;gap:.45rem;padding:.8rem 1rem;background:#fff;border:1px solid #d5e3e6;border-left:.35rem solid #087084;border-radius:.7rem}.due-card-late{background:#fff9f2;border-color:#ead0bd;border-left-color:#b64a16}.due-card-heading{display:flex;align-items:start;justify-content:space-between;gap:.75rem}.due-card-heading div{display:grid;gap:.1rem;min-width:0}.due-card-heading strong{overflow-wrap:anywhere;font-size:1.05rem}.due-card-heading small{font-size:.86rem}.due-card time{color:#314c55;font-weight:650}.due-badge{flex:none;padding:.25rem .6rem;border-radius:999px;font-size:.82rem;font-weight:750;white-space:nowrap}.due-badge-late{background:#8b3b17;color:#fff}.due-badge-upcoming{background:#d8edf1;color:#075a6a}.due-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.15rem}.due-card-actions button{min-height:2.4rem;padding:.4rem .7rem}.due-card-actions .due-card-link{margin-left:auto;color:#087084;border-color:transparent;background:transparent;text-decoration:underline}.compact-home{display:grid;gap:.45rem}.compact-home .section-heading{margin:.25rem 0}.home-stay,.home-next-due{display:grid;gap:.2rem;width:100%;min-height:0;padding:.7rem .9rem;background:#fff}.home-stay strong,.home-next-due strong{font-size:1rem}.home-stay small{font-size:.8rem}.home-next-due{border-left:.35rem solid #087084}.home-next-due-late{border-left-color:#b64a16;background:#fff9f2}.home-link{min-height:0;padding:.4rem .7rem;color:#087084}.home-due-heading{margin-top:.35rem!important}.home-due-heading button{min-height:2.25rem;padding:.35rem .65rem}.compact-treatments h4{margin:.85rem 0 .55rem}.compact-task{display:grid;gap:.4rem;padding:.7rem .85rem;background:#fff;border:1px solid #d5e3e6;border-left:.3rem solid #087084;border-radius:.7rem}.compact-task.due-card-late{background:#fff9f2;border-left-color:#b64a16}.compact-task time{font-weight:650}.compact-task details p{overflow-wrap:anywhere}.compact-task .due-card-actions button{min-height:2.5rem}.compact-order-section{margin:1rem 0}.compact-order-section>summary{padding:.75rem;border:1px solid #a7c5cb;border-radius:.6rem;background:#fff;cursor:pointer}.compact-order{padding:.75rem 0;border-bottom:1px solid #d5e3e6;display:grid;gap:.55rem}.compact-order h4{margin:0}.compact-order .task-actions{margin:.3rem 0}.compact-order .task-actions button{min-height:2.4rem}.status{display:inline-block;border-radius:999px;padding:.25rem .65rem;font-size:.8rem;font-weight:700;white-space:nowrap}.status.active{background:#e6f6ed;color:#11673d}.status.discharged{background:#eaf0f3;color:#4c636d}.form-hint{color:#58727b;margin-top:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.submit-button{width:100%;margin-top:.5rem}.detail-grid{margin-top:1.2rem}.detail-grid dd{white-space:pre-wrap}.record-ids{margin-top:1.3rem;color:#58727b;overflow-wrap:anywhere}.record-ids small{margin-top:.4rem}.detail-actions{display:grid;gap:.6rem;margin-top:1.5rem}.detail-actions button{width:100%;text-align:center}.subform{border-top:1px solid #d5e3e6;padding-top:1.2rem;margin-top:1.2rem}.subform h3{margin:0}.discharge-panel{border-color:#e6ad9f}.treatment-area{border-top:2px solid #d5e3e6;margin-top:1.6rem;padding-top:1.2rem}.grid-scroll{overflow-x:auto;max-width:100%;margin:1rem 0}.treatment-grid{width:100%;min-width:630px;border-collapse:collapse}.treatment-grid th,.treatment-grid td{padding:.75rem;border:1px solid #d5e3e6;text-align:left;vertical-align:top}.treatment-grid th{min-width:9rem}.treatment-grid th small,.task-cell span{display:block;margin-top:.3rem;font-weight:400}.task-cell{padding:.45rem;margin-bottom:.5rem;background:#f4f9fa;border-radius:.4rem}.task-cell.done{background:#e8f5eb}.task-cell.skipped,.task-cell.cancelled,.task-cell.superseded{background:#f3f0ed}.task-actions{display:flex;flex-wrap:wrap;gap:.4rem}.task-actions button{min-height:2.5rem;padding:.45rem .6rem;margin:.1rem}.task-row-actions{min-width:12rem}.treatment-grid tbody+tbody tr:first-child>*{border-top:2px solid #a9cbd2}.order-management-row td{background:#f4f9fa}.order-management-row .task-actions{align-items:center}.order-management-row strong{margin-right:.5rem}.rate-warning{display:block;margin-top:.5rem;color:#a53428}.check-row{display:flex;align-items:center;gap:.6rem}.check-row input{width:auto}@media(min-width:851px){main{padding:2rem 2rem calc(5rem + env(safe-area-inset-bottom))}.patient-list{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-area>.card:not(.stay-detail){max-width:46rem}.detail-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.treatment-grid{min-width:0;table-layout:fixed}.treatment-grid th:first-child{width:25%}.treatment-grid th:nth-child(2){width:32%}.treatment-grid th:nth-child(3){width:43%}}@media(min-width:520px)and (max-width:850px){main{padding:.75rem 1.25rem calc(5rem + env(safe-area-inset-bottom))}.app-header{padding:.25rem 0 .45rem;align-items:center}.app-header h1{font-size:1.4rem}.fullscreen-button{min-height:2.5rem;margin:0;padding:.4rem .7rem}.identity-card{padding:.55rem .8rem;margin-bottom:.5rem}.identity-card h2{font-size:.9rem;margin:0 0 .3rem}.identity-card dl,.identity-card .note{display:none}.identity-compact{display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:.88rem}.identity-compact strong{color:#164e5b}.nav-row button{flex:1 1 calc(50% - .5rem)}.nav-row{margin-bottom:.7rem}.nav-row .nav-more{flex:1 1 calc(50% - .5rem)}.clinical-area{margin-top:.5rem}.form-row{grid-template-columns:1fr 1fr}.treatment-grid{min-width:760px}}@media(max-width:519px){main{padding:.75rem .75rem calc(5rem + env(safe-area-inset-bottom))}.app-header{padding:.1rem 0 .45rem;align-items:center}.app-header h1{font-size:1.25rem}.fullscreen-button{padding:.5rem .65rem;min-height:2.6rem}.card{padding:1rem}.identity-card{padding:.55rem .7rem;margin-bottom:.5rem}.identity-card h2{font-size:.9rem;margin:0 0 .3rem}.identity-card dl{display:none}.identity-compact{display:grid;gap:.1rem;font-size:.85rem}.identity-card .note{font-size:.8rem;margin-top:.5rem;padding:.45rem}.nav-row button{flex:1 1 calc(50% - .5rem);min-width:0;padding-inline:.45rem}.nav-row{margin-bottom:.7rem}.nav-row .nav-more{flex:1 1 calc(50% - .5rem)}.nav-row .primary{flex-basis:100%}.clinical-area{margin-top:.5rem}.form-row,.detail-grid{grid-template-columns:1fr}.detail-grid{gap:.2rem}.detail-grid dd{margin-bottom:.65rem}.due-card-actions .due-card-link{margin-left:0}.treatment-grid{min-width:700px}}.telegram-fullscreen .patient-list{grid-template-columns:repeat(2,minmax(0,1fr))}.telegram-fullscreen .treatment-grid{min-width:0}.stay-row{display:grid;gap:.35rem}.report-shortcut{min-height:2.6rem;border-radius:.8rem;background:#e5f2f5;color:#164e5b;font-weight:700}
