@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{--paper:#f8f7f2;--ink:#2f4036;--muted:#7b847a;--green:#42694b;--line:#e6e8df;--light:#ecf0e5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans KR',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b6bb83;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #77997b;outline-offset:2px}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#fdfcf8;border-right:1px solid var(--line);padding:38px 21px 20px;display:flex;flex-direction:column}.brand{font-size:25px;font-weight:700;letter-spacing:-1.3px;padding:0 15px;position:relative}.brand-icon{font-size:32px;color:var(--green);margin-right:5px}.brand-en{display:block;font-size:9px;letter-spacing:3px;margin:2px 0 0 43px;color:#83907d}.side-label{font-size:11px;color:#969c91;margin:48px 14px 16px}.nav{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 15px;border-radius:8px;margin:3px 0;font-size:13px;color:#6d776b}.nav>span{font-size:21px;width:20px;text-align:center}.nav.active{color:#3d6644;background:#eaf0e5;font-weight:600}.nav b{margin-left:auto;background:#dbe5d4;padding:2px 8px;border-radius:4px;font-size:11px}.nav:hover{background:#eff1e9}.side-divider{height:1px;background:var(--line);margin:24px 14px 12px}.side-bottom{margin-top:auto;background:#f1f3e9;padding:21px 16px;border-radius:10px}.little-tree{font-size:40px;color:#79936c;margin-bottom:10px}.side-bottom strong{font-size:12px}.side-bottom p{font-size:10px;color:var(--muted);line-height:1.8}.text-btn{font-size:11px;font-weight:600;color:var(--green);padding:10px 0 0}.profile{display:flex;gap:10px;align-items:center;margin:24px 10px 0}.profile>span{background:#e6eadb;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:12px}.profile strong{display:block;font-size:11px}.profile small{display:block;font-size:9px;color:var(--muted);margin-top:4px}main{margin-left:242px;padding:0 44px;max-width:1680px}header{height:86px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:11px;color:#969c92}.breadcrumb span{margin:0 14px;color:#c3c8bc}.breadcrumb strong{font-weight:500;color:#586551}.header-right{display:flex;gap:22px;align-items:center}.save-indicator{font-size:10px;color:#82927c}.round{width:26px;height:26px;border:1px solid #d8ded0;border-radius:50%;color:#829078}.hero{height:365px;background:#e9edde;border:1px solid #e3e8d8;border-radius:15px;overflow:hidden;display:grid;grid-template-columns:1.05fr 1fr;position:relative}.hero-text{padding:39px 40px;position:relative;z-index:1}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2px;color:#849077}.hero h1{font-family:'Gowun Batang',serif;font-size:38px;line-height:1.4;letter-spacing:-1.4px;font-weight:700;margin:16px 0 13px}.spark{font-size:32px;color:#9baf87;margin-left:16px}.hero p{font-size:12px;color:#71806b;line-height:1.9;margin-bottom:21px}.primary{background:var(--green);color:white;padding:13px 20px;border-radius:7px;font-size:12px;font-weight:500;transition:background .2s}.primary:hover{background:#34573c}.hero-note{display:block;font-size:9px;color:#95a18a;margin-top:12px}.hero-art{position:relative;overflow:hidden}.hero-art:before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#e9edde,transparent 22%)}.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center 55%}.art-note{position:absolute;bottom:20px;right:22px;font-family:'Gowun Batang',serif;color:white;font-size:11px;z-index:2;text-shadow:0 1px 7px #193a2b}.shelf{margin-top:40px}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{font-family:'Gowun Batang',serif;font-size:25px;letter-spacing:-.5px;margin:8px 0 0}.section-head h2 span{font-family:'Noto Sans KR',sans-serif;font-size:12px;color:#929d85;margin-left:8px}.secondary{border:1px solid #dce2d4;background:#fcfcf7;border-radius:7px;padding:10px 15px;font-size:11px;color:#65735d}.secondary:hover{background:#edf1e7}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0}.tabs{display:flex;gap:5px}.tab{padding:8px 17px;font-size:11px;color:#8a9383;border-radius:6px}.tab.selected{background:#e6ebdf;color:#4e6847;font-weight:600}.tools{display:flex;gap:12px;align-items:center}.search{display:flex;align-items:center;background:#fdfcf8;border:1px solid var(--line);border-radius:6px;padding:5px 10px;gap:6px}.search span{font-size:22px;color:#8a9681}.search input{border:0;background:none;width:180px;font-size:10px;padding:5px}.tools select{font-size:10px;color:#7a8672;border:0;background:transparent;padding:7px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.card{background:#fdfcf9;border:1px solid #e4e7dc;border-radius:10px;overflow:hidden;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 9px 25px #2c3c3110}.card-art{height:255px;position:relative;overflow:hidden;cursor:pointer}.card-art img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.card:hover .card-art img{transform:scale(1.025)}.card-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#18301b05,#15302005 35%,#17372788)}.book-label{position:absolute;z-index:1;left:23px;bottom:23px;right:23px;color:#fff;text-shadow:0 1px 4px #233c2860}.book-label small{font-size:8px;letter-spacing:3px}.book-label h3{font-family:'Gowun Batang',serif;font-size:25px;margin:10px 0 0;font-weight:700;line-height:1.5;max-width:90%;word-break:keep-all}.fav{position:absolute;top:13px;right:13px;z-index:2;background:#fffdf7db;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;font-size:19px;color:#5f7957}.fav.on{color:#bd7969}.card-body{padding:19px 20px 14px}.card-top{display:flex;justify-content:space-between;align-items:center}.badge{font-size:9px;padding:4px 8px;border-radius:4px;background:#eaf1e3;color:#63804f}.badge.draft{background:#f4eddb;color:#a28c51}.tags{font-size:9px;color:#9a9e92}.card-title{font-size:14px;margin:12px 0 7px;font-weight:600;cursor:pointer}.excerpt{font-size:11px;color:#8c9385;line-height:1.8;height:39px;overflow:hidden;margin:0}.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0e6;margin-top:15px;padding-top:12px}.date{font-size:9px;color:#a0a697}.card-actions{display:flex;gap:12px}.card-actions button{font-size:10px;color:#7a8b6e;padding:3px}.card-actions button:hover{text-decoration:underline}.empty{text-align:center;padding:60px 15px}.empty>span{font-size:50px;color:#8f9e7e}.empty p{color:var(--muted)}[hidden]{display:none!important}footer{border-top:1px solid var(--line);margin-top:38px;padding:24px 0;display:flex;align-items:center;gap:17px;color:#9a9f92;font-size:9px}footer>span:first-child{font-size:12px;color:#7b8a70}footer>span:last-child{margin-left:auto;font-size:8px;letter-spacing:2px}dialog{border:1px solid #e4e8dc;border-radius:15px;padding:26px;background:#fafbf5;color:var(--ink);max-height:92vh;width:min(920px,94vw);box-shadow:0 30px 90px #17241b33}dialog::backdrop{background:#1e322866;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.modal-head h2{font-family:'Gowun Batang',serif;font-size:26px;margin:7px 0}.close{font-size:28px;color:#7e8b76;width:35px;height:35px}.editor-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:28px}label{display:block;font-size:11px;font-weight:500}label input,label textarea,label select{display:block;margin-top:8px;margin-bottom:17px;width:100%;border:1px solid #dce2d5;border-radius:6px;background:#fffefb;padding:11px;color:#445640;font-size:12px}textarea{resize:vertical;line-height:1.9}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.generate-btn{background:#e5eddd;border:1px solid #cedac2;color:#527245;border-radius:7px;width:100%;padding:12px;font-size:12px}.hint{font-size:10px;color:#8a9580;line-height:1.8;margin:9px 0 20px}.word-count{text-align:right;align-self:center;font-size:11px;color:#9ba58e}.cover-panel{background:#eff2e8;padding:20px;border-radius:10px;align-self:start}.panel-label{font-size:11px;color:#728566;margin-bottom:14px}.cover-preview{height:350px;position:relative;border-radius:5px;overflow:hidden;box-shadow:3px 6px 15px #40533525;margin-bottom:20px}.cover-preview img{height:100%;width:100%;object-fit:cover}.cover-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(#1d382133,transparent 35%,#0f26155c)}.cover-copy{position:absolute;z-index:1;inset:28px 22px;color:white;text-align:center;text-shadow:0 1px 5px #24402580;display:flex;flex-direction:column;align-items:center}.cover-copy small{font-size:9px;letter-spacing:2px}.cover-copy h3{font-family:'Gowun Batang',serif;font-size:30px;line-height:1.5;word-break:keep-all;margin:14px 0}.cover-copy span{margin-top:auto;font-size:10px;letter-spacing:3px}.full{width:100%;margin-bottom:8px}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid #e1e7d8;padding-top:19px;margin-top:20px}.modal-footer>span{margin-right:auto;font-size:10px;color:#8c9682}#reader{width:min(760px,94vw)}.read-meta{font-size:11px;color:#87967a;margin-bottom:20px}.opening-art{width:100%;max-height:360px;object-fit:cover;border-radius:7px}.opening-label{text-align:center;color:#929d86;font-size:10px;margin:12px 0 30px}.story-body{font-family:'Gowun Batang',serif;font-size:18px;line-height:2.1;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 12px}.reader-actions{display:flex;justify-content:center;gap:10px;margin-top:35px;padding-top:20px;border-top:1px solid var(--line)}#confirm{max-width:430px}.danger{background:#a96756;color:white;padding:11px 18px;border-radius:6px;font-size:12px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#314d36;color:white;padding:13px 24px;z-index:10;max-width:90vw;border-radius:8px;font-size:12px;box-shadow:0 5px 20px #213e2722;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}button:disabled{opacity:.5;cursor:wait}
@media(min-width:1450px){main{padding:0 60px}.hero{height:400px}.hero-text{padding:44px 48px}.hero h1{font-size:43px}.card-art{height:295px}}
@media(max-width:1100px){.sidebar{width:205px;padding:30px 14px}.brand{font-size:23px}main{margin-left:205px;padding:0 27px}.hero-text{padding:32px 25px}.hero h1{font-size:32px}.hero p{font-size:11px}.cards{gap:16px}.card-art{height:225px}.book-label h3{font-size:21px}.hero{height:340px}.search input{width:140px}.hero-note{font-size:8px}}
@media(max-width:800px){.sidebar{position:static;width:100%;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:23px;padding:0}.brand-en{display:inline;margin-left:14px;font-size:8px;vertical-align:middle}.side-label,.side-divider,.side-bottom,.profile{display:none}.sidebar nav{display:flex;margin-top:18px;gap:5px}.nav{padding:9px;font-size:10px;gap:6px;white-space:nowrap}.nav>span{font-size:16px}.sidebar>.nav{display:inline-flex;width:auto;margin-top:10px;padding:4px 9px;font-size:10px}.nav b{display:none}main{margin:0;padding:0 22px}header{height:60px}.hero{height:325px;grid-template-columns:1.2fr 1fr}.hero-text{padding:26px 23px}.hero h1{font-size:30px}.hero p{font-size:10px}.hero-note{display:none}.art-note{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{flex-wrap:wrap}.tools{flex:1;justify-content:flex-end}.shelf{margin-top:30px}.editor-grid{grid-template-columns:1fr}.cover-panel{display:grid;grid-template-columns:1fr 1fr;gap:15px}.cover-panel .panel-label{grid-column:1/-1}.cover-preview{grid-row:2/7;height:290px}.cover-panel .hint{margin-bottom:0}.cover-panel label{align-self:start}footer>span:last-child{display:none}}
@media(max-width:480px){main{padding:0 16px}.sidebar{padding:14px 16px}.brand-en{font-size:7px;letter-spacing:2px}.sidebar nav{gap:0}.nav{font-size:9px;padding:8px 6px}.hero{grid-template-columns:1fr;height:370px}.hero-text{padding:26px 23px;width:75%}.hero-art{position:absolute;inset:0 0 0 30%;opacity:.4}.hero-art:before{background:linear-gradient(90deg,#e9edde,transparent)}.hero h1{font-size:32px}.hero p{color:#52654d;font-size:11px}.hero .eyebrow{font-size:7px}.hero .primary{margin-top:12px}.section-head h2{font-size:23px}.section-head .secondary{font-size:10px;padding:9px 11px}.cards{gap:12px}.card-art{height:210px}.book-label{left:14px;right:14px;bottom:17px}.book-label h3{font-size:19px}.card-body{padding:14px 12px}.card-title{font-size:12px}.tags{font-size:8px}.excerpt{font-size:10px}.card-actions{gap:9px}.card-actions button{font-size:9px}.toolbar{gap:13px}.tools{width:100%;justify-content:space-between}.search{flex:1}.search input{width:100%}.tabs{width:100%}dialog{padding:18px}.cover-panel{padding:13px;gap:11px}.cover-preview{height:240px}.cover-copy{inset:20px 10px}.cover-copy h3{font-size:24px}.modal-footer{flex-wrap:wrap}.modal-footer>span{width:100%;margin-bottom:5px}.reader-actions{flex-wrap:wrap}.field-row{gap:9px}.story-body{font-size:17px;padding:0}.save-indicator{font-size:9px}.header-right{gap:12px}}
@media print{body{background:white}.sidebar,main,#editor,#confirm,#toast,.reader-actions,.close{display:none!important}#reader{display:block!important;position:static;max-height:none;width:100%;max-width:none;border:0;box-shadow:none;padding:0;overflow:visible}#reader::backdrop{display:none}.opening-art{max-height:420px}.story-body{font-size:16pt;line-height:1.9}.modal-head{break-after:avoid}.opening-label{break-after:page}.story-body{orphans:3;widows:3}}

.creation-options{padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:18px}.creation-options .hint{margin-bottom:0}

.auto-art{display:flex!important;align-items:center;gap:8px;margin-top:12px}.auto-art input{width:auto!important;margin:0}button:disabled{opacity:.55;cursor:default}.cover-preview[aria-busy="true"]{opacity:.65}
