:root{font-family:"Yu Gothic UI","Meiryo",sans-serif;color:#203e3a;background:#f5f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.demo{background:#234f47;color:#fff;text-align:center;padding:10px 16px;font-size:12px;letter-spacing:.04em}header{max-width:1120px;margin:auto;padding:28px 32px;display:flex;justify-content:space-between;gap:24px;align-items:center}.brand{display:flex;gap:14px;align-items:center}.brand strong{font-size:22px}.brand small{display:block;color:#648079;margin-top:4px;font-size:12px}.mark{background:#dce9df;border-radius:50%;width:52px;height:52px;display:grid;place-items:center;font-family:serif;font-size:25px}.identity{font-size:12px;min-width:240px}main{max-width:1056px;margin:auto;padding:0 24px}.intro{display:grid;grid-template-columns:1.5fr 1fr;gap:48px;align-items:center;padding:34px 0 38px}h1{font-size:42px;line-height:1.45;font-weight:500;letter-spacing:.06em;margin:12px 0}p{line-height:1.8}.eyebrow{font-size:11px;letter-spacing:.15em;color:#6b8176;font-weight:700}.intro aside{background:#e7eee6;padding:24px 28px;border-radius:12px;font-size:13px;line-height:1.8}.intro aside span{font-size:12px;color:#567467}nav{display:flex;border-bottom:1px solid #d6e0d9;gap:8px;overflow:auto}button{font:inherit;cursor:pointer;background:white;border:1px solid #cbd8d1;color:#294c43;border-radius:8px;padding:12px 18px;font-size:14px}button:hover{background:#e8efea}button:disabled{opacity:.5;cursor:wait}nav button{white-space:nowrap;border:0;background:transparent;border-radius:8px 8px 0 0;padding:17px 20px}nav .selected{background:#dce8df;border-bottom:3px solid #32604f}.panel{background:#fff;border:1px solid #e0e7e1;border-radius:14px;padding:30px;margin:20px 0 32px;box-shadow:0 6px 22px #203e3a04}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}h2{font-size:22px;font-weight:600;margin:6px 0 16px}h3{font-size:16px;margin-top:28px}.pill{background:#eef3e9;border-radius:30px;padding:8px 14px;font-size:12px;white-space:nowrap}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}label{display:block;font-size:14px;font-weight:600}input,select{font:inherit;color:#203e3a;background:#fbfcfa;border:1px solid #bdcfc4;border-radius:7px;padding:13px 12px;display:block;width:100%;margin-top:8px;min-width:0;min-height:46px}input:focus,select:focus,button:focus-visible{outline:3px solid #a5cbb5;outline-offset:2px}.wide{grid-column:1/-1}.summary{background:#f0f5ef;border-left:3px solid #5d8c72;margin-top:24px;padding:18px;line-height:1.8}.hint{font-size:12px;color:#697d73}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.primary{background:#295f4e;color:white;border-color:#295f4e}.primary:hover{background:#174938}.danger{background:#a34439;color:white;border-color:#a34439}#notice:empty{display:none}#notice{padding:14px 18px;background:#e1f0e4;border-radius:8px}#notice.error{background:#fff0e8;color:#963e22}.card{border:1px solid #dce5de;border-radius:10px;padding:20px;margin:14px 0}.card-head{display:flex;justify-content:space-between;gap:10px}.card h3{margin:0}.card p{margin:10px 0;font-size:14px}.cancelled{opacity:.65}.empty{padding:32px;text-align:center;background:#f4f7f2;border-radius:10px;color:#718379}footer{font-size:12px;color:#6b7d73;border-top:1px solid #d7e0d9;padding:24px 0 40px}footer p{margin:8px 0}.days{display:flex;gap:20px;flex-wrap:wrap}.days label{display:flex;gap:8px;align-items:center}.days input{width:20px;min-height:20px;margin:0}fieldset{border:1px solid #dce5de;border-radius:8px;margin:24px 0;padding:18px}.editor{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin-bottom:14px}.editor.staff{grid-template-columns:1fr auto}dialog{border:1px solid #cadace;border-radius:14px;max-width:480px;padding:28px}dialog::backdrop{background:#163a3255}[hidden]{display:none!important}@media(max-width:640px){header{padding:20px;align-items:flex-start;flex-direction:column;gap:20px}.identity{width:100%}main{padding:0 16px}.intro{grid-template-columns:1fr;gap:18px;padding:20px 0 28px}h1{font-size:32px}.intro aside{padding:18px}.panel{padding:20px 16px}.grid{grid-template-columns:1fr;gap:18px}.section-head{align-items:flex-start}.pill{font-size:10px;padding:7px}nav button{padding:14px 12px;font-size:13px}.editor{grid-template-columns:1fr 1fr}.editor label:first-child{grid-column:1/-1}.editor.staff{grid-template-columns:1fr auto}.editor.staff label:first-child{grid-column:auto}.actions button{flex:1}.card-head{flex-direction:column}.days{gap:14px}}

.check{display:flex;align-items:center;gap:10px;margin:18px 0}.check input{width:20px;min-height:20px;margin:0}.editor{grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dde7df;padding-bottom:18px}.editor label:first-child{grid-column:1/-1}.editor.staff{grid-template-columns:1fr auto}.editor.staff label:first-child{grid-column:auto}@media(max-width:640px){.editor{grid-template-columns:1fr 1fr}}

#auditData { white-space: pre-wrap; overflow-wrap: anywhere; }
#clinicBody { display:block; width:100%; font:inherit; color:#203e3a; background:#fbfcfa; border:1px solid #bdcfc4; border-radius:7px; padding:12px; margin-top:8px; resize:vertical; }
#clinicBody:focus { outline:3px solid #a5cbb5; outline-offset:2px; }
#chartEditor textarea {display:block;width:100%;font:inherit;color:#203e3a;background:#fbfcfa;border:1px solid #bdcfc4;border-radius:7px;padding:12px;margin:8px 0 18px;resize:vertical}
.chart-fields {display:grid;grid-template-columns:1fr 1fr;gap:16px}
.body-maps {display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:700px;margin:auto}
.body-maps svg {display:block;width:100%;max-width:300px;margin:auto}
.body-maps [data-point] {cursor:pointer}
.body-maps [data-point]:focus {stroke:#b9531e;stroke-width:5px;outline:none}
.body-sides {display:flex;justify-content:space-between;font-size:12px}
.body-marks {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
#chartHistory p {white-space:pre-wrap;overflow-wrap:anywhere}
#chartHistory details {border-bottom:1px solid #dce5de;padding:14px 0}
#chartHistory summary {cursor:pointer;overflow-wrap:anywhere}
@media(max-width:640px){.chart-fields,.body-maps{grid-template-columns:1fr}.body-maps{max-width:300px}#bodyDialog{width:calc(100% - 24px)}}

.list-tools{padding:12px;border:1px solid #cbdcd6;border-radius:10px;margin:12px 0;max-width:100%;}.list-tools label{display:inline-block;max-width:100%;margin:6px}.list-tools input{max-width:100%;box-sizing:border-box}.list-tools button{margin:4px}
