:root{color-scheme:light;font:15px/1.55 "Segoe UI",sans-serif;color:#302b26;background:#f5f2ed}
*{box-sizing:border-box}
body{margin:0}
header{background:#29241f;color:white;padding:16px max(20px,calc((100% - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
header a{color:#fff}
main{max-width:1100px;margin:auto;padding:26px 20px 50px}
h1,h2,h3{line-height:1.2}h1{margin:0 0 12px}h2{margin:0 0 14px}
section,.panel{background:white;border:1px solid #ded7ce;border-radius:10px;padding:20px;margin:16px 0}
fieldset{border:1px solid #ded7ce;border-radius:8px;margin:12px 0;min-width:0}
label{display:block;margin:8px 0}
input:not([type=checkbox]),select,textarea{font:inherit;width:100%;border:1px solid #aaa095;border-radius:6px;padding:8px;color:inherit;background:white}
button,.button{display:inline-block;font:inherit;background:#71573f;color:white;border:1px solid transparent;border-radius:6px;padding:8px 13px;cursor:pointer;text-decoration:none}
button.secondary,.button.secondary{background:#f0eae2;color:#403428;border-color:#d8cbbb}
button:disabled{opacity:.55;cursor:wait}
a{color:#6c482e}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.badge{background:#efe6d8;padding:3px 9px;border-radius:12px;display:inline-block}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}
.list{padding:10px 0;border-top:1px solid #e7e0d7}
details summary{cursor:pointer}
dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:10px}
dt{font-size:13px;color:#675d53}dd{margin:0;overflow-wrap:anywhere}
canvas{display:block;width:100%;max-width:700px;height:135px;background:#fcfaf7;border:1px dashed #ad9e8e;touch-action:none}
.signature-image{max-width:100%;width:300px;background:#fff;border-bottom:1px solid #ded7ce}
#message{color:#822b25;min-height:1.5em;white-space:pre-wrap}
[hidden]{display:none!important}
.password-rule{font-size:13px;color:#675d53;margin:2px 0 8px}
.forgot-link{margin:10px 0 0}.forgot-toggle{background:none!important;border:0!important;color:#6c482e!important;padding:0!important;text-decoration:underline;cursor:pointer}
.forgot-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.forgot-help{color:#675d53}
.forgot-status{min-height:1.5em}.forgot-status[data-tone=ok]{color:#2F4A2B}.forgot-status[data-tone=error]{color:#822b25}
.forgot-form[hidden]{display:none!important}

/* Staff and password pages share the workspace context menu. */
.row-action-menu {position:fixed;z-index:70;min-width:150px;display:flex;flex-direction:column;gap:2px;padding:4px;background:#fff;color:#302b26;border:1px solid #ded7ce;border-radius:4px;box-shadow:0 4px 14px #29241f24}
.row-action-item {width:100%;text-align:left;padding:8px 12px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:13px}
.row-action-item:hover,.row-action-item:focus-visible {background:#f0eae2}
