body { font-family: system-ui, sans-serif; background: #0f1b2d; margin: 0; display: grid; place-items: center; min-height: 100vh; }
.card { background: #fff; border-radius: 12px; padding: 2rem; width: min(420px, 92vw); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
h1 { font-size: 1.4rem; margin-top: 0; } h1 span { color: #b78a2e; }
label { display: block; margin: 0.8rem 0; font-size: 0.9rem; }
input { display: block; width: 100%; padding: 0.55rem; margin-top: 0.3rem; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; }
button { background: #14509e; color: #fff; border: 0; border-radius: 6px; padding: 0.6rem 1.1rem; cursor: pointer; margin-top: 0.6rem; }
.error { color: #b91c1c; min-height: 1.2em; }
.note { color: #64748b; font-size: 0.82rem; word-break: break-all; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
dt { font-weight: 600; } dd { margin: 0; }
code { background: #f1f5f9; padding: 0.4rem; display: block; border-radius: 6px; word-break: break-all; }

/* Books v1 */
.card.wide { width: min(1020px, 96vw); }
.card.wide #view-dash { text-align: left; }
#books-box { margin-top: 2rem; border-top: 2px solid #e2e8f0; padding-top: 1rem; }
#books-box h2 { margin-bottom: 0.2rem; }
#books-box h3 { margin: 1.1rem 0 0.4rem; font-size: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.5rem 0; }
th, td { text-align: left; padding: 0.35rem 0.45rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: #f1f5f9; }
.btabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0; }
.btabs .btab { background: #e2e8f0; color: #0f1b2d; margin-top: 0; }
.btabs .btab.active { background: #14509e; color: #fff; }
button.secondary { background: #e2e8f0; color: #0f1b2d; padding: 0.35rem 0.7rem; margin-top: 0; font-size: 0.82rem; }
button.danger { background: #b91c1c; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 0.8rem; align-items: end; }
select { display: block; width: 100%; padding: 0.55rem; margin-top: 0.3rem; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; background: #fff; }
.line-row { display: grid; grid-template-columns: 2fr 0.6fr 0.8fr 1.2fr auto; gap: 0.4rem; margin: 0.35rem 0; align-items: center; }
.line-row input, .line-row select { margin-top: 0; }
.callout { background: #fef9ec; border: 1px solid #e7cf8f; border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.88rem; margin: 0.6rem 0; }
