.home-sidebar-surface{--line-strong:transparent;--rh-text:#2a2419;--rh-accent-ink:#fffdf9;--accent:#a04a1f;--surface-3:#e9e8ef;--rh-text-2:#5c5343;--rh-lh:1.5;--rh-glass-blur:20px;--rh-surface-2:#f3ece0;--muted-2:#a99a7e;--bg-elevated:#ffffff;--success:#4f9a6a;--surface-glass-strong:rgba(255,255,255,.86);--line:transparent;--rh-tap:44px;--rh-ok:#10b981;--rh-shadow:0 1px 2px rgba(58,44,26,.04), 0 8px 24px rgba(58,44,26,.06);--bg:#f2f1f6;--ease:cubic-bezier(.2,.8,.2,1);--shadow-control:0 2px 7px rgba(58,44,26,.07);--dur:.22s;--muted:#8b8069;--rh-gutter:8px;--rh-surface-3:#ebe2d3;--glass-blur-heavy:saturate(180%) blur(40px);--rh-fs-cap:11px;--rh-fs-body:15px;--shadow:0 20px 48px rgba(20,19,25,.10);--rh-font:"Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;--ease-spring:cubic-bezier(.34,1.56,.64,1);--glass-border:1px solid rgba(255,255,255,.5);--rh-canvas:#f6f1e7;--text-2:#4a4854;--rh-ease:cubic-bezier(.22,.61,.36,1);--rh-shadow-soft:0 2px 7px rgba(58,44,26,.07);--rh-shadow-lift:0 2px 6px rgba(58,44,26,.06), 0 16px 40px rgba(58,44,26,.10);--hairline:rgba(20,19,25,.06);--warning:#d99a3c;--info:#5b8fd6;--shadow-glass:0 8px 32px rgba(20,19,25,.12);--shadow-card:0 2px 7px rgba(58,44,26,.07);--rh-danger:#e5484d;--rh-fs-display:28px;--rh-glass-bg:rgba(255,255,255,.72);--surface-2:#f4f3f8;--rh-dur:.2s;--dur-fast:.14s;--radius-sm:16px;--accent-ink:#fffdf9;--shadow-soft:0 8px 24px rgba(20,19,25,.06);--rh-r-md:24px;--rh-gap:12px;--rh-fs-title:22px;--rh-r-lg:28px;--danger:#d96b58;--nav-height:0px;--radius-control:24px;--rh-accent-soft:#f7e7dc;--radius-pill:999px;--rh-surface:#fffdf9;--rh-warn:#d97706;--text:#141319;--radius-xs:12px;--rh-r-pill:999px;--radius-card:28px;--surface-glass:rgba(255,255,255,.72);--radius-xl:28px;--rh-muted:#8b8069;--radius-2xl:34px;--ink-on-accent:#141319;--radius-md:20px;--rh-accent:#a04a1f;--radius-lg:22px;--card-row-height:54px;--accent-strong:#7d3614;--shadow-card-hover:0 2px 7px rgba(58,44,26,.07);--surface:#ffffff;--accent-soft:#f7e7dc;--tap-min:44px;--rh-fs-sub:13px;--gutter:13px;--glass-blur:saturate(180%) blur(24px);--rh-r-sm:16px;--rh-line:transparent;}
:where(.home-sidebar-surface) *{box-sizing: border-box;}
:where(.home-sidebar-surface) button{font: inherit; color: inherit;}
:where(.home-sidebar-surface) button{border: 0px; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap-min); border-radius: var(--radius-control); transition: transform var(--dur-fast) var(--ease),background var(--dur) var(--ease),color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease);}
:where(.home-sidebar-surface) button:active{transform: scale(0.97);}
:where(.home-sidebar-surface) button:disabled{opacity: 0.5; cursor: wait; transform: none;}
:where(.home-sidebar-surface) button,:where(.home-sidebar-surface) a{-webkit-tap-highlight-color: transparent;}
:where(.home-sidebar-surface) button:focus-visible,:where(.home-sidebar-surface) a:focus-visible{outline: 2px solid var(--accent-strong); outline-offset: 2px;}
:where(.home-sidebar-surface) img{display: block; width: 20px; height: 20px; object-fit: contain; opacity: 0.72;}
:where(.home-sidebar-surface) button img{pointer-events: none;}
:where(.home-sidebar-surface) a{color: inherit; text-decoration: none;}
:where(.home-sidebar-surface) [hidden]{display: none !important;}
:where(.home-sidebar-surface) .sidebar{position: fixed; inset: 0px auto 0px 0px; z-index: 60; width: min(84vw, 340px); padding: calc(20px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)); background: var(--surface-glass-strong); backdrop-filter: var(--glass-blur-heavy); border-right: 1px solid var(--line); box-shadow: rgba(20, 19, 25, 0.18) 24px 0px 64px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-104%); transition: transform var(--dur) var(--ease);}
:where(.home-sidebar-surface) .sidebar.open{transform: translateX(0px);}
:where(.home-sidebar-surface) .brand{display: flex; align-items: center; gap: 12px; margin: 0px 2px 22px; font-size: 19px; font-weight: 800; letter-spacing: -0.04em;}
:where(.home-sidebar-surface) .brand > span:last-child{display: grid; line-height: 1.12;}
:where(.home-sidebar-surface) .brand-en{font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 5px; font-weight: 750;}
:where(.home-sidebar-surface) .brand small{font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0px; margin-top: 5px;}
:where(.home-sidebar-surface) .brand-mark{width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: var(--accent); box-shadow: 0 10px 22px color-mix(in srgb,var(--accent) 34%,transparent); flex-shrink: 0;}
:where(.home-sidebar-surface) .brand-mark img{width: 24px; height: 24px; filter: brightness(0); opacity: 0.88;}
:where(.home-sidebar-surface) .primary{min-height: 46px; padding: 0px 18px; background: var(--accent); color: var(--ink-on-accent); font-weight: 750; box-shadow: 0 8px 20px color-mix(in srgb,var(--accent) 30%,transparent);}
:where(.home-sidebar-surface) .primary:hover{background: var(--accent-strong);}
:where(.home-sidebar-surface) .new-note{width: 100%; justify-content: flex-start; margin-bottom: 18px; font-size: 14px;}
:where(.home-sidebar-surface) .new-note img{filter: brightness(0); opacity: 0.88;}
:where(.home-sidebar-surface) .shortcut{margin-left: auto; padding: 3px 8px; border-radius: var(--radius-xs); font-size: 11px; background: rgba(0, 0, 0, 0.12);}
:where(.home-sidebar-surface) .main-nav{display: grid; gap: 4px;}
:where(.home-sidebar-surface) .nav-item{width: 100%; justify-content: flex-start; padding: 0px 13px; min-height: var(--tap-min); color: var(--text-2); font-size: 14px; font-weight: 650; text-align: left; border-radius: var(--radius-sm);}
:where(.home-sidebar-surface) .nav-item img{width: 18px; height: 18px; opacity: 0.6;}
:where(.home-sidebar-surface) .nav-item:hover{background: var(--surface-2); color: var(--text);}
:where(.home-sidebar-surface) .nav-item.active{background: var(--accent-soft); color: var(--accent-strong); font-weight: 750;}
:where(.home-sidebar-surface) .nav-item.active img{opacity: 0.9;}
:where(.home-sidebar-surface) .count{margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted);}
:where(.home-sidebar-surface) .nav-item.active .count{color: var(--accent-strong);}
:where(.home-sidebar-surface) .sidebar-memos{margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2);}
:where(.home-sidebar-surface) .sidebar-memos header,:where(.home-sidebar-surface) .sidebar-memos footer{display: flex; align-items: center; justify-content: space-between; gap: 8px;}
:where(.home-sidebar-surface) .memo-nav{display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750;}
:where(.home-sidebar-surface) .memo-nav img{width: 16px; height: 16px;}
:where(.home-sidebar-surface) .sidebar-memos header > span,:where(.home-sidebar-surface) #sidebar-memo-page{font-size: 11px; color: var(--muted);}
:where(.home-sidebar-surface) .sidebar-memos footer button{min-height: 30px; width: 30px; font-size: 17px; color: var(--muted);}
:where(.home-sidebar-surface) .sidebar-memos footer button:hover{background: var(--surface-3);}
:where(.home-sidebar-surface) .side-bottom{margin-top: 18px;}
:where(.home-sidebar-surface) .connection{display: flex; align-items: center; gap: 11px; padding: 13px 0px; border-top: 1px solid var(--line);}
:where(.home-sidebar-surface) .connection-icon{width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; flex: 0 0 auto;}
:where(.home-sidebar-surface) .connection-icon img{width: 18px;}
:where(.home-sidebar-surface) .connection strong{display: block; font-size: 12.5px;}
:where(.home-sidebar-surface) .connection small{display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px;}
:where(.home-sidebar-surface) .connection .icon-button{margin-left: auto; width: 34px; min-height: 34px;}
:where(.home-sidebar-surface) .sync-check{display: none;}
:where(.home-sidebar-surface) .icon-button{width: 40px; min-height: 40px; padding: 9px; border-radius: var(--radius-sm);}
:where(.home-sidebar-surface) .icon-button:hover{background: var(--surface-2);}
@media (prefers-reduced-motion: reduce) {:where(.home-sidebar-surface) *{scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {:where(.home-sidebar-surface) .sidebar{background: var(--surface);}}

.home-sidebar-surface .sidebar{position: fixed; inset: 0px auto 0px 0px; width: min(78vw, 320px); margin: 0px; padding: calc(20px + env(safe-area-inset-top)) var(--rh-gutter)
           calc(20px + env(safe-area-inset-bottom)); background: var(--rh-surface); border-right: 1px solid var(--rh-line); border-radius: 0 var(--rh-r-lg) var(--rh-r-lg) 0; box-shadow: var(--rh-shadow-lift); transform: translateX(-102%); transition: transform var(--rh-dur) var(--rh-ease); z-index: 60; overflow-y: auto;}
.home-sidebar-surface .sidebar.open{transform: translateX(0px);}
.home-sidebar-surface .sidebar :is(a, button){border-radius: var(--rh-r-sm);}
.home-sidebar-surface .brand{display: flex; align-items: center; gap: 12px; padding: 4px 2px 20px; text-decoration: none; color: var(--rh-text);}
.home-sidebar-surface .brand-mark{width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--rh-r-sm); background: var(--rh-accent-soft);}
.home-sidebar-surface .brand-mark img{width: 22px; height: 22px;}
.home-sidebar-surface .brand > span{display: flex; flex-direction: column; line-height: 1.25;}
.home-sidebar-surface .brand .brand-en{font-size: var(--rh-fs-cap); letter-spacing: 0.16em; color: var(--rh-muted); font-weight: 600;}
.home-sidebar-surface .brand small{font-size: var(--rh-fs-cap); color: var(--rh-muted); font-weight: 400;}
.home-sidebar-surface .new-note{width: 100%; min-height: var(--rh-tap); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; padding: 0px 16px; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-weight: 650; font-size: var(--rh-fs-body); color: var(--rh-accent-ink); background: var(--rh-accent); border: 0px; border-radius: var(--rh-r-md); box-shadow: var(--rh-shadow);}
.home-sidebar-surface .new-note img{width: 18px; height: 18px; filter: brightness(0) invert(1);}
.home-sidebar-surface .new-note .shortcut{opacity: 0.6; font-size: var(--rh-fs-cap); font-weight: 500;}
.home-sidebar-surface .main-nav{display: flex; flex-direction: column; gap: 2px;}
.home-sidebar-surface .nav-item{width: 100%; min-height: var(--rh-tap); display: flex; align-items: center; gap: 12px; padding: 0px 12px; margin: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--rh-fs-body); font-weight: 500; color: var(--rh-text); background: transparent; border: 0px; border-radius: var(--rh-r-sm); text-align: left;}
.home-sidebar-surface .nav-item img{width: 20px; height: 20px; opacity: 0.75;}
.home-sidebar-surface .nav-item:nth-child(n+3){}
.home-sidebar-surface .nav-item .count{margin-left: auto; min-width: 26px; padding: 2px 8px; font-size: var(--rh-fs-cap); font-weight: 600; text-align: center; color: var(--rh-text-2); background: var(--rh-surface-2); border-radius: var(--rh-r-pill);}
.home-sidebar-surface .nav-item.active{background: var(--rh-accent-soft); color: var(--rh-accent); font-weight: 650;}
.home-sidebar-surface .nav-item.active img{opacity: 1;}
.home-sidebar-surface .nav-item.active .count{background: var(--rh-accent); color: var(--rh-accent-ink);}
.home-sidebar-surface .icon-button{width: var(--rh-tap); height: var(--rh-tap); display: grid; place-items: center; padding: 0px; border: 0px; border-radius: var(--rh-r-sm); background: transparent; color: inherit;}
.home-sidebar-surface .icon-button img{width: 20px; height: 20px;}
.home-sidebar-surface .side-bottom{margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rh-line);}
.home-sidebar-surface .connection{display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--rh-r-sm); background: var(--rh-surface-2);}
.home-sidebar-surface .connection-icon{width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--rh-r-sm); background: var(--rh-surface-3);}
.home-sidebar-surface .connection-icon img{width: 16px; height: 16px;}
.home-sidebar-surface .connection strong{display: block; font-size: var(--rh-fs-sub); font-weight: 600;}
.home-sidebar-surface .connection small{font-size: var(--rh-fs-cap); color: var(--rh-muted);}
@media (prefers-reduced-motion: reduce) {:where(.home-sidebar-surface) *{animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;}}
.home-sidebar-surface .sidebar{background: linear-gradient(180deg, var(--rh-surface) 0%, var(--rh-surface) 62%, var(--rh-surface-2) 100%); border-right: 1px solid var(--rh-line); box-shadow: rgba(58, 44, 26, 0.03) 0px 0px 0px 1px, rgba(58, 44, 26, 0.22) 0px 24px 64px; padding: calc(18px + env(safe-area-inset-top)) 14px
           calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;}
.home-sidebar-surface .sidebar::-webkit-scrollbar{width: 6px;}
.home-sidebar-surface .sidebar::-webkit-scrollbar-thumb{background: var(--rh-line); border-radius: 999px;}
.home-sidebar-surface .main-nav{display: flex; flex-direction: column; gap: 2px;}
.home-sidebar-surface .sidebar-memos{margin-top: 18px;}
.home-sidebar-surface .brand{padding: 2px 10px 16px; gap: 11px; border-radius: var(--rh-r-sm);}
.home-sidebar-surface .brand-mark{width: 42px; height: 42px; border-radius: 14px; background: var(--rh-accent-soft); box-shadow: rgba(160, 74, 31, 0.1) 0px 0px 0px 1px inset;}
.home-sidebar-surface .brand-mark img{width: 21px; height: 21px;}
.home-sidebar-surface .brand > span{gap: 1px;}
.home-sidebar-surface .brand > span > span:first-child{font-size: 17px; font-weight: 700; letter-spacing: -0.01em;}
.home-sidebar-surface .brand .brand-en{font-size: 9.5px; letter-spacing: 0.2em; margin-top: 3px;}
.home-sidebar-surface .brand small{font-size: 11px; margin-top: 3px;}
.home-sidebar-surface .new-note{margin-bottom: 16px; min-height: 50px; border-radius: var(--rh-r-md); font-size: 16px; font-weight: 650; letter-spacing: -0.01em; box-shadow: rgba(160, 74, 31, 0.24) 0px 6px 18px;}
.home-sidebar-surface .new-note:active{transform: scale(0.985);}
.home-sidebar-surface .new-note .shortcut{margin-left: auto; padding: 2px 7px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.18); border-radius: 7px;}
.home-sidebar-surface .nav-item,.home-sidebar-surface .sidebar .main-nav .nav-item{width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0px 10px; margin: 0px; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--rh-text); background: transparent; border: 0px; border-radius: var(--rh-r-sm); text-align: left; text-decoration: none; transition: background var(--rh-dur) var(--rh-ease);}
.home-sidebar-surface .nav-item img{width: 20px; height: 20px; flex: 0 0 auto; opacity: 0.62;}
.home-sidebar-surface .nav-item > span:first-of-type{min-width: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.home-sidebar-surface .nav-item .count{margin-left: auto; flex: 0 0 auto; min-width: 24px; padding: 2px 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; color: var(--rh-text-2); background: var(--rh-surface-2); border-radius: 999px;}
.home-sidebar-surface .nav-item.active{position: relative; background: var(--rh-accent-soft); color: var(--rh-accent); font-weight: 650;}
.home-sidebar-surface .nav-item.active::before{content: ""; position: absolute; left: 0px; top: 11px; bottom: 11px; width: 3px; border-radius: 0px 3px 3px 0px; background: var(--rh-accent);}
.home-sidebar-surface .nav-item.active img{opacity: 1;}
.home-sidebar-surface .nav-item.active .count{background: var(--rh-accent); color: var(--rh-accent-ink);}
.home-sidebar-surface .sidebar-memos{padding: 12px; background: var(--rh-surface-2); border: 1px solid var(--rh-line); border-radius: var(--rh-r-md);}
.home-sidebar-surface .sidebar-memos header{min-height: 28px;}
.home-sidebar-surface .memo-nav{font-size: 14px; font-weight: 650; color: var(--rh-text);}
.home-sidebar-surface .memo-nav img{opacity: 0.7;}
.home-sidebar-surface #sidebar-memo-count,.home-sidebar-surface .sidebar-memos header > span{font-size: 12px; color: var(--rh-muted);}
.home-sidebar-surface .mc-toolbar{margin: 8px 0px 6px; gap: 6px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar > button,.home-sidebar-surface .sidebar-memos .mc-trigger{min-height: 30px; padding: 0px 10px; font-size: 12px; font-weight: 600; color: var(--rh-text-2); background: var(--rh-surface); border: 1px solid var(--rh-line); border-radius: 999px;}
.home-sidebar-surface .sidebar-memos .mc-trigger span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.home-sidebar-surface .sidebar-memo-row{height: 34px; gap: 4px; margin: 1px 0px; background: transparent; border-radius: 10px;}
.home-sidebar-surface .sidebar-memo-row:hover{background: var(--rh-surface-3);}
.home-sidebar-surface .sidebar-memo-row .sidebar-memo-item{min-width: 0px; flex: 1 1 0%; font-size: 13px; color: var(--rh-text-2); background: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.home-sidebar-surface .sidebar-memo-row .mc-trigger{background: transparent; border: 0px; font-size: 10.5px; padding: 0px 5px; min-height: 26px;}
.home-sidebar-surface .sidebar-memo-row .mc-dot{width: 7px; height: 7px;}
.home-sidebar-surface .sidebar-memo-copy{color: var(--rh-muted);}
.home-sidebar-surface .sidebar-memos footer{margin-top: 8px;}
.home-sidebar-surface .sidebar-memos footer button{width: 30px; min-height: 30px; padding: 0px; font-size: 16px; color: var(--rh-text-2); background: var(--rh-surface); border: 1px solid var(--rh-line); border-radius: 10px;}
.home-sidebar-surface #sidebar-memo-page{font-size: 11.5px; color: var(--rh-muted);}
.home-sidebar-surface .side-bottom{margin-top: auto; padding-top: 20px;}
.home-sidebar-surface .connection{gap: 10px; padding: 10px; background: var(--rh-surface-2); border: 1px solid var(--rh-line); border-radius: var(--rh-r-sm);}
.home-sidebar-surface .connection-icon{width: 30px; height: 30px; background: var(--rh-surface); border-radius: 9px;}
.home-sidebar-surface .connection-icon img{width: 15px; height: 15px; opacity: 0.7;}
.home-sidebar-surface .connection strong{font-size: 13px; font-weight: 650;}
.home-sidebar-surface .connection small{font-size: 11px;}
.home-sidebar-surface .connection .icon-button{width: 30px; min-height: 30px; height: 30px; padding: 0px;}
.home-sidebar-surface .connection .icon-button img{width: 15px; height: 15px;}
@media (max-width: 380px) {.home-sidebar-surface .sidebar{width: min(82vw, 320px); padding-left: 12px; padding-right: 12px;}
.home-sidebar-surface .nav-item{font-size: 14.5px;}}
.home-sidebar-surface .sidebar{padding-left: 14px; padding-right: 14px;}
.home-sidebar-surface .sidebar .brand{font-size: 17px; gap: 11px; margin-bottom: 0px; padding: 2px 10px 16px;}
.home-sidebar-surface .sidebar .brand small{font-size: 11px;}
.home-sidebar-surface .sidebar .brand-mark{width: 42px; height: 42px;}
.home-sidebar-surface .sidebar .brand-mark img{width: 21px; height: 21px;}
.home-sidebar-surface .sidebar .new-note{font-size: 16px; min-height: 50px; margin-bottom: 16px; padding: 0px 16px;}
.home-sidebar-surface .sidebar .main-nav{gap: 2px;}
.home-sidebar-surface .sidebar .main-nav .nav-item{font-size: 15px; min-height: 44px; padding: 0px 10px; gap: 11px;}
.home-sidebar-surface .sidebar .main-nav .nav-item img{width: 20px; height: 20px;}
.home-sidebar-surface .sidebar #category-settings-open{min-height: 40px; font-size: 14px; line-height: 1.3; padding: 0px 10px; gap: 10px; margin-top: 0px;}
.home-sidebar-surface .sidebar #category-settings-open img{width: 20px; height: 20px;}
.home-sidebar-surface .sidebar .count{font-size: 12px;}
.home-sidebar-surface .sidebar-memos{margin-top: 18px; padding: 12px; border-radius: var(--rh-r-md);}
.home-sidebar-surface .sidebar-memos .memo-nav{font-size: 14px; gap: 7px;}
.home-sidebar-surface .sidebar-memos .memo-nav img{width: 16px; height: 16px;}
.home-sidebar-surface .sidebar-memos #sidebar-memo-count,.home-sidebar-surface .sidebar-memos #sidebar-memo-page{font-size: 11.5px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar{margin: 8px 0px 6px; gap: 6px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar > button{font-size: 12px; min-height: 30px; padding: 0px 10px;}
.home-sidebar-surface .sidebar-memos #sidebar-memo-list{min-height: 0px; padding: 0px;}
.home-sidebar-surface .sidebar-memos .sidebar-memo-row{display: flex; align-items: center; height: auto; min-height: 34px; margin: 1px 0px; padding: 0px 2px; gap: 4px;}
.home-sidebar-surface .sidebar-memos .sidebar-memo-row .mc-trigger{grid-column: auto; max-width: 62px; font-size: 10.5px; line-height: 1.3; min-height: 26px; padding: 0px 5px; gap: 3px; justify-self: auto;}
.home-sidebar-surface .sidebar-memos .sidebar-memo-row .sidebar-memo-item{font-size: 13px; line-height: 1.35; height: auto; max-height: none; min-height: 0px; padding: 0px; white-space: nowrap; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis;}
.home-sidebar-surface .sidebar-memos .sidebar-memo-row .sidebar-memo-copy{grid-area: auto; width: 26px; height: 26px; min-height: 26px; padding: 0px; border-radius: 9px; align-self: center;}
.home-sidebar-surface .sidebar-memos footer button{width: 30px; min-height: 30px; font-size: 16px;}
.home-sidebar-surface .sidebar .side-bottom{padding-top: 20px;}
.home-sidebar-surface .sidebar .connection{margin-top: 0px; padding: 10px; gap: 10px;}
.home-sidebar-surface .sidebar .connection strong{font-size: 13px;}
.home-sidebar-surface .sidebar .connection small{font-size: 11px;}
.home-sidebar-surface *{border: 0px !important;}
.home-sidebar-surface :is(.sidebar, .connection, .brand-mark, .new-note, .sidebar-memos, .sidebar-stock-entry a, .sidebar-tools button, .notice, .rh-icon-btn, .rh-search, .rh-sort, .filter-chip, .modern-card){box-shadow: var(--rh-shadow-soft);}
.home-sidebar-surface .sidebar{box-shadow: rgba(58, 44, 26, 0.09) 3px 0px 14px;}
.home-sidebar-surface .side-bottom{box-shadow: rgba(58, 44, 26, 0.15) 0px -3px 8px -6px;}
.home-sidebar-surface button{font-family: var(--rh-font); font-stretch: normal; letter-spacing: -0.012em;}
.home-sidebar-surface button{font-family: var(--rh-font); font-weight: 500; letter-spacing: -0.008em;}
.home-sidebar-surface .sidebar{width: min(51vw, 208px); padding: calc(14px + env(safe-area-inset-top)) 10px
           calc(12px + env(safe-area-inset-bottom)); font-size: 13px;}
.home-sidebar-surface .sidebar .brand{padding: 2px 8px 10px; gap: 0px;}
.home-sidebar-surface .sidebar .brand-mark{display: none;}
.home-sidebar-surface .sidebar .brand > span{font-size: 15px;}
.home-sidebar-surface .sidebar .brand .brand-en{font-size: 8.5px;}
.home-sidebar-surface .sidebar .brand small{font-size: 10px;}
.home-sidebar-surface .sidebar .new-note{min-height: 40px; margin-bottom: 12px; padding: 0px 10px; font-size: 13px; border-radius: 12px;}
.home-sidebar-surface .sidebar .new-note img{width: 16px; height: 16px;}
.home-sidebar-surface .sidebar .main-nav{gap: 1px;}
.home-sidebar-surface .sidebar .main-nav .nav-item{min-height: 36px; padding: 0px 8px; gap: 8px; font-size: 13px; border-radius: 10px;}
.home-sidebar-surface .sidebar .main-nav .nav-item img{width: 17px; height: 17px;}
.home-sidebar-surface .sidebar .nav-item .count{min-width: 22px; padding: 1px 6px; font-size: 10px;}
.home-sidebar-surface .sidebar #category-settings-open{min-height: 34px; padding: 0px 8px; gap: 8px; font-size: 12px;}
.home-sidebar-surface .sidebar #category-settings-open img{width: 17px; height: 17px;}
.home-sidebar-surface .sidebar-memos{margin-top: 12px; padding: 9px; border-radius: 14px;}
.home-sidebar-surface .sidebar-memos .memo-nav{font-size: 12px; gap: 6px;}
.home-sidebar-surface .sidebar-memos .memo-nav img{width: 14px; height: 14px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar{margin: 6px 0px 4px; gap: 4px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar > button{min-height: 26px; padding: 0px 7px; font-size: 10px;}
.home-sidebar-surface .sidebar-memo-row{min-height: 29px; gap: 3px;}
.home-sidebar-surface .sidebar-memo-row .sidebar-memo-item{font-size: 11px;}
.home-sidebar-surface .sidebar-memo-row .sidebar-memo-copy{width: 22px; height: 22px; min-height: 22px;}
.home-sidebar-surface .sidebar .side-bottom{padding-top: 14px;}
.home-sidebar-surface .sidebar .connection{padding: 8px; gap: 8px;}
.home-sidebar-surface .sidebar .connection-icon{width: 27px; height: 27px;}
.home-sidebar-surface .sidebar .connection-icon img{width: 14px; height: 14px;}
.home-sidebar-surface .sidebar .connection strong{font-size: 11px;}
.home-sidebar-surface .sidebar .connection small{font-size: 9px;}
@media (max-width: 380px) {.home-sidebar-surface .sidebar{width: min(51vw, 198px);}}
.home-sidebar-surface .sidebar .brand > span{font-size: 12px;}
.home-sidebar-surface .sidebar .brand .brand-en{font-size: 7px;}
.home-sidebar-surface .sidebar .brand small{font-size: 8px;}
.home-sidebar-surface .sidebar .new-note{font-size: 10.4px;}
.home-sidebar-surface .sidebar .main-nav .nav-item{font-size: 10.4px;}
.home-sidebar-surface .sidebar .nav-item .count{font-size: 8px;}
.home-sidebar-surface .sidebar #category-settings-open{font-size: 9.6px;}
.home-sidebar-surface .sidebar-memos .memo-nav{font-size: 9.6px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar > button{font-size: 8px;}
.home-sidebar-surface .sidebar-memo-row .sidebar-memo-item{font-size: 8.8px;}
.home-sidebar-surface .sidebar .connection strong{font-size: 8.8px;}
.home-sidebar-surface .sidebar .connection small{font-size: 7.2px;}
.home-sidebar-surface .sidebar{font-size: 9.1px;}
.home-sidebar-surface .sidebar .brand > span{font-size: 8.4px;}
.home-sidebar-surface .sidebar .brand .brand-en{font-size: 4.9px;}
.home-sidebar-surface .sidebar .brand small{font-size: 5.6px;}
.home-sidebar-surface .sidebar .new-note{font-size: 7.28px;}
.home-sidebar-surface .sidebar .main-nav .nav-item{font-size: 7.28px;}
.home-sidebar-surface .sidebar .nav-item .count{font-size: 5.6px;}
.home-sidebar-surface .sidebar #category-settings-open{font-size: 6.72px;}
.home-sidebar-surface .sidebar-memos .memo-nav{font-size: 6.72px;}
.home-sidebar-surface .sidebar-memos .mc-toolbar > button{font-size: 5.6px;}
.home-sidebar-surface .sidebar-memo-row .sidebar-memo-item{font-size: 6.16px;}
.home-sidebar-surface .sidebar .connection strong{font-size: 6.16px;}
.home-sidebar-surface .sidebar .connection small{font-size: 5.04px;}
.home-sidebar-surface #sidebar{font-size: 10.465px;}
.home-sidebar-surface #sidebar .brand > span{font-size: 9.66px;}
.home-sidebar-surface #sidebar .brand-en{font-size: 5.635px;}
.home-sidebar-surface #sidebar .brand small{font-size: 6.44px;}
.home-sidebar-surface #sidebar .new-note{font-size: 8.372px;}
.home-sidebar-surface #sidebar .shortcut{font-size: 12.65px;}
.home-sidebar-surface #sidebar .main-nav .nav-item{font-size: 8.372px;}
.home-sidebar-surface #sidebar .nav-item .count{font-size: 6.44px;}
.home-sidebar-surface #sidebar #category-settings-open{font-size: 7.728px;}
.home-sidebar-surface #sidebar .memo-nav{font-size: 7.728px;}
.home-sidebar-surface #sidebar #sidebar-memo-count{font-size: 13.225px;}
.home-sidebar-surface #sidebar .mc-toolbar > button{font-size: 6.44px;}
.home-sidebar-surface #sidebar .sidebar-memo-row .mc-trigger{font-size: 12.075px;}
.home-sidebar-surface #sidebar #sidebar-memo-page{font-size: 13.225px;}
.home-sidebar-surface #sidebar .sidebar-memos footer button{font-size: 18.4px;}
.home-sidebar-surface #sidebar .connection strong{font-size: 7.084px;}
.home-sidebar-surface #sidebar .connection small{font-size: 5.796px;}
.home-sidebar-surface #sidebar .sidebar-memos .sidebar-memo-row{display: grid; grid-template-columns: minmax(0px, 1fr) 22px; align-items: start; height: auto; min-height: 0px; gap: 4px; padding: 6px 0px; margin: 0px;}
.home-sidebar-surface #sidebar .sidebar-memos .sidebar-memo-row .mc-trigger{grid-area: 1 / 1; justify-self: start; max-width: 100%; min-height: 22px; font-size: 8.5px;}
.home-sidebar-surface #sidebar .sidebar-memos .sidebar-memo-row .sidebar-memo-copy{grid-area: 1 / 2; align-self: start; width: 22px; height: 22px; min-height: 22px;}
.home-sidebar-surface #sidebar .sidebar-memos .sidebar-memo-row .sidebar-memo-item{grid-area: 2 / 1 / auto / -1; display: block; width: 100%; min-width: 0px; font-size: 7.7px; font-weight: 400; line-height: 1.6; letter-spacing: 0px; padding: 0px; height: 4.8em; min-height: 4.8em; max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden auto; text-overflow: clip; -webkit-line-clamp: unset; scrollbar-width: thin; scrollbar-color: var(--rh-line) transparent;}
.home-sidebar-surface #sidebar .sidebar-primary-nav{display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; margin-bottom: 2px; box-shadow: rgba(58, 44, 26, 0.16) 0px 8px 10px -12px;}
.home-sidebar-surface #sidebar .sidebar-card-row,.home-sidebar-surface #sidebar .sidebar-primary-nav > .sidebar-primary-link{background: var(--rh-surface); border-radius: 12px; box-shadow: rgba(58, 44, 26, 0.043) 0px 2px 7px;}
.home-sidebar-surface #sidebar .sidebar-card-row{display: flex; align-items: center;}
.home-sidebar-surface #sidebar .sidebar-primary-nav .sidebar-primary-link{display: flex; align-items: center; gap: 8px; min-height: 40px; height: 40px; padding: 0px 12px; font-family: var(--rh-font); font-size: 8.372px; font-weight: 500; color: var(--rh-text); border-radius: 12px; text-decoration: none;}
.home-sidebar-surface #sidebar .sidebar-primary-link > span:not(.count){font-size: inherit; font-weight: inherit;}
.home-sidebar-surface #sidebar .sidebar-primary-link img{width: 17px; height: 17px; flex: 0 0 auto;}
.home-sidebar-surface #sidebar #cards-nav-link{flex: 1 1 0%; min-width: 0px; width: auto; background: transparent; box-shadow: none;}
.home-sidebar-surface #sidebar #cards-nav-link.active::before{left: 4px; top: 13px; bottom: 13px; width: 2px; border-radius: 2px;}
.home-sidebar-surface #sidebar #cards-nav-toggle{flex: 0 0 30px; width: 30px; min-height: 40px; height: 40px; padding: 0px; border-radius: 12px; background: transparent; box-shadow: none;}
.home-sidebar-surface #sidebar #cards-nav-toggle .cards-nav-chevron{width: 11px; height: 11px;}
.home-sidebar-surface #sidebar #cards-nav-toggle[aria-expanded="true"] .cards-nav-chevron{transform: rotate(180deg);}
.home-sidebar-surface #sidebar .sidebar-card-options,.home-sidebar-surface #sidebar .sidebar-memos{background: var(--rh-surface); box-shadow: rgba(58, 44, 26, 0.043) 0px 2px 8px;}
.home-sidebar-surface #sidebar .sidebar-card-options{display: grid; gap: 2px; margin-top: 6px; padding: 4px; border-radius: 12px;}
.home-sidebar-surface #sidebar .sidebar-card-options .nav-item{font-size: 7.728px;}
.home-sidebar-surface #sidebar .sidebar-primary-link:hover,.home-sidebar-surface #sidebar #cards-nav-toggle:hover{background: color-mix(in srgb,var(--rh-surface) 88%,var(--rh-canvas));}.home-sidebar-surface{font-family:var(--rh-font);font-weight:500;color:var(--rh-text);line-height:1.5;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.home-sidebar-surface #sidebar{z-index:120;display:flex;flex-direction:column}
#memo-home-navigation.home-sidebar-surface{position:static;transform:none;padding:0;background:transparent;border:0}
.home-sidebar-surface .sidebar-notice{font-size:8px;color:var(--rh-muted)}
.home-sidebar-surface .sidebar-primary-link.active::before{left:4px;top:13px;bottom:13px;width:2px;border-radius:2px}

#memo-nav-open.app-sidebar-toggle{display:grid;position:fixed;width:40px;height:40px;min-height:40px;padding:0;border-radius:13px;margin:0;top:calc(12px + env(safe-area-inset-top));left:12px}
#memo-nav-scrim.app-sidebar-scrim{display:block;z-index:115;background:rgba(36,27,18,.22);backdrop-filter:blur(4px)}
body:has(#memo-home-navigation) main{padding-top:calc(58px + env(safe-area-inset-top))}

/* Distinct, subdued icon tiles for the five primary destinations. */
.home-sidebar-surface #sidebar .sidebar-primary-nav .sidebar-primary-link{font-size:9.96268px;color:color-mix(in srgb,var(--rh-text) 80%,var(--rh-surface))}
.home-sidebar-surface #sidebar .sidebar-primary-link img{width:25px;height:25px;padding:4px;box-sizing:border-box;border-radius:8px;opacity:1}
.home-sidebar-surface #sidebar #cards-nav-link img{background:#f2dfd3}
.home-sidebar-surface #sidebar .sidebar-primary-link[href="/qq.html"] img{background:#dde6f1}
.home-sidebar-surface #sidebar .sidebar-primary-link[href="/router2.html"] img{background:#dfebdf}
.home-sidebar-surface #sidebar .sidebar-primary-link[href="/photos.html"] img{background:#efe4cb}
.home-sidebar-surface #sidebar .sidebar-primary-link[href="https://loterr.art/"] img{background:#e9def0}

/* Memo destination uses the same primary-link geometry with a quiet lavender tile. */
.home-sidebar-surface #sidebar .sidebar-primary-link[href="/memos.html"] img{background:#e6e1ee}
