:root {
    --bg: #eef1f6;
    --panel: #ffffff;
    --ink: #1c2433;
    --muted: #6b7587;
    --line: #dde3ed;
    --accent: #2f5bea;
    --accent-dark: #2447c2;
    --danger: #c2362f;
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
  }
  header {
    height: 56px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; }
  .brand svg, .brand img { width: 28px; height: 28px; }
  .search {
    flex: 1; max-width: 420px; margin: 0 24px; height: 34px;
    background: var(--bg); border-radius: 8px;
  }
  .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--line); }
  .layout { display: flex; height: calc(100% - 56px); }
  aside {
    width: 220px; background: var(--panel); border-right: 1px solid var(--line);
    padding: 18px 12px; flex-shrink: 0;
  }
  aside .btn-new {
    height: 38px; border-radius: 8px; background: var(--accent); margin-bottom: 18px;
  }
  aside .nav { height: 34px; border-radius: 6px; margin-bottom: 6px; background: var(--bg); }
  aside .nav:nth-child(odd) { background: transparent; border: 1px solid var(--line); }
  main { flex: 1; padding: 24px 28px; overflow: hidden; }
  h1 { font-size: 20px; margin: 0 0 16px; }
  .blurred { filter: blur(7px); opacity: .85; pointer-events: none; user-select: none; }
  .blurred-wrap { display: contents; }
  table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
  th, td { text-align: left; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
  th { color: var(--muted); font-weight: 500; font-size: 13px; }
  td.name { display: flex; align-items: center; gap: 12px; }
  .ico { width: 26px; height: 30px; border-radius: 4px; flex-shrink: 0; }
  .pdf { background: #e5534b; } .zip { background: #e0a030; } .doc { background: #2f5bea; }
  .img { background: #2fa87a; } .xls { background: #2e9b4f; } .vid { background: #8452d6; }
  .overlay {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(238, 241, 246, .35);
  }
  .card {
    width: 100%; max-width: 380px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px 26px;
    box-shadow: 0 18px 50px rgba(28, 36, 51, .18);
  }
  .card .brand { justify-content: center; margin-bottom: 6px; }
  .card h2 { font-size: 19px; text-align: center; margin: 14px 0 4px; }
  .card p.sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.45; }
  label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
  input[type="text"], input[type="password"] {
    width: 100%; height: 42px; padding: 0 12px; font-size: 15px; font-family: inherit;
    border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; background: #fff; color: var(--ink);
  }
  input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
  .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 2px 0 18px; }
  .row label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 400; color: var(--muted); }
  .row a { color: var(--accent); text-decoration: none; }
  button.go {
    width: 100%; height: 44px; border: 0; border-radius: 8px; background: var(--accent);
    color: #fff; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  }
  button.go:hover { background: var(--accent-dark); }
  button.go:disabled { opacity: .7; cursor: default; }
  .error { display: none; color: var(--danger); font-size: 13px; background: #fbeceb; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
  .card.fail { animation: shake .35s; }
  @keyframes shake { 20%{transform:translateX(-7px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }
  .foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; }
  @media (max-width: 720px) {
    aside { display: none; }
    main { padding: 16px; }
    .search { display: none; }
    th:nth-child(3), td:nth-child(3) { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .card.fail { animation: none; } }
