.replies-page { max-width: 1080px; margin: 0 auto; padding: 32px 24px; }
.replies-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.replies-heading h1 { margin: 16px 0 8px; }
.replies-heading p, .reply-empty, .reply-editor small { color: #6a7386; line-height: 1.5; }
.reply-primary { padding: 12px 18px; border: 0; border-radius: 10px; background: #315efb; color: white; text-decoration: none; cursor: pointer; font-weight: 600; }
.reply-search, .reply-card-actions, .reply-editor-actions { display: flex; gap: 12px; align-items: center; }
.reply-search { margin-bottom: 24px; }
.reply-search input { flex: 1; }
.reply-search input, .reply-search select, .reply-search button, .reply-editor input:not([type=checkbox]):not([type=submit]), .reply-editor select, .reply-editor textarea, .reply-picker-filters input, .reply-picker-filters select { border: 1px solid #dbe2ee; border-radius: 10px; padding: 11px 12px; background: white; font: inherit; min-width: 0; }
.reply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.reply-card { background: white; border: 1px solid #e1e6ef; border-radius: 16px; padding: 22px; min-width: 0; }
.reply-kind { display: inline-block; font-size: 11px; background: #eef2ff; color: #3150a0; padding: 5px 8px; border-radius: 6px; }
.reply-card h2 { font-size: 18px; margin: 14px 0; }
.reply-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow-y: auto; line-height: 1.6; font-size: 14px; }
.reply-files { padding-left: 18px; line-height: 1.9; overflow-wrap: anywhere; font-size: 13px; }
.reply-files small { color: #788296; }
.reply-card-actions { border-top: 1px solid #edf0f5; padding-top: 14px; margin-top: 16px; justify-content: space-between; font-size: 13px; }
.reply-delete { background: none; border: 0; color: #b43246; cursor: pointer; }
.reply-empty, .reply-notice { padding: 22px; background: #f2f5ff; border-radius: 12px; }
.reply-editor-page { max-width: 760px; }
.reply-editor { display: grid; gap: 20px; padding: 26px; border: 1px solid #e1e6ef; border-radius: 16px; background: white; }
.reply-editor > label { display: grid; gap: 8px; font-size: 14px; }
.reply-editor textarea { resize: vertical; }
.reply-existing-files { border: 1px solid #e1e6ef; border-radius: 10px; padding: 14px; font-size: 13px; }
.reply-existing-files > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; overflow-wrap: anywhere; }
.reply-error { color: #a82c42; background: #fff0f1; padding: 15px; border-radius: 10px; margin-bottom: 15px; }
.reply-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; min-height: 0; max-height: 60dvh; overflow-y: auto; padding-bottom: max(14px, env(safe-area-inset-bottom)); direction: ltr; }
.reply-composer > .composer-content { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: inherit; min-width: 0; }
html[dir="rtl"] .reply-composer > .composer-content { direction: rtl; }
.composer-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 8px; min-width: 0; direction: ltr; }
.reply-composer .composer-content .composer-main { grid-template-columns: auto minmax(0, 1fr); }
.composer-main .composer-tools { grid-column: 1; grid-row: 1; align-self: center; }
.composer-main .composer-input { grid-column: 2; grid-row: 1; }
.reply-composer > .composer-actions { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.composer-actions > .send-button, .composer-actions > .voice-record-button { width: 100%; min-width: 58px; min-height: 44px; border-radius: 10px; white-space: nowrap; }
.composer-actions > .voice-record-button { flex: 1 0 auto; min-height: 88px; font-size: 26px; }
.composer-actions > .send-button { flex: 0 0 auto; }
.reply-composer > .composer-status { grid-column: 1 / -1; grid-row: 2; max-width: none; overflow-wrap: anywhere; }
.reply-composer > .composer-status:empty { display: none; }
.reply-composer .composer-input { color: #243148; resize: vertical; min-width: 0; width: 100%; min-height: 46px; max-height: min(160px, 25dvh); font: inherit; }
.reply-composer-bar { display: flex; align-items: center; gap: 10px; flex-basis: auto; min-width: 0; flex-wrap: wrap; }
.reply-composer-bar > span { color: #66748b; font-size: 11px; }
.reply-picker-open { border: 1px solid #dce4fa; background: #f5f7ff; color: #3155b5; padding: 7px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; }
.reply-selected-files { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: auto; max-height: min(96px, 16dvh); overflow-y: auto; min-height: 0; }
.reply-selected-files:empty { display: none; }
.reply-file-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px; background: #edf2ff; border-radius: 8px; font-size: 12px; }
.reply-file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-file-chip button { border: 0; background: transparent; cursor: pointer; }
.reply-picker { width: min(660px, calc(100vw - 28px)); max-height: 85vh; padding: 22px; border: 1px solid #e1e6ef; border-radius: 18px; box-shadow: 0 24px 80px #172f5a33; color: #25314a; }
.reply-picker::backdrop { background: #18233866; }
.reply-picker header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.reply-picker h2 { margin: 0; font-size: 21px; }
.reply-picker header p, .reply-picker footer small { color: #748096; font-size: 12px; }
.reply-picker header button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.reply-picker-filters { display: flex; gap: 10px; margin-top: 16px; }
.reply-picker-filters input { flex: 1; }
.reply-picker-list { max-height: 50vh; overflow: auto; display: grid; gap: 12px; margin: 16px 0; }
.reply-picker-card { padding: 16px; border: 1px solid #e1e6ef; border-radius: 12px; }
.reply-picker-card h3 { margin: 5px 0; font-size: 15px; }
.reply-picker-card > small { display: block; color: #6b7890; font-size: 11px; }
.reply-picker-card p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 160px; overflow: auto; }
.reply-picker-card a { display: block; font-size: 12px; margin: 5px 0; overflow-wrap: anywhere; }
.reply-picker-card img { display: block; max-width: 120px; max-height: 80px; object-fit: contain; border-radius: 6px; margin: 8px 0; }
.reply-picker-card > button { margin-top: 10px; border: 0; background: #315efb; color: white; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.reply-picker-card > button:disabled { opacity: .5; cursor: default; }
.reply-picker footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #e1e6ef; padding-top: 14px; font-size: 12px; }
@media(max-width: 620px) { .replies-page { padding: 20px 12px; } .replies-heading { align-items: start; } .reply-search { flex-wrap: wrap; } .reply-editor { padding: 18px; } .reply-picker { padding: 16px; } .reply-picker-filters { flex-wrap: wrap; } .reply-picker footer { flex-direction: column; } }
