.app-shell{width:min(1400px,calc(100vw - 32px));margin:0 auto;padding:32px 0 48px}.login-panel{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#0f172a,#1e3a8a);padding:20px}.login-card{background:#fff;border-radius:16px;padding:48px;max-width:400px;width:100%;box-shadow:0 20px 60px #1f293726}.login-card h1{font-size:2rem;margin-bottom:4px;text-align:center}.login-card img{max-width:100%;height:auto;justify-content:center}.login-subtitle{text-align:center;color:#6b7280;margin-bottom:32px;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem}.login-form{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.login-form label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#374151}.login-form input{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:.7rem .8rem;font-size:1rem}.login-form button{margin-top:8px;padding:.8rem;font-size:1rem}.login-hint{text-align:center;font-size:.85rem;color:#9ca3af;margin:0}.user-info{color:#4b5563;font-size:.9rem;font-weight:600}.page-header{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:20px}.eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;color:#1e3a8a}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(2rem,3vw,3rem)}h2{margin-bottom:16px}.panel{background:#ffffffe6;border:1px solid #ddd;border-radius:16px;padding:20px;box-shadow:0 12px 30px #1f293714;margin-bottom:24px}.header-actions,.inline-form,.form-actions,.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.header-actions button,.header-actions label{padding:.5rem .75rem;font-size:.9rem}.series-form{flex-wrap:nowrap}.series-form input{flex:1;min-width:0}.series-form button{flex-shrink:0}.author-form{flex-wrap:nowrap}.author-form input{flex:1;min-width:0}.author-form button{flex-shrink:0}.book-title-link{background:transparent;color:#1e3a8a;padding:0;border:none;font-weight:700;text-align:left}.book-title-link:hover{text-decoration:underline}.google-series-info{margin:-8px 0 0;color:#4b5563;font-weight:600}.button-like{position:relative;display:inline-flex;align-items:center;justify-content:center}.button-like input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}button,input,select,textarea{font:inherit}button{border:0;background:#1e3a8a;color:#fff;border-radius:8px;padding:.6rem 1rem;font-weight:600;cursor:pointer;font-size:.95rem}button.secondary{background:#2563eb;color:#fff}button.danger{background:#e11d48}button.icon-button{background:none;padding:0;border-radius:0}.author-list{display:grid;gap:10px}.author-entry{border:1px solid #e5e7eb;border-radius:8px}.author-entry-header,.author-sublist li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}.author-expand{background:none;color:#1e3a8a;padding:0;text-align:left}.author-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:12px;border-top:1px solid #e5e7eb}.author-details h3{margin:0 0 8px;font-size:1rem}.author-sublist{margin:10px 0 0;padding:0;list-style:none}.author-sublist li{padding:8px 0;border-top:1px solid #f3f4f6}.series-column-layout{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.series-list-column{flex:1;min-width:0}.series-form-column{width:min(320px,38vw);min-width:220px}.series-entry{display:flex;flex-direction:column;gap:8px;align-items:stretch}.series-header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;color:#111827;width:100%}.series-header>span{flex:1;text-align:left}.series-book-list{margin:0 0 0 10px;padding:0 0 0 10px;list-style:none;display:flex;flex-direction:column;gap:6px}.series-book-item{padding-left:0}.empty-state{margin:10px 0 0;color:#6b7280}.series-empty-state{margin-left:16px}button.danger.icon-button img.icon{filter:none}button.danger img.icon{width:16px;height:16px;vertical-align:middle;filter:brightness(0) invert(1)}button img.icon{width:16px;height:16px;vertical-align:middle}input,select,textarea{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:.7rem .8rem;background:#fff;color:#111827}input[type=date]{cursor:pointer;padding-right:.4rem}textarea{resize:vertical}table{width:100%;border-collapse:collapse;margin-top:12px;background:#fff;border-radius:12px;overflow:hidden}.books-table-scroll{height:560px;overflow-y:auto;margin-top:12px;background:#fff;border-radius:12px}.books-table-scroll table{width:100%;margin-top:0;display:block;border-collapse:separate;border-spacing:0}.books-table-scroll thead,.books-table-scroll tbody{position:relative;display:block;width:100%}.books-table-scroll thead tr,.books-table-scroll tbody tr:not(.books-virtual-spacer){width:100%;display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1.2fr) minmax(140px,1.2fr) 90px 130px 110px 80px;align-items:center}.books-table-scroll th,.books-table-scroll td{min-width:0;box-sizing:border-box}.books-table-scroll table.books-table-viewer thead tr,.books-table-scroll table.books-table-viewer tbody tr:not(.books-virtual-spacer){grid-template-columns:minmax(180px,2fr) minmax(140px,1.2fr) minmax(140px,1.2fr) 90px 130px 110px}.books-table-scroll tbody tr:not(.books-virtual-spacer){position:absolute;top:0;left:0;width:100%;height:56px}.books-virtual-spacer{visibility:hidden}.books-table-scroll .books-virtual-spacer td{grid-column:1 / -1}th,td{padding:12px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}th{background:#f3f4f6;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#4b5563}.column-series-number{text-align:center}.top-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;padding:6px 8px;background:#1e3a8a14;border:1px solid rgba(30,58,138,.2);border-radius:12px;box-shadow:0 8px 24px #1e3a8a0d}.nav-button{background:transparent;color:#1f2937;border:1px solid transparent;padding:.5rem .75rem;font-weight:600;font-size:.9rem;border-radius:8px;transition:all .2s ease}.nav-button:hover{background:#1e3a8a1a;color:#1e3a8a}.nav-button.active{background:#1e3a8a;color:#fff;border-color:#0f172a}.table-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:8px}.toolbar-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar-controls input{min-width:220px}.column-sort{display:inline-flex;align-items:center;gap:.25rem;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}.column-sort:hover,.column-sort:focus-visible{color:#1e3a8a}.column-sort.active{color:#1e3a8a}.book-summary-block{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.book-thumbnail{width:52px;height:76px;object-fit:cover;border-radius:8px;border:1px solid #d1d5db;background:#eef2ff}.book-thumbnail.placeholder{display:flex;align-items:center;justify-content:center;font-size:.62rem;text-align:center;color:#6b7280;padding:6px}.book-thumbnail.large{width:72px;height:104px}.book-summary{display:block;max-width:22rem;color:#4b5563;font-size:.85rem;line-height:1.45}.small-button{width:fit-content;padding:.45rem .75rem;font-size:.8rem}.summary-preview{border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;padding:12px 14px;min-height:88px}.summary-preview-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.summary-preview-body{display:flex;align-items:flex-start;gap:12px}.summary-preview p{margin:0;color:#4b5563;line-height:1.5}.detail-two-col{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start;margin-top:16px}.detail-left{display:flex;flex-direction:column;gap:20px}.detail-right{display:flex;flex-direction:column;gap:16px}.detail-google-block{display:flex;gap:20px;align-items:flex-start}.detail-cover{width:120px;min-width:120px;border-radius:8px;border:1px solid #d1d5db;object-fit:cover;box-shadow:0 4px 12px #0000001f}.detail-cover.placeholder{height:180px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#6b7280;font-size:.75rem}.detail-google-info h3{margin:0 0 8px;font-size:1.1rem;color:#111827}.detail-google-meta{margin:0 0 6px;font-size:.85rem;color:#4b5563}.detail-google-description{margin:12px 0 0;font-size:.88rem;color:#374151;line-height:1.65}.muted-text{color:#9ca3af;font-size:.88rem}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.detail-header>div:first-child{flex:1}.detail-header h2{margin-bottom:0}.google-book-summary p{margin:0;color:#6b7280;font-size:.9rem}.detail-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(0,2fr);gap:32px;align-items:start}.detail-summary-card{display:flex;flex-direction:column;gap:16px;padding:20px;border:1px solid #d1d5db;border-radius:16px;background:#fff;box-shadow:0 4px 12px #1f29370f}.detail-summary-card .book-thumbnail{width:100%;height:auto;aspect-ratio:2/3}.detail-summary-card .book-thumbnail.placeholder{min-height:240px}.detail-summary-card .book-summary{max-width:none;font-size:.9rem}.detail-summary-card .small-button{width:100%}.detail-content{display:flex;flex-direction:column;gap:24px}.detail-list{display:flex;flex-direction:column}.detail-row{display:flex;flex-direction:column;gap:4px;padding:14px 0;border-bottom:1px solid #e5e7eb}.detail-row:last-child{border-bottom:none}.detail-row dt{margin:0;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;font-weight:600;color:#6b7280}.detail-row dd{margin:0;padding-left:10px;font-weight:600;color:#111827;text-align:left}.rating-pill{display:inline-block;padding:.2rem .65rem;border-radius:999px;background:#eef2ff;color:#1e3a8a;font-size:.85rem}.ratings-inline{display:flex;flex-wrap:wrap;gap:10px;padding-left:0}.rating-inline-item{display:flex;flex-direction:column;align-items:center;gap:3px}.rating-inline-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.detail-comments{padding:20px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb}.detail-comments h3{margin:0 0 12px;font-size:1.1rem;color:#111827}.detail-comments p{margin:0;color:#4b5563;line-height:1.65}.detail-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #e5e7eb}.book-form{display:flex;flex-direction:column;gap:24px}.form-section{display:flex;flex-direction:column;gap:14px;padding-bottom:20px;border-bottom:1px solid #e5e7eb}.form-section:last-of-type{border-bottom:none;padding-bottom:0}.form-section h3{margin:0;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:#1e3a8a}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.slider-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.slider-field{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#374151}.slider-field-label{display:flex;justify-content:space-between;align-items:center}.slider-field-value{font-weight:700;color:#1e3a8a;background:#eef2ff;padding:.1rem .6rem;border-radius:999px;font-size:.85rem}label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#374151}.full-width{grid-column:1 / -1}.checkbox-label{flex-direction:row!important;align-items:center;padding-top:1.8rem;gap:10px;font-weight:700}.checkbox-label input{width:auto}button,.button-like{padding:.35rem .65rem}.nav-button{padding:.3rem .6rem}button.secondary,button.danger{padding:.3rem .55rem}.settings-group{display:flex;flex-direction:column;gap:12px;padding-bottom:24px;border-bottom:1px solid #e5e7eb}.settings-group h3{margin:0;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:#1e3a8a}.settings-description{margin:0;font-size:.88rem;color:#6b7280}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.drive-import-error{display:block;margin-top:4px;color:#e11d48}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.modal-card{background:#fff;border-radius:16px;padding:24px;max-width:400px;width:100%;box-shadow:0 20px 60px #1f293740}.modal-card p{margin:0 0 20px;color:#111827;font-weight:600}.modal-actions{display:flex;gap:8px;justify-content:flex-end}@media (max-width: 760px){.app-shell{width:100%;padding:12px 12px 48px}.page-header{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:12px}.page-header img{width:140px!important}.header-actions{width:100%;flex-wrap:wrap}.header-actions button,.header-actions label{flex:1 1 auto;text-align:center;font-size:.8rem;padding:.5rem}.user-info{width:100%;font-size:.8rem}.top-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:6px;padding:6px;scrollbar-width:none}.top-nav::-webkit-scrollbar{display:none}.nav-button{white-space:nowrap;flex-shrink:0;padding:.45rem .75rem;font-size:.85rem}.panel{padding:14px 12px;border-radius:12px}.books-toolbar input{width:100%}table{display:block}thead{display:none}tbody{display:flex;flex-direction:column;gap:10px}tbody tr{display:flex;flex-direction:column;gap:4px;height:180px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.books-table-scroll .books-table thead{display:none}.books-table-scroll .books-table tbody tr:not(.books-virtual-spacer){display:flex;align-items:stretch}tbody td{display:flex;align-items:baseline;gap:6px;padding:2px 0;border:none;font-size:.9rem}tbody td:before{content:attr(data-label);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;min-width:72px;flex-shrink:0}tbody td.table-actions{margin-top:6px;padding-top:8px;border-top:1px solid #f3f4f6}tbody td.table-actions:before{display:none}.detail-two-col{grid-template-columns:1fr;gap:20px}.detail-google-block{flex-direction:column}.detail-cover{width:100px;min-width:100px}.detail-actions{flex-direction:column}.detail-actions button{width:100%}.slider-fields{grid-template-columns:repeat(2,1fr)}.field-grid{grid-template-columns:1fr}.checkbox-label{padding-top:0}.form-actions{flex-direction:column}.form-actions button{width:100%}.inline-form{flex-direction:column}.inline-form input,.inline-form select,.inline-form button{width:100%}.book-summary-block{flex-direction:row;align-items:flex-start}.book-summary{max-width:none}.login-card{padding:28px 20px}.modal-card{border-radius:12px;padding:20px}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#111827;background:linear-gradient(180deg,#f0f9ff,#e0e7ff);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}button,input,select,textarea{transition:border-color .2s ease,box-shadow .2s ease}button:hover,input:hover,select:hover,textarea:hover{border-color:#3b82f6}button:focus,input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 3px #1e3a8a26}
