/* Quiet Desk: an everyday workspace, shared by desktop and mobile. */
:root{--bg:#f6f7f9;--paper:#fff;--ink:#25332e;--muted:#77817d;--green:#3b7058;--soft:#eaf2ed;--line:#e7ece9;--rail:#f0f3f1;--shadow:0 12px 40px #20352a08;--radius:16px;color-scheme:light}
html{scroll-behavior:smooth}body{background:var(--bg)!important;font-family:'Segoe UI',Pretendard,-apple-system,BlinkMacSystemFont,system-ui,sans-serif!important;font-size:14px!important;letter-spacing:-.2px}button,input,textarea,select{font:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable]:focus-visible{outline:2px solid #5e977c!important;outline-offset:3px}svg.ui-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app{max-width:1500px!important;padding:32px 40px 48px!important;margin:0 auto 0 222px!important;min-height:100dvh}header{gap:16px;margin-bottom:32px!important;min-height:44px}.brand{font-size:22px!important;letter-spacing:-1px}.brand span{display:inline-grid;place-items:center;background:var(--green);color:white!important;border-radius:10px;width:32px;height:32px;font-size:19px;margin-right:5px}.subtitle{font-size:11px!important}.top-actions{display:flex;align-items:center;gap:8px}.icon-button,.top-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:8px 12px;font-size:12px}.search-shortcut{color:var(--muted);font-size:11px;padding:1px 4px;border:1px solid var(--line);border-radius:4px}.eyebrow{font-size:10px!important;letter-spacing:1.8px;font-weight:650;color:var(--muted)!important}h1{font-size:29px!important;letter-spacing:-1.1px;margin:7px 0 24px!important;line-height:1.3}h2{font-size:16px!important}.page-subtitle{font-size:12px;color:var(--muted);margin:-14px 0 24px}.card{border-radius:var(--radius)!important;padding:22px!important;box-shadow:var(--shadow)}.plain{border-radius:8px!important}.add,.save{background:var(--green)!important;border-radius:9px!important;padding:10px 16px!important;font-weight:600!important;font-size:13px!important;min-height:40px}.save{padding:10px 23px!important}.empty{border:0!important;background:var(--bg);padding:32px 18px!important;border-radius:12px!important;color:var(--muted);line-height:1.8}.entry{border-radius:12px!important;padding:15px!important;box-shadow:none;background:var(--paper)!important}.entry-title{font-size:14px!important;font-weight:600!important;line-height:1.5}.entry-meta{font-size:11px!important;margin-top:5px!important}.preview{font-size:12px!important;line-height:1.65!important;color:var(--muted)!important}.notice{font-size:12px!important;line-height:1.7;background:#fff3e5!important;color:#886038;border:1px solid #f0dcc0;border-radius:10px!important;padding:12px 14px!important}.check{width:21px!important;height:21px!important;flex-basis:21px!important;border-radius:6px!important;background:var(--paper)!important}.complete .check{background:var(--green)!important}.check:hover{border-color:var(--green)}
#appSidebar{position:fixed;inset:0 auto 0 0;width:222px;padding:30px 18px 20px;background:var(--rail);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.sidebar-brand{font-weight:700;font-size:21px;letter-spacing:-1px;padding:2px 10px 0}.sidebar-brand span{color:var(--green);margin-right:5px}.sidebar-caption{font-size:11px;color:var(--muted);padding:5px 10px 24px}.side-create{display:flex;gap:9px;justify-content:center;align-items:center;margin:0 0 24px;width:100%;border:0}.side-label{font-size:10px;letter-spacing:1.6px;color:var(--muted);padding:0 12px 9px}nav{position:static!important;transform:none!important;width:auto!important;display:flex!important;flex-direction:column;background:transparent!important;border:0!important;padding:0!important;gap:4px!important;backdrop-filter:none!important}nav button{display:flex;align-items:center;gap:12px;text-align:left!important;flex:none!important;min-height:46px;border-radius:10px!important;padding:10px 14px!important;font-size:13px!important;color:var(--muted)}nav button.active{background:#dfeae3!important;color:var(--green)!important;font-weight:650!important}nav button:hover{background:#e7ede9}.nav-count{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}.sidebar-spacer{flex:1}.sidebar-footer{padding:18px 9px 4px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.9}.sidebar-footer button{display:flex;gap:8px;align-items:center;background:none;border:0;padding:8px 0;color:var(--muted);font-size:12px}.sidebar-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6b9980;margin-right:5px}.storage{font-size:10px!important;line-height:1.9;margin-top:30px!important;color:var(--muted)}.storage button{font-size:11px!important}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.calendar-layout #calendar{margin:0;min-width:0}.calendar-layout #recordsSection{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-height:320px}.birthday-controls{margin-bottom:18px!important;gap:12px!important}.birthday-controls select{background:var(--paper);border-color:var(--line);border-radius:8px;min-height:35px;padding:6px 12px!important;font-size:12px!important}.calendar-lunar-toggle{margin-left:auto!important;font-size:12px!important;flex:0 0 auto!important}.calendar-view-toggle,.work-filters{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.calendar-view-toggle button,.work-filters button{background:none;border:0;border-radius:6px;padding:5px 11px;min-height:29px;font-size:12px;color:var(--muted)}.calendar-view-toggle button.active,.work-filters button.active{background:var(--soft);color:var(--green);font-weight:650}.monthbar{margin-bottom:22px!important}.monthtitle{font-size:20px!important;font-weight:650!important;background:none;border:0;padding:0;letter-spacing:-.6px;cursor:pointer}.navbuttons{gap:3px}.navbuttons button{width:34px;height:34px;background:var(--bg);font-size:21px}.week div{font-size:11px!important;padding-bottom:14px!important}.day{border-radius:9px!important;min-height:100px!important;gap:5px!important;padding:7px 3px!important;border:1px solid transparent!important;transition:background .12s}.day:hover{background:var(--bg)}.day.selected{background:var(--soft)!important;border-color:#c3d9cd!important}.day .number{font-size:12px!important;line-height:25px;width:25px}.day.selected .number{background:var(--green)!important;color:white!important;text-decoration:none!important}.day.current:not(.selected) .number{border:1px solid #a8c4b4;border-radius:50%;text-decoration:none!important;color:var(--green);font-weight:700}.day.rest .number{color:#c64e55!important}.day.rest.selected .number{background:#f7e6e7!important;color:#b7434c!important}.day-item{font-size:10px!important;line-height:1.5!important;border-radius:4px;padding:2px 4px!important}.day-item.schedule{background:#edf3ef}.day-item.birthday{background:#f9ecf1}.day-more{font-size:9px!important}.holiday-label{font-size:9px!important}.calendar-layout .sectionbar{align-items:flex-start;gap:8px}.calendar-layout #listTitle{font-size:16px!important}.calendar-layout .entry{border:0;border-bottom:1px solid var(--line);border-radius:0!important;padding:14px 0!important;margin:0}.calendar-layout #add{padding:7px 10px!important;min-height:32px;font-size:11px!important;white-space:nowrap}.calendar-agenda{grid-column:1/-1;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px}.agenda-day{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.agenda-day:last-child{border-bottom:0}.agenda-date{font-size:13px;font-weight:650;color:var(--green)}.agenda-day .entry{margin:0 0 7px}.agenda-day .entry:last-child{margin:0}.calendar-layout.agenda-mode #calendar,.calendar-layout.agenda-mode #recordsSection{display:none}
#workSection{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.work-box{padding:22px!important;border-radius:var(--radius)!important;margin:0!important}.tasks-box{background:#fbf6e9!important;border-color:#ece3cc!important}.issues-box{background:#fbefeb!important;border-color:#edddd5!important}.work-box .add{background:#927848!important}.issues-box .add{background:#a47761!important}.work-filters{margin:0 0 20px}.work-box .entry{border-color:#ece8df;background:#ffffffdb!important}.work-box .check{margin-top:1px}.work-box h2{font-size:18px!important}
.notes-top{display:flex!important;flex-wrap:wrap;gap:9px!important;margin:0 0 18px!important}.notes-top input{border-color:var(--line);min-height:40px;font-size:13px;padding:9px 13px;border-radius:9px;background:var(--paper)}.note-sort{width:auto!important;min-height:40px!important;margin:0!important;border-color:var(--line)!important;border-radius:9px!important;padding:6px 10px!important;font-size:12px!important}.notes-layout{grid-template-columns:175px 270px minmax(0,1fr)!important;min-height:calc(100dvh - 300px)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow);background:var(--paper)!important}.notebooks-panel{background:var(--paper)!important;padding:20px 12px!important}.notebooks-panel summary{font-size:11px!important;letter-spacing:.4px;color:var(--muted);padding:0 8px 9px}.notebooks-panel button{font-size:12px!important;min-height:38px!important;border-radius:8px!important;padding:8px!important}.notebook-row>button:first-child{min-width:0;white-space:normal!important}.notebook-more{min-width:25px!important;padding:0!important;flex-shrink:0}.note-list-panel{background:#fcfdfc;padding:16px 10px!important;max-height:calc(100dvh - 290px)!important;min-height:400px}.notes-counter{padding:0 8px 11px;margin:0!important;font-size:11px!important;color:var(--muted)}#notebookNotes>button{position:relative;border-radius:10px!important;padding:14px 12px!important;border-bottom:1px solid var(--line)!important;margin:0 0 3px!important;background:none;transition:background .1s}#notebookNotes>button:hover{background:#f1f5f2}#notebookNotes>button.active{background:var(--soft)!important;border-bottom-color:transparent!important}.note-pin-label{font-size:10px;color:var(--green);padding:0 0 5px}.note-list-panel .entry-title{font-size:14px!important;font-weight:650!important}.note-list-panel .preview{font-size:11px!important;margin:6px 0 10px!important;-webkit-line-clamp:2}.note-editor-panel{padding:22px 28px!important;min-width:0!important;background:var(--paper)}.note-editor-actions{gap:5px!important;min-height:37px;margin-bottom:20px!important;flex-wrap:wrap}.note-editor-actions .add{padding:7px 13px!important;min-height:34px}.note-editor-actions .plain{font-size:11px;padding:7px 8px;min-height:32px}.note-save-status{font-size:10px!important;color:var(--muted);margin-left:auto;max-width:190px}.note-title-input{font-size:25px!important;letter-spacing:-.8px;line-height:1.4!important;border:0!important;padding:0!important;margin:0 0 17px!important;background:transparent!important;min-height:38px}.note-location{font-size:10px!important;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}.note-location select{margin:0!important;min-height:30px!important;border:1px solid var(--line);background:var(--bg);font-size:11px!important;padding:4px 8px!important;max-width:180px}.note-body{min-height:260px!important;padding:0 0 28px!important;font-size:15px;line-height:1.9}.block-text{padding:3px 0!important;line-height:1.9!important;min-height:31px;overflow-wrap:anywhere}.note-block.active .block-text{background:transparent!important}.note-block.heading .block-text{font-size:20px}.note-block{border:0!important;padding:3px 0!important}.block-check{width:17px!important;height:17px!important;min-height:17px!important;accent-color:var(--green);margin-top:10px!important}.block-prefix{padding-top:6px!important;color:var(--muted)}.note-toolbar{position:sticky!important;bottom:16px!important;align-self:center;max-width:100%;border:1px solid var(--line)!important;border-radius:11px!important;padding:6px!important;background:var(--paper)!important;box-shadow:0 4px 20px #203b2212!important;margin-top:auto!important;gap:3px!important}.note-toolbar button{background:transparent!important;font-size:11px!important;min-height:32px!important;border-radius:7px!important;padding:5px 8px!important}.note-toolbar button:hover{background:var(--soft)!important}.note-toolbar .note-color{max-width:90px;min-height:32px!important;border-color:var(--line)!important;border-radius:7px!important;background:var(--paper);font-size:11px!important}.note-more summary{font-size:11px;padding:6px 8px;min-height:32px}.note-more[open]{flex-basis:100%}.note-foot{font-size:10px!important;text-align:center;margin-top:13px;color:var(--muted)}.note-editor-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;gap:12px;font-size:13px;color:var(--muted)}.empty-illustration{display:grid;place-items:center;width:56px;height:56px;border-radius:17px;color:var(--green);background:var(--soft);margin-bottom:5px}.empty-illustration .ui-icon{width:26px;height:26px}.notes-layout.focus-mode{grid-template-columns:minmax(0,1fr)!important}.notes-layout.focus-mode .notebooks-panel,.notes-layout.focus-mode .note-list-panel{display:none!important}.notes-layout.focus-mode .note-editor-panel{grid-column:1!important;width:100%;max-width:840px;margin:auto;padding:32px 50px!important}.note-photo{max-height:460px!important;border:1px solid var(--line);border-radius:9px!important;cursor:zoom-in}.note-wordcount{font-size:10px;color:var(--muted);margin-left:auto}
dialog{border-radius:18px!important;border-color:var(--line)!important;box-shadow:0 24px 90px #12271b25;padding:24px!important;background:var(--paper)!important;color:var(--ink)!important;width:min(520px,calc(100% - 28px))!important;max-width:620px!important}dialog::backdrop{background:#23372d55;backdrop-filter:blur(3px)}dialog input,dialog select,dialog textarea{border-color:var(--line);background:var(--paper);border-radius:8px;font-size:14px;color:var(--ink)}dialog label{font-size:12px;color:var(--muted);line-height:1.6}dialog h2{margin-bottom:8px}.search-dialog{width:min(640px,calc(100% - 28px))!important}.search-input-row{position:sticky;top:-24px;padding:10px 0;background:var(--paper);z-index:1}.search-results{max-height:55dvh;overflow:auto;margin-top:10px}.search-result{display:block;width:100%;text-align:left;border:0;border-radius:9px;background:transparent;padding:13px;margin:2px 0}.search-result:hover,.search-result:focus-visible{background:var(--soft)}.search-result .entry-meta{color:var(--green)}.search-scope{display:flex;gap:5px;flex-wrap:wrap;padding:8px 0}.search-scope button{border:1px solid var(--line);background:var(--paper);border-radius:20px;padding:5px 11px;font-size:11px;min-height:31px}.search-scope button.active{color:var(--green);background:var(--soft);border-color:#c3d5ca}.settings-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.settings-row select{width:auto;max-width:170px;margin:0;margin-left:auto;font-size:13px}.settings-row p{font-size:11px;color:var(--muted)}.draft-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#edf4f0;color:var(--green);border:1px solid #d1e2d9;border-radius:11px;padding:12px 16px;margin:0 0 22px;font-size:12px}.draft-banner button{background:var(--paper);border:1px solid #ceddd3;border-radius:7px;padding:6px 12px;font-size:11px}.draft-list-item{padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.draft-list-item .actions{margin-top:9px}.draft-list-item button{font-size:12px}.photo-viewer{width:min(900px,calc(100% - 28px))!important;max-width:900px!important}.photo-viewer img{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}.photo-viewer .dialoghead h2{overflow-wrap:anywhere;min-width:0;font-size:13px!important}.photo-viewer .dialoghead{gap:15px}.toast{background:#263c30!important;border-radius:10px!important;bottom:28px!important;padding:12px 18px!important;z-index:20!important;box-shadow:0 8px 30px #20352b20;max-width:min(600px,90%)!important;line-height:1.7!important}.toast button{border:0;background:none;color:#c7e5d3;font-weight:700;margin-left:12px;font-size:12px}.notebook-menu{background:var(--paper)!important;border-color:var(--line)!important;border-radius:10px!important;box-shadow:0 8px 25px #223d2920!important}.notebook-menu button{color:var(--ink)}.notebook-menu button:hover{background:var(--soft)}
.today-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}.today-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px}.today-card .sectionbar{margin-bottom:20px}.today-card .entry{border:0;border-bottom:1px solid var(--line);border-radius:0!important;padding:15px 0!important;margin:0}.today-note{display:block;text-align:left;width:100%;border:0;background:var(--bg);padding:14px;border-radius:10px;margin:9px 0}.today-note:hover{background:var(--soft)}.today-note .entry-title{font-size:13px!important}.today-caption{color:var(--muted);font-size:12px;margin-bottom:20px}.today-right{display:flex;flex-direction:column;gap:20px}.keyboard-tip{font-size:10px;color:var(--muted);margin-top:20px;line-height:1.9}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme=dark]{--bg:#161d1a;--paper:#202923;--ink:#e0e8e2;--muted:#a0ada4;--green:#87bb9c;--soft:#2d4135;--line:#344037;--rail:#1c251f;--shadow:none;color-scheme:dark}html[data-theme=dark] .add,html[data-theme=dark] .save{color:#18291e}html[data-theme=dark] nav button.active{background:#2f4438!important}html[data-theme=dark] .note-list-panel{background:#1b241e}html[data-theme=dark] .note-list-panel button:hover{background:#2c3d32}html[data-theme=dark] .work-box{background:#282c23!important;border-color:#414331!important}html[data-theme=dark] .issues-box{background:#302724!important;border-color:#4c3b32!important}html[data-theme=dark] .work-box .entry{background:var(--paper)!important;border-color:var(--line)}html[data-theme=dark] .notice{background:#392e21!important;color:#e4c49b;border-color:#55432b}html[data-theme=dark] .day-item.schedule{background:#314539;color:#b5d8c2}html[data-theme=dark] .day-item.task{background:#4a4026;color:#ebcf94}html[data-theme=dark] .day-item.birthday{background:#4a303b;color:#e7b5c9}html[data-theme=dark] .day-item.issue{background:#48362f;color:#dfb7a0}html[data-theme=dark] .draft-banner{background:#2a3e31;color:#c5e1ce;border-color:#3b5544}html[data-theme=dark] .entry.schedule .entry-title{color:#b5d8c2}html[data-theme=dark] .entry.birthday .entry-title{color:#e7b5c9}html[data-theme=dark] .calendar-view-toggle button.active{color:var(--green)}html[data-theme=dark] .sidebar-footer{color:var(--muted)}html[data-theme=dark] .brand span{background:#426b53;color:white!important}
@media(min-width:1700px){.app{margin-left:calc(222px + (100vw - 1722px)/2)!important;margin-right:calc((100vw - 1722px)/2)!important}}
@media(max-width:1200px){.app{padding:28px 28px 40px!important;margin-left:190px!important}#appSidebar{width:190px;padding:28px 14px 18px}.calendar-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.calendar-layout #calendar{padding:18px!important}.calendar-layout #recordsSection{padding:17px}.notes-layout{grid-template-columns:150px 230px minmax(0,1fr)!important}.note-editor-panel{padding:20px!important}.note-save-status{width:100%;max-width:none;margin:0}.note-editor-actions{margin-bottom:14px!important}.note-title-input{font-size:23px!important}.day{min-height:93px!important}}
@media(max-width:1050px){.calendar-layout{grid-template-columns:1fr}.calendar-layout #recordsSection{min-height:0}.calendar-layout #list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.notes-layout{grid-template-columns:220px minmax(0,1fr)!important}.notebooks-panel{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);padding:13px!important}.notebooks-panel #notebookList{display:flex;flex-wrap:wrap;gap:3px}.notebooks-panel .notebook-row{width:auto}.notebooks-panel #newNotebook{width:auto;margin-top:8px;font-size:11px!important}.notebooks-panel summary{padding-bottom:3px}.notebooks-panel button{width:auto}.note-list-panel{grid-column:1;min-height:350px}.note-editor-panel{grid-column:2}.today-layout{grid-template-columns:1fr}#workSection{gap:18px}}
@media(max-width:760px){.app{max-width:720px!important;margin:0 auto!important;padding:22px 20px 115px!important;min-height:100dvh}#appSidebar{inset:auto 0 0 0;width:100%;height:auto;padding:0;background:var(--paper);border:0;border-top:1px solid var(--line);z-index:10}#appSidebar>*:not(nav){display:none}nav{flex-direction:row!important;padding:8px 8px max(9px,env(safe-area-inset-bottom))!important;gap:3px!important}nav button{flex:1!important;flex-direction:column;justify-content:center;gap:5px!important;padding:7px 2px!important;min-height:51px;border-radius:10px!important;font-size:10px!important;letter-spacing:0}nav .ui-icon{width:20px;height:20px}.nav-count{display:none}header{margin-bottom:25px!important;gap:10px}.brand{font-size:20px!important}.brand span{width:29px;height:29px;border-radius:9px;font-size:17px}.subtitle{font-size:10px!important}.top-actions{gap:5px}.top-actions button{padding:8px;min-width:35px;height:35px;min-height:35px;font-size:11px}.top-actions .search-text,.top-actions .search-shortcut{display:none}h1{font-size:26px!important;margin-bottom:22px!important}.page-subtitle{margin-top:-11px}.calendar-layout{gap:18px}.calendar-layout #list{display:block}.calendar-layout #recordsSection{padding:19px}.card{padding:17px!important}.calendar-layout #calendar{padding:17px!important}.day{min-height:90px!important}.day-item{font-size:9px!important;padding:2px 3px!important}.day .number{font-size:12px!important}.day-more{font-size:9px!important}.monthtitle{font-size:19px!important}.birthday-controls{gap:8px!important;margin-bottom:17px!important}.birthday-controls select{font-size:11px!important;padding:6px 9px!important;min-width:92px!important}.calendar-lunar-toggle{font-size:11px!important;gap:5px!important}.calendar-view-toggle button{font-size:11px;padding:4px 8px;min-height:27px}.calendar-view-toggle{gap:1px}.week div{font-size:10px!important;padding-bottom:12px!important}.holiday-label{font-size:8px!important}.agenda-day{grid-template-columns:76px minmax(0,1fr);gap:12px}.agenda-date{font-size:12px}.calendar-agenda{padding:17px}#workSection{grid-template-columns:1fr;gap:18px}.work-box{padding:19px!important}.notes-layout{display:block!important;min-height:380px!important}.notebooks-panel{padding:13px!important}.notebooks-panel details:not([open]) #notebookList{display:none}.notebooks-panel #notebookList{display:flex}.note-list-panel{border:0!important;min-height:0!important;max-height:none!important;padding:16px 12px!important}.note-editor-panel{display:none!important;padding:20px!important;min-height:calc(100dvh - 255px)}.notes-mobile-open .notebooks-panel,.notes-mobile-open .note-list-panel{display:none!important}.notes-mobile-open .note-editor-panel{display:flex!important}.notes-mobile-open .notes-top{display:none!important}.note-back{display:inline-block!important}.note-save-status{width:100%;margin:4px 0 0!important;max-width:none}.note-editor-actions{gap:4px!important;margin-bottom:20px!important}.note-editor-actions .plain{font-size:11px;min-height:35px}.note-title-input{font-size:24px!important}.note-body{min-height:300px!important;font-size:15px}.note-location{margin-bottom:20px}.note-toolbar{bottom:88px!important;align-self:stretch;justify-content:center;gap:4px!important}.note-toolbar button{font-size:11px!important;min-height:34px!important;padding:6px 8px!important}.notes-top{gap:7px!important}.notes-top input{flex-basis:100%!important;order:0}.note-sort{flex:1;min-width:130px}.notes-top #newNotebookNote{order:2;margin-left:auto;white-space:nowrap;font-size:12px!important}.note-foot{font-size:9px!important}.notes-layout.focus-mode .note-editor-panel{padding:20px!important;max-width:none}.note-photo{max-height:350px!important}.toast{bottom:96px!important;width:max-content;font-size:12px!important}.today-card{padding:20px}.today-right{gap:18px}.draft-banner{font-size:11px;padding:11px 13px}.search-results{max-height:55dvh}dialog{padding:21px!important}.search-input-row{top:-21px}.storage{margin-top:23px!important}.settings-trigger-mobile{display:inline-flex!important}}
@media(max-width:370px){.app{padding-left:14px!important;padding-right:14px!important}.brand{font-size:19px!important}.subtitle{font-size:9px!important}.top-actions{gap:3px}.top-actions button{padding:6px;min-width:31px;height:32px}.day-item{font-size:8px!important}.day{min-height:84px!important}.birthday-controls{gap:5px!important}.calendar-lunar-toggle{font-size:10px!important}.calendar-view-toggle button{padding:4px 6px}.calendar-layout #calendar{padding:13px!important}.note-editor-panel{padding:17px!important}.note-toolbar{gap:2px!important}.note-toolbar button{padding:6px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media(max-width:760px){.app.mobile-editing{padding-top:15px!important}.app.mobile-editing>header,.app.mobile-editing>.eyebrow,.app.mobile-editing>#heading,.app.mobile-editing>.page-subtitle,.app.mobile-editing .notes-top{display:none!important}.app.mobile-editing .note-editor-panel{min-height:calc(100dvh - 125px);padding-top:10px!important}.app.mobile-editing .note-editor-actions{position:sticky;top:0;background:var(--paper);padding:8px 0;z-index:4}.app.mobile-editing .note-save-status{font-size:9px!important}.app.mobile-editing .storage{display:none}.app.mobile-editing .note-toolbar{bottom:86px!important}}
.desktop-context{display:none;color:var(--muted);font-size:11px}
@media(min-width:761px){header>div:first-child:not(.top-actions){display:none}.desktop-context{display:block}header{justify-content:space-between}}
@media(max-width:760px){.day{min-height:72px!important;gap:3px!important;padding:6px 3px!important}.day-item{line-height:1.3!important;padding:1px 3px!important}.holiday-label{line-height:1.3!important}.calendar-layout #recordsSection{margin-top:0}}
html[data-theme=dark] .block-text[style*="184, 67, 67"]{color:#ed9999!important}html[data-theme=dark] .block-text[style*="184, 120, 20"]{color:#e8bb77!important}html[data-theme=dark] .block-text[style*="52, 112, 82"]{color:#9bccb1!important}html[data-theme=dark] .block-text[style*="52, 102, 171"]{color:#a0bde6!important}html[data-theme=dark] .block-text[style*="128, 84, 157"]{color:#ccabdF!important}
.keyboard-tip{white-space:pre-line}

/* Compact headings and UpNote-style mobile notebook navigation. */
.app>.eyebrow,.app>.page-subtitle{display:none!important}
.mobile-note-header{display:none}
header{margin-bottom:15px!important}
@media(max-width:760px){
  .app{padding-top:18px!important}
  .app>header{justify-content:flex-end;min-height:0;margin-bottom:0!important}
  .app>#heading{margin:-37px 130px 24px 0!important;font-size:24px!important;min-height:37px;display:flex;align-items:center}
  .app[data-view=notes]>header,.app[data-view=notes]>#heading{display:none!important}
  .mobile-note-header{display:flex;align-items:center;gap:12px;margin:0 -4px 16px;min-height:44px}
  .mobile-note-header h2{flex:1;min-width:0;font-size:19px!important;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}
  .mobile-note-icon{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--green);padding:10px}
  .mobile-note-icon .ui-icon{width:22px;height:22px}
  .app.mobile-editing .mobile-note-header{display:none}
  .notes-top{flex-wrap:nowrap!important;gap:8px!important;margin-bottom:15px!important}
  .notes-top input{flex:1 1 0!important;min-width:0!important;order:0;min-height:42px}
  .notes-top .note-sort{flex:0 0 105px!important;min-width:0;max-width:115px;min-height:42px!important;padding:6px!important;font-size:11px!important}
  .notes-top #newNotebookNote{position:fixed;right:22px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:8;display:flex;align-items:center;justify-content:center;width:58px;height:58px;min-height:58px;border-radius:50%!important;padding:0!important;font-size:0!important;box-shadow:0 5px 18px #203b2235}
  .notes-top #newNotebookNote::before{content:'＋';font-size:29px;font-weight:400;line-height:1}
  .notes-top #newNotebookNote::after{content:'새 노트';position:absolute;width:68px;text-align:center;bottom:-21px;font-size:10px;color:var(--muted)}
  .notes-layout{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important}
  .notes-layout>.notebooks-panel{display:none!important}
  .note-list-panel{background:transparent!important;padding:0!important;padding-bottom:90px!important}
  .notes-counter{padding:0 2px 12px!important;font-size:11px!important}
  #notebookNotes>button{margin:0!important;border-radius:0!important;padding:17px 2px!important;min-height:94px;background:transparent!important}
  .note-list-panel .entry-title{font-size:16px!important;font-weight:600!important}
  .note-list-panel .preview{font-size:13px!important;margin:5px 0 8px!important;-webkit-line-clamp:2}
  .note-list-panel .entry-meta{font-size:10px!important}
  .mobile-notebooks-drawer{position:fixed;inset:0 auto 0 0;margin:0!important;width:min(320px,86vw)!important;max-width:86vw!important;height:100dvh;max-height:100dvh!important;border-radius:0 16px 16px 0!important;padding:18px 12px!important;border:0!important;overflow:auto}
  .mobile-notebooks-drawer .dialoghead{padding:0 8px 14px;border-bottom:1px solid var(--line);position:sticky;top:-18px;background:var(--paper);z-index:1}
  .mobile-notebooks-drawer .dialoghead h2{font-size:19px!important;margin:0}
  .mobile-notebooks-drawer .notebooks-panel{display:block!important;padding:16px 0!important;border:0!important}
  .mobile-notebooks-drawer summary{display:none}
  .mobile-notebooks-drawer #notebookList{display:block!important}
  .mobile-notebooks-drawer .notebook-row{width:100%!important;border-bottom:1px solid var(--line);gap:5px}
  .mobile-notebooks-drawer .notebook-row>button:first-child{display:block;min-height:48px!important;text-align:left;font-size:14px!important;padding:12px!important}
  .mobile-notebooks-drawer .notebook-more{opacity:1!important;pointer-events:auto!important;min-width:44px!important;min-height:44px!important;font-size:23px!important}
  .mobile-notebooks-drawer #newNotebook{width:100%!important;text-align:left;margin-top:15px!important;min-height:46px!important;padding:12px!important;color:var(--green);font-size:13px!important}
  .app.mobile-editing .notes-layout{background:var(--paper)!important;border-radius:12px!important}
  .app.mobile-editing .note-editor-panel{padding:12px 8px!important}
  .storage{margin-top:20px!important}
}
html:has(#mobileNotebooksDialog[open]){overflow:hidden}

/* Prose flows at one line height; checklist rows retain their own spacing. */
.note-block.paragraph{padding:0!important}
.note-block.paragraph .block-text{padding:0!important;line-height:1.75!important;min-height:1.75em}

/* Note editor: notebook, title, continuous body. Primary actions stay at the edges. */
.note-editor-actions{flex-wrap:nowrap!important;align-items:center;gap:8px!important;margin-bottom:18px!important}
.note-action-tools{display:flex;align-items:center;gap:3px;margin-left:auto}
.note-editor-actions .note-action-icon{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:40px!important;padding:8px!important;border:0;background:transparent;color:var(--muted)}
.note-action-icon[aria-pressed=true]{background:var(--soft)!important;color:var(--green)!important}
.note-action-icon .ui-icon{width:19px;height:19px}
.note-delete-icon:hover{color:#b84343!important;background:#b8434310!important}
.note-editor-actions .note-save-button{margin-left:0;min-height:40px!important;padding:8px 15px!important;flex-shrink:0}
.note-editor-actions .note-back{align-items:center;justify-content:center;gap:2px;min-height:40px!important;padding:8px 11px!important;background:var(--soft);color:var(--green);font-size:13px!important;font-weight:650;border:1px solid var(--line)}
.note-back .ui-icon{width:16px;height:16px}
.note-location{margin:0 0 12px!important;min-height:30px}
.note-title-input{margin:0 0 8px!important}
.note-foot .note-save-status{display:block;max-width:none;margin:0 0 5px!important;font-size:10px!important;text-align:left}
.note-search-field{position:relative;display:flex;align-items:center;flex:1;min-width:0}
.note-search-field>.ui-icon{position:absolute;left:12px;width:17px;height:17px;color:var(--muted);pointer-events:none}
.app-install-section{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.app-install-section h3{font-size:14px;margin:0 0 10px}
.app-install-section .plain{border:1px solid var(--line);min-height:42px;padding:8px 14px;color:var(--green);background:var(--soft)}
.notes-top .note-search-field input{width:100%!important;padding-left:37px!important;min-width:0;flex:1}
@media(max-width:760px){
  .mobile-note-header{gap:7px;margin:0 0 10px}
  .mobile-note-header h2{font-size:18px!important}
  .mobile-note-header .note-sort{flex:0 0 auto;max-width:112px;min-width:0;width:112px!important;margin-left:auto!important;min-height:32px!important;height:32px;padding:4px 6px!important;font-size:11px!important;background:var(--paper)}
  .notes-top{display:block!important;margin-bottom:15px!important}
  .note-search-field{width:100%}
  .notes-top .note-search-field input{height:36px!important;min-height:36px!important;padding-top:6px!important;padding-bottom:6px!important;font-size:12px!important;border-radius:10px}
  .note-editor-actions{gap:6px!important;margin-bottom:14px!important}
  .note-editor-actions .note-back{display:inline-flex!important;padding:8px 9px!important}
  .note-editor-actions .note-action-icon{min-width:34px;min-height:40px!important;padding:7px!important}
  .note-action-tools{gap:1px}
  .note-editor-actions .note-save-button{padding:8px 13px!important;font-size:13px!important}
  .note-location{font-size:11px!important;margin-bottom:12px!important;gap:7px}
  .note-location select{flex:1;max-width:230px!important}
  .note-title-input{margin-bottom:7px!important}
}
/* Account and sync controls share the existing dialog and button design. */
.sync-indicator{display:block;margin-bottom:8px;overflow-wrap:anywhere}
#syncDialog .actions{flex-wrap:wrap}
.sync-consent{display:flex;align-items:flex-start;gap:10px;margin:18px 0;line-height:1.6}
.sync-consent input{width:auto;flex:0 0 auto;margin-top:5px}
#syncPreview{max-height:240px;overflow:auto}
.navbuttons button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
.navbuttons .ui-icon{width:18px;height:18px;flex:none}
