:root {
  color-scheme: light;
  --ink: #172746;
  --muted: #64748b;
  --blue: #2457d6;
  --paper: #fff;
  --canvas: #f5f7fc;
  --line: #d7e0ee;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #9bb9ff; outline-offset: 4px; }
input:focus, textarea:focus { outline: 2px solid #9bb9ff; outline-offset: 2px; border-color: var(--blue); }
button { border: 0; border-radius: 6px; padding: 11px 16px; font-size: 14px; font-weight: 600; }
.primary { color: #fff; background: var(--blue); }
.primary:hover:not(:disabled) { background: #1944b1; }
.quiet { color: var(--ink); background: transparent; }
.quiet:hover:not(:disabled) { background: #e9eef9; }
.danger { color: #a1353d; background: transparent; }
.danger:hover:not(:disabled) { background: #fcebee; }
.small { padding: 9px 12px; white-space: nowrap; }
.shell { max-width: 1260px; margin: auto; padding: 0 38px; }
.app-header { display: flex; justify-content: space-between; align-items: center; min-height: 100px; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -.5px; }
.book-mark { width: 24px; height: 28px; border: 2px solid var(--blue); border-left: 7px solid var(--blue); border-radius: 2px 5px 5px 2px; transform: rotate(-5deg); }
.account { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#username { margin-right: 12px; color: var(--muted); overflow-wrap: anywhere; }
.notice { margin: 0 0 20px; padding: 14px 18px; color: #244f48; background: #e5f2ee; border-radius: 6px; line-height: 1.5; }
.notice.error { color: #902c39; background: #fcebee; }
.welcome { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 90px; min-height: 660px; padding: 40px 35px 65px; }
.introduction h1 { font-size: clamp(44px, 5.1vw, 68px); line-height: 1.06; font-weight: 650; letter-spacing: -3px; margin: 0 0 25px; }
.introduction > p { color: var(--muted); max-width: 360px; font-size: 18px; line-height: 1.65; margin-bottom: 40px; }
.paper-preview { max-width: 385px; padding: 28px 32px 24px 40px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #9bb9ff; transform: rotate(-3deg); box-shadow: 0 12px 30px #17274608; }
.preview-title { display: block; margin-bottom: 17px; font-family: Georgia, serif; font-size: 23px; }
.preview-line { display: block; min-height: 34px; line-height: 33px; border-bottom: 1px solid #e8edf5; font-family: Georgia, serif; font-size: 14px; color: var(--muted); }
.auth-panel { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.auth-switch { display: flex; gap: 4px; background: #eef2f9; border-radius: 6px; padding: 4px; margin-bottom: 28px; }
.auth-switch button { width: 50%; color: var(--muted); background: transparent; }
.auth-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #17274612; }
.auth-panel h2 { margin: 0 0 9px; font-size: 25px; letter-spacing: -.7px; }
.auth-panel > p { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input:not([type="checkbox"]), textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.auth-panel input { margin-bottom: 21px; }
.auth-panel input[type="password"], .auth-panel input[name="password"] { margin-bottom: 8px; }
.field-help { font-size: 12px; color: var(--muted); margin: 0 0 25px; line-height: 1.5; }
.auth-panel .primary { width: 100%; }
.workspace { display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: 680px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.notes-pane { border-right: 1px solid var(--line); padding: 26px 23px; background: #fafbfe; }
.pane-heading, .editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pane-heading { margin-bottom: 24px; }
.pane-heading h1 { font-size: 22px; margin: 0; letter-spacing: -.6px; }
.notes-pane input[type="search"] { font-size: 14px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 13px; margin: 0; }
.check input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; }
.filter { margin: 16px 0 23px; }
.list-summary { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.note-list { display: grid; gap: 8px; }
.note-item { display: block; width: 100%; padding: 16px; text-align: left; color: var(--ink); border: 1px solid transparent; background: transparent; }
.note-item:hover { background: #eef2fa; }
.note-item[aria-current="true"] { border-color: #b1c6f7; background: #eef3ff; }
.note-item strong { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.note-item .excerpt { display: block; font-family: Georgia, serif; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; }
.note-item .note-meta { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 12px; }
.empty-list { margin-top: 45px; color: var(--muted); font-family: Georgia, serif; line-height: 1.7; font-size: 17px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 3px; margin-top: 20px; }
.pagination button { padding: 9px 6px; font-size: 12px; }
.pagination span { color: var(--muted); font-size: 12px; }
.editor { position: relative; padding: 30px 38px 25px 48px; }
.editor::before { content: ""; position: absolute; top: 104px; bottom: 105px; left: 25px; border-left: 1px solid #c7d7f7; }
.editor-heading { margin-bottom: 34px; }
.editor-heading h2 { font-size: 16px; font-weight: 600; margin: 0; }
.save-state { color: var(--muted); font-size: 12px; }
.editor label { color: var(--muted); }
#note-title { font-family: Georgia, serif; font-size: 28px; padding: 10px 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 25px; }
#note-body { font-family: Georgia, serif; font-size: 17px; line-height: 1.75; border: 0; padding: 8px 0; resize: vertical; height: 300px; min-height: 295px; }
#note-title::placeholder { color: #a0aabc; }
#note-body::placeholder { color: #a0aabc; }
.editor-details { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.editor-actions .danger { margin-left: auto; }
.note-date { margin: 24px 0 0; color: var(--muted); font-size: 11px; }
.app-footer { padding: 25px 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.demo-tools { margin-top: 20px; padding: 16px 20px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.demo-tools summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.demo-tools p { line-height: 1.6; }
.demo-tools button { background: #e9eef9; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .shell { padding: 0 24px; }
  .welcome { gap: 40px; padding: 30px 0 60px; }
  .workspace { grid-template-columns: 300px minmax(0, 1fr); }
  .editor { padding-right: 26px; padding-left: 35px; }
  .editor::before { left: 15px; }
}
@media (max-width: 760px) {
  .shell { padding: 0 18px; }
  .app-header { min-height: 85px; gap: 14px; flex-wrap: wrap; padding: 18px 0; }
  .account { width: 100%; justify-content: flex-end; gap: 3px; }
  #username { margin-right: auto; }
  .welcome { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding: 25px 0; }
  .introduction h1 { font-size: 44px; letter-spacing: -1.8px; }
  .introduction > p { max-width: 100%; margin-bottom: 0; font-size: 16px; }
  .paper-preview { display: none; }
  .auth-panel { padding: 25px; }
  .workspace { grid-template-columns: 1fr; }
  .notes-pane { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .note-list { max-height: 270px; overflow-y: auto; }
  .editor { padding: 26px 24px 26px 35px; }
  .editor::before { left: 17px; }
  .editor-heading { margin-bottom: 25px; }
  #note-title { font-size: 25px; }
  #note-body { min-height: 260px; }
  .editor-actions .danger { margin-left: 0; }
  .empty-list { margin-top: 20px; font-size: 15px; }
  .app-footer { text-align: left; }
}