@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Serif+Bengali:wght@400;500;600;700&display=swap";:root{color-scheme:light;--bg: #f7f7fa;--surface: #fff;--surface-soft: #f4f2fb;--text: #191620;--muted: #706a78;--border: #e8e5ed;--border-strong: #d8d2e2;--primary: #5b35d5;--primary-hover: #4826b7;--success: #16803c;--warning: #b7791f;--error: #c7353e;--radius-sm: 8px;--radius-md: 14px;--radius-lg: 20px;--shadow-sm: 0 1px 2px rgba(25, 22, 32, .05);--shadow-md: 0 10px 30px rgba(25, 22, 32, .08);font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;height:100%}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);overflow:hidden}button,input,textarea,select{font:inherit}button{border:0}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(91,53,213,.22);outline-offset:3px}.app-shell{height:100vh;display:flex;flex-direction:column;overflow:hidden}.app-header{height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(16px,3vw,40px);border-bottom:1px solid var(--border);background:#fffffff5;box-shadow:var(--shadow-sm);z-index:5}.brand-text{display:grid;gap:2px}.brand-text strong{font-size:1.35rem;letter-spacing:-.045em}.brand-text span,.muted-text,.quiet-note{color:var(--muted);font-size:.9rem}.header-actions,.row,.review-actions,.editor-statusbar,.correction-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.header-wordcount{color:var(--muted);font-weight:650;white-space:nowrap}.button-primary,.button-secondary,.ghost-button,.text-button,.review-tab,.review-toggle{min-height:42px;border-radius:999px;padding:0 16px;font-weight:700;cursor:pointer}.button-primary{background:var(--primary);color:#fff}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-primary:disabled{opacity:.55;cursor:not-allowed}.button-secondary,.ghost-button{background:#fff;border:1px solid var(--border);color:var(--text)}.button-secondary:hover,.ghost-button:hover{border-color:var(--border-strong);background:var(--surface-soft)}.text-button{background:transparent;color:var(--primary);padding:0 8px}.runtime-chip{display:inline-flex;align-items:center;min-height:32px;border-radius:999px;padding:0 10px;border:1px solid var(--border);font-size:.84rem;font-weight:750}.runtime-chip--ok{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.runtime-chip--warn{color:#92400e;background:#fffbeb;border-color:#fde68a}.runtime-chip--error{color:#991b1b;background:#fef2f2;border-color:#fecaca}.runtime-chip--info{color:#4338ca;background:#eef2ff;border-color:#c7d2fe}.runtime-banner{display:flex;align-items:center;gap:12px;padding:10px clamp(16px,3vw,40px);border-bottom:1px solid var(--border);background:#fffbeb;color:#6b4e16}.workspace{width:min(1440px,100%);margin:0 auto;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,30%);gap:24px;padding:24px clamp(16px,3vw,32px);overflow:hidden}.editor-column{min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px;overflow:auto;padding:2px;scrollbar-width:thin}.context-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.context-item{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:650}.context-item select{width:auto;min-width:130px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:10px 34px 10px 14px;color:var(--text)}.review-toggle{display:none;background:#fff;border:1px solid var(--border);color:var(--primary)}.editor-card,.review-panel,.rewrite-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}.editor-card{padding:clamp(18px,3vw,32px);display:grid;gap:18px}.editor-card__header{display:flex;justify-content:space-between;gap:20px;align-items:end}.eyebrow{margin:0 0 4px;color:var(--primary);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.editor-card h1{margin:0;font-size:clamp(1.35rem,2.2vw,2rem);letter-spacing:-.04em}.editor-card__status{margin:0;color:var(--muted)}.editor-frame{position:relative;min-height:clamp(440px,62vh,680px);overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff}.editor-highlight-layer,.editor-textarea{position:absolute;top:0;right:0;bottom:0;left:0;margin:0;padding:clamp(22px,3vw,40px);border:0;border-radius:var(--radius-md);font-family:"Noto Serif Bengali",Noto Sans Bengali,serif;font-size:19px;line-height:1.85;letter-spacing:0;white-space:pre-wrap;overflow:auto;word-break:break-word}.editor-highlight-layer{z-index:2;pointer-events:none;color:var(--text)}.editor-textarea{z-index:1;resize:none;background:transparent;color:transparent;caret-color:var(--text)}.editor-textarea::placeholder{color:#9b95a7}.editor-textarea::selection{background:#5b35d529;color:transparent}.inline-issue{position:relative;pointer-events:auto;cursor:pointer;text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:var(--error);text-decoration-thickness:1.5px;text-underline-offset:5px}.inline-issue.grammar{text-decoration-color:var(--warning)}.inline-issue.clarity{text-decoration-color:var(--primary)}.correction-popover{position:absolute;left:0;top:calc(100% + 10px);z-index:50;display:grid;gap:10px;width:min(300px,calc(100vw - 32px));padding:14px;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-md);font-family:Inter,system-ui,sans-serif;font-size:.9rem;line-height:1.45;text-decoration:none;color:var(--text)}.popover-close,.review-close{width:36px;height:36px;border-radius:999px;background:var(--surface-soft);cursor:pointer}.correction-type,.suggestion-card__type{display:inline-flex;align-items:center;gap:7px;font-size:.77rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.issue-dot{width:8px;height:8px;border-radius:99px;background:var(--error);display:inline-block}.correction-change,.suggestion-card__change{display:flex;align-items:center;gap:8px;font-weight:750}.correction-change strong,.suggestion-card__change strong{color:var(--success)}.button-compact{min-height:34px;padding:0 12px}.editor-statusbar{border-top:1px solid var(--border);padding-top:12px;color:var(--muted);font-size:.9rem}.review-panel{min-height:0;display:flex;flex-direction:column;gap:14px;padding:20px;overflow:auto;position:sticky;top:16px;align-self:start;max-height:calc(100vh - 116px)}.review-panel__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-panel h2{margin:0;font-size:1.2rem}.review-count,.review-panel__status{margin:4px 0 0;color:var(--muted);font-size:.92rem}.review-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:4px;background:var(--surface-soft);border-radius:999px}.review-tab{min-height:36px;padding:0 10px;background:transparent;color:var(--muted);font-size:.84rem}.review-tab--active{background:#fff;color:var(--text);box-shadow:var(--shadow-sm)}.suggestion-list{display:grid;gap:12px}.review-suggestion{border-radius:var(--radius-md)}.review-suggestion--active{box-shadow:0 0 0 3px #5b35d529}.suggestion-card,.rewrite-option{display:grid;gap:12px;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;background:#fff}.suggestion-card__eyebrow,.suggestion-card__label{color:var(--muted);font-size:.76rem;font-weight:800;text-transform:uppercase}.suggestion-card__footer,.suggestion-card__secondary-actions,.suggestion-card__options,.suggestion-card__rewrite-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.suggestion-card p{margin:0}.empty-state{border:1px dashed var(--border-strong);border-radius:var(--radius-md);padding:24px;color:var(--muted);background:#fbfbfd}.corrected-preview{border-top:1px solid var(--border);padding-top:12px}.corrected-preview p{font-family:"Noto Serif Bengali",serif;line-height:1.8}.rewrite-panel{padding:20px}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#19162052;z-index:80;display:flex;justify-content:flex-end}.settings-drawer{width:min(440px,100%);height:100%;overflow:auto;background:#fff;padding:22px;display:grid;align-content:start;gap:16px;box-shadow:var(--shadow-md)}label{display:grid;gap:7px;color:var(--muted);font-weight:650}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);padding:11px 12px;background:#fff;color:var(--text)}.checkbox-row{display:flex;align-items:center;gap:10px}.checkbox-row input{width:auto}.developer-diagnostics{border:1px solid var(--border);border-radius:var(--radius-md);padding:12px}.developer-diagnostics pre{max-height:280px;overflow:auto;background:#111827;color:#e5e7eb;padding:12px;border-radius:10px;font-size:.78rem}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.review-close{display:none}@media (max-width: 1279px){.workspace{grid-template-columns:minmax(0,1fr) 320px;gap:18px}.header-review-button{display:none}}@media (max-width: 899px){body{overflow:hidden}.workspace{display:block;overflow:auto}.editor-column{overflow:visible}.review-toggle{display:inline-flex;align-items:center}.review-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:70;max-height:82vh;border-radius:20px 20px 0 0;transform:translateY(105%);transition:transform .18s ease}.review-panel--open{transform:translateY(0)}.review-close{display:inline-grid;place-items:center}.editor-frame{min-height:58vh}.app-header{height:auto;min-height:64px;padding-block:10px}.brand-text span{display:none}.header-actions{justify-content:flex-end}.header-wordcount{display:none}}@media (max-width: 640px){.app-header{gap:8px}.brand-text strong{font-size:1.15rem}.runtime-chip{display:none}.workspace{padding:14px 10px}.context-bar{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.context-item{min-width:max-content}.editor-card{padding:14px;border-radius:16px}.editor-card__header{display:block}.editor-card__status{margin-top:8px}.editor-highlight-layer,.editor-textarea{font-size:17px;line-height:1.8;padding:20px 16px}.editor-frame{min-height:60vh}.button-primary,.button-secondary,.ghost-button,.text-button,.review-toggle{min-height:44px}.review-tabs{grid-template-columns:repeat(2,1fr);border-radius:16px}.correction-actions{align-items:stretch}.correction-actions button{width:100%}.runtime-banner{align-items:flex-start;flex-direction:column}.ghost-button{padding:0 12px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none!important;animation:none!important}}.competition-demo-panel{background:linear-gradient(135deg,#fff,#f4f2fb);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:18px;display:grid;gap:14px}.competition-demo-panel__header{display:flex;justify-content:space-between;align-items:start;gap:12px}.competition-demo-panel h2{margin:2px 0 0;font-size:1.1rem}.competition-demo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.competition-demo-card{min-height:96px;text-align:left;border-radius:var(--radius-md);border:1px solid var(--border);background:#fff;color:var(--text);padding:12px;display:grid;gap:6px;cursor:pointer}.competition-demo-card--active,.competition-demo-card:hover{border-color:var(--primary);box-shadow:0 0 0 3px #5b35d51f}.competition-demo-card span,.competition-demo-detail{color:var(--muted);font-size:.9rem}.competition-demo-detail{display:grid;gap:8px}.competition-demo-detail p{margin:0}
