:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #f5f7f9;
  color: #17212b;
}
* { box-sizing: border-box; }
body { margin: 0; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
aside { background: #101820; color: white; padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.brand { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
button, input, select, textarea { font: inherit; border-radius: 8px; border: 1px solid #ccd6df; }
button { background: #1e6bff; color: white; border: 0; padding: 10px 14px; cursor: pointer; }
button:disabled { background: #9aa9b7; cursor: not-allowed; }
aside button { background: transparent; text-align: left; color: white; border: 1px solid transparent; }
aside button:hover, aside button.active { background: #21313f; }
main { padding: 28px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h1, h2 { margin: 0 0 14px; letter-spacing: 0; }
.hidden { display: none !important; }
.auth, .panel { background: white; border: 1px solid #dde5ec; border-radius: 8px; padding: 20px; max-width: 760px; }
.auth { display: grid; gap: 12px; margin: 8vh auto; }
.view { display: grid; gap: 18px; }
form { display: grid; gap: 12px; }
input, select { padding: 10px 12px; background: white; }
textarea { width: 100%; min-height: 58vh; padding: 14px; line-height: 1.55; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar { display: flex; gap: 12px; margin-bottom: 12px; }
.toolbar input { min-width: 280px; }
.file, .log, .user { background: white; border: 1px solid #dde5ec; border-radius: 8px; padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.fileTop { display: flex; justify-content: space-between; gap: 12px; }
.progress { height: 8px; background: #e7edf3; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: #24a66a; }
.muted { color: #647789; }
.danger { background: #c92d39; }
.ghost { background: #eef3f7; color: #17212b; }
.error { color: #9d1c2a; background: #ffecef; border-radius: 8px; padding: 8px 10px; }
.meta { background: #eef3f7; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fileTop strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  body { grid-template-columns: 1fr; }
  aside { position: static; }
  .grid2 { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; }
}
