:root {
  color-scheme: light dark;
  --p: #565b89;
  --on-p: #fff;
  --accent: #dfe0ff;
  --on-accent: #181d48;
  --bg: #faf8ff;
  --card: #efedf7;
  --high: #e6e4ef;
  --ink: #1b1b24;
  --mut: #494954;
  --line: #777683;
  --error: #a32926;
  --ease: cubic-bezier(.2,.85,.22,1);
  --spring: cubic-bezier(.2,.9,.32,1.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --p: #c0c4fd;
    --on-p: #292e59;
    --accent: #414674;
    --on-accent: #dfe0ff;
    --bg: #13131c;
    --card: #201f2a;
    --high: #2b2a36;
    --ink: #e5e1ef;
    --mut: #c8c5d4;
    --line: #928f9e;
    --error: #ffb4ab;
  }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-away 150ms ease both; }
::view-transition-new(root) { animation: enter 320ms var(--ease) both; }
@keyframes fade-away { to { opacity: 0; } }
@keyframes enter { from { opacity: 0; translate: 0 10px; } }
@keyframes unfold { from { opacity: 0; scale: .94; } }
@keyframes loading { to { background-position: -200% 0; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Roboto, system-ui, sans-serif; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 24px; }
a { color: var(--p); }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 4px; }
label { display: block; margin: 14px 0; color: var(--mut); font-size: 14px; font-weight: 600; }
input {
  display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink); font-size: 16px; transition: border-radius 220ms var(--ease);
}
input:focus { border-radius: 18px; outline: 2px solid var(--p); outline-offset: 0; }
input::file-selector-button { font: inherit; border: 0; border-radius: 20px; padding: 6px 10px; color: var(--on-accent); background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 22px; border: 1px solid transparent; border-radius: 100px;
  background: var(--p); color: var(--on-p); font-weight: 650; text-decoration: none; cursor: pointer;
  transition: scale 220ms var(--spring), border-radius 220ms var(--spring), background-color 180ms;
}
.btn:active { scale: .96; border-radius: 16px; }
.btn.ghost, .btn.out { color: var(--p); background: transparent; border-color: var(--line); }
.btn.out { color: var(--error); }
.btn.busy { background-image: linear-gradient(100deg, transparent 30%, #fff4 50%, transparent 70%); background-size: 200% 100%; animation: loading 900ms linear infinite; }
.note {
  padding: 14px 18px; border-radius: 18px; margin-bottom: 16px;
  color: var(--on-accent); background: var(--accent); animation: enter 300ms var(--ease) both;
}
.note.err { color: var(--error); background: var(--card); border: 1px solid currentColor; }
.empty { padding: 30px; text-align: center; color: var(--mut); }
.auth {
  width: min(100% - 32px, 460px); margin: clamp(24px, 10vh, 100px) auto 32px;
  padding: clamp(20px, 5vw, 40px); border-radius: 36px;
  background: var(--card); animation: unfold 380ms var(--spring) both;
}
.auth h1 { margin-bottom: 24px; overflow-wrap: anywhere; }
.auth img { border-radius: 22px; margin-bottom: 16px; }
.auth .btn { margin-top: 8px; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important; transition: none !important;
  }
}

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("material-symbols.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
.material-symbol {
  display: inline-block; flex: none; font: 400 1em/1 "Material Symbols Outlined";
  font-feature-settings: "liga"; white-space: nowrap; letter-spacing: normal;
}
.btn { gap: 8px; }
.btn .material-symbol { font-size: 20px; }
@media (hover: hover) {
  .btn:hover { background-color: color-mix(in srgb, var(--p) 90%, var(--on-p)); }
  .btn.ghost:hover, .btn.out:hover { background-color: var(--high); }
}
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.crumbs .material-symbol { font-size: 18px; }
