
:root{color-scheme:light;--ink:#1c2530;--muted:#626d7b;--line:#d3dae1;--soft:#f6f8fa;--accent:#098f93;--accent-hover:#08787c;--danger:#c63838;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans JP",sans-serif;color:var(--ink);background:#fff;font-size:15px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);padding:7px 13px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:var(--soft);text-decoration:none}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--accent);border-color:var(--accent);color:white;font-weight:650;min-height:44px}button.primary:hover{background:var(--accent-hover)}.danger{color:var(--danger);border-color:#eabebe}input,textarea{width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink)}input::placeholder,textarea::placeholder{color:#737e8c}textarea{resize:vertical;min-height:125px;font-family:ui-monospace,Consolas,monospace;font-size:14px}:focus-visible{outline:3px solid #66c5c8;outline-offset:3px}[hidden]{display:none!important}.wrap{width:min(1100px,calc(100% - 48px));margin-inline:auto}.brand{display:flex;align-items:center;gap:22px;padding-block:20px}.brand a{font-size:25px;font-weight:760;color:var(--ink);letter-spacing:-.7px}.brand span{color:var(--muted);font-size:14px}.intro{text-align:center;margin:26px 0 25px}.intro h1{font-size:42px;letter-spacing:-1px;line-height:1.3;margin:0 0 8px;font-weight:750}.intro p{color:var(--muted);font-size:19px;margin:0}h2{font-size:19px;margin:0;font-weight:680}.upload-grid{display:grid;grid-template-columns:1.48fr 1fr;gap:12px}.drop-panel,.paste-panel{border:1px solid var(--line);border-radius:6px;padding:16px}.drop-inner{min-height:260px;height:100%;background:var(--soft);border:1.5px dashed #bcc7d1;border-radius:5px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px}.drop-inner h2{font-size:23px}.drop-inner p{color:var(--muted);margin:8px 0 16px}.drop-inner .primary{padding-inline:34px}.upload-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.paste-panel{display:flex;flex-direction:column;gap:10px}.paste-panel h2{font-size:16px;margin-bottom:0}.paste-panel textarea{flex:1}.library{margin-top:33px;padding-bottom:48px}.library-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.library-head h2{font-size:23px}.library-head input{max-width:320px;font-size:14px}#count{font-size:13px;font-weight:400;color:var(--muted);margin-left:8px}.table-wrap{border:1px solid var(--line);border-radius:5px;overflow:hidden}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:var(--soft);color:#45515f;font-weight:600;white-space:nowrap}th,td{padding:12px 16px;border-bottom:1px solid var(--line)}td{overflow-wrap:anywhere}td:first-child{font-weight:600;max-width:260px}td:nth-child(2){max-width:180px;color:var(--muted)}td:nth-child(3),td:nth-child(4){white-space:nowrap;color:var(--muted)}tbody tr:last-child td{border-bottom:0}.tree-cell{--tree-depth:0}.tree-depth-1{--tree-depth:1}.tree-depth-2{--tree-depth:2}.tree-depth-3{--tree-depth:3}.tree-depth-4{--tree-depth:4}.tree-depth-5{--tree-depth:5}.tree-depth-6{--tree-depth:6}.tree-depth-7{--tree-depth:7}.tree-depth-8{--tree-depth:8}.file-row .tree-cell{padding-inline-start:calc(16px + var(--tree-depth) * 20px)}.file-row:hover td{background:#f9fbfc}.file-title-link{color:var(--ink);text-decoration:underline;text-decoration-color:#9bc7c9;text-underline-offset:3px}.file-title-link:hover{color:var(--accent);text-decoration-color:currentColor}.folder-row td{padding:0;background:#f2f6f7}.folder-row:not(:first-child) td{border-top:1px solid #c8d4d8}.folder-row-inner{display:flex;align-items:stretch}.folder-toggle{flex:1;min-width:0;min-height:42px;justify-content:flex-start;gap:7px;padding:8px 16px 8px calc(16px + var(--tree-depth) * 20px);border:0;border-radius:0;background:transparent;color:var(--ink);text-align:left}.folder-toggle:hover{background:#eaf1f2}.folder-add,.folder-delete{align-self:center;flex:none;min-height:30px;margin:6px 6px 6px 0;padding:4px 9px;background:transparent;font-size:12px}.folder-delete{margin-right:8px}.folder-caret{width:14px;color:var(--accent);font-size:18px;font-weight:500;line-height:1;text-align:center}.folder-count{color:var(--muted);font-size:12px;font-weight:400}.row-actions{display:flex;align-items:center;gap:6px}.row-actions button,.row-actions .button{font-size:12px;padding:5px 8px;min-height:34px}.empty{text-align:center;color:var(--muted);font-size:14px;margin:0;padding:30px}.pager{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px}.pager p{margin:0;color:var(--muted);font-size:13px}.pager-controls,.page-numbers{display:flex;align-items:center;gap:6px}.pager button{min-width:38px;font-size:13px;padding-inline:10px}.page-numbers button[aria-current=page]{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:650}.page-gap{color:var(--muted);padding-inline:3px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:7px;padding:13px 22px;max-width:calc(100% - 32px);z-index:100;box-shadow:0 6px 24px #0002;overflow-wrap:anywhere}#toast.error{background:#9c3030}#drop-overlay{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:#effcfbed;border:6px dashed var(--accent);pointer-events:none;text-align:center;color:var(--accent)}#drop-overlay h2{font-size:30px}#progress{font-size:13px;margin-bottom:0}.toolbar{display:flex;align-items:center;gap:18px;padding:10px 112px 10px 20px;border-bottom:1px solid var(--line);background:white;min-height:59px}.toolbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:90px}.toolbar nav{display:flex;align-items:center;gap:8px;font-size:12px}.toolbar button,.toolbar .button{font-size:12px;min-height:34px}.toolbar .back-button{font-weight:650}.toolbar nav>a:first-child{margin-right:8px}body[data-page=viewer]{height:100dvh;display:flex;flex-direction:column}iframe{border:0;display:block;width:100%;flex:1;min-height:0;background:#fff}#toggle-toolbar{position:fixed;top:12px;right:12px;font-size:12px;min-height:34px;z-index:5;box-shadow:0 2px 5px #0001}body.collapsed .toolbar{display:none}#retry{margin-top:12px}
.logout-form{display:flex;margin:0}.brand .logout-form{margin-left:auto}.token-shell{min-height:100dvh;padding:18px 35px;background:#faf9f6}.token-panel{width:min(800px,100%);padding:48px 50px 50px;border:1px solid #cbc7bd;background:#fff}.token-panel h1{margin:0;padding-bottom:10px;border-bottom:1px solid #cbc7bd;color:#765020;font-size:21px;font-weight:500}.token-lead{max-width:620px;margin:22px 0 26px;color:#765020;font-size:18px;line-height:1.9}.token-form{display:grid;gap:8px}.token-form label{color:#765020;font-size:18px}.token-form input{height:60px;border:2px solid #de3a27;border-radius:0;font-size:20px}.token-form button{width:max-content;margin-top:10px;padding:11px 26px;border:0;border-radius:0;background:#1b1a17;color:#fff;font-size:17px;font-weight:650}.token-form button:hover{background:#39362f}.token-error{margin:14px 0 0;color:#de3a27;font-size:17px}
@media(max-width:900px){.toolbar{align-items:flex-start;flex-direction:column;gap:6px}.toolbar nav{flex-wrap:wrap}.table-wrap{overflow-x:auto}table{min-width:820px}.toolbar strong{max-width:100%;font-size:14px}}
@media(max-width:640px){.wrap{width:calc(100% - 32px)}.brand{padding-block:16px;gap:6px;flex-direction:column;align-items:flex-start}.brand a{font-size:23px}.brand span{font-size:12px}.brand .logout-form{margin-left:0}.intro{margin:20px 0}.intro h1{font-size:29px;letter-spacing:-.6px}.intro p{font-size:14px}.upload-grid{grid-template-columns:1fr}.drop-inner{min-height:210px}.drop-inner h2{font-size:20px}.drop-inner h2 span{display:block}.paste-panel{padding:16px}.paste-panel textarea{min-height:135px}.library{margin-top:26px}.library-head{align-items:stretch;flex-direction:column;gap:12px}.library-head input{max-width:none}.library-head h2{font-size:21px}.pager{align-items:stretch;flex-direction:column;gap:9px}.pager p{text-align:center}.pager-controls{justify-content:space-between}.page-numbers{gap:4px}.pager button{min-width:36px;padding-inline:8px}.toolbar{padding:10px 100px 10px 12px}.toolbar nav{gap:6px}.toolbar button,.toolbar .button{padding:5px 8px}.toolbar nav>a:first-child{margin:0}#toast{bottom:16px;width:max-content}#drop-overlay h2{font-size:23px}.token-shell{padding:12px}.token-panel{padding:30px 22px}.token-lead{font-size:16px}.token-form label,.token-error{font-size:16px}}
.toolbar{gap:12px;padding:8px 112px 8px 16px}.toolbar-documents{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.toolbar .document-tabs{display:flex;align-items:flex-end;flex-wrap:nowrap;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 0}.toolbar .document-tabs>a:first-child{margin-right:0}.document-tab{display:block;flex:0 0 auto;max-width:220px;padding:7px 12px 8px;border:1px solid var(--line);border-bottom-color:var(--accent);border-radius:5px 5px 0 0;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.35;text-decoration:none}.document-tab:hover{background:white;color:var(--ink);text-decoration:none}.document-tab[aria-current=page]{border-color:var(--accent);border-bottom-color:white;background:white;color:var(--ink)}.document-tab strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.toolbar .toolbar-actions{display:flex;align-items:center;gap:8px;flex:none;font-size:12px}.toolbar-actions>a:first-child{margin-right:0}#toggle-toolbar{top:10px}
@media(max-width:900px){.toolbar{align-items:stretch;padding-right:112px}.toolbar-documents{width:100%}.toolbar .toolbar-actions{flex-wrap:wrap}.document-tab{max-width:180px}}
@media(max-width:640px){.toolbar{padding:8px 100px 8px 10px}.toolbar-documents{align-items:stretch;flex-direction:column;gap:4px}.toolbar .document-tabs{width:100%}.document-tab{max-width:150px;padding-inline:10px}.toolbar .toolbar-actions{gap:6px}}
