/* Toura Passport Mobile Build 005X — standardized Member Inbox organization.
   Presentation/filtering only. Canonical Inbox queries, read state, action state,
   reservation truth, badge source and data writes remain owned by existing Inbox code. */
@media (max-width:760px){
  /* The page header already explains the surface; remove the redundant legacy sub-header. */
  body.tpw-inbox-open #memberSectionInbox .member-inbox-head{display:none!important}

  body.tpw-inbox-open #memberSectionInbox .member-inbox-stage{display:block!important}
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-controls{
    display:grid!important;gap:7px!important;margin:0 0 12px!important;padding:0 1px!important;
  }
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-tabs{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;
    padding:4px!important;border:1px solid #dce5e0!important;border-radius:11px!important;background:#eef3f0!important;
  }
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-tab{
    appearance:none!important;min-width:0!important;min-height:35px!important;padding:7px 6px!important;
    border:0!important;border-radius:8px!important;background:transparent!important;color:#63766d!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    font:850 10px/1.1 Arial,sans-serif!important;white-space:nowrap!important;box-shadow:none!important;
  }
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-tab b{
    min-width:18px!important;height:18px!important;padding:0 5px!important;border-radius:999px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:rgba(255,255,255,.72)!important;color:#536a5f!important;font-size:9px!important;font-weight:950!important;
  }
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-tab.is-active{
    background:#fff!important;color:#174a35!important;box-shadow:0 1px 5px rgba(24,61,47,.08)!important;
  }
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-tab.is-active b{background:#e7f2eb!important;color:#1d7049!important}
  body.tpw-inbox-open #memberSectionInbox .tp005x-inbox-total{
    justify-self:end!important;padding-right:3px!important;color:#7a8a83!important;font-size:9px!important;font-weight:850!important;
  }

  /* One familiar mail list instead of Current/History section stacks. */
  body.tpw-inbox-open #memberInboxMessages>.tp005x-inbox-list{
    display:block!important;overflow:hidden!important;border:1px solid #d8e2dc!important;border-radius:10px!important;
    background:rgba(255,255,255,.72)!important;
  }
  body.tpw-inbox-open #memberInboxMessages>.tp005x-inbox-list[hidden]{display:none!important}
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-v3711.tp005x-row-filter-hidden{display:none!important}
  body.tpw-inbox-open #memberInboxMessages>.tp005x-inbox-list .member-inbox-message.member-inbox-row-v3711{
    border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important;
  }
  body.tpw-inbox-open #memberInboxMessages>.tp005x-inbox-list .member-inbox-message.member-inbox-row-v3711:last-child{border-bottom:0!important}

  /* Canonical unread rows already exist; strengthen the standard unread affordance only. */
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-unread-v3711 .member-inbox-row-mark-v3711{
    width:8px!important;height:8px!important;background:#258255!important;border-color:#258255!important;
    box-shadow:0 0 0 3px rgba(37,130,85,.09)!important;
  }
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-unread-v3711 .member-inbox-row-sender-v3711 strong,
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-unread-v3711 .member-inbox-row-subjectline-v3711 h3{
    font-weight:950!important;
  }
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-read-v3711 .member-inbox-row-mark-v3711{
    background:transparent!important;box-shadow:none!important;
  }

  body.tpw-inbox-open #memberInboxMessages .tp005x-filter-empty{
    padding:26px 18px!important;border:1px dashed #cfdcd5!important;border-radius:10px!important;
    background:rgba(255,255,255,.6)!important;text-align:center!important;color:#71837a!important;
    font-size:11px!important;line-height:1.5!important;
  }

  /* 005Y: keep mailbox rows intentionally light: sender + title + date + action. */
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-status-v3711,
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-content-v3711>p{display:none!important}
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-subjectline-v3711{margin:1px 0 0!important}
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-v3711 .member-inbox-open{
    justify-self:start!important;margin-top:4px!important;padding:9px 13px!important;border:1px solid #196d49!important;
    border-radius:999px!important;background:#1b744d!important;color:#fff!important;box-shadow:0 3px 10px rgba(27,116,77,.14)!important;
    font-size:9px!important;font-weight:950!important;letter-spacing:.01em!important;line-height:1!important;
  }
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-v3711 .member-inbox-open:active{transform:translateY(1px)!important}

  /* Reservation/member message replaces the old internal technical note. */
  body.tpw-inbox-open .member-adjustment-next.tp005y-reservation-message{
    background:#f1f6f3!important;color:#415d50!important;border:1px solid #dce8e1!important;padding:14px 15px!important;
  }
  body.tpw-inbox-open .member-adjustment-next.tp005y-reservation-message>span{
    display:block!important;margin-bottom:6px!important;color:#2c6b4d!important;font-size:9px!important;font-weight:950!important;
    letter-spacing:.09em!important;text-transform:uppercase!important;
  }
  body.tpw-inbox-open .member-adjustment-next.tp005y-reservation-message>p{margin:0!important;color:#435f52!important;font-size:12px!important;line-height:1.55!important}
  body.tpw-inbox-open #memberInboxMessages .tp005x-filter-empty b{
    display:block!important;margin-bottom:4px!important;color:#274d3d!important;font-size:12px!important;
  }
}

/* 005Z — Inbox visual restraint + green cohesion. Presentation only. */
@media (max-width:760px){
  /* Sender identity uses the same Toura green throughout the mailbox. */
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-sender-v3711 strong,
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-unread-v3711 .member-inbox-row-sender-v3711 strong{
    color:#228256!important;
  }

  /* Quiet, tappable CTA pill instead of a dominant filled button. */
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-v3711 .member-inbox-open{
    margin-top:3px!important;
    padding:6px 10px!important;
    min-height:0!important;
    border:1px solid rgba(34,130,86,.30)!important;
    border-radius:999px!important;
    background:rgba(34,130,86,.09)!important;
    color:#1f7650!important;
    box-shadow:none!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.005em!important;
    line-height:1!important;
  }
  body.tpw-inbox-open #memberInboxMessages .member-inbox-row-v3711 .member-inbox-open:active{
    transform:none!important;
    background:rgba(34,130,86,.16)!important;
  }

  /* Reservation detail stays in the same green visual language as Inbox. */
  body.tpw-inbox-open .member-adjustment-sheet{
    border-color:#bddcc9!important;
  }
  body.tpw-inbox-open .member-adjustment-head .eyebrow{
    color:#2c9560!important;
  }
  body.tpw-inbox-open .member-adjustment-status{
    border:1px solid #c9e6d5!important;
    background:#eaf7ef!important;
    color:#1e704b!important;
  }
  body.tpw-inbox-open .member-adjustment-close{
    background:#eef7f2!important;
    color:#244f3c!important;
  }
}
