:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #152037;
  background: #f5f7fb;
  --line: #dce3ee;
  --accent: #244bc4;
  --muted: #4b5a72;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid var(--line); }
.shell { width: min(100% - 32px, 720px); margin-inline: auto; }
.bar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar strong { font-size: 1.15rem; }
main { padding-block: 18px 40px; }
h1 { margin: 0 0 18px; font-size: 1.45rem; }
#status { margin: 0 0 14px; color: var(--muted); overflow-wrap: anywhere; }
#status:empty { display: none; }
#status.error { color: #a32032; }
nav { display: flex; gap: 8px; margin-bottom: 14px; }
button, .button {
  background: #fff; color: #152037; border: 1px solid var(--line); border-radius: 9px;
  min-height: 42px; padding: 8px 13px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
}
button:hover, .button:hover { background: #edf2fb; }
button:disabled { opacity: .6; cursor: wait; }
nav button[aria-pressed="true"] { background: #e5ecff; color: #173a9c; border-color: #b7c8f5; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: #1d3da1; }
.danger { color: #a32032; }
.card {
  padding: clamp(14px, 3vw, 22px); border: 1px solid var(--line); border-radius: 14px;
  background: #fff;
}
.login { max-width: 430px; margin: 24px auto; }
.login-name { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label { font-weight: 650; }
input, textarea { font: inherit; }
textarea, input[type="password"], input[type="file"] { display: block; width: 100%; margin: 10px 0 12px; }
textarea, input[type="password"] {
  border: 1px solid #aebbd0; border-radius: 9px; color: inherit; background: #fff; padding: 10px;
}
textarea { resize: vertical; }
.remember { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 12px 0 18px; }
.actions, .file-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-heading { justify-content: space-between; }
.list { display: grid; gap: 10px; margin: 14px 0; }
.preview { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 14px; }
.filename { font-weight: 650; overflow-wrap: anywhere; margin: 0; }
.muted, #quota { color: var(--muted); font-size: .9rem; }
.hint { margin: 6px 0 12px; }
progress { display: block; width: 100%; margin-top: 12px; accent-color: var(--accent); }
:focus-visible { outline: 3px solid #5080ee; outline-offset: 2px; }
