*{box-sizing:border-box}body{margin:0;background:#f6f5ef;color:#2c4337;font-family:Noto Sans KR,Noto Sans JP,sans-serif;font-size:15px}button,input,textarea{font:inherit}button{border:0;border-radius:12px;padding:12px 18px;background:#e9eee2;color:#304d38;cursor:pointer}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}.primary,.active{background:#356249;color:#fff}header,.appHeader{padding:12px 3vw;display:flex;justify-content:space-between;align-items:center;background:#fffef9;border-bottom:1px solid #e1e3d7;flex-wrap:nowrap;white-space:nowrap;gap:12px}header>b,.appHeader>b{font-size:20px;flex-shrink:0;white-space:nowrap}.appHeader>.brandHomeBtn{all:unset;font-size:20px;font-weight:700;color:inherit;flex-shrink:0;white-space:nowrap;cursor:pointer;border-radius:6px;padding:2px 4px;margin-left:-4px;transition:color .2s ease}.appHeader>.brandHomeBtn:hover:not(:disabled){color:#356249}.appHeader>.brandHomeBtn:focus-visible{outline:2px solid #9cb990}.appHeader>.brandHomeBtn:disabled{cursor:default}.headerRight{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0;white-space:nowrap}.headerRight button{padding:6px 14px;font-size:13px;font-weight:600;border-radius:20px;border:1px solid #c4d7be;background:#f0f6ea;color:#2c4337;cursor:pointer;flex-shrink:0;white-space:nowrap;box-shadow:0 1px 4px #2c43370d;transition:all .2s ease}.headerRight button:hover:not(:disabled){background:#e4eedc;border-color:#a4c29a;color:#1a3222}.headerRight button.headerLibraryBtn{font-weight:700;background:#f0f6ea;border-color:#c4d7be}.headerRight button.headerBookPreviewBtn{background:#356249;border-color:#2a503a;color:#fff;font-weight:700}.headerRight button.headerBookPreviewBtn:hover:not(:disabled){background:#284c38}.row{display:flex;align-items:center;gap:10px}.row input:not([type]){flex:1;min-width:0}main{max-width:1440px;margin:25px auto;padding:0 24px}h1{font-size:48px;letter-spacing:-2px;line-height:1.35}h2{font-size:23px}.eyebrow{font-size:11px;letter-spacing:3px;color:#84925d}.setup{display:grid;grid-template-columns:1fr 1fr;gap:65px;margin-top:45px}.setup>div>p{line-height:2;color:#73806d}.cover{margin:40px 0;padding:55px;background:#e4ebd6;border-radius:12px 45px 45px 12px;border-left:15px solid #b8c9a0;width:80%;text-align:center;font-size:40px;transform:rotate(-3deg);box-shadow:15px 20px 35px #32452215}.cover b{font-size:26px}.cover small{font-size:12px}.panel{background:#fffef9;border:1px solid #e1e3d7;border-radius:22px;padding:25px}label{display:block;font-size:13px;margin:16px 0 8px;font-weight:600}input,textarea,select{display:block;width:100%;background:#fff;border:1px solid #d8dece;border-radius:10px;padding:12px;margin-top:7px;color:#2c4337;font-size:15px}select{cursor:pointer}textarea{min-height:90px;resize:vertical;line-height:1.7}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.wide{width:100%;margin-top:18px}.startRow{display:flex;align-items:stretch;gap:10px;margin-top:18px}.startRow>.primary.wide{flex:1;margin-top:0}.startRow>.fastModeToggle{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;padding:0 14px;background:#fff;border:1px solid #d4ded0;border-radius:12px;color:#4b6152;font-size:13px;font-weight:600;white-space:nowrap;transition:border-color .2s ease,color .2s ease}.startRow>.fastModeToggle:hover:not(:disabled){filter:none;border-color:#a4c29a}.startRow>.fastModeToggle.on{border-color:#356249;color:#284c38}.fastModeTrack{position:relative;width:34px;height:20px;border-radius:10px;background:#cfd8cb;transition:background .2s ease;flex-shrink:0}.fastModeThumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s ease}.fastModeToggle.on .fastModeTrack{background:#356249}.fastModeToggle.on .fastModeThumb{transform:translate(14px)}.fastModeHint{margin:8px 2px 0;font-size:12px;color:#6a7d6e;text-align:right}.note,.demoNote{font-size:12px;line-height:1.8;color:#788369}.demoNote{padding:12px 18px;background:#edeedc;border-radius:12px}.badge{font-size:11px;padding:7px 12px;border-radius:20px;background:#edf0e2}.chatLayout{display:grid;grid-template-columns:270px 1fr;gap:25px}.chat{height:76vh;display:flex;flex-direction:column;gap:16px}.messages{overflow:auto;flex:1;padding:5px 10px}.bubble{max-width:85%;padding:18px 22px;border-radius:18px;margin-bottom:20px;line-height:1.8;background:#f0f2e8}.bubble p{white-space:pre-wrap;margin:8px 0}.bubble small{color:#7b866e}.bubble.user{margin-left:auto;background:#e0ecd9}.bubble img{max-width:220px;max-height:170px;object-fit:contain;border-radius:12px}.character{display:flex;gap:12px;align-items:center;margin:20px 0}.character img{width:55px;height:55px;object-fit:contain;border-radius:10px}.character small{display:block;color:#849078}.request{border:1px dashed #9bad83;border-radius:15px;padding:20px}.request button{display:block;margin-top:15px}.choices{display:flex;gap:10px;flex-wrap:wrap}progress{width:100%;accent-color:#456d49}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#203a3277;display:grid;place-items:center;padding:20px;z-index:10}.dialog{background:#fffef9;border-radius:22px;padding:25px;width:min(650px,100%);max-height:94vh;overflow:auto}.dialog>.row:first-child{justify-content:space-between}.drawingPad{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:15px}.drawingCanvasWrapper{position:relative;width:100%;border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 1px #d5dacd,0 3px 12px #0000000d;background:#fff}.drawingCanvas{display:block;width:100%;height:auto;aspect-ratio:800 / 500;touch-action:none;background:#fff;margin:0;border:none;border-radius:0}.drawingCanvas.tool-pen,.drawingCanvas.tool-eraser,.drawingCanvas.tool-fill{cursor:crosshair}.drawingControls{display:flex;flex-direction:column;gap:10px;background:#f7f9f4;padding:12px;border-radius:14px;border:1px solid #e1e7dc}.drawingRow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.drawingGroup{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.drawingLabel{font-size:12px;font-weight:600;color:#556b5a;min-width:28px}.drawBtn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 12px;border-radius:10px;font-size:13px;font-weight:500;background:#fff;color:#2c4337;border:1px solid #d3dbcd;cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none;box-shadow:0 1px 2px #00000008}.drawBtn:hover:not(:disabled){background:#eef3e8;border-color:#abbcb0}.drawBtn.active{background:#356249;color:#fff;border-color:#356249;box-shadow:0 2px 6px #35624940}.drawBtn:disabled{opacity:.35;cursor:not-allowed}.drawBtnSm{padding:6px 10px;font-size:12px}.drawBtnDanger:hover:not(:disabled){background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.sizePresetBtn{width:32px;height:32px;padding:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}.sizePresetDot{border-radius:50%;background:currentColor;transition:all .15s ease}.sizeSliderGroup{margin-left:auto}.drawingRange{width:90px;accent-color:#356249}.brushIndicatorWrapper{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fff;border:1px solid #d3dbcd}.brushIndicator{border-radius:50%;transition:width .1s ease,height .1s ease,background-color .1s ease}.sizeNumber{font-size:12px;color:#556b5a;min-width:30px;text-align:right;font-variant-numeric:tabular-nums}.colorRow{padding-top:2px;border-top:1px dashed #e1e7dc;margin-top:2px}.colorPalette{gap:7px}.colorSwatch{width:25px;height:25px;border-radius:50%;border:2px solid #ffffff;box-shadow:0 0 0 1px #0000002e;cursor:pointer;padding:0;transition:transform .15s ease,box-shadow .15s ease}.colorSwatch:hover{transform:scale(1.15)}.colorSwatch.active{transform:scale(1.15);box-shadow:0 0 0 2.5px #356249,0 2px 6px #00000040}.customColorLabel{position:relative;display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;border:1px dashed #7a9182;background:#fff;cursor:pointer;overflow:hidden;margin-left:2px;transition:transform .15s ease}.customColorLabel:hover{transform:scale(1.1)}.customColorIcon{font-size:14px}.customColorLabel input[type=color]{position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px;width:50px;height:50px;opacity:0;cursor:pointer}.draft{display:block;max-width:100%;max-height:220px;margin:20px auto;object-fit:contain}.error{background:#ffebe5;padding:15px;border-radius:12px;color:#983b2d;margin-bottom:15px}.error button{margin-left:15px}.bookToolbar{display:flex;justify-content:space-between;align-items:center;margin:20px auto;max-width:1380px;gap:12px}.bookToolbarRight{display:flex;align-items:center;gap:10px}.printOrientToggle{display:inline-flex;background:#edf3e7;padding:3px;border-radius:12px;border:1px solid #d5dec6}.printOrientBtn{background:transparent;border:none;padding:6px 13px;font-size:13px;font-weight:600;color:#536c4b;border-radius:9px;cursor:pointer;transition:all .18s ease;white-space:nowrap}.printOrientBtn:hover{color:#243b2c;background:#fff9}.printOrientBtn.active{background:#fff;color:#2e4a36;box-shadow:0 2px 6px #00000014}.bookPrintBtn{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}.spread{display:grid;grid-template-columns:1.05fr .95fr;background:#fffdf7;min-height:520px;height:min(760px,calc(100vh - 140px));border-radius:16px;overflow:hidden;box-shadow:0 15px 50px #293a2418}.illustration{background:#e5eadc;display:flex;align-items:center;justify-content:center;height:100%;overflow:hidden}.illustration>img{width:100%;height:100%;max-height:100%;object-fit:contain}.placeholder{text-align:center;padding:30px;color:#708261}.placeholder .row{justify-content:center}.placeholder img{width:80px;height:80px;object-fit:contain}.bookText{padding:28px 34px;border-left:2px solid #dadccb;display:flex;flex-direction:column;justify-content:flex-start;overflow-y:auto;height:100%;max-height:100%;box-sizing:border-box}.bookText::-webkit-scrollbar{width:6px}.bookText::-webkit-scrollbar-thumb{background:#c8d6bf;border-radius:4px}.bookText::-webkit-scrollbar-thumb:hover{background:#9ab38f}.bookLangHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;gap:8px}.bookLangLabel{font-size:12px;font-weight:700;color:#557247;letter-spacing:-.01em}.bookLangActions{display:flex;align-items:center;gap:6px}.bookText section{padding:10px 0}.bookText section+section{border-top:1px solid #d7dacd}.bookText section>span,.bookText .coverMeta span{font-size:12px;font-weight:600;color:#72846f;display:block;margin-bottom:4px;letter-spacing:-.01em}.bookText p{font-family:"Noto Serif KR","Noto Serif JP",serif;font-size:16px;line-height:1.65;color:#243b2c;white-space:pre-wrap;margin:4px 0 0;word-break:keep-all;overflow-wrap:break-word}.storybookTextContainer{font-family:"Noto Serif KR","Noto Serif JP",serif;display:flex;flex-direction:column;gap:2px;margin-top:2px}.bookText .storybookLine,.storybookLine{margin:0;font-size:16px;line-height:1.6;color:#243b2c;white-space:normal;word-break:keep-all;overflow-wrap:break-word;letter-spacing:-.02em}.bookText .dialogueText,.dialogueText{display:inline;font-family:inherit;font-size:inherit;font-weight:700;color:inherit;margin:0;letter-spacing:-.015em}.variant-child .storybookLine{font-size:16.5px;line-height:1.65}.variant-parent .storybookLine{font-size:15.5px;color:#334e3d}.variant-cover .storybookLine{font-size:15.5px;line-height:1.6}.coverSpread{border:2px solid #d5dec6}.coverIllustration{background:linear-gradient(135deg,#e7eedd,#d4e3c3);display:flex;align-items:center;justify-content:center;padding:40px 30px}.coverCard{background:#fff;border:1px solid #d3dec5;border-radius:20px;padding:35px 30px;width:100%;max-width:360px;text-align:center;box-shadow:0 12px 32px #2d44261f;display:flex;flex-direction:column;align-items:center}.coverThemeBadge{display:inline-block;background:#eef4e6;color:#3f6641;font-size:13px;font-weight:700;padding:6px 14px;border-radius:20px;margin-bottom:16px;letter-spacing:.5px}.coverTitle{font-size:26px;color:#243d2c;line-height:1.35;margin-bottom:20px;word-break:keep-all}.coverHeroBox{display:flex;flex-direction:column;align-items:center;margin:10px 0 18px}.coverHeroImg{width:160px;height:160px;object-fit:contain;background:#f8faf4;border:2px dashed #b9caa6;border-radius:16px;padding:8px;box-shadow:0 6px 16px #0000000f}.coverScenePreviewBox{width:100%;max-width:320px;display:flex;flex-direction:column;align-items:center;margin:6px 0 14px}.coverSceneImg{width:100%;height:180px;object-fit:cover;border-radius:14px;border:2px solid #b8caa7;box-shadow:0 6px 16px #2c43371f}.coverHeroMiniRow{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}.coverMiniCharTag{display:inline-flex;align-items:center;gap:6px;background:#f2f7ec;border:1px solid #cfddc7;border-radius:12px;padding:3px 8px;font-size:12px;color:#2e4a36;font-weight:600}.coverMiniCharTag img{width:22px;height:22px;border-radius:6px;object-fit:contain}.coverHeroPlaceholder{width:140px;height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f2f6eb;border:2px dashed #c0d1ac;border-radius:16px;font-size:40px;color:#657e53}.coverHeroPlaceholder small{font-size:12px;margin-top:6px;font-weight:600}.coverHeroName{display:inline-block;margin-top:10px;font-size:15px;color:#2e4a36;background:#f3f6ee;padding:4px 12px;border-radius:12px}.coverFooterText{font-size:12px;color:#8c9c7f;margin-top:10px}.coverText{display:flex;flex-direction:column;justify-content:space-between}.coverOpeningText,.coverDirectionText{font-size:14.5px!important;color:#384d3e;line-height:1.7!important;background:#f9fbf6;padding:12px 16px;border-radius:12px;border-left:4px solid #7ea268;margin-top:8px}.coverMeta{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#869676;padding-top:15px;border-top:1px dashed #d7dcce}.printBook{display:none}@media screen and (max-width:1080px){header,.appHeader{padding:10px 16px;gap:8px;flex-wrap:nowrap}.appHeader>.brandHomeBtn{font-size:18px}.headerRight{gap:6px;flex-wrap:nowrap}.headerRight button{padding:6px 11px;font-size:12.5px;min-height:38px}.headerQuotaBadge{padding:5px 10px;font-size:12px}.headerLangPicker{padding:3px 6px;gap:4px}.headerLangSelect{padding:4px 6px;font-size:12px;max-width:125px}.groupRoleTagMini{padding:4px 8px;font-size:11.5px}main{max-width:960px;padding:0 18px;margin:18px auto}.setup{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.1fr);gap:24px;margin-top:20px;align-items:start}h1{font-size:32px;letter-spacing:-1px;line-height:1.3;margin:0 0 10px}.setup>div>p{font-size:14.5px;margin:0 0 14px;line-height:1.6}.cover{display:inline-block;margin:8px 0 18px;padding:20px 28px;background:#e4ebd6;border-radius:10px 30px 30px 10px;border-left:10px solid #b8c9a0;width:auto;max-width:320px;text-align:center;font-size:24px;transform:rotate(-2deg);box-shadow:8px 12px 24px #32452212}.cover b{font-size:19px}.cover small{font-size:11.5px}.panel{padding:22px 24px;border-radius:20px}label{font-size:13.5px;margin:14px 0 6px}input,textarea,select{min-height:44px;padding:10px 14px;font-size:14.5px;border-radius:12px}.sceneCountPicker{display:flex;gap:8px;width:100%}.sceneCountBtn{flex:1;min-height:44px;padding:8px 0;font-size:14px;font-weight:700;border-radius:12px}.startRow{gap:12px;margin-top:20px}.startRow>.primary.wide{min-height:48px;font-size:15.5px;font-weight:700;border-radius:14px}.startRow>.fastModeToggle{min-height:48px;padding:0 16px;border-radius:14px;font-size:13.5px}.chatLayout{grid-template-columns:240px 1fr;gap:14px}.chatLayout aside{display:flex;flex-direction:column;padding:16px;border-radius:18px}.character{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#f7f9f4;border-radius:10px;margin-bottom:6px}.character img{width:40px;height:40px;border-radius:8px}.chat{height:76vh;padding:16px;border-radius:18px}.spread{display:grid;grid-template-columns:1.05fr .95fr;border-radius:16px;height:min(680px,calc(100vh - 120px));min-height:420px;max-height:calc(100vh - 120px);overflow:hidden}.spread::-webkit-scrollbar{width:6px}.spread::-webkit-scrollbar-thumb{background:#c8d6bf;border-radius:4px}.illustration{min-height:auto;max-height:100%;height:100%}.illustration>img{max-height:100%;object-fit:contain}.bookText{border-left:2px solid #dadccb;border-top:none;padding:20px 24px;overflow-y:auto;height:100%;max-height:100%}.bookArrowBtn{width:44px;height:72px;font-size:28px;border-radius:14px}}@media screen and (max-width:1080px)and (orientation:portrait),screen and (max-width:768px){.setup{grid-template-columns:1fr;gap:20px;margin-top:18px}.spread{grid-template-columns:1fr;border-radius:18px;height:auto;min-height:auto;max-height:calc(100vh - 120px);overflow-y:auto;-webkit-overflow-scrolling:touch}.illustration{min-height:220px;max-height:340px}.illustration>img{max-height:320px}.bookText{border-left:none;border-top:1.5px solid #dadccb;padding:20px 24px;overflow-y:visible;height:auto;max-height:none}}@media screen and (max-width:680px){header,.appHeader{padding:12px 14px;flex-wrap:wrap;gap:10px}.headerRight{flex-wrap:wrap;gap:6px}.cover{display:none}.chatLayout{grid-template-columns:1fr}.chatLayout aside{display:none}.chat{height:78vh;padding:14px}.bubble{max-width:95%}.bookStage{gap:6px}.bookArrowBtn{width:36px;height:60px;font-size:24px;border-radius:10px}}.coverRecitalContainer{display:flex;flex-direction:column;gap:12px;margin-top:16px}.coverRecitalCard{display:flex;flex-direction:column;gap:6px}.coverRecitalPlayBtnWrap{margin-top:2px}@media screen{.screenBook .bookLangActions .printAudioQrBox{display:none!important}.coverAudioQrBox{display:inline-flex!important;align-items:center;gap:14px;padding:10px 14px;background:#fff;border:1px solid #d2dec8;border-radius:12px;box-shadow:0 2px 10px #2338270f;max-width:100%}.coverAudioQrBox .printAudioQrImg{width:84px!important;height:84px!important;border-radius:6px;border:none;flex-shrink:0}.coverAudioQrBox .printAudioQrText{display:flex;flex-direction:column;gap:4px}.coverAudioQrBox .printAudioQrLabel{font-size:14px;font-weight:700;color:#1e382b;letter-spacing:-.3px}.coverAudioQrBox .printAudioQrSub{font-size:11.5px;color:#55705f}}@media print{@page{size:A4 landscape;margin:8mm}html,body{background:#fff!important;color:#1a1a1a!important;font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Roboto,sans-serif!important;margin:0!important;padding:0!important;width:100%!important;height:auto!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}header,nav,footer,.appHeader,.appFooter,.portraitOrientationNotice,.overlay,.libraryOverlay,.policyModalOverlay,.adminModalBackdrop,.bookStage,.bookArrowBtn,.bookPageIndicator,.demoNote,.bookToolbar,.screenBook,.error,.audioPlayBtn,.audioPlayBtnWrapper,.audioIcon,.imageStatusBadge,.imageSionBadge,.placeholderSionFooter,.screenOnly,.screenOnlyBadge{display:none!important}main{max-width:none!important;margin:0!important;padding:0!important;width:100%!important}.printBook{display:block!important;width:100%!important}.printBook .spread{display:grid!important;grid-template-columns:1.08fr .92fr!important;gap:7mm!important;width:100%!important;height:188mm!important;max-height:188mm!important;box-sizing:border-box!important;break-after:page!important;break-inside:avoid!important;page-break-after:always!important;page-break-inside:avoid!important;background:#fff!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:2mm 3mm!important;margin:0 auto!important;align-items:center!important}.printBook .spread:last-child{break-after:auto!important;page-break-after:auto!important}.printBook .illustration{display:flex!important;align-items:center!important;justify-content:center!important;height:100%!important;max-height:178mm!important;background:transparent!important;border:none!important;padding:0!important}.printBook .illustration>.sceneImageWrapper{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.printBook .illustration img{max-height:172mm!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:5mm!important;border:1px solid #d5ddcc!important}.printBook .bookText{display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%!important;max-height:184mm!important;padding:2mm 4mm!important;border:none!important;box-sizing:border-box!important;overflow-y:visible!important}.printBook .bookText small{display:block!important;font-size:11.5px!important;font-weight:700!important;color:#3b572a!important;margin-bottom:2mm!important;border-bottom:1.5px solid #dbe4d2!important;padding-bottom:1mm!important}.printBook .bookText section{margin-bottom:2.5mm!important;padding:0!important;border:none!important}.printBook .bookLangHeader{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:1.5mm!important;gap:6px!important}.printBook .bookLangLabel{font-size:11px!important;font-weight:700!important;color:#44613c!important}.printBook .bookLangActions{display:flex!important;align-items:center!important;gap:6px!important}.printBook .storybookLine{font-size:13.5px!important;line-height:1.56!important;color:#1a2918!important;word-break:keep-all!important}.printAudioQrBox{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:3px 6px!important;background:#fff!important;border:1px solid #c2d3b8!important;border-radius:6px!important}.printAudioQrImg{width:42px!important;height:42px!important;border-radius:4px!important;border:none!important;background:#fff!important;flex-shrink:0!important}.printAudioQrText{display:flex!important;flex-direction:column!important;gap:1.5px!important}.printAudioQrLabel{font-size:10.5px!important;font-weight:700!important;color:#2b4530!important;line-height:1.2!important}.printAudioQrSub{font-size:8px!important;color:#657c5f!important;line-height:1.1!important}.coverCard{box-shadow:none!important;border:1.5px solid #cbd7be!important}.printBook .coverRecitalContainer{display:flex!important;flex-direction:row!important;gap:6mm!important;margin-top:3mm!important;flex-wrap:wrap!important}.printBook .coverRecitalPlayBtnWrap{display:none!important}.printBook .coverSpread .printAudioQrBox{display:inline-flex!important;align-items:center!important;gap:10px!important;padding:6px 12px!important;border-radius:10px!important;border:1px solid #cbd7be!important;background:#fff!important}.printBook .coverSpread .printAudioQrImg{width:76px!important;height:76px!important;border-radius:6px!important;border:none!important}.printBook .coverSpread .printAudioQrLabel{font-size:12px!important;font-weight:800!important;color:#1a3625!important}.printBook .coverSpread .printAudioQrSub{font-size:9.5px!important;color:#55705f!important}}.printBook.isExportingPdf{display:block!important;position:fixed!important;left:-12000px!important;top:0!important;width:1122px!important;background:#fff!important;color:#1a1a1a!important;z-index:-1!important;pointer-events:none!important}.printBook.isExportingPdf .audioPlayBtn,.printBook.isExportingPdf .audioPlayBtnWrapper,.printBook.isExportingPdf .audioIcon,.printBook.isExportingPdf .imageStatusBadge,.printBook.isExportingPdf .imageSionBadge,.printBook.isExportingPdf .placeholderSionFooter,.printBook.isExportingPdf .coverRecitalPlayBtnWrap{display:none!important}.printBook.isExportingPdf .spread{display:grid!important;grid-template-columns:1.08fr .92fr!important;gap:26px!important;width:1122px!important;height:793px!important;max-height:793px!important;min-height:793px!important;box-sizing:border-box!important;background:#fff!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:28px 34px!important;margin:0!important;align-items:center!important;overflow:hidden!important}.printBook.isExportingPdf .illustration{display:flex!important;align-items:center!important;justify-content:center!important;height:100%!important;max-height:720px!important;background:transparent!important;border:none!important;padding:0!important}.printBook.isExportingPdf .illustration>.sceneImageWrapper{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.printBook.isExportingPdf .illustration img{max-height:680px!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:18px!important;border:1px solid #d5ddcc!important}.printBook.isExportingPdf .bookText{display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%!important;max-height:730px!important;padding:10px 16px!important;border:none!important;box-sizing:border-box!important;overflow:visible!important}.printBook.isExportingPdf .bookText small{display:block!important;font-size:12px!important;font-weight:700!important;color:#3b572a!important;margin-bottom:8px!important;border-bottom:1.5px solid #dbe4d2!important;padding-bottom:4px!important}.printBook.isExportingPdf .bookText section{margin-bottom:10px!important;padding:0!important;border:none!important}.printBook.isExportingPdf .bookLangHeader{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:6px!important;gap:6px!important}.printBook.isExportingPdf .bookLangLabel{font-size:11.5px!important;font-weight:700!important;color:#44613c!important}.printBook.isExportingPdf .storybookLine{font-size:14px!important;line-height:1.56!important;color:#1a2918!important;word-break:keep-all!important}.printBook.isExportingPdf .printAudioQrBox{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:3px 6px!important;background:#fff!important;border:1px solid #c2d3b8!important;border-radius:6px!important}.printBook.isExportingPdf .printAudioQrImg{width:42px!important;height:42px!important;border-radius:4px!important;border:none!important;background:#fff!important;flex-shrink:0!important}.printBook.isExportingPdf .printAudioQrText{display:flex!important;flex-direction:column!important;gap:1.5px!important}.printBook.isExportingPdf .printAudioQrLabel{font-size:10.5px!important;font-weight:700!important;color:#2b4530!important;line-height:1.2!important}.printBook.isExportingPdf .printAudioQrSub{font-size:8px!important;color:#657c5f!important;line-height:1.1!important}.printBook.isExportingPdf .coverRecitalContainer{display:flex!important;flex-direction:row!important;gap:20px!important;margin-top:12px!important;flex-wrap:wrap!important}.printBook.isExportingPdf .coverSpread .printAudioQrBox{display:inline-flex!important;align-items:center!important;gap:10px!important;padding:6px 12px!important;border-radius:10px!important;border:1px solid #cbd7be!important;background:#fff!important}.printBook.isExportingPdf .coverSpread .printAudioQrImg{width:76px!important;height:76px!important;border-radius:6px!important}.printBook.isExportingPdf .coverSpread .printAudioQrLabel{font-size:12px!important;font-weight:800!important;color:#1a3625!important}.printBook.isExportingPdf .coverSpread .printAudioQrSub{font-size:9.5px!important;color:#55705f!important}.stream-progress-card{display:flex;gap:16px;align-items:flex-start;padding:16px 20px;background:linear-gradient(135deg,#f0f6ea,#e7f0df);border:1px solid #c9dcb9;border-radius:16px;box-shadow:0 4px 16px #2c433714;margin:12px 0;animation:pulseCard 2s ease-in-out infinite alternate}@keyframes pulseCard{0%{box-shadow:0 4px 16px #2c43370f}to{box-shadow:0 8px 24px #4e705229}}.stream-spinner{width:24px;height:24px;border:3px solid #b3cca1;border-top-color:#356249;border-radius:50%;animation:spin .85s linear infinite;flex-shrink:0;margin-top:2px}@keyframes spin{to{transform:rotate(360deg)}}.stream-content{flex:1;display:flex;flex-direction:column;gap:8px}.stream-step-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stream-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;background:#356249;color:#fff;border-radius:20px;font-size:12px;font-weight:600;letter-spacing:.5px}.stream-status-text{font-size:14px;font-weight:600;color:#2c4337}.stream-preview-box{margin-top:6px;padding:10px 14px;background:#ffffffb3;border-left:3px solid #4e7052;border-radius:8px}.stream-preview-box small{display:block;font-size:11px;color:#63775f;margin-bottom:4px;font-weight:600}.stream-preview-box p{margin:0;font-size:14px;line-height:1.5;color:#25392e;font-style:italic}.setup-stream-banner{display:flex;align-items:center;gap:14px;padding:16px;background:#eef4e8;border:1px solid #bcd1a8;border-radius:12px;margin-top:18px}.setup-stream-banner p{margin:0;font-size:14px;font-weight:600;color:#356249}.typewriter-cursor{display:inline-block;width:2px;height:1em;background:#356249;margin-left:2px;vertical-align:text-bottom;animation:blink .75s step-start infinite}@keyframes blink{50%{opacity:0}}.headerLangPicker{display:inline-flex;align-items:center;gap:6px;background:#f0f6ea;border:1px solid #c4d7be;border-radius:20px;padding:4px 10px;font-size:13px;font-weight:600;color:#2c4337;box-shadow:0 1px 4px #2c43370d;transition:all .2s ease;flex-shrink:0;white-space:nowrap}.headerLangPicker:hover{background:#e7f0e0;border-color:#a8c4a0}.headerLangIcon{font-size:14px;flex-shrink:0}.headerLangTitle{font-size:12px;color:#3b563f;font-weight:800;letter-spacing:.3px;flex-shrink:0;white-space:nowrap}.headerLangSelect{border:0;background:transparent;font-size:13px;font-weight:700;color:#264634;cursor:pointer;outline:none;font-family:inherit;padding:2px;white-space:nowrap}.writing-lang-banner{display:flex;align-items:center;gap:14px;padding:12px 18px;background:#f4f8ee;border-radius:12px;border-left:4px solid #4e7052;margin-top:10px}.writing-lang-banner .lang-icon{font-size:20px}.writing-lang-banner .lang-sublabel{font-size:11px;font-weight:700;color:#6a7c64;text-transform:uppercase;letter-spacing:.5px;display:block}.writing-lang-banner .lang-current{margin:3px 0 0;font-size:13px;color:#2c4337}.field-full{margin-top:16px;display:flex;flex-direction:column}.field-label-bold{font-weight:700;font-size:14px;color:#2c4337;margin-bottom:8px;display:block}.wide-select{width:100%;padding:14px 18px;font-size:15px;font-weight:600;border:2px solid #b8caa7;border-radius:12px;background:#fff;color:#2c4337;cursor:pointer;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.wide-select:focus{outline:none;border-color:#356249;box-shadow:0 0 0 3px #35624926}.bookStage{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;margin:20px auto 10px;max-width:1380px;width:100%}.screenBook{flex:1;min-width:0;max-width:1220px}.bookArrowBtn{flex-shrink:0;width:52px;height:84px;border-radius:16px;background:#e6efe0;border:1.5px solid #bdd1b2;color:#24412f;font-size:38px;font-weight:300;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 14px #2c433714;-webkit-user-select:none;user-select:none;padding:0}.bookArrowBtn:hover:not(:disabled){background:#356249;color:#fff;border-color:#284c37;transform:translateY(-2px) scale(1.05);box-shadow:0 8px 22px #2c433738}.bookArrowBtn:active:not(:disabled){transform:translateY(0) scale(.97)}.bookArrowBtn:disabled{opacity:.22;cursor:not-allowed;box-shadow:none;background:#eaeee5;border-color:#d8dfd4;color:#8c9889}.bookPageIndicator{display:none!important}.sceneCountPicker{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:8px}.sceneCountBtn{padding:12px 6px;font-size:14px;font-weight:700;border-radius:12px;border:2px solid #b8caa7;background:#fff;color:#2c4337;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);text-align:center}.sceneCountBtn:hover{border-color:#356249;background:#f4f8ee;transform:translateY(-1px)}.sceneCountBtn.active{background:#356249;color:#fff;border-color:#264b36;box-shadow:0 4px 14px #35624938}@media(max-width:600px){.sceneCountPicker{grid-template-columns:repeat(2,1fr)}}.sionLogo{display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;background:transparent!important}.sionImg{display:block;object-fit:contain;transition:transform .2s ease;background:transparent!important}.sionLogo:hover .sionImg{transform:scale(1.03)}.placeholderSionFooter{margin-top:20px;display:flex;justify-content:center;align-items:center;background:transparent!important}.coverSionFooter{margin-top:18px;display:flex;justify-content:center;background:transparent!important}.imageSionBadge{position:absolute;bottom:12px;right:14px;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important;border:none!important;pointer-events:none}.imageSionBadge .sionImg{filter:drop-shadow(0 1px 3px rgba(255,255,255,.95)) drop-shadow(0 2px 5px rgba(0,0,0,.35))}.sceneImageWrapper{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.sceneImageWrapper img{width:100%;height:100%;max-height:700px;object-fit:contain}.appFooter{display:flex;justify-content:flex-start;align-items:center;padding:30px 5vw;margin-top:60px;border-top:1px solid #e2e6d9;background:#fafaf5}.footerInner{display:flex;align-items:center;gap:20px;text-align:left}.footerDetails{display:flex;flex-direction:column;gap:4px}.footerCompany{font-size:15px;font-weight:800;color:#1e3626;letter-spacing:.3px}.footerCredit{font-size:13px;font-weight:600;color:#6a7c63;letter-spacing:.2px}.characterDialogFixed{overscroll-behavior:contain;touch-action:pan-y}.drawingLockBadge{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;background:#e8f4ec;color:#276749;border:1px solid #c6e5d1;border-radius:8px;font-size:11px;font-weight:700;-webkit-user-select:none;user-select:none}.charDialogUploadCustom{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;background:#f4f8f2;color:#35624b;border:1.5px dashed #a2c4b0;border-radius:12px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all .2s ease;width:100%;box-sizing:border-box;text-align:center;margin-top:6px}.charDialogUploadCustom:hover{background:#e6f1e3;border-color:#35624b;transform:translateY(-1px)}.libraryOverlay{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.libraryDialog{width:min(940px,calc(100vw - 28px));height:auto;max-height:min(88vh,calc(100dvh - 28px));display:flex;flex-direction:column;padding:20px 22px;background:#fffefb;border-radius:22px;box-shadow:0 16px 40px #00000029;border:1px solid #e1e7dc;overflow:hidden}.libraryHeader{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1.5px solid #e9ede4}.libraryHeaderLeft{display:flex;align-items:center;gap:12px}.libraryHeaderLeft h2{margin:0;font-size:22px;color:#2c4337}.libraryCountBadge{background:#e4ebe0;color:#356249;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px}.libraryCloseBtn{background:#f1f3ed;color:#556b5a;border:none;font-size:16px;font-weight:700;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer;padding:0}.libraryCloseBtn:hover{background:#e2e7dc;color:#1e3626}.libraryToolbar{display:flex;align-items:center;gap:12px;margin:16px 0}.librarySearchInput{flex:1;padding:10px 16px;border-radius:12px;border:1.5px solid #d5dacd;font-size:14px;background:#fff}.librarySearchInput:focus{outline:none;border-color:#356249}.libraryNewBtn{padding:10px 18px;font-size:14px;font-weight:600;white-space:nowrap}.libraryLoading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 20px;color:#556b5a;gap:14px}.libraryEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 20px;text-align:center;color:#6a7c63}.libraryEmptyIcon{font-size:48px;margin-bottom:10px}.libraryEmpty h3{margin:0 0 6px;color:#2c4337;font-size:19px}.libraryEmpty p{margin:0 0 20px;font-size:14px}.libraryGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;align-content:start;gap:14px;overflow-y:auto;padding:4px 2px 10px;flex:0 1 auto;min-height:0}@media(max-width:960px){.libraryDialog{width:min(940px,calc(100vw - 20px));padding:16px 18px;border-radius:20px}.libraryGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.storyCardCover{height:clamp(115px,16vw,140px)!important;min-height:115px!important;max-height:140px!important}.storyCardBody{padding:10px 12px 12px}.storyCardTitle{font-size:14.5px}.storyCardActions{gap:6px;margin-top:8px}.storyCardActions button{padding:7px 8px;font-size:12px}}@media(max-width:640px){.libraryDialog{width:calc(100vw - 16px);padding:12px 14px;height:auto;max-height:calc(100dvh - 16px);height:calc(100dvh - 16px);border-radius:16px}.libraryHeader{padding-bottom:10px}.libraryHeaderLeft h2{font-size:18px}.libraryFilterTabs{display:flex;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;gap:6px;padding-bottom:6px;margin-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.libraryFilterTabs::-webkit-scrollbar{display:none}.libTabBtn{flex-shrink:0;padding:5px 11px;font-size:12px}.libraryToolbar{gap:8px;margin:8px 0 10px}.librarySearchInput,.libraryNewBtn{padding:8px 12px;font-size:13px}.libraryGrid{grid-template-columns:1fr;gap:12px}.storyCardCover{height:clamp(130px,42vw,175px)!important;min-height:125px!important;max-height:180px!important}.storyCardActions{flex-wrap:wrap}.storyCardActions button{flex:1 1 calc(50% - 6px)}.storyActionDelete{flex:1 1 100%!important}}@media(max-height:650px){.libraryDialog{height:auto;max-height:calc(100dvh - 12px);height:calc(100dvh - 12px);padding:10px 14px}.libraryHeader{padding-bottom:6px}.libraryToolbar{margin:6px 0 8px}.storyCardCover{height:110px!important;min-height:110px!important;max-height:110px!important}.storyCardBody{padding:8px 10px;gap:4px}.storyCardMeta{padding:3px 0}.storyCardActions{margin-top:4px}.libraryPagination{padding-top:6px}}.storyCard{background:#fff;border:1.5px solid #e1e7dc;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;height:100%;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;box-shadow:0 4px 14px #0000000d;position:relative}.storyCard:hover{transform:translateY(-3px);box-shadow:0 10px 24px #00000017;border-color:#9cbda7}.storyCardCurrent{border-color:#356249;box-shadow:0 0 0 2px #356249,0 8px 20px #35624926}.storyCardCover{position:relative;width:100%;height:clamp(130px,18vw,170px);min-height:120px;max-height:175px;height:clamp(115px,14vh,145px);min-height:110px;max-height:145px;flex-shrink:0;background:linear-gradient(135deg,#eef4ec,#d8e6d5);overflow:hidden}.storyCardCover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.storyCard:hover .storyCardCover img{transform:scale(1.05)}.storyCardCover:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(to bottom,#00000059,#0000,#0000 70%,#00000040)}.storyCardPlaceholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#f0f7ef,#d5e6d2);padding:16px;box-sizing:border-box}.placeholderBookCover{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;width:100%}.placeholderBookIcon{font-size:28px;margin-bottom:2px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.placeholderTitleSnippet{font-size:13px;font-weight:700;color:#264a35;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholderThemeSnippet{font-size:11px;color:#557860;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholderNotice{font-size:10px;font-weight:600;color:#698b74;background:#ffffffb3;padding:2px 8px;border-radius:8px;margin-top:4px}.storyCardBadgeStack{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:5px;z-index:5}.storyCardBadge{padding:3.5px 9px;border-radius:10px;font-size:11px;font-weight:700;letter-spacing:-.01em;box-shadow:0 2px 6px #00000026;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);width:fit-content}.badgeCompleted{background:#1e5c3beb;color:#fff}.badgeProgress{background:#d97706eb;color:#fff}.retentionBadgePermanent{background:#fef08af2;color:#854d0e;border:1px solid #facc15;font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:9px;box-shadow:0 2px 6px #0000001f;width:fit-content}.retentionBadgeStandard{background:#ffffffe0;color:#334155;border:1px solid rgba(255,255,255,.9);font-size:10.5px;font-weight:600;padding:3px 8px;border-radius:9px;box-shadow:0 2px 6px #0000001a;width:fit-content}.storyFavoriteBtn{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 12px #0003;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:all .2s cubic-bezier(.4,0,.2,1);padding:0}.storyFavoriteBtn .favStarIcon{font-size:22px;line-height:1;color:#94a3b8;transition:all .2s ease;-webkit-user-select:none;user-select:none}.storyFavoriteBtn:hover{transform:scale(1.12);background:#fff;border-color:#facc15;box-shadow:0 6px 16px #00000040}.storyFavoriteBtn:hover .favStarIcon{color:#eab308}.storyFavoriteBtn.active{background:#fef08a;border-color:#eab308;box-shadow:0 4px 14px #eab30880}.storyFavoriteBtn.active .favStarIcon{color:#ca8a04}.storyFavoriteBtn.active:hover{transform:scale(1.15);box-shadow:0 6px 18px #eab308b3}.storyCardCurrentTag{position:absolute;bottom:8px;right:8px;background:#1e5c3beb;color:#fff;padding:3px 8px;border-radius:8px;font-size:10px;font-weight:700;z-index:5;box-shadow:0 2px 6px #00000026}.storyCardBody{padding:13px 14px 14px;display:flex;flex-direction:column;flex:1;gap:7px}.storyCardTitleRow{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.storyCardTitle{margin:0;font-size:15.5px;font-weight:700;color:#1e3d2a;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;flex:1}.storyCardTheme{margin:0;font-size:12px;color:#557860;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.storyCardMeta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 0;margin-top:2px;border-top:1px dashed #e1e9dd;border-bottom:1px dashed #e1e9dd}.storyCardLangs{font-size:11px;font-weight:600;color:#4b6352;background:#f1f6ef;padding:2.5px 7px;border-radius:6px;border:1px solid #dbe6d7}.storyCardAuthor{font-size:11px;font-weight:600;color:#385642;background:#f7f9f5;padding:2.5px 7px;border-radius:6px;border:1px solid #e1e8dd}.storyShareControlRow{display:flex;align-items:center;justify-content:space-between;padding:4px 0;margin-top:2px}.storyShareLabel{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12px;font-weight:600;color:#355340}.storyShareLabel input[type=checkbox]{accent-color:#356249;width:15px;height:15px;cursor:pointer}.shareStatusBadge{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:6px}.shareStatusBadge.shared{background:#e3f2e7;color:#1e663a;border:1px solid #bce1c7}.shareStatusBadge.private{background:#f1f3f0;color:#6d7d71;border:1px solid #dfe4df}.storySharedByOtherTag{font-size:11px;font-weight:700;color:#1e663a;background:#eaf4ed;border:1px solid #c7e5cf;padding:3px 8px;border-radius:6px}.storyCardActions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}.storyActionBtn{padding:7px 10px;font-size:12px;font-weight:600;border-radius:9px;cursor:pointer;border:1px solid #d3dbcd;background:#f7f9f4;color:#2c4337;transition:all .15s ease}.storyActionBtn:hover{background:#eef3e8}.storyActionBook{background:#356249;color:#fff;border-color:#356249;flex:1.2}.storyActionBook:hover{background:#2a503a}.storyActionChat{flex:1}.storyActionDelete{padding:7px 9px;background:#fff0f0;border-color:#fecaca;color:#b91c1c}.storyActionDelete:hover{background:#fee2e2}.libraryPagination{display:flex;align-items:center;justify-content:center;gap:8px;padding-top:14px;border-top:1px solid #e9ede4;margin-top:8px;flex-wrap:wrap}.libraryPageBtn{padding:6px 14px;font-size:13px;font-weight:700;border-radius:10px;border:1px solid #c8d8c2;background:#f0f6ea;color:#2c4337;cursor:pointer;transition:all .15s ease}.libraryPageBtn:hover:not(:disabled){background:#356249;color:#fff;border-color:#356249}.libraryPageBtn:disabled{opacity:.35;cursor:not-allowed}.libraryPageNumbers{display:flex;align-items:center;gap:5px}.libraryPageNum{width:32px;height:32px;padding:0;display:grid;place-items:center;font-size:13px;font-weight:700;border-radius:8px;border:1px solid #d7e2d2;background:#fff;color:#304d38;cursor:pointer;transition:all .15s ease}.libraryPageNum:hover{background:#e9f1e4}.activePageNum{background:#356249!important;color:#fff!important;border-color:#356249!important}.libraryPageInfo{font-size:12px;color:#6a7c63;margin-left:10px}.headerAuthGroup{display:flex;align-items:center;gap:8px}.headerTokenPill{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#fdf5e6;border:1.5px solid #e8cd98;border-radius:20px;color:#7d4e08;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s ease}.headerTokenPill:hover{background:#fcecd0;border-color:#d8b46e;transform:translateY(-1px)}.tokenPlusIcon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#e49e25;color:#fff;font-size:12px;font-weight:900}.headerUserPill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#eef5e9;border:1.5px solid #bdd1b2;border-radius:20px;color:#264b34;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.headerUserPill:hover{background:#e2efda;border-color:#9cb990}.groupRoleTagMini{font-size:10px;padding:1px 6px;border-radius:10px;background:#356249;color:#fff;font-weight:700}.headerLogoutBtn{padding:6px 10px;background:transparent;border:1px solid #d4ded0;border-radius:12px;color:#6a7d6e;font-size:12px;cursor:pointer;transition:all .2s ease}.headerLogoutBtn:hover{background:#f5f8f3;color:#983b2d;border-color:#e5b3a9}.headerLoginBtn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:linear-gradient(135deg,#356249,#224330);border:none;border-radius:20px;color:#fff;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 3px 10px #35624933;transition:all .2s ease}.headerLoginBtn:hover{transform:translateY(-1px);box-shadow:0 5px 14px #35624959}.modalBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#16261c8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .2s ease}.authModalContent{background:#fff;border-radius:24px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;padding:28px;box-shadow:0 20px 60px #16261c40;border:1px solid #d8e5d3}.groupModalContent{background:#fff;border-radius:24px;width:100%;max-width:min(520px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;padding:28px;box-shadow:0 20px 60px #16261c40;border:1px solid #d8e5d3;box-sizing:border-box}.authModalHeader{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.groupModalHeader{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px;position:sticky;top:-28px;background:#fff;padding-top:4px;padding-bottom:12px;z-index:10;border-bottom:1px solid #f0f4ed}.authModalHeader h2,.groupModalHeader h2{font-size:20px;color:#1e3927;margin:0}.authCloseBtn{background:#f0f4ec;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#556b5a;font-size:14px;cursor:pointer;transition:all .15s ease}.authCloseBtn:hover{background:#e2ebd9;color:#1a2f20}.authTabRow{display:flex;gap:8px;background:#edf3e8;padding:4px;border-radius:14px;margin-bottom:20px}.authTabBtn{flex:1;padding:10px;border:none;background:transparent;border-radius:10px;font-size:14px;font-weight:600;color:#59735e;cursor:pointer;transition:all .2s ease}.authTabBtn.active{background:#fff;color:#244b31;box-shadow:0 2px 8px #00000014}.authErrorBanner{background:#ffebe5;color:#983b2d;padding:12px 14px;border-radius:12px;font-size:13px;margin-bottom:16px;border:1px solid #f3c7bd}.groupSuccessBanner{background:#e8f7ee;color:#1e6b37;padding:12px 14px;border-radius:12px;font-size:13px;margin-bottom:16px;border:1px solid #b7e3c5}.authForm{display:flex;flex-direction:column;gap:16px}.authField{display:flex;flex-direction:column;gap:6px}.authField label{font-size:13px;font-weight:600;color:#3b5643}.authField input{padding:12px 14px;border:1.5px solid #ccd9c6;border-radius:12px;font-size:14px;outline:none;transition:border-color .2s}.authField input:focus{border-color:#356249}.authGroupTypeBox{background:#f7faf4;border:1.5px dashed #c6d9bf;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}.authGroupTypeTitle{font-size:13px;font-weight:700;color:#2a4833;margin:0}.authRadioLabel{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:13px}.authRadioLabel input[type=radio]{margin-top:3px;accent-color:#356249}.authRadioLabel span{display:flex;flex-direction:column}.authRadioLabel small{color:#6d8471;font-size:11.5px;margin-top:2px}.authSubmitBtn{margin-top:8px;padding:14px;font-size:15px;font-weight:700;border-radius:14px}.groupRoleBadge{display:inline-block;font-size:12px;font-weight:700;color:#356249;background:#eaf3e6;padding:3px 10px;border-radius:12px;margin-top:4px}.tokenCardSection{background:linear-gradient(135deg,#fdfaf3,#fcf6e8);border:1.5px solid #ecd8ab;border-radius:18px;padding:20px;margin-bottom:22px;box-shadow:0 4px 14px #dcb46e14}.tokenBalanceTop{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}.tokenNumberWrap{display:flex;flex-direction:column;gap:6px}.tokenLabel{font-size:13px;font-weight:700;color:#7d5314}.tokenValueRow{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.tokenValueBig{font-size:34px;font-weight:800;color:#244b32;line-height:1}.tokenValueUnit{font-size:19px;font-weight:800;color:#244b32}.tokenValueTotal{font-size:13px;font-weight:600;color:#6a826e}.tokenUsageRulesList{display:flex;flex-direction:column;gap:6px;background:#ffffffb3;border:1px solid #ebd9b7;border-radius:12px;padding:10px 14px}.tokenRuleItem{display:flex;align-items:center;gap:7px;font-size:12px;color:#556c58;white-space:nowrap}.tokenRuleDot{width:5px;height:5px;border-radius:50%;background:#356249;flex-shrink:0}.quotaProgressBarWrap{width:100%;height:9px;background:#e6edd9;border-radius:6px;overflow:hidden}.quotaProgressBarFill{height:100%;background:linear-gradient(90deg,#356249,#489b6b);border-radius:6px;transition:width .3s ease}.groupAccountCard{background:#fff;border:1.5px solid #dce6d6;border-radius:16px;padding:18px 20px;margin-bottom:20px}.groupAccountHeader{margin-bottom:14px}.groupAccountHeader h4{margin:0;font-size:15px;font-weight:800;color:#1e3a27}.profileInfoGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}@media(max-width:500px){.profileInfoGrid{grid-template-columns:1fr}}.profileChip{background:#f7faf5;border:1px solid #e1ebd9;border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}.profileChipLabel{font-size:11.5px;font-weight:600;color:#718974}.profileChipVal{font-size:13.5px;font-weight:700;color:#24412f;font-family:monospace;word-break:break-all}.profileRoleBadge{display:inline-block;font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;width:fit-content}.profileRoleBadge.owner{background:#e8f5ec;color:#23653b;border:1px solid #b7dcbe}.profileRoleBadge.member{background:#f0f4ee;color:#526756;border:1px solid #d5dfd2}.nicknameChangeForm label{display:block;font-size:12.5px;font-weight:700;color:#2d4834;margin-bottom:6px}.nicknameChangeForm .inlineInputRow{display:flex;gap:8px}.nicknameChangeForm input{flex:1;padding:9px 12px;border:1.5px solid #ccd8c5;border-radius:10px;font-size:13px}.nicknameChangeForm .saveBtn{padding:9px 16px;background:#356249;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.chargeBtn{padding:10px 6px;border-radius:10px;border:1.5px solid #e1be72;background:#fff;color:#633f00;font-size:13px;font-weight:700;cursor:pointer;transition:all .15s ease}.chargeBtn:hover:not(:disabled){background:#fff8e8;border-color:#d69f2e;transform:translateY(-1px)}.chargeBtn.highlight{background:#e49e25;color:#fff;border-color:#c9840f}.chargeBtn.highlight:hover:not(:disabled){background:#d48e16}.inviteCodeSection{background:#f4f8f1;border:1.5px solid #d7e6d2;border-radius:16px;padding:16px;margin-bottom:20px}.inviteCodeSection h4{margin:0 0 6px;font-size:14px;color:#244b31}.inviteHelpText{font-size:12px;color:#5f7a65;margin:0 0 12px;line-height:1.5}.inviteCodeRow{display:flex;gap:8px;align-items:center}.inviteCodeDisplay{flex:1;padding:10px 14px;background:#fff;border:2px dashed #356249;border-radius:10px;font-family:monospace;font-size:17px;font-weight:800;color:#1e452a;letter-spacing:.1em;text-align:center}.copyCodeBtn{padding:10px 16px;background:#356249;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s ease}.copyCodeBtn:hover{background:#254934}.inviteCodeHeaderRow{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.inviteCodeHeaderRow h4{margin:0;font-size:14px;color:#244b31}.inviteCodeTimerPill{font-size:11.5px;color:#1e6b37;background:#dff2e4;border:1px solid #b3debe;padding:3px 8px;border-radius:9999px;font-weight:600;display:inline-flex;align-items:center;gap:4px}.inviteCodeExpiredPill{font-size:11.5px;color:#a33820;background:#ffebe5;border:1px solid #f5c4b8;padding:3px 8px;border-radius:9999px;font-weight:700}.inviteCodeActionFooter{display:flex;justify-content:flex-end;margin-top:10px}.refreshInviteBtn{background:#eef5eb;border:1px solid #c8dbc4;color:#2e5338;padding:6px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}.refreshInviteBtn:hover:not(:disabled){background:#dbead5;color:#1a3822}.inviteCodeExpiredBox{background:#fff6f4;border:1.5px dashed #f0b5a8;border-radius:12px;padding:16px;text-align:center}.expiredNoticeBadge{color:#b53820;font-weight:700;font-size:13.5px;margin-bottom:4px}.expiredNoticeDesc{color:#69524e;font-size:12px;margin:0 0 12px;line-height:1.4}.refreshInviteBtnExpired{background:#356249;color:#fff;border:none;padding:10px 18px;border-radius:10px;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px #35624940;transition:all .2s ease}.refreshInviteBtnExpired:hover:not(:disabled){background:#254934;transform:translateY(-1px)}.membersSection{margin-bottom:20px}.membersSection h4{font-size:14px;color:#274732;margin:0 0 10px}.membersList{display:flex;flex-direction:column;gap:8px;max-height:180px;overflow-y:auto}.memberCard{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#f7faf5;border:1px solid #e1ebde;border-radius:12px}.memberAvatar{font-size:20px}.memberInfo{flex:1;min-width:0}.memberTopLine{display:flex;align-items:center;gap:8px}.memberNickname{font-size:14px;color:#1e3927}.meBadge{font-size:10px;font-weight:700;background:#274732;color:#fff;padding:1px 6px;border-radius:8px}.memberRoleTag{font-size:11px;color:#6a8270;margin-left:auto}.memberEmail{display:block;font-size:11.5px;color:#849887;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.memberKickBtn{padding:5px 10px;background:#fff0ed;border:1px solid #f3c2b8;border-radius:8px;color:#a83d31;font-size:12px;font-weight:600;cursor:pointer;margin-left:8px;flex-shrink:0;transition:all .2s ease}.memberKickBtn:hover{background:#fde2dc;border-color:#e59c90;color:#8e2b20}.joinOtherGroupSection details{font-size:12px;color:#667e6b;cursor:pointer}.joinOtherGroupSection summary{font-weight:600;padding:6px 0}.joinOtherGroupForm{display:flex;gap:8px;margin-top:10px}.joinOtherGroupForm input{flex:1;padding:8px 12px;border:1px solid #ccd9c6;border-radius:8px;font-size:13px}.joinOtherGroupForm button{padding:8px 14px;background:#476c54;color:#fff;border:none;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer}.storyCardAuthor{display:inline-block;font-size:11px;font-weight:700;color:#275438;background:#e6f0e1;padding:2px 7px;border-radius:8px;margin-left:6px}.authGateContainer{min-height:78vh;display:flex;align-items:center;justify-content:center;padding:40px 16px}.authGateCard{width:100%;max-width:400px;background:#fff;border-radius:16px;padding:36px 32px 32px;border:1px solid #e4e7e1;box-shadow:0 8px 24px #1e28220d}.authGateHeader{text-align:center;margin-bottom:28px}.authGateLogoWrapper{display:flex;justify-content:center;margin-bottom:14px}.authGateTitle{font-size:22px;font-weight:700;color:#26332b;margin:0 0 6px;letter-spacing:-.02em}.authGateSubtitle{font-size:13.5px;color:#7a857e;margin:0}.authGateCard .authTabRow{gap:0;background:transparent;padding:0;border-radius:0;border-bottom:1px solid #e4e7e1;margin-bottom:22px}.authGateCard .authTabBtn{border-radius:0;padding:10px 0 12px;font-size:14px;font-weight:500;color:#8a948d;border-bottom:2px solid transparent;margin-bottom:-1px}.authGateCard .authTabBtn.active{background:transparent;box-shadow:none;color:#26332b;font-weight:600;border-bottom-color:#3f6b52}.authGateCard .authForm{gap:14px}.authGateCard label{display:block;margin:0;padding:0}.authGateCard .authField{gap:6px}.authGateCard .authField input{width:100%;margin:0}.authGateCard .authRadioLabel{display:flex;align-items:flex-start;gap:10px;padding:6px 0;text-align:left}.authGateCard .authRadioLabel input[type=radio]{flex:0 0 auto;width:16px;height:16px;margin:3px 0 0;padding:0}.authGateCard .authRadioLabel span{flex:1;display:flex;flex-direction:column;gap:2px}.authGateCard .authField label{font-size:12.5px;font-weight:500;color:#5b665f}.authGateCard .authField input{padding:11px 12px;border:1px solid #dde1db;border-radius:8px;background:#fcfcfb;color:#26332b}.authGateCard .authField input::placeholder{color:#b3bab5}.authGateCard .authField input:focus{border-color:#3f6b52;background:#fff;box-shadow:0 0 0 3px #3f6b521a}.authGateCard .authGroupTypeBox{margin:0;background:transparent;border:1px solid #e4e7e1;border-radius:8px;padding:12px 14px}.authGateCard .authGroupTypeTitle{padding:0 4px;font-size:12.5px;font-weight:500;color:#5b665f}.authGateCard .authRadioLabel b{font-weight:600;color:#26332b}.authGateCard .authRadioLabel small{color:#8a948d}.authGateCard .authErrorBanner{background:#fdf3f1;border:1px solid #f0d6d0;color:#9a3d2f;border-radius:8px;font-size:12.5px}.authGateCard .authSubmitBtn{margin-top:6px;padding:12px;font-size:14.5px;font-weight:600;border-radius:8px;background:#3f6b52;color:#fff}.authGateCard .authSubmitBtn:hover:not(:disabled){background:#355b45;filter:none}.headerAdminConsoleBtn{padding:8px 15px;border-radius:9999px;border:1.5px solid #d4af37;background:#1a2f20;color:#f7e7a9;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #0000001f}.headerAdminConsoleBtn:hover{background:#25422e;color:#fff;border-color:gold;transform:translateY(-1px);box-shadow:0 4px 12px #d4af3740}.adminModalContent{background:#fff;border-radius:24px;width:100%;max-width:680px;max-height:90vh;overflow-y:auto;padding:28px;box-shadow:0 20px 60px #16261c40;border:1px solid #d8e5d3}.adminModalHeader{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.adminModalHeader h2{font-size:22px;font-weight:700;color:#1e3927;margin:0 0 4px}.adminSubtitle{margin:0;font-size:13px;color:#647568}.adminSectionCard{background:#f8faf6;border:1px solid #e1ebd9;border-radius:16px;padding:18px 20px}.adminSectionHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.adminSectionHead h3{font-size:16px;font-weight:700;color:#233e2a;margin:0}.currentCodeTag{font-size:13px;color:#355b45;background:#eaf3e5;padding:4px 10px;border-radius:8px;border:1px solid #c9dec1}.currentCodeTag b{color:#1a4d2b;font-family:monospace;font-size:14px;letter-spacing:.5px}.adminHelpText{font-size:12.5px;color:#6a7c6f;margin:0 0 14px;line-height:1.5}.adminCodeForm{display:flex;gap:8px}.adminCodeForm input{flex:1;padding:10px 14px;border:1px solid #b8caa7;border-radius:10px;font-size:14px;font-family:monospace;font-weight:600;background:#fff}.adminCodeForm input:focus{outline:none;border-color:#356249;box-shadow:0 0 0 2px #35624926}.adminCodeForm button{padding:10px 18px;background:#356249;color:#fff;border:none;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all .15s ease;white-space:nowrap}.adminCodeForm button:hover:not(:disabled){background:#284c37}.adminCodeForm button:disabled{opacity:.5;cursor:not-allowed}.adminRefreshBtn{background:#fff;border:1px solid #c6d9be;border-radius:8px;padding:4px 10px;font-size:12px;font-weight:600;color:#3f6048;cursor:pointer;transition:all .15s ease}.adminRefreshBtn:hover{background:#f0f7ec;border-color:#356249}.adminUserList{display:flex;flex-direction:column;gap:10px;max-height:380px;overflow-y:auto;padding-right:4px}.adminUserCard{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e1ebd9;border-radius:12px;padding:12px 16px;gap:12px;transition:box-shadow .15s ease}.adminUserCard:hover{box-shadow:0 3px 10px #0000000d}.adminUserInfo{flex:1;min-width:0}.adminUserRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}.adminUserNick{font-size:14.5px;color:#1e3927}.adminUserEmail{font-size:12.5px;color:#728475}.roleBadgeMaster{font-size:11px;font-weight:700;background:#1a2f20;color:gold;padding:2px 7px;border-radius:6px;border:1px solid #d4af37}.roleBadgeAdmin{font-size:11px;font-weight:700;background:#e2f2e4;color:#266b3b;padding:2px 7px;border-radius:6px;border:1px solid #b5e1be}.roleBadgeGeneral{font-size:11px;font-weight:500;background:#f1f3f0;color:#6e7a70;padding:2px 7px;border-radius:6px}.adminUserDetails{display:flex;gap:12px;font-size:12px;color:#8b998d}.adminUserActions{flex-shrink:0}.adminActionDisabled{font-size:12px;color:#b0baaf;font-weight:600;padding:6px 12px}.rolePromoteBtn{background:#f0f7ec;border:1px solid #a8c799;color:#276135;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600;cursor:pointer;transition:all .15s ease}.rolePromoteBtn:hover:not(:disabled){background:#356249;color:#fff;border-color:#284c37}.roleDemoteBtn{background:#fdf5f4;border:1px solid #eecac5;color:#a84132;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600;cursor:pointer;transition:all .15s ease}.roleDemoteBtn:hover:not(:disabled){background:#9a3d2f;color:#fff;border-color:#7b2f23}.groupApiKeyForm{display:flex;flex-direction:column;gap:10px;margin-top:14px}.adminCodeInputWrap{background:#f9fbf8;border:1px dashed #b9caa9;border-radius:12px;padding:12px 14px}.adminCodeInputLabel{display:block;font-size:12.5px;font-weight:700;color:#274830;margin-bottom:6px}.adminCodeInputField{width:100%;padding:10px 12px;font-size:13.5px;border:1px solid #c2d4b3;border-radius:8px;box-sizing:border-box;background:#fff;margin-bottom:4px}.adminCodeInputField:focus{outline:none;border-color:#356249;box-shadow:0 0 0 2px #35624926}.adminCodeNoticeText{font-size:11.5px;color:#7a8c7b;display:block}.adminCodeBypassPill{background:#eef7eb;border:1px solid #c6e0bf;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600;color:#2d6b3c}.apiKeyActionRow{display:flex;gap:8px}.apiKeyInputField{flex:1;padding:10px 14px;font-size:13.5px;border:1px solid #b8caa7;border-radius:10px;background:#fff}.apiKeyInputField:focus{outline:none;border-color:#356249;box-shadow:0 0 0 2px #35624926}.groupApiKeySaveBtn{padding:10px 16px;background:#356249;color:#fff;border:none;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s ease}.groupApiKeySaveBtn:hover:not(:disabled){background:#284c37}.groupApiKeySaveBtn:disabled{opacity:.5;cursor:not-allowed}.groupApiKeyDeleteBtn{padding:10px 14px;background:#fdf2f0;border:1px solid #e8c6c0;color:#a84132;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s ease}.groupApiKeyDeleteBtn:hover:not(:disabled){background:#9a3d2f;color:#fff}.passwordChangeSection{margin-top:20px;border-top:1px solid #e8f0e4;padding-top:16px}.passwordChangeSection details summary{cursor:pointer;font-size:14px;font-weight:700;color:#385641;-webkit-user-select:none;user-select:none;padding:4px 0}.passwordChangeSection details[open] summary{margin-bottom:12px}.passwordChangeForm{display:flex;flex-direction:column;gap:10px;background:#fafbfa;border:1px solid #e5ede0;border-radius:14px;padding:16px}.pwdInputGroup{display:flex;flex-direction:column;gap:4px}.pwdInputGroup label{font-size:12px;font-weight:600;color:#4b6150}.pwdInputGroup input{padding:9px 12px;font-size:13.5px;border:1px solid #c2d4b3;border-radius:8px;background:#fff}.pwdInputGroup input:focus{outline:none;border-color:#356249;box-shadow:0 0 0 2px #35624926}.pwdSubmitBtn{margin-top:4px;padding:11px;background:#356249;color:#fff;border:none;border-radius:10px;font-size:13.5px;font-weight:700;cursor:pointer;transition:all .15s ease}.pwdSubmitBtn:hover:not(:disabled){background:#284c37}.pwdSubmitBtn:disabled{opacity:.5;cursor:not-allowed}.stream-reading-card{background:#fff;border:1px solid #d4e3cb;border-left:4px solid #356249;border-radius:12px;padding:14px 16px;box-shadow:0 2px 10px #3562490f;margin-top:8px;margin-bottom:12px}.stream-reading-header{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#356249;margin-bottom:8px}.stream-reading-text{margin:0;font-size:15px;line-height:1.7;color:#1f3326;white-space:pre-line;font-family:inherit;font-weight:500}.magic-tap-container{cursor:pointer;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;border-radius:14px;background:linear-gradient(135deg,#fefdfa,#f3f8ee);border:1.5px dashed #9fc291;padding:14px 16px;transition:all .2s ease;margin-top:8px}.magic-tap-container:hover{border-color:#356249;background:linear-gradient(135deg,#fff,#eff6e8)}.magic-tap-container:active{transform:scale(.99)}.magic-canvas-placeholder{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.magic-brush-icon{font-size:28px;display:inline-block;animation:brushWiggle 1.4s ease-in-out infinite}@keyframes brushWiggle{0%,to{transform:rotate(0) scale(1)}25%{transform:rotate(-14deg) scale(1.1)}75%{transform:rotate(14deg) scale(1.1)}}.magic-painting-status{margin:0;font-size:13.5px;font-weight:600;color:#356249}.magic-interactive-badge{display:inline-flex;align-items:center;gap:8px;background:#ffffffe6;border:1px solid #c2d8b8;border-radius:20px;padding:4px 12px;box-shadow:0 1px 4px #0000000a}.magic-stage-text{font-size:12.5px;font-weight:700;color:#294734}.magic-counter-chip{font-size:12px;font-weight:800;color:#2b613c;background:#e3efda;padding:2px 8px;border-radius:10px;animation:popCount .25s ease-out}@keyframes popCount{0%{transform:scale(.8)}50%{transform:scale(1.2)}to{transform:scale(1)}}.magic-tap-particle{position:absolute;pointer-events:none;font-size:24px;line-height:1;animation:floatUpSparkle .9s cubic-bezier(.1,.8,.3,1) forwards;z-index:10}@keyframes floatUpSparkle{0%{opacity:1;transform:translate(-50%,-50%) scale(.6) rotate(0)}50%{opacity:1;transform:translate(-50%,-100%) scale(1.3) rotate(15deg)}to{opacity:0;transform:translate(-50%,-160%) scale(.9) rotate(35deg)}}.magic-live-image-wrapper{position:relative;width:100%;border-radius:12px;overflow:hidden;animation:fadeInLiveImg .6s ease-out}@keyframes fadeInLiveImg{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.magic-live-image{width:100%;max-height:280px;object-fit:cover;border-radius:10px;display:block}.magic-complete-badge{position:absolute;top:8px;right:8px;background:#234e34e0;color:#fff;font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:12px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 2px 8px #00000026}.bookToolbarCenter{display:flex;flex-direction:column;align-items:center;gap:4px}.bookStatusBadge{font-size:12px;font-weight:700;padding:3px 12px;border-radius:999px;letter-spacing:-.01em;transition:all .3s ease}.statusBadgePainting{background:#fff8e8;color:#a06412;border:1px solid #f6d289;box-shadow:0 2px 6px #f6d28940;animation:pulseBadge 2s infinite ease-in-out}.statusBadgeDone{background:#eef7ed;color:#2e683e;border:1px solid #bce1bb}@keyframes pulseBadge{0%,to{transform:scale(1);box-shadow:0 2px 6px #f6d28940}50%{transform:scale(1.03);box-shadow:0 4px 12px #f6d28973}}.imageStatusBadge{position:absolute;top:12px;left:12px;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:3}.imageStatusBadge.complete{background:#234e34e0;color:#fff;box-shadow:0 2px 8px #0000002e;animation:badgePopIn .4s ease-out}.imageStatusBadge.generating{position:static;display:inline-block;background:#fff3db;color:#9c6010;border:1px solid #f3d49b;margin-bottom:8px}.bookGeneratingPlaceholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px}.bookMagicIconWrap{position:relative;width:72px;height:72px;margin-bottom:12px;display:grid;place-items:center}.bookMagicBrushAnim{font-size:42px;display:inline-block;animation:brushWiggle 2.2s infinite ease-in-out;transform-origin:bottom right}.bookMagicSparkleAnim{position:absolute;top:2px;right:2px;font-size:20px;animation:sparkleTwinkle 1.8s infinite ease-in-out}@keyframes brushWiggle{0%,to{transform:rotate(0) scale(1)}25%{transform:rotate(-12deg) scale(1.08)}75%{transform:rotate(10deg) scale(.96)}}@keyframes sparkleTwinkle{0%,to{opacity:.3;transform:scale(.8) rotate(0)}50%{opacity:1;transform:scale(1.25) rotate(45deg)}}.bookGeneratingSubtext{font-size:13.5px;line-height:1.6;color:#66785e;margin:6px 0 14px;max-width:320px}@keyframes badgePopIn{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}.chatSceneContainer{margin-top:14px;width:100%}.chatSceneImgWrapper{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px #00000014;border:1px solid #d5dbc9;background:#fff;animation:fadeInLiveImg .6s ease-out}.chatSceneImg{width:100%;max-height:260px;object-fit:cover;display:block;transition:transform .3s ease}.chatSceneImg:hover{transform:scale(1.015)}.chatSceneBadge{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#f7f9f3;border-top:1px solid #e2e7db;font-size:12px;font-weight:700;color:#2e683e}.chatSceneViewBookBtn{background:#2e683e;color:#fff;border:none;border-radius:8px;padding:4px 10px;font-size:11px;font-weight:600;cursor:pointer;transition:background .2s ease}.chatSceneViewBookBtn:hover{background:#225130}.chatScenePendingCard{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffdf5;border:1px dashed #e6caa1;border-radius:12px;box-shadow:0 2px 8px #e6caa126;animation:pulseCard 2.5s infinite ease-in-out}@keyframes pulseCard{0%,to{border-color:#e6caa1;background:#fffdf5}50%{border-color:#dfb277;background:#fff9ea}}.chatScenePendingIcon{position:relative;font-size:26px;min-width:36px;height:36px;display:grid;place-items:center}.chatSceneBrushAnim{display:inline-block;animation:brushWiggle 2.2s infinite ease-in-out}.chatSceneSparkleAnim{position:absolute;top:-2px;right:-2px;font-size:14px;animation:sparkleTwinkle 1.8s infinite ease-in-out}.chatScenePendingText{display:flex;flex-direction:column;gap:2px}.chatScenePendingText b{font-size:12.5px;color:#8c5b16}.chatScenePendingText span{font-size:11.5px;color:#786a55;line-height:1.4}.headerQuotaBadge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f1f6ee;border:1px solid #c9d8c3;border-radius:999px;font-size:13px;color:#24412f;font-weight:700;letter-spacing:-.2px}.sceneCountPicker{display:grid;grid-template-columns:repeat(5,1fr)!important;gap:8px;margin-top:8px}@media(max-width:600px){.sceneCountPicker{grid-template-columns:repeat(3,1fr)!important}}.sceneCountBtn:disabled{opacity:.45;cursor:not-allowed;border-color:#d5dbd1;background:#f4f6f2}.setup-quota-pill{font-size:12px;font-weight:700;color:#2e683e;background:#eaf3e6;padding:4px 10px;border-radius:999px;border:1px solid #c7debe}.quota-estimate-box{margin-top:14px;padding:12px 16px;border-radius:12px;background:#fafbf8;border:1px solid #dce4d6;font-size:13px;color:#2c4337;line-height:1.5}.quota-shortage-alert{margin-top:6px;color:#c0392b;font-weight:700}.quota-ok-text{margin-top:4px;font-size:12px;color:#55755e}.charAiSection{margin-top:16px;padding:14px;background:#f9fbf7;border:1px solid #e1e8db;border-radius:14px}.charQuotaNoticeRow{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;flex-wrap:wrap;gap:6px}.charQuotaNotice{font-size:12.5px;font-weight:700;color:#2e683e;background:#eaf3e6;padding:4px 10px;border-radius:999px;border:1px solid #c7debe}.charQuotaNotice.charQuotaExhausted{color:#b33924;background:#fdf0ed;border-color:#f3c2b8}.charGenerationTypeRow{display:flex;gap:16px;margin:12px 0;padding:10px 14px;background:#fff;border:1px solid #e2e8dc;border-radius:10px}.genTypeOption{display:flex;align-items:center;gap:6px;font-size:13px;color:#2c4337;cursor:pointer;font-weight:600}.draftHistorySection{margin-top:14px;padding-top:12px;border-top:1px solid #e6eddf}.draftHistoryList{display:flex;gap:8px;overflow-x:auto;padding:6px 2px 8px}.draftThumbBtn{border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;cursor:pointer;background:#fff;transition:all .2s ease;flex-shrink:0}.draftThumbBtn.active{border-color:#2e683e;box-shadow:0 0 0 2px #2e683e40}.draftThumbBtn img{width:54px;height:54px;object-fit:cover;display:block}.draftPreviewWrap{margin-top:12px;display:flex;flex-direction:column;align-items:center}.quotaProgressBarWrap{width:100%;height:8px;background:#e8eee4;border-radius:999px;overflow:hidden;margin:8px 0}.quotaProgressBarFill{height:100%;background:#356249;border-radius:999px;transition:width .3s ease}.profileInfoRow{display:flex;gap:16px;flex-wrap:wrap;margin:10px 0}.profileItem{display:flex;flex-direction:column;gap:2px;font-size:13px}.profileItem span{color:#6a7c63;font-size:11.5px}.nicknameChangeForm{margin-top:10px;padding:10px 12px;background:#f7f9f4;border-radius:10px;border:1px solid #e2e8dc}.inlineInputRow{display:flex;gap:8px;margin-top:6px}.inlineInputRow input{flex:1;padding:7px 10px;border:1px solid #cbd6c5;border-radius:8px;font-size:13px}.inlineInputRow button{padding:7px 14px;background:#356249;color:#fff;border:none;border-radius:8px;font-size:12.5px;font-weight:700;cursor:pointer}.memberPolicyBtn{background:#eef4eb;border:1px solid #c9d8c3;color:#24412f;font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:6px;cursor:pointer;transition:all .15s ease}.memberPolicyBtn:hover{background:#356249;color:#fff;border-color:#284c37}.policyModalOverlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;z-index:10000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.policyModalDialog{background:#fff;border-radius:16px;padding:24px;width:90%;max-width:440px;box-shadow:0 16px 36px #0003}.policyFormGroup{margin-bottom:14px;display:flex;flex-direction:column;gap:6px}.policyFormGroup label{font-size:13px;font-weight:700;color:#24412f}.policyFormGroup input[type=number],.policyFormGroup select{padding:8px 12px;border:1px solid #c9d8c3;border-radius:8px;font-size:13px}.policyModalButtons{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.libraryFilterTabs{display:flex;gap:6px;margin-bottom:16px;border-bottom:1px solid #e1e8db;padding-bottom:8px;flex-wrap:wrap}.libTabBtn{background:transparent;border:none;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:600;color:#5d6f55;cursor:pointer;transition:all .2s ease}.libTabBtn.active{background:#356249;color:#fff;font-weight:700}.storyFavoriteBtn{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;background:#ffffffe6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid rgba(0,0,0,.1);color:#a3b89e;font-size:18px;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 2px 6px #0000001f;transition:all .15s ease;z-index:5}.storyFavoriteBtn:hover{transform:scale(1.1);color:#f39c12}.storyFavoriteBtn.active{color:#f39c12;background:#fff}.storyCardRetentionRow{margin-top:6px;display:flex;align-items:center;gap:6px}.favoriteRetentionBtn{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;font-size:11.5px;font-weight:700;border:1px solid #d4decb;background:#fff;color:#44614a;cursor:pointer;transition:all .15s ease}.favoriteRetentionBtn:hover{background:#fdf6e7;border-color:#e5b95d;color:#935116}.favoriteRetentionBtn.favorited{background:#fef8eb;border-color:#f5cba7;color:#b9770e}.favoriteRetentionBtn .starIcon{color:#f39c12;font-size:13px}.retentionBadgePermanent{display:inline-block;font-size:11px;font-weight:700;color:#2b7a4b;background:#e8f5ec;padding:2px 8px;border-radius:6px}.retentionBadgeStandard{display:inline-block;font-size:11px;color:#7f8c8d}.storyShareControlRow{width:100%;display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:#f6f9f3;border-radius:8px;margin-top:8px;box-sizing:border-box;border:1px solid #e3ede0}.storyShareControlRow.sharedByPeer{background:#edf5eb;border-color:#d2e4ce;justify-content:center}.storyShareLabel{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:#2c4337;font-weight:600;white-space:nowrap;font-size:12px}.storyShareLabel input[type=checkbox]{accent-color:#356249;cursor:pointer;margin:0}.shareLabelText{white-space:nowrap}.shareStatusBadge{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}.shareStatusBadge.shared{background:#e2f2e5;color:#216d3e}.shareStatusBadge.private{background:#ebeee8;color:#738372}.storySharedByOtherTag{font-size:11px;font-weight:700;color:#2e683e}.adminFullPageRoot{width:100%;min-height:100vh;background:#f4f7f2}.adminPageContainer{width:100%;max-width:100%;margin:0;padding:16px 20px 40px;box-sizing:border-box;min-height:100vh;background:#f4f7f2}.adminPageHeader{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding-bottom:14px;border-bottom:1.5px solid #dce5d6}.adminPageHeaderLeft{display:flex;align-items:center;gap:14px}.adminBackBtn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:#fff;border:1.5px solid #c9d8c3;border-radius:10px;font-size:13px;font-weight:700;color:#264a35;cursor:pointer;transition:all .15s ease;white-space:nowrap}.adminBackBtn:hover{background:#f0f6ec;border-color:#356249;transform:translate(-2px)}.adminPageTitleWrap h1,.adminPageTitleWrap h2{margin:0 0 2px;font-size:20px;font-weight:800;color:#1c3826;letter-spacing:-.5px}.adminPageSubtitle{margin:0;font-size:12.5px;color:#647d6c}.adminUserBadge{display:flex;align-items:center;gap:8px;background:#f4f8f1;border:1px solid #d6e4cf;border-radius:12px;padding:6px 12px}.adminBadgeRole{font-size:11px;font-weight:700;background:#356249;color:#fff;padding:2px 7px;border-radius:6px}.adminBadgeEmail{font-size:12.5px;font-weight:600;color:#2c4a35;font-family:monospace}.adminPageHeaderRight{display:flex;align-items:center;gap:10px}.adminHeaderLogoutBtn{padding:7px 14px;font-size:12.5px;font-weight:700;border-radius:10px;border:1px solid #d4ded0;background:#fff;color:#8c3b36;cursor:pointer;transition:all .15s ease;min-height:36px;white-space:nowrap}.adminHeaderLogoutBtn:hover{background:#fdf2f2;border-color:#e5b3af;color:#722722}@media(max-width:900px){.adminPageContainer{padding:14px 14px 40px}.adminPageHeader{flex-direction:column;align-items:flex-start;gap:10px}.adminPageHeaderRight{width:100%;justify-content:space-between}}.adminSuccessBanner{background:#e8f7ee;color:#1e6b37;padding:12px 16px;border-radius:12px;font-size:13.5px;font-weight:600;margin-bottom:18px;border:1px solid #b7e3c5}.adminErrorBanner{background:#ffebe5;color:#983b2d;padding:12px 16px;border-radius:12px;font-size:13.5px;font-weight:600;margin-bottom:18px;border:1px solid #f3c7bd}.adminPageNav{display:flex;gap:8px;border-bottom:1.5px solid #e1ebd9;margin-bottom:24px;padding-bottom:2px;overflow-x:auto}.adminNavTab{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border:none;background:transparent;border-radius:12px 12px 0 0;font-size:14px;font-weight:600;color:#5a7360;cursor:pointer;transition:all .15s ease;border-bottom:3px solid transparent;white-space:nowrap}.adminNavTab:hover{color:#21432f;background:#f5f8f2}.adminNavTab.active{color:#21432f;font-weight:800;border-bottom:3px solid #356249;background:#f0f6ed}.tabCounterBadge{background:#dce7d6;color:#2c4a35;font-size:11px;font-weight:700;padding:2px 7px;border-radius:12px}.adminNavTab.active .tabCounterBadge{background:#356249;color:#fff}.adminSectionCard{background:#fff;border:1.5px solid #dfe7da;border-radius:14px;padding:16px 20px;box-shadow:0 4px 16px #0000000a;margin-bottom:20px;width:100%;box-sizing:border-box}.sectionHeaderRow{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.sectionHeaderRow h3{margin:0 0 6px;font-size:18px;font-weight:800;color:#1e3b29}.sectionSubDesc{margin:0;font-size:13px;color:#627b68;line-height:1.5}.searchBarWrap{min-width:260px}.adminSearchInput{width:100%;padding:9px 14px;border:1.5px solid #cad8c4;border-radius:10px;font-size:13px;box-sizing:border-box}.adminSearchInput:focus{outline:none;border-color:#356249}.adminTableWrap{overflow-x:auto;border-radius:12px;border:1px solid #e2ebd9}.adminDataTable{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.adminDataTable thead th{background:#f5f8f2;color:#2e4d38;font-weight:700;padding:10px;border-bottom:1.5px solid #dce6d5;white-space:nowrap;font-size:12.5px}.adminDataTable tbody td{padding:10px;border-bottom:1px solid #edf2e8;vertical-align:middle}.adminDataTable tbody tr:hover{background:#fbfdf9}.emptyTableNotice{text-align:center;padding:36px!important;color:#7a8f80}.userNicknameText{color:#223f2d;font-size:13.5px}.userEmailText{color:#496350;font-family:monospace;font-size:12px}.userRoleTag{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap}.roleMaster{background:#7b241c;color:#fff}.roleAdmin{background:#eaf3e8;color:#27623e;border:1px solid #b7dcbe}.roleOwner{background:#fef5e7;color:#935116;border:1px solid #f8c471}.roleMember{background:#f2f4f1;color:#5d6d7e}.policyBadgeSummary{font-size:11px;color:#44614a;background:#f3f7ef;padding:3px 8px;border-radius:6px;border:1px solid #e0ebd8;display:inline-block;white-space:nowrap}.tableActionBtns{display:flex;gap:6px;align-items:center;white-space:nowrap}.groupCellWrap{display:flex;flex-direction:column;gap:3px}.groupQuotaTag{font-size:11px;color:#27623e;background:#e8f5ec;padding:1px 6px;border-radius:4px;width:fit-content;font-weight:600}.chargeBtnMini{background:#eaf2f8;border:1px solid #aed6f1;color:#1b4f72;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s ease}.chargeBtnMini:hover{background:#d4e6f1}.deleteUserBtn{background:#fdedec;border:1px solid #f5b7b1;color:#922b21;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s ease}.deleteUserBtn:hover:not(:disabled){background:#fadbd8}.deleteUserBtn:disabled{opacity:.5;cursor:not-allowed}.pwdResetBtn{background:#fdf2e9;border:1px solid #f5cba7;color:#a04000;padding:5px 10px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s ease}.pwdResetBtn:hover{background:#fae5d3}.adminChargeDialog{max-width:500px}.currentQuotaDisplayRow{display:flex;align-items:center;justify-content:space-between;background:#f5f8f2;border:1px solid #dce6d5;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:13px;color:#264a35}.sharedPoolNoticeTag{font-size:11px;font-weight:700;background:#356249;color:#fff;padding:2px 7px;border-radius:6px}.chargePresetGroup{margin-bottom:16px}.presetLabel{display:block;font-size:12px;font-weight:700;color:#3b5a45;margin-bottom:6px}.presetBtns{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.presetBtns button{background:#fff;border:1.5px solid #c9d8c3;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:700;color:#244b32;cursor:pointer;transition:all .15s ease}.presetBtns button:hover{background:#eaf3e8;border-color:#356249}.chargeInputGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.chargeInputGrid label,.chargeMemoField label{display:block;font-size:12px;font-weight:700;color:#3b5a45;margin-bottom:4px}.chargeInputGrid input,.chargeMemoField input{width:100%;padding:9px 12px;border:1.5px solid #cad8c4;border-radius:8px;font-size:13.5px;box-sizing:border-box}.chargeMemoField{margin-bottom:14px}.chargeHelpNotice{background:#fdfaf2;border:1px dashed #e8d1a0;border-radius:8px;padding:10px 12px;font-size:12px;color:#7d5314;line-height:1.5;margin-bottom:16px}.roleToggleBtn{padding:5px 10px;font-size:12px;font-weight:700;border-radius:6px;cursor:pointer;border:1px solid;transition:all .15s ease}.roleToggleBtn.promoteBtn{background:#eaf3e8;color:#235c39;border-color:#badbbd}.roleToggleBtn.promoteBtn:hover{background:#d7ecda}.roleToggleBtn.demoteBtn{background:#fdedec;color:#922b21;border-color:#f5b7b1}.roleToggleBtn.demoteBtn:hover{background:#fadbd8}.adminModalBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;z-index:10000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.adminResetDialog{background:#fff;border-radius:16px;padding:24px;width:90%;max-width:440px;box-shadow:0 16px 36px #0003}.adminResetDialog h4{margin:0 0 8px;font-size:17px;color:#1e3b29}.resetNotice{font-size:13px;color:#556c5c;margin-bottom:16px}.pwdInputRow{display:flex;gap:8px;margin-bottom:16px}.pwdInputRow input{flex:1;padding:9px 12px;border:1.5px solid #cad8c4;border-radius:8px;font-size:13px}.genPassBtn{background:#f2f4f1;border:1px solid #c9d8c3;color:#2c4337;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .15s ease}.genPassBtn:hover{background:#e2e8dc}.resetDialogButtons{display:flex;justify-content:flex-end;gap:8px}.resetDialogButtons .cancelBtn{padding:8px 16px;border:1px solid #d0d7cc;background:#fff;color:#556b5c;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.resetDialogButtons .saveBtn{padding:8px 16px;background:#356249;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer}.apiKeyCreateForm{background:#fafbf9;border:1px solid #e1e8db;border-radius:12px;padding:16px;margin-bottom:20px}.apiKeyCreateForm h4{margin:0 0 10px;font-size:15px;color:#224330}.keyFormGrid{display:grid;grid-template-columns:1.5fr 2fr 1fr;gap:10px;margin-bottom:12px}@media(max-width:800px){.keyFormGrid{grid-template-columns:1fr}}.keyFormGrid input{padding:9px 12px;border:1.5px solid #ccd8c5;border-radius:8px;font-size:13px}.keyQuotaInputWrap{display:flex;align-items:center;gap:6px;font-size:12px;color:#556b5a;white-space:nowrap}.keyQuotaInputWrap input{width:90px}.apiKeyCreateForm .saveBtn{padding:9px 18px;background:#356249;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer}.legacySyncBtn{background:#eef5ea;border:1px solid #c4d7bd;color:#264a35;padding:8px 14px;border-radius:10px;font-size:12.5px;font-weight:700;cursor:pointer;transition:all .15s ease}.legacySyncBtn:hover:not(:disabled){background:#356249;color:#fff;border-color:#284c37}.apiKeyListWrap{display:flex;flex-direction:column;gap:12px}.apiKeyListWrap h4{margin:0 0 4px;font-size:15px;color:#224330}.emptyPoolNotice{background:#f7faf4;border:1.5px dashed #c9d8c3;border-radius:12px;padding:24px;text-align:center;color:#647d6c;font-size:13.5px}.apiKeyCard{background:#fff;border:1.5px solid #dce6d6;border-radius:14px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.apiKeyCardInfo{flex:1;min-width:280px}.apiKeyNameRow{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}.apiKeyNameRow b{font-size:15px;color:#1e3c29}.keyMasked{font-family:monospace;font-size:12px;background:#f0f4ec;color:#37533f;padding:3px 8px;border-radius:6px}.keyStatusTag{font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px}.keyStatusTag.active{background:#e8f5ec;color:#2b7a4b}.keyStatusTag.inactive{background:#fbeee6;color:#ba4a00}.keyUsageRow{display:flex;align-items:center;gap:14px;font-size:12.5px;color:#556c5b;flex-wrap:wrap}.keyProgressBar{height:8px;background:#e7eedf;border-radius:4px;overflow:hidden;width:180px}.keyProgressFill{height:100%;background:linear-gradient(90deg,#356249,#4ca673);border-radius:4px;transition:width .3s ease}.apiKeyCardActions{display:flex;gap:8px;align-items:center}.keyActivateBtn{padding:6px 12px;font-size:12px;font-weight:700;border-radius:6px;background:#eaf3e8;color:#235c39;border:1px solid #b7dcbe;cursor:pointer}.keyDeactivateBtn{padding:6px 12px;font-size:12px;font-weight:700;border-radius:6px;background:#fdf2e9;color:#a04000;border:1px solid #f5cba7;cursor:pointer}.keyDeleteBtn{padding:6px 12px;font-size:12px;font-weight:700;border-radius:6px;background:#fdedec;color:#922b21;border:1px solid #f5b7b1;cursor:pointer}.cleanupInfoGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media(max-width:768px){.cleanupInfoGrid{grid-template-columns:1fr}}.cleanupPolicyBox,.cleanupActionBox{background:#f9fbf7;border:1.5px solid #dce7d6;border-radius:14px;padding:20px}.cleanupPolicyBox h4,.cleanupActionBox h4{margin:0 0 10px;font-size:15px;color:#21432f}.cleanupPolicyBox ul{padding-left:20px;margin:0;font-size:13px;line-height:1.7;color:#44594c}.cleanupActionBox p{font-size:13px;line-height:1.6;color:#556c5b;margin:0 0 16px}.highlightPermanent{color:#216d3e;font-weight:800}.cleanupRunBtn{background:#c0392b;color:#fff;border:none;padding:10px 18px;border-radius:10px;font-size:13.5px;font-weight:700;cursor:pointer;transition:background .2s ease}.cleanupRunBtn:hover:not(:disabled){background:#a93226}.adminCodeBox{background:#f9fbf7;border:1.5px solid #dce7d6;border-radius:14px;padding:22px;max-width:580px}.codeStatusDisplay{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:16px;border-bottom:1px dashed #d5e2cf}.codeLabel{font-size:13px;color:#586f5f;font-weight:600}.codeValue{font-family:monospace;font-size:20px;font-weight:800;color:#1e3d2a;letter-spacing:.08em}.timerBadge.active{background:#eaf3e8;color:#225a37;padding:4px 10px;border-radius:8px;font-size:11.5px;font-weight:700;border:1px solid #b7dcbe}.timerBadge.expired{background:#fdedec;color:#922b21;padding:4px 10px;border-radius:8px;font-size:11.5px;font-weight:700;border:1px solid #f5b7b1}.adminCodeForm label{display:block;font-size:13px;font-weight:700;color:#264a35;margin-bottom:8px}.adminCodeForm .inlineInputRow{display:flex;gap:8px;margin-bottom:6px}.adminCodeForm input{flex:1;padding:9px 12px;border:1.5px solid #cad8c4;border-radius:8px;font-size:14px;font-family:monospace;letter-spacing:.05em}.adminCodeForm .saveBtn{padding:9px 16px;background:#356249;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.adminCodeForm small{font-size:11.5px;color:#728c78}.apiKeyAssignedBadge{display:inline-block;background:#eaf5eb;color:#1b6335;border:1px solid #b7dcbe;font-family:monospace;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:6px;letter-spacing:.03em}.apiKeyMissingBadge{display:inline-block;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px}.apiKeyAssignBtnMini{padding:5px 9px;font-size:11.5px;font-weight:700;border-radius:6px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;cursor:pointer;transition:all .15s ease;white-space:nowrap}.apiKeyAssignBtnMini:hover{background:#dbeafe;border-color:#93c5fd}.totalQuotaHint{font-size:11px;color:#64748b;display:block;margin-top:2px}.quotaModalModeTabs{display:flex;gap:8px;margin:14px 0 16px;border-bottom:2px solid #e2e8f0;padding-bottom:2px}.quotaModeTabBtn{background:none;border:none;border-bottom:2.5px solid transparent;padding:8px 14px;font-size:13px;font-weight:700;color:#64748b;cursor:pointer;transition:all .15s ease;margin-bottom:-2px}.quotaModeTabBtn:hover{color:#1e3d2a}.quotaModeTabBtn.active{color:#264a35;border-bottom-color:#356249}.charGenerationTypeGroup{border:0;padding:0;margin:0 0 14px;min-width:0}.charGenerationTypeLegend{padding:0;margin-bottom:8px;color:#294b3a;font-size:14px;font-weight:700}.charGenerationTypeRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.charGenerationTypeRow .genTypeOption{display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:72px;padding:12px 14px;border:1.5px solid #d9e5d9;border-radius:12px;background:#fff;cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.charGenerationTypeRow .genTypeOption:hover:not(.disabled){border-color:#72a884;background:#f7fbf8}.charGenerationTypeRow .genTypeOption.active{border-color:#3a7550;background:#edf7ef;box-shadow:0 2px 8px #3a75501f}.charGenerationTypeRow .genTypeOption.disabled{opacity:.55;cursor:not-allowed;background:#f8faf7}.charGenerationTypeRow .genTypeOption input[type=radio]{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:#3a7550;cursor:pointer}.genTypeText{display:flex;flex-direction:column;gap:3px;min-width:0}.genTypeText strong{color:#254b34;font-size:14px;font-weight:700;line-height:1.3}.genTypeText small{color:#687c6d;font-size:12px;line-height:1.4}.charPromptContainer{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.charPromptHeader{display:flex;justify-content:space-between;align-items:center}.charPromptLabelText{font-size:13.5px;font-weight:700;color:#2c4a35}.charPromptClearBtn{background:#f1f5f9;border:1px solid #cbd5e1;color:#475569;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:6px;cursor:pointer;transition:all .15s ease}.charPromptClearBtn:hover{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}.charPromptTextarea{width:100%;padding:10px 12px;border:1.5px solid #d4ded0;border-radius:10px;font-size:14px;line-height:1.5;color:#1e293b;background:#fff;resize:vertical;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.charPromptTextarea:focus{outline:none;border-color:#3a7550;box-shadow:0 0 0 3px #3a755026}.charGenerateBtn{min-height:48px;font-size:15px;font-weight:700;letter-spacing:-.3px;border-radius:12px;transition:all .15s ease}.charGenerateBtn:active:not(:disabled){transform:scale(.985)}.charGenerateBtn:disabled{opacity:.6;cursor:not-allowed}.rolePending{background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}@media(max-width:600px){.charGenerationTypeRow{grid-template-columns:1fr}}.portraitOrientationNotice{display:none}@media print{.portraitOrientationNotice{display:none!important}}@media screen and (max-width:1024px)and (orientation:portrait){.portraitOrientationNotice{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999999;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fdfbf7;color:#1e382b;padding:32px;text-align:center;box-sizing:border-box}.portraitIconWrap{width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:#eef7f0;border:2px solid #b7dbbf;border-radius:20px;margin-bottom:20px;animation:rotateDevice 2.2s ease-in-out infinite}.portraitIconSvg{width:36px;height:36px;fill:#265437}.portraitNoticeTitle{font-size:20px;font-weight:800;color:#1a3625;margin:0 0 8px;letter-spacing:-.5px}.portraitNoticeDesc{font-size:14.5px;color:#55705f;margin:0;line-height:1.5}@keyframes rotateDevice{0%,15%{transform:rotate(0)}50%,65%{transform:rotate(90deg)}to{transform:rotate(0)}}}@media screen and (orientation:landscape){.portraitOrientationNotice{display:none!important}}.studentClassWelcomeCard{background:linear-gradient(135deg,#f0fdf4,#e0f2fe);border:1.5px solid #bae6fd;border-radius:14px;padding:18px 20px;margin-bottom:18px;box-shadow:0 4px 16px -2px #38bdf81f;text-align:left}.welcomeContentWrap{width:100%}.welcomeBadgeRow{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}.welcomeLiveBadge{font-size:11.5px;font-weight:700;color:#15803d;background:#dcfce7;padding:2px 8px;border-radius:9999px;border:1px solid #bbf7d0}.welcomeTimerBadge{font-size:11.5px;color:#64748b;font-weight:500}.welcomeClassTitle{font-size:19px;font-weight:800;color:#0f172a;margin:0 0 2px;letter-spacing:-.3px}.welcomeTeacherHighlight{font-size:14px;color:#0369a1}.welcomeTeacherHighlight b{font-weight:800;color:#0284c7}.studentLargeEntryBtn{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;font-size:16px!important;font-weight:700!important;padding:14px 20px!important;border-radius:12px!important;margin-top:10px!important;letter-spacing:-.2px;box-shadow:0 6px 18px -2px #2563eb4d!important;transition:all .2s ease!important}.studentLargeEntryBtn:hover:not(:disabled){transform:translateY(-2px)!important;box-shadow:0 8px 22px -2px #2563eb66!important}.studentExpiredCard{text-align:center;padding:28px 18px;background:#fef2f2;border:1.5px solid #fecaca;border-radius:16px;margin-bottom:12px}.classBtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:12px;border:1.5px solid transparent;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;white-space:nowrap;transition:background .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease}.classBtn:hover:not(:disabled){filter:none;transform:translateY(-1px)}.classBtn:active:not(:disabled){transform:translateY(0)}.classBtn:focus-visible{outline:3px solid rgba(53,98,73,.35);outline-offset:2px}.classBtnPrimary{background:linear-gradient(135deg,#3f7556,#2b5640);color:#fff;box-shadow:0 4px 14px -4px #2b56408c}.classBtnPrimary:hover:not(:disabled){background:linear-gradient(135deg,#366a4c,#224733);box-shadow:0 6px 18px -4px #2b564099}.classBtnDanger{background:#fff;color:#b23a2b;border-color:#efb8ad}.classBtnDanger:hover:not(:disabled){background:#fff1ee;border-color:#e0897a;color:#922c1f}.classBtnLarge{width:100%;padding:14px 20px;font-size:15px;border-radius:14px}.classSessionCard{position:relative;margin-bottom:18px;padding:18px;border-radius:18px;background:#f6f9f3;border:1.5px solid #d7e5d0;overflow:hidden}.classSessionCard.isLive{background:linear-gradient(160deg,#f1f8ee,#e6f2e1);border-color:#a9cc9c;box-shadow:0 8px 24px -12px #35624973}.classSessionHead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.classSectionTitle{margin:0;font-size:15px;font-weight:800;color:#1e3a27}.classStatusPill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9999px;font-size:12px;font-weight:700;border:1px solid transparent}.classStatusPill.live{background:#2f6a47;color:#fff}.classStatusPill.closed{background:#fff4e5;color:#8a4b08;border-color:#f2d19f}.classStatusPill.paused{background:#fef3c7;color:#92400e;border-color:#fde68a}.classStatusPill.idle{background:#fff;color:#5b6f60;border-color:#d5e0d0}.classLiveDot{width:7px;height:7px;border-radius:50%;background:#9df0b6;box-shadow:0 0 #9df0b6b3;animation:classLivePulse 1.6s ease-out infinite}@keyframes classLivePulse{0%{box-shadow:0 0 #9df0b6b3}70%{box-shadow:0 0 0 7px #9df0b600}to{box-shadow:0 0 #9df0b600}}.classPinBox{display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 12px;padding:14px 16px;background:#fff;border:1.5px dashed #9fc392;border-radius:14px}.classPinLabel{grid-column:1 / -1;font-size:11.5px;font-weight:700;color:#6a8270;letter-spacing:.02em}.classPinDigits{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:30px;font-weight:800;letter-spacing:.22em;color:#1d4430;line-height:1.1}.classPinDigits.isActive{color:#1d4430}.classPinDigits.isPaused{color:#a16207;opacity:.9}.classPinDigits.isClosed{font-family:inherit;font-size:18px;letter-spacing:0;color:#a2652a}.classPinCopyBtn{font-size:11.5px;padding:4px 10px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:7px;font-weight:700;color:#334155;cursor:pointer;transition:all .15s ease}.classPinCopyBtn:hover{background:#e2e8f0;color:#0f172a}.classPinPausedNotice{grid-column:1 / -1;margin-top:8px;padding:8px 12px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;font-size:12px;color:#92400e;line-height:1.5;text-align:left}.classPinMeta{font-size:12px;font-weight:600;color:#4d6a55;white-space:nowrap}.classSessionActions{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin-top:12px}.classBtnAccent{background:#d97706!important;color:#fff!important;border:none!important}.classBtnAccent:hover{background:#b45309!important}.authGateContainer{flex-direction:column;gap:14px}.studentPinBoxWell{display:flex;flex-direction:column;gap:12px;padding:16px;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:16px}.studentPinBoxLabel{text-align:center;display:block;font-size:13px;font-weight:800;color:#334155;letter-spacing:.02em}.studentPinEnterBtn{margin-top:2px!important;min-height:50px!important;font-size:16px!important;font-weight:800!important;border-radius:12px!important;box-shadow:0 4px #1e3d2a!important}.studentPinEnterBtn:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px #1e3d2a!important}.authSubtleSwitchWrap{text-align:center;margin-top:4px}.authSubtleSwitchLink{font-size:12px;font-weight:600;color:#94a3b8;text-decoration:none;padding:6px 12px;border-radius:8px;transition:color .15s ease,background .15s ease}.authSubtleSwitchLink:hover{color:#475569;background:#94a3b81f;text-decoration:underline}.studentLargePinInput{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace!important;font-size:28px!important;letter-spacing:8px!important;text-align:center!important;font-weight:800!important;padding:12px 16px!important;border-radius:12px!important;border:2px solid #cbd5e1!important;color:#1e382b!important;background:#fff!important;transition:all .2s ease!important}.studentLargePinInput::placeholder{letter-spacing:1px!important;font-size:18px!important;color:#94a3b8!important}.studentLargePinInput:focus{border-color:#3b7c4a!important;background:#fff!important;box-shadow:0 0 0 4px #3b7c4a26!important}.studentNoticeCard{padding:24px 20px;border-radius:16px;text-align:center;margin-bottom:12px}.studentPausedCard{background:#fffbeb;border:1.5px solid #fde68a}.studentEndedCard{background:#fef2f2;border:1.5px solid #fecaca}.studentNoticeHeader{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:12px}.studentNoticeBadge{font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:12px}.studentNoticeBadge.paused{background:#fef3c7;color:#b45309;border:1px solid #fde68a}.studentNoticeBadge.ended{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5}.studentNoticeTitle{font-size:18px;font-weight:800;margin:0}.studentPausedCard .studentNoticeTitle{color:#92400e}.studentEndedCard .studentNoticeTitle{color:#991b1b}.studentNoticeDesc{font-size:13.5px;line-height:1.6;color:#475569;margin:0 0 20px}.studentNoticeActions{display:flex;flex-direction:column;gap:8px}.classHelpList{margin:12px 0 0;padding:0 0 0 18px;font-size:12px;line-height:1.65;color:#5a7461}.classHelpList b{color:#2c4a36}.classIdleBody .inviteHelpText{margin-bottom:12px}.classPolicyCard{margin-top:0}.classCardDesc{margin:4px 0 0;font-size:12.5px;color:#6a8270}.classPolicyGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}@media(max-width:520px){.classPolicyGrid{grid-template-columns:1fr}}.classPolicyField{display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:#f7faf5;border:1px solid #e1ebd9;border-radius:12px;min-width:0}.classPolicyLabel{font-size:12px;font-weight:700;color:#3d5944}.classPolicyInput{width:100%;padding:8px 10px;border:1.5px solid #ccd9c6;border-radius:9px;background:#fff;color:#24412f;font-size:13px;font-weight:600}.classPolicyInput:focus{outline:none;border-color:#356249;box-shadow:0 0 0 3px #3562491f}.classPolicyToggle{cursor:pointer}.classToggleRow{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:34px}.classToggleInput{position:absolute;opacity:0;width:1px;height:1px}.classToggleTrack{position:relative;width:40px;height:22px;border-radius:9999px;background:#cfd8cb;transition:background .2s ease;flex-shrink:0}.classToggleTrack:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s ease}.classToggleInput:checked+.classToggleTrack{background:#3f7556}.classToggleInput:checked+.classToggleTrack:after{transform:translate(18px)}.classToggleInput:focus-visible+.classToggleTrack{outline:3px solid rgba(53,98,73,.35);outline-offset:2px}.classToggleText{font-size:13px;font-weight:700;color:#2c4a36}.classCardFooter{display:flex;justify-content:flex-end;margin-top:12px}.memberListSection{margin-bottom:20px}.memberListHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.memberListHeader h4{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:800;color:#1e3a27}.memberCountBadge{min-width:24px;padding:1px 8px;border-radius:9999px;background:#356249;color:#fff;font-size:12px;font-weight:800;text-align:center}.memberAutoSync{font-size:11.5px;font-weight:600;color:#6a8270}.memberEmptyState{padding:18px 16px;text-align:center;font-size:13px;color:#6a8270;background:#f7faf5;border:1.5px dashed #d5e2cf;border-radius:12px}.memberCardsWrap{display:flex;flex-direction:column;gap:8px}.memberCardInfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.memberNameRow{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.memberNick{font-size:14px;color:#1e3927}.memberQuotaTagRow{font-size:12px;color:#6a8270}.memberCardActions{display:flex;align-items:center;gap:6px;flex-shrink:0}.memberRoleBadge{display:inline-block;padding:1px 8px;border-radius:9999px;font-size:11px;font-weight:700;border:1px solid transparent}.memberRoleBadge.student{background:#e7f1fb;color:#1f5f99;border-color:#c4dcf2}.memberRoleBadge.teacher{background:#e5f4ea;color:#1f6b3d;border-color:#b9dfc5}.inviteCopyBtn,.inviteNewGenerateBtn,.groupModalContent .saveBtn{padding:9px 16px;border-radius:10px;border:none;background:#356249;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}.inviteCopyBtn:hover:not(:disabled),.inviteNewGenerateBtn:hover:not(:disabled),.groupModalContent .saveBtn:hover:not(:disabled){background:#254934;filter:none}.inviteRefreshBtn,.secondaryBtn{padding:8px 14px;border-radius:10px;border:1px solid #c8dbc4;background:#eef5eb;color:#2e5338;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.inviteRefreshBtn:hover:not(:disabled),.secondaryBtn:hover:not(:disabled){background:#dbead5;color:#1a3822;filter:none}.inviteExpiredAction{display:flex}.ghost{background:transparent;border:none;color:#5b6f60;padding:6px 10px;text-decoration:underline;text-underline-offset:3px}.ghost:hover:not(:disabled){background:#f2f6ef;color:#2c4a36;filter:none}.classEndedCard{text-align:center;animation:classEndedIn .35s ease}.classEndedIcon{width:68px;height:68px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;color:#356249;background:radial-gradient(circle at 30% 30%,#f3faef,#dcefd4);box-shadow:0 6px 18px -8px #35624980}.classEndedDesc{margin:8px 0 22px;line-height:1.65;word-break:keep-all}.classEndedCard .authSubmitBtn{width:100%}@keyframes classEndedIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.quotaFlow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:4px}.quotaFlowItem{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:#ffffffc7;border:1px solid #ebd9b7;border-radius:12px;transition:transform .15s ease,box-shadow .15s ease}.quotaFlowItem:hover{transform:translateY(-1px);box-shadow:0 4px 10px #35624914}.quotaFlowItem.isAccent{background:linear-gradient(135deg,#eaf3ec,#dcebdf);border-color:#a9c9b2}.quotaFlowLabel{font-size:11px;font-weight:700;color:#7d6a45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quotaFlowItem.isAccent .quotaFlowLabel{color:#356249}.quotaFlowValue{font-size:18px;font-weight:800;color:#244b32;line-height:1.1}.quotaFlowNotice{margin:10px 0 0;padding:9px 12px;font-size:12px;color:#8a5a12;background:#fff4dc;border:1px solid #f0d49a;border-radius:10px}.quotaFlowHint{margin:10px 0 0;font-size:12px;line-height:1.55;color:#5b6f5f}.quotaFlowHint b{color:#356249}@media(max-width:560px){.quotaFlow{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (max-width:1024px),screen and (max-height:620px){header,.appHeader,main{zoom:.5}main{max-width:1380px;width:100%}.bookStage{max-width:1320px;width:100%;gap:16px}.screenBook{max-width:1120px;width:1120px}.screenBook .spread{display:grid!important;grid-template-columns:1.05fr .95fr!important;width:1120px!important;height:640px!important;min-height:640px!important;max-height:640px!important;overflow:hidden!important}.screenBook .illustration{height:100%!important;max-height:100%!important;min-height:auto!important}.screenBook .illustration>img,.screenBook .sceneImageWrapper>img{max-height:100%!important;object-fit:contain!important}.screenBook .bookText{border-left:2px solid #dadccb!important;border-top:none!important;height:100%!important;max-height:100%!important;overflow-y:auto!important}}@media print{header,.appHeader,main{zoom:1!important}}
