.cg-page{--cg-ink: oklch(.21 .018 156);--cg-muted: oklch(.48 .018 156);--cg-faint: oklch(.5 .016 156);--cg-line: oklch(.87 .015 103);--cg-paper: oklch(1 0 0);--cg-quiet: oklch(1 0 0);--cg-accent: oklch(.39 .075 155);--cg-accent-hover: oklch(.33 .073 155);--cg-accent-soft: oklch(.945 .035 151);--cg-danger: oklch(.52 .18 28);min-height:80vh;padding:132px 24px 112px;color:var(--cg-ink);background:var(--cg-paper);font-family:Inter,ui-sans-serif,system-ui,sans-serif}.cg-page *,.cg-page *:before,.cg-page *:after{box-sizing:border-box}.cg-page button,.cg-page input,.cg-page select{font:inherit}.cg-page button,.cg-page summary,.cg-page select{cursor:pointer}.cg-page :focus-visible{outline:3px solid oklch(.57 .11 154 / .32);outline-offset:3px}.cg-shell{width:min(100%,1180px);margin-inline:auto}.cg-hero{padding:8px 0 48px}.cg-back-link{display:inline-flex;margin-bottom:32px;color:var(--cg-muted);font-size:14px;font-weight:650;text-decoration:none}.cg-back-link:before{content:"←";margin-right:8px}.cg-back-link:hover{color:var(--cg-accent)}.cg-hero-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,410px);align-items:end;gap:48px}.cg-hero-copy>div>p,.cg-guidance>div>p{margin:0 0 11px;color:var(--cg-accent);font-size:13px;font-weight:700}.cg-hero h1{max-width:800px;margin:0;color:var(--cg-ink);font-size:clamp(3rem,6vw,5.75rem);font-weight:660;letter-spacing:-.055em;line-height:.92}.cg-hero-copy>p{max-width:36ch;margin:0 0 5px;color:var(--cg-muted);font-size:clamp(1.05rem,2vw,1.3rem);line-height:1.5}.cg-style-picker{display:flex;min-height:100px;padding:22px 0;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--cg-line);border-bottom:1px solid var(--cg-line)}.cg-style-picker>div:first-child,.cg-section-heading,.cg-bibliography-panel>header>div:first-child{display:flex;min-width:0;align-items:flex-start;gap:13px}.cg-style-picker>div:first-child>span,.cg-section-heading>span,.cg-bibliography-panel>header>div:first-child>span{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;border-radius:50%;color:#f9f9f4;background:var(--cg-accent);font-size:13px;font-weight:750}.cg-style-picker h2,.cg-section-heading h2,.cg-bibliography-panel h2{margin:0;color:var(--cg-ink);font-size:18px;font-weight:700;letter-spacing:-.015em;line-height:1.3}.cg-style-picker>div:first-child p,.cg-section-heading p,.cg-bibliography-panel>header p{margin:3px 0 0;color:var(--cg-muted);font-size:14px;line-height:1.4}.cg-style-options{display:flex;padding:4px;gap:3px;border:1px solid var(--cg-line);border-radius:10px;background:var(--cg-quiet)}.cg-style-options button{min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:7px;color:var(--cg-muted);background:transparent;font-size:14px;font-weight:700;transition:color .16s ease,background-color .16s ease,border-color .16s ease}.cg-style-options button:hover{color:var(--cg-ink)}.cg-style-options button.is-selected{color:var(--cg-ink);background:var(--cg-paper);border-color:var(--cg-line)}.cg-workspace{display:grid;padding-top:52px;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);align-items:start;gap:clamp(38px,6vw,76px)}.cg-source-panel{min-width:0}.cg-section-heading{margin-bottom:25px}.cg-lookup{padding:20px;border:1.5px solid oklch(.8 .035 151);border-radius:12px;background:var(--cg-paper)}.cg-lookup>label{display:block;margin-bottom:9px;color:var(--cg-ink);font-size:15px;font-weight:700}.cg-lookup>div{display:grid;min-height:50px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;border:2px solid oklch(.73 .032 151);border-radius:9px;background:var(--cg-paper);overflow:hidden}.cg-lookup>div:focus-within{border-color:var(--cg-accent)}.cg-lookup>div>svg{width:19px;height:19px;margin-left:14px;color:var(--cg-accent)}.cg-lookup input{min-width:0;height:48px;padding:0 12px;border:0;outline:0;color:var(--cg-ink);background:transparent;font-size:17px}.cg-lookup input::placeholder,.cg-field input::placeholder,.cg-author-row input::placeholder{color:#7e8a82}.cg-lookup button{align-self:stretch;min-width:116px;padding-inline:16px;border:0;color:#f9f9f4;background:var(--cg-accent);font-size:14px;font-weight:750}.cg-lookup button:hover:not(:disabled){background:var(--cg-accent-hover)}.cg-lookup button:disabled{cursor:wait;opacity:.7}.cg-lookup>p{min-height:19px;margin:9px 0 0;color:var(--cg-muted);font-size:13px;line-height:1.45}.cg-lookup>p.is-error,.cg-form-error{color:var(--cg-danger)}.cg-lookup>p.is-success{color:var(--cg-accent);font-weight:650}.cg-or{display:flex;margin:27px 0 23px;align-items:center;gap:13px;color:var(--cg-faint);font-size:13px;font-weight:650}.cg-or:before,.cg-or:after{height:1px;flex:1;background:var(--cg-line);content:""}.cg-source-form{display:grid;gap:21px}.cg-source-types,.cg-authors{min-width:0;margin:0;padding:0;border:0}.cg-source-types legend,.cg-authors legend{margin-bottom:9px;color:var(--cg-ink);font-size:15px;font-weight:700}.cg-source-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.cg-source-types button{min-height:46px;padding:7px 8px;border:1.5px solid var(--cg-line);border-radius:8px;color:var(--cg-muted);background:var(--cg-paper);font-size:14px;font-weight:700;line-height:1.25}.cg-source-types button:hover{border-color:#84a58d;color:var(--cg-ink)}.cg-source-types button.is-selected{border-color:var(--cg-accent);color:var(--cg-accent);background:var(--cg-accent-soft)}.cg-field{display:grid;min-width:0;gap:7px}.cg-field>span,.cg-author-row label>span{color:var(--cg-ink);font-size:15px;font-weight:700}.cg-field b{color:var(--cg-danger);font-weight:700}.cg-field input,.cg-author-row input{width:100%;min-width:0;height:48px;padding:0 13px;border:2px solid var(--cg-line);border-radius:8px;outline:0;color:var(--cg-ink);background:var(--cg-paper);font-size:17px;transition:border-color .16s ease}.cg-field input:focus,.cg-author-row input:focus{border-color:var(--cg-accent)}.cg-field small,.cg-authors>p{margin:-1px 0 0;color:var(--cg-muted);font-size:13px;line-height:1.45}.cg-authors>p{margin-bottom:10px}.cg-author-list{display:grid;gap:9px}.cg-author-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) auto;align-items:end;gap:8px}.cg-author-row>label{display:grid;gap:7px}.cg-icon-button{display:grid;width:48px;height:48px;place-items:center;border:1px solid var(--cg-line);border-radius:8px;color:var(--cg-muted);background:var(--cg-paper)}.cg-icon-button svg{width:17px;height:17px}.cg-icon-button:hover{color:var(--cg-danger);border-color:#e89e94}.cg-text-button{display:inline-flex;min-height:44px;margin-top:7px;padding:0;align-items:center;gap:7px;border:0;color:var(--cg-accent);background:transparent;font-size:14px;font-weight:700}.cg-text-button svg{width:15px;height:15px}.cg-more-fields{border-top:1px solid var(--cg-line);border-bottom:1px solid var(--cg-line)}.cg-more-fields summary{display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:20px;color:var(--cg-ink);font-size:15px;font-weight:700;list-style:none}.cg-more-fields summary::-webkit-details-marker{display:none}.cg-more-fields summary svg{width:17px;height:17px;color:var(--cg-muted);transition:transform .18s cubic-bezier(.16,1,.3,1)}.cg-more-fields[open] summary svg{transform:rotate(180deg)}.cg-more-fields-grid{display:grid;padding:4px 0 22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.cg-more-fields-grid .cg-field:has(input[type=url]){grid-column:1 / -1}.cg-form-error{margin:-7px 0 0;font-size:13px;font-weight:650}.cg-form-actions,.cg-bibliography-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.cg-form-actions>span{margin-left:auto;color:var(--cg-faint);font-size:13px}.cg-primary-button,.cg-secondary-button{display:inline-flex;min-height:45px;padding:0 17px;align-items:center;justify-content:center;gap:8px;border-radius:8px;font-size:14px;font-weight:750}.cg-primary-button{border:1px solid var(--cg-accent);color:#f9f9f4;background:var(--cg-accent)}.cg-primary-button:hover{border-color:var(--cg-accent-hover);background:var(--cg-accent-hover)}.cg-secondary-button{border:1.5px solid var(--cg-line);color:var(--cg-ink);background:var(--cg-paper)}.cg-secondary-button:hover{border-color:#8ca693;color:var(--cg-accent)}.cg-primary-button svg,.cg-secondary-button svg{width:16px;height:16px}.cg-bibliography-panel{position:sticky;top:108px;min-width:0;max-height:calc(100vh - 126px);padding:24px;border:1px solid var(--cg-line);border-radius:13px;background:var(--cg-quiet);overflow-y:auto;scrollbar-gutter:stable}.cg-bibliography-panel>header{display:flex;padding-bottom:20px;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--cg-line)}.cg-bibliography-panel h2:focus{outline:none}.cg-sort{display:grid;gap:4px}.cg-sort>span{color:var(--cg-faint);font-size:12px;font-weight:700}.cg-sort select{height:44px;padding:0 28px 0 9px;border:2px solid var(--cg-line);border-radius:7px;color:var(--cg-ink);background:var(--cg-paper);font-size:14px;font-weight:650}.cg-empty-state{display:grid;min-height:360px;padding:42px 24px;place-items:center;align-content:center;text-align:center}.cg-empty-state>div{position:relative;width:88px;height:78px;margin-bottom:18px;border:1px solid oklch(.77 .045 151);border-radius:9px;background:var(--cg-paper);transform:rotate(-3deg)}.cg-empty-state>div span{position:absolute;top:5px;left:15px;color:var(--cg-accent);font-family:Georgia,serif;font-size:42px;line-height:1}.cg-empty-state>div i,.cg-empty-state>div i:before,.cg-empty-state>div i:after{position:absolute;right:12px;left:14px;height:1px;background:var(--cg-line);content:""}.cg-empty-state>div i{bottom:17px}.cg-empty-state>div i:before{right:0;left:0;bottom:10px}.cg-empty-state>div i:after{right:22px;left:0;bottom:20px}.cg-empty-state h3{margin:0 0 7px;font-size:18px;letter-spacing:-.015em}.cg-empty-state p{max-width:32ch;margin:0;color:var(--cg-muted);font-size:14px;line-height:1.55}.cg-citation-list{margin:0;padding:0;list-style:none}.cg-citation-list>li{padding:23px 0;border-bottom:1px solid var(--cg-line)}.cg-citation-main{display:flex;align-items:flex-start;gap:7px}.cg-citation-main>p{margin:0;padding-left:24px;color:var(--cg-ink);font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.7;text-indent:-24px;overflow-wrap:anywhere}.cg-citation-number+p{padding-left:0;text-indent:0}.cg-citation-main cite{font-style:italic}.cg-citation-number{flex:0 0 auto;padding-top:2px;font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.7}.cg-inline-citation{display:flex;margin-top:13px;align-items:center;gap:8px}.cg-inline-citation>span{color:var(--cg-faint);font-size:12px;font-weight:750}.cg-inline-citation>button{display:inline-flex;min-height:36px;padding:4px 10px;align-items:center;gap:6px;border:1px solid oklch(.81 .026 151);border-radius:6px;color:var(--cg-accent);background:var(--cg-accent-soft);font-family:Georgia,Times New Roman,serif;font-size:13px;text-align:left}.cg-inline-citation>button svg{width:13px;height:13px;flex:0 0 auto}.cg-citation-actions{display:flex;margin-top:11px;gap:15px}.cg-citation-actions button,.cg-secondary-actions>button,.cg-clear-confirm button{min-height:36px;padding:0;border:0;color:var(--cg-muted);background:transparent;font-size:13px;font-weight:700}.cg-citation-actions button:hover,.cg-secondary-actions>button:hover,.cg-clear-confirm button:hover{color:var(--cg-accent);text-decoration:underline;text-underline-offset:3px}.cg-citation-actions button:last-child:hover,.cg-secondary-actions>button:last-child:hover,.cg-clear-confirm button:first-of-type:hover{color:var(--cg-danger)}.cg-bibliography-actions{padding-top:20px}.cg-bibliography-actions .cg-primary-button{flex:1 1 190px}.cg-bibliography-actions .cg-secondary-button{padding-inline:12px}.cg-secondary-actions{display:flex;min-height:43px;padding-top:8px;align-items:center;justify-content:space-between;gap:12px}.cg-secondary-actions>button{display:inline-flex;align-items:center;gap:5px}.cg-secondary-actions>button svg{width:13px;height:13px}.cg-clear-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--cg-muted);font-size:13px;font-weight:650}.cg-copy-status{min-height:16px;margin:0;color:var(--cg-accent);font-size:13px}.cg-copy-status.is-error{color:var(--cg-danger)}.cg-guidance{display:grid;margin-top:104px;padding:44px 0;grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr);gap:64px;border-top:1px solid var(--cg-line);border-bottom:1px solid var(--cg-line)}.cg-guidance h2,.cg-faq h2{margin:0;color:var(--cg-ink);font-size:clamp(1.8rem,3vw,2.5rem);font-weight:650;letter-spacing:-.04em;line-height:1.08}.cg-guidance ol{display:grid;margin:0;padding:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;list-style:none}.cg-guidance li{display:grid;align-content:start;gap:14px}.cg-guidance li>span{display:grid;width:30px;height:30px;place-items:center;border:1px solid oklch(.75 .04 153);border-radius:50%;color:var(--cg-accent);font-size:13px;font-weight:750}.cg-guidance li p{margin:0;color:var(--cg-muted);font-size:14px;line-height:1.55}.cg-guidance li strong{display:block;margin-bottom:4px;color:var(--cg-ink);font-size:15px}.cg-faq{display:grid;margin-top:80px;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);column-gap:70px}.cg-faq h2{grid-row:1 / span 3}.cg-faq details{border-top:1px solid var(--cg-line)}.cg-faq details:last-child{border-bottom:1px solid var(--cg-line)}.cg-faq summary{display:flex;min-height:58px;padding:12px 0;align-items:center;justify-content:space-between;gap:20px;color:var(--cg-ink);font-size:15px;font-weight:700;list-style:none}.cg-faq summary::-webkit-details-marker{display:none}.cg-faq summary svg{width:17px;height:17px;flex:0 0 auto;color:var(--cg-muted);transition:transform .18s cubic-bezier(.16,1,.3,1)}.cg-faq details[open] summary svg{transform:rotate(180deg)}.cg-faq details p{max-width:68ch;margin:-2px 0 20px;color:var(--cg-muted);font-size:14px;line-height:1.65}@media(max-width:980px){.cg-style-picker{align-items:flex-start;flex-direction:column}.cg-style-options{width:100%}.cg-style-options button{flex:1}.cg-workspace{grid-template-columns:minmax(0,1fr)}.cg-bibliography-panel{position:static;max-height:none}.cg-guidance,.cg-faq{grid-template-columns:minmax(0,1fr);gap:30px}.cg-faq h2{grid-row:auto;margin-bottom:12px}}@media(max-width:680px){.cg-page{padding:112px 16px 80px}.cg-hero{padding-bottom:35px}.cg-back-link{margin-bottom:24px}.cg-hero-copy{grid-template-columns:1fr;gap:22px}.cg-hero h1{font-size:clamp(2.8rem,15vw,4.4rem)}.cg-style-options{display:grid;grid-template-columns:repeat(3,1fr)}.cg-style-options button{padding-inline:7px}.cg-workspace{padding-top:38px;gap:48px}.cg-lookup{padding:15px}.cg-lookup>div{grid-template-columns:auto minmax(0,1fr);overflow:visible;background:transparent;border:0}.cg-lookup>div>svg{position:absolute;margin-left:13px}.cg-lookup input{height:50px;padding-left:42px;grid-column:1 / -1;border:2px solid oklch(.73 .032 151);border-radius:8px;background:var(--cg-paper)}.cg-lookup button{min-height:45px;margin-top:8px;grid-column:1 / -1;border-radius:8px}.cg-source-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-author-row,.cg-more-fields-grid{grid-template-columns:1fr}.cg-icon-button{width:100%;height:44px}.cg-form-actions>span{width:100%;margin-left:0}.cg-bibliography-panel{padding:20px 16px}.cg-bibliography-panel>header{align-items:flex-start;flex-direction:column}.cg-sort,.cg-sort select{width:100%}.cg-bibliography-actions .cg-primary-button,.cg-bibliography-actions .cg-secondary-button{width:100%;flex:1 1 100%}.cg-secondary-actions{align-items:flex-start;flex-direction:column}.cg-guidance{margin-top:70px}.cg-guidance ol{grid-template-columns:1fr}.cg-guidance li{grid-template-columns:auto 1fr}.cg-faq{margin-top:60px}}body:has(.cg-page) .bookify-footer-watermark{display:none}@media(prefers-reduced-motion:reduce){.cg-page *,.cg-page *:before,.cg-page *:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
