.home-records{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin:0 0 26px;padding:12px 0}
.home-records-link{display:flex;align-items:center;gap:26px;flex:1;min-height:46px}
.home-records-link time{font-size:13px;color:var(--muted)}
.home-records-link>span{font-size:19px;white-space:nowrap}.home-records-link b{font-size:16px;color:#826950;font-weight:400;margin-left:8px}
#home-note-open{border:0;background:none;color:#795842;min-height:46px;white-space:nowrap;padding:8px 0 8px 18px;font-size:15px}
#home-note-open span{margin-left:5px;font-size:20px}
.home-note-dialog{--serif:var(--archive-serif);--accent:#895640;width:min(570px,calc(100% - 32px));max-height:88dvh;padding:24px 28px;color:var(--ink);overflow:auto;overscroll-behavior:contain;border-color:#24232124;box-shadow:0 20px 70px #30291e20}
.home-note-dialog::backdrop{background:#30291e66}
.home-note-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.home-note-dialog h2{font:500 28px/1.4 var(--archive-serif);margin:0}
.home-note-dialog button{font-family:var(--archive-serif);color:inherit;cursor:pointer;margin:0;width:auto;background:none;border:0}
.home-note-dialog .close{display:grid;place-items:center;width:44px;min-height:44px;padding:0;font-size:30px;color:var(--muted)}
.home-note-dialog button.thread-primary{background:#34392c;color:#fffef8;border-radius:5px;padding:11px 23px;min-height:46px;font-size:16px}
.home-note-dialog .quick-voice{color:var(--accent)}
.home-note-dialog textarea{color:var(--ink)}
.home-note-dialog button:disabled{opacity:.5;cursor:default}
.home-note-dialog input{display:block;box-sizing:border-box;width:100%;min-height:44px;font:16px var(--archive-serif);color:var(--ink);background:transparent;border:1px solid var(--line);padding:10px;margin:7px 0 0}
.home-note-dialog .quick-date label{display:block}
#home-note-error:empty{display:none}#home-note-error{margin:8px 0 0;font-size:13px;line-height:1.7;color:#944935}
.home-note-login form{display:grid;gap:15px}.home-note-login p{margin:0 0 16px;font-size:15px}
.home-note-login label{display:block;font-size:14px}.home-note-login-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:4px}.home-note-login-actions button:first-child{font-size:14px;color:var(--muted);padding:10px 0}
.home-note-login a{display:inline-block;font-size:12px;color:var(--muted);margin-top:18px;padding-block:8px}
#home-note-toast:not(:empty){position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#34392c;color:#fffef8;padding:11px 24px;z-index:10;font-size:14px;white-space:nowrap;border-radius:4px}
body:has(.home-note-dialog[open]){overflow:hidden}
@media(max-width:759px){
  .home-records{margin-bottom:22px;padding:10px 0;gap:16px}.home-records-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.home-records-link time{font-size:11px}.home-records-link>span{font-size:18px}#home-note-open{font-size:14px;padding-left:10px}
  #dialog.home-note-dialog{width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:14px 14px 0 0;border-bottom:0;padding:22px 22px calc(22px + env(safe-area-inset-bottom))}
  .home-note-dialog h2{font-size:25px}.home-note-dialog textarea{max-height:32dvh}.record-keyboard-open #dialog.home-note-dialog{position:fixed;top:calc(var(--record-viewport-top,0px) + 8px);bottom:auto;margin-block:0;max-height:calc(var(--record-viewport-height,100dvh) - 16px)}
}
