:root { color-scheme: light; --paper:#f3f5f8; --ink:#17243a; --muted:#57667b; --line:#dbe2eb; --blue:#2855a0; --light:#eaf1fd; font:15px/1.5 system-ui,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--paper); }
h1,h2,h3,p { margin:0; }
h1 { font-size:1.4rem; } h2 { font-size:1.35rem; } h3 { font-size:1.03rem; }
button,input { font:inherit; }
button { cursor:pointer; border:1px solid #c9d4e4; border-radius:8px; background:white; color:var(--ink); padding:.55rem .85rem; font-weight:600; }
button:hover { background:var(--light); }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible,input:focus-visible,.dropzone:focus-visible { outline:3px solid #779de0; outline-offset:2px; }
.primary { background:var(--blue); color:white; border-color:var(--blue); }
.primary:hover { background:#214784; }
.card { background:white; border:1px solid var(--line); border-radius:14px; box-shadow:0 5px 20px #17345a0b; }
.gate { min-height:100dvh; display:grid; place-items:center; padding:1rem; }
.login { width:min(100%, 24rem); display:grid; gap:1.4rem; padding:2rem; }
.monogram { display:inline-grid; place-items:center; width:2.3rem; height:2.3rem; background:#dbe7fa; color:#234881; border-radius:10px; font-weight:750; }
.stack { display:grid; gap:.7rem; }
label { font-weight:600; }
input[type=password],input:not([type]) { width:100%; border:1px solid #c9d4e4; padding:.65rem; border-radius:8px; }
.wide { max-width:72rem; margin:auto; padding-inline:1.2rem; }
.masthead { background:white; border-bottom:1px solid var(--line); }
.header-inner,.brand,.actions,.toolbar,.dialog-heading,.header-controls { display:flex; align-items:center; gap:.65rem; }
.header-controls { flex-wrap:wrap; }
.language-switch { display:flex; width:max-content; border:1px solid var(--line); border-radius:6px; }
.language-switch a { padding:.3rem .55rem; color:var(--blue); text-decoration:none; }
.language-switch a:hover { text-decoration:underline; }
.language-switch a[aria-current] { background:var(--light); font-weight:650; }
.header-inner,.toolbar,.dialog-heading { justify-content:space-between; }
.header-inner { min-height:4.2rem; }
.layout { display:grid; grid-template-columns:13rem minmax(0,1fr); gap:1.2rem; padding-block:1.8rem; }
.locations { display:grid; align-content:start; gap:.4rem; }
.locations h2 { font-size:.9rem; padding:.5rem .65rem; color:var(--muted); }
.location { text-align:left; background:transparent; border-color:transparent; }
.selected { background:var(--light); color:#1a4081; }
.files { overflow:hidden; }
.toolbar { padding:1.2rem; gap:1rem; flex-wrap:wrap; }
.file-navigation { gap:.4rem; margin-bottom:.5rem; flex-wrap:wrap; }
.file-navigation button { padding:.25rem .55rem; font-size:.85rem; }
.crumbs { display:flex; flex-wrap:wrap; gap:.2rem; color:var(--muted); font-size:.85rem; margin-bottom:.35rem; }
.quiet { border:0; background:transparent; padding:.2rem .4rem; }
.crumbs .quiet { color:var(--blue); }
.table-scroll { overflow-x:auto; }
.file-table { width:100%; border-collapse:collapse; }
.file-table th,.file-table td { text-align:left; padding:.55rem .85rem; border-top:1px solid var(--line); }
.file-table th { background:#f8fafc; font-size:.85rem; white-space:nowrap; }
.file-table td:nth-child(n+2) { color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.file-table :is(th, td):last-child { text-align:right; }
.file-table th + th { border-inline-start:1px solid var(--line); }
.file-table tbody tr:hover { background:#f7faff; }
.file-link { display:inline-flex; text-align:left; color:var(--blue); background:none; border:none; padding:0; text-decoration:none; font-weight:650; align-items:baseline; gap:.55rem; overflow-wrap:anywhere; }
.file-link:hover { text-decoration:underline; background:transparent; }
.file-actions { position:fixed; inset:auto; margin:0; padding:.3rem; min-width:9.5rem; border:1px solid var(--line); border-radius:8px; box-shadow:0 5px 20px #17345a35; color:var(--ink); }
.file-actions button,.file-actions a { display:block; width:100%; padding:.4rem .65rem; background:white; border:0; color:inherit; text-align:left; text-decoration:none; border-radius:5px; }
.file-actions button:hover,.file-actions a:hover { background:var(--light); }
.file-more { margin-inline-start:.55rem; color:var(--muted); }
.preview { padding:0 1.2rem 1.2rem; }
.preview iframe { width:100%; height:70vh; border:1px solid var(--line); }
.preview :is(img, video) { display:block; max-width:100%; max-height:75vh; }
.preview pre { padding:1rem; margin:0; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#f5f7fa; border:1px solid var(--line); }
.icon { color:#5e83b6; font-weight:750; }
.empty { padding:1.5rem 1rem; color:var(--muted); }
.message { border-radius:8px; padding:.65rem .8rem; background:var(--light); }
.message.error { background:#fff0ec; color:#8c301e; }
.files>.message { margin:0 1.2rem 1rem; }
.subtle { color:var(--muted); font-size:.9rem; overflow-wrap:anywhere; }
dialog { width:min(32rem, calc(100% - 1.5rem)); border:1px solid var(--line); border-radius:14px; padding:1.35rem; color:var(--ink); box-shadow:0 15px 52px #10244440; max-height:90dvh; }
dialog::backdrop { background:#18304b77; }
.end { justify-content:flex-end; flex-wrap:wrap; }
.dropzone { display:grid; justify-items:center; text-align:center; gap:.35rem; padding:1.5rem .75rem; border:1px dashed #91add6; background:#f7faff; border-radius:10px; cursor:pointer; overflow-wrap:anywhere; }
.dropzone.dragging { background:#dce9fb; }
.drop-icon { font-size:1.35rem; color:var(--blue); }
.check { display:flex; align-items:center; gap:.5rem; font-weight:500; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
progress { width:100%; accent-color:var(--blue); }
.password-change { border-top:1px solid var(--line); padding-top:.75rem; margin-top:.6rem; }
.key-list { margin:.2rem 0; padding:0; list-style:none; }
.key-list li { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.4rem 0; }
@media (max-width: 670px) {
  .wide { padding-inline:.75rem; } .layout { grid-template-columns:1fr; gap:.6rem; padding-block:.75rem; }
  .locations { display:flex; flex-wrap:wrap; } .locations h2 { display:none; }
  .header-inner { flex-wrap:wrap; padding-block:.55rem; }
  .file-table :is(th, td) { padding:.5rem .55rem; }
  .toolbar { padding:.8rem; }
}
