@import"https://fonts.googleapis.com/css2?family=Literata:wght@400;600&family=Work+Sans:wght@400;500;600&display=swap";:root{--bg-top: #f6f3ee;--bg-bottom: #efe9e1;--shell: #e9e3da;--shell-top: #f7f2ec;--shell-bar: #eae3da;--shell-pill: #cfc7bb;--card: #fffdfb;--text: #3e3a34;--accent: #0f6b5c;--translated: #2c92d1;--highlight: #cfeae4;--popup-text: #2d2924;--muted: #7a736b;--muted-2: #5b554e;--shadow: 0 8px 24px rgba(0, 0, 0, .12);--shadow-soft: 0 3px 12px rgba(0, 0, 0, .1)}*{box-sizing:border-box}html,body{width:100%;height:100%}body{margin:0;font-family:Literata,serif;background:linear-gradient(180deg,var(--bg-top),var(--bg-bottom));color:var(--text)}#app{width:100vw;height:100vh}.page{width:100%;height:100%;background:transparent;position:relative}.progress-bar{position:absolute;top:0;left:0;right:0;height:2px;background:#0f6b5c2e;z-index:2;pointer-events:none}.progress-bar__fill{display:block;height:100%;background:var(--accent);width:0%;transition:width .2s ease}.browser-shell{background:var(--shell);border-radius:18px;padding:8px;height:100%}.reader-card{background:var(--card);border-radius:22px;padding:28px 20px;box-shadow:var(--shadow);position:relative;overflow:hidden;height:100%}.reader-text{font-size:22px;line-height:1.55;letter-spacing:.2px;height:100%;width:100%;overflow-x:hidden;overflow-y:auto;padding-right:6px;-webkit-overflow-scrolling:touch}.token{white-space:pre-wrap}.word-token{cursor:pointer;transition:background .2s ease;border-radius:6px;padding:2px 4px;font-weight:400}.word-token.is-translated{color:var(--translated)}.word-token.is-selected{background:var(--highlight);color:var(--accent);text-shadow:.4px 0 0 currentColor,-.4px 0 0 currentColor}.popup{position:fixed;left:50%;top:50%;width:min(92vw,640px);height:auto;min-width:280px;max-height:min(50vh,520px);background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:18px 20px;opacity:0;pointer-events:none;z-index:10;transform:translate(-50%,-50%) scale(.98);transition:opacity .2s ease,transform .2s ease;display:flex;flex-direction:column;gap:10px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.popup::-webkit-scrollbar{width:0;height:0}.popup.is-visible{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}.popup-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.popup-word{font-family:Work Sans,sans-serif;font-size:16px;font-weight:500;color:var(--muted);flex:1;min-width:0;word-break:break-word}.popup-refresh{width:32px;height:32px;border-radius:999px;border:1px solid var(--shell-bar);background:#fff;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s ease,color .2s ease,transform .2s ease}.popup-refresh svg{width:16px;height:16px}.popup-refresh:hover:not(:disabled){border-color:var(--muted);color:var(--text);transform:translateY(-1px)}.popup-refresh:disabled{cursor:default;opacity:.5}.popup-refresh.is-loading svg{animation:popup-spin .8s linear infinite}@keyframes popup-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.popup-refresh:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.popup-translation{font-family:Literata,serif;font-size:22px;font-weight:600;color:var(--popup-text);line-height:1.2}.popup-subline{font-family:Work Sans,sans-serif;font-size:12px;color:var(--muted);line-height:1.4}.popup-usage{display:flex;flex-direction:column;gap:12px}.usage-item{display:flex;flex-direction:column;gap:4px}.usage-label{font-family:Work Sans,sans-serif;font-size:12px;color:var(--accent)}.usage-pt{font-family:Work Sans,sans-serif;font-size:15px;color:var(--text);line-height:1.4}.usage-translation{font-family:Work Sans,sans-serif;font-size:15px;color:var(--muted-2);line-height:1.3}.popup-forms{display:flex;flex-direction:column;gap:8px}.forms-title{font-family:Work Sans,sans-serif;font-size:12px;letter-spacing:.6px;color:var(--muted)}.forms-table{border:1px solid var(--shell-bar);border-radius:8px;overflow:hidden;background:#fff}.forms-row{display:grid;grid-template-columns:minmax(84px,120px) minmax(0,1fr);border-top:1px solid var(--shell-bar)}.forms-row:first-child{border-top:none}.forms-cell{padding:8px 10px;font-family:Work Sans,sans-serif;font-size:12px;line-height:1.3;color:var(--text);overflow-wrap:anywhere}.forms-cell.tempo{font-weight:500;color:var(--muted-2)}.forms-head .forms-cell{font-weight:600;color:var(--muted-2)}@media (max-width: 480px){.reader-card{padding:24px 16px}.reader-text{font-size:22px}.popup{padding:16px}.popup-refresh{width:28px;height:28px}.popup-refresh svg{width:14px;height:14px}.popup-translation{font-size:20px}.forms-row{grid-template-columns:minmax(72px,96px) minmax(0,1fr)}.forms-cell{padding:6px 8px;font-size:11px}}@media (max-width: 420px){.forms-head{display:none}.forms-row{grid-template-columns:1fr}.forms-cell.tempo{padding-bottom:2px}}@media (prefers-reduced-motion: reduce){.popup-refresh.is-loading svg{animation:none}}.auth-page{display:flex;align-items:center;justify-content:center;padding:16px}.auth-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;font-family:Work Sans,sans-serif;font-size:14px;color:var(--muted-2)}.auth-shell{width:min(420px,96vw);height:min(780px,96vh);display:flex;flex-direction:column}.auth-card{flex:1;background:var(--card);border-radius:22px;box-shadow:var(--shadow);padding:82px 28px 32px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}.auth-decor{position:absolute;border-radius:999px;background:#f1e8dc;opacity:.85}.auth-decor--large{width:140px;height:140px;top:40px;right:20px}.auth-decor--small{width:96px;height:96px;top:120px;left:20px;background:#efe9e1}.auth-badge{width:88px;height:88px;border-radius:999px;background:linear-gradient(135deg,#cfeae4,#e7f4f1);display:inline-flex;align-items:center;justify-content:center;color:var(--accent);box-shadow:var(--shadow-soft)}.auth-badge svg{width:64px;height:64px}.auth-hero{display:flex;flex-direction:column;gap:8px;align-items:center;z-index:1}.auth-title{margin:0;font-size:24px;font-weight:600;color:var(--popup-text)}.auth-subtitle{margin:0;font-family:Work Sans,sans-serif;font-size:13px;color:#6c655d}.auth-features{background:var(--shell-top);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:12px;width:100%;max-width:260px;font-family:Work Sans,sans-serif;font-size:12px;color:#4e4841;z-index:1}.auth-feature{display:flex;align-items:center;gap:10px;text-align:left}.auth-feature__dot{width:18px;height:18px;border-radius:999px;background:var(--highlight)}.auth-actions{display:flex;flex-direction:column;gap:14px;width:100%;max-width:260px;z-index:1}.auth-divider{display:flex;align-items:center;gap:12px;font-family:Work Sans,sans-serif;font-size:12px;color:#8a8278}.auth-divider span{flex:1;height:1px;background:#e6e0d7}.auth-button{border-radius:14px;padding:12px 16px;font-family:Work Sans,sans-serif;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.auth-button:disabled{cursor:not-allowed;opacity:.7;transform:none;box-shadow:none}.auth-button--primary{background:var(--accent);color:#fff;box-shadow:var(--shadow-soft)}.auth-button--primary:hover:not(:disabled){transform:translateY(-1px)}.auth-button--secondary{background:transparent;color:var(--accent);border:2px solid var(--accent)}.auth-footer{margin:0;font-family:Work Sans,sans-serif;font-size:11px;color:#9a9288;z-index:1}.auth-form{width:100%;max-width:260px;display:flex;flex-direction:column;gap:14px;text-align:left;font-family:Work Sans,sans-serif;z-index:1}.auth-label{font-size:12px;color:#6c655d}.auth-input{width:100%;border-radius:12px;border:2px solid #e6e0d7;padding:12px 14px;font-size:14px;font-family:Work Sans,sans-serif;background:#fffdfb;color:var(--popup-text)}.auth-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0f6b5c1f}.auth-error{background:#f7e9e9;color:#8f3a3a;padding:10px 12px;border-radius:10px;font-size:12px}.auth-helper{font-family:Work Sans,sans-serif;font-size:12px;color:#8a8278}.auth-helper a{color:inherit;text-decoration:none}.auth-helper a:hover{color:var(--accent)}@media (max-width: 420px){.auth-card{padding:24px 20px}.auth-shell{width:100%;height:100%}}
