:root {
    color-scheme:light;
    --ink:#172d2a;
    --muted:#66756f;
    --paper:#f6f7f3;
    --line:#dde4dc;
    --accent:#1e6650;
    --white:#fff;
    font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--paper)
}
* {
    box-sizing:border-box
}
body {
    margin:0
}
a {
    color:var(--accent);
    text-decoration:none
}
a:hover {
    text-decoration:underline
}
.site-header {
    min-height:84px;
    background:var(--white);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px max(24px,calc((100vw - 1120px)/2))
}
.brand {
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:750;
    color:var(--ink);
    white-space:nowrap
}
.brand-mark {
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    background:var(--accent);
    border-radius:10px;
    color:white;
    font-family:Georgia,serif;
    font-size:27px
}
.badge {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:600;
    border-left:1px solid var(--line);
    padding-left:14px;
    margin-left:5px;
    color:var(--muted)
}
nav {
    display:flex;
    align-items:center;
    gap:18px;
    font-size:14px
}
nav form {
    margin:0
}
main {
    max-width:1120px;
    margin:0 auto;
    padding:48px 24px 64px;
    min-height:calc(100vh - 160px)
}
footer {
    max-width:1120px;
    padding:20px 24px;
    margin:auto;
    color:var(--muted);
    font-size:12px;
    border-top:1px solid var(--line)
}
h1 {
    font-family:Georgia,"Times New Roman",serif;
    font-weight:500;
    font-size:44px;
    letter-spacing:-1.3px;
    line-height:1.1;
    margin:10px 0 12px
}
h2 {
    font-size:18px;
    letter-spacing:-.3px;
    margin:0 0 20px
}
.eyebrow {
    text-transform:uppercase;
    letter-spacing:.15em;
    font-weight:700;
    color:var(--accent);
    font-size:11px
}
.intro {
    color:var(--muted);
    font-size:15px;
    line-height:1.6;
    margin:0
}
.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    margin-bottom:30px
}
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #c9d5ca;
    background:white;
    color:var(--ink);
    font:600 13px/1.5 ui-sans-serif,system-ui,sans-serif;
    padding:10px 17px;
    border-radius:7px;
    cursor:pointer;
    white-space:nowrap;
    min-height:42px
}
.button:hover {
    text-decoration:none;
    background:#eef3ed
}
.primary {
    background:var(--accent);
    border-color:var(--accent);
    color:white
}
.primary:hover {
    background:#164c3c
}
.quiet {
    border-color:transparent;
    background:transparent
}
.full {
    width:100%
}
.card {
    background:var(--white);
    border:1px solid var(--line);
    border-radius:12px;
    padding:28px;
    box-shadow:0 3px 10px #172d2a03
}
.stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-bottom:28px
}
.stats>div {
    padding:22px 26px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#eef2e9
}
.stats strong {
    display:block;
    font-size:30px;
    font-weight:600;
    line-height:1.2
}
.stats span {
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-top:6px
}
.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px
}
.section-heading h2 {
    margin:0
}
.search {
    display:flex;
    gap:8px
}
.search input {
    width:235px
}
label {
    display:block;
    font-weight:600;
    font-size:13px;
    margin-bottom:8px
}
input,select {
    display:block;
    width:100%;
    padding:11px 12px;
    border:1px solid #c9d5ca;
    border-radius:6px;
    font:inherit;
    font-size:14px;
    background:white;
    color:var(--ink);
    min-height:44px
}
input:focus,select:focus,button:focus-visible,a:focus-visible {
    outline:3px solid #a5c9b8;
    outline-offset:2px
}
input.input-validation-error {
    border-color:#a42e33
}
.stack {
    display:flex;
    flex-direction:column;
    gap:22px
}
.hint {
    font-size:12px;
    color:var(--muted);
    line-height:1.7;
    margin:8px 0 0
}
.table-wrap {
    overflow-x:auto
}
table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    font-size:14px
}
th {
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:600;
    padding:12px 16px;
    background:#f7f9f5;
    border-bottom:1px solid var(--line)
}
td {
    padding:20px 16px;
    border-bottom:1px solid #edf0ea
}
td strong {
    font-weight:600
}
td a {
    font-size:13px;
    font-weight:600
}
.align-right {
    text-align:right
}
.status {
    display:inline-block;
    border-radius:20px;
    padding:4px 10px;
    font-size:11px;
    font-weight:650
}
.active {
    color:#226244;
    background:#e8f3e8
}
.disabled {
    color:#795f53;
    background:#f1ebe7
}
.you {
    margin-left:9px;
    color:var(--muted);
    font-size:11px;
    font-weight:400
}
.pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:22px;
    font-size:12px;
    color:var(--muted)
}
.pagination>div {
    display:flex;
    gap:20px
}
.notice {
    border:1px solid #bdd9c3;
    background:#edf7ed;
    border-radius:7px;
    padding:14px 18px;
    margin-bottom:22px;
    font-size:14px
}
.validation {
    color:#962d33;
    font-size:13px;
    line-height:1.6
}
.validation ul {
    padding-left:20px
}
.validation-summary-valid {
    display:none
}
.validation-summary-errors {
    border:1px solid #ecc9cc;
    background:#fff4f4;
    padding:12px 18px;
    border-radius:7px;
    margin-bottom:20px
}
.stack .validation-summary-errors {
    margin:0
}
.login-shell {
    max-width:430px;
    margin:28px auto
}
.login-shell h1 {
    font-size:48px
}
.login-shell>.intro {
    margin-bottom:28px
}
.login-shell>.hint {
    text-align:center;
    margin-top:20px
}
.form-card {
    max-width:560px
}
.form-actions {
    display:flex;
    gap:10px;
    padding-top:4px
}
.back {
    display:inline-block;
    font-size:13px;
    margin-bottom:22px
}
.edit-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px
}
.edit-grid .card>p {
    margin-bottom:24px
}
.checkbox {
    display:flex;
    align-items:center;
    gap:10px
}
.checkbox input {
    width:18px;
    min-height:18px;
    accent-color:var(--accent)
}
.checkbox label {
    margin:0
}
.empty {
    text-align:center;
    color:var(--muted);
    padding:40px
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
@media(max-width:700px) {
    .site-header {
        padding:16px 20px;
        flex-wrap:wrap
    }
    .badge {
        display:none
    }
    main {
        padding:30px 18px 48px
    }
    .page-heading {
        align-items:flex-start
    }
    .page-heading h1 {
        font-size:38px
    }
    .page-heading>.button {
        margin-top:20px
    }
    .stats {
        gap:8px
    }
    .stats>div {
        padding:16px 12px
    }
    .stats strong {
        font-size:26px
    }
    .stats span {
        font-size:11px
    }
    .card {
        padding:20px
    }
    .section-heading {
        align-items:flex-start;
        flex-direction:column
    }
    .search {
        width:100%
    }
    .search input {
        width:100%
    }
    .edit-grid {
        grid-template-columns:1fr
    }
    th,td {
        padding:14px 10px
    }
    .login-shell {
        margin:15px auto
    }
    .login-shell h1 {
        font-size:42px
    }
}

.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field-grid.three { grid-template-columns:repeat(3,1fr); }
.optional { font-weight:400; color:var(--muted); }
.library-edit-grid { display:grid; grid-template-columns:minmax(0, 0.85fr) minmax(0, 1.15fr); gap:24px; align-items:start; }
.library-edit-grid .card { min-width:0; }
.book-preview { display:flex; gap:24px; align-items:flex-start; margin-bottom:24px; }
.book-preview h2 { font-family:Georgia,serif; font-size:27px; font-weight:500; line-height:1.25; margin:10px 0; overflow-wrap:anywhere; }
.preview-cover { width:110px; height:165px; object-fit:contain; flex-shrink:0; border-radius:5px; }
.cover-placeholder { display:grid; place-items:center; background:#e6ecdf; color:#4b6e54; font-family:Georgia,serif; font-size:36px; border:1px solid #d6dfce; }
.book-author { margin:0; font-size:14px; color:var(--muted); }
.synopsis { font-size:13px; line-height:1.7; margin-top:20px; overflow-wrap:anywhere; }
.synopsis summary { cursor:pointer; color:var(--accent); font-weight:600; }
.remove-link { border-top:1px solid var(--line); margin-top:28px; padding-top:20px; font-size:12px; }
.remove-link a { color:#963e3e; }
.danger { background:#983e3e; color:#fff; border-color:#983e3e; }
.danger:hover { background:#7c3030; }
.form-card>.form-actions { margin-top:28px; }
.library-filters { display:flex; flex-direction:column; gap:18px; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.book-cell { display:flex; gap:15px; align-items:center; min-width:220px; }
.list-cover { width:40px; height:60px; object-fit:cover; flex-shrink:0; border-radius:3px; font-size:23px; }
.book-title { font-size:15px; color:var(--ink); font-weight:650; }
.book-subtitle { display:block; margin-top:3px; font-size:.85em; font-weight:400; color:var(--muted); overflow-wrap:anywhere; }
.book-byline { font-size:12px; color:var(--muted); margin-top:5px; }
.reading-status { background:#eef0e8; color:#59664d; }
.library-empty { padding:36px 12px; text-align:center; }
.library-empty h2 { font-family:Georgia,serif; font-size:27px; font-weight:500; }
.library-empty .button { margin-top:22px; }
@media(max-width:900px) { .library-edit-grid { grid-template-columns:1fr; } .filter-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:700px) { .site-header nav { flex-wrap:wrap; gap:12px; } .site-header nav>span { display:none; } .preview-cover { width:85px; height:128px; } .book-preview { gap:16px; } .field-grid { gap:12px; } }
textarea { display:block; width:100%; padding:11px 12px; border:1px solid #c9d5ca; border-radius:6px; font:inherit; font-size:14px; color:var(--ink); background:white; resize:vertical; }
textarea:focus { outline:3px solid #a5c9b8; outline-offset:2px; }
.manual-entry-link { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }

.synopsis h3 { font-size:13px; margin:0 0 10px; color:var(--ink); }
.synopsis p { margin:0 0 14px; }

.source-credits { display:block; margin-top:8px; line-height:1.8; }
.owned-location { border:0; margin:0; min-width:0; padding:0; }
.owned-location[hidden] { display:none; }

.existing-copies { list-style:none; margin:22px 0; padding:0; }
.existing-copies li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.existing-copies li strong { font-size:14px; }
@media(max-width:500px) { .existing-copies li { align-items:flex-start; flex-direction:column; } }

.current-cover { display:flex; gap:20px; align-items:flex-start; margin-bottom:20px; }
.current-cover > div { min-width:0; }
.cover-url { overflow-wrap:anywhere; font-size:13px; }
