:root {
  color-scheme: light;
  --service-blue: #1264d5;
  --service-blue-dark: #0c4ba3;
  --service-ink: #172033;
  --service-muted: #687386;
  --service-line: #dce3ed;
  --service-soft: #eef4fb;
  --service-canvas: #f4f7fb;
  --service-white: #fff;
  --service-green: #137a52;
  --service-amber: #9a5b00;
  --service-red: #b42335;
  --service-radius: 6px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--service-canvas); -webkit-text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100%; margin: 0; color: var(--service-ink); background: var(--service-canvas); }
button, input, select, textarea { min-width: 0; font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(18, 100, 213, .22); outline-offset: 2px; }
[hidden] { display: none !important; }

.service-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(220, 227, 237, .86);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(130%);
}
.service-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.service-brand img { width: 42px; height: 42px; object-fit: contain; }
.service-brand span { display: grid; min-width: 0; }
.service-brand strong { font-size: 16px; line-height: 1.1; font-weight: 750; }
.service-brand small { margin-top: 3px; color: var(--service-muted); font-size: 11px; line-height: 1.1; font-weight: 450; white-space: nowrap; }
.service-header-actions { display: flex; align-items: center; gap: 4px; }
.service-back, .service-logout, .service-password-button { display: inline-grid; place-items: center; width: 40px; min-width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--service-muted); background: transparent; text-decoration: none; }
.service-back:hover, .service-logout:hover, .service-password-button:hover { color: var(--service-blue); background: var(--service-soft); }
.service-back svg, .service-logout svg, .service-password-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { width: min(1180px, 100%); margin: 0 auto; padding: 28px clamp(14px, 3vw, 36px) calc(36px + env(safe-area-inset-bottom)); }
.service-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px); align-items: center; gap: clamp(28px, 6vw, 80px); min-height: calc(100dvh - 120px); }
.service-login-visual { position: relative; display: grid; place-items: center; min-height: 430px; overflow: hidden; }
.service-login-logo { position: relative; z-index: 2; display: grid; place-items: center; width: min(310px, 70vw); aspect-ratio: 1; border: 1px solid rgba(18, 100, 213, .12); border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 28px 80px rgba(26, 62, 110, .14); }
.service-login-logo::before, .service-login-logo::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(18, 100, 213, .2); border-radius: 50%; animation: service-pulse 3.2s ease-out infinite; }
.service-login-logo::after { animation-delay: 1.6s; }
.service-login-logo img { width: 58%; height: 58%; object-fit: contain; }
.service-login-visual > span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--service-blue); box-shadow: 0 0 0 7px rgba(18, 100, 213, .09); animation: service-dot 5s ease-in-out infinite; }
.service-login-visual > span:nth-of-type(1) { left: 15%; top: 27%; }
.service-login-visual > span:nth-of-type(2) { right: 14%; top: 42%; animation-delay: 1.4s; }
.service-login-visual > span:nth-of-type(3) { left: 28%; bottom: 16%; animation-delay: 2.8s; }
@keyframes service-pulse { 0% { opacity: .8; transform: scale(.75); } 75%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes service-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

.service-login-panel { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--service-line); border-radius: var(--service-radius); background: var(--service-white); box-shadow: 0 20px 55px rgba(34, 57, 91, .1); }
.service-kicker { margin: 0 0 7px; color: var(--service-blue); font-size: 12px; line-height: 1.35; font-weight: 750; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.service-login-panel h1, .service-app-head h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 760; }
.service-login-panel > p:not(.service-kicker) { margin: 14px 0 26px; color: var(--service-muted); font-size: 15px; line-height: 1.55; font-weight: 400; }
.service-login-panel label, .service-pay-dialog label { display: grid; gap: 7px; margin-top: 15px; color: #344054; font-size: 13px; font-weight: 650; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e2; border-radius: 4px; color: var(--service-ink); background: #fff; font-size: 16px; }
input:hover, select:hover { border-color: #9eacc0; }
input:focus, select:focus { border-color: var(--service-blue); }
.service-login-panel > button, .service-pay-dialog button[type="submit"], .service-pay-button { width: 100%; min-height: 46px; margin-top: 20px; padding: 10px 16px; border: 1px solid var(--service-blue); border-radius: 4px; color: #fff; background: var(--service-blue); font-weight: 700; }
.service-login-panel > button:hover, .service-pay-dialog button[type="submit"]:hover, .service-pay-button:hover { border-color: var(--service-blue-dark); background: var(--service-blue-dark); }
.service-login-panel > button:disabled, .service-pay-dialog button:disabled { opacity: .62; cursor: wait; }
.service-form-status { display: block; min-height: 20px; margin-top: 12px; color: var(--service-red); font-size: 13px; line-height: 1.45; }
.service-form-status.ok { color: var(--service-green); }
.service-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--service-line); }
.service-legal a { color: var(--service-muted); font-size: 11px; line-height: 1.45; text-decoration: none; }
.service-legal a:hover { color: var(--service-blue); }

.service-app { min-height: calc(100dvh - 120px); }
.service-app-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 12px 0 24px; }
.service-object-picker { display: grid; gap: 5px; min-width: min(360px, 100%); color: var(--service-muted); font-size: 12px; }
.service-object-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(115px, .7fr)); gap: 1px; overflow: hidden; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: var(--service-line); }
.service-object-hero > div { min-width: 0; padding: 18px; background: var(--service-white); }
.service-object-hero .primary { padding: 24px; }
.service-object-hero span { display: block; color: var(--service-muted); font-size: 12px; line-height: 1.4; }
.service-object-hero strong { display: block; margin-top: 5px; font-size: 18px; line-height: 1.25; font-weight: 720; }
.service-object-hero .primary strong { margin: 0 0 6px; font-size: 24px; }
.service-object-hero .primary p { margin: 0; color: var(--service-muted); font-size: 14px; line-height: 1.45; }
.service-status { display: inline-flex; align-items: center; width: fit-content; margin-top: 10px; padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: 750; }
.service-status.active { color: var(--service-green); background: #e8f5ef; }
.service-status.overdue { color: var(--service-amber); background: #fff3db; }
.service-status.terminated, .service-status.cancelled { color: var(--service-red); background: #fdebed; }
.service-status.expired { color: #5e6470; background: #eceff3; }

.service-tabs { position: sticky; top: 65px; z-index: 10; display: flex; gap: 2px; margin: 22px 0 0; padding: 5px; overflow-x: auto; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: rgba(255, 255, 255, .94); scrollbar-width: none; backdrop-filter: blur(14px); }
.service-tabs::-webkit-scrollbar { display: none; }
.service-tabs button { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border: 0; border-radius: 3px; color: var(--service-muted); background: transparent; font-size: 13px; font-weight: 650; }
.service-tabs button.active { color: var(--service-blue-dark); background: var(--service-soft); }
.service-tabs button:hover { color: var(--service-blue); }
.service-tab-short { display: none; }
.service-content { margin-top: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-panel { min-width: 0; padding: 20px; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: var(--service-white); }
.service-panel.wide { grid-column: 1 / -1; }
.service-panel h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.25; font-weight: 730; }
.service-data-list { display: grid; gap: 0; margin: 0; }
.service-data-list > div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 11px 0; border-top: 1px solid #e8edf4; }
.service-data-list > div:first-child { border-top: 0; }
.service-data-list dt { color: var(--service-muted); font-size: 13px; line-height: 1.4; }
.service-data-list dd { min-width: 0; margin: 0; text-align: right; font-size: 14px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.service-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: var(--service-line); }
.service-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 15px 16px; background: var(--service-white); }
.service-list-item strong { display: block; font-size: 14px; line-height: 1.35; }
.service-list-item p { margin: 5px 0 0; color: var(--service-muted); font-size: 12px; line-height: 1.45; }
.service-list-item > span { align-self: center; color: var(--service-muted); font-size: 12px; text-align: right; }
.service-empty { padding: 32px 18px; border: 1px dashed #cad4e2; color: var(--service-muted); text-align: center; background: rgba(255, 255, 255, .5); }
.service-note { padding: 13px 14px; border-left: 3px solid var(--service-blue); color: #3f4b5f; background: #f1f6fc; font-size: 13px; line-height: 1.5; }
.service-note strong { display: block; color: inherit; font-size: 14px; }
.service-note p { margin: 4px 0 0; color: inherit; font-size: inherit; font-weight: 400; }
.service-note.warning { border-left-color: #d88700; background: #fff7e7; }
.service-note.neutral { border-left-color: #7b8798; background: #f3f5f7; }
.service-pay-button { width: auto; margin-top: 14px; }
.service-document-link { color: var(--service-blue-dark); text-decoration: none; }
.service-document-link:hover { text-decoration: underline; }
.service-app-status { position: fixed; right: 16px; bottom: 16px; z-index: 30; min-height: 0; max-width: min(420px, calc(100vw - 32px)); margin: 0; padding: 10px 12px; border: 1px solid var(--service-line); border-radius: 4px; background: #fff; box-shadow: 0 12px 36px rgba(26, 49, 85, .16); }
.service-app-status:empty { display: none; }

.service-pay-dialog { width: min(480px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--service-radius); color: var(--service-ink); background: transparent; }
.service-pay-dialog::backdrop { background: rgba(19, 32, 53, .42); backdrop-filter: blur(4px); }
.service-pay-dialog form { padding: 22px; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: #fff; box-shadow: 0 24px 70px rgba(17, 35, 64, .22); }
.service-pay-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.service-pay-dialog h2 { margin: 0; font-size: 22px; }
.service-dialog-close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: var(--service-muted); background: #f0f3f7; font-size: 26px; font-weight: 300; }
.service-pay-summary { display: grid; gap: 9px; margin-top: 18px; padding: 14px; background: var(--service-soft); }
.service-pay-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.service-pay-summary span { color: var(--service-muted); }
.service-payment-warning { margin: 14px 0 0; color: var(--service-red); font-size: 12px; line-height: 1.5; }
.service-dialog-copy { margin: 12px 0 0; color: var(--service-muted); font-size: 12px; line-height: 1.5; }
.service-pay-dialog footer { display: flex; justify-content: end; gap: 8px; margin-top: 20px; }
.service-pay-dialog footer button { width: auto; min-height: 42px; margin: 0; padding: 9px 14px; border-radius: 4px; }
.service-secondary { border: 1px solid var(--service-line); color: var(--service-ink); background: #fff; }

.service-chat-widget { position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 70; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; width: min(430px, calc(100vw - 28px)); pointer-events: none; }
.service-chat-widget.open { z-index: 95; }
.service-chat-widget > * { pointer-events: auto; }
.service-chat-widget .chat-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 58px; min-width: 58px; height: 58px; min-height: 58px; padding: 0; color: #fff; background: linear-gradient(135deg, #1d5fd1, #3e83f2); border: 0; border-radius: 50%; box-shadow: 0 20px 44px rgba(29, 95, 209, .28); }
.service-chat-widget .service-chat-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; padding: 2px 5px; color: #fff; background: var(--service-red); border: 2px solid #fff; border-radius: 12px; font-size: 10px; line-height: 1.2; text-align: center; }
.service-chat-widget.open .chat-toggle { display: none; }
.service-chat-widget .chat-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-support { position: relative; display: flex; flex-direction: column; width: 100%; max-height: min(82svh, 700px); margin: 0; padding: 14px; overflow: hidden; color: #0f172a; font-family: "Segoe UI", Arial, sans-serif; background: rgba(255, 255, 255, .97); border: 1px solid rgba(62, 131, 242, .18); border-radius: 10px; box-shadow: 0 24px 70px rgba(15, 23, 42, .16); backdrop-filter: blur(22px) saturate(1.25); }
.service-chat-widget.has-thread .service-support { height: min(86svh, 700px); }
.service-support-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.service-support-head strong { color: #0f172a; font-family: Manrope, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.18; font-weight: 700; }
.service-support .chat-head-actions { display: flex; align-items: center; gap: 4px; }
.service-support .chat-notifications { display: grid; flex: 0 0 auto; place-items: center; width: 34px; min-height: 34px; padding: 0; color: #5b6b82; background: transparent; border: 0; border-radius: 50%; }
.service-support .chat-notifications:hover, .service-support .chat-notifications:focus-visible { color: #3e83f2; background: #eef6ff; }
.service-support .chat-notifications:disabled { opacity: .42; cursor: default; }
.service-support .chat-notifications svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-support .chat-notifications .chat-bell-on, .service-support .chat-notifications.is-enabled .chat-bell-off { display: none; }
.service-support .chat-notifications.is-enabled .chat-bell-on { display: block; }
.service-support .chat-close { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; padding: 0; color: #5b6b82; font-size: 22px; line-height: 1; background: #eef6ff; border: 0; border-radius: 50%; }
.service-support .chat-intro { flex: 0 0 auto; margin: 10px 0 0; color: #5b6b82; font-size: 15px; line-height: 1.4; font-weight: 400; }
.service-support .chat-quick-questions { display: grid; flex: 0 0 auto; grid-template-columns: 1fr; gap: 0; margin-top: 10px; padding: 2px 0; }
.service-support .chat-quick-questions button { width: 100%; min-height: 30px; padding: 5px 2px; color: #28517d; font-size: 12px; line-height: 1.35; font-weight: 500; text-align: left; background: transparent; border: 0; border-radius: 4px; }
.service-support .chat-quick-questions button:hover, .service-support .chat-quick-questions button:focus-visible { color: #3e83f2; background: rgba(232, 242, 253, .62); }
.service-support-messages { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 240px; max-height: min(56svh, 540px); margin-top: 10px; padding: 10px; overflow-y: auto; overscroll-behavior: contain; background: #f3f7fa; border: 0; border-radius: 8px; scrollbar-gutter: stable; }
.service-chat-widget.has-thread .service-support-messages { min-height: 0; max-height: none; }
.service-support-date { align-self: center; margin: 4px 0; padding: 3px 8px; color: #7c8899; background: rgba(255, 255, 255, .82); border: 1px solid #e5eaf1; border-radius: 8px; font-size: 10px; line-height: 1.35; font-weight: 500; }
.service-support-system { align-self: center; max-width: 88%; margin: 4px 0; color: #8490a0; font-size: 11px; line-height: 1.4; text-align: center; }
.service-support-message-row { display: flex; align-items: flex-end; width: 100%; }
.service-support-message-row.outgoing { justify-content: flex-end; }
.service-support-message { display: grid; gap: 5px; width: fit-content; max-width: 88%; padding: 7px 9px; color: var(--service-ink); font-size: 13px; line-height: 1.36; font-weight: 400; background: #fff; border: 1px solid #e1e9ef; border-radius: 8px; box-shadow: 0 2px 8px rgba(24, 54, 84, .05); }
.service-support-message-row.outgoing .service-support-message { color: #fff; background: #3e83f2; border-color: transparent; }
.service-support-message-row.pending .service-support-message { opacity: .78; }
.service-support-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.service-support-message .chat-message-author { display: flex; align-items: center; gap: 6px; min-height: 24px; margin-bottom: 2px; }
.service-support-message .chat-message-author img { display: block; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; object-fit: cover; background: #fff; border: 1px solid rgba(51, 113, 169, .16); border-radius: 50%; }
.service-support-message.automated .chat-message-author img { padding: 4px; object-fit: contain; }
.service-support-message .chat-message-author small { color: inherit; font-size: 11px; line-height: 1.2; font-weight: 600; opacity: .82; }
.service-support-message footer { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: inherit; font-size: 9px; line-height: 1.3; font-weight: 450; opacity: .68; }
.service-support-message footer > span:first-child:not(.service-support-message-status) { display: none; }
.service-support-message-status.error { color: #ffd9df; }
.service-support-attachment { display: grid; gap: 5px; max-width: 100%; }
.service-support-attachment img, .service-support-attachment video { display: block; width: 100%; max-height: min(42svh, 360px); border-radius: 6px; object-fit: contain; background: #162033; }
.service-support-attachment video { aspect-ratio: 16 / 9; }
.service-support-attachment > small { color: inherit; font-size: 11px; font-weight: 400; opacity: .72; overflow-wrap: anywhere; }
.service-support-file { display: grid; gap: 2px; min-width: min(250px, 100%); padding: 9px 10px; color: inherit; background: rgba(255, 255, 255, .72); border: 1px solid rgba(62, 131, 242, .16); border-radius: 6px; text-decoration: none; }
.service-support-file > svg { display: none; }
.service-support-file > span { display: grid; min-width: 0; }
.service-support-file strong, .service-support-file small { overflow-wrap: anywhere; }
.service-support-file strong { font-size: 12px; font-weight: 650; }
.service-support-file small { color: inherit; font-size: 10px; font-weight: 400; opacity: .72; }
.service-support-down, .service-support-retry, .service-support-icon-button, .service-support-file-preview button { display: grid; place-items: center; padding: 0; border: 0; color: #587083; background: transparent; }
.service-support-down svg, .service-support-retry svg, .service-support-icon-button svg, .service-support-file-preview button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-support-down { position: absolute; right: 20px; bottom: 86px; z-index: 2; width: 34px; height: 34px; border: 1px solid #dce4ed; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px rgba(35, 52, 78, .12); }
.service-support-retry { flex: 0 0 auto; width: 30px; height: 30px; color: var(--service-red); }
.service-support-composer { position: relative; display: grid; flex: 0 0 auto; gap: 7px; margin-top: 8px; }
.service-support-composer-controls { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) 38px; gap: 4px; align-items: end; min-width: 0; padding: 5px; background: #fff; border: 1px solid #dce5ec; border-radius: 9px; }
.service-support-icon-button { width: 34px; height: 34px; border-radius: 50%; }
.service-support-icon-button:hover { color: #3e83f2; background: #eef5fb; }
.service-support-icon-button.primary { width: 38px; height: 38px; color: #fff; background: #3e83f2; }
.service-support-icon-button.primary:hover { background: #1d5fd1; }
.service-support-composer textarea { width: 100%; min-width: 0; min-height: 36px; max-height: 112px; padding: 8px 6px; resize: none; overflow-y: auto; color: var(--service-ink); background: transparent; border: 0; border-radius: 0; outline: 0; font-size: 16px; line-height: 1.35; font-weight: 400; }
.service-support-file-preview { display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 9px; align-items: center; min-height: 48px; padding: 6px 8px; border: 1px solid #e0e6ee; border-radius: 6px; background: #f8fafc; }
.service-support-file-preview > img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; }
.service-support-file-preview > svg { width: 24px; height: 24px; margin: auto; fill: none; stroke: #68778d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-support-file-preview > span { display: grid; min-width: 0; }
.service-support-file-preview strong, .service-support-file-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-support-file-preview strong { font-size: 11px; font-weight: 620; }
.service-support-file-preview small { color: var(--service-muted); font-size: 9px; font-weight: 420; }
.service-support-file-preview button { width: 30px; height: 30px; }
.service-support-emoji-panel { position: absolute; right: 0; bottom: 52px; z-index: 3; display: grid; grid-template-columns: repeat(5, 34px); gap: 3px; padding: 7px; background: #fff; border: 1px solid #dce5ec; border-radius: 8px; box-shadow: 0 12px 28px rgba(24, 54, 84, .14); }
.service-support-emoji-panel button { display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; font-size: 18px; background: transparent; border: 0; border-radius: 5px; }
.service-support-emoji-panel button:hover, .service-support-emoji-panel button:focus-visible { background: #eef5fb; }
.service-support-send-status { min-height: 0; color: var(--service-muted); font-size: 10px; line-height: 1.35; font-weight: 400; }
.service-support-send-status:not(:empty) { display: block; padding: 6px 8px; color: #5f7082; background: #f3f7fa; border-radius: 5px; }
.service-support-send-status:empty { display: none; }

@media (max-width: 820px) {
  main { padding-top: 18px; }
  .service-login { grid-template-columns: 1fr; min-height: auto; }
  .service-login-visual { min-height: 250px; }
  .service-login-logo { width: 210px; }
  .service-login-panel { width: min(480px, 100%); margin: 0 auto; }
  .service-app-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .service-object-picker { width: 100%; }
  .service-object-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-object-hero .primary { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .service-header { min-height: 58px; }
  .service-brand img { width: 36px; height: 36px; }
  .service-brand small { font-size: 10px; }
  .service-back, .service-logout, .service-password-button { width: 38px; min-width: 38px; height: 38px; }
  main { padding-inline: 10px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .service-login { gap: 12px; }
  .service-login-visual { min-height: 190px; }
  .service-login-logo { width: 160px; }
  .service-login-panel { padding: 22px 18px; }
  .service-login-panel h1, .service-app-head h1 { font-size: 28px; }
  .service-object-hero { grid-template-columns: 1fr; }
  .service-object-hero .primary { grid-column: auto; }
  .service-object-hero > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 13px 14px; }
  .service-object-hero .primary { display: block; padding: 18px 14px; }
  .service-object-hero > div:not(.primary) strong { margin: 0; text-align: right; font-size: 15px; }
  .service-tabs { position: fixed; inset: auto 0 0; top: auto; z-index: 25; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 5px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); overflow: hidden; border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -8px 28px rgba(40, 61, 92, .08); }
  .service-tabs button { width: 100%; min-height: 42px; padding: 6px 2px; font-size: 10px; }
  .service-tab-full { display: none; }
  .service-tab-short { display: inline; }
  .service-grid { grid-template-columns: 1fr; }
  .service-panel { padding: 16px 14px; }
  .service-data-list > div { grid-template-columns: minmax(92px, .75fr) minmax(0, 1.25fr); gap: 12px; }
  .service-list-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .service-list-item > span { text-align: left; }
  .service-pay-button { width: 100%; }
  .service-app-status { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .service-pay-dialog { width: 100%; max-width: none; margin: auto 0 0; }
  .service-pay-dialog form { padding: 20px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 6px 6px 0 0; }
  .service-chat-widget { right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); left: 10px; width: auto; }
  .service-chat-widget .chat-toggle { width: 56px; min-width: 56px; height: 56px; min-height: 56px; }
  .service-support { width: 100%; max-height: min(90svh, 720px); min-height: 0; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); border-radius: 12px; }
  .service-chat-widget.has-thread .service-support { height: min(720px, calc(100dvh - 86px - env(safe-area-inset-bottom))); }
  .service-support-head { min-height: 34px; }
  .service-support-head strong { font-size: 17px; }
  .service-support .chat-intro { margin-top: 8px; font-size: 12px; line-height: 1.38; }
  .service-support-messages { min-height: 0; padding: 2px 2px 6px; border-radius: 8px; scrollbar-gutter: auto; }
  .service-support-message { max-width: 92%; font-size: 13px; line-height: 1.38; }
  .service-support-composer { margin-top: 8px; }
  .service-support-composer-controls { grid-template-columns: 34px 34px minmax(0, 1fr) 38px; gap: 4px; }
  .service-support-icon-button { width: 34px; height: 34px; }
  .service-support-icon-button.primary { width: 38px; height: 38px; }
  .service-support-down { right: 20px; bottom: 84px; }
}

@media (max-width: 390px) {
  .service-tabs button { font-size: 9px; }
  .service-support-message { max-width: 92%; }
}
