.messages-page { padding-block: clamp(18px, 4vw, 50px); min-height: 62vh; }
.messages-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.messages-heading h1, .messages-panel h2 { margin: 0; line-height: 1.3; }
.messages-heading h1 { font-size: clamp(25px, 3vw, 37px); }
.messages-panel h2 { font-size: 18px; }
.messages-heading a { color: #176acb; font-weight: 700; }
.messages-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.messages-panel { min-width: 0; padding: clamp(14px, 2.8vw, 24px); border: 1px solid #e1e9f4; border-radius: 14px; background: white; }
#customerMessages .messages-panel { max-width: 760px; }
.messages-panel p { overflow-wrap: anywhere; }
.messages-panel form:not([hidden]) { display: grid; gap: 8px; margin-top: 12px; }
.messages-panel label { font-weight: 650; }
.messages-panel input, .messages-panel textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #c8d6e8; border-radius: 8px; color: #14294a; background: white; }
.messages-panel textarea { resize: vertical; min-height: 90px; }
.messages-primary, .messages-secondary {
 min-height: 42px; width: fit-content; padding: 6px 14px; border-radius: 8px;
 border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer;
}
.messages-primary { color: white; background: #176acb; }
.messages-secondary { color: #175497; border-color: #d9e7f7; background: #edf5ff; }
.messages-primary:disabled, .messages-secondary:disabled { opacity: .55; cursor: default; }
.messages-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.messages-actions input { flex: 1 1 180px; }
.messages-status { min-height: 1.4em; color: #254c78; }
.message-key { margin-bottom: 14px; }
.message-history { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.message-history:empty { display: none; }
.message-history li { padding: 9px 12px; border-radius: 10px; background: #f1f5fb; min-width: 0; }
.message-history li.staff { background: #eaf7f3; }
.message-history time { padding-left: 8px; color: #425b75; font-size: 12px; }
.message-history p { margin: 4px 0 0; white-space: pre-wrap; }
.inbox-list { display: grid; gap: 7px; max-height: 55dvh; overflow: auto; }
.inbox-list button { display: grid; text-align: left; gap: 2px; padding: 8px 10px; min-height: 50px; font: inherit; color: #14294a; border: 1px solid #dbe7f5; border-radius: 8px; background: #f4f8fc; cursor: pointer; overflow-wrap: anywhere; }
.inbox-list button[aria-pressed=true] { border-color: #287cff; background: #eaf3ff; }
.inbox-list button small { color: #425b75; }
.support-inbox { background: #f7faff; }
@media (max-width: 700px) {
 .messages-layout { grid-template-columns: minmax(0, 1fr); }
 .inbox-list { max-height: 34dvh; }
}
@media (min-width: 901px) and (max-width: 1280px) {
 .site-header .nav { gap: clamp(8px, 1.2vw, 16px); }
 .site-header .nav-links { min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: 4px 10px; font-size: 12px; line-height: 1.25; }
 .site-header .nav-cta { padding-inline: 11px; white-space: nowrap; flex-shrink: 0; }
 .site-header .nav-cta span { margin-left: 3px; }
}
