/* V43 Quiet Paper: visual choices only; structural behavior lives in styles.css. */
:root{--bg:#f8f9f7;--paper:#fff;--text:#242927;--muted:#858b85;--line:#e9ede8;--accent:#cb754f;--accent-soft:#faeee8;--danger:#bb5045;--control-height:50px;--control-radius:16px;--button-radius:13px;color-scheme:light}
html,body{background:var(--bg);-webkit-text-size-adjust:100%}
body,button,input,textarea,select{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.app-shell{background:var(--bg)}
.view{padding-left:20px;padding-right:20px}
.section-header{height:83px;padding:12px 0 0}
.section-header h1{font-size:25px;font-weight:730;letter-spacing:-.65px;line-height:1.18}
.note-list,.todos-list,.projects-list{padding:3px 0 18px}
.note-list{gap:7px}
.note-row{border:0;border-radius:15px;background:var(--paper);isolation:isolate}
.note-row-front{background:var(--paper);min-height:67px}
.note-row.selected .note-row-front{background:var(--accent-soft)}
.note-item,.note-card{border:0!important;padding:15px 14px;border-radius:15px}
.note-title{font-size:16px;line-height:1.48;font-weight:620;letter-spacing:-.12px}
.note-excerpt{font-size:13px;line-height:1.5;color:#969b95;margin-top:5px}
.note-date{font-size:11px}
.note-row .note-swipe-actions{height:100%}
.note-row .note-swipe-actions button{font-size:14px}
.task-row:not(.swipe-row),.task-row.swipe-row,.project-swipe-row,.project-card{border:0!important;border-radius:15px;background:var(--paper)}
.task-row:not(.swipe-row){padding:16px 14px;margin:4px 0}
.task-row.swipe-row,.project-swipe-row{margin:5px 0;overflow:hidden}
.task-row-front{padding:16px 14px;background:var(--paper)}
.swipe-row>.swipe-front,.project-swipe-row .project-card{background:var(--paper)}
.project-card{padding:18px 15px!important;font-weight:620}
.task-title{font-size:16px;line-height:1.55}
.tag-row{background:var(--paper);border-radius:14px;margin:5px 0;font-size:15px}
.tag-row:active,.note-item:active,.project-card:active{background:#f4f5f2}
.bottom-nav{background:rgba(255,255,255,.99);border-top:0;box-shadow:0 -3px 16px rgba(25,32,27,.025)}
.view-btn{font-size:11px;font-weight:500;color:#919791;gap:5px}
.view-btn svg{width:22px;height:22px;stroke-width:1.75}
.view-btn.active{color:var(--accent)}
.bottom-dock{background:rgba(248,249,247,.985);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.dock-row,.dock-primary{gap:7px}
.dock-primary{position:relative}
.dock-actions{margin-left:auto}
.dock-actions .icon-btn{color:#858d86}
.quick-add,.quick-note{background:var(--paper);height:50px;min-height:50px;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 1px rgba(23,31,26,.018);gap:0;overflow:hidden}
.quick-add{padding:0}
.quick-add input,.quick-note #noteQuickInput{font-size:16px;line-height:24px;border:0;box-shadow:none!important;padding:12px 14px;color:var(--text)}
.quick-add input{height:48px;min-height:48px;flex:1}
.quick-note #noteQuickInput{display:block;flex:1;min-width:0;width:100%;min-height:0;height:48px;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;background:transparent;outline:none;border-radius:0}
.quick-add:focus-within,.quick-note:focus-within{border-color:rgba(203,117,79,.75);box-shadow:0 0 0 2px rgba(203,117,79,.075)}
.quick-note:focus-within{position:absolute;left:0;right:0;bottom:0;z-index:35;width:auto;height:150px;min-height:100px;max-height:150px;align-items:stretch;overflow:hidden;transition:none!important}
.quick-note:focus-within #noteQuickInput{height:auto;min-height:0;flex:1;overflow-y:auto;padding:13px 7px 13px 14px;-webkit-overflow-scrolling:touch}
.quick-note:focus-within .icon-btn{align-self:flex-end;flex-shrink:0}
.bottom-dock .icon-btn{width:46px;height:46px;min-width:46px;color:var(--muted)}
.quick-note .icon-btn,.quick-add .icon-btn,#newProjectBtn{color:var(--accent)}
.search-panel,.workspace-panel{background:var(--bg)}
.workspace-header{height:79px;min-height:79px;padding-top:8px}
.workspace-header h1{font-size:23px}
.workspace-row{background:var(--paper);margin:4px 0;border-radius:14px;padding:2px 14px}
.workspace-body .workspace-list{padding:8px 0}
.quick-menu{border:1px solid var(--line);border-radius:17px;background:var(--paper);box-shadow:0 12px 35px rgba(25,32,27,.11)}
.app-dialog{border-radius:19px;box-shadow:0 18px 55px rgba(25,32,27,.14)}
.toast{font-size:13px;min-width:0;max-width:calc(100% - 40px);box-shadow:0 7px 21px rgba(25,32,27,.13)}
@media(max-width:759px){
 .view{padding-left:18px;padding-right:18px}
 .bottom-dock{padding-left:12px;padding-right:12px}
 .section-header{height:79px}
 .note-row,.task-row,.project-card,.project-swipe-row,.tag-group{content-visibility:visible;contain-intrinsic-size:none}
 body.note-quick-active .app-shell{top:var(--quick-shell-top)!important;height:var(--quick-shell-height)!important;transition:none!important}
 body.note-quick-active .bottom-dock,body.note-quick-active.keyboard-open .bottom-dock{bottom:calc(var(--nav) + env(safe-area-inset-bottom))!important;transform:translate3d(0,var(--quick-dock-shift,0px),0);transition:none!important}
 body.note-quick-active.keyboard-open .view{padding-bottom:calc(var(--dock) + var(--nav) + env(safe-area-inset-bottom) + 18px)}
 .quick-note:focus-within{height:148px;max-height:148px}
}
@media(max-width:380px){.view{padding-left:13px;padding-right:13px}.bottom-dock{padding-left:8px;padding-right:8px}.dock-row{gap:4px}.dock-actions{grid-template-columns:42px 42px;gap:3px;flex-basis:87px;width:87px}.dock-actions .icon-btn{width:42px;height:46px;min-width:42px}.note-item,.note-card{padding:14px 12px}}
@media(min-width:760px){.view{padding-left:38px;padding-right:38px}.quick-note:focus-within{height:126px;max-height:126px}}
@media(prefers-reduced-motion:reduce){.note-row-front,.swipe-front,.toast{transition-duration:0ms!important}}
