/* Visual tokens and shared controls. No external fonts, images or runtime work. */
:root {
  --paper: #edf1f5;
  --surface: #fff;
  --ink: #24364a;
  --muted: #64748a;
  --line: #dfe6ee;
  --accent: #227b72;
  --soft: #edf6f3;
  --notebook-navy: #172c44;
  --notebook-teal: #81d4c1;
  --notebook-gold: #d6b87c;
  --notebook-shadow: 0 5px 22px #1e34490a;
}
body {
  background: radial-gradient(ellipse at 95% 0, #dcebe9 0, transparent 42%), var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #c8e8de; color: #172c44; }
button { border-radius: 10px; }
button.primary {
  background: var(--notebook-navy);
  border-color: var(--notebook-navy);
  color: #fff;
  box-shadow: 0 3px 8px #172c441a;
}
button.primary:hover:not(:disabled) { background: #28445f; border-color: #28445f; }
input, select { border-color: #cfdae5; border-radius: 10px; }
input::placeholder { color: #7d8b9d; }
input:focus-visible, select:focus-visible, button:focus-visible,
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline-color: #298c80;
}
label { letter-spacing: .015em; }
.empty-state { background: #f7f9fb; border-radius: 12px; }
.notice { border-radius: 12px; }
.feedback-notice { border-radius: 14px; box-shadow: var(--notebook-shadow); }
.storage-usage { border-radius: 8px; }
.dashboard-load-status { border-radius: 14px; box-shadow: 0 6px 22px #172c4412; }

/* The login shares the notebook's ink / teal identity. */
.login-shell {
  background: radial-gradient(ellipse at 15% 10%, #285365 0, transparent 48%),
    radial-gradient(ellipse at 90% 90%, #24524d 0, transparent 45%), #15283d;
}
.login-card {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid #ffffffb3;
  border-top: 4px solid #84cdb9;
  border-radius: 24px;
  background: #fcfdfd;
  box-shadow: 0 28px 80px #08172555;
}
.login-card h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  margin: 0 0 26px;
  color: var(--notebook-navy);
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.login-card h1 > span { display: inline-block; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.login-card form { margin-top: 0; }
.login-card form > label { margin-bottom: 6px; color: #52677e; }
.login-card input { min-height: 44px; padding: 11px 12px; border-radius: 8px; background: #f4f7fa; }
.login-card button { min-height: 44px; padding: 12px 16px; border-radius: 8px; }
@media (max-width: 380px) {
  .login-card { padding: 26px 20px; }
  .login-card h1 { flex-direction: column; align-items: center; gap: 2px; }
}

/* The title shares the filter row instead of occupying a separate masthead. */
.notebook-compact-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: var(--notebook-navy);
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0;
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) {
  .notebook-compact-title { display: none; }
}
