@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f4ef;--paper:#fff;--ink:#26382d;--green:#28583f;--line:#dfe4da;--muted:#6f7d71;--shadow:0 12px 36px rgba(31,47,34,.08);--yellow:#fff2b8;--mint:#e0edce;--sand:#f4e7d5;--lav:#e9ddf6}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Nunito Sans',system-ui,sans-serif}button,input,textarea,select{font-family:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}input,textarea,select{font-size:13px;color:#283a2c;background:#fff;border:1px solid #d8e0d7;border-radius:9px;padding:11px 12px;outline:none;min-width:0;width:100%}input:focus,textarea:focus,select:focus{border-color:#6b9b79;box-shadow:0 0 0 3px rgba(58,116,72,.11)}textarea{resize:vertical;line-height:1.45}h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;letter-spacing:-.4px}
.topbar{height:76px;padding:0 3%;display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center}.brand-icon,.login-symbol{height:42px;width:42px;background:var(--green);border-radius:11px;color:white;font-size:28px;display:grid;place-items:center;line-height:1}.brand strong{font:800 18px 'Bricolage Grotesque',sans-serif;display:block}.brand small{display:block;font-size:11px;color:#778577;margin-top:3px}.topbar-right{display:flex;align-items:center;gap:15px}.pill{border:1px solid #dce5d8;padding:9px 13px;border-radius:99px;background:#fff;font-size:11px;color:#526754}.dot{display:inline-block;width:8px;height:8px;background:#76ae84;border-radius:50%;margin-right:6px}.text-button{border:0;background:none;color:#53755f;font-weight:800;font-size:12px}
.workspace{max-width:1550px;margin:auto;padding:30px 25px 60px;display:grid;grid-template-columns:355px minmax(0,1fr);gap:29px;align-items:start}.sidebar{display:flex;flex-direction:column;gap:17px}.intro{padding:3px 4px 5px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:1.5px;color:#357149}.intro h1{font-size:29px;margin:8px 0 4px}.intro p,.preview-head p{font-size:13px;line-height:1.52;color:var(--muted);margin:4px 0}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:18px;box-shadow:0 4px 18px rgba(42,69,48,.035)}.panel-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:17px}.number{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;background:#eaf2e7;color:#346246;border-radius:9px;font-size:12px;font-weight:900}.panel-head h2{font-size:16px;margin:0 0 2px}.panel-head p{font-size:11px;color:#88938a;margin:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid transparent;padding:11px 15px;font-size:12px;font-weight:900;white-space:nowrap;transition:filter .15s}.button:hover{filter:brightness(.97)}.button.full{width:100%;margin-top:9px}.button.primary{background:var(--green);color:white}.button.secondary{background:#e9f1e9;color:#2f6043;border-color:#dae8da}.button.outline{background:white;color:#315e44;border-color:#cfded2}.button.subtle{background:transparent;color:#61806b}.button:focus-visible,.choice:focus-visible{outline:3px solid #9dc7a6;outline-offset:2px}.panel hr{height:1px;background:#e8ece5;border:0;margin:19px 0 15px}.field-title{font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.soft-badge{padding:4px 7px;border-radius:20px;border:1px solid #dbe6da;font-size:9px;color:#77917c}.option-grid{display:grid;gap:8px}.option-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.option-grid.two{grid-template-columns:1fr 1fr}.choice{background:#fbfcfa;border:1px solid #e1e7df;border-radius:9px;color:#5d6f60;padding:10px 4px;min-height:44px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.choice strong{font-size:11px}.choice small{font-size:9px;color:#85948a}.choice.active{background:#edf5ed;border-color:#699977;color:#28583f;box-shadow:inset 0 0 0 1px #699977}.choice.active small{color:#4d6f56}.hint{color:#88958a;font-size:10.5px;line-height:1.5;margin:9px 0 1px}.tabs{display:flex;gap:7px;overflow-x:auto;margin-bottom:15px;padding-bottom:4px}.tab{display:flex;gap:4px;align-items:center;min-width:51px;max-width:100px;border:1px solid #dce5dc;background:#f9faf8;border-radius:8px;padding:8px;color:#556a59;font-size:11px;font-weight:900}.tab span{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab.active{background:#e6f2e8;border-color:#7eb28b;color:#265a3b}.form-grid{display:flex;flex-direction:column;gap:13px}.form-grid>label{display:flex;flex-direction:column;gap:5px;font-size:11.5px;font-weight:900}.form-grid textarea{font-weight:500}.keyword-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.keyword-inputs input{padding:9px 6px;font-size:11px}.verb-inputs{display:grid;grid-template-columns:1fr 1fr;gap:7px}.verb-inputs label{font-size:11px;font-weight:700}.verb-inputs input{margin-top:3px}.ai-box{margin-top:20px;padding:13px;border-radius:11px;background:#f1f7ef;border:1px solid #e0eddf}.ai-box-title{font-size:12px;font-weight:900;color:#2e7148;display:flex;justify-content:space-between}.ai-box-title span{font-size:10px;font-weight:500;color:#89a08e}.ai-box p{font-size:10px;line-height:1.5;color:#7d9182;margin:8px 0 0}.quota{margin-top:7px;font-size:10px;color:#66836f}#color-rows{display:flex;flex-direction:column;gap:7px}.color-row{border:1px solid #e6ece4;border-radius:9px;padding:7px 9px;background:#fbfcfa;display:flex;align-items:center;justify-content:space-between;gap:7px}.color-name{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;font-weight:900}.swatch{width:20px;height:20px;border-radius:6px;border:1px solid #bfcaba;flex:0 0 auto}.color-row input[type=color]{width:43px;height:34px;min-width:43px;padding:2px;border-radius:6px}.color-code{font-size:10px;color:#88968a;font-family:monospace}
.preview-area{min-width:0}.preview-head{display:flex;justify-content:space-between;align-items:center;gap:13px;margin:0 0 22px}.preview-head h2{margin:6px 0 4px;font-size:25px}.toolbar{display:flex;gap:9px;flex-wrap:wrap}.paperbar{background:#eff1eb;border:1px solid #dfe6df;border-bottom:0;border-radius:13px 13px 0 0;padding:12px 17px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#5e7363;font-weight:700}.zoom{display:flex;align-items:center;gap:8px}.zoom button{border:1px solid #e0e5dc;background:#fff;border-radius:6px;width:25px;height:25px;color:#4b6852;font-size:18px}.paper-shell{background:#ecefea;min-height:480px;overflow:auto;border:1px solid #dfe6df;border-radius:0 0 13px 13px;padding:28px 20px 50px}.paper{box-sizing:border-box;background:white;padding:6mm;display:grid;gap:4mm;box-shadow:var(--shadow);-webkit-print-color-adjust:exact;print-color-adjust:exact}.paper.landscape{width:297mm;height:210mm;page:landscapeSheet}.paper.portrait{width:210mm;height:297mm;page:portraitSheet}.paper.four{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.paper.two.landscape{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.paper.two.portrait{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.paper.one{grid-template-columns:1fr;grid-template-rows:1fr}.paper-slot{min-width:0;min-height:0;position:relative;cursor:pointer;border-radius:12px}.paper-slot.selected::after{content:"";position:absolute;inset:-3px;border:2px solid #4e9065;border-radius:14px;pointer-events:none}.word-card{height:100%;min-height:0;padding:2.6mm 3mm;box-sizing:border-box;display:flex;flex-direction:column;gap:1.35mm;border-radius:11px;border:1.3px solid color-mix(in srgb,var(--card-bg),#344a35 28%);background:var(--card-bg,#fff2b8);color:#18241c;overflow:hidden;print-color-adjust:exact}.word-title{font-family:'Bricolage Grotesque',sans-serif;font-size:23px;font-weight:800;line-height:1.12;letter-spacing:-.5px;overflow-wrap:anywhere}.word-kind{text-align:center;background:rgba(255,255,255,.65);border:1px solid rgba(40,48,37,.1);font-weight:900;font-size:11px;border-radius:4px;padding:1.1mm 2mm}.photo{min-height:20mm;flex:1 1 0;border:1px solid rgba(40,45,35,.15);border-radius:7px;overflow:hidden;background:rgba(255,255,255,.66);display:flex;justify-content:center;align-items:center;color:#7c867e;font-size:11px}.photo img{display:block;width:100%;height:100%;object-fit:cover}.info{border:1px solid rgba(50,55,42,.12);border-radius:6px;background:rgba(255,255,255,.78);padding:1.4mm 2mm;min-height:8mm;font-size:12px;line-height:1.28;display:flex;gap:6px;overflow-wrap:anywhere}.info b,.keywords b{flex-shrink:0;font-weight:900}.verb-forms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1mm}.verb-forms div{background:rgba(255,255,255,.72);border-radius:5px;border:1px solid rgba(50,55,42,.12);text-align:center;font-size:10px;padding:1.1mm .5mm;overflow-wrap:anywhere}.keywords{background:rgba(255,255,255,.65);border:1px solid rgba(50,55,42,.12);border-radius:6px;padding:1.2mm 2mm;display:flex;align-items:center;gap:5px;font-size:11px}.kw-list{display:flex;gap:3px;flex-wrap:wrap}.kw-list span{padding:1mm 2mm;background:#fff;border:1px solid rgba(50,55,42,.12);border-radius:30px;overflow-wrap:anywhere}.paper.portrait.four .word-title{font-size:18px}.paper.portrait.four .info{font-size:10px}.paper.portrait.four .keywords{font-size:9px}.paper.portrait.four .word-kind{font-size:10px}.paper.portrait.four .verb-forms div{font-size:8px}.paper.one .word-title{font-size:34px}.paper.one .info{font-size:18px}.paper.one .word-kind{font-size:16px}.paper.one .keywords{font-size:16px}.paper.two .word-title{font-size:26px}.below-paper{display:flex;justify-content:space-between;gap:8px;margin-top:14px;font-size:11px;color:#89968b}.notice{background:#e2f0e4;border:1px solid #bed9c4;border-radius:9px;padding:12px;color:#275735;font-size:12px;margin-bottom:12px}.notice.error{background:#fff0e8;border-color:#ecc8ac;color:#925022}
.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#eff3e9,#f8f6ee)}.login-shell{width:min(100% - 38px,440px);padding:38px 0;text-align:center}.login-symbol{margin:0 auto 13px}.login-shell h1{font-size:35px;margin:5px 0 2px}.login-subtitle{color:#809082;font-size:13px;margin:0 0 26px}.login-panel{background:white;border:1px solid var(--line);border-radius:19px;padding:25px;text-align:left;box-shadow:var(--shadow)}.login-panel h2{font-size:19px;margin:0 0 5px}.login-panel p{font-size:12px;color:#738477;margin:0 0 24px}.login-panel label{display:block;font-size:12px;font-weight:900;margin:14px 0 6px}.login-panel input{font-size:14px;padding:13px}.login-panel button{margin-top:24px!important;padding:14px!important}.login-error{border-radius:8px;background:#fff0ed;color:#9e493f;padding:10px;margin-top:12px;font-size:12px}.login-note{font-size:11px;color:#8a9a8b;margin:18px 10px;line-height:1.5}
@media(max-width:1100px){.workspace{grid-template-columns:320px minmax(0,1fr);gap:16px;padding:18px 14px}.paper-shell{padding:18px 9px 35px}}
@media(max-width:800px){.workspace{display:flex;flex-direction:column}.sidebar,.preview-area{width:100%}.topbar{padding:0 13px;height:68px}.topbar .online{display:none}.preview-head{align-items:flex-start;flex-wrap:wrap}.preview-head h2{font-size:23px}.paper-shell{min-height:280px}.below-paper span{display:none}}
@page landscapeSheet{size:A4 landscape;margin:0}@page portraitSheet{size:A4 portrait;margin:0}
@media print{html,body{width:auto!important;margin:0!important;padding:0!important;background:#fff!important;print-color-adjust:exact!important}body>.topbar,.sidebar,.preview-head,.paperbar,.below-paper,.notice{display:none!important}.workspace,.preview-area,.paper-shell,#paper-wrap{display:block!important;max-width:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;zoom:1!important}#paper-wrap{width:auto!important;height:auto!important}.paper{transform:none!important;transform-origin:top left!important;box-shadow:none!important;zoom:1!important;margin:0!important}.paper.landscape{width:297mm!important;height:210mm!important}.paper.portrait{width:210mm!important;height:297mm!important}.paper-slot.selected::after{display:none!important}.paper-slot{cursor:default}.photo,.word-card,.info,.keywords{print-color-adjust:exact!important}}
