:root{font-family:"DM Sans",system-ui,sans-serif;color:#172d36;background:#edf2f2;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.15rem clamp(1rem,4vw,3.5rem);background:#112e36;color:#f8faf9}
.brand{font-size:.8rem;letter-spacing:.07em;color:#b7d9d2}
h1,h2,p{margin:0}
h1{font-size:clamp(1.5rem,4vw,2.2rem)}
h2{font-size:1rem}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:default}
#print{border:0;border-radius:.55rem;background:#ccefe0;color:#133c34;padding:.65rem 1rem;font-weight:700}
.workspace{display:grid;grid-template-columns:minmax(16rem,23rem) minmax(0,1fr);gap:1rem;padding:1rem clamp(1rem,3vw,2.5rem);max-width:110rem;margin:auto}
.sidebar{display:grid;align-content:start;gap:1rem;min-width:0}
.panel,.preview{background:white;border:1px solid #d6e1e0;border-radius:.85rem;overflow:hidden}
.panel{padding:1rem}
.panel h2{margin-bottom:.85rem}
label{display:block;font-size:.85rem;font-weight:650;margin-top:.65rem}
input:not([type=color]),select{display:block;width:100%;min-width:0;margin-top:.3rem;background:#f8faf9;border:1px solid #c4d1cf;border-radius:.42rem;color:#172d36;padding:.53rem}
input[type=file]{font-size:.77rem}
.colors,.document-types{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.document-types{margin-top:.75rem}
.document-types button{padding:.5rem .3rem;border:1px solid #c4d1cf;border-radius:.42rem;background:#f8faf9;color:#172d36;font-size:.85rem;font-weight:650}
.document-types button[aria-pressed=true]{background:#166553;border-color:#166553;color:white}
.toggle{display:flex;align-items:center;gap:.5rem}
.toggle input[type=checkbox]{width:1rem;height:1rem;margin:0;accent-color:#166553}
.colors input{display:block;margin-top:.3rem;border:1px solid #c4d1cf;border-radius:.35rem;padding:.16rem;background:white;width:100%;height:2rem}
.link-button{background:none;border:0;color:#166553;text-decoration:underline;padding:.4rem 0}
#status,.count{color:#495f64;font-size:.8rem;margin-top:.55rem}
#documents{list-style:none;margin:.55rem 0 0;padding:0;max-height:24rem;overflow:auto}
#documents button{text-align:left;background:white;color:inherit;border:0;border-bottom:1px solid #ebf0ef;width:100%;padding:.6rem;border-radius:.35rem}
#documents button:hover,#documents button[aria-current=true]{background:#def1ea}
#documents small{display:block;color:#476069;margin-top:.15rem}
.preview-bar{padding:.9rem 1rem;border-bottom:1px solid #d6e1e0}
#category{display:block;color:#49616b;font-size:.8rem;margin-bottom:.2rem}
#document-title{overflow-wrap:anywhere}
iframe{display:block;border:0;width:100%;height:calc(100vh - 13rem);min-height:30rem;background:#e9eded}
#empty{padding:1rem}
@media(max-width:760px){.workspace{grid-template-columns:1fr}#documents{max-height:13rem}iframe{height:70vh}}
