/* Claude visual preview adapted to the existing app DOM.
   Presentation only: saved colour keys, media, text, geometry and coordinates stay intact. */
:root{
  --paper-white:#fff;--paper-gray:#E9E9E5;--paper-warm:#F5F0E3;--paper-dark:#1B1B1A;
  --paper-dark-text:#F3F2EE;--paper-dark-sub:#aaa9a2;--paper-dark-body:#C9C8C1;--paper-dark-rule:#40403c;
  --bg:#F3F2EE;--desk:#ECEBE6;--surface:#fff;--ink:#161615;--ink-2:#55554F;
  --ink-3:#8E8D86;--ink-4:#B9B8B1;--muted:#8E8D86;--line:#E2E0D9;--line-2:#D5D3CB;
  --green:#161615;--rule:#E2E0D9;--chip:#E7E5DF;--chip-active:#fff;--float-bg:#F3F2EE;
  --ink-soft:#55554F;--ink-faint:#8E8D86;--accent:#E2502C;
  --mono:"SF Mono","JetBrains Mono","IBM Plex Mono",ui-monospace,Menlo,monospace;
  --serif:"Songti SC","STSong","Noto Serif SC","Source Han Serif SC",serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Hiragino Sans GB",sans-serif;
  --shadow-paper:0 1px 1px rgba(22,22,21,.04),0 8px 16px -8px rgba(22,22,21,.14),0 28px 44px -28px rgba(22,22,21,.22);
}
html,body{background:var(--bg);color:var(--ink)}body{font-family:var(--sans)}
::selection{background:#dedbd0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--ink)}
.topbar{position:sticky;top:0;height:76px;z-index:40;border:0;background:var(--bg);display:grid;grid-template-columns:1fr auto 1fr}
.brand{gap:0;justify-self:start}.brand>svg{display:block;width:auto;height:22px}.brand svg g{stroke:var(--ink)}
.main-nav{padding:4px;gap:2px;background:var(--chip);border-radius:999px}
.nav-btn{height:36px;padding:0 18px 0 14px;font-size:14px;color:var(--ink-2);gap:8px}
.nav-btn.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #16161514,0 0 0 .5px #1616150f}
.nav-btn:hover{color:var(--ink);background:#1616150c}.nav-btn.active:hover{background:#fff}
.nav-dot{width:5px;height:5px;background:var(--accent)}
.top-right{justify-self:end;gap:18px}.date-label{font-family:var(--mono);font-size:11px;color:var(--ink-3);letter-spacing:.02em}
.avatar{width:32px;height:32px;background:var(--chip);border-color:var(--line-2);color:var(--ink-2)}.avatar:hover{box-shadow:0 0 0 3px #1616150b}
#boardView{padding-top:8px}.board-toolbar{position:sticky;top:76px;z-index:39;background:var(--bg);margin:8px 3px 0;padding:0 0 6px;min-height:44px}
.filters{gap:2px;padding:4px;border-radius:999px;background:var(--chip)}
.filter{height:32px;padding:0 14px;font-size:13px;color:var(--ink-2);border-radius:999px}
.filter.active{color:var(--ink);background:#fff;box-shadow:0 1px 2px #16161514,0 0 0 .5px #1616150f}
.filter span{font-family:var(--mono);font-size:10px;color:var(--ink-3);margin-left:6px;opacity:1}
.filter:hover,.text-button:hover{color:var(--ink)}.board-actions{gap:12px}.text-button{font-size:13px;color:var(--ink-2);padding:7px 9px;border-radius:999px}.text-button:hover{background:#1616150a}
.search-wrap{height:32px;gap:8px;padding:0 12px;border-radius:999px;color:var(--ink-3)}
.search-wrap:focus-within{background:#fff;box-shadow:0 1px 2px #16161514}.search-wrap input{font-size:12px;color:var(--ink);width:134px}.search-wrap input::placeholder{color:var(--ink-3)}.toolbar-divider{background:var(--line-2)}
/* The canvas and every card retain their original dimensions and saved positions. */
.board{margin-top:22px;border:1px solid transparent;border-radius:0;background-color:transparent;background-image:radial-gradient(#16161520 .8px,transparent 1px);background-size:24px 24px}
.board:after{background:linear-gradient(var(--bg),transparent 12%,transparent 90%,var(--bg))}
.board-footer{padding:12px 0 140px;font-family:var(--mono);font-size:10px;letter-spacing:.02em;color:var(--ink-3)}.footer-flower{color:var(--ink-4)}
/* Same six saved choices; map their rendered papers to the reference's four tones.
   Highlight colours inside records are deliberately not touched. */
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#f4e8a6"],
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#dce6ea"]{--paper:var(--paper-white)!important}
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#dbe4cd"]{--paper:var(--paper-gray)!important}
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#efdad2"],
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#eee8d9"]{--paper:var(--paper-warm)!important}
:is(.note,.archive-note,.mini-note,.search-result,.stack-row,.color-option)[style*="#e5dff0"]{--paper:var(--paper-dark)!important;--text:var(--paper-dark-text);--sub:var(--paper-dark-sub);--body:var(--paper-dark-body);--paper-rule:var(--paper-dark-rule)}
.note,.archive-note,.search-result,.stack-row{--text:var(--ink);--sub:var(--ink-3);--body:var(--ink-2);--paper-rule:var(--line);color:var(--text);border-color:transparent;border-radius:2px;box-shadow:var(--shadow-paper);background:var(--paper)}
.note{padding:25px 22px 16px}.note.has-art{padding-top:25px}
.note:before,.note:after,.archive-pinboard .archive-note:before,.archive-pinboard .archive-note:after{content:none}
.note:hover,.archive-pinboard.is-open .archive-note:hover{box-shadow:0 1px 1px #1616150a,0 14px 24px -10px #1616152e,0 40px 60px -30px #16161547}
.note .tape{display:none}
/* Use the existing transparent silver asset without changing note markup. */
#board>.note:not(.ghost):before{content:"";position:absolute;inset:auto;left:50%;top:-20px;width:22px;height:47px;transform:translateX(-50%);background:url("assets/paperclip-silver.png") 50% 45.57%/380.95% 119.70% no-repeat;z-index:4;pointer-events:none;filter:drop-shadow(0 1px .5px #16161538) drop-shadow(1px 3px 3px #1616151f)}
.pile-shared-pin,.paper-pin{width:22px;height:47px;aspect-ratio:auto;left:50%;top:-20px;transform:translateX(-50%);filter:drop-shadow(0 1px .5px #16161538) drop-shadow(1px 3px 3px #1616151f)}
.pile-shared-pin{top:-7px}.archive-note>.paper-pin{top:-20px;transform:translateX(-50%)}
.note-head{margin-bottom:14px}.source{font-family:var(--mono);font-size:10px;color:var(--sub,var(--ink-3));letter-spacing:.06em}
.source-logo{background:transparent;color:var(--sub,var(--ink-3));width:18px;height:18px;border-radius:3px}.source-logo svg{width:18px!important;height:18px}
.note .open-note,.note.has-art .open-note{font-family:var(--serif);font-size:19px;line-height:1.5;font-weight:600;letter-spacing:.01em;color:var(--text)}
.note .open-note:hover{opacity:1;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.note-author{font-size:11px;color:var(--sub,var(--ink-3));margin-top:8px;line-height:1.6}
.note-art,.archive-media img,.archive-media video,.detail-preview img,.detail-preview video{border-radius:0}.note-art{background:#16161509}
.note .note-art .media-placeholder{color:var(--sub,var(--ink-3));font-size:11px}.video-play{background:#ffffffe0;color:var(--ink)}
.note .thought-button,.note .journal-body,.note .body-excerpt{color:var(--body);font-size:12px;line-height:1.8}
.note .thought-button.placeholder,.note .journal-edit-hint,.writing-caption,.inline-hint{color:var(--sub,var(--ink-3))}
.note .note-bottom{border-top:1px solid var(--paper-rule);padding-top:11px;margin-top:10px;color:var(--sub)}
.meta-time,.meta-time a{font-family:var(--mono);font-size:9px;color:var(--sub)}
.note .done-button{width:29px;height:29px;border:1px solid var(--paper-rule);color:var(--sub);background:transparent}
.note .done-button:hover{background:var(--text);color:var(--paper);border-color:var(--text);transform:none}
.note .note-remove{color:var(--sub)}.note .note-remove:hover{background:#88888814;color:var(--text)}
.note .note-status{font-size:8px;color:var(--sub);border-bottom-color:var(--paper-rule)}.note-preview-retry{color:var(--text)}
.mini-cover-add{color:var(--sub,var(--ink-3));border-color:var(--paper-rule,var(--line-2));border-radius:2px}
.note:hover .mini-cover-add,.note:focus-within .mini-cover-add{color:var(--text);border-color:var(--sub);background:#88888808}
.stack-button{color:var(--ink-2);background:var(--bg);border-color:var(--line);border-radius:999px}
.note.is-highlighted,.note.is-paste-target{outline-color:#85847b}
/* Floating capture preserves the original form and each import handler. */
.capture{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);width:min(760px,calc(100vw - 200px));height:62px;min-height:62px;z-index:60;padding:0 8px 0 22px;gap:12px;border:0;border-radius:18px;background:#fff;box-shadow:0 2px 4px #1616150d,0 24px 50px -18px #16161552,0 0 0 .5px #1616150f}
.capture:focus-within{box-shadow:0 0 0 1px var(--ink),0 24px 50px -18px #16161552}
.capture>svg{color:var(--ink-3);width:18px}.capture input{font-size:15px;padding:0;outline:none!important;min-width:0}.capture input::placeholder{color:var(--ink-4)}
.capture .capture-extras{padding:0;flex:none;display:block}.capture-extras>span{display:none}.capture-extras>div{display:flex;gap:0}.capture-extras button{font-size:11px;color:var(--ink-3);padding:6px 7px;white-space:nowrap}.capture-extras button:hover{background:var(--bg);color:var(--ink)}
.primary{background:var(--ink);color:#fff;border-radius:13px}.primary:hover{background:#000}
.capture .primary{height:46px;padding:0 16px;font-size:13px;border-radius:13px;flex:none}.capture .primary>svg{display:none}
#captureError{position:fixed;left:50%;bottom:99px;transform:translateX(-50%);z-index:61;background:var(--bg);padding:7px 12px;max-width:calc(100vw - 40px)}
.toast{bottom:105px;background:var(--ink);color:#fff;border-radius:999px;box-shadow:0 4px 24px #16161522}.toast button{color:#fff}.account-toast{bottom:105px;color:var(--ink);background:#fff}
.floating-search,.floating-trash,.floating-help{right:28px;border-color:transparent;background:transparent;color:var(--ink-2);width:31px;height:31px}
.floating-search:hover,.floating-trash:hover,.floating-help:hover{background:#1616150c;border-color:transparent;color:var(--ink)}.floating-search{bottom:110px}.floating-trash{bottom:66px}.floating-help{bottom:22px}
/* Calendar keeps the existing archive reading interaction and full-size papers. */
#calendarView{padding-top:22px}.calendar-layout{gap:40px;padding-bottom:80px}.calendar-box{background:transparent;border:0;padding:0;border-radius:0}.month-bar{min-height:38px;margin-bottom:22px}.month-label{font-size:15px;font-weight:400}.month-chevron{color:var(--ink-3)}.month-picker-toggle:hover,.icon-button:hover{background:#1616150b}.month-buttons{gap:6px}.icon-button{color:var(--ink-2)}.today-button{border:0;font-size:12px;color:var(--ink-2)}
.weekdays{font-family:var(--mono);font-size:11px;text-align:left;padding-bottom:10px;color:var(--ink-3)}.weekdays span{padding-left:12px}.calendar-grid{gap:6px}.day{min-height:108px;border:0;border-radius:12px;padding:10px 8px;gap:5px}.day:hover{background:#1616150c}.day.selected{background:#fff;border:0;box-shadow:0 1px 2px #16161514,0 0 0 .5px #1616150f}.day-number{font-family:var(--mono);color:var(--ink-2);font-size:12px;border-radius:0}.day.today .day-number{background:none;color:var(--ink);position:relative}.day.today .day-number:after{content:"";position:absolute;top:3px;right:-3px;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.mini-note{font-family:var(--serif);font-size:10px;border-radius:0;color:var(--text,var(--ink));padding:6px;box-shadow:0 1px 1px #1616150d,0 4px 10px -4px #1616152e}.day-more{color:var(--ink-3)}.calendar-caption{border-color:var(--line);color:var(--ink-3)}.calendar-caption>span{color:var(--accent)!important}
.day-summary-head h2{font-family:var(--sans);font-size:16px;font-weight:400;color:var(--ink)}.day-summary-head p,.day-stats span,.daily-head span,.day-sidebar .daily-head h2{color:var(--ink-3)}.day-stats{border-color:var(--line)}.day-stats strong{font-family:var(--mono);color:var(--ink);font-size:30px;font-weight:400}.sidebar-pile{margin-top:22px}.sidebar-pile .pile-sheet{border-radius:2px}.pile-caption{color:var(--ink-3)}
.archive-pinboard.is-open:before{background:#f3f2eeb8;backdrop-filter:blur(12px) saturate(.8)}
.archive-pinboard .archive-note{border-radius:2px;box-shadow:var(--shadow-paper);color:var(--text)}
.archive-pinboard.is-open .archive-note{box-shadow:var(--shadow-paper)}
.archive-pinboard h3{font-family:var(--serif);font-weight:600;line-height:1.5;color:var(--text)}
.archive-pinboard .source,.archive-pinboard .note-author,.archive-pinboard .reflection-label,.archive-pinboard .archive-meta,.archive-pinboard .archive-foot{color:var(--sub)}
.archive-pinboard .reflection,.archive-pinboard .archive-body{color:var(--body);border-color:var(--paper-rule)}.archive-pinboard .archive-foot{border-color:var(--paper-rule)}
.pile-panel-head .pile-toggle{width:48px;height:48px;border-color:var(--line);background:#fff;color:var(--ink);box-shadow:var(--shadow-paper)}.pile-panel-head .pile-toggle svg{stroke:var(--ink);width:22px;height:22px}.pile-panel-head .pile-toggle:hover{background:var(--bg)}
/* Dialog surfaces and supporting controls share the same quiet paper language. */
dialog{background:#fff;color:var(--ink);border:0;border-radius:4px;box-shadow:0 30px 80px -20px #1616154d,0 0 0 1px #1616150a}
dialog::backdrop,.account-shell::backdrop{background:#f3f2ee9e;backdrop-filter:blur(10px) saturate(.8)}
#noteDialog{width:580px;max-width:calc(100vw - 32px)}.modal-header{padding:30px 40px 0}.modal-content{padding:20px 40px 30px}.modal-content h2,#miniCoverDialog h2{font-family:var(--serif);font-weight:400;font-size:29px;letter-spacing:.02em}.modal-header .eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--ink-3)}.modal-subtitle,.mini-help,.mini-logo-editor button,.form-field>label{color:var(--ink-3)}.form-field>label{font-size:12px}.form-field input,.form-field textarea,.form-field select{border-color:var(--line);background:#FAFAF8;border-radius:8px;font-size:14px}.form-field textarea{line-height:1.95;min-height:130px}.secondary{border-color:var(--line-2);border-radius:13px;color:var(--ink)}.modal-actions{border-top:1px solid var(--line);padding-top:22px}.modal-actions .primary,.modal-actions .secondary{font-size:13px;min-height:44px}.modal-meta,.modal-meta button{color:var(--ink-3)}.color-option{border:3px solid #fff;box-shadow:inset 0 0 0 .5px #16161530}.color-option.selected{outline-color:var(--ink)}
#globalSearchDialog,#monthPicker,#miniCoverDialog,#profileDialog.account-shell{background:#fff;border-color:var(--line);border-radius:4px}.month-picker-head h2,.year-picker-label,.month-picker-hint,.picker-months button,.picker-months button small{color:var(--ink-3)}#pickerYear{background:var(--bg);border-color:var(--line);color:var(--ink)}.picker-months button[aria-pressed="true"]{background:var(--bg);border-color:var(--ink-3);color:var(--ink)}.picker-months button:hover{background:var(--bg)}
.calendar-search-input{background:#FAFAF8;border-color:var(--line);color:var(--ink-3)}.calendar-search-scopes button{color:var(--ink-3)}.calendar-search-scopes button[aria-pressed="true"]{color:var(--ink);background:var(--chip)}.global-search-head p,.search-result-status,.search-result-foot,.search-result-thought{color:var(--sub,var(--ink-3))}.search-result-title{font-family:var(--serif);color:var(--text)}.search-result-foot{border-color:var(--paper-rule)}
.reflection-preview,.text-format-bar{background:#fff;border-color:var(--line);border-radius:4px;color:var(--ink-2);box-shadow:var(--shadow-paper)}.reflection-preview-label,.reflection-preview-hint{color:var(--ink-3)}
.help-list,.help-foot,.help-list b,.help-number,.shortcut-row kbd,.shortcut-note{color:var(--ink-2)}.help-foot{border-color:var(--line)}.shortcut-row select{background:var(--bg);border-color:var(--line)}
#profileDialog.account-shell{box-shadow:0 30px 80px -20px #1616154d}.account-shell label,.account-preview-badge,.account-hint,.account-demo-note,.account-row>span:last-child{color:var(--ink-3)}.account-shell input:not([type=range]),.account-shell select{border-color:var(--line);background:#FAFAF8;border-radius:8px}.account-tabs button[aria-pressed=true],.account-mark,.account-success,.account-avatar{background:var(--chip);color:var(--ink)}.account-row,.account-demo-note{border-color:var(--line)}.account-top button:hover{background:var(--bg)}
@media(max-width:1000px){.capture{width:min(760px,calc(100vw - 130px))}.topbar{padding:0 30px}.calendar-layout{gap:24px}.day{min-height:92px}.filter{padding:0 11px}.search-wrap input{width:112px}}
@media(max-width:700px){
 .topbar{height:68px;padding:0 16px;grid-template-columns:auto 1fr auto;gap:12px}.brand>svg{height:19px}.main-nav{justify-self:center}.nav-btn{height:32px;padding:0 11px;font-size:11px;gap:5px}.nav-btn svg{width:14px}.avatar{width:29px;height:29px}.top-right{gap:0}.date-label{display:none}
 main{padding:0 20px}#boardView{padding-top:9px}.board-toolbar{top:68px;gap:10px;flex-wrap:wrap;padding:0 0 9px;margin:4px 0 0}.filters{max-width:100%;gap:0}.filter{font-size:11px;padding:0 10px;height:30px}.filter span{font-size:9px;margin-left:4px}.board-actions{width:100%;justify-content:space-between;flex-direction:row-reverse;gap:8px}.search-wrap{padding-left:8px}.board-actions .text-button{font-size:11px}.board{margin-top:15px}
 .note{padding:20px 13px 13px}.note.has-art{padding-top:20px}.note .open-note,.note.has-art .open-note{font-size:15px;line-height:1.5}.source{font-size:8px}.note-author{font-size:9px}.note .thought-button,.note .journal-body{font-size:10px}.meta-time,.meta-time a{font-size:8px}.note .note-bottom{padding-top:9px;margin-top:8px}
 #board>.note:not(.ghost):before{width:18px;height:39px;top:-17px}.capture{width:calc(100vw - 32px);left:16px;bottom:18px;transform:none;gap:8px;padding-left:13px;height:58px;min-height:58px;border-radius:16px}.capture input{font-size:12px;width:0}.capture>svg{display:none}.capture .primary{height:42px;font-size:12px;padding:0 12px}.capture-extras button{padding:5px;font-size:10px}.capture-extras>div{gap:0}.capture-extras button:first-letter{font-size:0}.toast,.account-toast{bottom:90px}.floating-search,.floating-trash,.floating-help{right:12px;background:#f3f2eede}.floating-search{bottom:172px}.floating-trash{bottom:132px}.floating-help{bottom:92px}
 .board-footer{padding-bottom:130px;font-size:9px}.calendar-layout{gap:25px}.calendar-box{padding:0}.day{min-height:78px;padding:6px 3px}.calendar-grid{gap:3px}.weekdays span{padding-left:6px}.mini-note{font-size:8px;padding:5px 3px}.month-label{font-size:14px}.day-summary-head h2{font-size:15px}.day-stats strong{font-size:28px}.archive-pinboard .archive-foot{gap:6px}.modal-header{padding:24px 24px 0}.modal-content{padding:20px 24px 26px}.modal-content h2{font-size:25px}.modal-actions{flex-wrap:wrap}.form-field input,.form-field textarea,.form-field select{font-size:16px}
}
@media(max-width:390px){.nav-btn{padding:0 8px}.nav-btn svg{display:none}.capture-extras button{font-size:9px;padding:5px 3px}.filter{padding:0 8px}.brand>svg{height:17px}}
@media(prefers-reduced-motion:reduce){.capture,.note,.archive-note{scroll-behavior:auto}}

/* Journal copy has stronger legacy selectors; keep its full text and scrolling. */
.note.is-journal .journal-body{color:var(--body);font-size:14px;line-height:1.9}
@media(max-width:700px){.note.is-journal .journal-body{font-size:12px}}
/* Final visual alignment: compact missing-cover affordance, quiet source, shared gutters. */
.topbar{max-width:1232px;padding-left:48px;padding-right:48px}
.note .note-context{display:flex;flex-direction:column}
.note .note-context>.mini-cover-add{order:3;align-self:flex-start;min-height:0;height:auto;flex:0 0 auto;border:0;background:transparent;border-radius:0;padding:0;margin:9px 0 0;line-height:1.6;font-size:10px;color:var(--sub);justify-content:flex-start;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}
.note:hover .mini-cover-add,.note:focus-within .mini-cover-add,.mini-cover-add:focus-visible{background:transparent;border:0;color:var(--text)}
.note .source-logo{width:14px;height:14px;opacity:.7;border-radius:2px;font-size:12px}
.note .source-logo svg{width:14px!important;height:14px}.note .source-logo img{width:14px;height:14px}
.note .source{gap:6px;letter-spacing:.04em;font-size:9px}.note .note-head{min-height:18px}
@media(max-width:1000px){.topbar{padding-left:30px;padding-right:30px}}
@media(max-width:700px){.topbar{padding-left:20px;padding-right:20px}.note .source{font-size:8px}.note .source-logo,.note .source-logo img{width:12px;height:12px}.note .source-logo svg{width:12px!important;height:12px}.note .note-context>.mini-cover-add{font-size:9px;margin-top:7px}}
/* Content-derived paper tiers: never stored in notes; the viewport stays fixed. */
/* Desktop and calendar share quiet top-right editing and trash controls. */
.note-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto;opacity:0;pointer-events:none;transition:opacity 140ms ease}
.note-actions .note-action,.note .note-actions .note-remove{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--sub,var(--ink-3));opacity:1;pointer-events:none;cursor:pointer;touch-action:manipulation}
:is(.note,.archive-note):is(:hover,:focus-within)>.note-head>.note-actions{opacity:1}
:is(.note,.archive-note):is(:hover,:focus-within)>.note-head>.note-actions .note-action{pointer-events:auto}
.note-actions .note-action:hover,.note .note-actions .note-remove:hover{background:#88888814;color:var(--text,var(--ink))}
.note-actions .note-action:focus-visible{outline:1px solid var(--sub,var(--ink-3));outline-offset:1px}
.note .note-head>.source{overflow:hidden;white-space:nowrap}.note .note-head>.note-status{min-width:0;overflow:hidden;text-overflow:ellipsis}
.archive-pinboard .archive-note-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;flex-shrink:0;margin:0 0 12px;pointer-events:none}
.archive-pinboard .archive-note-head>.source{min-width:0;flex:1;margin:0;overflow:hidden;white-space:nowrap}
@media(hover:none){.note-actions{opacity:1}.note-actions .note-action,.note .note-actions .note-remove{pointer-events:auto;width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.note-actions{transition:none}}
.board,.board.is-filtered{overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto;scrollbar-width:none;touch-action:pan-y}
.board::-webkit-scrollbar{width:0;height:0}
.note[data-size]{height:var(--note-height)}
.note{touch-action:auto}.note>.note-head,.note .note-context{touch-action:none}
.note .note-context-shell{min-height:0;flex:0 0 auto}
.note .thought-area,.note:not(.is-journal) .thought-area,.note.has-art .thought-area{display:flex;flex-direction:column;flex:1 1 0;min-height:0;max-height:none;overflow:hidden;padding-top:14px;margin-top:0;touch-action:pan-y}
.note .thought-button,.note.has-art .thought-button,.note.is-journal .journal-body{display:block;flex:1 1 auto;height:100%;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#aaa9a266 transparent}
.note .thought-button.placeholder{flex:0 0 auto;height:auto;min-height:22px}
.note .note-bottom{flex:0 0 auto;margin-top:auto}
.note.is-journal .journal-body{flex:1 1 0;height:auto;min-height:0}
.note.is-journal .journal-extra{flex:0 1 100px;min-height:0;overflow-y:auto;touch-action:pan-y}
.note.writing-mode .thought-area{min-height:0;max-height:none;padding-top:0;flex:1 1 0}
.sidebar-pile .pile-sheet{height:var(--note-height,var(--pile-height,264px))}
.archive-pinboard .archive-card-scroll{touch-action:pan-y;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.archive-pinboard h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.archive-pinboard .archive-note .journal-title{-webkit-line-clamp:2;white-space:normal}
/* Original new user asset, unedited pixels. Alpha crop 283×626 at (257,67). */
#board>.note:not(.ghost):before,.pile-shared-pin,.paper-pin,.archive-note>.paper-pin{width:22px;height:48.665px;top:-21px;left:50%;transform:translateX(-50%);background-image:url("assets/paperclip-reference.png");background-position:49.71% 38.51%;background-size:282.686% 127.796%;background-repeat:no-repeat;filter:drop-shadow(0 1px .5px #16161525)}
.pile-shared-pin{top:-8px}
@media(max-width:700px){#board>.note:not(.ghost):before,.pile-shared-pin,.paper-pin,.archive-note>.paper-pin{width:19px;height:42.03px;top:-18px}.pile-shared-pin{top:-5px}.note .thought-area,.note:not(.is-journal) .thought-area,.note.has-art .thought-area{padding-top:10px}}
/* A failed media placeholder is an action, not a real cover and not a sizing signal. */
.note .note-art:has(.media-placeholder){height:28px;min-height:0;background:transparent;margin:0 0 9px;text-align:left}
.note .note-art .media-placeholder{justify-content:flex-start;font-size:10px}
.archive-pinboard.is-open .archive-media:has(.media-placeholder){height:28px;margin-bottom:10px}

/* Reuse the visual reference's original display-sized PNG, without editing pixels. */
#board>.note:not(.ghost):before,.pile-shared-pin,.paper-pin,.archive-note>.paper-pin{width:22px;height:47.312px;background-image:url("assets/paperclip-display.png");background-position:center;background-size:contain;background-repeat:no-repeat}
@media(max-width:700px){#board>.note:not(.ghost):before,.pile-shared-pin,.paper-pin,.archive-note>.paper-pin{width:19px;height:40.86px}}

/* One page scroll for the desk; personal writing retains its own scroll. */
#board>.note,.archive-note,.pile-sheet{--rotation:0deg!important}
#board>.note{will-change:auto;transform:none}
#board>.note.dragging{will-change:transform}
.note>.note-head,.note .note-context{touch-action:pan-y}

/* Calendar day slips match the reference's straight, layered paper stack. */
.calendar-grid .day{height:108px;min-height:108px;padding:10px 12px;overflow:visible}
.day-count{position:absolute;top:11px;right:12px;font:11px var(--mono);color:var(--ink-3)}
.day-slips{position:absolute;left:10px;right:10px;bottom:10px;height:46px;pointer-events:none}
.day-slips .mini-note,.day-slips .mini-back{position:absolute;inset:0;display:block;width:100%;margin:0;border-radius:0;transform:none;background:var(--paper,#fff)}
.day-slips .mini-note{padding:7px 9px;font-size:11.5px;line-height:16px;white-space:normal;overflow:hidden}
.day-slips .mini-note>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-height:32px}
.day-slips .mini-back{background:#FBFAF7;box-shadow:0 0 0 .5px #1616151a,0 2px 4px -2px #1616151f}
.day-slips .back-one{transform:translateY(-5px) scale(.93)}
.day-slips .back-two{transform:translateY(-10px) scale(.86)}
@media(max-width:700px){.calendar-grid .day{height:92px;min-height:92px;padding:6px 3px}.day-count{top:10px;right:4px;font-size:8px}.day-slips{left:3px;right:3px;bottom:7px;height:36px}.day-slips .mini-note{padding:4px 3px;font-size:8px;line-height:14px}.day-slips .mini-note>span{max-height:28px}}
/* Share column starts; date digits align by their left edge, not character width. */
.weekdays{gap:6px}
.weekdays span{padding-left:12px}
.calendar-grid .day-number{display:block;width:auto;height:23px;text-align:left;line-height:23px;font-variant-numeric:tabular-nums}
.month-picker-toggle{padding:8px 12px;justify-content:center;gap:8px;text-align:center;min-height:38px}
.month-bar{margin-left:-12px}
@media(max-width:700px){.weekdays{gap:3px}.weekdays span{padding-left:3px}.month-bar{margin-left:0}.month-picker-toggle{padding:8px 0;gap:8px}}
/* Align control boxes first, then their shared inner text inset. */
.board-toolbar{margin-left:0;margin-right:0}
.month-bar{margin-left:0;align-items:center}
.month-picker-toggle{height:38px;min-height:38px;padding:0 12px;box-sizing:border-box}
.month-buttons{height:38px;align-items:center}
.month-buttons .icon-button,.month-buttons .today-button{height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.month-buttons .today-button{padding:0 12px}
@media(max-width:700px){.month-picker-toggle{padding:0 3px}}
/* Shared page rails: header, content and utility buttons use one responsive gutter. */
:root{--page-max:1600px;--page-gutter:48px;--page-edge:max(var(--page-gutter),calc((100vw - var(--page-max))/2 + var(--page-gutter)))}
.topbar,main{max-width:var(--page-max);padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
.floating-search,.floating-trash,.floating-help{width:32px;height:32px;right:var(--page-edge)}
@media(min-width:701px){.board{margin-right:44px}.calendar-layout{margin-right:44px}}
@media(max-width:1000px){:root{--page-gutter:30px}}
@media(max-width:700px){:root{--page-gutter:20px}.floating-search,.floating-trash,.floating-help{width:29px;height:29px}}
/* Balance the utility rail with the same inset on the opposite side. */
@media(min-width:701px){.board{margin-left:44px;margin-right:44px}}

/* Keep a complete month in the first desktop screen without squeezing slip text. */
#calendarView{padding-top:16px}
.calendar-grid{--calendar-weeks:5;--day-height:clamp(84px,calc((100dvh - 240px)/var(--calendar-weeks) - 6px),100px)}
.calendar-grid .day{height:var(--day-height);min-height:var(--day-height);padding-top:7px}
.month-bar{margin-bottom:16px}
.calendar-grid .day-number{height:20px;line-height:20px}
.day-count{top:9px}
.day-slips{bottom:8px;height:42px}
.day-slips .mini-note{padding:5px 8px}
@media(max-width:700px){.calendar-grid{--day-height:clamp(76px,calc((100dvh - 220px)/var(--calendar-weeks) - 3px),92px)}.calendar-grid .day{padding-top:6px}.day-slips{height:34px;bottom:6px}.day-slips .mini-note{padding:3px}.day-count{top:9px}}

/* Reading room below the final row, without a permanent status footer. */
#boardView{padding-bottom:var(--capture-clearance,130px)}

/* Personal writing fills the paper; only content beyond its available space scrolls.
   The footer stays at the shared bottom inset in every paper tier. */
.note.is-journal .journal-edit-hint{flex:0 0 auto}

/* Calendar records use the same field-level writing interaction as desktop cards. */
.archive-card-scroll{outline:none}
.archive-note .archive-title-button,.archive-note .note-author button{display:block;width:100%;text-align:left;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.archive-note .archive-title-button:focus-visible,.archive-note .note-author button:focus-visible{outline:1px solid var(--sub);outline-offset:3px}
.archive-note .archive-record-block{margin:12px 0 0;min-width:0}
.archive-note .archive-record-block .reflection-label{margin:0 0 9px}
.archive-note .thought-button{display:block;padding:0;border:0;margin:0;min-height:30px;width:100%;font-family:var(--sans);font-size:12px;line-height:1.9;color:var(--body);white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;outline:none}
.archive-note .thought-button.placeholder{min-height:38px;color:var(--sub)}
.archive-note .thought-button:focus-visible:not([contenteditable=true]){box-shadow:inset 0 -1px var(--sub)}
.archive-note .thought-button[contenteditable=true]{outline:none;background:none;box-shadow:none;user-select:text;-webkit-user-select:text}
.archive-note .thought-button [style*="background-color"]{color:var(--ink)!important}
.archive-note.is-journal .note-context-shell{display:none}
.archive-note.is-journal .archive-journal-block{margin-top:0}
.archive-note.writing-mode .note-context-shell{grid-template-rows:0fr;opacity:0;pointer-events:none}
.archive-note.writing-mode .note-context{transform:translateY(-16px)}
.archive-note.writing-mode .writing-caption{display:block;flex:0 0 auto;color:var(--sub)}
.archive-note.inline-editing .archive-card-scroll{display:flex;flex-direction:column;overflow:hidden}
.archive-note.inline-editing .archive-record-block{display:none}
.archive-note.inline-editing .archive-record-block:has(.inline-reflection){display:flex;flex-direction:column;flex:1 1 0;min-height:0;margin-top:0;overflow:hidden}
.archive-note.inline-editing .archive-record-block .reflection-label{flex:0 0 auto}
.archive-note.inline-editing .inline-reflection{display:block;flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--sub) transparent}
.archive-note.inline-editing .archive-meta{flex:0 0 auto;margin-top:12px}
@media(max-width:700px){.archive-note .thought-button{font-size:12px;line-height:1.9}}

.archive-note .thought-button{caret-color:var(--text)}
.archive-note.inline-editing .inline-reflection{font-size:12px;line-height:1.85}

/* Reserve a visible writing area even when a saved video has a long source title. */
.archive-note .archive-title-button{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.archive-pinboard .archive-note:not(.inline-editing) .archive-card-scroll{display:flex;flex-direction:column;overflow:hidden}
.archive-note:not(.inline-editing) .note-context-shell{flex:0 1 auto;min-height:0;max-height:calc(100% - 78px)}
.archive-note:not(.inline-editing) .note-context{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--sub) transparent}
.archive-pinboard.is-open .archive-note:not(.inline-editing) .archive-media:not(:has(.media-placeholder)){height:min(var(--read-media-height),calc(var(--card-height) * .2));margin:0 0 10px}
.archive-pinboard.is-open .archive-note:not(.inline-editing) .archive-media:not(:has(.media-placeholder)) :is(img,video,svg){height:100%;max-height:100%}
.archive-note:not(.inline-editing) .archive-record-block{display:flex;flex-direction:column;flex:1 1 0;min-height:55px;overflow:hidden;margin-top:8px}
.archive-note:not(.inline-editing) .archive-record-block .reflection-label{flex:0 0 auto;margin-bottom:4px}
.archive-note:not(.inline-editing) .thought-button{flex:1 1 0;min-height:30px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--sub) transparent}
.archive-note:not(.inline-editing) .archive-meta{flex:0 0 auto;margin-top:8px}
.archive-note.is-journal:not(.inline-editing) .archive-journal-block{margin-top:0}

.archive-note:not(.inline-editing) .note-context .note-author{margin-bottom:0}
.archive-note:not(.inline-editing) .note-context{display:flex;flex-direction:column}
.archive-note:not(.inline-editing) .note-context>:is(h3,.note-author,.quote-context){flex:0 0 auto}
.archive-pinboard.is-open .archive-note:not(.inline-editing) .archive-media:not(:has(.media-placeholder)){flex:0 1 auto;min-height:28px}

/* Journal list tools belong to the same scrolling flow as the writing. */
.note.is-journal .journal-writing-scroll,.archive-journal-block>.journal-writing-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto;scrollbar-width:thin;scrollbar-color:var(--sub) transparent;touch-action:pan-y}
.note.is-journal .journal-writing-scroll>.journal-body,.archive-note .journal-writing-scroll>.archive-body,.archive-note.inline-editing .journal-writing-scroll>.inline-reflection{display:block;flex:none;height:auto;min-height:1.9em;max-height:none;overflow:visible}
.journal-list-tools{display:flex;align-items:center;gap:5px;margin:13px 0 3px;min-height:26px;white-space:normal;color:var(--sub,var(--ink-3));user-select:none;-webkit-user-select:none}
.journal-list-tools .journal-list-action{display:grid;place-items:center;width:25px;height:25px;padding:4px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.journal-list-action svg{width:18px;height:18px}
.journal-list-action:hover,.journal-list-action[aria-pressed=true]{background:#88888814;color:var(--text,var(--ink))}
.journal-list-action:focus-visible,.journal-task-check:focus-visible{outline:1px solid var(--sub,var(--ink-3));outline-offset:2px}
.journal-task-progress{font-family:var(--mono);font-size:9px;letter-spacing:.04em;margin-left:auto;color:var(--sub,var(--ink-3))}
.journal-row{display:block;position:relative;min-height:1.9em;white-space:pre-wrap;overflow-wrap:anywhere;padding:0;border:0;margin:0;line-height:inherit}
/* Every marker flows with the first line; wrapped lines use the full writing width. */
.journal-list-marker{display:inline;margin-right:.2em;color:inherit;font-variant-numeric:tabular-nums;user-select:none;-webkit-user-select:none}
.journal-row[data-list-kind=ordered]>.journal-list-marker{margin-right:.08em}
.journal-task-check{display:inline-grid;vertical-align:-.12em;place-items:center;width:14px;height:14px;padding:0;margin:0 .25em 0 0;border:1px solid currentColor;border-radius:3px;background:transparent;color:var(--sub,var(--ink-3));cursor:pointer;user-select:none;-webkit-user-select:none}
.journal-task-check svg{width:13px;height:13px}
.journal-row.is-task-done>.journal-row-text{opacity:.55;text-decoration:line-through;text-decoration-thickness:1px}
.journal-row-text{white-space:pre-wrap;overflow-wrap:anywhere}
.archive-note.inline-editing .archive-record-block:has(.journal-writing-scroll){overflow:hidden}
.archive-note.is-journal .journal-writing-scroll{width:100%}
.detail-sheet .journal-list-tools{color:var(--detail-sub,var(--sub,var(--ink-3)))}
.reflection-preview .journal-list-tools{margin:12px 0 0}

.journal-row[data-list-kind]:not([data-list-kind=plain])+.journal-row[data-list-kind]:not([data-list-kind=plain]){margin-top:5px}

.note.is-journal:has(.journal-writing-scroll) .journal-extra{flex:0 1 auto;min-height:20px;max-height:60px}
.note.is-journal .journal-writing-scroll{min-height:64px}
/* Historic journal supplements keep their intrinsic height; the body gets the remaining space. */
.archive-note.is-journal:not(.inline-editing) .archive-record-block:not(.archive-journal-block){flex:0 1 auto;min-height:0;max-height:87px}
.archive-note.is-journal:not(.inline-editing) .archive-record-block:not(.archive-journal-block) .thought-button{flex:0 1 auto;min-height:0;max-height:60px}
