:root{--accent:#2563eb;--line:#e5e7eb;--muted:#6b7280;--bg:#f8fafc}*{box-sizing:border-box}html,body{color:#111827;background:var(--bg);height:100%;margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,.btn{height:32px;color:inherit;font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;align-items:center;gap:6px;padding:0 12px;display:inline-flex}button:hover:not(:disabled),.btn:hover{background:#f3f4f6}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:#1d4ed8}button.link{height:auto;color:var(--accent);background:0 0;border:0;padding:2px 6px}button.link:hover{background:0 0;text-decoration:underline}button.danger{color:#b91c1c}code{background:#eef2ff;border-radius:4px;padding:1px 5px;font-size:13px}.muted{color:var(--muted)}.spacer{flex:1}.top{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;height:56px;padding:0 24px;display:flex}.brand{align-items:center;gap:8px;font-weight:600;display:flex}.brand .mark{background:var(--accent);color:#fff;border-radius:6px;place-items:center;width:26px;height:26px;font-size:13px;display:grid}.tag{color:#92400e;background:#fef3c7;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:500}.me input{height:30px;font:inherit;border:1px solid #d1d5db;border-radius:6px;width:160px;padding:0 8px}.wrap{max-width:1240px;margin:0 auto;padding:24px}.intro h1{margin:0 0 4px;font-size:22px}.intro p{color:var(--muted);margin:0 0 20px}.actions{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}table.files{border-collapse:collapse;border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;overflow:hidden}.files th,.files td{text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;padding:10px 12px}.files th{color:var(--muted);background:#f9fafb;font-size:12px;font-weight:500}.files tr:last-child td{border-bottom:0}.files .name{align-items:center;gap:8px;font-weight:500;display:flex}.files .ext{text-transform:uppercase;color:#fff;background:#6b7280;border-radius:4px;padding:2px 5px;font-size:10px;font-weight:700}.files .ext.xlsx{background:#2e7d4f}.files .ext.docx{background:#2b5797}.files .ext.pptx{background:#c2410c}.files .ops{text-align:right;line-height:1.9}.files .ops button{white-space:nowrap}.files .unsupported{color:var(--muted);font-size:12px}#editor-view{background:#fff;flex-direction:column;display:flex;position:fixed;inset:0}#editor-view[hidden]{display:none}.editor-bar{border-bottom:1px solid var(--line);background:#f9fafb;align-items:center;gap:8px;height:44px;padding:0 10px;display:flex}.editor-host{flex:1;min-height:0}.editor-host>*,.modal-body>*{width:100%;height:100%;display:block}#modal{z-index:10;background:#0f172a80;place-items:center;display:grid;position:fixed;inset:0}#modal[hidden]{display:none}.modal-box{background:#fff;border-radius:10px;flex-direction:column;width:min(1200px,94vw);height:88vh;display:flex;overflow:hidden;box-shadow:0 20px 50px #0000004d}.modal-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:8px 12px;font-weight:500;display:flex}.modal-body{flex:1;min-height:0}#log{border-left:1px solid var(--line);z-index:20;background:#fff;flex-direction:column;width:380px;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #00000014}#log[hidden]{display:none}.log-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:10px 12px;display:flex}#log-items{margin:0;padding:0;list-style:none;overflow:auto}#log-items li{border-bottom:1px solid #f3f4f6;padding:8px 12px;font-size:13px}#log-items .when{color:var(--muted);font-size:12px}#log-items .st{text-align:center;background:#e5e7eb;border-radius:4px;min-width:18px;margin-right:6px;padding:0 4px;font-size:11px;font-weight:700;display:inline-block}#log-items .st.s2,#log-items .st.s6{color:#166534;background:#dcfce7}#log-items .st.s3,#log-items .st.s7{color:#991b1b;background:#fee2e2}button[hidden]{display:none}
