:root{font-family:Arial,Tahoma,sans-serif;color:#35271b;background:#f7f1e7}*{box-sizing:border-box}body{margin:0}.header{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#3d291a;color:#f9e6c2;padding:14px clamp(14px,4vw,52px)}.header a{color:#f9db99;font-weight:800;letter-spacing:.05em;text-decoration:none}.header button{background:#865f35;color:#fff;border:1px solid #aa8a66;border-radius:7px;padding:9px 13px;cursor:pointer}main{max-width:1250px;margin:26px auto;padding:0 18px;min-height:70vh}h1{font-size:clamp(22px,3vw,29px);margin:0 0 12px;color:#55351d}h2{font-size:18px;margin:0 0 16px}p{line-height:1.6}.card{background:white;border:1px solid #e2d3bb;border-radius:13px;box-shadow:0 5px 28px #4b372018;padding:22px;margin-bottom:18px}#login-panel{max-width:460px;margin:60px auto}label{display:block;font-size:13px;font-weight:700;margin-bottom:13px}input:not([type=checkbox]):not([type=file]),select,textarea{display:block;width:100%;border:1px solid #c9b9a2;border-radius:8px;font:15px/1.5 Arial,Tahoma,sans-serif;padding:11px;color:#312416;background:#fffdfa;margin-top:6px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #bd966b;border-color:#8e653c}button,.file-button{font:700 14px Arial,Tahoma,sans-serif;border:0;border-radius:8px;background:#704923;color:white;cursor:pointer;padding:12px 15px}button.secondary{background:#a58250}button.danger{background:#a03d32}.titlebar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px}.titlebar p{margin:0;color:#6d5c47}.columns{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.entry-list{display:grid;gap:9px;max-height:65vh;overflow:auto}.entry-list button{text-align:left;font-weight:600;background:#f6efe3;color:#45301b;border:1px solid #e2d0b4;line-height:1.4}.entry-list button span{display:block;font-weight:400;font-size:11px;color:#775b3e}.entry-list button:hover{background:#ead9bb}.hint{font-size:12px;color:#705e4a}.file-row{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.file-button{background:#7f694d;display:inline-block;cursor:pointer;margin:0}.file-row input{max-width:210px}.confirm{display:flex;gap:9px;align-items:flex-start;line-height:1.5}.confirm input{margin-top:3px}.actions{display:flex;gap:10px;flex-wrap:wrap}#login-message,#edit-message{min-height:30px;font-weight:600;color:#326643}footer{text-align:center;padding:20px;color:#756551;font-size:12px}[hidden]{display:none!important}@media(max-width:850px){.columns{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.titlebar{align-items:flex-start;flex-direction:column}.card{padding:16px}}

/* v1.4.1 — Vietnamese-safe controls and clear user management */
:root{font-family:"Segoe UI","Noto Sans",Arial,Tahoma,system-ui,sans-serif}
body,button,input,select,textarea{font-family:"Segoe UI","Noto Sans",Arial,Tahoma,system-ui,sans-serif;letter-spacing:normal}
.admin-tabs{display:flex;gap:9px;margin:0 0 22px;flex-wrap:wrap;border-bottom:1px solid #cbbba5;padding-bottom:11px}
.tab{background:#e9dfce;color:#543d24;border:1px solid #cdb994}
.tab.active{color:#fffaf0;background:#704923;border-color:#704923}
.login-actions{display:flex;flex-wrap:wrap;gap:9px}
.login-actions button{flex-grow:1}
.user-list{display:grid;gap:12px}
.user-row{border:1px solid #e0d0b7;border-radius:11px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fffaf1}
.user-details{display:flex;flex-direction:column;gap:8px;min-width:0}
.user-details strong{font-size:14px;overflow-wrap:anywhere}
.user-details code{font-family:Consolas,monospace;font-size:11px;overflow-wrap:anywhere;color:#705e4a}
.user-pills{display:flex;gap:6px;flex-wrap:wrap}
.user-pill{display:inline-block;padding:4px 7px;background:#ebe3d6;color:#685946;border-radius:12px;font-size:11px;font-weight:700}
.user-pill.pill-active{background:#e2f2e4;color:#246437}
.user-pill.pill-off{background:#ffebe7;color:#a33d2e}
.user-pill.pill-admin{background:#f4e8cc;color:#81531e}
.user-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.user-actions button{font-size:12px;padding:8px 10px}
button:disabled{opacity:.45;cursor:not-allowed}
#user-message{min-height:25px;font-weight:700;color:#326643}
@media(max-width:760px){.user-row{align-items:stretch;flex-direction:column}.user-actions{justify-content:flex-start}.user-actions button{flex:1 1 auto}}

/* v1.4.2: manage categories directly in the admin page. */
.group-manager{margin-bottom:18px}.group-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.group-chip{background:#f0e5d4;color:#463522;border:1px solid #d5c0a3;padding:9px 12px;font-size:12px}
.group-chip.is-selected{background:#704923;color:#fff4d7}.three-fields{grid-template-columns:1fr 1.3fr 160px}
#grp-status{font-weight:650;min-height:1.5em}.book-group-row{display:flex;gap:9px}
@media(max-width:840px){.three-fields{grid-template-columns:1fr}}

/* v1.4.5: large scripture editor counter */
#length{font-variant-numeric:tabular-nums}#length.length-over{color:#b52626;font-weight:800}
