#faith-book-buttons{display:grid;gap:6px;margin:8px 0 12px}
#faith-book-buttons button{width:100%;min-height:40px;padding:8px 10px;border:1px solid #61705c;border-left:3px solid var(--deity-color);background:#192a21;color:#e8d9ad;font:13px Georgia;text-align:center;cursor:pointer}
#faith-book{box-sizing:border-box;width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;color:#eadcb7;background:#14231d;border:1px solid var(--deity-color,#b9a577);border-radius:6px;overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #000b}
#faith-book::backdrop{background:#07110cba}
#faith-book header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#faith-book h2{font:26px Georgia;margin:0;color:var(--deity-color,#e8d9ad)}
#faith-book button{color:#eadcb7;background:#2b4030;border:1px solid #73835c;border-radius:3px;cursor:pointer;min-height:42px;padding:8px 12px}
#faith-book button:disabled{opacity:.55;cursor:default}
#faith-book-rites .faith-rite-intro{font:13px/1.6 Arial;color:#c7d0b9}
#faith-book-rites .faith-rite-controls{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;margin:12px 0;padding:10px;border:1px solid #445344;background:#192a21}
#faith-book-rites .faith-rite-controls label{display:flex;flex-direction:column;gap:5px;min-width:0;font:12px Arial;color:#c7d0b9}
#faith-book-rites .faith-rite-controls label[hidden]{display:none}
#faith-book-rites .faith-rite-controls select,#faith-book-rites .faith-rite-controls input[type=search]{box-sizing:border-box;min-width:0;width:100%;min-height:42px;padding:8px;border:1px solid #626b50;background:#101d18;color:#eadcb7;font:13px Arial}
#faith-book-rites .faith-rite-controls .faith-rite-toggle{flex-direction:row;align-items:center;gap:8px;grid-column:1/-1;min-height:30px}
#faith-book-rites .faith-rite-toggle input{width:18px;height:18px;accent-color:#d5bd77}
#faith-book-rites .faith-rite-rules{font:12px/1.6 Arial;color:#bfcbb3;padding:0 10px;background:#17251e;border:1px solid #3e5140}
#faith-book-rites .faith-rite-rules summary{cursor:pointer;padding:9px 0;color:#dfc995}
#faith-book-rites .faith-rite-count{font:12px Arial;color:#b7bea8;margin:12px 0}
#faith-book-rites .faith-rite-list{grid-template-columns:repeat(2,minmax(0,1fr))}
#faith-book-rites .faith-rite-list article{min-width:0;overflow-wrap:anywhere}
#faith-book-rites .faith-rite-list article[hidden]{display:none}
#faith-book-rites .faith-rite-target{color:#c7cfae}
#faith-book-rites .faith-rite-list button{white-space:normal;min-height:42px}
#faith-book-rites .faith-bind{background:#1b2e25;border-color:#50694e}
#faith-book-rites .faith-favorite,#faith-rites .faith-favorite{width:auto;min-height:44px;padding:7px 12px;background:#1b2e25;border-color:#50694e}
#faith-book-rites .faith-favorite[aria-pressed=true],#faith-rites .faith-favorite[aria-pressed=true]{color:#f1d38c;border-color:#ab915d;background:#353b25}
#faith-book-rites .faith-rite-empty{padding:14px;border:1px dashed #657453}
@media(max-width:620px),(max-height:520px){#faith-book{padding:12px;width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}#faith-book h2{font-size:21px}#faith-book-rites .faith-rite-list{grid-template-columns:1fr}#faith-book-rites .faith-rite-controls{grid-template-columns:1fr}}
