:root{--ink:#17201d;--muted:#69736f;--line:#dfe5e1;--paper:#fff;--bg:#f4f6f3;--green:#173d32;--accent:#d7ff4f;--danger:#b42318;--shadow:0 18px 50px rgba(22,43,34,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:74px;padding:0 max(24px,calc((100vw - 1260px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--green);color:var(--accent);font:800 21px/1 Georgia}.brand div{display:flex;flex-direction:column}.brand strong{font-size:16px}.brand small{color:var(--muted);font-size:11px}.privacy{display:flex;align-items:center;gap:8px;color:#476057;font-size:13px}.privacy i{width:8px;height:8px;border-radius:50%;background:#39a66d;box-shadow:0 0 0 4px #e2f4e9}main{max-width:1260px;margin:auto;padding:44px 24px 32px}.hero{margin-bottom:32px}.eyebrow{margin:0 0 12px;color:#527064;font:700 11px/1.2 ui-monospace,monospace;letter-spacing:.18em}.hero h1{margin:0;font:600 clamp(34px,5vw,62px)/1.02 Georgia,"Times New Roman",serif;letter-spacing:-.035em}.hero h1 em{color:#557268;font-weight:400}.hero>p:last-child{max-width:690px;margin:18px 0 0;color:var(--muted);font-size:16px;line-height:1.55}.workspace{display:grid;grid-template-columns:minmax(310px,.78fr) minmax(520px,1.5fr);gap:18px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.panel-heading>div{display:flex;align-items:center;gap:10px}.panel-heading h2{margin:0;font-size:15px}.step{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef2ef;color:#456257;font:700 12px/1 ui-monospace}.text-button{border:0;background:none;color:#315e4f;font-weight:700;cursor:pointer}.dropzone{margin:16px;min-height:144px;border:1.5px dashed #aab9b2;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:.2s}.dropzone:hover,.dropzone.dragover{background:#f4f9f5;border-color:#2d6c56}.upload-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:9px;border-radius:12px;background:var(--green);color:var(--accent);font-size:23px}.dropzone strong{font-size:14px}.dropzone small{margin-top:5px;color:var(--muted)}.empty-state{padding:20px;text-align:center;color:#8a938f;font-size:13px}.file-list{list-style:none;margin:0;padding:0 12px 14px;max-height:510px;overflow:auto}.file-item{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:11px 9px;border-radius:11px;border:1px solid transparent;cursor:pointer}.file-item:hover{background:#f5f7f5}.file-item.active{background:#edf4ef;border-color:#cbdad0}.file-number{display:grid;place-items:center;width:30px;height:36px;border-radius:7px;background:#f1f3f1;font:700 12px/1 ui-monospace;color:#5d6863}.file-meta{min-width:0}.file-meta strong,.file-meta small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-meta strong{font-size:13px}.file-meta small{margin-top:4px;color:var(--muted);font-size:11px}.has-note{color:#26734f!important}.file-actions{display:flex;gap:2px}.file-actions button{width:25px;height:25px;border:0;border-radius:6px;background:transparent;color:#68726e;cursor:pointer}.file-actions button:hover{background:#fff}.file-actions .remove:hover{color:var(--danger)}.selected-name{max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.editor-empty{min-height:555px;display:grid;place-content:center;text-align:center;color:#89938e}.editor-empty span{font:40px Georgia}.editor-empty p{max-width:300px;line-height:1.5}.editor{display:grid;grid-template-columns:minmax(330px,1.2fr) minmax(245px,.8fr);min-height:555px}.hidden{display:none!important}.preview-wrap{display:grid;place-items:center;padding:22px;background:#e8ebe8;position:relative;overflow:auto}.preview-paper{position:relative;width:min(100%,390px);aspect-ratio:297.12/419.04;background:white;box-shadow:0 12px 34px rgba(0,0,0,.16)}#pdfCanvas{width:100%;height:100%;display:block}.note-overlay{position:absolute;left:4%;top:56%;width:66%;padding:3px 5px;border:1px dashed rgba(36,102,76,.55);background:rgba(215,255,79,.2);color:#111;font-size:12px;line-height:1.22;white-space:pre-wrap;overflow-wrap:anywhere;min-height:20px;pointer-events:none}.note-overlay:empty:before{content:"Vị trí note";color:rgba(42,75,62,.48)}.page-count{position:absolute;bottom:9px;right:12px;padding:5px 8px;border-radius:12px;background:rgba(23,32,29,.82);color:#fff;font-size:10px}.controls{padding:22px;border-left:1px solid var(--line)}.field{display:block;margin-bottom:18px}.field>span{display:flex;justify-content:space-between;margin-bottom:8px;font-size:12px;font-weight:700}.field textarea,.field select{width:100%;border:1px solid #ccd4cf;border-radius:9px;background:#fff;color:var(--ink);font:inherit;outline:none}.field textarea{padding:11px;resize:vertical;min-height:116px;font-size:13px;line-height:1.45}.field select{height:39px;padding:0 9px}.field textarea:focus,.field select:focus{border-color:#487564;box-shadow:0 0 0 3px #e5efea}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.range-field input{width:100%;accent-color:var(--green)}.apply-all{display:flex;align-items:flex-start;gap:8px;margin:4px 0 17px;color:#4e5d57;font-size:12px;line-height:1.4}.apply-all input{margin-top:2px;accent-color:var(--green)}.secondary-button{width:100%;height:40px;border:1px solid #bdc9c2;border-radius:9px;background:#fff;color:#2f5548;font-weight:700;cursor:pointer}.secondary-button:hover{background:#f3f7f4}.export-bar{margin-top:18px;padding:17px 18px 17px 22px;display:flex;align-items:center;justify-content:space-between;background:var(--green);color:#fff;border-radius:15px;box-shadow:var(--shadow)}.export-bar>div{display:flex;flex-direction:column;gap:4px}.export-bar strong{font-size:15px}.export-bar div span{color:#b8c9c1;font-size:11px}.primary-button{min-width:210px;height:52px;border:0;border-radius:11px;background:var(--accent);color:#14241e;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-weight:800}.primary-button small{margin-top:2px;color:#52654d;font-weight:500}.primary-button:disabled{opacity:.45;cursor:not-allowed}.status{min-height:20px;text-align:center;color:#43564e;font-size:13px}.status.error{color:var(--danger)}footer{padding:20px;text-align:center;color:#8b9490;font-size:11px}@media(max-width:900px){.workspace{grid-template-columns:1fr}.editor{grid-template-columns:1fr}.controls{border-left:0;border-top:1px solid var(--line)}.preview-wrap{min-height:540px}}@media(max-width:560px){.topbar{height:64px;padding:0 16px}.privacy{font-size:0}.privacy:after{content:"Xử lý riêng tư";font-size:11px}.hero{margin-bottom:22px}main{padding:30px 12px 24px}.hero h1{font-size:36px}.hero>p:last-child{font-size:14px}.panel{border-radius:14px}.editor{display:block}.preview-wrap{min-height:420px;padding:15px}.controls{padding:18px}.export-bar{position:sticky;bottom:8px;z-index:5;padding:13px}.export-bar>div{display:none}.primary-button{width:100%}}
.account-action,.secondary-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;padding:10px 16px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.account-action:hover,.secondary-button:hover{border-color:var(--accent);color:var(--accent)}
.account-shell{padding:22px}.account-dialog form{display:grid;gap:16px}.account-primary{width:100%}.auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}.google-button{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}.google-button:hover{border-color:#9a8274}.google-button svg{width:18px;height:18px}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.auth-switch{display:block;margin:18px auto 0}
@media(max-width:760px){.privacy{display:none}.topbar-actions{gap:6px}.account-action,.feedback-open{padding:8px 10px;font-size:13px}.account-buttons{grid-template-columns:1fr}}
.file-item.dragging{opacity:.45}.file-item.drag-target{border-color:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 24%,transparent)}.file-item{cursor:grab}.file-item:active{cursor:grabbing}
.commerce-note-toggle{display:flex;align-items:flex-start;gap:10px;padding:12px;margin-top:6px;border:1px solid var(--line);border-radius:10px;background:#f6f9f7;color:var(--ink);cursor:pointer}.commerce-note-toggle input{margin-top:3px;accent-color:var(--green)}.commerce-note-toggle span{display:grid;gap:4px}.commerce-note-toggle strong{font-size:12px}.commerce-note-toggle small{color:var(--muted);font-size:11px;line-height:1.4}
.system-footer{max-width:1260px;margin:0 auto;padding:30px 24px 34px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:24px;border-top:1px solid var(--line);text-align:left}.system-footer div{display:grid;gap:5px}.system-footer strong{color:var(--ink);font-size:14px}.system-footer span,.system-footer small{color:var(--muted)}.system-footer nav{display:flex;flex-wrap:wrap;gap:8px}.system-footer a{padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-weight:700;font-size:12px}.system-footer a:hover{border-color:var(--green);color:var(--green)}.system-footer a[aria-current=page]{background:var(--green);border-color:var(--green);color:var(--accent)}
@media(max-width:760px){.system-footer{grid-template-columns:1fr;gap:15px}.system-footer nav{order:2}.system-footer small{order:3}}
