:root { --message-dark: #100a16; --message-panel: #f7f4f8; --message-line: #e8e1eb; }
html, body.messages-page { min-height: 100%; }
body.messages-page { overflow: hidden; color: var(--ink); background: #f4f0f6; }
.messages-topbar { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 28px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(16,10,22,.97); }
.messages-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.messages-brand img { width: 42px; height: 42px; border-radius: 0; box-shadow: none; }
.messages-brand > span { display: grid; line-height: 1; }
.messages-brand strong { font-size: 19px; letter-spacing: -.04em; }
.messages-brand small { margin-top: 4px; color: rgba(255,255,255,.46); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.messages-topbar nav { display: flex; gap: 5px; }
.messages-topbar nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 11px; color: rgba(255,255,255,.58); font-size: 13px; font-weight: 750; }
.messages-topbar nav a:hover, .messages-topbar nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.messages-topbar-actions { display: flex; align-items: center; justify-self: end; gap: 7px; }
.messages-login { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 13px; color: #211329; background: linear-gradient(135deg, #ffcf73, #ff7180); box-shadow: 0 10px 26px rgba(255,113,128,.2); font-size: 12px; font-weight: 850; }
.messages-login:hover { color: #211329; transform: translateY(-1px); }
.messages-me { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; justify-self: end; padding: 4px 13px 4px 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; }
.messages-me > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #211329; background: linear-gradient(135deg, #ff6e77, #d5adff); font-weight: 900; }
.messages-menu-toggle { width: 42px; height: 42px; display: none; place-content: center; gap: 4px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.07); cursor: pointer; }
.messages-menu-toggle i { width: 17px; height: 2px; display: block; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.messages-menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(6px) rotate(45deg); }
.messages-menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.messages-menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-6px) rotate(-45deg); }
.messages-mobile-nav[hidden] { display: none !important; }
.messages-login[hidden], .messages-me[hidden], .messages-menu-toggle[hidden], #messages-primary-nav[hidden] { display: none !important; }
.messages-topbar .messages-mobile-nav { display: none; }
#messages-main { height: calc(100vh - 72px); }
.messages-shell { height: 100%; display: grid; grid-template-columns: minmax(270px, 330px) minmax(420px, 1fr) minmax(250px, 310px); overflow: hidden; background: #fff; }
.dialogs-panel, .person-panel { min-width: 0; background: var(--message-panel); }
.dialogs-panel { display: flex; flex-direction: column; border-right: 1px solid var(--message-line); }
.dialogs-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 28px 24px 18px; }
.dialogs-heading span { color: #968a9b; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.dialogs-heading h1 { margin: 7px 0 0; font-size: 29px; letter-spacing: -.055em; }
.dialogs-heading b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #24152c; font-size: 11px; }
.dialog-search { min-height: 43px; display: flex; align-items: center; gap: 9px; margin: 0 18px 16px; padding: 0 13px; border: 1px solid #ded5e3; border-radius: 13px; color: #897c8e; background: #fff; }
.dialog-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.dialog-list { flex: 1; overflow-y: auto; padding: 0 9px 18px; }
.dialog-item { width: 100%; display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 11px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; }
.dialog-item:hover { background: rgba(255,255,255,.76); }
.dialog-item.active { background: #fff; box-shadow: 0 10px 28px rgba(47,27,58,.08); }
.dialog-avatar, .conversation-avatar { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #6a376f, #ef7781); font-weight: 850; }
.dialog-avatar { width: 50px; height: 50px; }
.dialog-avatar img, .conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { min-width: 0; display: grid; gap: 4px; }
.dialog-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dialog-copy small { display: block; overflow: hidden; color: #8a7e8f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.list-empty { padding: 48px 24px; color: #8b7f90; text-align: center; line-height: 1.55; }
.list-empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 17px; }
.list-empty p { margin: 0 0 20px; }
.list-empty-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,var(--coral),#f18a68); box-shadow: 0 12px 28px rgba(239,93,112,.24); font-size: 13px; font-weight: 800; }
.list-empty-action:hover { color: #fff; transform: translateY(-1px); }
.conversation-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; background: #fff; }
.conversation-welcome { height: 100%; display: grid; align-content: center; justify-items: center; padding: 40px; text-align: center; }
.conversation-welcome > span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 21px; color: #fff; background: linear-gradient(135deg, #ff576c, #ad76e7); box-shadow: 0 18px 38px rgba(223,78,111,.2); font-size: 27px; }
.conversation-welcome h2 { margin: 20px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.conversation-welcome p { max-width: 390px; margin: 0; color: #8b7f90; line-height: 1.55; }
.conversation-header { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--message-line); }
.conversation-back { display: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3eef5; cursor: pointer; }
.conversation-avatar { width: 47px; height: 47px; }
.conversation-title { min-width: 0; display: grid; gap: 3px; }
.conversation-title strong { font-size: 14px; }
.conversation-title small { color: #8c8091; font-size: 11px; }
.conversation-safe { margin-left: auto; padding: 7px 10px; border-radius: 999px; color: #4c7454; background: #eff8ed; font-size: 10px; font-weight: 750; }
.date-plan-open { min-height: 37px; margin-left: auto; padding: 0 12px; border: 1px solid #ded4e4; border-radius: 11px; color: #623c76; background: #f7f1fb; font-size: 10px; font-weight: 800; cursor: pointer; }
.date-plan-open:disabled { color: #8f8394; background: #f1edf3; cursor: default; }
.conversation-safe + .date-plan-open { margin-left: 0; }
.gift-open { width: 37px; height: 37px; border: 1px solid #ded4e4; border-radius: 11px; color: #71507d; background: #fff8f5; font-size: 16px; cursor: pointer; }
.photo-consent-open { width: 37px; height: 37px; margin-left: auto; border: 1px solid #ded4e4; border-radius: 11px; color: #71507d; background: #fff8f5; font-size: 16px; cursor: pointer; }
.photo-consent-open + .gift-open { margin-left: 0; }
.message-stream { overflow-y: auto; padding: 26px clamp(18px, 4vw, 46px); background: radial-gradient(circle at 80% 0, rgba(201,171,233,.11), transparent 28%), #fff; }
.message-day { margin: 0 0 18px; color: #aaa0ae; font-size: 10px; font-weight: 750; text-align: center; }
.date-plan-slot:empty { display: none; }
.gifts-strip:empty { display: none; }
.gifts-strip { display: grid; gap: 8px; margin-bottom: 18px; }
.gift-in-chat { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: center; padding: 11px 13px; border: 1px solid #ead9c4; border-radius: 16px; background: linear-gradient(135deg, #fff9ed, #fff4f7); }
.gift-in-chat > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #8f4c71; background: #fff; box-shadow: 0 8px 18px rgba(88,48,69,.1); font-size: 20px; }
.gift-in-chat p { min-width: 0; display: grid; gap: 2px; margin: 0; }
.gift-in-chat strong { font-size: 11px; }
.gift-in-chat small { overflow: hidden; color: #8d7b85; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.date-plan-card { margin: 0 0 22px; padding: 15px; border: 1px solid #dfd2e6; border-radius: 18px; color: #44334d; background: linear-gradient(135deg, #fbf5ff, #fff8f5); box-shadow: 0 12px 28px rgba(58,31,70,.07); }
.date-plan-card.accepted { border-color: #c9dfc8; background: linear-gradient(135deg, #f0faee, #fffaf4); }
.date-plan-card.closed { opacity: .72; background: #f5f2f6; }
.date-plan-top { display: flex; align-items: center; gap: 8px; }
.date-plan-top > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #ff6071, #a975df); }
.date-plan-top p { display: grid; gap: 2px; margin: 0; }
.date-plan-top strong { font-size: 12px; }
.date-plan-top small { color: #8f8294; font-size: 9px; }
.date-plan-details { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; }
.date-plan-details span { padding: 6px 8px; border-radius: 8px; color: #674177; background: rgba(235,221,244,.76); font-size: 9px; font-weight: 750; }
.date-plan-card > p { margin: 11px 0 0; color: #716476; font-size: 11px; line-height: 1.45; }
.date-plan-actions { display: flex; gap: 7px; margin-top: 13px; }
.date-plan-actions button { min-height: 35px; padding: 0 12px; border: 1px solid #d9cce0; border-radius: 10px; color: #67536f; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.date-plan-actions .accept-plan { color: #fff; border-color: transparent; background: #2d6d47; }
.safety-checklist { display: grid; gap: 7px; margin: 0 0 19px; padding: 0; list-style: none; }
.safety-checklist li { position: relative; padding-left: 18px; color: #665c6a; font-size: 11px; line-height: 1.5; }
.safety-checklist li::before { content: '✓'; position: absolute; left: 0; color: #2d6d47; font-weight: 800; }
.safety-status { margin-top: 13px; padding: 11px 13px; border-radius: 12px; color: #67536f; background: rgba(235,221,244,.5); font-size: 10px; line-height: 1.5; }
.safety-status.overdue { color: #a3283b; background: rgba(255,96,113,.14); }
.safety-status.confirmed { color: #2d6d47; background: rgba(202,255,189,.4); }
.safety-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.safety-actions button { min-height: 33px; padding: 0 11px; border: 1px solid #d9cce0; border-radius: 10px; color: #67536f; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.safety-actions .safety-confirm { color: #fff; border-color: transparent; background: #2d6d47; }
.bubble-row { display: flex; margin: 7px 0; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-stack { max-width: min(76%, 540px); }
.message-bubble { position: relative; padding: 11px 14px 8px; border-radius: 17px 17px 17px 5px; color: #372b3c; background: #f1edf4; font-size: 13px; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .message-bubble { border-radius: 17px 17px 5px 17px; color: #fff; background: linear-gradient(135deg, #ef526b, #df648d); }
.reply-quote { width: 100%; display: grid; gap: 2px; margin: 0 0 8px; padding: 7px 9px; overflow: hidden; border: 0; border-left: 2px solid #b478d8; border-radius: 7px; color: #60496b; background: rgba(255,255,255,.58); text-align: left; cursor: pointer; }
.mine .reply-quote { color: #fff; border-left-color: rgba(255,255,255,.78); background: rgba(255,255,255,.13); }
.reply-quote strong { font-size: 8px; text-transform: uppercase; }
.reply-quote span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.message-text { display: block; }
.message-time { display: block; margin-top: 4px; color: #9a8fa0; font-size: 8px; text-align: right; }
.mine .message-time { color: rgba(255,255,255,.65); }
.message-status { margin-left: 4px; font-size: 9px; letter-spacing: -1px; }
.message-status-delivered { color: rgba(255,255,255,.65); }
.message-status-read { color: #7ff0c9; }
.flagged-reveal { display: block; width: 100%; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; opacity: .82; cursor: pointer; text-decoration: underline dotted; }
.flagged-reveal:hover { opacity: 1; }
.flagged-note { margin-left: 4px; font-size: 11px; opacity: .8; cursor: help; }
.bubble-actions { position: absolute; z-index: 3; top: -38px; left: 0; display: none; align-items: center; gap: 2px; padding: 4px; border: 1px solid #ded5e3; border-radius: 11px; background: #fff; box-shadow: 0 10px 25px rgba(38,20,46,.14); white-space: nowrap; }
.mine .bubble-actions { right: 0; left: auto; }
.message-bubble:hover .bubble-actions, .message-bubble:focus-within .bubble-actions, .message-bubble.actions-open .bubble-actions { display: flex; }
.bubble-actions button { min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; color: #66586b; background: transparent; font-size: 12px; cursor: pointer; }
.bubble-actions button:hover { background: #f2edf5; }
.bubble-actions .reply-action { font-size: 9px; font-weight: 800; }
.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mine .message-reactions { justify-content: flex-end; }
.message-reactions button { min-height: 24px; padding: 2px 7px; border: 1px solid #ded5e3; border-radius: 999px; color: #4e4153; background: #fff; font-size: 10px; cursor: pointer; }
.message-reactions button.mine { border-color: #bd8fd3; background: #f2e8f8; }
.message-bubble.flash-message { animation: message-flash 1.1s ease; }
@keyframes message-flash { 0%,100% { box-shadow: none; } 35% { box-shadow: 0 0 0 5px rgba(185,138,255,.28); } }
.first-message { min-height: 100%; display: grid; align-content: center; justify-items: center; padding: 25px; text-align: center; }
.first-message span { color: #b06edd; font-size: 26px; }
.first-message strong { margin: 12px 0 6px; font-size: 18px; }
.first-message p { max-width: 380px; margin: 0; color: #8d8192; font-size: 12px; line-height: 1.5; }
.starter-row { display: flex; gap: 8px; overflow-x: auto; padding: 11px 18px; border-top: 1px solid var(--message-line); scrollbar-width: thin; }
.starter-row button { min-width: 195px; max-width: 240px; padding: 9px 11px; border: 1px solid #e1d7e6; border-radius: 12px; color: #603b74; background: #fbf8fc; font-size: 10px; line-height: 1.35; text-align: left; cursor: pointer; }
.message-compose { display: grid; grid-template-columns: minmax(0,1fr) auto 46px 46px; gap: 9px; align-items: end; padding: 13px 18px 16px; border-top: 1px solid var(--message-line); background: #fff; }
.chat-photo-control { display: flex; align-items: center; gap: 6px; }
#chat-photo-button { width: 46px; height: 46px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #6c5b8f, #8b6fae); box-shadow: 0 10px 24px rgba(108,91,143,.22); font-size: 17px; cursor: pointer; }
.disappearing-toggle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f1ecf5; font-size: 15px; cursor: pointer; }
.disappearing-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.disappearing-toggle:has(input:checked) { background: linear-gradient(135deg, #ff9a3c, #ff5c8a); }
.disappearing-toggle[hidden] { display: none; }
.voice-message-control { position: relative; }
.voice-message-control button { width: 46px; height: 46px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #6c5b8f, #8b6fae); box-shadow: 0 10px 24px rgba(108,91,143,.22); font-size: 18px; cursor: pointer; }
.voice-message-control button.is-recording { background: linear-gradient(135deg, #ff2d55, #b3123a); animation: voice-message-pulse 1.2s ease-in-out infinite; }
@keyframes voice-message-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,.4); } 50% { box-shadow: 0 0 0 8px rgba(255,45,85,0); } }
#voice-message-timer { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; color: #fff; background: #b3123a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.message-voice { max-width: 220px; height: 38px; }
.message-photo-link { display: block; }
.message-photo { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; object-fit: cover; }
.message-photo-reveal { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px dashed #cdb8e0; border-radius: 12px; background: #f8f3fc; color: #6c3f8f; font: inherit; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.message-photo-gone { color: #9c8fa3; font-style: italic; }
.reply-compose { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) 28px; gap: 6px; align-items: center; padding: 8px 10px; border-left: 2px solid #b178d4; border-radius: 8px; color: #6c5b73; background: #f6f0f9; }
.reply-compose[hidden] { display: none; }
.reply-compose p { min-width: 0; display: grid; gap: 2px; margin: 0; }
.reply-compose strong { font-size: 9px; }
.reply-compose span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reply-compose button { width: 28px; height: 28px; border: 0; border-radius: 8px; color: #796a7f; background: rgba(255,255,255,.8); font-size: 16px; box-shadow: none; }
.message-compose textarea { max-height: 110px; min-height: 46px; resize: none; padding: 13px 15px; border: 1px solid #ded5e3; border-radius: 15px; outline: 0; font: inherit; font-size: 13px; }
.message-compose textarea:focus { border-color: #bd86db; box-shadow: 0 0 0 3px rgba(185,138,255,.11); }
.message-compose button { width: 46px; height: 46px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #ff566c, #df628f); box-shadow: 0 10px 24px rgba(239,82,108,.22); font-size: 21px; cursor: pointer; }
.person-panel { overflow-y: auto; padding: 22px; border-left: 1px solid var(--message-line); }
.person-placeholder { min-height: 100%; display: grid; align-content: center; justify-items: center; color: #948899; text-align: center; }
.person-placeholder span { font-size: 30px; }
.person-placeholder p { max-width: 190px; font-size: 12px; line-height: 1.5; }
.person-photo { position: relative; aspect-ratio: 1/1.08; display: grid; place-items: center; overflow: hidden; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #5d356c, #dc7487); font-size: 62px; font-weight: 800; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo b { position: absolute; top: 12px; right: 12px; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #4b97e1; font-size: 11px; }
.person-name { margin: 19px 0 5px; font-size: 24px; letter-spacing: -.045em; }
.person-meta { margin: 0; color: #8d8192; font-size: 11px; }
.person-goal { margin: 16px 0; padding: 12px; border-radius: 13px; color: #5d3b70; background: #eee4f7; font-size: 11px; font-weight: 750; }
.person-answer { margin: 0 0 17px; color: #675b6b; font-size: 12px; line-height: 1.55; }
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.person-tags span { padding: 6px 8px; border-radius: 8px; color: #684178; background: #f0e8f6; font-size: 9px; font-weight: 750; }
.person-date { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3dce6; }
.person-date span { color: #998e9d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.person-date p { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.person-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 23px; }
.person-actions button { min-height: 38px; border: 1px solid #ddd4e1; border-radius: 11px; color: #807484; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.person-actions .end-match { grid-column: 1 / -1; color: #5f3b70; border-color: #d9cce1; background: #f8f3fa; }
.person-actions button:last-child:hover { color: #ad3246; border-color: #e2aab4; }
.messages-gate { height: 100%; display: grid; align-content: center; justify-items: center; padding: 32px; text-align: center; }
.messages-gate img { width: 76px; height: 76px; border-radius: 0; box-shadow: none; }
.messages-gate > span { margin-top: 22px; color: #9b57d7; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.messages-gate h1 { max-width: 500px; margin: 12px 0 9px; font-size: 39px; letter-spacing: -.055em; }
.messages-gate p { margin: 0 0 23px; color: #85798a; }
.message-report { width: min(480px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 24px; color: var(--ink); background: #faf8fb; box-shadow: 0 30px 100px rgba(31,8,21,.38); }
.end-match-dialog { width: min(500px, calc(100% - 24px)); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 26px; color: var(--ink); background: #faf8fb; box-shadow: 0 30px 100px rgba(31,8,21,.38); }
.end-match-dialog::backdrop { background: rgba(24,12,30,.68); backdrop-filter: blur(7px); }
.end-match-dialog form { display: grid; padding: 36px; }
.end-match-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid #ded5e3; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.end-match-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #694576, #b77add); font-size: 24px; }
.end-match-kicker { color: #9a58c5; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.end-match-dialog h2 { margin: 9px 45px 9px 0; font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
.end-match-dialog form > p { margin: 0 0 22px; color: #817486; font-size: 12px; line-height: 1.55; }
.end-match-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.end-match-actions button { min-height: 46px; padding: 0 13px; border: 1px solid #dcd2e1; border-radius: 12px; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.end-match-actions button[type="submit"] { color: #fff; border-color: transparent; background: #5c3869; }
.gift-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 27px; color: var(--ink); background: #faf8fb; box-shadow: 0 30px 100px rgba(31,8,21,.38); }
.gift-dialog::backdrop { background: rgba(24,12,30,.68); backdrop-filter: blur(7px); }
.gift-dialog form { padding: 35px; }
.gift-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid #ded5e3; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.gift-kicker { color: #a056cf; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.gift-dialog h2 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.05em; }
.gift-dialog form > p { margin: 0 0 20px; color: #85798a; font-size: 12px; line-height: 1.5; }
.gift-catalog { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.gift-choice { position: relative; }
.gift-choice input { position: absolute; opacity: 0; pointer-events: none; }
.gift-choice span { min-height: 114px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 9px; border: 1px solid #e2d9e6; border-radius: 15px; background: #fff; text-align: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.gift-choice span > i { font-size: 27px; font-style: normal; }
.gift-choice span > strong { font-size: 10px; }
.gift-choice span > small { color: #918696; font-size: 8px; line-height: 1.3; }
.gift-choice input:checked + span { transform: translateY(-3px); border-color: #bd84dd; background: #f6edfb; box-shadow: 0 10px 25px rgba(86,47,103,.09); }
.gift-note { display: grid; gap: 7px; margin-top: 17px; color: #665c6a; font-size: 11px; font-weight: 750; }
.gift-note textarea { width: 100%; padding: 11px 12px; resize: vertical; border: 1px solid #ddd4e1; border-radius: 11px; background: #fff; font: inherit; }
.gift-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.gift-form-bottom > span { color: #8a7e8e; font-size: 10px; }
.date-plan-dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 26px; color: var(--ink); background: #faf8fb; box-shadow: 0 30px 100px rgba(31,8,21,.38); }
.date-plan-dialog::backdrop { background: rgba(24,12,30,.68); backdrop-filter: blur(7px); }
.date-plan-dialog form { display: grid; padding: 34px; }
.date-plan-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid #ded5e3; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.date-plan-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #ff6071, #a875df); font-size: 22px; }
.date-plan-kicker { color: #a056cf; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.date-plan-dialog h2 { margin: 9px 0; font-size: 32px; letter-spacing: -.05em; }
.date-plan-dialog form > p { margin: 0 0 19px; color: #85798a; font-size: 12px; line-height: 1.5; }
.date-plan-dialog label { display: grid; gap: 7px; margin-bottom: 13px; color: #665c6a; font-size: 11px; font-weight: 750; }
.photo-consent-toggle { display: flex !important; flex-direction: row; align-items: center; gap: 9px; }
.photo-consent-toggle input { width: 17px; height: 17px; }
.photo-consent-toggle span { font-size: 12px; font-weight: 700; }
#photo-consent-status { margin: 0 0 15px; color: #6c5b73; font-size: 12px; line-height: 1.5; }
.date-plan-dialog select, .date-plan-dialog input, .date-plan-dialog textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #ddd4e1; border-radius: 11px; background: #fff; font: inherit; }
.date-plan-dialog textarea { resize: vertical; }
.date-plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.message-report::backdrop { background: rgba(24,12,30,.68); backdrop-filter: blur(7px); }
.message-report form { display: grid; padding: 34px; }
.report-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid #ded5e3; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.report-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 17px; color: #fff; background: #eb5368; font-size: 22px; font-weight: 850; }
.report-kicker { color: #a056cf; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.message-report h2 { margin: 9px 0; font-size: 31px; letter-spacing: -.045em; }
.message-report form > p { margin: 0 0 18px; color: #85798a; font-size: 12px; line-height: 1.5; }
.message-report label { display: grid; gap: 7px; margin-bottom: 13px; color: #665c6a; font-size: 11px; font-weight: 750; }
.message-report select, .message-report textarea { width: 100%; padding: 11px 12px; border: 1px solid #ddd4e1; border-radius: 11px; background: #fff; font: inherit; }
.report-attach-messages { display: flex !important; flex-direction: row; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #ddd4e1; border-radius: 11px; background: #fff; }
.report-attach-messages input { margin-top: 2px; flex: 0 0 auto; }
.report-attach-messages span { color: #665c6a; font-size: 11px; font-weight: 600; line-height: 1.4; }
.message-error { min-height: 18px; color: #c73d54 !important; }
.messages-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; border-radius: 13px; color: #fff; background: #211428; box-shadow: 0 18px 45px rgba(26,12,32,.25); font-size: 12px; }
.loading-messages .messages-topbar, .loading-messages #messages-main { visibility: hidden; }

@media (max-width: 1080px) {
  .messages-shell { grid-template-columns: 300px minmax(0,1fr); }
  .person-panel { display: none; }
}
@media (max-width: 700px) {
  body.messages-page { overflow: hidden; }
  .messages-topbar { height: 64px; grid-template-columns: 1fr auto; padding: 0 14px; }
  .messages-brand img { width: 37px; height: 37px; }
  .messages-brand small, .messages-topbar > nav:not(.messages-mobile-nav), .messages-me strong { display: none; }
  .messages-me { padding-right: 5px; }
  .messages-menu-toggle { display: grid; }
  .messages-topbar .messages-mobile-nav:not([hidden]) { position: fixed; z-index: 90; top: 64px; right: 8px; left: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 0 0 18px 18px; background: rgba(19,11,25,.99); box-shadow: 0 24px 60px rgba(0,0,0,.32); }
  .messages-topbar .messages-mobile-nav a { min-height: 46px; display: flex; align-items: center; padding: 0 13px; border-radius: 11px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.05); font-size: 11px; font-weight: 750; }
  .messages-topbar .messages-mobile-nav a.active { color: #fff; background: rgba(255,93,112,.16); }
  #messages-main { height: calc(100vh - 64px); }
  .messages-shell { grid-template-columns: 1fr; }
  .conversation-panel { display: none; }
  .messages-shell.conversation-open .dialogs-panel { display: none; }
  .messages-shell.conversation-open .conversation-panel { display: grid; }
  .conversation-back { display: grid; place-items: center; }
  .conversation-safe { display: none; }
  .date-plan-open { padding-inline: 10px; font-size: 9px; }
  .gift-open { width: 34px; }
  .dialogs-heading { padding-top: 22px; }
  .message-stream { padding: 19px 14px; }
  .bubble-stack { max-width: 84%; }
  .message-bubble:hover .bubble-actions { display: none; }
  .message-bubble.actions-open .bubble-actions { display: flex; }
  .message-compose { padding-inline: 12px; }
  .date-plan-dialog form, .end-match-dialog form { padding: 30px 18px 24px; }
  .end-match-actions { grid-template-columns: 1fr; }
  .date-plan-row { grid-template-columns: 1fr; gap: 0; }
  .gift-dialog form { padding: 30px 16px 22px; }
  .gift-catalog { grid-template-columns: repeat(2,1fr); }
  .gift-form-bottom { align-items: stretch; flex-direction: column; }
}
