/* 2026-10-18 browser review: consistent chrome, quiet editing and side navigation. */
*,*::before,*::after{scrollbar-width:none!important;-ms-overflow-style:none}*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
/* Textareas remain vertically centered in the single-line composer and grow for real content. */
#composer{display:flex;align-items:center;gap:6px;min-height:60px;padding:6px 8px 6px 18px;border:1px solid #e4e4e4;box-shadow:none;border-radius:28px}
#composer:focus-within{border-color:#a4a4a4;box-shadow:none}#composer:has(button:focus-visible){outline:2px solid #777;outline-offset:2px}
#composer #message{display:block;flex:1;width:0;min-width:0;min-height:44px;max-height:140px;line-height:24px!important;padding:10px 0!important;border:0!important;outline:none!important;box-shadow:none!important;border-radius:0;background:transparent}
#composer .composer-bottom{display:flex;align-items:center;justify-content:flex-end;align-self:center;gap:2px;margin:0;min-height:44px}
#composer .attachment-button,#composer .send{flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;padding:0}#composer .send[hidden]{display:none!important}#composer .attachment-button{background:transparent;color:#777}#composer .attachment-button svg{width:22px;height:22px}
#header-search[hidden]{display:none!important}.topbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center}.topbar #header-date{grid-column:2;justify-self:center}.topbar #header-left{grid-column:1;grid-row:1}
/* Shared first-level page header. */
body[data-page=diary] #view.content{padding:0!important}.pa-heading,.memo-header,.knowledge-home-header{height:72px!important;min-height:72px;margin:0!important;padding:12px 16px!important;display:flex;align-items:center;gap:8px;background:#f7f7f7}
.pa-heading h1,.memo-header h1,.knowledge-home-header h1{font-size:26px!important;line-height:36px!important;font-weight:650;letter-spacing:-.4px;margin:0!important;flex:1}.pa-heading>div:first-child{flex:1}.pa-actions{gap:0}.pa-heading .icon-button,.memo-header>button,.knowledge-home-header button{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;background:transparent;padding:0}.pa-heading svg,.memo-header svg,.knowledge-home-header svg{width:21px;height:21px;stroke-width:1.8}
.memo-toolbar{background:#f7f7f7}.memo-filters{height:auto!important;min-height:60px;align-items:center;padding:4px 16px 12px!important;overflow-x:auto;overflow-y:hidden;flex-shrink:0;gap:8px}.memo-filters .memo-filter{height:44px!important;min-height:44px;max-height:none;padding:0 16px!important;line-height:22px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.knowledge-home-header{margin-bottom:6px!important}.knowledge-home-header h1{flex:1}.knowledge-screen{background:#f7f7f7}
.daily-agenda{padding:0 16px 28px!important}.daily-agenda .week-calendar{padding:10px 0!important}.daily-agenda .week-days button{padding:4px 0 8px!important;align-items:center;justify-content:flex-start;gap:5px}.daily-agenda .week-days button>span{width:30px;height:30px;min-height:30px;display:flex;align-items:center;justify-content:center;padding:0!important;line-height:1!important;font-size:15px}.daily-agenda .week-days small{height:17px;line-height:17px}.daily-agenda .week-days i{bottom:0}
.daily-intro{margin:20px 0 16px}.daily-intro h2{font-size:18px}.daily-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 26px}.daily-module-card{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:158px;border-radius:20px;padding:16px;text-align:left;background:white;color:#202020}.daily-module-card:only-child{grid-column:1/-1}.module-card-title{width:100%;display:flex;align-items:center;gap:7px;font-size:15px;font-weight:600}.module-card-title svg{width:19px;height:19px}.module-card-title svg:last-child{margin-left:auto;width:16px;color:#777}.daily-module-card>strong{font-size:28px;line-height:1.3;margin:14px 0 10px;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.daily-module-card>strong small{font-size:12px;letter-spacing:0;font-weight:400;color:#626262}.module-card-detail{font-size:11px;line-height:1.6;color:#626262}.module-activity{background:#edf3fa}.module-food{background:#fbf1e7}.module-sport{background:#edf5ed}.module-money{background:#f1edf8}
/* Management surfaces enter from the left, within the same phone canvas on desktop. */
#utility.management-panel{position:fixed;inset:0 auto 0 max(0px,calc((100vw - 480px)/2));margin:0!important;width:min(calc(100vw - 36px),420px);max-width:420px!important;height:100dvh;max-height:100dvh!important;min-height:0;border-radius:0;padding:24px 20px;overflow:auto;box-shadow:12px 0 40px #00000012}
#utility.management-panel .dialog-head{top:-24px;padding-top:0;padding-bottom:12px;min-height:56px;background:white}#utility.management-panel .dialog-head h2{font-size:20px}#utility.management-panel #utility-body{padding-bottom:24px}.management-panel .dialog-actions{bottom:-24px;padding-bottom:4px}.sheet-back{display:none!important}
.drawer-identity{display:flex;align-items:center;gap:12px;background:transparent;width:100%;padding:12px 0 20px;text-align:left}.drawer-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#f4f4f2;color:#888;flex-shrink:0}.drawer-avatar svg{width:26px;height:26px}.drawer-identity strong{flex:1;font-size:23px;overflow-wrap:anywhere}.drawer-identity>svg{width:18px;color:#888}.drawer-overview{border-bottom:1px solid #eee;padding:6px 0 24px;margin-bottom:10px}.drawer-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.drawer-counts>div{display:flex;flex-direction:column}.drawer-counts strong{font-size:28px;line-height:1.35}.drawer-counts span{font-size:12px;color:#7b7b7b;margin-top:5px}.drawer-heatmap{display:grid;grid-template-columns:repeat(14,1fr);gap:5px;margin-top:20px}.drawer-heatmap span{aspect-ratio:1;background:#f2f2ef;border-radius:3px}.drawer-heatmap [data-level="1"]{background:#c7c7c3}.drawer-heatmap [data-level="2"]{background:#a2a29e}.drawer-heatmap [data-level="3"]{background:#7c7c78}.drawer-heatmap [data-level="4"]{background:#4e4e4a}.drawer-nav{padding:8px 0 16px}.drawer-nav button{display:flex;width:100%;align-items:center;gap:14px;min-height:58px;background:white;text-align:left}.drawer-nav button>svg{width:23px;height:23px}.drawer-nav span{flex:1;font-size:17px;font-weight:600}.drawer-nav small{font-size:15px;color:#8a8a8a}.drawer-modules{border-top:1px solid #eee;border-bottom:1px solid #eee;padding:12px 0;margin:0 0 12px}.drawer-module{display:flex;align-items:center;gap:12px;min-height:62px}.drawer-module>span:not(.role-badge){flex:1;font-size:16px;font-weight:600}.module-toggle{position:relative;width:52px;height:44px;background:transparent;flex-shrink:0;padding:0}.module-toggle:before{content:'';position:absolute;top:10px;left:4px;width:44px;height:25px;border-radius:20px;background:#d9d9d9}.module-toggle>span{position:absolute;top:13px;left:7px;width:19px;height:19px;border-radius:50%;background:white;transition:left .12s ease}.module-toggle[aria-checked=true]:before{background:#242424}.module-toggle[aria-checked=true]>span{left:26px}.drawer-tools{margin-top:12px;border-top:1px solid #eee;padding-top:10px}.personal-drawer .menu-row{font-size:14px}.personal-drawer .menu-row>svg{width:19px;height:19px}
#profile-form input{margin-bottom:14px}.local-form label{font-weight:400}.local-form .field-help{font-size:12px}
/* Local media actions and visible attachment result. */
.media-actions{display:grid;gap:4px;padding-top:8px}.media-actions button{display:flex;align-items:center;gap:14px;padding:14px;min-height:60px;background:#f7f7f7;border-radius:14px;text-align:left}.media-actions svg{width:23px;height:23px}.media-actions span{font-size:16px}.record-attachments>.record-attachments{margin:0}.capture-result .record-attachments{margin:12px 0;display:flex;gap:8px}.capture-result .record-attachments img{width:100%;max-width:240px;max-height:260px;object-fit:contain;background:#f5f5f5;border-radius:12px}.attachment-unavailable{display:flex;align-items:center;gap:8px;font-size:13px;padding:12px;background:#f2f2f2;border-radius:12px}.attachment-unavailable small{font-size:11px}.attachment-unavailable svg{width:20px}#attachment-error{font-size:12px;line-height:1.7;color:#a13629;margin:0 4px 8px}.attachment-draft{padding-top:4px}.attachment-chip button{min-width:44px;min-height:44px}.management-panel .toggle-line input{margin-top:2px}.management-panel .member-row{gap:10px}
@media(max-width:350px){#utility.management-panel{padding:20px 16px;width:calc(100vw - 24px)}#utility.management-panel .dialog-head{top:-20px}.drawer-counts strong{font-size:25px}.drawer-counts span{font-size:11px}.drawer-heatmap{gap:4px}.daily-module-card{padding:14px;min-height:148px}.daily-module-card>strong{font-size:25px}.module-card-title{font-size:14px}.daily-modules{gap:10px}}
@media(prefers-reduced-motion:reduce){.module-toggle>span{transition:none}}
#utility.management-panel{background:#fff}.personal-drawer .menu-row,.drawer-nav button{background:transparent}
body[data-page=memo] #view.content,body[data-page=knowledge] #view.content{padding:0!important}
.module-money>strong{white-space:nowrap;overflow-wrap:normal;font-size:22px}.daily-module-card.wide-money{grid-column:1/-1}.drawer-counts span,.drawer-nav small{color:#737373}
@media(max-width:350px){.module-money>strong{font-size:20px}}
