.mobile-notifications[hidden] { display: none !important; }
.mobile-notifications { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--v4-line); border-radius: .75rem; background: var(--v4-surface-soft); }
.mobile-notifications p { margin: .25rem 0 0; font-size: .875rem; }
.mobile-notification-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bymob-hybrid .mobile-notification-actions button { min-height: 44px; }
.bymob-hybrid .v4-auth-main { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.bymob-hybrid .v4-attendance { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
@media (max-width: 479px) { .mobile-notification-actions { width: 100%; } .mobile-notification-actions .btn { flex: 1; } }

/* App-only shell. Desktop/menu offsets remain owned by the existing web layout. */
.v4-mobile-root, body.bni-v4.v4-mobile-app { min-width: 0; }
.v4-mobile-app { --v4-mobile-header-height: 56px; --v4-mobile-nav-height: 72px; font-family: Montserrat, sans-serif; }
.v4-mobile-app .btn,
.v4-mobile-app button,
.v4-mobile-app .form-control,
.v4-mobile-app .form-select { min-height: 44px; }
.v4-mobile-app input,
.v4-mobile-app select,
.v4-mobile-app textarea { font-size: 16px; }
.v4-mobile-app .v4-mobile-content .form-control,
.v4-mobile-app .v4-mobile-content .form-select { font-size: 16px; }
.v4-mobile-header { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 12px; min-height: var(--v4-mobile-header-height); padding: 5px 16px; border-bottom: 1px solid var(--v4-line); background: var(--v4-surface); }
.v4-mobile-brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--v4-forest-950) !important; font-size: 17px; font-weight: 700; text-decoration: none; }
.v4-mobile-brand .v4-brand-mark { width: 26px; height: 26px; }
.v4-mobile-bni-return[hidden] { display: none !important; }
.v4-mobile-bni-return a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; color: var(--v4-brand); font-size: 11px; font-weight: 700; text-decoration: none; }
.v4-mobile-bni-return svg { width: 17px; height: 17px; }
.v4-mobile-header-context { display: grid; flex: 1; min-width: 0; gap: 2px; text-align: right; }
.v4-mobile-header-context span { overflow: hidden; color: var(--v4-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.v4-mobile-header-context strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v4-mobile-notification-link { width: 44px; min-height: 44px; flex-basis: 44px; }
.v4-mobile-account-link { display: grid; width: 44px; min-height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: var(--v4-brand-soft); color: var(--v4-brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.v4-mobile-content { width: 100%; max-width: 900px; min-height: calc(100vh - var(--v4-mobile-header-height)); margin: 0 auto; padding: 12px 16px calc(var(--v4-mobile-nav-height) + 24px + env(safe-area-inset-bottom)); }
.v4-mobile-content:focus { outline: none; }
.v4-mobile-header,
.v4-mobile-content { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
.v4-mobile-navigation { position: fixed; z-index: 1035; bottom: 0; left: 0; right: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-height: var(--v4-mobile-nav-height); padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top: 1px solid var(--v4-line); background: var(--v4-surface); box-shadow: 0 -4px 16px rgba(24, 42, 59, .04); }
.v4-mobile-app.v4-mobile-keyboard-open { --v4-mobile-nav-height: 0px; }
.v4-mobile-app.v4-mobile-keyboard-open .v4-mobile-navigation { display: none; }
.v4-mobile-app [data-market-address-options] { overscroll-behavior: contain; }
.bni-v4 .v4-mobile-tab { display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 4px 2px; border-radius: 12px; color: var(--v4-muted); font-size: 10px; font-weight: 600; text-decoration: none; }
.v4-mobile-tab svg { width: 21px; height: 21px; }
.bni-v4 .v4-mobile-tab.is-active { background: var(--v4-brand-soft); color: var(--v4-brand); font-weight: 700; }
.v4-mobile-tab-short { display: none; }
@media (max-width: 419px) {
    [data-bni-shell="compact"] [data-v4-mobile-tab="service"] > span:not(.v4-mobile-tab-icon, .v4-mobile-tab-short) { display: none; }
    [data-bni-shell="compact"] .v4-mobile-tab-short { display: inline; }
}
.v4-mobile-tab-icon { position: relative; display: inline-flex; }
.v4-mobile-nav-badge { position: absolute; top: -6px; right: -11px; min-width: 17px; padding: 1px 4px; border-radius: 999px; background: var(--v4-red); color: #fff; font-size: 9px; }
.v4-mobile-nav-badge[hidden] { display: none; }
.v4-mobile-notification-settings { margin-top: 20px; scroll-margin-top: 84px; }
.v4-mobile-notification-settings .mobile-notifications { margin: 0; }
.v4-mobile-app #mobile-notifications { scroll-margin-top: 84px; }
.v4-mobile-app .v4-toast-region { bottom: calc(var(--v4-mobile-nav-height) + 16px + env(safe-area-inset-bottom)); }
.v4-mobile-section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.v4-mobile-section-header h1 { margin: 4px 0 0; font-size: 23px; font-weight: 700; line-height: 1.3; }
.v4-mobile-kicker { display: block; color: var(--v4-muted); font-size: 11px; font-weight: 600; }
.v4-mobile-icon-button { display: grid; width: 44px; min-height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 1px solid var(--v4-line-strong); border-radius: 13px; background: #fff; color: var(--v4-forest-950); }
.v4-mobile-icon-button svg { width: 19px; height: 19px; }
.v4-mobile-period { padding: 17px 14px; border: 1px solid var(--v4-line); border-radius: 18px; background: var(--v4-surface); }
.v4-mobile-period-heading { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.v4-mobile-period-heading h2 { margin: 0; font-size: 13px; font-weight: 700; }
.v4-mobile-period-heading > span { color: var(--v4-muted); font-size: 11px; }
.v4-mobile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v4-mobile-metrics article { display: grid; gap: 7px; }
.v4-mobile-metrics article + article { padding-left: 10px; border-left: 1px solid var(--v4-line); }
.v4-mobile-metrics strong { color: var(--v4-forest-950); font-size: 28px; font-weight: 700; line-height: 1; }
.v4-mobile-metrics span { color: var(--v4-muted); font-size: 11px; }
.v4-mobile-period-note { margin: 14px 0 0; color: var(--v4-muted); font-size: 10px; line-height: 1.5; }
.bni-v4 .v4-mobile-attention { display: flex; align-items: center; gap: 12px; min-height: 82px; margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--v4-brand-soft); color: var(--v4-brand); text-decoration: none; }
.v4-mobile-attention-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .55); }
.v4-mobile-attention > span:nth-child(2) { display: flex; flex: 1; align-items: center; gap: 10px; }
.v4-mobile-attention strong { font-size: 26px; line-height: 1; }
.v4-mobile-attention > span:nth-child(2) > span { max-width: 160px; font-size: 12px; font-weight: 600; }
.v4-mobile-attention > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.v4-mobile-load-status { margin: 12px 2px 20px; color: var(--v4-muted); font-size: 11px; line-height: 1.6; }
.v4-mobile-dashboard.is-error .v4-mobile-load-status { color: var(--v4-red); }
.v4-mobile-shortcuts { display: grid; gap: 12px; }
.bni-v4 .v4-mobile-shortcut { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 16px; border: 1px solid var(--v4-line); border-radius: 18px; background: var(--v4-surface); color: var(--v4-ink); text-decoration: none; }
.v4-mobile-shortcut > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.v4-mobile-shortcut > span { display: grid; flex: 1; min-width: 0; gap: 5px; }
.v4-mobile-shortcut strong { font-size: 14px; }
.v4-mobile-shortcut small { color: var(--v4-muted); font-size: 11px; line-height: 1.5; }
.v4-mobile-shortcut > svg:last-child { width: 17px; height: 17px; flex-basis: 17px; }
.bni-v4 .v4-mobile-shortcut.is-primary { border-color: var(--v4-forest-950); background: var(--v4-forest-950); color: #fff; }
.v4-mobile-shortcut.is-primary small { color: #d3e3d9; }
.v4-mobile-identity-card { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 20px 16px; border: 1px solid var(--v4-line); border-radius: 18px; background: #fff; }
.v4-mobile-identity-card > div { min-width: 0; }
.v4-mobile-identity-avatar { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 17px; background: var(--v4-brand-soft); color: var(--v4-brand); font-size: 18px; font-weight: 700; }
.v4-mobile-identity-card h1 { margin: 4px 0; overflow-wrap: anywhere; font-size: 18px; font-weight: 700; line-height: 1.4; }
.v4-mobile-identity-card p { margin: 0; overflow-wrap: anywhere; color: var(--v4-muted); font-size: 12px; }
.v4-mobile-account-company { padding: 17px; border: 1px solid var(--v4-line); border-radius: 18px; background: #fff; }
.v4-mobile-account-company h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.v4-mobile-account-company > strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.v4-mobile-account-company > p { margin: 6px 0 14px; color: var(--v4-muted); font-size: 11px; line-height: 1.5; }
.v4-mobile-account-company .btn { margin-top: 14px; }
.v4-mobile-account-team { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.v4-mobile-account-team svg { width: 16px; height: 16px; color: var(--v4-muted); }
.v4-mobile-account-actions { display: grid; gap: 1px; overflow: hidden; margin-top: 20px; border: 1px solid var(--v4-line); border-radius: 16px; background: var(--v4-line); }
.bni-v4 .v4-mobile-account-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 16px; border: 0; background: #fff; color: var(--v4-ink); font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; }
.v4-mobile-account-action > svg { width: 19px; height: 19px; flex: 0 0 19px; }
.v4-mobile-account-action > span { flex: 1; }
.v4-mobile-account-action > svg:last-child:not(:first-child) { width: 15px; height: 15px; flex-basis: 15px; }
.bni-v4 .v4-mobile-account-action.is-logout { margin-top: 16px; border: 1px solid var(--v4-line); border-radius: 16px; color: var(--v4-red); }
.v4-mobile-help { margin-top: 16px; padding: 0 16px; border: 1px solid var(--v4-line); border-radius: 16px; background: #fff; }
.v4-mobile-help summary { display: flex; align-items: center; gap: 12px; min-height: 58px; font-size: 13px; font-weight: 600; cursor: pointer; }
.v4-mobile-help summary svg { width: 19px; height: 19px; }
.v4-mobile-help p { color: var(--v4-muted); font-size: 12px; line-height: 1.65; }
.v4-mobile-auth .v4-auth-story { display: none; }
.v4-mobile-auth .v4-auth-shell { display: block; min-height: 100vh; }
.v4-mobile-auth .v4-auth-main { max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.v4-mobile-auth .v4-auth-mobile-brand { display: inline-flex; }
.v4-mobile-app .v4-attendance { padding: 0; }
.v4-mobile-app .v4-attendance-header { margin-bottom: 16px; }
.v4-mobile-app .v4-attendance-header h1 { font-size: 22px; }
.v4-mobile-app .v4-attendance-tabs { overflow-x: auto; scrollbar-width: thin; }
.v4-mobile-app .v4-attendance-tab { flex: 0 0 auto; min-height: 44px; }
.v4-mobile-app .v4-attendance-timeline-copy p { font-size: 12px; }
.v4-mobile-site .v4-section-heading h1 { margin: 4px 0 8px; font-size: 23px; font-weight: 700; }
.v4-mobile-site .v4-section-heading p { color: var(--v4-muted); font-size: 12px; line-height: 1.6; }
.v4-mobile-site #mobile-site-name { font-size: 17px; font-weight: 700; }
.v4-mobile-site-web-note { margin-top: 20px; color: var(--v4-muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 359px) {
    .v4-mobile-content { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
    .v4-mobile-header { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
    .v4-mobile-brand { font-size: 15px; }
    .v4-mobile-tab { font-size: 9px !important; }
    .v4-mobile-period { padding-right: 11px; padding-left: 11px; }
    .v4-mobile-metrics span { font-size: 10px; }
}
@media (min-width: 768px) {
    .v4-mobile-navigation { padding-right: max(12px, calc((100vw - 720px) / 2)); padding-left: max(12px, calc((100vw - 720px) / 2)); }
    .v4-mobile-dashboard { max-width: 640px; margin: 0 auto; }
    .v4-mobile-account { max-width: 600px; margin: 0 auto; }
}
