@font-face { font-family: 'Manrope'; src: url('/static/fonts/manrope.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/static/fonts/cormorant-garamond.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/static/fonts/cormorant-garamond-italic.ttf') format('truetype'); font-weight: 300 700; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #faf9f6; --white: #fff; --ink: #23251f; --muted: #727568;
  --line: #dedfd6; --wash: #efefe7; --olive: #647053; --warning: #8a542d;
  --serif: 'Cormorant', Georgia, serif; --sans: 'Manrope', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 13px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; transition: background .16s, border-color .16s; }
button:hover:not(:disabled) { background: var(--wash); border-color: #a5a799; }
button:disabled { opacity: .42; cursor: not-allowed; }
button.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
button.primary:hover:not(:disabled) { background: #474b3d; border-color: #474b3d; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
input, textarea, select { width: 100%; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
input::placeholder, textarea::placeholder { color: #898b82; }
textarea { resize: vertical; }
label { display: grid; gap: 7px; margin-bottom: 17px; font-size: 12px; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 12px; }
input[type='checkbox'] { accent-color: var(--ink); width: 16px; height: 16px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(46px, 4.5vw, 74px)/1.08 var(--serif); letter-spacing: -.035em; }
h2 { font: 500 29px/1.15 var(--serif); letter-spacing: -.02em; }
h3 { font-size: 13px; font-weight: 550; line-height: 1.55; }
em { font-weight: 400; }
.eyebrow, .edition { font: 500 9px/1.7 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow, .edition { color: var(--muted); }
.muted, small { color: var(--muted); }
.small, small { font-size: 11px; }
.spaced { margin-top: 26px; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--olive); border-radius: 50%; flex-shrink: 0; }
.text-button { border: 0; padding: 6px 0; justify-content: space-between; min-height: 36px; font-size: 11px; }
.skip-link { position: fixed; z-index: 20; top: -70px; left: 20px; padding: 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
#notice { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: white; border-radius: 4px; padding: 15px 25px; box-shadow: 0 8px 30px #23251f26; }
#shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 37px 25px 24px; }
.brand { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 9px; font: 500 29px/1 var(--serif); letter-spacing: -.035em; text-decoration: none; }
.brand img { display: block; }
.brand span { grid-column: 1 / -1; margin-top: 12px; color: var(--muted); font: 400 10px/1.6 var(--sans); letter-spacing: .01em; }
.nav-label { margin: 66px 10px 14px; font-size: 8px; }
nav { display: grid; gap: 5px; }
nav button { padding: 12px 10px; justify-content: flex-start; gap: 13px; font-size: 11px; text-align: left; white-space: nowrap; border: 0; }
nav button.active { background: var(--wash); }
.nav-number { font-size: 9px; color: var(--muted); letter-spacing: .03em; }
.nav-arrow { margin-left: auto; opacity: 0; font-size: 17px; line-height: 1; }
nav button.active .nav-arrow { opacity: 1; }
#review-count:not(:empty) { font-size: 9px; border: 1px solid var(--line); padding: 0 5px; border-radius: 2px; }
.sidebar-note { margin-top: auto; padding: 65px 4px 35px; font: 400 22px/1.25 var(--serif); color: #737768; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 9px; }
.server-status { display: flex; align-items: center; gap: 7px; }
.sidebar-foot button { width: 100%; margin-top: 9px; }
.account-actions { display: flex; justify-content: space-between; gap: 18px; }
.account-actions button { width: auto; }
main { min-width: 0; padding: 33px clamp(24px, 3.6vw, 64px) 0; }
.page-header { margin-bottom: 31px; }
.header-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 29px; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.actions { display: flex; gap: 8px; flex-shrink: 0; }
.actions button { font-size: 11px; }
#content { min-height: calc(100vh - 266px); outline: none; }
.view-enter { animation: reveal .45s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.page-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 50px; padding: 21px 0; color: var(--muted); font-size: 9px; }
.page-foot > :first-child { font-size: 8px; letter-spacing: .16em; color: var(--ink); }
.day-intro { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; min-height: 255px; border: 1px solid var(--line); background: linear-gradient(105deg, #f2f2e9, #f8f8f2 65%, #f0f0e6); overflow: hidden; }
.intro-copy { padding: 34px 38px; }
.intro-copy h2 { font-size: clamp(36px, 3.5vw, 58px); font-weight: 400; line-height: .99; margin: 15px 0 17px; }
.intro-copy p { color: #6f7464; font-size: 11px; max-width: 290px; line-height: 1.8; }
.day-art { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; padding: 20px; }
.balance-art { position: relative; width: 250px; height: 180px; }
.balance-art i { position: absolute; display: block; }
.art-ring { width: 158px; height: 158px; top: 4px; right: 10px; border: 1px solid var(--ink); border-radius: 50%; }
.art-ring::before, .art-ring::after { content: ''; position: absolute; inset: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.art-ring::after { inset: 17px; }
.art-disc { height: 125px; width: 125px; background: var(--ink); top: 39px; left: 14px; border-radius: 50%; box-shadow: 13px 20px 25px -20px #23251f70; }
.art-disc::after { content: ''; position: absolute; top: 7px; left: 62px; width: 1px; height: 112px; background: #f1f2e78c; transform: rotate(24deg); }
.art-line { bottom: 15px; left: 0; right: 0; height: 1px; background: #a5a99b; }
.art-dot { width: 13px; height: 13px; right: 14px; bottom: 3px; background: var(--ink); border-radius: 50%; }
.art-caption { display: flex; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.day-art .art-caption { width: 250px; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 35px; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.stat { display: flex; align-items: center; justify-content: flex-start; padding: 0 26px; gap: 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; text-align: left; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat:hover:not(:disabled) { background: transparent; border-color: var(--line); }
.stat strong { font: 400 52px/.9 var(--serif); letter-spacing: -.055em; }
.stat span { color: var(--muted); font-size: 11px; }
.stat .stat-link { margin-left: auto; font-size: 17px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 26px; min-width: 0; }
.agenda-panel { background: transparent; border: 0; padding: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 3px; }
.section-heading h2 { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 > span { font: 400 10px var(--sans); color: var(--muted); }
.section-heading button { font-size: 10px; padding: 0; border: 0; min-height: auto; color: var(--muted); }
.row { display: flex; align-items: center; gap: 15px; padding: 21px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row > div { flex: 1; min-width: 0; }
.row h3, .row p { overflow-wrap: anywhere; }
.row p { color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.8; }
.row button { min-height: 32px; padding: 4px 7px; font-size: 10px; border-color: transparent; flex-shrink: 0; }
.row time { color: var(--olive); font-size: 10px; display: block; margin-bottom: 5px; }
.row .task-toggle { border: 1px solid #bdc0b1; border-radius: 50%; min-height: 21px; width: 21px; height: 21px; padding: 0; font-size: 11px; }
.row .task-toggle:hover { background: var(--wash); }
.done h3 { text-decoration: line-through; color: var(--muted); }
.done .task-toggle { background: var(--wash); }
.empty { color: var(--muted); padding: 29px 0; font-size: 12px; line-height: 1.85; }
.empty-state { padding: 33px 0 18px; }
.empty-state > span { display: block; font: italic 400 27px var(--serif); color: #73796a; margin-bottom: 7px; }
.empty-state p { color: var(--muted); font-size: 11px; max-width: 260px; }
.inbox-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; margin-top: 30px; background: #f0f1e9; font-size: 11px; }
.inbox-note button { white-space: nowrap; min-height: 34px; padding: 5px 0 5px 12px; border: 0; }
.project-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.project-bar select { max-width: 300px; }
.toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.toolbar strong { font: 500 31px var(--serif); }
.toolbar a { margin-left: auto; font-size: 10px; }
.toolbar button { min-width: 36px; min-height: 36px; padding: 5px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday { padding: 8px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); }
.day-cell { border-bottom: 1px solid var(--line); min-height: 108px; padding: 11px 8px; overflow: hidden; }
.day-cell b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 11px; font-weight: 450; }
.day-cell.today b { background: var(--ink); color: white; border-radius: 50%; }
.day-cell.today { background: #f5f6ef; }
.day-cell p { font-size: 9px; padding: 3px 5px; margin-top: 5px; background: var(--wash); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.capture { margin-bottom: 30px; background: #f1f2eb; }
.capture h2 { margin-bottom: 17px; }
.capture textarea { min-height: 130px; background: #ffffffb0; }
.capture footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.capture small { max-width: 360px; }
.tag { display: inline-block; font-size: 9px; background: var(--wash); border: 1px solid var(--line); padding: 2px 7px; font-weight: 400; border-radius: 2px; }
.message { white-space: pre-wrap; }
.warning { color: var(--warning) !important; font-size: 12px; }
.connection { padding: 23px 0; border-bottom: 1px solid var(--line); }
.connection:last-child { border-bottom: 0; }
.connection h3 { margin-bottom: 9px; }
.connection p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.connection small { display: block; margin-top: 9px; }
.documents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.document-list { min-width: 0; }
.drop { padding: 25px; background: #f1f2eb; border: 1px dashed #a7ad99; }
.drop p { font-size: 11px; margin: 10px 0 17px; }
.drop.over { border-color: var(--ink); background: #e6e8db; }
.drop input { padding: 0; border: 0; background: transparent; font-size: 10px; }
.drop input::file-selector-button { font: inherit; padding: 9px 13px; margin-right: 12px; background: transparent; border: 1px solid #a7ad99; border-radius: 2px; color: var(--ink); cursor: pointer; }
.document-list .panel { padding: 22px; }
.document-list h2 { font-size: 27px; }
#file-list { margin-top: 15px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.file-row button { padding: 4px 7px; font-size: 9px; min-height: 34px; flex-shrink: 0; border-color: transparent; }
.file-row .handle { cursor: grab; touch-action: none; user-select: none; background: var(--wash); letter-spacing: .05em; }
.file-row.dragging { opacity: .55; outline: 1px solid var(--olive); background: var(--wash); }
.file-row.dragging .handle { cursor: grabbing; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 11px; cursor: pointer; }
.option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.file-footer { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; }
.file-footer button { font-size: 10px; flex-grow: 1; }
.split-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.split-header button { font-size: 10px; padding: 6px 10px; min-height: 34px; }
.output-row { margin: 15px 0; border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.output-row a { display: block; font-size: 11px; margin-bottom: 8px; }
.output-row button { min-height: 32px; font-size: 10px; padding: 5px 9px; }
.preview { position: sticky; top: 24px; background: #efefe8; padding: 20px; }
.preview h2 { font-size: 25px; margin-bottom: 17px; }
.preview-stage { min-height: 350px; aspect-ratio: 210 / 297; display: flex; align-items: center; justify-content: center; background: white; color: var(--muted); font-size: 11px; text-align: center; overflow: hidden; box-shadow: 0 3px 12px #23251f06; }
.preview-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-title { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; margin-top: 13px; min-height: 16px; }
.progress-line { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 11px; }
dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 35px; box-shadow: 0 20px 80px #23251f1f; }
dialog::backdrop { background: #22271d36; backdrop-filter: blur(5px); }
dialog h2 { font-size: 41px; margin: 7px 0 27px; }
dialog footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
dialog .quote { max-height: 180px; overflow: auto; font-size: 12px; border-left: 1px solid #a3aa93; padding: 12px 17px; margin: 16px 0; background: var(--wash); white-space: pre-wrap; overflow-wrap: anywhere; }
dialog .warning { margin-bottom: 20px; }
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-content { padding: 40px clamp(28px, 6vw, 110px); display: flex; flex-direction: column; }
.login .brand { width: 220px; }
.login form { max-width: 470px; margin: auto 0; padding: 65px 0; }
.login h1 { font-size: clamp(52px, 5.1vw, 82px); margin: 20px 0 25px; }
.login form > p { color: var(--muted); font-size: 12px; }
.login label { margin: 34px 0 16px; }
.login label + label { margin-top: 16px; }
.login form > .setup-note { margin-top: 24px; padding: 14px; background: var(--wash); font-size: 11px; }
.login form > .password-hint { margin-bottom: 17px; font-size: 10px; }
.login.is-setup h1 { font-size: clamp(40px, 4vw, 60px); }
.login.is-setup form { padding: 35px 0; }
.login.is-setup label { margin-top: 16px; }
#login-error, #password-error { margin: 14px 0; }
.login form > button { width: 100%; justify-content: space-between; padding: 14px 19px; }
.login form > .login-privacy { display: flex; align-items: center; gap: 8px; font-size: 10px; margin-top: 20px; }
.login-art { background: radial-gradient(ellipse at 45% 50%, #f7f7ef 0, #eeefe3 65%, #e6e9db 100%); padding: 49px 45px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; border-left: 1px solid var(--line); overflow: hidden; }
.login-art .balance-art { transform: scale(1.65); }
.login-art > .art-caption { width: 100%; }
@media (max-height: 800px) and (min-width: 701px) {
  .sidebar-note { display: none; }
  .sidebar-foot { margin-top: auto; }
}
@media (min-width: 1700px) {
  main { padding-left: 72px; padding-right: 72px; }
  #content, .page-header, .page-foot { max-width: 1500px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1200px) {
  #shell { grid-template-columns: 208px minmax(0, 1fr); }
  .sidebar { padding-left: 18px; padding-right: 18px; }
  nav button { gap: 9px; font-size: 10px; }
  .header-main { align-items: flex-start; }
  .intro-copy { padding: 27px; }
  .day-art { padding: 12px; }
  .balance-art { transform: scale(.85); }
  .day-art .art-caption { width: 210px; margin-top: -2px; }
  .grid { gap: 24px; }
  .stat { padding: 0 16px; gap: 11px; }
  .stat strong { font-size: 46px; }
  .stat span { font-size: 10px; }
  .row { gap: 10px; }
  .documents { gap: 18px; }
  .preview-stage { min-height: 260px; }
}
@media (max-width: 960px) {
  .header-main { flex-direction: column; gap: 18px; }
  .day-intro { grid-template-columns: 1.1fr 1fr; min-height: 230px; }
  .intro-copy h2 { font-size: 40px; }
  .day-art { overflow: hidden; }
  .day-art .balance-art { transform: scale(.7); margin: -20px; }
  .day-art .art-caption { width: 160px; font-size: 7px; }
  .day-art .art-caption > :last-child { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .documents { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .preview-stage { max-height: 75vh; min-height: 260px; }
  .preview-stage img { max-height: 75vh; }
  .login-art .balance-art { transform: scale(1.1); }
  .login-art { padding: 45px 25px; }
}
@media (max-width: 700px) {
  #shell { display: block; }
  .sidebar { position: static; height: auto; padding: 19px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { display: flex; font-size: 27px; gap: 8px; }
  .sidebar .brand img { width: 24px; height: 24px; }
  .sidebar .brand span, .nav-label, .sidebar-note, .sidebar-foot .server-status { display: none; }
  .sidebar-foot { position: absolute; top: 17px; right: 20px; padding: 0; border: 0; }
  .sidebar-foot button { margin: 0; width: auto; gap: 9px; }
  nav { display: flex; overflow-x: auto; gap: 8px; margin-top: 21px; padding-bottom: 12px; scrollbar-width: thin; }
  nav button { flex-shrink: 0; min-height: 34px; padding: 7px 11px; font-size: 10px; gap: 7px; }
  .nav-number { font-size: 8px; }
  .nav-arrow { display: none; }
  main { padding: 24px 20px 0; }
  .header-line { padding-bottom: 18px; }
  .header-line .edition { display: none; }
  .header-line .eyebrow { font-size: 8px; }
  .header-main { gap: 18px; }
  .header-main h1 { font-size: 48px; max-width: 100%; }
  .page-header { margin-bottom: 24px; }
  .actions button { min-height: 38px; }
  .day-intro { grid-template-columns: 1fr .75fr; min-height: 221px; }
  .intro-copy { padding: 24px 0 24px 21px; z-index: 1; }
  .intro-copy .eyebrow { font-size: 7px; }
  .intro-copy h2 { font-size: 34px; line-height: 1.04; margin-top: 15px; }
  .intro-copy p { font-size: 10px; line-height: 1.65; }
  .day-art .balance-art { flex-shrink: 0; transform: scale(.54); margin: -50px; }
  .day-art .art-caption { margin-top: 15px; width: auto; font-size: 6px; }
  .stats { margin: 23px 0 28px; padding-bottom: 23px; }
  .stat { display: grid; gap: 8px; padding: 0 10px; }
  .stat strong { font-size: 39px; }
  .stat span { font-size: 9px; }
  .stat .stat-link { display: none; }
  .section-heading { padding-bottom: 16px; }
  .section-heading h2 { font-size: 27px; }
  .inbox-note { padding: 16px; align-items: flex-start; font-size: 10px; }
  .inbox-note button { font-size: 10px; }
  .panel { padding: 19px; }
  .row { padding: 18px 0; }
  .row .task-toggle { position: relative; }
  .row .task-toggle::before { content: ''; position: absolute; inset: -11px; }
  .row button:not(.task-toggle) { min-height: 44px; }
  .agenda-panel { padding: 0; }
  .page-foot { margin-top: 37px; font-size: 8px; }
  .page-foot > :last-child { display: none; }
  .toolbar { gap: 8px; flex-wrap: wrap; }
  .toolbar strong { font-size: 25px; }
  .toolbar a { font-size: 9px; }
  .day-cell { min-height: 78px; padding: 6px 2px; }
  .day-cell p { font-size: 8px; padding: 2px; }
  .weekday { font-size: 9px; padding: 7px 2px; }
  .capture footer { flex-direction: column; align-items: stretch; }
  .capture small { font-size: 10px; }
  .project-bar button { font-size: 11px; flex-shrink: 0; }
  .document-list .panel { padding: 18px; }
  dialog { padding: 24px; }
  dialog h2 { font-size: 35px; }
  dialog .option-row { grid-template-columns: 1fr; gap: 0; }
  .login { grid-template-columns: 1fr; }
  .login-content { min-height: 100dvh; padding: 26px; }
  .login-art { display: none; }
  .login h1 { font-size: 58px; }
  .login form { padding: 55px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
