/* Keep every carousel row's thumbnail, subject and date in separate columns. */
html body #mp-home .m-sec-body{max-height:none !important}
html body #mp-home .m-sec-body::after{display:none !important}
html body #mp-home .m-sec-body .lt ul.item>li{display:grid !important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px !important;min-height:48px;box-sizing:border-box}
html body #mp-home .m-sec-body .lt ul.item>li:has(>a.lt_thumb){grid-template-columns:56px minmax(0,1fr) auto}
html body #mp-home .m-sec-body .lt ul.item>li::after{display:none !important}
html body #mp-home .m-sec-body .lt ul.item>li>a.lt_thumb{float:none !important;margin:0 !important;width:56px;min-width:0;max-width:56px}
html body #mp-home .m-sec-body .lt .lt_thumb img{display:block;width:56px;height:36px;object-fit:cover;border-radius:4px}
html body #mp-home .m-sec-body .lt ul.item>li>a.lt_tit{min-width:0;max-width:100%;font-size:14px !important;line-height:22px !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-height:none}
html body #mp-home .m-sec-body .lt .lt_info{display:block;min-width:0;white-space:nowrap;font-size:11px !important;line-height:18px;align-self:center}
html body #mp-home .m-sec-body .lt .lt_date{font-size:11px !important;line-height:18px;white-space:nowrap}
html body #m-tab-nav{height:calc(56px + env(safe-area-inset-bottom));box-sizing:border-box}
html body:has(#m-tab-nav){padding-bottom:calc(62px + env(safe-area-inset-bottom)) !important}
html body #container:has(#m-tab-nav){padding-bottom:0 !important}
/* The shared server-open notification follows the same light/dark palette. */
html body #srvOpenModal .som-head{background:linear-gradient(135deg,#365F88,#172C48) !important}
html body #srvOpenModal .som-ok,html body #srvOpenModal .som-switch.on{background:#365F88 !important}
html[data-theme=dark] body #srvOpenModal .som-card{background:#172538 !important;color:#DBE8F6}
html[data-theme=dark] body #srvOpenModal .som-list{background:#172538 !important}
html[data-theme=dark] body #srvOpenModal :is(.som-foot,.som-tg){background:#172538 !important;border-color:#31465E !important}
html[data-theme=dark] body #srvOpenModal :is(.som-tg-label,.som-tg-note,.som-today){color:#BCCDE0 !important}

html[data-theme=dark] body #srvOpenModal .som-nm{color:#DBE8F6 !important;}
html[data-theme=dark] body #srvOpenModal .som-go{color:#92BCE5 !important;}
html[data-theme=dark] body #srvOpenModal .som-row{border-color:#31465E !important;}
html[data-theme=dark] body #srvOpenModal .som-today span{color:#BCCDE0 !important;}
html[data-theme=dark] body #mp-home .m-sec-hd{border-bottom-color:#31465E !important}
html[data-theme=dark] body #mp-home .m-sec-badge{background:#253F5B !important}
html body #mp-home .m-sec-body .lt_page{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;min-height:56px;box-sizing:border-box}
html body #mp-home .m-sec-body .lt_page button{display:inline-flex;align-items:center;justify-content:center;float:none;width:44px;height:44px;border-radius:6px}
html[data-theme=dark] body #m-tab-nav .mtab.on{color:#92BCE5 !important}
html body #m-tab-nav .mtab.on svg{filter:none !important}

/* Keep footer controls above the fixed mobile navigation. */
html body:has(#m-tab-nav) #ft{padding-bottom:calc(82px + env(safe-area-inset-bottom)) !important}
html body:has(#m-tab-nav) #top_btn{bottom:calc(66px + env(safe-area-inset-bottom)) !important}
html[data-theme=dark] body aside#visit{background:#172538 !important;color:#BCCDE0 !important;border-color:#31465E !important}
html[data-theme=dark] body aside#visit h2{color:#E5EDF6 !important;border-color:#31465E !important}
html[data-theme=dark] body aside#visit :is(dt,dd){color:#BCCDE0 !important}
html[data-theme=dark] body #ft .ft_info{color:#BCCDE0 !important}
html[data-theme=dark] body #ft .ft_cnt{border-color:#31465E !important}
html[data-theme=dark] body #ft #device_change{background:#253F5B !important;color:#DBE8F6 !important;border-color:#415A74 !important}

html[data-theme=dark] body aside#visit dl{background:#172538 !important;border-color:#31465E !important}
