:root{--ink: #071823;--deep: #082f36;--storm: #537d79;--mint: #8abdb3;--mist: #cbd3d2;--paper: #f4f7f6;--white: #ffffff;--muted: #6d7d7c;--line: rgba(83, 125, 121, .24);--soft: rgba(138, 189, 179, .18);--shadow: rgba(7, 24, 35, .18);color:var(--ink);background:var(--paper);font-family:Inter,ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}.app{display:grid;min-height:100vh;place-items:center;padding:24px;background:radial-gradient(circle at top left,rgba(138,189,179,.3),transparent 28%),radial-gradient(circle at bottom right,rgba(83,125,121,.22),transparent 30%),linear-gradient(135deg,#f6f8f7,#dfe8e6)}.app-start,.app-login{display:grid;place-items:center}.start-page,.auth-layout,.bookly-shell{width:min(1360px,100%)}.start-page{position:relative;display:grid;min-height:min(760px,calc(100vh - 48px));align-content:center;justify-items:center;gap:38px;padding:56px;border-radius:28px;background:linear-gradient(135deg,var(--ink),var(--deep) 54%,var(--storm));color:var(--white);box-shadow:0 30px 90px var(--shadow)}.start-copy{max-width:720px;text-align:center}.start-copy p,.start-copy span{margin:0;color:#ffffffdb;font-size:20px}.start-page .primary-button{width:min(320px,100%);background:var(--white);color:var(--deep)}.start-lang{position:absolute;top:28px;right:28px}.start-lang select{min-height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.36);border-radius:14px;background:#ffffff24;color:var(--white);font:inherit;font-size:13px;font-weight:900;cursor:pointer;outline:none}.start-lang option{color:var(--ink);background:var(--white)}.auth-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(340px,440px);min-height:min(760px,calc(100vh - 48px));overflow:hidden;border-radius:28px;background:var(--white);box-shadow:0 30px 90px #07182324}.auth-intro{display:grid;align-content:end;padding:56px;background:linear-gradient(145deg,var(--ink),var(--deep) 58%,var(--storm));color:var(--white)}.auth-intro p{margin:0 0 14px;color:#ffffffd1;font-size:18px;font-weight:800}.auth-intro h1{max-width:520px;margin:0;color:var(--white);font-size:clamp(42px,6vw,78px);line-height:1}.auth-panel{display:grid;align-content:center;gap:34px;padding:48px}.auth-header h2,.page-header h1,.details-copy h1,.section-heading h2,.preview-panel h2{margin:0;color:var(--ink);line-height:1.08}.auth-header h2{font-size:36px}.auth-header p,.page-header p,.details-copy p,.section-heading p{margin:8px 0 0;color:var(--muted);font-size:18px}.auth-form{display:grid;gap:22px}.auth-form label{display:grid;gap:10px;color:var(--ink);font-size:16px;font-weight:800}.auth-form input,.search-field{width:100%;min-height:58px;border:1px solid var(--line);border-radius:20px;background:var(--white);color:var(--ink);outline:none}.auth-form input{padding:0 20px}.auth-form input::placeholder,.search-field input::placeholder{color:var(--storm)}.link-button{width:fit-content;padding:0;border:0;background:transparent;color:var(--storm);font-weight:800}.auth-actions{display:grid;gap:18px;text-align:center}.auth-actions p{margin:0;color:var(--muted)}.auth-actions button:not(.primary-button){border:0;background:transparent;color:var(--storm);font-weight:800}.primary-button{min-height:58px;border:0;border-radius:18px;background:var(--deep);color:var(--white);font-size:18px;font-weight:800}.bookly-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 48px);align-items:start;border:1px solid rgba(83,125,121,.22);border-radius:28px;background:#ffffffc7;box-shadow:0 30px 90px #07182324;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.sidebar{position:sticky;top:24px;display:grid;grid-template-rows:auto 1fr auto;height:calc(100vh - 48px);gap:28px;padding:28px;background:var(--white);border-right:1px solid var(--line);border-radius:28px 0 0 28px}.logo-button{justify-self:start;border:0;background:transparent;padding:0}.sidebar-logo-img{display:block;width:150px}.start-logo-img{width:min(560px,608%);border-radius:18px;padding:14px 28px;background:var(--white)}.auth-logo-img{width:min(400px,160%);border-radius:14px;padding:10px 20px;background:var(--white);margin-bottom:16px}.onboarding-logo-img{width:110px;border-radius:10px;padding:5px 10px;background:var(--white);margin-bottom:4px}.sidebar nav{display:grid;align-content:start;gap:10px}.sidebar nav button{min-height:46px;border:0;border-radius:16px;background:transparent;color:var(--muted);font-weight:900;text-align:left;padding:0 16px}.sidebar nav .active{background:var(--soft);color:var(--deep)}.workspace{min-width:0}.screen{min-height:0}.genre-row::-webkit-scrollbar{display:none}.home-screen,.search-screen,.library-screen,.details-screen{padding:32px 32px 56px}.scroll-sentinel{height:1px}.app-onboarding{align-items:start}.onboarding-page{width:min(1360px,100%);border:1px solid rgba(83,125,121,.22);border-radius:28px;background:#ffffffc7;box-shadow:0 30px 90px #07182324;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);overflow:hidden}.onboarding-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:28px 32px;background:linear-gradient(135deg,var(--deep),var(--storm));color:var(--white)}.onboarding-title p{margin:0 0 4px;color:#ffffffd1;font-size:18px;font-weight:800}.onboarding-title h1{margin:0;color:var(--white);font-size:30px;line-height:1}.onboarding-cta{display:flex;align-items:center;gap:20px;flex-shrink:0}.picks-tally{color:#ffffffd1;font-size:20px;font-weight:800;white-space:nowrap}.picks-tally strong{color:var(--white);font-size:28px}.picks-tally small{display:block;color:#fff9;font-size:13px;font-weight:800}.onboarding-submit{min-width:220px;background:var(--white);color:var(--deep)}.onboarding-body{padding:32px 32px 56px}.onboarding-hint{margin:0 0 24px;color:var(--muted);font-size:18px}.pick-cover-wrap{position:relative}.pick-check{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--deep);color:var(--white);font-size:14px;font-weight:900;pointer-events:none}.feed-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin:32px 32px 0;padding:24px;border-radius:24px;background:linear-gradient(135deg,var(--deep),var(--storm));color:var(--white)}.avatar{display:grid;width:56px;height:56px;place-items:center;border:2px solid var(--white);border-radius:50%;background:var(--white);color:var(--deep);font-weight:900}.feed-header p,.feed-header h1,.profile-title h2{margin:0;color:var(--white)}.feed-header p{font-size:18px}.feed-header h1{overflow:hidden;font-size:30px;line-height:1;text-overflow:ellipsis;white-space:nowrap}.profile-menu{display:flex;align-items:center;gap:14px;justify-self:end}.profile-title{display:grid;justify-items:end;gap:6px;min-width:0}.profile-controls{display:flex;align-items:center;gap:8px}.profile-title h2{font-size:22px;line-height:1}.profile-title button,.language-select select{min-height:30px;border:1px solid rgba(255,255,255,.36);border-radius:14px;background:#ffffff24;color:var(--white);font-size:13px;font-weight:900;padding:0 12px}.logout-button{display:grid;width:34px;min-height:34px;place-items:center;padding:0}.logout-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.language-select{display:flex;align-items:center}.language-select select{min-width:62px;color:var(--white);outline:none;text-align:center}.language-select option{color:var(--ink)}.back-button{display:grid;width:40px;height:40px;place-items:center;border:0;border-radius:50%;background:#ffffff29;color:var(--white);font-size:27px;font-weight:800}.home-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:32px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.section-heading h2{font-size:30px}.section-heading span{flex:0 0 auto;color:var(--storm);font-weight:900}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:28px 22px}.book-card{display:grid;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left}.recommendation-card{grid-template-columns:50% minmax(0,1fr);align-items:start;gap:14px}.book-card .book-cover{width:100%;aspect-ratio:164 / 246;object-fit:cover;border:3px solid transparent;border-radius:18px;box-shadow:0 8px 18px #0718231c;transition:border-color .16s ease,transform .16s ease}.recommendation-card .book-cover{width:100%}.book-card:hover .book-cover,.book-card:focus-visible .book-cover,.book-card.selected .book-cover{border-color:var(--mint);transform:translateY(-2px)}.book-cover-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#8bbeb82e,#f2eee2f2),var(--soft);color:var(--storm);font-weight:900;box-shadow:inset 0 0 0 1px #4e7d762e}.book-cover.book-cover-placeholder>span{display:grid;place-items:center;width:46%;aspect-ratio:1;border:1px solid rgba(78,125,118,.28);border-radius:50%;background:#ffffff94;color:var(--deep);font-size:22px;line-height:1}.book-card strong{display:-webkit-box;min-height:56px;margin-top:14px;overflow:hidden;color:var(--ink);font-size:18px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.book-card span{color:var(--muted);font-size:16px}.book-card-copy{display:grid;min-width:0;align-content:start}.book-card-copy strong{min-height:0;margin-top:0}.book-card-copy small{display:block;margin-top:6px;color:var(--muted);font-size:14px;line-height:1.25}.book-card-copy .book-category{font-size:12px}.book-category{display:inline-flex;align-items:center;width:fit-content;min-height:24px;margin-top:8px;padding:0 10px;border:1px solid rgba(78,125,118,.22);border-radius:999px;background:var(--soft);color:var(--deep);font-size:12px;font-weight:900;line-height:1}.book-category-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.book-category-list .book-category{margin-top:0}.preview-panel{position:sticky;top:32px;display:grid;justify-items:center;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--white);text-align:center;box-shadow:0 16px 48px #0718231a}.preview-panel .book-cover{width:min(72%,210px);aspect-ratio:164 / 246;border-radius:18px;object-fit:cover;box-shadow:0 14px 28px #0718232e}.preview-categories,.genre-label{margin:22px 0 8px;color:var(--storm);font-weight:900}.preview-categories .book-category-list,.genre-label .book-category-list{justify-content:center;margin-top:0}.preview-panel h2{font-size:26px}.preview-panel span{color:var(--muted);font-size:17px}.page-header{max-width:760px;margin-bottom:28px}.page-header h1{font-size:clamp(34px,5vw,58px)}.search-field{display:grid;grid-template-columns:28px 1fr;align-items:center;max-width:760px;gap:10px;padding:0 18px}.search-field span{color:var(--storm);font-size:24px}.search-field input{min-width:0;border:0;background:transparent;color:var(--ink);outline:none}.genre-row{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 28px}.genre-row button{min-height:38px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);font-weight:800;padding:0 16px}.genre-row .active{border-color:var(--mint);background:var(--soft);color:var(--deep)}.result-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}.result-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:start;gap:14px;width:100%;min-height:94px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);text-align:left}.result-item .book-cover{width:58px;height:72px;border-radius:10px;object-fit:cover}.result-item .book-cover-placeholder>span,.review-card .book-cover-placeholder>span{font-size:13px}.result-item strong,.result-item small{display:block}.result-item strong{display:block;font-size:16px;line-height:1.2}.result-item small{color:var(--muted);line-height:1.25;margin-top:4px}.result-item .book-category{margin-top:8px}.result-item em{align-self:center;color:var(--storm);font-style:normal;font-weight:900;text-align:center}.back-button{margin-bottom:22px;background:var(--soft);color:var(--ink)}.details-layout{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,620px);gap:44px;align-items:center}.details-cover{width:100%;max-width:340px;aspect-ratio:164 / 246;border-radius:24px;object-fit:cover;box-shadow:0 18px 34px #07182333}.details-copy h1{max-width:640px;margin-bottom:10px;font-size:clamp(34px,5vw,60px)}.details-copy>p{color:var(--muted);font-size:22px}.details-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.details-actions .primary-button,.details-actions .secondary-button{flex:1 1 180px}.primary-button:disabled{cursor:default;opacity:.58}.secondary-button{min-height:58px;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--deep);font-size:18px;font-weight:800}.library-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:32px;align-items:start}.history-section{margin-top:34px}.history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.history-card{display:grid;grid-template-columns:72px 1fr;gap:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--white)}.history-card .book-cover{width:72px;height:104px;border-radius:12px;object-fit:cover}.history-card .book-cover-placeholder>span{font-size:15px}.history-card strong,.history-card small{display:block}.history-card strong{color:var(--ink);line-height:1.25}.history-card small{color:var(--muted)}.history-card .book-category{margin-top:8px}.history-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:14px 0 0}.history-card dl div{min-width:0}.history-card dt{color:var(--storm);font-size:12px;font-weight:900}.history-card dd{margin:0;overflow:hidden;color:var(--ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.history-review{margin:12px 0 0;color:var(--muted);font-size:14px}.review-stack{display:grid;gap:16px}.review-card{display:grid;gap:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--white)}.review-card>button{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:14px;width:100%;border:0;background:transparent;color:var(--ink);text-align:left;padding:0}.review-card .book-cover{width:58px;height:72px;border-radius:10px;object-fit:cover}.review-card strong,.review-card small{display:block}.review-card small{color:var(--muted)}.review-card .book-category{margin-top:8px}.review-form{display:grid;gap:12px;width:100%;padding:16px;border:1px solid var(--line);border-radius:20px;background:#ffffffb8;text-align:left}.review-form p{margin:0 0 6px;color:var(--ink);font-weight:900}.star-row{display:flex;gap:4px}.star-row button{width:34px;height:34px;border:0;border-radius:10px;background:var(--soft);color:var(--storm);font-size:20px;line-height:1}.star-row .active{background:var(--deep);color:var(--white)}.review-form label{display:grid;gap:8px;color:var(--ink);font-weight:900}.review-form textarea{min-height:104px;resize:vertical;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);font:inherit;outline:none;padding:12px 14px}.review-form textarea::placeholder{color:var(--storm)}.form-error{color:#8b2d24;font-size:14px}.notice,.state-message{margin:18px 32px 0;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--muted);font-weight:800;padding:14px 16px}.screen .state-message{margin:0 0 18px}.notice-error{border-color:#8b2d2452;background:#8b2d2414;color:#8b2d24}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;margin:26px 0}.stats-row span{display:grid;min-height:72px;place-items:center;border-radius:16px;background:var(--soft);color:var(--muted);font-size:13px}.stats-row strong{color:var(--ink);font-size:20px}.bottom-nav{display:none}@media (max-width: 960px){.bookly-shell{grid-template-columns:1fr}.sidebar{display:none}.bottom-nav{position:sticky;top:0;z-index:20;display:flex;gap:4px;padding:8px 16px;background:#fffffff5;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.bottom-nav button{flex:1;min-height:40px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:14px;font-weight:900}.bottom-nav .active{background:var(--soft);color:var(--deep)}.home-layout{grid-template-columns:1fr}.preview-panel{display:none}}@media (max-width: 720px){.app{display:block;padding:0;background:var(--paper)}.start-page,.auth-layout,.bookly-shell{width:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}.start-page{align-content:center;padding:32px}.start-copy p,.start-copy span{font-size:17px}.start-copy h1{font-size:66px}.auth-layout{display:block;overflow-y:auto;background:var(--paper);scrollbar-width:none}.auth-layout::-webkit-scrollbar{display:none}.auth-intro{display:none}.auth-panel{min-height:100vh;align-content:center;padding:32px 24px}.screen{min-height:0}.home-screen,.search-screen,.library-screen,.details-screen{padding:24px 24px 56px}.feed-header{grid-template-columns:minmax(0,1fr) auto;margin:0;padding:40px 24px 28px;border-radius:0}.feed-header h1{font-size:26px}.profile-title{gap:6px}.start-logo-img{width:min(280px,75vw)}.auth-logo-img{width:min(200px,75%)}.sidebar-logo-img{width:75px}.profile-menu{gap:10px}.profile-title h2{font-size:18px}.section-heading{align-items:start}.section-heading h2{font-size:26px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.book-card strong{min-height:58px;font-size:18px}.book-card-copy strong{min-height:0}.page-header{padding-top:48px}.page-header h1{font-size:38px}.genre-row{flex-wrap:nowrap;margin:20px -24px 22px;padding:0 24px 4px;overflow-x:auto;scrollbar-width:none}.genre-row button{flex:0 0 auto}.result-list,.library-layout,.history-list{grid-template-columns:1fr}.history-card{grid-template-columns:64px 1fr}.history-card .book-cover{width:64px;height:94px}.details-layout{display:grid;justify-items:center;gap:22px;text-align:center}.details-cover{width:min(62%,230px);border-radius:22px}.details-copy h1{font-size:28px}.details-copy>p:not(.genre-label){font-size:18px}}
