/* I-Port clean layout: more air, fewer lines, bigger targets. Loaded last. */
.mobile-journal{--ih-gap:28px}
/* home */
.mobile-journal .ih-head{padding-bottom:52px!important}
.mobile-journal .ih-body{margin-top:-40px!important}
.mobile-journal #page .ih-wealth{padding:20px 20px 8px!important;margin:0 0 22px!important}
.mobile-journal #page .ih-wealth .mj-section-line span{font-size:14px;color:var(--mj-muted)}
.mobile-journal #page .ih-wealth .mj-hero-number{margin:4px 0 16px!important;color:var(--mj-text)}
.ih-bar{display:flex;gap:3px;height:10px;border-radius:6px;overflow:hidden;margin:0 0 12px}
.ih-bar i{display:block;min-width:4px;height:100%}
.ih-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:var(--mj-muted)}
.ih-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ih-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.ih-legend b{color:var(--mj-text);font-weight:600}
.ih-empty{margin:0 0 6px;font-size:14px;line-height:1.6;color:var(--mj-muted)}
.mobile-journal #page .ih-more{display:flex!important;align-items:center;justify-content:space-between;width:100%;margin-top:14px;padding:14px 0 10px!important;border:0!important;border-top:1px solid var(--mj-border)!important;border-radius:0!important;background:none!important;color:var(--mj-text)!important;font:600 15px 'Investmin Thai',sans-serif;min-height:48px}
.mobile-journal #page .ih-more svg{width:18px;height:18px;color:var(--mj-muted)}
.ih-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 var(--ih-gap)}
.mobile-journal #page .ih-act{display:flex!important;flex-direction:column;align-items:center;gap:8px;padding:0!important;border:0!important;background:none!important;color:var(--mj-text)!important;min-height:76px;box-shadow:none!important}
.mobile-journal #page .ih-act>span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:var(--mj-card);color:var(--ip-accent,#2ee59d)}
.mobile-journal #page .ih-act:first-child>span{background:var(--ip-accent,#2ee59d);color:#04140d}
.mobile-journal #page .ih-act svg{width:24px;height:24px}
.mobile-journal #page .ih-act small{font-size:12.5px;line-height:1.2;color:var(--mj-text);text-align:center}
.ih-net{margin:4px 0 16px}
.ih-net>strong{display:block;font-size:26px;font-weight:700;line-height:1.3}
.ih-net>strong small{font-size:15px;color:var(--mj-muted)}
.ih-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.ih-mini span{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:14px;background:var(--mj-card)}
.ih-mini small{font-size:12px;color:var(--mj-muted)}
.ih-mini b{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-journal #page .mj-home-body .mj-section{margin-top:0!important;margin-bottom:var(--ih-gap)!important}
.mobile-journal #page .mj-home-body .mj-section-line h2{font-size:19px}
.mobile-journal #page .bk-banner,.mobile-journal #page .st-note,.mobile-journal #page .mj-notice{margin:0 0 18px!important}
/* rows: one line, larger target */
.mobile-journal #page .mj-menu-row{min-height:60px;padding-top:12px!important;padding-bottom:12px!important;gap:14px}
.mobile-journal #page .mj-menu-row small{font-size:13px;margin-top:2px}
.mobile-journal #page .mj-menu-row .ih-val{font-style:normal;color:var(--mj-muted);font-size:14px;margin-left:auto;margin-right:4px}
.mobile-journal #page .mj-section>h2{margin-bottom:6px!important}
/* halal tab */
.mobile-journal #page .mj-tools-content{padding-top:22px!important}
.mobile-journal #page .mj-tools-content .mj-feature-grid{margin-bottom:var(--ih-gap)!important;gap:12px}
.mobile-journal #page .mj-tools-content .mj-feature{min-height:132px;padding:18px!important}
.mobile-journal #page .mj-tools-content .mj-section{margin-bottom:var(--ih-gap)!important}
/* me tab */
.mobile-journal .ih-me-head{padding-bottom:44px!important}
.mobile-journal .ih-me-head .mj-title-line{margin:0!important}
.mobile-journal #page .mj-me-body{padding-top:0!important}
.mobile-journal #page .mj-me-body .ip-member-card{margin:0 0 14px!important}
.mobile-journal #page .mj-me-body .bk-card{margin:0 0 14px!important}
.mobile-journal #page .mj-me-body .mj-section{margin-bottom:var(--ih-gap)!important}
.mobile-journal #page .mj-local-label{margin-top:4px!important;opacity:.8}
@media(min-width:768px){.ih-actions{max-width:480px}}
.mobile-journal #page .ih-income .ij-chart{padding:0!important;margin:14px 0 0!important;background:none!important;border:0!important;box-shadow:none!important}
.mobile-journal #page .ih-income .ij-chart .section-head{display:none!important}
.mobile-journal #page .ih-income .mj-filter-line{margin:0!important}
.mobile-journal #page .ih-fx{display:flex!important;align-items:center;gap:8px;width:100%;margin:2px 0 0;padding:10px 12px!important;border:0!important;border-radius:12px!important;background:color-mix(in srgb,#f5c24b 14%,transparent)!important;color:var(--mj-text)!important;font:500 13px 'Investmin Thai',sans-serif;text-align:left}
.mobile-journal #page .ih-fx svg{width:16px;height:16px;flex:none;color:#f5c24b}
/* silver monthly banner on Me, in normal flow with even spacing */
.mobile-journal #page .mj-me-body .mj-personal-banner{top:0!important;margin:0 0 var(--ih-gap)!important;min-height:72px;border-radius:18px!important}
/* inputs never touch the button under them */
.ip-form .ip-err:empty{display:none}
.mobile-journal #dialog .ip-form .za-primary,.mobile-journal #page .ip-form .za-primary{margin-top:18px!important}
.mobile-journal #dialog-content label+button,.mobile-journal #dialog-content input+button,.mobile-journal #dialog-content p[role=alert]:empty+button,.mobile-journal #dialog-content .mj-date-inputs+p+button{margin-top:18px!important}
.mobile-journal #dialog-content .ip-field input{margin-top:8px}
