﻿:root{font-family:"Yu Gothic UI","Meiryo",sans-serif;color:#233b3b;background:#f5f7f7;font-size:14px;--green:#197568;--border:#dfe8e5}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);background:white;border-radius:8px;padding:9px 14px;color:inherit}button:hover{background:#edf5f2}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #79b9aa;outline-offset:2px}input,select,textarea{border:1px solid var(--border);border-radius:8px;padding:11px;background:white;color:inherit}aside{width:264px;flex-shrink:0;background:white;border-right:1px solid var(--border);padding:32px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:24px;font-weight:800;letter-spacing:1px;text-decoration:none;color:var(--green);margin-bottom:45px}.brand span{display:block;font-size:9px;letter-spacing:3px;margin:7px 0 0 31px;color:#8a9d99}.side-title{display:flex;align-items:center;justify-content:space-between;font-weight:700;margin-bottom:14px}.side-title button{padding:2px 10px;font-size:23px}#search{width:100%;font-size:12px;margin-bottom:18px}#patients{overflow:auto;flex:1}.patient-item{width:100%;display:flex;gap:12px;align-items:center;text-align:left;border:0;margin-bottom:7px;padding:13px 10px}.patient-item.active{background:#e6f2ee;color:#126252}.small-avatar,.avatar{background:#e3eeea;color:var(--green);display:grid;place-items:center;font-weight:bold;border-radius:14px}.small-avatar{width:36px;height:38px;flex-shrink:0}.patient-item strong{display:block;font-size:14px}.patient-item small{font-size:11px;color:#718780}.side-bottom{border-top:1px solid var(--border);padding-top:20px;font-size:11px;color:#81948f;line-height:2}.side-bottom button{font-size:11px;margin:10px 5px 0 0;padding:6px 9px}main{max-width:1100px;width:100%;padding:36px 46px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:11px;color:#6e8c83;letter-spacing:1px}h1{font-size:29px;margin:7px 0 0;letter-spacing:2px}h2{font-size:18px;margin:0}p{line-height:1.7}.local-badge{font-size:11px;background:#e6f1ec;border:1px solid #d6e8df;padding:7px 12px;color:#417a62;border-radius:20px}.patient-head{display:flex;align-items:center;gap:17px;padding:23px 0}.avatar{height:60px;width:60px;font-size:24px}.patient-head h2{font-size:24px;margin:3px 0}.patient-head p{margin:0;color:#7a8c87;font-size:12px;white-space:pre-wrap}.patient-head button{margin-left:auto}.quiet{background:transparent;font-size:12px}.date-bar{display:flex;align-items:center;justify-content:space-between;margin:12px 0 23px}.date-bar>div{display:flex;gap:8px;align-items:center}.date-bar input{font-weight:700;background:transparent;border:0;font-size:17px;width:175px}.date-bar button{padding:6px 11px}.date-bar>span{font-size:12px;color:#81948f}.recorder{background:white;border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:0 5px 18px #183f2e04}.section-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.section-top h2{margin-top:4px}.section-top .eyebrow{font-size:9px;letter-spacing:2px}#recordState{font-size:11px;color:#7b9088;border-radius:20px;background:#f2f6f4;padding:7px 10px}.speech-option{font-size:13px;display:flex;align-items:center;gap:7px}.hint{color:#7a8a85;font-size:11px;max-width:680px;line-height:1.8;margin:8px 0 20px}.record-controls{display:flex;align-items:center;gap:13px;padding:20px;background:#f6f9f7;border:1px dashed #d6e4dd;border-radius:10px;margin-bottom:22px}.record-button{background:#197568;color:white;border:0;font-weight:bold;padding:13px 19px}.record-button:hover,.primary:hover{background:#105e53}.record-button span{margin-right:7px;font-size:16px;color:#b6ded0}.stop-button{font-size:12px}#timer{font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:2px;margin-left:auto}#level{color:#7caf9c;letter-spacing:3px}body.recording #level{animation:pulse 1s infinite}body.recording #recordState{background:#fff0ee;color:#b94444}@keyframes pulse{50%{opacity:.25}}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}label{display:block;font-size:12px;font-weight:600}label input:not([type=checkbox]),label select{display:block;width:100%;margin-top:7px}.text-label{margin-bottom:10px}.text-label span{font-weight:400;font-size:11px;color:#87948f;margin-left:12px}textarea{resize:vertical;width:100%;line-height:1.9;background:#fcfdfc}.save-row{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:15px}.save-row span{margin-right:auto;color:#87948f;font-size:11px}.primary{background:var(--green);border-color:var(--green);color:white;font-weight:700;padding:11px 20px}.history{margin-top:33px}.count{font-size:11px;background:#e3ece7;border-radius:20px;padding:3px 9px;margin-left:5px}.record-card{background:white;border:1px solid var(--border);border-radius:12px;padding:20px;margin:13px 0}.record-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:#7c9087}.tag{background:#edf5f0;color:#417460;padding:5px 9px;border-radius:5px}.record-card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.record-card audio,#draftAudio{width:100%;height:36px;margin:10px 0}.record-actions{display:flex;gap:8px;justify-content:flex-end}.record-actions button{font-size:11px;padding:5px 10px}.no-records{border:1px dashed #dce5df;border-radius:10px;text-align:center;color:#86978f;padding:35px 10px}.empty{text-align:center;padding:95px 20px;background:white;border-radius:16px;border:1px solid var(--border)}.empty p{color:#829389;font-size:13px}.empty-icon{font-size:50px;color:#619d88;margin-bottom:20px}.empty button{margin-top:20px}footer{color:#8a9a92;font-size:10px;line-height:1.9;margin-top:35px;text-align:center}#notice:not(:empty){background:#eaf2ed;padding:12px 16px;border-radius:8px;margin-bottom:15px;font-size:13px}#interim{font-size:12px;color:#738c80;white-space:pre-wrap}dialog{border:1px solid var(--border);border-radius:16px;padding:28px;width:440px;max-width:95vw;color:inherit}dialog::backdrop{background:#193a3266}dialog label{margin:16px 0}.dialog-actions{text-align:right}[hidden]{display:none!important}@media(max-width:850px){main{padding:24px}aside{width:210px;padding:24px 15px}#level{display:none}.record-controls{flex-wrap:wrap}.text-label span{display:block;margin:6px 0}.save-row{flex-wrap:wrap}.save-row span{width:100%}}@media(max-width:600px){body{display:block}aside{position:static;width:100%;height:auto;padding:18px;border-right:0;border-bottom:1px solid var(--border)}.brand{font-size:21px;margin-bottom:15px}.brand span{display:none}.side-title{margin:0 0 8px}#patients{max-height:155px;display:flex;gap:8px;overflow:auto}.patient-item{min-width:160px}.side-bottom{padding:8px 0 0;line-height:1.4}#search{margin-bottom:8px}.side-bottom button{margin-top:5px}main{padding:20px 15px}.local-badge{font-size:9px;padding:6px}.recorder{padding:18px}.patient-head{flex-wrap:wrap}.patient-head button{margin-left:0}.date-bar{flex-wrap:wrap;gap:10px}.fields{grid-template-columns:1fr}.record-controls{padding:14px;gap:8px}#timer{font-size:18px}.record-button{padding:12px}.empty{padding:50px 15px}}@media print{aside,header,.recorder,.date-bar button,#editPatient,#print,.record-actions,audio,footer,#notice{display:none!important}main{padding:0;max-width:none}.record-card{break-inside:avoid}.date-bar input{border:0}.history{margin-top:15px}body{display:block;background:white}}
