*{box-sizing:border-box} [hidden]{display:none!important}
:root{color-scheme:light;font-family:"Leelawadee UI","Noto Sans Thai",Tahoma,system-ui,sans-serif;background:#f0f5f5;color:#173137}
body{margin:0} header{background:#163d46;color:#fff}
.frame{width:min(100% - 32px,880px);margin:auto}.mast,.intro,.list-head,.dialog-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mast{min-height:64px}.brand{color:inherit;text-decoration:none;font-size:1.13rem}.brand strong{color:#a8ebd6}
#connection{font-size:.82rem;color:#d3eee7;text-align:right}
.intro{padding:34px 0 22px}h1,h2,p{margin:0}h1{font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.25}.intro p{margin-top:7px;color:#4f676a}
button,select,input,textarea{font:inherit}button,select{min-height:44px;border:1px solid #b9cccc;border-radius:8px;background:#fff;color:inherit;padding:7px 13px}
button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}.primary{background:#0b6659;color:#fff;border-color:#0b6659;font-weight:700;white-space:nowrap}
:focus-visible{outline:3px solid #238879;outline-offset:3px}
nav{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #c4d5d5;padding-bottom:10px}nav button{background:transparent;border-color:transparent}nav button[aria-pressed=true]{background:#dbebe6;border-color:#b2d2c8;font-weight:700}nav span:not(:empty){margin-left:3px;color:#396359}
.list-head{margin:22px 0 12px}.list-head h2,.dialog-head h2{font-size:1.18rem}.list-head select{max-width:50%}
.empty,.record{border:1px solid #c8d9d9;background:#fff;border-radius:12px;padding:16px}.empty{color:#4f676a;padding:24px 16px}
.record{margin-bottom:10px;display:flex;flex-direction:column;gap:10px}.record p{overflow-wrap:anywhere;white-space:pre-wrap}.record small,.empty,small{color:#4f676a}.record .actions{justify-content:flex-start;flex-wrap:wrap}
.transfer{margin:20px 0 32px;border-top:1px solid #c4d5d5;padding-top:8px}.transfer summary{cursor:pointer;width:fit-content;padding:10px 0}.transfer p{color:#4f676a;margin-bottom:8px}.transfer .actions{justify-content:flex-start;flex-wrap:wrap;margin-bottom:8px}
#status{margin:12px 0;color:#365f59}
dialog{width:min(calc(100% - 24px),590px);max-height:calc(100dvh - 24px);border:1px solid #b5cccc;border-radius:14px;color:inherit;padding:18px}dialog::backdrop{background:#102f37a8}
form{display:grid;gap:14px}label{display:grid;gap:5px;font-weight:700}label small{font-weight:400}
input:not([type=checkbox]),textarea{min-width:0;width:100%;min-height:44px;padding:9px 10px;border:1px solid #aabebe;border-radius:8px;color:inherit;background:#fff}textarea{resize:vertical}
.media{display:flex;flex-wrap:wrap;gap:8px}.media figure{margin:0;width:min(100%,145px);display:grid;gap:4px}.media img,.media video{width:100%;height:105px;object-fit:contain;background:#e5eeee;border-radius:6px}.media figcaption{overflow-wrap:anywhere;font-size:.78rem}
#form-status{color:#942e2e}#form-status:empty,.media:empty{display:none}dialog .actions{justify-content:flex-end;flex-wrap:wrap}
#editor{border:2px solid #203b50;color:#162331;border-radius:20px;background:#fff}
.field{background:#f2f5f7;border:1px solid #d1dbe3;border-radius:10px;padding:8px 10px;color:#405568;gap:2px;min-width:0}
.field input:not([type=checkbox]),.field textarea{border:0;background:transparent;color:#162331;padding:5px 0;min-height:32px}
.field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.media-actions,.severity{display:grid;gap:6px}.media-actions{grid-template-columns:repeat(3,1fr)}.media-actions button{background:#f2f5f7;border-color:#d1dbe3}
.severity{grid-template-columns:repeat(4,minmax(0,1fr));padding:0;border:0;margin:0;min-width:0}.severity legend{padding:0 0 6px;font-weight:700}
.severity label{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;border:1px solid currentColor;border-radius:8px;font-size:.83rem;background:#f5f8f8}
.severity input[type=radio]{width:1px;height:1px;min-height:0;padding:0;margin:0;position:absolute;opacity:0}.severity label:has([value=low]){color:#21683a;background:#eef8ef}.severity label:has([value=medium]){color:#785300;background:#fff5d9}.severity label:has([value=high]){color:#a22c23;background:#fff0eb}.severity label:has([value=critical]){color:#721e22;background:#fbe6e7}.severity label:has(:checked){outline:2px solid currentColor;outline-offset:-2px}.severity label:has(:checked)::before{content:"✓"}.severity label:has(:focus-visible){outline:3px solid #238879;outline-offset:2px}
.suggestion{background:#fff1df;border:1px solid #efc58c;border-radius:10px;padding:10px 12px}.suggestion p{font-size:.9rem;margin-top:3px;color:#594729}
.editor-actions{display:grid;grid-template-columns:1fr}.editor-actions .primary{min-height:48px}.media audio{width:100%}.record h3{margin:0;overflow-wrap:anywhere}
.issue-state{display:flex;align-items:center;gap:6px}
@media(max-width:500px){.intro{align-items:flex-start;flex-direction:column;padding:24px 0 18px}.intro .primary{width:100%}nav button{padding-inline:8px;font-size:.9rem}.frame{width:calc(100% - 24px)}}

