:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#f5f9f8;color:#173d49}*{box-sizing:border-box}body{margin:0}a{color:#176a71}button,input,select{font:inherit}button{border:1px solid #116776;background:#116776;color:#fff;border-radius:10px;padding:12px 15px;font-weight:700;cursor:pointer;min-height:43px}button:disabled{opacity:.47;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #47d1c4;outline-offset:3px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:16px max(16px,calc((100vw - 1180px)/2));background:white;border-bottom:1px solid #d6e5e4}.brand{display:flex;gap:10px;align-items:center;font-weight:900;letter-spacing:.08em}.brand small{display:block;letter-spacing:.15em;font-size:9px;color:#588283}.mark{width:39px;height:39px;display:grid;place-items:center;background:#123a49;color:#a9eedf;border-radius:11px}.live{font-weight:750;font-size:11px;color:#2b867a}.live i{background:#24af8e;width:9px;height:9px;display:inline-block;border-radius:50%;margin-right:5px}main{max-width:1210px;margin:auto;padding:20px 16px 60px}.hero{border-radius:22px;background:linear-gradient(125deg,#103645,#1c6269);color:white;padding:30px;display:flex;gap:20px;justify-content:space-between;align-items:center;flex-wrap:wrap}.hero h1{font-size:clamp(32px,4.5vw,55px);letter-spacing:-.045em;line-height:1.1;margin:12px 0}.hero em{font-style:normal;color:#9cf2df}.hero p{line-height:1.6;max-width:650px}.eyebrow{font-size:11px;letter-spacing:.16em;color:#a1e8de;font-weight:850}.heroactions{display:flex;gap:9px;flex-wrap:wrap}.outline{border:1px solid #afd8d1;background:transparent;color:#e2fbf4}.outline.dark{color:#15505a;border-color:#92baba}.notice{margin:17px 0;padding:17px 19px;background:#e5f5ee;border-left:4px solid #4fb9a6;border-radius:9px;line-height:1.55}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.metrics>div{background:white;border:1px solid #dce9e7;border-radius:14px;padding:17px}.metrics strong{display:block;font-size:28px}.metrics small{color:#607f83}nav{display:flex;overflow:auto;gap:6px;padding:3px 0 15px}nav button{flex:none;background:#e6f1ef;color:#245763;border:1px solid #cfe1de;font-size:13px}nav button.active{background:#164b57;color:white;border-color:#164b57}.panel{background:white;padding:26px;border:1px solid #dce8e7;border-radius:17px;min-height:280px}.panel h2{margin-top:0}.panel p{color:#53737b;line-height:1.65}.fields{display:flex;align-items:end;gap:11px;flex-wrap:wrap;margin:18px 0 24px}.fields label{font-size:13px;color:#3d6269;font-weight:690;flex:1 1 160px}.fields input,.fields select{margin-top:7px;display:block;width:100%;padding:12px;border:1px solid #acc7c6;border-radius:9px;background:white;min-width:0}.records{display:grid;gap:10px}.record{border:1px solid #dce9e7;background:#f8fbfa;border-radius:13px;padding:15px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.record strong{font-size:16px;display:block;overflow-wrap:anywhere}.record small{display:block;color:#617b82;margin-top:5px;overflow-wrap:anywhere}.record button{padding:8px 11px;font-size:12px;min-height:35px}.record .tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tiles>button{background:#eef7f5;text-align:left;border:1px solid #d3e8e3;color:#215861;padding:22px;min-height:115px;font-size:17px}.tiles>button small{font-size:12px;font-weight:500;display:block;margin-top:10px}.callout{background:#ecf6f2;border-radius:10px;padding:16px;margin:20px 0;line-height:1.6;color:#3e6870}.upload{display:block;max-width:480px;border:2px dashed #8fb9b3;background:#f0f9f6;border-radius:12px;padding:18px;font-weight:700}.upload input{margin-top:12px;display:block;width:100%}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.danger{background:#b54e49;border-color:#b54e49}.switches{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:22px 0}.switch{background:#f7faf9;border:1px solid #e0edeb;border-radius:11px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.switch label{font-weight:650}.switch input{width:23px;height:23px;accent-color:#176e6b}#notice{min-height:20px;color:#1e8278;margin-bottom:7px;font-size:14px}footer{max-width:1210px;margin:auto;padding:16px;color:#708a8b;font-size:12px}@media(max-width:760px){.metrics{grid-template-columns:repeat(2,1fr)}.tiles,.switches{grid-template-columns:1fr}.panel{padding:17px}.record{grid-template-columns:1fr}.hero{padding:22px}.record .tools{justify-content:flex-start}}

/* PIGA ORTHO worker-led native Gemini voice interface: accessible/offline-first. */
.ortho-worker-center{margin:20px 0;padding:clamp(15px,3vw,26px);background:linear-gradient(150deg,#e6faf5,#eaf8fc 58%,#f9fdff);border:1px solid #b9dfdc;border-radius:22px;box-shadow:0 15px 35px #16333a12}
.ortho-worker-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.ortho-worker-head h2{font-size:clamp(22px,3vw,31px);letter-spacing:-.035em;margin:6px 0}
.ortho-worker-head p{max-width:720px;line-height:1.6;font-size:13px;color:#315865}
.ortho-worker-status{border:1px solid #c4dcd9;background:#fff;border-radius:12px;padding:11px 14px;color:#244953;font-size:12px;font-weight:750}
.ortho-voice-frame{border-radius:16px;overflow:hidden;margin:14px 0;box-shadow:0 7px 35px #07172630;border:2px solid #8ed6d3;background:#071321}
.ortho-voice-frame iframe{display:block;width:100%;height:min(640px,78dvh);min-height:380px;border:0}
.ortho-voice-direct{display:flex;align-items:center;justify-content:center;min-height:48px;padding:11px 16px;margin:0;background:#14374b;color:#b7f9f1;text-decoration:none;text-align:center;font-weight:800;font-size:13px;border-top:1px solid #477985}.ortho-voice-direct:focus-visible{outline:3px solid #ffefb0;outline-offset:-4px}
.ortho-worker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.ortho-worker-grid article{background:#fff;border:1px solid #c7dfe4;border-radius:15px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
.ortho-worker-grid h3{font-size:16px;color:#153c4d;margin:0}
.ortho-worker-grid p{font-size:12px;line-height:1.6;margin:0;color:#42606b;flex:1}
.ortho-worker-grid label{font-size:12px;font-weight:650;color:#244953;display:block;width:100%}
.ortho-worker-grid label:has([type=checkbox]){display:flex;align-items:flex-start;gap:8px}
.ortho-worker-grid input[type=text],.ortho-worker-grid input[type=file]{font:inherit;display:block;max-width:100%;width:100%;padding:9px;border:1px solid #bed6de;border-radius:9px;margin:6px 0}
.ortho-worker-grid input[type=checkbox]{width:18px;height:18px;accent-color:#137989}
.ortho-worker-foot{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#35616a;font-size:12px}
.ortho-worker-foot>p{width:100%;margin:0;line-height:1.6}
.ortho-worker-log{width:100%;max-height:135px;overflow:auto}
.ortho-worker-logline{font-size:11px;padding:6px 10px;border-radius:7px;background:#d6f2ec;overflow-wrap:anywhere}
@media(max-width:830px){.ortho-worker-grid{grid-template-columns:1fr}.ortho-worker-head{align-items:flex-start}.ortho-voice-frame iframe{min-height:470px;height:72dvh}}
@media(prefers-reduced-motion:reduce){.ortho-worker-center *{scroll-behavior:auto!important}}
