:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --paper-2: #efeee7;
  --white: #fffefa;
  --ink: #25382f;
  --ink-soft: #607067;
  --ink-faint: #92998f;
  --forest: #283d33;
  --forest-2: #344b3e;
  --leaf: #71836f;
  --orange: #c97e53;
  --orange-light: #f0dfcf;
  --line: #e6e4db;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #bd825e; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; }
.sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 31px 20px 18px; background: var(--forest); color: #f7f5eb; z-index: 10; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: inherit; margin: 0 0 43px 5px; }
.brand-mark { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: #e7b58d; background: rgba(241, 230, 208, .11); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.6px; }
.brand-copy small { color: #a4b1a2; font-size: 8px; font-weight: 700; letter-spacing: 1.35px; }
.nav-caption { padding: 0 10px; margin: 0 0 12px; color: #99a798; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; border: 0; border-radius: 9px; background: transparent; color: #d1d8ce; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-link.is-active { background: #405547; color: #fffdf6; box-shadow: inset 2px 0 #d7986d; }
.sidebar-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { flex: 1; font-size: 12px; font-weight: 500; }
.nav-count { color: #b2bdb0; font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-link.is-active .nav-count { color: #f0c49f; }
.sidebar-divider { height: 1px; margin: 25px 6px 20px; background: rgba(255,255,255,.12); }
.sidebar-note { position: relative; padding: 15px 13px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.035); }
.note-spark { color: #dda37a; font-size: 20px; line-height: 1; }
.sidebar-note p { margin: 10px 0 12px; max-width: 158px; color: #e7e9df; font-family: var(--serif); font-size: 14px; font-style: italic; line-height: 1.5; }
.sidebar-note > span:last-child { color: #a4b1a2; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.sidebar-bottom { margin-top: auto; }
.storage-note { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; color: #b5c0b2; font-size: 10px; }
.storage-dot { width: 6px; height: 6px; border-radius: 50%; background: #9bb691; box-shadow: 0 0 0 3px rgba(155,182,145,.14); }
.sidebar-add { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid rgba(241,230,208,.33); border-radius: 9px; background: #e9e1ce; color: #304236; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.sidebar-add:hover { background: #f5ebd6; transform: translateY(-1px); }
.sidebar-add svg, .top-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sidebar-add span:nth-of-type(1) { flex: 1; text-align: left; }
.shortcut { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(48,66,54,.17); border-radius: 5px; color: #67756a; font-size: 12px; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 18px 5px 0; margin-top: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.profile-avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-weight: 600; }
.profile-avatar { width: 33px; height: 33px; background: #b2b89c; color: #293e33; }
.profile-row > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.profile-row strong { font-size: 11px; font-weight: 600; }
.profile-row small { color: #aebaaa; font-size: 9px; }
.profile-menu { color: #aebaaa; letter-spacing: 1px; font-size: 12px; }
.main-content { min-height: 100vh; margin-left: 246px; }
.topbar { height: 73px; display: flex; align-items: center; justify-content: space-between; padding: 0 5.1%; border-bottom: 1px solid #eae8df; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 11px; }
.breadcrumb strong { color: #526359; font-weight: 600; }
.crumb-separator { color: #c5c5b9; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.today-date { color: #858d82; font-size: 10px; }
.top-add { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #d8dbcf; border-radius: 7px; background: transparent; color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 600; transition: background .18s, border-color .18s; }
.top-add:hover { border-color: #9aa98f; background: #f0efe7; }
.top-avatar { width: 31px; height: 31px; background: #e7d7c2; color: #614838; font-size: 14px; }
.page-wrap { width: min(100%, 1510px); padding: 30px 5.1% 24px; margin: 0 auto; }
.hero-panel { min-height: 256px; position: relative; display: flex; overflow: hidden; align-items: center; padding: 34px 46px; border: 1px solid #e4e1d5; border-radius: 13px; background: #edece2; }
.hero-panel::before { position: absolute; top: -140px; left: 38%; width: 460px; height: 460px; border: 1px solid rgba(71,92,72,.07); border-radius: 50%; content: ''; }
.hero-panel::after { position: absolute; top: -108px; left: 41%; width: 390px; height: 390px; border: 1px solid rgba(71,92,72,.07); border-radius: 50%; content: ''; }
.hero-copy { position: relative; z-index: 2; max-width: 480px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #758272; font-size: 9px; font-weight: 700; letter-spacing: 1.65px; }
.eyebrow-line { width: 19px; height: 1px; background: var(--orange); }
.hero-copy h1 { margin: 18px 0 11px; color: #293d32; font-family: var(--serif); font-size: clamp(34px, 3.5vw, 47px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.08; }
.hero-copy h1 em { color: #9c6849; font-weight: 500; }
.hero-copy > p { max-width: 390px; margin: 0; color: #6f796e; font-size: 12px; line-height: 1.75; }
.hero-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 4px; margin-top: 18px; border-bottom: 1px solid #9b7358; color: #3c5242; text-decoration: none; font-size: 11px; font-weight: 700; }
.hero-link span { color: #aa7250; font-size: 16px; transition: transform .2s ease; }
.hero-link:hover span { transform: translate(3px, 3px); }
.hero-art { width: 330px; height: 226px; position: absolute; right: 37px; bottom: 0; z-index: 1; }
.sun-disc { position: absolute; top: 26px; right: 56px; width: 145px; height: 145px; border-radius: 50%; background: #d5c9ab; opacity: .72; }
.book-stack { position: absolute; height: 43px; border: 1px solid rgba(37,56,47,.2); border-radius: 3px 5px 5px 3px; box-shadow: 2px 6px 12px rgba(42,53,42,.09); }
.book-stack::before { position: absolute; inset: 0 auto 0 11px; width: 1px; background: rgba(255,255,255,.47); content: ''; }
.book-stack span { position: absolute; left: 17px; top: 50%; width: 38%; height: 1px; background: rgba(255,255,255,.66); }
.book-stack i { position: absolute; right: 11px; top: 50%; width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transform: translateY(-50%); }
.stack-back { right: 38px; bottom: 48px; width: 216px; transform: rotate(-9deg); background: #657365; }
.stack-mid { right: 51px; bottom: 92px; width: 234px; transform: rotate(8deg); background: #bd805b; }
.stack-front { right: 83px; bottom: 135px; width: 203px; transform: rotate(-5deg); background: #e4dcc8; }
.stack-front span, .stack-front i { background: #687663; border-color: #687663; }
.stack-front i { border-color: #687663; }
.art-spark { position: absolute; z-index: 2; color: #a36f4d; }
.spark-one { top: 29px; right: 222px; font-size: 20px; }
.spark-two { top: 55px; right: 35px; color: #79826c; font-size: 24px; }
.hero-art-caption { position: absolute; right: 250px; bottom: 43px; z-index: 3; color: #879080; font-size: 7px; line-height: 1.6; letter-spacing: 1.4px; transform: rotate(-9deg); }
.hero-art-caption b { color: #485a49; font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.hero-index { position: absolute; right: 20px; bottom: 16px; color: #8b9285; font-size: 8px; letter-spacing: 1.3px; }
.hero-index span { color: #c27b55; padding: 0 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.stat-card { min-height: 93px; position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 17px; overflow: hidden; border: 1px solid #e8e6dc; border-radius: 10px; background: #fbfaf6; }
.stat-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #e9ede4; color: #526b55; }
.stat-reading .stat-icon { background: #f1e6d8; color: #a66946; }
.stat-finished .stat-icon { background: #e4ebe3; color: #58745a; }
.stat-unread .stat-icon { background: #eeeae1; color: #8a7957; }
.stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.stat-card > div:last-of-type { display: flex; flex-direction: column; gap: 1px; }
.stat-label { color: #90988c; font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.stat-card strong { color: #34473a; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.stat-card small { color: #969b8e; font-size: 9px; }
.stat-index { position: absolute; right: 12px; top: 11px; color: #c7c9be; font-size: 8px; }
.collection-section { padding-top: 41px; }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }
.section-eyebrow { margin-bottom: 7px; color: #929888; font-size: 8px; }
.collection-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #2d4236; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.65px; }
.collection-heading h2 em { color: #a46d4c; font-weight: 500; }
.heading-count { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #e3e1d6; border-radius: 50%; color: #758075; font-family: var(--sans); font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.section-subtitle { margin: 7px 0 0; color: #92988d; font-size: 10px; }
.text-add { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 4px; border: 0; border-bottom: 1px solid #c4c7ba; background: transparent; color: #52654f; cursor: pointer; font-size: 10px; font-weight: 600; }
.text-add span { color: #b8734e; font-size: 18px; line-height: .8; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #e6e4da; border-bottom: 1px solid #e6e4da; }
.search-box { min-width: min(340px, 48%); display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e5e3d9; border-radius: 7px; background: #fbfaf6; color: #899286; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #a2ae99; box-shadow: 0 0 0 3px rgba(116,137,111,.09); }
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a5a99e; }
.search-box kbd { display: grid; width: 18px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #e7e5db; border-radius: 4px; color: #a5a99e; font: 10px var(--sans); }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { padding: 8px 11px; border: 0; border-radius: 6px; background: transparent; color: #868d82; cursor: pointer; font-size: 10px; transition: background .18s, color .18s; }
.filter-tab:hover { background: #eeede5; color: #435747; }
.filter-tab.is-selected { background: var(--forest); color: #f7f5ed; }
.results-line { display: flex; justify-content: space-between; align-items: center; margin: 14px 1px; color: #95998d; font-size: 9px; }
.results-sort { display: flex; align-items: center; gap: 6px; }
.sort-dot { width: 5px; height: 5px; border-radius: 50%; background: #9baa91; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-card { min-width: 0; overflow: hidden; border: 1px solid #e8e6dd; border-radius: 10px; background: #fbfaf6; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; animation: card-in .42s both; }
.book-card:hover { transform: translateY(-3px); border-color: #d8dbce; box-shadow: 0 12px 28px rgba(47,62,49,.08); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.book-cover { height: 184px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 15px 16px 13px 25px; overflow: hidden; isolation: isolate; color: #f9f4e8; box-shadow: inset 8px 0 rgba(31,42,34,.14); }
.book-cover::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(145deg, rgba(255,255,255,.16), transparent 48%, rgba(14,25,17,.13)); }
.book-cover::after { position: absolute; right: -31px; bottom: -55px; z-index: -1; width: 175px; height: 175px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ''; box-shadow: 0 0 0 15px rgba(255,255,255,.045), 0 0 0 31px rgba(255,255,255,.035); }
.cover-terracotta { background: #9f5943; }
.cover-sage { background: #687867; }
.cover-navy { background: #475966; }
.cover-ochre { background: #b8864a; }
.cover-rose { background: #a96d67; }
.cover-ink { background: #363e46; }
.cover-plum { background: #756174; }
.cover-teal { background: #46736e; }
.cover-paper { background: #d7cdb5; color: #414d41; }
.cover-lilac { background: #82778d; }
.cover-motif { position: absolute; right: 24px; top: 35px; width: 95px; height: 95px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; opacity: .58; }
.cover-motif::before, .cover-motif::after { position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; content: ''; }
.cover-motif::after { inset: 27px; }
.cover-terracotta .cover-motif { right: 25px; top: 38px; width: 80px; height: 80px; border-radius: 50% 50% 3px 50%; transform: rotate(40deg); }
.cover-sage .cover-motif { top: 34px; right: 35px; width: 74px; height: 74px; border-radius: 0; transform: rotate(45deg); }
.cover-navy .cover-motif { top: 30px; right: 29px; width: 91px; height: 91px; border-radius: 50% 50% 0 50%; transform: rotate(24deg); }
.cover-ochre .cover-motif { border-radius: 50% 0 50% 0; transform: rotate(45deg); }
.cover-rose .cover-motif { border-radius: 50% 50% 0 50%; transform: rotate(45deg); }
.cover-ink .cover-motif { border-radius: 2px; transform: rotate(45deg); }
.cover-plum .cover-motif { width: 104px; height: 104px; border-radius: 50% 0; transform: rotate(25deg); }
.cover-teal .cover-motif { border-radius: 50% 50% 0 0; }
.cover-paper .cover-motif { border-color: rgba(53,66,51,.45); }
.cover-paper .cover-motif::before, .cover-paper .cover-motif::after { border-color: rgba(53,66,51,.45); }
.cover-lilac .cover-motif { width: 90px; height: 90px; border-radius: 0 50% 50% 50%; }
.cover-kicker { position: relative; z-index: 1; max-width: 75%; font-size: 7px; font-weight: 600; letter-spacing: 1.35px; line-height: 1.4; text-transform: uppercase; opacity: .83; }
.cover-title { position: relative; z-index: 1; max-width: 86%; margin: auto 0 5px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.35px; line-height: 1.05; text-wrap: balance; }
.cover-author { position: relative; z-index: 1; max-width: 83%; font-size: 8px; font-weight: 500; letter-spacing: .75px; text-transform: uppercase; opacity: .83; }
.cover-number { position: absolute; top: 14px; right: 14px; z-index: 1; color: rgba(255,255,255,.68); font-family: var(--serif); font-size: 10px; }
.cover-paper .cover-number { color: rgba(53,66,51,.6); }
.cover-paper .cover-kicker, .cover-paper .cover-author { color: #495749; }
.cover-paper .cover-title { color: #344439; }
.card-body { padding: 13px 14px 14px; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.book-title { margin: 0; overflow: hidden; color: #32463a; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: -.15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.book-author { margin: 4px 0 0; overflow: hidden; color: #888f83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.genre-pill { max-width: 84px; flex: 0 0 auto; overflow: hidden; padding: 5px 7px; border-radius: 20px; background: #eeeee6; color: #6c776a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.card-divider { height: 1px; margin: 12px 0 10px; background: #eeede6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.page-meta { color: #96998e; font-size: 9px; }
.page-meta strong { color: #697568; font-weight: 600; }
.status-select { max-width: 126px; padding: 6px 20px 6px 8px; border: 1px solid #e5e5db; border-radius: 5px; background-color: #f8f7f1; color: #5f6e5e; cursor: pointer; font-size: 8px; }
.status-select.status-reading { border-color: #ead7c3; background-color: #f7efe6; color: #9a6547; }
.status-select.status-read { border-color: #dce6da; background-color: #edf2e9; color: #5c765a; }
.progress-track { height: 3px; overflow: hidden; margin-top: 12px; border-radius: 3px; background: #ecebe3; }
.progress-fill { height: 100%; border-radius: inherit; background: #9baf8f; transition: width .35s ease; }
.empty-state { padding: 56px 18px 62px; border: 1px dashed #d9dbcf; border-radius: 10px; text-align: center; background: rgba(255,254,250,.48); }
.empty-state[hidden] { display: none; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #e9ece3; color: #74856f; }
.empty-icon svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 0; color: #3c4d40; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.empty-state p { margin: 8px 0 17px; color: #8a9186; font-size: 11px; }
.empty-add { padding: 9px 13px; border: 1px solid #cfd7c8; border-radius: 6px; background: #f7f6ef; color: #50644f; cursor: pointer; font-size: 10px; font-weight: 600; }
.empty-add span { padding-left: 5px; color: #b77851; }
.page-footer { display: flex; justify-content: space-between; padding: 27px 0 3px; margin-top: 35px; border-top: 1px solid #e6e4da; color: #9ba094; font-family: var(--serif); font-size: 11px; font-style: italic; }
.page-footer span:last-child { color: #939b8d; font-family: var(--sans); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: 1.2px; }
.page-footer i { padding-left: 4px; color: #be805c; font-size: 13px; font-style: normal; }
.book-dialog { width: min(470px, calc(100% - 28px)); max-height: min(92vh, 800px); padding: 0; overflow: auto; border: 1px solid #e1dfd4; border-radius: 14px; background: #faf9f4; color: var(--ink); box-shadow: 0 24px 80px rgba(26,39,29,.23); }
.book-dialog::backdrop { background: rgba(31,45,36,.48); backdrop-filter: blur(3px); }
.dialog-form { padding: 26px 31px 22px; }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; }
.dialog-close { width: 30px; height: 30px; border: 1px solid #e5e3da; border-radius: 50%; background: transparent; color: #677367; cursor: pointer; font-size: 19px; line-height: 1; }
.dialog-close:hover { background: #efeee7; }
.dialog-heading h2 { margin: 12px 0 5px; color: #304337; font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1.08; letter-spacing: -.6px; }
.dialog-heading h2 em { color: #a36c4c; }
.dialog-heading p { margin: 0 0 21px; color: #8a9186; font-size: 10px; line-height: 1.6; }
.field-label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; color: #5e6d5e; font-size: 9px; font-weight: 700; letter-spacing: .2px; }
.field-label > span { display: inline; color: #bb7953; }
.field-label input, .field-label select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #e3e2d8; border-radius: 6px; background: #fffefa; color: #35483a; font-size: 11px; letter-spacing: 0; }
.field-label input::placeholder { color: #b3b6aa; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 8px; }
.cancel-button, .save-button { min-height: 38px; padding: 0 15px; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 600; }
.cancel-button { border: 1px solid #e1e1d7; background: transparent; color: #70796e; }
.save-button { border: 1px solid var(--forest); background: var(--forest); color: #f8f6ed; }
.save-button:hover { background: #3b5746; }
.save-button span { padding-left: 8px; color: #e1aa82; }
.required-note { margin: 10px 0 0; color: #a2a699; font-size: 8px; }
.required-note span { color: #bb7953; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(360px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #30483a; color: #f7f5eb; box-shadow: 0 10px 30px rgba(32,45,35,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (min-width: 1500px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .book-cover { height: 205px; } }
@media (max-width: 1190px) { .sidebar { width: 220px; padding-inline: 16px; } .main-content { margin-left: 220px; } .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-art { right: 13px; transform: scale(.88); transform-origin: bottom right; } .stats-row { gap: 9px; } .stat-card { padding: 12px 10px; gap: 9px; } .stat-icon { width: 30px; height: 30px; } }
@media (max-width: 900px) { .today-date { display: none; } .hero-panel { padding-left: 30px; } .hero-art { right: -21px; transform: scale(.76); } .hero-copy { max-width: 55%; } .hero-copy h1 { font-size: 37px; } .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; box-shadow: 0 4px 18px rgba(36,52,40,.1); }
  .brand { flex: 0 0 auto; gap: 8px; margin: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 6px; letter-spacing: 1px; }
  .nav-caption, .sidebar-divider, .sidebar-note, .sidebar-bottom { display: none; }
  .sidebar-nav { flex: 1; justify-content: flex-end; gap: 3px; }
  .sidebar-link { width: auto; flex: 0 0 auto; gap: 5px; padding: 8px 7px; border-radius: 7px; }
  .sidebar-link svg { width: 16px; height: 16px; }
  .nav-label { display: none; }
  .nav-count { font-size: 9px; }
  .main-content { margin: 0; }
  .topbar { height: 55px; padding: 0 17px; }
  .topbar-actions { gap: 10px; }
  .top-add { padding: 8px 9px; font-size: 10px; }
  .top-avatar { width: 28px; height: 28px; }
  .page-wrap { padding: 19px 16px 22px; }
  .hero-panel { min-height: 222px; padding: 25px 22px; }
  .hero-copy { max-width: 78%; }
  .hero-copy h1 { margin-top: 15px; font-size: clamp(30px, 8vw, 37px); }
  .hero-copy > p { max-width: 255px; font-size: 10px; }
  .hero-art { right: -113px; transform: scale(.62); opacity: .72; }
  .hero-index { right: 10px; bottom: 10px; font-size: 7px; }
  .stats-row { gap: 8px; margin-top: 11px; }
  .stat-card { min-height: 80px; padding: 10px; gap: 8px; }
  .stat-label { font-size: 7px; letter-spacing: .75px; }
  .stat-card strong { font-size: 20px; }
  .stat-card small { font-size: 8px; }
  .stat-index { right: 7px; top: 7px; font-size: 7px; }
  .stat-icon { width: 27px; height: 27px; border-radius: 7px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .collection-section { padding-top: 31px; }
  .collection-heading { margin-bottom: 15px; }
  .collection-heading h2 { font-size: 27px; }
  .section-subtitle { font-size: 9px; }
  .text-add { font-size: 9px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 0; }
  .search-box { min-width: 0; }
  .filter-tabs { justify-content: space-between; gap: 2px; }
  .filter-tab { flex: 1; padding: 8px 5px; font-size: 9px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .book-cover { height: 163px; padding: 12px 10px 11px 19px; }
  .cover-title { font-size: clamp(17px, 5vw, 22px); }
  .cover-kicker { font-size: 6px; }
  .card-body { padding: 10px 9px 11px; }
  .card-title-row { display: block; }
  .book-title { font-size: 13px; }
  .genre-pill { display: inline-block; max-width: 100%; margin-top: 7px; }
  .book-author { font-size: 8px; }
  .card-divider { margin: 9px 0 8px; }
  .card-foot { align-items: flex-start; flex-direction: column; }
  .status-select { max-width: 100%; }
  .progress-track { margin-top: 8px; }
  .page-footer { gap: 12px; font-size: 10px; }
  .page-footer span:last-child { font-size: 7px; }
}
@media (max-width: 390px) {
  .sidebar { gap: 5px; padding-inline: 10px; }
  .brand-copy { display: none; }
  .sidebar-link { padding-inline: 5px; }
  .nav-count { display: none; }
  .hero-copy { max-width: 88%; }
  .hero-copy h1 { font-size: 31px; }
  .hero-copy > p { max-width: 220px; }
  .book-cover { height: 150px; }
  .card-body { padding-inline: 8px; }
  .book-title { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Aksesibilitas dan panel detail buku */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.view-book-button { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 3px; border: 0; border-bottom: 1px solid #d4d8cb; background: transparent; color: #61745e; cursor: pointer; font-size: 9px; font-weight: 700; transition: color .18s, border-color .18s; }
.view-book-button:hover { border-color: #b67953; color: #9c6344; }
.view-book-button span { color: #b77952; font-size: 13px; }
.detail-dialog { width: min(690px, calc(100% - 28px)); }
.detail-form { padding: 25px 29px 20px; }
.detail-controls { display: flex; align-items: center; gap: 8px; }
.print-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid #d8ddcf; border-radius: 6px; background: #f3f3eb; color: #536a54; cursor: pointer; font-size: 10px; font-weight: 700; }
.print-button:hover { border-color: #a8b59e; background: #e9eee4; }
.print-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-layout { display: grid; grid-template-columns: minmax(170px, .78fr) 1.22fr; gap: 27px; align-items: center; padding: 24px 0; }
.detail-cover { width: 100%; height: 270px; border-radius: 4px 7px 7px 4px; box-shadow: 7px 10px 23px rgba(40,54,42,.18), inset 8px 0 rgba(31,42,34,.14); }
.detail-cover .cover-title { font-size: clamp(22px, 4vw, 31px); }
.detail-copy { min-width: 0; }
.detail-kicker { color: #9c7256; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.detail-copy h2 { margin: 8px 0 4px; color: #304337; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.55px; line-height: 1.13; }
.detail-byline { margin: 0; color: #879084; font-size: 11px; }
.detail-byline strong { color: #50624f; font-weight: 600; }
.detail-blurb { margin: 19px 0; color: #6d786c; font-family: var(--serif); font-size: 14px; line-height: 1.65; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px 0; margin: 0; border-top: 1px solid #e8e6dc; border-bottom: 1px solid #e8e6dc; }
.detail-meta div { display: flex; flex-direction: column; gap: 5px; }
.detail-meta dt { color: #9a9e91; font-size: 8px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.detail-meta dd { margin: 0; color: #4c604f; font-size: 10px; font-weight: 600; }
.detail-status-row { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; color: #7c887a; font-size: 9px; font-weight: 700; }
.detail-status-row select { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid #e3e2d8; border-radius: 6px; background: #fffefa; color: #4f654f; font-size: 10px; }
.detail-footer { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid #e8e6dc; color: #9ba093; font-size: 8px; }
.detail-footer span:first-child { color: #83917f; font-weight: 700; letter-spacing: 1.2px; }
@media (max-width: 680px) {
  .detail-form { padding: 21px 18px 16px; }
  .detail-layout { grid-template-columns: 116px 1fr; gap: 16px; padding: 18px 0; }
  .detail-cover { height: 184px; padding: 11px 8px 10px 18px; }
  .detail-cover .cover-title { font-size: 19px; }
  .detail-cover .cover-kicker { font-size: 5px; }
  .detail-copy h2 { font-size: 24px; }
  .detail-blurb { margin: 12px 0; font-size: 12px; }
  .detail-meta { gap: 7px; }
  .detail-meta dd { font-size: 9px; }
}
@media print {
  @page { margin: 18mm; }
  body * { visibility: hidden !important; }
  .detail-dialog[open], .detail-dialog[open] * { visibility: visible !important; }
  .detail-dialog[open] { position: absolute !important; inset: 0 auto auto 0 !important; display: block !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: white !important; box-shadow: none !important; }
  .detail-dialog::backdrop { display: none !important; }
  .detail-form { padding: 0 !important; }
  .detail-controls, .detail-status-row { display: none !important; }
  .detail-layout { grid-template-columns: 190px 1fr !important; gap: 30px !important; }
  .detail-cover { height: 260px !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .detail-footer { margin-top: 12px; }
}
