/* Shared styling for the everyday Espast pages. */
body.app-page { --primary-gradient: linear-gradient(135deg, #176f74, #176f74); --text-main: #214c49; --text-muted: #6e8379; --bg-main: #f6f9f7; --card-shadow: none; background: #f6f9f7; color: #214c49; }
body.app-page > .main-content, body.app-page > .container { max-width: 1280px; padding: 40px; }
.app-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 28px; }
.app-kicker { color: #628375; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.6; margin: 0 0 12px; }
.app-heading h1 { color: #214c49; font-size: 32px; line-height: 1.25; letter-spacing: -0.9px; margin: 0 0 10px; overflow-wrap: anywhere; }
.app-description { color: #6d8478; font-size: 14px; line-height: 1.7; margin: 0; }
.app-heading > a { flex-shrink: 0; }
.app-card { background: #fff; border: 1px solid #dce7df; border-radius: 18px; padding: 24px; min-width: 0; }
.app-button, .app-page .btn-primary, .app-page .btn-modern, .app-page .btn-approve, .app-page .btn-secondary-modern, .app-page .btn-reject, .app-page .btn-view { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 16px; border: 1px solid #176f74; border-radius: 10px; background: #176f74; color: white; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: none; cursor: pointer; transition: background-color .15s ease; }
.app-button:hover, .app-page .btn-primary:hover, .app-page .btn-modern:hover, .app-page .btn-approve:hover { background: #125c61; transform: none; box-shadow: none; }
.app-button-secondary, .app-page .btn-secondary-modern, .app-page .btn-view { background: #fff; border-color: #cfdfd4; color: #3d7060; }
.app-button-secondary:hover, .app-page .btn-secondary-modern:hover, .app-page .btn-view:hover { background: #eaf3ec; transform: none; }
.app-page .btn-reject { background: #fff; color: #a4584c; border-color: #e2cdc6; }
.app-page svg { flex-shrink: 0; }
.app-button svg, .app-icon svg, .dashboard-explore svg { width: 20px; height: 20px; }
.app-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dbe8de; border-radius: 12px; color: #59856e; background: #f1f7f1; flex-shrink: 0; }
.app-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #4b7c64; background: #e6f1e7; border-radius: 20px; padding: 7px 11px; }
.app-status svg { width: 14px; height: 14px; }
.app-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-section-heading h2 { font-size: 18px; letter-spacing: -.3px; margin: 0; }
.app-section-heading a, .app-text-link { color: #397c67; font-size: 12px; text-underline-offset: 3px; }
.app-muted { font-size: 11px; color: #73877a; }
.app-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 3px 7px; border-radius: 6px; background: #e7f0e6; color: #477159; font-size: 11px; }
.app-empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; border-radius: 20px; background: #eaf3e9; color: #648d71; }
.app-empty-icon svg { width: 28px; height: 28px; }
.app-page .empty-state, .app-page .chat-placeholder { color: #7b8d7e; }
.app-page .empty-state h3, .app-page .chat-placeholder h3 { font-size: 21px; color: #496d54; letter-spacing: -.4px; margin: 0 0 12px; }
.app-page .empty-state p, .app-page .chat-placeholder p { font-size: 13px; line-height: 1.8; max-width: 330px; margin: 0 auto 22px; }
.app-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.app-page [hidden] { display: none !important; }
/* Dashboard */
.dashboard-shared-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 32px; background: linear-gradient(110deg, #eaf3ec, #f1f6ec); border: 1px solid #d9e7db; border-radius: 22px; margin-bottom: 24px; }
.dashboard-shared-main { min-width: 0; }
.dashboard-shared-main h2 { font-size: 29px; letter-spacing: -.7px; margin: 18px 0 10px; overflow-wrap: anywhere; }
.dashboard-shared-main p { font-size: 14px; color: #728875; line-height: 1.8; margin: 0 0 22px; }
.dashboard-shared-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-pair { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; padding: 12px; }
.dashboard-person { display: grid; justify-items: center; gap: 10px; max-width: 100px; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.dashboard-avatar { display: grid; place-items: center; width: 76px; height: 76px; border: 4px solid white; border-radius: 50%; background: #dcebe0; color: #578065; font-size: 26px; overflow: hidden; }
.dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-pair-heart { font-size: 28px; color: #7fa087; padding-top: 22px; }
.dashboard-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.dashboard-summary { display: block; border: 1px solid #dce7df; background: #fff; padding: 22px; border-radius: 16px; color: inherit; text-decoration: none; }
.dashboard-summary:hover { border-color: #a9cab7; background: #fbfdfb; }
.dashboard-summary strong { float: right; font-size: 29px; line-height: 42px; font-weight: 600; }
.dashboard-summary h3 { font-size: 14px; margin: 20px 0 8px; }
.dashboard-summary p { font-size: 12px; line-height: 1.7; color: #7a8b7d; margin: 0 0 20px; }
.summary-link { font-size: 11px; color: #397c67; }
.dashboard-bottom-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.dashboard-activity-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid #e5ede5; text-decoration: none; color: inherit; }
.dashboard-activity-row > div { flex: 1; min-width: 0; }
.dashboard-activity-row h3 { font-size: 13px; margin: 0 0 7px; }
.dashboard-activity-row p { font-size: 12px; color: #7b8b7c; margin: 0; }
.dashboard-caught-up { text-align: center; padding: 26px 10px; }
.dashboard-caught-up h3 { font-size: 16px; margin: 16px 0 8px; }
.dashboard-caught-up p { font-size: 12px; line-height: 1.8; color: #7b8b7c; }
.dashboard-explore { background: #f0f6ef; }
.dashboard-explore h2 { font-size: 22px; letter-spacing: -.4px; margin: 0 0 12px; }
.dashboard-explore > p:not(.app-kicker) { color: #7b8b7c; font-size: 12px; line-height: 1.8; margin: 0 0 20px; }
.dashboard-explore > a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #426e59; font-size: 13px; padding: 14px 0; border-top: 1px solid #dbe7d9; }
.dashboard-explore > a > span:last-child { margin-left: auto; }
/* Feed */
.feed-page .app-heading { max-width: 960px; margin-left: auto; margin-right: auto; }
.feed-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 28px; max-width: 960px; margin: 0 auto; }
.feed-page .feed-layout > .container { padding: 0; margin: 0; border: 0; box-shadow: none; background: transparent; min-width: 0; }
.feed-page .posts-container { display: grid; gap: 22px; }
.feed-page .post-card { border: 1px solid #dce7df; border-radius: 18px; background: #fff; box-shadow: none; margin: 0; overflow: hidden; }
.feed-page .post-card:hover { transform: none; box-shadow: none; }
.feed-page .post-header { padding: 20px; gap: 12px; }
.feed-page .post-author-pic { width: 42px; height: 42px; margin: 0; border-radius: 14px; flex-shrink: 0; }
.feed-page .post-author-name a { color: #355b47 !important; font-size: 13px; }
.feed-page .post-date { font-size: 11px; color: #81917f; line-height: 1.7; }
.feed-page .post-content { padding: 0 20px 18px; }
.feed-page .post-text { font-size: 14px; line-height: 1.85; color: #47634e; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-page .post-image { border-radius: 12px; overflow: hidden; }
.feed-page .post-footer { padding: 0 16px; }
.feed-page .post-actions { padding: 10px 0; gap: 6px; border-top: 1px solid #e7eee5; }
.feed-page .post-action-btn { min-height: 44px; padding: 8px 6px; gap: 6px; color: #66816b; background: transparent; border: 0; border-radius: 8px; font-size: 12px; flex-direction: row; }
.feed-page .post-action-btn svg { width: 16px; height: 16px; }
.feed-page .post-action-btn strong { color: #66816b !important; font-size: 11px !important; margin-left: 0 !important; }
.feed-page .post-action-btn:hover { background: #edf5ec; }
.feed-page .post-action-btn.cherished { color: #b75c61; }
.feed-page .empty-state { background: #fff; border: 1px dashed #cddfce; border-radius: 18px; padding: 65px 24px; }
.feed-aside { background: #edf5ec; }
.feed-aside h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.5px; margin: 22px 0 12px; }
.feed-aside p { font-size: 12px; color: #71866f; line-height: 1.8; margin: 0 0 22px; }
.feed-aside .app-button { width: 100%; }
.feed-aside .app-text-link { display: block; text-align: center; margin-top: 18px; }
.feed-page #comment-modal { padding: 16px; align-items: center; justify-content: center; background: #173d3b88 !important; backdrop-filter: blur(5px); }
.feed-page #comment-modal .modal-content { margin: 0 !important; padding: 28px !important; border-radius: 18px !important; width: 100% !important; max-height: calc(100dvh - 32px) !important; }
.feed-page #comment-modal .close-btn { border: 0; background: transparent; color: #617e6b; min-height: 40px; min-width: 40px; }
.feed-page #comment-modal input { min-width: 0; font-size: 16px; border-radius: 9px; border: 1px solid #ccdcca; }
/* Approval requests */
.approvals-page .fade-in { animation: none; }
.approval-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.approval-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; min-height: 44px; border: 1px solid #d7e4d8; background: #fff; border-radius: 10px; color: #6c8270; font-size: 12px; cursor: pointer; }
.approval-filters button.active { background: #e3f0e5; border-color: #bed9c5; color: #3f7255; font-weight: 600; }
.approval-filters span { background: #f3f7f0; padding: 2px 6px; border-radius: 5px; font-size: 10px; }
.approvals-page .fade-in > .modern-card { padding: 0; border: 0; background: none; box-shadow: none; }
.approvals-page .fade-in > .modern-card > h4 { display: none; }
.approvals-page .approval-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.approvals-page .approval-card { display: flex; flex-direction: column; padding: 0; border: 1px solid #dce7dd; border-radius: 17px; background: white; box-shadow: none; margin: 0; min-width: 0; overflow: hidden; }
.approvals-page .approval-card:hover { transform: none; box-shadow: none; }
.approvals-page .approval-header { padding: 18px 20px; background: #f9fcf7; border-bottom: 1px solid #e6eee2; gap: 10px; flex-wrap: wrap; }
.approvals-page .approval-type { color: #4b6f53; font-size: 13px; }
.approvals-page .approval-type svg { width: 17px; height: 17px; }
.approvals-page .approval-badge { font-size: 9px; letter-spacing: .7px; padding: 5px 8px; border-radius: 5px; }
.approvals-page .badge-incoming { color: #876c2a; background: #fbf3df; border: 1px solid #eee0b9; }
.approvals-page .badge-outgoing { color: #6d8370; background: #edf4e9; border: 1px solid #d9e5d2; }
.approvals-page .approval-body { padding: 22px 20px; }
.approvals-page .approval-details { color: #738470; font-size: 13px; line-height: 1.85; margin: 0; overflow-wrap: anywhere; }
.approvals-page .approval-details strong { color: #45694d; }
.approvals-page .approval-details > span { color: #7c8c77; font-size: 12px; }
.approvals-page .approval-actions { padding: 14px 20px; margin: 0; border-top: 1px solid #e7eee3; background: #fff; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.approvals-page .approval-actions:empty { display: none; }
.approvals-page .approval-body .approval-actions { margin: 18px -20px -22px; }
.approvals-page .approval-actions form { display: inline-flex; margin: 0; }
.approvals-page .approval-actions a, .approvals-page .approval-actions button { font-size: 12px; }
.approvals-page .empty-state-modern { border: 1px dashed #cddfca; background: #fff; border-radius: 18px; padding: 70px 24px; box-shadow: none; }
.approvals-page .empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: #e9f4e7; color: #63926c; opacity: 1; font-size: 28px; margin-bottom: 20px; }
.approvals-page .empty-state-modern h3 { font-size: 23px; letter-spacing: -.4px; margin: 0 0 10px; }
.approvals-page .empty-state-modern p, .app-filter-empty { color: #81917b; font-size: 13px; line-height: 1.8; }
.app-filter-empty { border: 1px dashed #cadcc6; padding: 40px 24px; border-radius: 16px; text-align: center; }
/* Partner chat and conversations */
.chat-page .chat-container, .chat-page .messaging-container { border: 1px solid #dbe7dd; border-radius: 20px; background: #fff; box-shadow: none; height: calc(100dvh - 205px); min-height: 380px; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.chat-page .chat-area { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
.chat-page .chat-header { padding: 18px 24px; background: #fff; border-bottom: 1px solid #e1eadf; color: #3e6850; flex-shrink: 0; }
.chat-page .partner-avatar, .chat-page .couple-avatar { background: #e5f0e3; border: 1px solid #d6e5d1; color: #527f5d; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; margin-right: 12px; }
.chat-page .partner-info h2, .chat-page .couple-name { color: #3d664c; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-page .partner-info .status { color: #8a9c83; font-size: 11px; }
.chat-page .chat-messages, .conversation-page #chatMessages { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 24px; background: #f7faf4; border: 0; border-radius: 0; }
.chat-page .message { flex-shrink: 0; max-width: min(75%, 560px); padding: 12px 16px; font-size: 14px; line-height: 1.75; margin-bottom: 14px; border-radius: 16px; box-shadow: none; overflow-wrap: anywhere; }
.chat-page .message.sent, .chat-page .message-sent { background: #dceee2; color: #345b42; border: 1px solid #d2e5d8; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-page .message.received, .chat-page .message-received { background: #fff; color: #4e674e; border: 1px solid #e1e9db; border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-page .message-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-page .message-time { color: #789477; font-size: 10px; }
.chat-page .message-meta { flex-wrap: wrap; gap: 8px; color: #799170; font-size: 10px; }
.chat-page .message-sender { color: #688a62; }
.chat-page .message-attachment a { color: #326f58; }
.chat-page .date-header { align-self: center; font-size: 10px; font-weight: 500; color: #8a9b80; background: #edf3e6; padding: 5px 12px; border-radius: 12px; letter-spacing: .2px; margin: 4px 0 22px; text-transform: none; }
.chat-page .chat-form { position: relative; flex-shrink: 0; gap: 10px; padding: 16px 20px; background: #fff; border-top: 1px solid #e0eadc; align-items: flex-end; flex-wrap: wrap; }
.chat-page .chat-input { flex: 1; min-width: 0; width: 0; height: 46px; max-height: 140px; border-radius: 11px; border: 1px solid #dbe7d5; background: #f8fbf5; color: #3f6449; padding: 12px 14px; font-size: 14px; margin: 0; }
.chat-page .chat-input:focus { background: #fff; border-color: #7aa38a; box-shadow: 0 0 0 3px #dcecdf; }
.chat-page .chat-actions { margin: 0; display: flex; align-items: center; gap: 8px; }
.chat-page .attachment-btn { width: auto; min-width: 46px; height: 46px; padding: 0 13px; gap: 8px; color: #507863; border: 1px solid #dce7d7; background: #f1f7ed; border-radius: 12px; margin: 0; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.chat-page .attachment-btn:hover { background: #e5f0df; border-color: #c6d9c1; color: #315d42; }
.chat-page .attachment-btn.has-attachment { background: #e0eddf; border-color: #a8c8a8; color: #315d42; }
.chat-page .attachment-btn:disabled, .chat-page #removeAttachment:disabled { cursor: wait; opacity: .5; }
.chat-page .attachment-btn:focus-visible, .chat-page #removeAttachment:focus-visible { outline: 3px solid #8fb69a; outline-offset: 3px; }
.chat-page .send-btn { width: 46px; height: 46px; border-radius: 11px; background: #176f74; box-shadow: none; color: white; flex-shrink: 0; }
.chat-page .send-btn:hover { background: #125c61; transform: none; box-shadow: none; }
.chat-page .send-btn svg, .chat-page .attachment-btn svg { width: 20px; height: 20px; }
.chat-page #attachmentPreview { display: flex; align-items: center; gap: 12px; flex-basis: 100%; min-width: 0; font-size: 12px; margin: 2px 0 0; padding: 10px 12px; border: 1px solid #deead9; border-radius: 13px; background: #f7faf3; }
.chat-page #attachmentPreview[hidden] { display: none; }
.chat-page .attachment-file-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; color: #64855c; background: #e8f1e1; }
.chat-page .attachment-file-icon svg { width: 19px; height: 19px; }
.chat-page .attachment-file-details { flex: 1; min-width: 0; }
.chat-page #attachmentName { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #466b4d; font-size: 12px; font-weight: 600; line-height: 1.6; }
.chat-page #attachmentSize { display: block; margin-top: 3px; color: #809376; font-size: 10px; line-height: 1.5; }
.chat-page #removeAttachment { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #7c9072; cursor: pointer; }
.chat-page #removeAttachment:hover { color: #3f6245; background: #e7f0e1; }
.chat-page #removeAttachment svg { width: 17px; height: 17px; }
.chat-page #messageStatus:empty { display: none; }
.chat-page .message-day-divider { margin: auto; padding: 24px 0; color: #839778; font-size: 13px; }
.chat-page .typing-indicator { font-size: 11px; color: #89a078; }
.chat-page .back-button { color: #688a60; display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; margin-right: 8px; }
.chat-page .empty-state { margin: auto; text-align: center; }
/* Inbox */
.inbox-page .messages-container { height: calc(100dvh - 205px); min-height: 420px; border: 1px solid #dbe7db; border-radius: 20px; box-shadow: none; background: #fff; }
.inbox-page .conversations-list { flex-shrink: 0; width: 340px; background: #fff; border-right: 1px solid #e1eadc; }
.inbox-page .conversations-header { padding: 22px 20px; border-bottom: 1px solid #e7eee0; }
.inbox-page .conversations-header h2 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #4a6d4d; margin: 0 0 16px; }
#conversationSearch { display: block; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dbe6d6; background: #f6faf2; color: #52744f; border-radius: 9px; font-size: 12px; }
.inbox-page .conversation-item { gap: 12px; padding: 20px; border-bottom: 1px solid #eef3e9; }
.inbox-page .conversation-item:hover { background: #f0f7eb; box-shadow: none; }
.inbox-page .couple-avatar { width: 44px; height: 44px; flex-shrink: 0; background: #e9f2e0; color: #78936b; font-size: 17px; margin: 0; border-radius: 14px; }
.inbox-page .couple-name { font-size: 13px; color: #456b49; line-height: 1.6; overflow-wrap: anywhere; }
.inbox-page .last-message { color: #8a9a7e; font-size: 12px; line-height: 1.8; }
.inbox-page .message-time { color: #9ba98d; font-size: 10px; }
.inbox-page .unread-badge { background: #e0eed7; color: #5b7f4d; font-size: 10px; border-radius: 6px; box-shadow: none; }
.inbox-page #chatArea { flex: 1; min-width: 0; display: grid; place-items: center; background: #f7faf3; }
.inbox-page #chatArea.empty-state { display: flex; }
.inbox-page .chat-placeholder { text-align: center; padding: 30px; background: transparent; }
.app-search-empty { font-size: 12px; color: #7a8f6d; text-align: center; padding: 24px; }
@media (max-width: 1150px) {
    .feed-layout { grid-template-columns: minmax(0,1fr); }
    .feed-aside { display: none; }
    .dashboard-pair { gap: 6px; padding: 0; }
    .dashboard-avatar { width: 60px; height: 60px; }
    .dashboard-summary-grid { gap: 12px; }
    .dashboard-summary { padding: 18px; }
    .dashboard-bottom-grid { grid-template-columns: minmax(0,1fr); }
    .inbox-page .conversations-list { width: 290px; }
}
@media (max-width: 900px) {
    .dashboard-shared-card { align-items: flex-start; flex-direction: column-reverse; }
    .dashboard-summary-grid { grid-template-columns: minmax(0,1fr); }
    .dashboard-summary h3 { margin-top: 14px; }
    .approvals-page .approval-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
    body.app-page > .main-content, body.app-page > .container { padding: 28px 16px; }
    .app-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
    .app-heading h1 { font-size: 28px; }
    .app-description { font-size: 13px; }
    .app-heading > a { font-size: 12px; }
    .dashboard-shared-card { padding: 24px; border-radius: 18px; gap: 22px; }
    .dashboard-shared-main h2 { font-size: 25px; }
    .dashboard-shared-actions .app-button { flex: 1; white-space: nowrap; }
    .dashboard-summary-grid { gap: 14px; }
    .feed-page .post-header { padding: 16px; }
    .feed-page .post-content { padding: 0 16px 16px; }
    .feed-page .post-actions { flex-wrap: wrap; }
    .feed-page .post-action-btn { font-size: 11px; gap: 4px; padding: 8px 4px; }
    .feed-page .post-action-btn svg { width: 14px; height: 14px; }
    .feed-page .post-footer { padding: 0 12px; }
    .feed-page .empty-state { padding: 45px 20px; }
    .feed-page .app-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .approvals-page .approval-filters { gap: 6px; }
    .approvals-page .approval-filters button { font-size: 11px; padding: 10px; }
    .app-card { padding: 20px; }
    body.chat-page > .container { padding: 28px 16px 16px; }
    .chat-page .app-heading { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 18px; }
    .chat-page .app-heading h1 { font-size: 24px; margin: 0; }
    .chat-page .app-heading .app-kicker { font-size: 8px; letter-spacing: 1px; margin-bottom: 7px; }
    .chat-page .app-description { display: none; }
    .chat-page .app-heading > a { min-height: 40px; padding: 8px 10px; font-size: 10px; }
    .chat-page .chat-container, .chat-page .messaging-container { height: calc(100dvh - 170px); min-height: 300px; border-radius: 16px; }
    .chat-page .chat-header { padding: 14px 16px; }
    .chat-page .chat-messages, .conversation-page #chatMessages { padding: 18px 14px; }
    .chat-page .message { max-width: 88%; font-size: 13px; }
    .chat-page .chat-form { padding: 12px; gap: 6px; }
    .chat-page .chat-input { font-size: 16px; padding: 12px; }
    .chat-page .chat-actions { gap: 4px; }
    .chat-page .attachment-btn { width: 44px; min-width: 44px; padding: 0; }
    .chat-page .attachment-label { display: none; }
    .chat-page .send-btn { width: 42px; }
    .inbox-page .messages-container { flex-direction: column; min-height: 400px; height: auto; }
    .inbox-page .conversations-list { width: 100%; height: auto; border-right: 0; }
    .inbox-page #chatArea.chat-area { display: none; }
    .inbox-page .inbox-empty .conversations-list { display: none; }
    .inbox-page #chatArea.empty-state { min-height: 400px; padding: 40px 24px; }
    #conversationSearch { font-size: 16px; }
}
.app-page a[href='/partner-chat'] { overflow-wrap: anywhere; }
.dashboard-shared-actions a[href='/partner-chat'] { min-width: 0; max-width: 100%; }
