:root {
  color-scheme: light;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171915;
  --paper2: #20231e;
  --ink: #ece9df;
  --muted: #aaa69b;
  --green: #75a993;
  --red: #e6877d;
  --line: #383c35;
  --white: #1b1e1a;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
}

.unlock-card {
  border-radius: var(--radius-lg);
}

.mark,
.mini-mark {
  border-radius: 16px;
}

input,
textarea,
button,
.note-item,
#toast {
  border-radius: var(--radius-sm);
}

.primary {
  border-radius: var(--radius-sm);
}

.sidebar {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

.note-item {
  margin-bottom: 6px;
  border-bottom-color: transparent;
}

.theme-toggle {
  position: fixed;
  z-index: 20;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
  backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

:root[data-theme="dark"] .unlock-shell {
  background: radial-gradient(circle at 80% 15%, #2d332b 0, transparent 30%), linear-gradient(135deg, #171915, #20231e);
}

:root[data-theme="dark"] .unlock-card {
  background: rgba(27, 30, 26, .88);
  border-color: rgba(180, 196, 180, .16);
}

:root[data-theme="dark"] .note-item:hover,
:root[data-theme="dark"] .note-item.active {
  background: rgba(117, 169, 147, .13);
}

@media (max-width: 720px) {
  .sidebar {
    border-radius: 0;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
  }
}
