@font-face {
  font-family: 'Passenger Sans';
  src: local('Passenger Sans'), url('https://www.fontshare.com/assets/fonts/PassengerSans-Variable.e7fbe7bf.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}
@font-face {
  font-family: 'Satoshi';
  src: local('Satoshi'), url('https://cdn.fontshare.com/wf/NWBQYJIM7GCZ5XWD7D26ARB3VDY55ZRT/K63EV2KZIGKLE7RANQ2U42S6SVHU5RJ7/X6XYTKIVDUW7GZTZPZNN4EUM5KH54KHF.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
}
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #101010;
  --muted: #606060;
  --faint: #c0c0c0;
  --line: #e8e8e8;
  --wash: #f8f8f8;
  --blue: #1751ec;
  --error: #a02720;
  --pad: 40px;
  --header: 160px;
  --font: 'Passenger Sans', 'Satoshi', Arial, sans-serif;
  --ease: 150ms cubic-bezier(.4,0,.2,1);
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body.menu-open, body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; padding: 0; border: 0; background: none; }
button:disabled { color: var(--muted); cursor: default; opacity: .6; }
a { color: inherit; text-underline-offset: 4px; }
button, a, input, textarea, [contenteditable] { transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 500; }
ul { margin: 0; }
svg { flex: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; vertical-align: middle; }
.sprite, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { color: var(--paper); background: var(--ink); }
.skip-link { position: fixed; top: -65px; left: 12px; padding: 12px; background: var(--ink); color: white; z-index: 80; }
.skip-link:focus-visible { position: fixed; top: 8px; z-index: 80; }
.topbar { height: var(--header); position: relative; display: grid; grid-template-columns: minmax(230px,2.6fr) repeat(3,minmax(0,1fr)) minmax(100px,1fr); background: var(--paper); z-index: 20; }
.wordmark, .page-tabs a, .hamburger { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; padding: 0 var(--pad); gap: .19em; font-size: clamp(36px,3.5vw,64px); line-height: 1; font-weight: 500; letter-spacing: -.072em; text-decoration: none; }
.wordmark i { font-family: Georgia,'Times New Roman',serif; font-size: .75em; font-weight: 400; margin-top: .05em; }
.page-tabs { display: contents; }
.page-tabs a { display: grid; place-items: center; text-decoration: none; position: relative; }
.page-tabs a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 18%; width: 4px; height: 4px; background: currentColor; border-radius: 50%; margin-left: -2px; }
.page-tabs a:hover, .hamburger:hover { background: var(--wash); }
.hamburger { display: grid; place-items: center; border-right: 0; }
.hamb-lines { width: clamp(30px,3.7vw,54px); height: 13px; border-top: 2px solid; border-bottom: 2px solid; }
.hamburger[aria-expanded="true"] { transition: none; color: white; background: var(--ink); border-bottom-color: var(--ink); }
.hamburger:focus-visible, .wordmark:focus-visible, .page-tabs a:focus-visible { outline-offset: -5px; }
.mega { position: fixed; z-index: 15; inset: var(--header) 0 0; background: var(--ink); color: var(--paper); padding: clamp(28px,6vh,80px) var(--pad); overflow: auto; }
.menu-open .topbar { position: sticky; top: 0; }
.menu-inner { max-width: 700px; margin-left: auto; }
.menu-inner > a { display: flex; align-items: center; justify-content: space-between; min-height: 80px; border-bottom: 1px solid #353535; text-decoration: none; font-size: clamp(32px,4.3vw,66px); font-weight: 500; letter-spacing: -.045em; color: #aaa; }
.menu-inner > a:hover, .menu-inner > a:focus-visible, .menu-inner > a[aria-current] { color: white; }
.menu-inner > a .icon { width: 28px; height: 28px; }
#logout { color: white; display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(28px,3.8vw,56px) var(--pad) clamp(20px,2.1vw,34px); border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(66px,7vw,112px); letter-spacing: -.065em; line-height: .96; }
.meta { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 18px; gap: 10px; border: 1px solid var(--line); font-size: 14px; line-height: 1.35; text-decoration: none; background: white; white-space: nowrap; }
.btn:hover:not(:disabled), .tool:hover, .link-button:hover { background: var(--wash); border-color: var(--faint); }
.btn.primary { background: var(--ink); color: white; border-color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: #353535; }
.btn.small { min-height: 36px; font-size: 13px; padding: 8px 12px; gap: 6px; }
.btn.small .icon { width: 15px; height: 15px; }
.notes-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-height: min(60vh,620px); }
.board-pane, .events-pane { min-width: 0; padding: 0 var(--pad) 36px; }
.board-pane { border-right: 1px solid var(--line); }
.pane-heading, .queue-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 90px; }
.pane-heading h2, .queue-heading h2 { font-size: clamp(23px,2vw,31px); line-height: 1.15; letter-spacing: -.045em; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(158px,100%),1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.note-tile { min-width: 0; min-height: 164px; overflow: hidden; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.note-tile:hover { background: var(--wash); }
.note-tile:focus-visible { outline-offset: -3px; }
.note-stamp { color: var(--muted); font-size: 11px; line-height: 1.4; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.note-title { font-size: 19px; line-height: 1.15; font-weight: 500; letter-spacing: -.035em; overflow-wrap: anywhere; }
.note-title, .note-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-excerpt { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 7px; overflow-wrap: anywhere; }
.attach-count { margin-top: auto; padding-top: 9px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.attach-count .icon { width: 12px; height: 12px; }
.new-note { background: var(--wash); justify-content: space-between; font-size: 15px; }
.new-note:hover { background: #eee; }
.tile-plus .icon { width: 27px; height: 27px; stroke-width: 1.2; }
.event-labels, .event-row { display: grid; grid-template-columns: clamp(84px,9vw,150px) minmax(0,1fr); }
.event-labels { border-top: 1px solid var(--line); padding: 10px 0; color: var(--muted); font-size: 12px; }
.event-row { border-top: 1px solid var(--line); position: relative; min-height: 46px; font-size: 14px; line-height: 1.45; align-items: center; }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-row:hover, .event-row:focus-within { background: var(--wash); }
.event-row time { font-variant-numeric: tabular-nums; }
.event-row button { display: block; text-align: left; width: 100%; padding: 9px 10px 9px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row button::after { content: ''; position: absolute; inset: 0; }
.event-row button:focus-visible { position: static; }
#past { margin-top: 24px; }
#past summary { font-size: 13px; cursor: pointer; width: fit-content; margin-bottom: 12px; }
.status { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error { color: var(--error); }
.panel-status { padding: 14px 0; border-top: 1px solid var(--line); }
dialog { color: var(--ink); padding: 0; }
dialog::backdrop { background: #10101065; }
.editor-dialog { width: min(760px,calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 36px); border: 1px solid var(--ink); }
.editor-form { display: flex; flex-direction: column; background: white; max-height: calc(100dvh - 40px); }
.editor-head { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.045em; }
.editor-scroller { overflow-y: auto; padding: 22px 28px; }
.title-input { width: 100%; padding: 0; border: none; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }
.writing-area { margin-top: 18px; min-height: min(30vh,270px); overflow-wrap: anywhere; }
.writing-area ul, .writing-area ol { padding-left: 24px; }
.writing-area:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.title-input::placeholder { color: var(--muted); }
.editor-status { margin: 0 28px 12px; }
.editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.format-bar, .form-buttons { display: flex; align-items: center; gap: 2px; }
.form-buttons { margin-left: auto; gap: 6px; }
.tool { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; font-size: 17px; }
.tool i { font-family: Georgia,serif; }
.tool[aria-pressed=true] { background: var(--ink); color: white; }
.attached-list { list-style: none; margin-top: 12px; padding: 0; }
.attached-list:empty { display: none; }
.attached-list li { padding: 7px 0; font-size: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.attached-list .icon { width: 14px; height: 14px; }
.event-dialog { max-width: 540px; }
.event-fields { padding: 22px 28px; display: grid; gap: 20px; overflow-y: auto; }
.event-fields label { font-size: 13px; display: grid; gap: 7px; }
.event-fields input, .event-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--faint); background: white; padding: 10px 12px; font-size: 16px; }
.event-fields textarea { resize: vertical; min-height: 64px; }
.photo-grid { margin: 0 3px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(155px,100%),1fr)); gap: 0; }
.photo-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--wash); }
.thumb-button, .thumb-button img { display: block; width: 100%; height: 100%; }
.thumb-button img { object-fit: cover; }
.thumb-button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.photo-action { display: grid; place-items: center; width: 40px; height: 40px; background: #101010b8; color: white; text-decoration: none; }
.photo-action:hover { background: var(--ink); }
.photo-action:focus-visible { outline-color: white; }
.photo-cell .photo-action { opacity: 0; z-index: 2; position: absolute; right: 6px; transition: opacity var(--ease); }
.photo-cell:hover .photo-action, .photo-cell:focus-within .photo-action, .photo-cell.selected .photo-action { opacity: 1; }
.photo-cell .select-photo { top: 5px; width: 38px; height: 38px; background: none; }
.select-ring { width: 24px; height: 24px; background: #10101065; border-radius: 50%; border: 2px solid white; display: grid; place-items: center; box-shadow: 0 0 0 1px #10101055; }
.select-ring .icon { opacity: 0; width: 15px; height: 15px; stroke-width: 2; }
.selected .select-ring { background: var(--ink); }
.selected .select-ring .icon { opacity: 1; }
.photo-cell.selected::after { content: ''; position: absolute; inset: 0; border: 3px solid white; pointer-events: none; }
.thumb-download { bottom: 6px; }
.photo-status { padding: 12px var(--pad); }
.photos-empty { display: grid; justify-items: start; gap: 20px; padding: clamp(50px,10vw,140px) var(--pad); }
.photos-empty > .icon { width: 35px; height: 35px; stroke-width: 1; }
.photos-empty h2 { font-size: clamp(28px,3.6vw,54px); letter-spacing: -.05em; line-height: 1.1; }
.more-wrap { padding: 22px; text-align: center; }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; margin: 0; background: #101010; }
.lightbox-inner { width: 100%; height: 100%; position: relative; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; display: block; color: white; }
.lightbox .photo-action { position: absolute; right: max(16px,env(safe-area-inset-right)); height: 48px; width: 48px; }
.viewer-close { top: max(16px,env(safe-area-inset-top)); }
.viewer-download { bottom: max(16px,env(safe-area-inset-bottom)); }
.upload-area { padding: 26px var(--pad) 40px; }
.drop-zone { min-height: clamp(300px,43vh,540px); padding: 32px 20px; border: 1px dashed var(--faint); background: var(--wash); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.drop-zone.drag { border: 1px solid var(--ink); background: #efefef; }
.drop-icon .icon { width: 36px; height: 36px; stroke-width: 1.2; }
.drop-zone h2 { font-size: clamp(32px,3.7vw,60px); letter-spacing: -.055em; line-height: 1.05; margin: 16px 0 10px; }
.drop-zone p { color: var(--muted); font-size: 13px; }
.drop-zone .btn { margin-top: 24px; }
.queue-heading a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.upload-queue ul { list-style: none; padding: 0; }
.upload-queue li { display: flex; align-items: center; border-top: 1px solid var(--line); gap: 12px; padding: 12px 0; }
.upload-queue li .file-name { overflow-wrap: anywhere; min-width: 0; margin-right: auto; }
.upload-queue li .result { flex: 0 1 auto; text-align: right; font-size: 13px; color: var(--muted); }
.upload-queue li .result.error { color: var(--error); }
.upload-queue li button { text-decoration: underline; font-size: 13px; }
.login-screen { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 44px 20px; }
.keypad { position: relative; width: min(100%,300px); }
.pass-line { display: flex; width: 100%; align-items: center; justify-content: center; height: 52px; margin-bottom: 17px; position: relative; }
.pass-line input { padding: 0 38px; width: 100%; text-align: center; font-size: 24px; letter-spacing: .21em; border: 0; background: transparent; }
.pass-line input::placeholder { color: var(--faint); font-size: 15px; letter-spacing: .09em; }
.erase { position: absolute; right: 0; width: 38px; height: 44px; display: grid; place-items: center; }
.erase:focus-visible { position: absolute; }
.erase .icon { width: 18px; height: 18px; }
.key-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.key { min-height: 68px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 400; }
.key:hover { background: var(--wash); }
.key:active { color: white; background: var(--ink); }
.key:focus-visible { outline-offset: -3px; }
.login-submit { margin-top: 12px; width: 100%; min-height: 52px; background: var(--blue); color: white; font-size: 16px; font-weight: 500; }
.login-submit:hover { background: #1043d0; }
.login-submit:disabled { color: white; }
#login-error { margin-top: 12px; text-align: center; color: var(--error); }
@media(max-width:1279px) {
  :root { --pad: 20px; }
}
@media(max-width:1023px) {
  :root { --header: 60px; }
  .topbar { grid-template-columns: 1fr 64px; }
  .wordmark { font-size: 30px; }
  .page-tabs { display: none; }
  .hamb-lines { width: 25px; height: 9px; }
  .pane-heading { min-height: 76px; }
}
@media(max-width:760px) {
  .notes-layout { grid-template-columns: 1fr; }
  .board-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .board-pane, .events-pane { padding-bottom: 26px; }
  .note-grid { grid-template-columns: repeat(auto-fill,minmax(min(145px,100%),1fr)); }
  .note-tile { min-height: 140px; }
  .photo-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .event-labels, .event-row { grid-template-columns: 101px minmax(0,1fr); }
}
@media(max-width:540px) {
  .page-heading { padding: 26px var(--pad) 20px; align-items: flex-end; flex-wrap: wrap; }
  .page-heading h1 { font-size: 56px; }
  .page-heading .meta { font-size: 12px; }
  #download-selected { padding: 7px 9px; min-height: 36px; font-size: 12px; gap: 5px; }
  #download-selected .icon { width: 14px; height: 14px; }
  .photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-inline: 2px; }
  .photos-empty { padding-top: 52px; }
  .editor-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .editor-form { max-height: calc(100dvh - 20px); }
  .editor-head, .editor-scroller, .event-fields { padding: 18px; }
  .editor-foot { padding: 8px; gap: 4px; }
  .editor-status { margin-inline: 18px; }
  .tool { width: 34px; height: 40px; }
  .event-row button { min-height: 44px; }
  .menu-inner > a { font-size: 40px; min-height: 74px; }
}
@media(hover: none), (pointer: coarse) {
  .photo-cell .photo-action { opacity: 1; }
  .photo-cell .select-photo, .photo-cell .thumb-download { width: 44px; height: 44px; right: 1px; }
  .photo-cell .select-photo { top: 1px; }
  .photo-cell .thumb-download { bottom: 1px; }
  .photo-cell .thumb-download .icon { width: 17px; height: 17px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.remove-file { margin-left: auto; text-decoration: underline; color: var(--muted); }
