:root{color:#19372c;background:#eff5ef;font-family:Tahoma,'Leelawadee UI',Arial,sans-serif;line-height:1.6}
*{box-sizing:border-box}body{margin:0;padding:24px 14px;min-height:100vh;display:grid;place-items:center}
.card{width:min(100%,440px);background:white;border:1px solid #ccdfd2;border-radius:18px;padding:clamp(22px,6vw,36px);box-shadow:0 12px 38px #19372c12}
.wide{width:min(100%,920px)}.brand{font-size:25px;font-weight:bold;color:#235f46;margin-bottom:15px}.brand span{font-size:12px;letter-spacing:1px}
h1{margin:5px 0;font-size:26px}p{margin:4px 0 15px}label{display:grid;gap:5px;font-weight:600}form{display:grid;gap:13px;margin:18px 0}
input,select,button{font:inherit;border-radius:8px;min-height:44px;padding:8px 11px}input,select{width:100%;border:1px solid #9bb5a6;background:white;color:inherit}
button{background:#22634f;color:white;border:1px solid #22634f;cursor:pointer;font-weight:bold}button.plain{background:white;color:#22634f}a{color:#22634f}
:focus-visible{outline:3px solid #408666;outline-offset:2px}.hint{font-size:13px;color:#485d51}.notice{padding:9px 11px;border-radius:7px;color:#7d2b22;background:#fbeae5}
.account-form{display:flex;align-items:end;flex-wrap:wrap}.account-form label{flex:1 1 140px}.accounts{padding:0;list-style:none}.accounts li{padding:12px 0;border-top:1px solid #d8e5dc}


.tools { width:min(100%,1120px); color:#182e47; }
.tools h1,.tools h2 { color:#142b47; }
.tools a { color:#1b5670; }
.tools button { background:#193753; border-color:#193753; }
.tools button.plain { background:#fff; color:#193753; }
.tools button:disabled { opacity:.55; }
.tools [hidden] { display:none!important; }
.tool-link { display:inline-block; background:#e9c888; padding:8px 13px; border-radius:8px; font-weight:bold; }
.tool-fields { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:15px; border:1px solid #d3dfe9; border-radius:12px; background:#f4f8fb; }
.tool-fields label { flex:1 1 165px; min-width:0; }
.tool-fields select { min-width:0; }
.tool-fields .tool-check { display:flex; align-items:center; gap:5px; }
.tools input[type=checkbox] { width:auto; min-height:0; }
.tool-table { overflow-x:auto; }
.tool-table table { width:100%; border-collapse:collapse; text-align:left; }
.tool-table th { background:#213d59; color:white; }
.tool-table th,.tool-table td { padding:8px 12px; border-bottom:1px solid #d8e2ed; vertical-align:top; }
.tool-table td:first-child { white-space:nowrap; }
.tool-table pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.template-item { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:#f4f8fb; border-radius:8px; }
