@font-face{font-family:Preeti;src:url('fonts/preeti-normal.otf') format('opentype');font-display:swap}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#172c45;background:#f4f7fb}*{box-sizing:border-box}body{margin:0;min-height:100vh}.wrap{width:min(1200px,calc(100% - 48px));margin:auto}.topbar{background:#102a50;color:#fff;border-bottom:4px solid #f8b943}.top-inner{height:80px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:13px;letter-spacing:.11em}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#f8b943;color:#102a50;font-size:27px;font-weight:800;letter-spacing:0}.brand strong{display:block;font-size:16px;line-height:1.1}.brand small{display:block;font-size:10px;font-weight:700;color:#bdd1e7;margin-top:5px;letter-spacing:.18em}.top-note{font-size:13px;color:#c9d9e9}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:50px 0 28px}.eyebrow{font-weight:800;font-size:13px;letter-spacing:.08em;color:#22659e;margin-bottom:12px}h1{font-size:clamp(32px,4.3vw,54px);line-height:1.07;letter-spacing:-.055em;margin:0;color:#102a50}h1 span{color:#df9d2b;margin:0 .11em}.intro p{font-size:17px;color:#62748a;margin:13px 0 0}.privacy{font-size:13px;color:#557187;background:#e7f0f4;border:1px solid #d6e5ea;padding:10px 14px;border-radius:30px;white-space:nowrap}.workspace{background:white;border:1px solid #dfe6ee;box-shadow:0 16px 50px rgba(17,45,77,.075);border-radius:18px;overflow:hidden}.toolbar{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6edf3;gap:12px}.direction{display:flex;gap:4px;background:#eef3f8;padding:4px;border-radius:11px}.direction button{border:0;background:transparent;color:#5e7289;font:700 14px inherit;font-family:inherit;font-size:14px;font-weight:700;padding:12px 17px;cursor:pointer;border-radius:8px}.direction button.active{background:#102a50;color:white;box-shadow:0 2px 7px #102a5030}.direction span{padding:0 4px}.subtle{border:1px solid #d7e1eb;background:#fff;color:#284661;border-radius:9px;padding:11px 14px;font:600 14px inherit;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.subtle:hover,.text-button:hover{background:#eef5fb}.editor-grid{display:grid;grid-template-columns:1fr 1fr}.editor{min-width:0;display:flex;flex-direction:column}.editor:first-child{border-right:1px solid #e6edf3}.editor-head,.editor-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}.editor-head{padding:23px 24px 13px}.editor-head label{font-size:12px;font-weight:800;color:#2870a2;letter-spacing:.11em}.editor-head span{font-size:12px;color:#8797a8}.editor textarea{width:calc(100% - 48px);margin:0 24px 16px;min-height:290px;resize:vertical;background:transparent;border:0;outline:0;color:#172c45;font-family:inherit;font-size:23px;line-height:1.65;overflow-wrap:anywhere}.editor textarea:focus-visible{outline:2px solid #7aadd2;outline-offset:4px;border-radius:3px}.editor textarea::placeholder{color:#a5b3c1;font-size:17px}.output-editor{background:#fafdff}.output-editor textarea{color:#102a50}.preeti-text{font-family:Preeti,serif!important;font-size:27px!important}.editor-foot{min-height:76px;padding:13px 24px;border-top:1px solid #edf1f5;color:#7d8da1;font-size:12px;line-height:1.45}.editor-foot>span{max-width:280px}.foot-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}button{transition:background .2s,box-shadow .2s}button:focus-visible,a:focus-visible{outline:3px solid #eeb75d;outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.text-button{border:0;background:transparent;color:#2c658e;padding:9px 8px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;border-radius:7px}.copy-button{background:#ecab36;color:#152d47;border:0;padding:11px 14px;border-radius:8px;font:700 13px inherit;font-family:inherit;font-size:13px;font-weight:750;cursor:pointer;white-space:nowrap}.copy-button:hover:not(:disabled){background:#f3bd59}.below{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:22px}.help-card,.tip-card{border-radius:13px;border:1px solid #e0e7ef;background:#fff;padding:22px;display:flex;gap:17px}.help-icon{display:grid;place-items:center;width:44px;height:44px;background:#eaf2f9;color:#27668f;border-radius:10px;font-size:25px;font-weight:700;flex-shrink:0}.help-card h2{font-size:16px;margin:0 0 6px}.help-card p,.tip-card p{margin:0;color:#62748a;font-size:14px;line-height:1.65}.help-card a{display:inline-block;margin-top:11px;color:#216896;text-decoration:none;font-size:14px;font-weight:750}.help-card a:hover{text-decoration:underline}.tip-card{display:block;background:#fff9ec;border-color:#f6e8cc}.tip-label{color:#a66e12;font-size:11px;font-weight:850;letter-spacing:.1em}.tip-card p{margin-top:8px;color:#655b49}.footer{display:flex;justify-content:space-between;padding:37px 0;color:#8898a8;font-size:12px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#102a50;color:white;padding:12px 18px;border-radius:9px;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 10px 25px #102a5033}#toast.visible{opacity:1;transform:translate(-50%,0)}@media(max-width:760px){.wrap{width:min(100% - 28px,560px)}.top-inner{height:70px}.top-note,.privacy{display:none}.intro{padding:32px 0 22px}.intro p{font-size:15px}.toolbar{align-items:stretch;flex-wrap:wrap;padding:12px}.direction{flex:1}.direction button{flex:1;font-size:12px;padding:11px 7px}.swap{padding:9px 11px}.swap span{display:none}.editor-grid{grid-template-columns:1fr}.editor:first-child{border-right:0;border-bottom:1px solid #e6edf3}.editor-head{padding:18px 17px 9px}.editor textarea{width:calc(100% - 34px);margin:0 17px 12px;min-height:165px;font-size:20px}.editor-foot{padding:11px 17px;min-height:64px}.editor-foot>span{max-width:180px;font-size:11px}.foot-actions{gap:0}.text-button{padding:8px 5px;font-size:12px}.copy-button{font-size:12px;padding:10px}.below{grid-template-columns:1fr}.footer{display:block;text-align:center;line-height:2}.footer span{display:block}}@media(max-width:390px){.editor-foot{flex-wrap:wrap}.editor-foot>span{max-width:none}.foot-actions{margin-left:auto}}

.preeti-text::placeholder{font-family:ui-sans-serif,system-ui,sans-serif;font-size:17px}
.formatbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:10px 18px;background:#f6f9fc;border-bottom:1px solid #e6edf3}.format-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:#698099;margin-right:8px}.formatbar button,.formatbar select{font-family:inherit;border:1px solid transparent;background:transparent;color:#213e5d;padding:8px 10px;border-radius:6px;font-size:14px;cursor:pointer;min-height:35px}.formatbar select{border-color:#d9e5ee;background:white;min-width:127px;margin-right:5px}.formatbar button:hover{background:#e6eef7}.divider{width:1px;height:24px;background:#d9e4ed;margin:0 5px}.rich-editor{width:calc(100% - 48px);margin:0 24px 16px;min-height:290px;outline:0;color:#172c45;font-size:23px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.rich-editor:focus-visible{outline:2px solid #7aadd2;outline-offset:4px;border-radius:3px}.rich-editor:empty:before{content:attr(data-placeholder);color:#a5b3c1;font:17px/1.6 ui-sans-serif,system-ui,sans-serif;pointer-events:none}.rich-editor.preeti-text{font-family:Preeti,serif;font-size:27px}.rich-editor h2{font-size:1.35em;line-height:1.35;margin:.4em 0}.rich-editor p,.rich-editor div{margin:0}.rich-editor ul,.rich-editor ol{padding-left:1.8em}.editor-foot>span{max-width:245px}.foot-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:760px){.formatbar{padding:10px;gap:2px}.format-label{display:none}.formatbar button{padding:7px 8px}.formatbar select{font-size:12px;min-width:110px}.divider{margin:0 2px}.rich-editor{width:calc(100% - 34px);margin:0 17px 12px;min-height:180px;font-size:20px}.editor-foot>span{max-width:130px}.editor-foot .foot-actions{gap:2px}}
.brand-logo-wrap{width:51px;height:51px;display:grid;place-items:center;background:#fff;border-radius:10px;overflow:hidden;flex-shrink:0}.brand-logo{display:block;width:45px;height:49px;object-fit:contain}.guide{max-width:940px;padding:28px 0 8px}.guide h2{font-size:21px;line-height:1.35;color:#102a50;margin:0 0 12px}.guide p{color:#566c82;font-size:15px;line-height:1.75;margin:0 0 13px}@media(max-width:760px){.brand-logo-wrap{width:43px;height:43px}.brand-logo{width:39px;height:42px}.guide{padding:25px 0 0}.guide h2{font-size:18px}.guide p{font-size:14px}}
/* List labels are numbering metadata, not Preeti keyboard text. */
.rich-editor.preeti-text ol li::marker,.rich-editor.preeti-text ul li::marker{font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:.78em}
.romanized-option{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:5px 8px;color:#214766;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.romanized-option[hidden],.romanized-preview[hidden]{display:none}.romanized-option input{accent-color:#102a50}.romanized-option span{font-weight:500;color:#638199}.romanized-preview{margin:-5px 24px 13px;padding:9px 12px;background:#eaf3fc;border-radius:8px;color:#245981;font-size:15px;overflow-wrap:anywhere}@media(max-width:760px){.romanized-option{margin-left:0}.romanized-preview{margin:0 17px 12px}}
/* Preeti output has real encoded list prefixes (!=, @=, ...) in the text. */
.rich-editor.preeti-text ol{list-style:none;padding-left:1.3em}
.preeti-list-prefix{font-family:Preeti,serif}
/* Final visual polish */
:root{background:#f3f6fb}body{background:radial-gradient(circle at 92% 4%,#e5effa 0,transparent 30%),#f3f6fb}.topbar{background:linear-gradient(115deg,#0c2447,#16406b);border-bottom:3px solid #f2ad35}.top-note{display:inline-flex;align-items:center;border:1px solid #ffffff38;border-radius:30px;background:#ffffff12;color:#e7f2ff;padding:9px 14px;font-size:12px;font-weight:650;white-space:nowrap}.brand-logo-wrap{box-shadow:0 4px 14px #071c3840}.brand-logo{animation:brothers-float 4s ease-in-out infinite;transform-origin:center 48%}.brand-logo-wrap:hover .brand-logo{animation:brothers-wave .7s ease-in-out}.workspace{box-shadow:0 18px 45px rgba(16,42,80,.09)}.direction button.active{box-shadow:0 3px 11px #0b274a35}.rich-editor:focus{background:linear-gradient(180deg,#fff 0%,#fcfdff 100%)}.help-card,.tip-card{box-shadow:0 5px 20px #132f4a09}@keyframes brothers-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(2deg)}}@keyframes brothers-wave{0%,100%{transform:rotate(0)}50%{transform:rotate(9deg)}}@media(prefers-reduced-motion:reduce){.brand-logo{animation:none}.brand-logo-wrap:hover .brand-logo{animation:none}}
@media(max-width:760px){.top-inner{height:auto;min-height:89px;padding:10px 0;flex-wrap:wrap;gap:9px}.top-note{display:inline-flex;font-size:11px;padding:6px 10px;max-width:100%;white-space:normal}.intro{display:block;padding:28px 0 22px}.intro h1{font-size:clamp(34px,9vw,47px)}.intro p{line-height:1.55}.workspace{border-radius:14px}.toolbar{gap:8px}.direction{width:100%}.direction button{min-height:45px}.swap{margin-left:auto}.editor-head{gap:6px}.editor-head label{font-size:10px;letter-spacing:.08em}.editor-head span{font-size:10px;white-space:nowrap}.editor-foot{flex-wrap:wrap;gap:6px}.editor-foot>span{max-width:none;width:100%}.foot-actions{justify-content:flex-start;width:100%;gap:4px}.formatbar{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.formatbar>*{flex-shrink:0}.romanized-option{margin-left:0}.rich-editor{min-height:165px}.help-card,.tip-card{padding:18px}}
@media(max-width:400px){.top-inner{min-height:104px}.brand{gap:9px}.brand strong{font-size:14px}.brand small{font-size:9px}.formatbar{padding:8px}.copy-button{padding:9px 11px}}
