@font-face{font-family:Instrument;src:url('/static/instrument-sans.ttf') format('truetype');font-weight:400 700;font-display:swap}@font-face{font-family:InstrumentSerif;src:url('/static/instrument-serif.ttf') format('truetype');font-display:swap}
:root{--ground:#f5f4ef;--surface:#eeede7;--paper:#fffefa;--ink:#252b28;--muted:#656c65;--line:#dcded5;--accent:#226b5e;--accent-ink:#fff;--negative:#ae332e;--tint:#e3ece5;--radius:16px;color-scheme:light;font-family:Instrument,system-ui,sans-serif;color:var(--ink);background:var(--ground);font-size:15px;line-height:1.5;font-synthesis:none}html[data-theme=dark]{--ground:#191e1c;--surface:#222a26;--paper:#1e2521;--ink:#eceee5;--muted:#a8b4aa;--line:#38443b;--accent:#95cdb7;--accent-ink:#142d24;--negative:#ffb0a6;--tint:#2a3d32;color-scheme:dark}*{box-sizing:border-box}body{margin:0}::selection{background:var(--accent);color:var(--accent-ink)}a{color:inherit;text-underline-offset:4px}button,input,textarea,select{font:inherit}button,.button{min-height:42px;padding:9px 17px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500}button:hover,.button:hover{background:var(--surface)}button.primary,.button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}button.primary:hover{filter:brightness(.93)}button:disabled{cursor:wait;opacity:.55}.danger{color:var(--negative)}.plain{border:0;background:transparent;padding:6px 9px}.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input,textarea,select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:10px 12px;caret-color:var(--accent)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}textarea{min-height:110px;resize:vertical}label{display:block;font-size:14px;font-weight:500;margin:0 0 6px}.field{margin-bottom:18px}.help,.muted{color:var(--muted)}.help{font-size:13px;margin:5px 0 0}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{display:grid;gap:16px}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.15;font-weight:500;letter-spacing:-.025em;margin-bottom:12px}h2{font-size:18px;font-weight:500;line-height:1.4;margin-bottom:18px}h3{font-size:15px;font-weight:500;margin-bottom:6px}p{margin-bottom:12px}small{font-size:12px}.serif{font-family:InstrumentSerif,Georgia,serif;font-weight:400}.brand{display:flex;gap:10px;align-items:center;font-size:26px;letter-spacing:-.04em;text-decoration:none}.brand svg{width:32px;height:32px;color:var(--accent)}.sidebar{width:224px;position:fixed;inset:0 auto 0 0;padding:32px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--ground);z-index:10}.sidebar .brand{padding:0 10px}.sidebar .scope{font-size:12px;color:var(--muted);padding:4px 10px;margin:0 0 38px}.nav{display:grid;gap:7px}.nav button{border:0;border-radius:9px;justify-content:flex-start;background:transparent;font-weight:400;padding:9px 12px}.nav button.active{background:var(--surface);font-weight:500}.nav button:hover{background:var(--surface)}.sidebar-bottom{margin-top:auto;display:grid;gap:15px;padding:20px 10px 0;font-size:13px}.sidebar-bottom .private{display:flex;gap:6px;align-items:center;color:var(--muted)}.main{margin-left:224px;padding:42px 40px 60px;min-height:100vh}.canvas{max-width:1100px;margin:auto}.mobilebar{display:none}.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.greeting{font-family:InstrumentSerif,Georgia,serif;font-size:48px;font-weight:400;line-height:1.1}.subtitle{color:var(--muted);margin-bottom:0}.date{color:var(--muted);font-size:13px;margin-bottom:12px}.overview{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.span8{grid-column:span 8}.span4{grid-column:span 4}.span6{grid-column:span 6}.span12{grid-column:span 12}.panel{background:var(--surface);border-radius:var(--radius);padding:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.panel-head h2{margin:0}.panel-head button{font-size:13px}.count{font-weight:400;font-size:14px;color:var(--muted)}.person-row{display:flex;align-items:center;gap:13px;min-height:74px;border-bottom:1px solid var(--line);padding:14px 0}.person-row:last-child{border-bottom:0}.person-link{border:0;background:none;padding:0;display:block;text-align:left;font-weight:500;min-height:0;border-radius:3px}.person-link:hover{background:none;text-decoration:underline;text-underline-offset:4px}.avatar{display:flex;width:42px;height:42px;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;font-size:14px;font-weight:500;background:var(--tint);color:var(--ink)}.avatar.tone1{background:#e5dcd3;color:#604730}.avatar.tone2{background:#dce3ee;color:#3c526b}.avatar.tone3{background:#e8dfeb;color:#684d70}.avatar.tone4{background:#e9e5c9;color:#615a27}.avatar.tone5{background:#d9e6df;color:#355849}html[data-theme=dark] .avatar{filter:brightness(.8)}.subline{font-size:13px;color:var(--muted);margin-top:3px}.status{color:var(--accent);font-size:12px;white-space:nowrap}.overdue{color:var(--negative)}.empty{padding:25px 0;color:var(--muted)}.empty h3{color:var(--ink);font-size:17px}.empty p{max-width:42ch}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}.preview-banner{padding:10px 16px;background:var(--tint);color:var(--ink);font-size:13px;border-radius:8px;margin-bottom:24px}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.toolbar input{max-width:440px;border-radius:999px}.toolbar select{width:160px}.people-list{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:0 22px}.list-head{display:grid;grid-template-columns:minmax(200px,1fr) 140px 160px 140px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.directory-row{display:grid;grid-template-columns:minmax(200px,1fr) 140px 160px 140px;gap:0;align-items:center;min-height:84px;border-bottom:1px solid var(--line);font-size:14px}.directory-row:last-child{border-bottom:0}.directory-row .row{padding-right:16px}.tag{font-size:12px;display:inline-block;padding:3px 9px;border:1px solid var(--line);border-radius:999px}.back{margin:0 0 20px -10px}.profile-name{font-size:38px}.profile-avatar{height:64px;width:64px;font-size:22px}.profile-grid{display:grid;grid-template-columns:1fr 300px;gap:24px}.profile-meta{display:grid;gap:18px}.profile-meta dt{font-size:12px;color:var(--muted)}.profile-meta dd{margin:3px 0 0;overflow-wrap:anywhere}.entry{padding:21px 0;border-bottom:1px solid var(--line)}.entry:last-child{border:0}.entry h3{font-size:16px}.entry .note-text{font-size:14px;margin:12px 0 0}.entry-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.entry-tools button{min-height:32px}.settings-row{display:grid;grid-template-columns:1fr 1.5fr;gap:36px;padding:28px 0;border-bottom:1px solid var(--line)}.settings-row:first-child{padding-top:0}.settings-row h2{margin-bottom:8px}.settings-row p{color:var(--muted);max-width:40ch}.settings-row .panel p{color:var(--ink)}.login{max-width:960px;margin:8vh auto;padding:30px;display:grid;grid-template-columns:1fr 400px;gap:70px;align-items:center}.login-intro h1{font-family:InstrumentSerif,Georgia,serif;font-size:64px;font-weight:400;line-height:1.05;margin:40px 0 24px}.login-intro p{color:var(--muted);font-size:17px;max-width:30ch}.login-box{background:var(--paper);border-radius:20px;padding:30px;border:1px solid var(--line)}.login-box h2{font-size:24px;margin-bottom:8px}.login-box form{margin-top:24px}.login-box .primary{width:100%}.error{color:var(--negative);font-size:14px;white-space:pre-wrap}.qr{display:block;width:190px;height:190px;margin:16px auto}.secret{font-family:monospace;font-size:12px;overflow-wrap:anywhere;padding:12px;background:var(--surface);border-radius:6px}.recovery{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-family:monospace;margin:20px 0}.loading{padding:60px;text-align:center}.skip{position:fixed;top:-80px;left:20px;padding:10px;background:var(--paper);z-index:100}.skip:focus{top:10px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;background:var(--paper);color:var(--ink);width:min(620px,calc(100% - 28px));max-height:90dvh}dialog::backdrop{background:#10201980}dialog h2{font-size:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--ground);padding:12px 22px;border-radius:10px;z-index:100;max-width:90%;display:none}.footer{margin-top:32px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.birthday-date{text-align:center;min-width:40px}.birthday-date strong{display:block;font-size:22px;font-weight:400;line-height:1.1}.birthday-date span{font-size:12px;color:var(--muted)}.reminder-check{width:28px;height:28px;min-height:28px;border-radius:50%;padding:0;flex-shrink:0}.reminder-check:hover{color:var(--accent);border-color:var(--accent)}.reminder-check.done{background:var(--accent);color:var(--accent-ink)}.activity-kind{font-size:12px;color:var(--muted)}.divider{height:1px;background:var(--line);margin:22px 0}.login .footer{grid-column:1/-1;margin-top:0}.wide-button{width:100%}.mono{font-family:monospace}.onboarding{display:flex;gap:24px;align-items:center}.onboarding .grow p{margin-bottom:0}.file-input{padding:12px}.is-hidden{display:none!important}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1500px){.main{padding-top:50px}}@media(max-width:1150px){.main{padding:32px 24px}.sidebar{width:200px}.main{margin-left:200px}.list-head,.directory-row{grid-template-columns:minmax(180px,1fr) 110px 125px}.directory-location{display:none}.profile-grid{grid-template-columns:1fr 260px}.span8,.span4{grid-column:span 6}.greeting{font-size:42px}}@media(max-width:800px){.sidebar{display:none;inset:54px 0 0;width:100%;border:0;padding:24px}.sidebar.open{display:flex}.sidebar .brand,.sidebar .scope{display:none}.sidebar .nav button{min-height:48px}.mobilebar{display:flex;position:sticky;top:0;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--ground);border-bottom:1px solid var(--line);z-index:20;height:58px}.mobilebar .brand{font-size:24px}.mobilebar button{min-height:36px}.main{margin-left:0;padding:26px 16px 40px}.greeting{font-size:38px}.title-row{gap:12px;align-items:flex-start}.title-row .primary{font-size:13px;padding:9px 13px;white-space:nowrap}.overview{gap:16px}.span8,.span4,.span6{grid-column:span 12}.panel{padding:20px}.profile-grid{grid-template-columns:1fr}.profile-meta{grid-template-columns:1fr 1fr}.settings-row{grid-template-columns:1fr;gap:14px}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none;flex:1;min-width:160px}.toolbar select{width:125px}.list-head{display:none}.directory-row{grid-template-columns:minmax(0,1fr) 90px;min-height:84px}.directory-contact{display:none}.directory-row .row{padding:0}.people-list{padding:0 14px}.person-row{gap:10px}.person-row .plain{font-size:12px}.login{margin:0 auto;grid-template-columns:1fr;max-width:480px;padding:28px 20px;gap:24px}.login-intro h1{font-size:45px;margin:28px 0 12px}.login-intro p{font-size:15px;max-width:none}.login-box{padding:24px}.login .footer{font-size:11px}.profile-name{font-size:32px}.onboarding{align-items:flex-start;flex-direction:column}.date{font-size:12px}.footer{flex-wrap:wrap}.profile-grid .panel:first-child{order:0}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}dialog{padding:22px}.title-row p{font-size:14px}.avatar{width:38px;height:38px}.profile-avatar{width:56px;height:56px}.entry-tools{align-items:flex-start}input,textarea,select{font-size:16px}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:arrive .18s ease-out}@keyframes arrive{from{transform:translateY(10px)}to{transform:translateY(0)}}}
/* Imports and contact organization use the existing panel and form grammar. */
.toolbar{flex-wrap:wrap}.toolbar select{max-width:170px}.avatar{object-fit:cover}.avatar-button{padding:0;border:0;background:transparent;min-height:0;flex-shrink:0;border-radius:50%}.avatar-button:hover{background:transparent}.check-row{display:flex;align-items:center;gap:12px;font-weight:400;min-height:40px;margin:0;padding:7px 0}.check-row input{width:20px;height:20px;min-height:20px;padding:0;flex-shrink:0;accent-color:var(--accent)}.member-picker,.import-picker{padding:4px 12px;border:1px solid var(--line);border-radius:8px;max-height:320px;overflow:auto;margin:12px 0}.import-row{align-items:flex-start;border-bottom:1px solid var(--line);padding:12px 0}.import-row:last-child{border:0}.import-row strong{font-weight:500}.import-row .subline{display:block;overflow-wrap:anywhere}.import-picker input{margin-top:3px}#import-result{min-width:0}#import-result ul{padding-left:18px;font-size:13px}#import-result details{margin:12px 0}#import-result summary{cursor:pointer}#photo-crop{display:block;width:min(100%,320px);height:auto;margin:20px auto;border-radius:50%;background:var(--tint);touch-action:none;cursor:grab}#photo-crop:active{cursor:grabbing}input[type=range]{padding:0;border:0;accent-color:var(--accent)}.section-actions{margin-top:20px}.break-word{overflow-wrap:anywhere}.panel h2+.plain{padding-left:0}#gmail-form>.help{margin-bottom:18px}
.story-section{padding:20px 0;border-bottom:1px solid var(--line)}.story-section:first-child{padding-top:0}.story-section:last-child{border:0;padding-bottom:0}.story-section h3{font-size:17px;margin-bottom:14px}.story-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0}.story-facts dt{font-size:12px;color:var(--muted);margin-bottom:5px}.story-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.story-editor-section{margin-top:18px}.story-editor-section textarea{min-height:85px}.profile-grid{align-items:start}.profile-sidebar{align-self:start}.profile-grid>.stack>.panel:only-child{align-self:start}@media(max-width:800px){.story-facts{grid-template-columns:1fr}.profile-name{overflow-wrap:anywhere}.profile-grid .panel-head{flex-wrap:wrap}.profile-grid .panel-head h2{margin-right:auto}}

.profile-actions{margin-top:-8px;margin-bottom:24px}

.me-tag{vertical-align:middle;font-family:Instrument,system-ui,sans-serif;font-size:12px;letter-spacing:0;font-weight:500;white-space:nowrap;background:var(--tint);color:var(--ink)}
