:root{color-scheme:light;--navy:#141064;--blue:#4780ed;--blueLight:#eff4ff;--bg:#f6f7fb;--white:#fff;--text:#222842;--muted:#697186;--border:#e3e8f1;--green:#1e8b68;--red:#c34052;--gold:#b58328;--shadow:0 12px 36px rgba(29,38,76,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4780ed66;outline-offset:2px}.hidden{display:none!important}.muted{color:var(--muted)}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.ico{display:inline-flex;flex-shrink:0;width:18px;height:18px;align-items:center;justify-content:center;vertical-align:middle}.ico svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.shell{min-height:100svh;display:flex;flex-direction:column}.sitehead{background:#fff;border-bottom:1px solid var(--border)}.headinner{max-width:1250px;margin:auto;padding:12px 30px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:17px;min-width:0}.brandlogo{display:block;width:185px;max-height:84px;object-fit:contain;object-position:left}.brandline{height:44px;width:1px;background:#d8def0}.brandproduct{font-size:22px;line-height:1.1;font-weight:850;letter-spacing:.03em;color:var(--navy)}.brandproduct small{display:block;font-size:10px;letter-spacing:.19em;color:var(--blue);margin-top:6px}.headactions{display:flex;align-items:center;gap:14px}.privacy-chip{display:inline-flex;gap:8px;align-items:center;border:1px solid #d4e8e0;background:#f3fbf8;padding:7px 11px;color:#21785b;border-radius:22px;font-size:12px;font-weight:700;white-space:nowrap}.live-dot{height:7px;width:7px;background:#219568;border-radius:50%}.main{max-width:1250px;width:100%;margin:0 auto;flex:1;padding:35px 30px 60px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.14em;margin:0 0 9px}.hero h1{font-weight:820;color:var(--navy);letter-spacing:-.038em;font-size:clamp(27px,3.8vw,42px);margin:0 0 5px;line-height:1.2}.hero p:not(.eyebrow){margin:0;color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 15px;border-radius:11px;border:1px solid var(--border);background:#fff;color:var(--navy);font-size:13px;font-weight:730;white-space:nowrap;min-height:42px;transition:transform .14s ease,background-color .14s ease,box-shadow .14s ease}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 14px #1a3b7a12}.button-primary{background:var(--blue);border-color:var(--blue);color:#fff}.button-primary:hover:not(:disabled){background:#346de0}.button-light{background:#fff}.button-danger{background:#fff4f5;border-color:#f1d0d7;color:var(--red)}.button-sm{min-height:32px;padding:5px 9px}.bare{border:0;background:transparent;color:var(--navy);font-weight:680;padding:6px;text-align:left}.bare:hover{text-decoration:underline}.danger{color:var(--red)}.icon-only{display:grid;place-items:center;border-radius:9px;width:36px;height:36px}.icon-only:hover{background:var(--bg);text-decoration:none}.overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.38fr;gap:13px;margin-bottom:25px}.stat{min-height:119px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:15px;padding:18px;display:flex;gap:13px;align-items:center}.stat-icon{height:42px;width:42px;display:grid;place-items:center;flex-shrink:0;border-radius:12px}.stat-icon .ico{width:23px;height:23px}.stat-icon.blue{color:#3474db;background:#eff5ff}.stat-icon.violet{color:#6557bf;background:#f3f1ff}.stat-icon.green{color:var(--green);background:#e9f6f0}.stat-label{display:block;color:var(--muted);font-size:12px;font-weight:670}.stat strong{display:block;font-size:29px;line-height:1.18;color:var(--navy);letter-spacing:-.04em}.stat small{color:#81889b;font-size:11px}.goal-stat{display:block;padding:18px 20px}.goal-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:15px}.goal-head strong{font-size:23px}.progress-bg{height:8px;background:#eaf0fa;border-radius:100px;overflow:hidden}.progress-fill{display:block;height:100%;width:0;background:var(--blue);border-radius:100px;transition:width .35s}.goal-stat small{display:block;margin-top:8px}.workspace{border:1px solid var(--border);border-radius:18px;background:#fff;padding:0 23px 30px;box-shadow:var(--shadow);min-height:380px}.tabrow{display:flex;gap:18px;overflow-x:auto;border-bottom:1px solid var(--border);scrollbar-width:thin;white-space:nowrap}.tab{display:flex;align-items:center;gap:5px;background:transparent;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;padding:17px 5px 15px;color:#697188;font-weight:720;font-size:13px;flex-shrink:0}.tab.selected{color:var(--navy);border-color:var(--blue)}.tab.drop-target{background:#e9f1ff;color:var(--blue);border-color:var(--blue)}.tabcount{background:#eff3fa;padding:1px 7px;border-radius:9px;font-size:11px}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-top:23px}.searchbar{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:10px;padding:0 11px;flex:1;min-width:150px;color:#8590a2;background:#fbfcff}.searchbar:focus-within{border-color:var(--blue)}.searchbar input{border:0;background:transparent;outline:none;width:100%;min-width:0;padding:11px 0;color:var(--text);font-size:13px}.searchbar input:focus{outline:none}.filters{display:flex;gap:10px}.filters select{max-width:205px;border-radius:10px;border:1px solid var(--border);background:#fff;padding:9px 11px;color:var(--text);font-size:12px;cursor:pointer}.results-header{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:21px 0 14px;font-size:12px;font-weight:750;color:var(--text)}#dragHint{font-weight:450;font-size:11px}.bookgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:13px}.bookcard{border:1px solid var(--border);border-radius:14px;background:#fff;padding:15px;display:flex;flex-direction:column;gap:13px;transition:transform .16s,box-shadow .16s,border-color .16s;min-width:0}.bookcard:hover{box-shadow:0 12px 27px rgba(20,16,100,.08);border-color:#cedbf3;transform:translateY(-2px)}.bookcard.dragging{opacity:.45}.bookcard.highlight{outline:2px solid var(--blue)}.cardtop{display:flex;gap:12px;align-items:flex-start}.thumb{flex:none;width:71px;height:102px;background:linear-gradient(150deg,#e5eafa,#cbdcff);border:1px solid #d8e1f6;border-radius:6px 10px 10px 6px;box-shadow:3px 3px 0 #d7e1f4;overflow:hidden;display:grid;place-items:center;color:var(--navy);position:relative}.thumb:not(:has(img)):before{content:"";position:absolute;left:6px;top:6px;bottom:6px;border-left:2px solid #aabfe7}.thumb .ico{height:29px;width:29px}.thumb img{display:block;object-fit:cover;width:100%;height:100%}.cardinfo{min-width:0;flex:1}.booktitle{color:var(--navy);font-size:15px;line-height:1.3;font-weight:800;margin:2px 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.bookauthor{font-size:12px;color:#747d90;margin:0 0 9px;overflow-wrap:anywhere}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:50px;padding:4px 8px;font-size:10px;font-weight:800;white-space:nowrap}.pill.wishlist{background:#edf3ff;color:#2b67c8}.pill.reading{background:#f3efff;color:#6953ba}.pill.read{background:#e7f5ee;color:#21815c}.cardmeta{font-size:11px;color:#758096;display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-height:20px}.tag{background:#f5f7fb;border:1px solid #e9edf5;border-radius:8px;padding:3px 7px;font-size:10px;color:#647087}.cardprogress{margin-top:auto}.cardprogress .progress-bg{height:6px}.cardprogressline{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#67728a;margin-bottom:7px}.cardquote{font-size:12px;color:#647087;background:#f7f9fd;border-radius:9px;padding:9px 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:75px}.cardactions{margin-top:auto;border-top:1px solid var(--border);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.cardactions .button{min-height:34px;padding:5px 10px;font-size:11px}.cardactions .move{width:120px;max-width:55%;border:1px solid var(--border);border-radius:8px;padding:6px 7px;color:#51617c;font-size:11px;background:#fff}.empty{grid-column:1/-1;text-align:center;padding:45px 12px 52px;color:var(--muted)}.empty-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#eef4ff;color:var(--blue);margin:0 auto 12px}.empty-icon .ico{height:27px;width:27px}.empty h3{color:var(--navy);font-size:19px;margin:0 0 8px}.empty p{max-width:385px;margin:0 auto 19px;font-size:13px}.knowledge{display:grid;gap:14px;padding-top:18px}.knowledge-card{border:1px solid var(--border);border-radius:13px;padding:19px 20px}.knowledge-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:12px}.knowledge-head h3{font-size:17px;color:var(--navy);margin:0 0 3px}.knowledge-head p{margin:0;font-size:12px;color:var(--muted)}.knowledge-block{margin:10px 0}.knowledge-block strong{font-size:12px;color:var(--blue)}.knowledge-block p{font-size:13px;white-space:pre-wrap;margin:3px 0 0;overflow-wrap:anywhere}.statspanel{padding:23px 0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{border:1px solid var(--border);border-radius:15px;padding:20px;background:#fff}.panel h3{font-size:15px;color:var(--navy);margin:0 0 15px}.metricbig{font-size:37px;font-weight:800;line-height:1.2;color:var(--navy)}.stathelper{font-size:12px;color:var(--muted)}.baritem{margin:10px 0}.barlabel{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px;color:#4f5a75}.baritem .progress-bg{height:9px}.baritem .progress-fill{background:var(--blue)}.footer-inline{font-size:12px;color:#66728b;margin-top:12px}.foot{background:#fff;border-top:1px solid var(--border);padding:18px max(30px,calc((100vw - 1190px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:11px}.foot div:first-child{display:flex;flex-direction:column}.foot strong{font-size:12px;color:var(--navy)}.footright{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.footright .bare{font-size:11px;color:var(--blue)}.notice{display:flex;gap:12px;align-items:center;background:#ecf3fe;border:1px solid #cbdcfb;color:#345b92;padding:12px 14px;border-radius:11px;font-size:12px;margin-bottom:16px}.notice span:nth-child(2){flex:1}.notice.danger{background:#fff3f4;border-color:#f4c9ce;color:var(--red)}.modal-backdrop{position:fixed;inset:0;z-index:20;background:rgba(11,18,52,.54);display:flex;align-items:center;justify-content:center;padding:15px;backdrop-filter:blur(3px)}.modal{background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.20);width:min(970px,100%);max-height:min(94dvh,950px);display:flex;flex-direction:column;overflow:hidden}.modalhead{padding:19px 25px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--border)}.modalhead h2{margin:0;color:var(--navy);font-size:22px}.modalhead .eyebrow{font-size:10px;margin-bottom:4px}.modalbody{padding:24px;overflow-y:auto;overscroll-behavior:contain}.form-main{display:grid;grid-template-columns:150px 1fr;gap:24px}.cover-edit{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}.cover-preview{width:145px;height:202px;border-radius:8px 13px 13px 8px;background:#f1f4fb;border:1px dashed #c6d2e7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#7990b9;overflow:hidden}.cover-preview .ico{width:40px;height:40px}.cover-preview img{width:100%;height:100%;object-fit:cover}.cover-preview small,.cover-edit>small{font-size:10px;color:#818a9e;max-width:145px}.cover-edit .button{font-size:11px;padding:7px;max-width:100%}.cover-edit .bare{font-size:11px}.formfields{min-width:0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#505b73;font-weight:750;min-width:0}.field em{color:var(--red)}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #dfe5ef;border-radius:9px;padding:9px 11px;font-size:13px;font-weight:450;color:var(--text);background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #4780ed20}.field textarea{resize:vertical;min-height:62px}.field-stack{display:grid;gap:14px;padding-top:15px;border-top:1px solid var(--border);margin-top:8px}.form-error{color:var(--red);font-size:12px}.formactions{border-top:1px solid var(--border);margin-top:21px;padding-top:18px;display:flex;justify-content:flex-end;gap:10px}.settings-modal{width:min(690px,100%)}.settings-body{padding:6px 24px 22px}.setting-block{border-bottom:1px solid var(--border);padding:19px 0}.setting-block:last-child{border:0}.setting-block h3{font-size:15px;color:var(--navy);margin:0 0 6px}.setting-block p{font-size:12px;color:var(--muted);margin:0 0 12px;line-height:1.65}.setting-block .button{margin:3px 5px 3px 0}.filelabel{cursor:pointer}.setting-row{display:flex;align-items:end;gap:10px}.setting-row input{max-width:110px}.mapping{margin-top:14px;padding:12px;border:1px solid var(--border);background:#f9fbff;border-radius:12px}.mapping h4{margin:0 0 7px;color:var(--navy);font-size:13px}.mapping p{margin:0 0 10px}.mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mapping-grid .field select{background:#fff}.mapping-actions{display:flex;justify-content:flex-end;margin-top:12px}.confirm-backdrop{z-index:30}.confirm-modal{width:min(420px,100%);padding:25px}.confirm-modal h2{font-size:20px;margin:0 0 8px;color:var(--navy)}.confirm-modal p{margin:0 0 24px;color:#606c83;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.confirm-actions{display:flex;gap:8px;justify-content:flex-end}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,30px);padding:11px 17px;color:#fff;background:#202650;border-radius:11px;font-size:12px;box-shadow:0 8px 35px #17245333;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;z-index:40;max-width:calc(100vw - 24px)}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}@media(max-width:1050px){.overview{grid-template-columns:repeat(3,1fr)}.goal-stat{grid-column:1/-1}.brandlogo{width:145px}.brandproduct{font-size:18px}.toolbar{flex-wrap:wrap}.filters{flex:1}.filters select{flex:1;max-width:unset}}@media(max-width:680px){.headinner{padding:10px 13px}.brand{gap:8px}.brandlogo{width:86px}.brandline{height:34px}.brandproduct{font-size:15px}.brandproduct small{font-size:8px;letter-spacing:.09em}.headactions{gap:5px}.hide-xs{display:none}.privacy-chip{font-size:10px;padding:6px 8px}.main{padding:23px 13px 40px}.hero{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:19px}.hero h1{font-size:29px}.hero p:not(.eyebrow){font-size:13px}.hero-actions,.hero-actions .button{width:100%}.overview{grid-template-columns:1fr 1fr;gap:9px}.stat{min-height:90px;padding:12px;gap:9px}.stat-icon{width:32px;height:32px;border-radius:8px}.stat-icon .ico{width:18px;height:18px}.stat strong{font-size:24px}.stat small{font-size:10px}.stat-label{font-size:10px}.goal-stat{grid-column:2/3;grid-row:2;padding:11px}.goal-head{display:block;margin-bottom:9px}.goal-head strong{font-size:18px}.goal-stat small{font-size:10px}.workspace{padding:0 13px 19px}.tabrow{gap:10px;margin:0 -13px;padding:0 11px}.tab{font-size:12px;padding:15px 4px 13px}.toolbar{margin-top:16px}.searchbar{flex-basis:100%}.filters{width:100%}.filters select{width:50%;min-width:0;font-size:11px;padding:9px 6px}.results-header{padding:14px 0}.bookgrid{grid-template-columns:1fr;gap:11px}#dragHint{display:none}.bookcard{padding:14px}.foot{padding:20px 15px}.modal-backdrop{padding:0;align-items:stretch}.modal{max-height:100dvh;height:100%;border-radius:0}.modalhead{padding:14px 17px}.modalbody{padding:15px 16px 40px}.form-main{display:block}.cover-edit{display:grid;grid-template-columns:100px 1fr;align-items:center;text-align:left;margin-bottom:15px;column-gap:14px}.cover-preview{grid-row:span 3;width:100px;height:137px}.cover-edit>small{max-width:100%}.cover-edit .button{align-self:end}.field-row{gap:8px}.field-row:has(.field-wide){grid-template-columns:1fr}.field-row .field-wide{grid-column:1}.field{font-size:11px}.field input,.field select,.field textarea{font-size:13px}.formactions{position:sticky;bottom:-40px;margin:18px -16px -40px;padding:12px 16px;background:#fff;z-index:1}.statspanel{grid-template-columns:1fr}.settings-body{padding:4px 16px 30px}.mapping-grid{grid-template-columns:1fr}}@media(max-width:390px){.privacy-chip{display:none}.brandlogo{width:92px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{.sitehead,.hero-actions,.toolbar,.tabrow,.foot,.modal-backdrop,.cardactions,.toast,.notice{display:none!important}.workspace{border:0}.bookcard{break-inside:avoid}.main{padding:5px}.statspanel,.overview{break-inside:avoid}}
