.mailbox-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.mailbox-tabs button{min-height:76px;text-align:left;white-space:normal;display:flex;flex-direction:column;gap:6px;justify-content:center}.mailbox-tabs button[aria-pressed=true]{background:#092d51;color:#fff;border-color:#092d51}.mailbox-tabs small{font-size:12px}.mailbox-message-list{padding:0;list-style:none}.mailbox-message-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #dce6ef}.mailbox-message-list li>div{display:grid;gap:6px}.mailbox-message-list small{color:#61768f}.mailbox-nav-count{display:block;font-size:11px;line-height:1.5;margin-top:4px}.housepost-card summary{display:flex;gap:16px;justify-content:space-between;cursor:pointer}.housepost-card summary strong,.housepost-card summary small{display:block}.housepost-card summary small{margin-top:8px;color:#61768f}.housepost-flags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.housepost-content{border-top:1px solid #dce6ef;margin-top:18px;padding-top:16px}.housepost-note{white-space:pre-wrap;overflow-wrap:anywhere}.housepost-files{flex-wrap:wrap}.housepost-content .button-row{flex-wrap:wrap}.housepost-files button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.mailbox-body [data-housepost-form] input,.mailbox-body [data-housepost-form] select,.mailbox-body [data-housepost-form] textarea{max-width:100%}@media(max-width:700px){.mailbox-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mailbox-tabs button{padding:12px;min-height:70px}.mailbox-message-list li,.housepost-card summary{flex-direction:column;align-items:stretch}.mailbox-message-list button{align-self:flex-start}.housepost-flags{font-size:12px}}

.mailbox-submenu{margin:6px 0 0 12px;padding-left:8px;border-left:1px solid #ffffff35}.mailbox-submenu[hidden]{display:none}.sidebar .nav .mailbox-submenu button{width:100%;font-size:13px;min-height:42px;padding:10px 12px;margin:3px 0}.mailbox-chevron{font-size:20px;line-height:1;transition:transform .15s}.mailbox-parent[aria-expanded=true] .mailbox-chevron{transform:rotate(180deg)}@media(min-width:751px){.sidebar .nav .mailbox-parent{display:flex;align-items:center;gap:10px;width:100%}.mailbox-parent .mobile-nav-label{flex:1;text-align:left}}@media(max-width:750px){[data-mailbox-menu]{display:contents}.mailbox-submenu,.mailbox-chevron{display:none!important}}

.housepost-attachment{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}.housepost-files:has([data-housepost-invoice]){flex-direction:column;align-items:flex-start}

.mailbox-body:has(.housepost-staff-tools) > .mail-contact:not(:has(form)){padding:16px 20px;margin-bottom:14px}
.mailbox-body:has(.housepost-staff-tools) > .mail-contact:not(:has(form)) p{margin:4px 0 0}
.housepost-staff-tools.panel{padding:20px;margin-bottom:22px}
.housepost-staff-tools > .button-row{justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.housepost-staff-tools h2,.housepost-history-header h3{margin:0}
.housepost-staff-tools > p{margin:6px 0 14px}
.housepost-staff-tools .form-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);margin:0;gap:12px}
.housepost-history-header{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 10px}
.housepost-history-header p{margin:0}
.housepost-staff-card.panel{padding:15px 20px}
.housepost-staff-card summary{display:grid;grid-template-columns:minmax(0,1fr) auto 1.25em;align-items:center;gap:12px}
.housepost-staff-card summary > span:first-child{overflow-wrap:anywhere}
.housepost-staff-card summary small{margin-top:4px}
.housepost-staff-card summary small strong{display:inline}
.housepost-staff-card .housepost-flags{justify-content:flex-end}
.housepost-staff-card .housepost-status-open{color:#794900;background:#fff0d5}
.housepost-staff-card .housepost-status-done{color:#176044;background:#e1f3e9}
.housepost-staff-card .housepost-status-read{color:#546679;background:#edf1f5}
.housepost-staff-card .housepost-chevron{text-align:center;line-height:1;font-size:18px;transition:transform .15s}
.housepost-staff-card[open] .housepost-chevron{transform:rotate(180deg)}
@media(max-width:700px){
 .housepost-staff-tools.panel,.housepost-staff-card.panel{padding:14px}
 .housepost-staff-tools .form-grid{grid-template-columns:1fr}
 .housepost-staff-card summary{grid-template-columns:minmax(0,1fr) 1.25em;gap:8px}
 .housepost-staff-card .housepost-flags{grid-column:1;justify-content:flex-start}
 .housepost-staff-card .housepost-chevron{grid-column:2;grid-row:1;align-self:start}
}

.housepost-scan{min-width:0;margin:0.9rem 0;padding:0.8rem 1rem;border:1px solid #cdddea;border-radius:10px}
.housepost-scan legend{font-weight:700;padding:0 0.25rem}
.housepost-scan p{margin:0 0 0.6rem}
.housepost-scan p[role]{margin:0.6rem 0 0}
.housepost-scan-pages{list-style:none;padding:0;margin:0 0 0.7rem;display:grid;gap:0.4rem}
.housepost-scan-pages li{display:flex;align-items:center;gap:0.65rem}
.housepost-scan-pages img{width:44px;height:54px;object-fit:contain;background:#edf4fa;border-radius:4px}
.housepost-scan-pages button{margin-left:auto}
.housepost-scan button{min-height:44px}

.housepost-delete{color:#a52525;border-color:#e1b7b7}
