/* NTIMA OS v10.6.23 — explicit separate mobile dashboard layouts. */

/* Android: preserve the approved compact v10.6.21 dashboard exactly. */
@media (max-width:760px){
  html.wfms-platform-android .wfms-hero,
  body.wfms-platform-android .wfms-hero{padding:11px!important;gap:8px!important;margin-bottom:7px!important;border-radius:14px!important}
  html.wfms-platform-android .wfms-hero h1,
  body.wfms-platform-android .wfms-hero h1{font-size:16px!important;line-height:1.12!important}
  html.wfms-platform-android .wfms-hero p,
  body.wfms-platform-android .wfms-hero p{font-size:10.5px!important;line-height:1.25!important}
  html.wfms-platform-android .wfms-hero span,
  body.wfms-platform-android .wfms-hero span{font-size:10px!important;letter-spacing:2px!important}
  html.wfms-platform-android .wfms-hero .wfms-avatar,
  body.wfms-platform-android .wfms-hero .wfms-avatar{width:42px!important;height:42px!important;border-width:3px!important}
  html.wfms-platform-android .wfms-hero .wfms-id,
  body.wfms-platform-android .wfms-hero .wfms-id{padding:8px 10px!important;border-radius:10px!important}
  html.wfms-platform-android .wfms-hero .wfms-id small,
  body.wfms-platform-android .wfms-hero .wfms-id small{font-size:9px!important}
  html.wfms-platform-android .wfms-hero .wfms-id strong,
  body.wfms-platform-android .wfms-hero .wfms-id strong{font-size:16px!important;line-height:1.1!important}

  html.wfms-platform-android .wfms-grid.wfms-grid-4,
  body.wfms-platform-android .wfms-grid.wfms-grid-4{gap:6px!important}
  html.wfms-platform-android .wfms-card.mini,
  body.wfms-platform-android .wfms-card.mini{min-height:64px!important;padding:8px 7px!important;border-radius:12px!important;margin-bottom:0!important}
  html.wfms-platform-android .wfms-card.mini small,
  body.wfms-platform-android .wfms-card.mini small{font-size:8px!important;line-height:1.1!important;letter-spacing:.2px!important}
  html.wfms-platform-android .wfms-card.mini strong,
  body.wfms-platform-android .wfms-card.mini strong{font-size:12.5px!important;line-height:1.12!important;margin-top:4px!important}

  html.wfms-platform-android .wfms-president-message,
  body.wfms-platform-android .wfms-president-message{grid-template-columns:42px minmax(0,1fr)!important;gap:11px!important;margin:10px 0!important;padding:14px!important;border-radius:18px!important}
  html.wfms-platform-android .wfms-president-message::after,
  body.wfms-platform-android .wfms-president-message::after{right:-58px!important;bottom:-82px!important;width:160px!important;height:160px!important}
  html.wfms-platform-android .wfms-president-message-mark,
  body.wfms-platform-android .wfms-president-message-mark{width:42px!important;height:42px!important;flex-basis:42px!important;margin-right:0!important;border-radius:14px!important;font-size:31px!important;padding-top:8px!important}
  html.wfms-platform-android .wfms-president-message-kicker,
  body.wfms-platform-android .wfms-president-message-kicker{margin:0 0 4px!important;gap:2px!important}
  html.wfms-platform-android .wfms-president-message-kicker span,
  body.wfms-platform-android .wfms-president-message-kicker span{font-size:9px!important;letter-spacing:1.1px!important}
  html.wfms-platform-android .wfms-president-message-kicker time,
  body.wfms-platform-android .wfms-president-message-kicker time{font-size:10px!important}
  html.wfms-platform-android .wfms-president-message h2,
  body.wfms-platform-android .wfms-president-message h2{font-size:16px!important;line-height:1.15!important;margin:0 0 6px!important}
  html.wfms-platform-android .wfms-president-message p,
  body.wfms-platform-android .wfms-president-message p{font-size:11.5px!important;line-height:1.42!important}
  html.wfms-platform-android .wfms-president-message-footer,
  body.wfms-platform-android .wfms-president-message-footer{margin-top:9px!important;padding-top:8px!important;gap:2px!important}
  html.wfms-platform-android .wfms-president-message-footer strong,
  body.wfms-platform-android .wfms-president-message-footer strong{font-size:11px!important;line-height:1.1!important}
  html.wfms-platform-android .wfms-president-message-footer small,
  body.wfms-platform-android .wfms-president-message-footer small{font-size:9px!important;line-height:1.2!important}

  html.wfms-platform-android .wfms-card.wfms-info,
  body.wfms-platform-android .wfms-card.wfms-info{padding:11px 12px!important;margin-bottom:6px!important;border-radius:14px!important}
  html.wfms-platform-android .wfms-card.wfms-info h3,
  body.wfms-platform-android .wfms-card.wfms-info h3{font-size:15px!important;line-height:1.15!important;margin:0 0 6px!important}
  html.wfms-platform-android .wfms-card.wfms-info p,
  body.wfms-platform-android .wfms-card.wfms-info p{font-size:11px!important;line-height:1.35!important;margin:5px 0!important}
}

/* iPhone/iPad: explicitly restore the approved pre-Android-tightening layout. */
@media (max-width:760px){
  html.wfms-platform-ios .wfms-hero,
  body.wfms-platform-ios .wfms-hero{padding:13px!important;gap:9px!important;margin-bottom:8px!important;border-radius:15px!important}
  html.wfms-platform-ios .wfms-hero h1,
  body.wfms-platform-ios .wfms-hero h1{font-size:18px!important;line-height:1.14!important}
  html.wfms-platform-ios .wfms-hero p,
  body.wfms-platform-ios .wfms-hero p{font-size:11.5px!important;line-height:1.35!important}
  html.wfms-platform-ios .wfms-hero span,
  body.wfms-platform-ios .wfms-hero span{font-size:11px!important;letter-spacing:3px!important}
  html.wfms-platform-ios .wfms-hero .wfms-avatar,
  body.wfms-platform-ios .wfms-hero .wfms-avatar{width:46px!important;height:46px!important;border-width:5px!important}
  html.wfms-platform-ios .wfms-hero .wfms-id,
  body.wfms-platform-ios .wfms-hero .wfms-id{padding:9px 11px!important;border-radius:11px!important}
  html.wfms-platform-ios .wfms-hero .wfms-id small,
  body.wfms-platform-ios .wfms-hero .wfms-id small{font-size:11px!important}
  html.wfms-platform-ios .wfms-hero .wfms-id strong,
  body.wfms-platform-ios .wfms-hero .wfms-id strong{font-size:18px!important;line-height:1.2!important}

  html.wfms-platform-ios .wfms-dashboard-primary,
  body.wfms-platform-ios .wfms-dashboard-primary{gap:12px!important;margin-bottom:14px!important}
  html.wfms-platform-ios .wfms-dashboard-stats .wfms-grid-4,
  body.wfms-platform-ios .wfms-dashboard-stats .wfms-grid-4{gap:6px!important}
  html.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini,
  body.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini{min-height:78px!important;height:auto!important;padding:8px 4px!important;border-radius:12px!important;margin:0!important}
  html.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini small,
  body.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini small{font-size:8px!important;line-height:1.12!important;letter-spacing:.15px!important;margin:0 0 4px!important}
  html.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini strong,
  body.wfms-platform-ios .wfms-dashboard-stats .wfms-card.mini strong{font-size:10.5px!important;line-height:1.18!important;margin:0!important}

  html.wfms-platform-ios .wfms-president-message,
  body.wfms-platform-ios .wfms-president-message{grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important;margin:14px 0!important;padding:14px 15px 12px!important;border-radius:18px!important;min-height:0!important}
  html.wfms-platform-ios .wfms-president-message-mark,
  body.wfms-platform-ios .wfms-president-message-mark{width:42px!important;height:42px!important;flex-basis:42px!important;margin-right:0!important;border-radius:16px!important;font-size:31px!important;padding-top:0!important}
  html.wfms-platform-ios .wfms-president-message-kicker,
  body.wfms-platform-ios .wfms-president-message-kicker{margin:0 0 5px!important;gap:2px!important}
  html.wfms-platform-ios .wfms-president-message-kicker span,
  body.wfms-platform-ios .wfms-president-message-kicker span{font-size:11px!important;letter-spacing:1.15px!important}
  html.wfms-platform-ios .wfms-president-message h2,
  body.wfms-platform-ios .wfms-president-message h2{font-size:18px!important;line-height:1.16!important;margin:0 0 6px!important}
  html.wfms-platform-ios .wfms-president-message p,
  body.wfms-platform-ios .wfms-president-message p{font-size:12.5px!important;line-height:1.45!important}
  html.wfms-platform-ios .wfms-president-message-footer,
  body.wfms-platform-ios .wfms-president-message-footer{margin-top:8px!important;padding-top:7px!important;gap:1px!important}
  html.wfms-platform-ios .wfms-president-message-footer strong,
  body.wfms-platform-ios .wfms-president-message-footer strong{font-size:21px!important;line-height:1.05!important}
  html.wfms-platform-ios .wfms-president-message-footer small,
  body.wfms-platform-ios .wfms-president-message-footer small{font-size:10.5px!important;line-height:1.3!important}

  html.wfms-platform-ios .wfms-card.wfms-info,
  body.wfms-platform-ios .wfms-card.wfms-info{padding:11px!important;margin-bottom:8px!important;border-radius:13px!important}
  html.wfms-platform-ios .wfms-card.wfms-info h3,
  body.wfms-platform-ios .wfms-card.wfms-info h3{font-size:17px!important;line-height:1.2!important;margin:0 0 8px!important}
  html.wfms-platform-ios .wfms-card.wfms-info p,
  body.wfms-platform-ios .wfms-card.wfms-info p{font-size:12.5px!important;line-height:1.45!important;margin:7px 0!important}
}

/* iOS safety fallback: all iOS browsers use WebKit. */
@supports (-webkit-touch-callout:none){
  @media (max-width:760px){
    html:not(.wfms-platform-android) .wfms-hero{padding:13px!important;gap:9px!important;margin-bottom:8px!important;border-radius:15px!important}
    html:not(.wfms-platform-android) .wfms-hero h1{font-size:18px!important;line-height:1.14!important}
    html:not(.wfms-platform-android) .wfms-hero p{font-size:11.5px!important;line-height:1.35!important}
    html:not(.wfms-platform-android) .wfms-hero .wfms-avatar{width:46px!important;height:46px!important;border-width:5px!important}
    html:not(.wfms-platform-android) .wfms-hero .wfms-id{padding:9px 11px!important;border-radius:11px!important}
    html:not(.wfms-platform-android) .wfms-hero .wfms-id strong{font-size:18px!important}
    html:not(.wfms-platform-android) .wfms-dashboard-stats .wfms-card.mini{min-height:78px!important;padding:8px 4px!important}
    html:not(.wfms-platform-android) .wfms-president-message{gap:9px!important;margin:14px 0!important;padding:14px 15px 12px!important}
    html:not(.wfms-platform-android) .wfms-president-message h2{font-size:18px!important}
    html:not(.wfms-platform-android) .wfms-president-message p{font-size:12.5px!important;line-height:1.45!important}
    html:not(.wfms-platform-android) .wfms-president-message-footer{margin-top:8px!important;padding-top:7px!important}
    html:not(.wfms-platform-android) .wfms-card.wfms-info{padding:11px!important;margin-bottom:8px!important}
    html:not(.wfms-platform-android) .wfms-card.wfms-info h3{font-size:17px!important}
    html:not(.wfms-platform-android) .wfms-card.wfms-info p{font-size:12.5px!important;line-height:1.45!important;margin:7px 0!important}
  }
}
