:root {
  color-scheme: dark;
  --green: #2dbe64;
  --green-bright: #46d47a;
  --green-soft: rgba(45, 190, 100, 0.14);
  --page: #0c0f0d;
  --surface: #141815;
  --surface-2: #1a201c;
  --line: #283129;
  --text: #f6f8f6;
  --muted: #929b94;
  --danger: #ff7373;
  --warning: #f1c75b;
}

* { box-sizing: border-box; }
html { background: var(--page); touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--page); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
input, select, textarea { color: var(--text); }
[hidden] { display: none !important; }
.booting #auth-screen, .booting #app-shell { display: none !important; }
.boot-splash { display: none; }
.booting .boot-splash { position: fixed; inset: 0; min-height: 100dvh; display: block; background: #000; z-index: 9999; }
.boot-splash b { color: var(--green); }

.return-history { margin-top: 18px; }
#open-return-form { width: 100%; }
.return-history-card { display: grid; gap: 10px; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.return-history-head, .return-history-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.return-history-head strong { font-size: 14px; }
.return-history-head span { padding: 5px 8px; border-radius: 8px; background: rgba(241,199,91,.12); color: var(--warning); font-size: 10px; font-weight: 850; }
.return-history-card.is-resolved .return-history-head span { background: var(--green-soft); color: var(--green-bright); }
.return-history-card.is-rejected .return-history-head span { background: rgba(255,115,115,.1); color: var(--danger); }
.return-history-card p { margin: 0; color: #dce1dd; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.return-history-card .return-history-reason { padding: 9px 10px; border: 1px solid rgba(255,115,115,.24); border-radius: 10px; background: rgba(255,115,115,.07); color: #ffb0b0; font-size: 12px; }
.return-history-footer time { color: var(--muted); font-size: 11px; }
.return-history-footer a { color: var(--green-bright); font-size: 11px; font-weight: 800; text-decoration: none; }
.return-history-delete { min-height: 40px; border-radius: 11px; color: var(--danger); font-size: 12px; font-weight: 800; }

.page-return-review { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.return-review-tabs { margin-bottom: 18px; }
.return-review-list { display: grid; gap: 11px; }
.return-review-card { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: opacity .18s ease, transform .18s ease; }
.return-review-card.is-processing { opacity: .65; transform: scale(.99); }
.return-review-head, .return-review-meta, .return-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.return-review-head strong { font-size: 15px; }
.return-review-head span { padding: 5px 8px; border-radius: 8px; background: rgba(241,199,91,.12); color: var(--warning); font-size: 10px; font-weight: 850; }
.return-review-card.is-resolved .return-review-head span { background: var(--green-soft); color: var(--green-bright); }
.return-review-card.is-rejected .return-review-head span { background: rgba(255,115,115,.1); color: var(--danger); }
.return-review-person { margin: 0; color: var(--green-bright); font-size: 12px; font-weight: 800; }
.return-review-product { margin: 0; color: #e1e6e2; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.return-review-reason { margin: 0; padding: 9px 10px; border: 1px solid rgba(255,115,115,.24); border-radius: 10px; background: rgba(255,115,115,.07); color: #ffb0b0; font-size: 12px; line-height: 1.45; }
.return-review-meta time, .return-review-reviewed { color: var(--muted); font-size: 11px; }
.return-review-meta a { color: var(--green-bright); font-size: 11px; font-weight: 800; text-decoration: none; }
.return-review-actions { margin-top: 3px; }
.return-review-actions button { min-height: 43px; flex: 1; border-radius: 12px; font-size: 12px; font-weight: 850; }
.return-review-actions .return-reject { color: var(--danger); }
.return-review-delete { min-height: 40px; border-radius: 11px; color: var(--danger); font-size: 12px; font-weight: 800; }
.content-message.is-error { color: var(--danger); }
.content-message.is-success { color: var(--green-bright); }

.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.auth-card { width: min(100%, 420px); padding: 24px 20px 22px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(155deg, #171c18, #101411); box-shadow: 0 24px 80px #0008; }
.eyebrow { margin: 0 0 6px; color: var(--green-bright); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-card h1 { margin: 0 0 27px; font-size: clamp(30px, 9vw, 42px); letter-spacing: -.055em; line-height: 1; }
.auth-card h1 b { color: var(--green); }
.auth-lead { margin: 9px 0 25px; color: var(--muted); font-size: 15px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #090c0a; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 750; }
.auth-tabs button.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.auth-recovery-link { width: 100%; min-height: 42px; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; }
.auth-recovery-link.is-active { border-color: rgba(45,190,100,.45); background: var(--green-soft); color: var(--green-bright); }
.auth-form { display: grid; gap: 15px; margin-top: 20px; }
.auth-form label { display: grid; gap: 7px; }
.auth-form label > span { color: #b7beb8; font-size: 12px; font-weight: 700; }
.auth-form input { width: 100%; min-width: 0; border: 1px solid var(--line); outline: 0; background: #0d110e; color: var(--text); }
.auth-form input { height: 49px; padding: 0 14px; border-radius: 13px; font-size: 16px; }
.auth-form input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,190,100,.1); }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button { min-height: 50px; margin-top: 4px; border: 0; border-radius: 14px; background: var(--green); color: #07120a; font-weight: 850; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-hint { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-message { min-height: 18px; margin: 13px 2px 0; color: var(--danger); font-size: 13px; line-height: 1.4; }
.form-message.is-success { color: var(--green-bright); }
.auth-install-button { width: fit-content; min-height: 24px; margin: 0 auto -5px; padding: 0; border: 0; background: transparent; color: var(--green-bright); font-size: 13px; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(70,212,122,.45); text-underline-offset: 3px; }
.auth-install-button:disabled { opacity: .65; cursor: wait; }
.auth-install-status { margin: 1px 2px 0; padding: 10px 11px; border: 1px solid rgba(241,199,91,.34); border-radius: 11px; background: rgba(241,199,91,.08); color: var(--warning); font-size: 12px; line-height: 1.4; }
.auth-install-status.is-success { border-color: rgba(45,190,100,.4); background: var(--green-soft); color: var(--green-bright); }

.app-shell { min-height: 100dvh; }
.topbar { --brand-size: 16px; position: sticky; z-index: 20; top: 0; height: calc(58px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; padding: env(safe-area-inset-top) 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(12,15,13,.88); backdrop-filter: blur(18px); }
.offline-badge { align-self: center; padding: 7px 9px; border-radius: 9px; background: #3a2e12; color: var(--warning); font-size: 11px; font-weight: 850; }
.menu-button, .brand-button, .round-button { border: 0; background: transparent; }
.menu-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-content: center; gap: 5px; padding: 0; border-radius: 12px; }
.menu-button span { width: 19px; height: 2px; display: block; border-radius: 2px; background: var(--text); }
.brand-button { height: 42px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 0 2px; white-space: nowrap; font-size: var(--brand-size); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.brand-divider { width: 6px; flex: 0 0 6px; color: var(--green); font-size: var(--brand-size); font-weight: 900; line-height: 1; letter-spacing: -.03em; text-align: center; }
.header-page-title { min-width: 0; flex: 1 1 auto; margin-left: 0; overflow: hidden; color: var(--text); font-size: var(--brand-size); font-weight: 900; line-height: 1; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.offline-badge { margin-left: auto; }
.page { width: min(100%, 760px); min-height: calc(100dvh - 58px); margin: 0 auto; padding: 32px 18px max(36px, calc(env(safe-area-inset-bottom) + 20px)); }
.page-home { padding-top: 18px; background: var(--page); }
.data-freshness-widget { max-width: 580px; margin: 0 0 13px; padding: 12px 14px; border: 1px solid rgba(241,199,91,.5); border-radius: 15px; background: rgba(241,199,91,.1); color: #ffd46d; font-size: 13px; font-weight: 800; line-height: 1.4; }
.home-quick-links { max-width: 580px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.home-quick-links button { min-height: 76px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(45,190,100,.32); border-radius: 15px; background: linear-gradient(145deg, #18231b, #111612); color: #eff7f1; font-size: 14px; font-weight: 850; line-height: 1.25; text-align: center; }
.home-quick-links button:active { background: var(--green-soft); }
.weather-widget { max-width: 580px; padding: 15px 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.weather-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 12px; }
.weather-widget-head strong { font-size: 15px; }
.weather-widget-head small { color: var(--muted); font-size: 10px; }
.weather-widget .content-message { margin: 5px 2px; }
.weather-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.weather-slot { display: grid; grid-template-rows: 17px 31px 28px minmax(26px, 1fr); justify-items: center; align-items: center; gap: 3px; min-height: 120px; padding: 9px 3px; border: 1px solid var(--line); border-radius: 12px; background: #0f1410; text-align: center; }
.weather-slot time { color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.weather-slot .weather-icon { font-size: 25px; line-height: 1.1; }
.weather-slot strong { font-size: 19px; line-height: 1; }
.weather-slot small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 10vw, 54px); line-height: 1; letter-spacing: -.055em; }
.search-box { height: 50px; display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.search-box > span { color: var(--green-bright); font-size: 22px; }
.search-box input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.people-list { display: grid; gap: 10px; margin-top: 17px; }
.person-card { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.person-card > div { min-width: 0; display: grid; gap: 5px; }
.person-card .person-details { flex: 1 1 0; }
.person-card strong { font-size: 16px; overflow-wrap: anywhere; }
.person-card span { color: var(--muted); font-size: 13px; }
.person-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.person-card .person-contact-row { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.person-card .person-contact-info { min-width: 0; display: grid; justify-items: start; gap: 5px; }
.person-card .person-contact-info.is-courier { min-height: 39px; align-content: space-between; }
.person-card .person-contact-row > .call-button { align-self: end; }
.person-card .active-tag { width: fit-content; justify-self: start; padding: 3px 6px; border: 1px solid rgba(241,199,91,.68); border-radius: 6px; color: var(--warning); font-size: 10px; font-weight: 850; line-height: 1; }
.phone-copy { width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--green-bright); font-size: 13px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.phone-copy.is-copied { color: var(--text); }
.person-phone-missing { color: var(--muted); font-size: 13px; }
.person-actions { flex: 0 0 auto; display: flex !important; align-items: center; gap: 5px !important; margin-left: auto; }
.call-button { flex: 0 0 auto; display: grid; place-items: center; min-height: 39px; padding: 0 11px; border: 1px solid rgba(45,190,100,.4); border-radius: 11px; background: var(--green-soft); color: var(--green-bright); font-size: 12px; font-weight: 800; text-decoration: none; }
.person-card > .call-button { align-self: center; margin-left: auto; }
#page-help { padding-top: 16px; }
#page-help .person-card { min-height: 66px; padding-block: 10px; }
#page-help .person-details { gap: 3px; }
.contact-section { margin-top: 18px; }
.contact-section:first-child { margin-top: 0; }
.contact-section h2 { margin: 0; font-size: 19px; }
.contact-section .people-list { margin-top: 12px; }
body.chat-page-active { position: fixed; inset: 0; width: 100%; height: var(--chat-viewport-height, 100dvh); overflow: hidden; overscroll-behavior: none; touch-action: none; }
.chat-page-active .app-shell { height: var(--chat-viewport-height, 100dvh); overflow: hidden; }
.page-chat { position: fixed; z-index: 5; top: calc(var(--chat-viewport-top, 0px) + 58px + env(safe-area-inset-top)); left: 50%; width: min(100%, 760px); height: calc(var(--chat-viewport-height, 100dvh) - 58px - env(safe-area-inset-top)); min-height: 0; display: flex; flex-direction: column; margin: 0; padding-top: 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); overflow: hidden; background: var(--page); transform: translateX(-50%); }
.chat-list-view, .chat-thread-view { min-height: 0; flex: 1 1 auto; }
.chat-list-view { overflow-y: auto; overscroll-behavior: none; touch-action: pan-y; -webkit-overflow-scrolling: auto; }
.chat-thread-view { display: flex; flex-direction: column; }
.chat-search { margin-bottom: 12px; }
.chat-conversation-list, .chat-people-list { display: grid; gap: 7px; }
.conversation-card { width: 100%; min-height: 69px; display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; }
.conversation-emblem { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 50%; background: #273229; color: var(--green-bright); font-size: 21px; font-weight: 900; }
.conversation-emblem.is-pinned { background: var(--green-soft); }
.conversation-main { min-width: 0; flex: 1; display: grid; gap: 4px; }
.conversation-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-main small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-side { min-width: 25px; align-self: stretch; display: grid; align-content: space-between; justify-items: end; }
.conversation-side time { color: var(--muted); font-size: 10px; }
.conversation-unread { color: var(--green-bright); font-size: 16px; font-style: normal; line-height: 1; }
.chat-thread-head { min-height: 46px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.chat-thread-head button { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--green-bright); }
.chat-thread-head button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-thread-avatar { display: none; }
.chat-thread-identity { min-width: 0; flex: 1 1 auto; display: flex; align-items: baseline; gap: 9px; }
.chat-thread-identity strong { min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-identity > span { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.chat-thread-head .chat-group-settings { margin-left: auto; }
.modal.chat-members-modal { max-height: min(82dvh, 680px); display: flex; flex-direction: column; overflow: hidden; }
.modal.chat-members-modal .modal-head { flex: 0 0 auto; margin-bottom: 8px; }
.modal.chat-members-modal .modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.modal.chat-members-modal > .content-message { flex: 0 0 auto; min-height: 0; margin: 5px 0; }
.chat-members-list { min-height: 0; display: grid; gap: 2px; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.chat-member-card { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 8px 3px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-member-card:last-child { border-bottom: 0; }
.chat-member-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #267f4d, #1e5d3b); color: #fff; font-size: 13px; font-weight: 900; }
.chat-member-identity { min-width: 0; display: grid; gap: 3px; }
.chat-member-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-identity span { color: var(--muted); font-size: 12px; }
.chat-day-separator { justify-self: center; margin: 8px 0 3px; padding: 5px 10px; border-radius: 20px; background: #253027; color: #dce8de; font-size: 11px; font-weight: 800; }
.chat-day-modern { display: none; }
.chat-bubble img { cursor: zoom-in; }
.open-media-button { margin-top: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--green-bright); font-size: 12px; }
.chat-media-viewer { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 54px 12px 16px; overflow: hidden; background: rgba(0,0,0,.94); touch-action: none; }
.chat-media-viewer > button { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 25px; }
.chat-media-viewer img, .chat-media-viewer video { max-width: 100%; max-height: calc(100dvh - 80px); object-fit: contain; transform-origin: center; will-change: transform; }
.chat-media-viewer > div { max-width: 100%; max-height: 100%; }
.chat-reply-preview { margin: 1px 0 5px; padding: 5px 8px; overflow: hidden; border-left: 3px solid #68d990; border-radius: 6px; background: rgba(0,0,0,.14); }
.chat-reply-preview strong, .chat-reply-preview span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-preview strong { color: #a8ebbf; font-size: 11px; }
.chat-reply-preview span { margin-top: 2px; color: rgba(244,248,245,.75); font-size: 11px; }
.chat-reply-draft { grid-column: 1 / -1; grid-area: reply; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px 7px 11px; border-left: 3px solid var(--green); border-radius: 9px; background: #18211a; }
.chat-reply-draft > div { min-width: 0; display: grid; gap: 2px; }
.chat-reply-draft strong, .chat-reply-draft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-draft strong { color: var(--green-bright); font-size: 11px; }
.chat-reply-draft span { color: var(--muted); font-size: 11px; }
.chat-reply-draft button { width: 29px; height: 29px; flex: 0 0 29px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--muted); font-size: 21px; }
.chat-message-menu { position: fixed; z-index: 100; right: 12px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px)); left: 12px; max-width: 420px; margin: auto; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(28,33,29,.98); box-shadow: 0 18px 55px rgba(0,0,0,.55); backdrop-filter: blur(18px); }
.chat-message-menu button { width: 100%; min-height: 47px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font-size: 15px; font-weight: 750; text-align: left; }
.chat-message-menu button:active { background: rgba(255,255,255,.06); }
.chat-message-menu button span { width: 24px; color: var(--green-bright); font-size: 20px; text-align: center; }
.chat-message-menu button.danger, .chat-message-menu button.danger span { color: var(--danger); }
.chat-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 0 0 auto; margin-top: 0; padding: 4px; border-radius: 14px; background: #090c0a; }
.chat-tabs button { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.chat-tabs button.is-active { background: var(--surface-2); color: var(--text); }
.chat-tabs button span { color: var(--green); }
.load-older { width: fit-content; min-height: 35px; margin-top: 12px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; }
.chat-messages { display: grid; align-content: start; gap: 10px; flex: 1 1 auto; min-height: 0; margin-top: 13px; padding: 2px 0 10px; overflow-y: auto; }
.chat-bubble { width: fit-content; max-width: min(90%, 540px); justify-self: start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 15px 15px 15px 4px; background: var(--surface); }
.chat-bubble.is-own { justify-self: end; margin-left: auto; border-color: rgba(45,190,100,.28); border-radius: 15px 15px 4px 15px; background: #17251a; }
.chat-bubble-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.chat-bubble-head strong { font-size: 13px; }
.chat-bubble-head small { color: var(--green-bright); font-size: 11px; }
.chat-bubble p { margin: 7px 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble img, .chat-bubble video { display: block; max-width: 100%; max-height: 310px; margin-top: 9px; border-radius: 9px; }
.chat-bubble audio { display: block; width: min(280px, 72vw); margin-top: 7px; }
.chat-bubble video.is-video-circle { width: min(240px, 64vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.chat-bubble-footer { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 7px; color: var(--muted); font-size: 10px; text-align: right; }
.chat-bubble-footer time { color: inherit; font-size: inherit; }
.chat-message-state { color: var(--green-bright); font-size: 12px; font-weight: 900; line-height: 1; }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) 42px 42px; gap: 7px; align-items: end; flex: 0 0 auto; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: #101411; }
.chat-composer textarea { min-width: 0; min-height: 44px; max-height: 96px; padding: 10px; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font-size: 16px; }

.return-form { display: grid; gap: 12px; max-width: 580px; }
.return-form label { display: grid; gap: 7px; }
.return-form label > span { color: #b7beb8; font-size: 12px; font-weight: 700; }
.return-form input, .return-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #0d110e; color: var(--text); }
.return-form input:not([type=file]) { height: 49px; padding: 0 14px; font-size: 16px; }
.return-form textarea { min-height: 112px; padding: 12px 14px; resize: vertical; font-size: 16px; }
.return-form input:focus, .return-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,190,100,.1); }
.return-photo { cursor: pointer; }
.return-photo-picker { min-height: 86px; display: grid; place-content: center; gap: 6px; padding: 14px; border: 1px dashed #48504a; border-radius: 13px; background: #202522; text-align: center; transition: border-color .16s ease, background .16s ease; }
.return-photo-picker strong { color: #e7ebe7; font-size: 14px; }
.return-photo-picker small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; }
.return-photo:hover .return-photo-picker, .return-photo:focus-within .return-photo-picker, .return-photo-picker.has-file { border-color: rgba(45,190,100,.62); background: #202b23; }
.return-photo-open { padding: 0; border: 0; background: transparent; color: var(--green-bright); font-size: inherit; font-weight: 750; }
.return-form .form-hint { margin-top: 0; }
.return-form .form-message { margin: 0; min-height: 0; }
.return-form .form-message:empty { display: none; }
.return-form .primary-button { margin-top: 0; }
.chat-composer .primary-action { min-height: 42px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 850; }
.chat-composer .primary-action:disabled { opacity: .55; }
.chat-composer .send-button { display: grid; place-items: center; width: 42px; min-height: 42px; padding: 0; }
.send-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.attach-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.attach-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-5deg); }
.chat-file-name { grid-column: 1 / -1; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.chat-record-button { width: 36px; height: 36px; align-self: center; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; background: #171b18; color: var(--green-bright); font-size: 17px; line-height: 1; }
.chat-record-button.is-recording { border-color: var(--danger); background: rgba(255,115,115,.15); color: var(--danger); animation: record-pulse 1s ease-in-out infinite; }
.chat-record-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 9px 12px; align-items: center; padding: 10px; border: 1px solid rgba(45,190,100,.28); border-radius: 14px; background: #141a16; }
.chat-record-preview { grid-row: 1 / span 2; width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #0b0f0c; }
.chat-record-preview video, .chat-record-draft, .chat-record-draft video { width: 100%; height: 100%; }
.chat-record-preview video, .chat-record-draft video { display: block; border-radius: 50%; object-fit: cover; }
.chat-record-draft audio { width: 100%; min-width: 0; height: 40px; }
.chat-record-draft.has-audio { width: 100%; height: auto; overflow: visible; border-radius: 0; }
.chat-record-panel.is-audio { grid-template-columns: minmax(0, 1fr); }
.chat-record-panel.is-audio .chat-record-preview { grid-row: auto; width: 100%; height: 54px; border-radius: 11px; }
.chat-record-pulse { width: 34px; height: 34px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 9px rgba(255,115,115,.12); animation: record-pulse 1s ease-in-out infinite; }
.chat-record-details { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-record-details strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.chat-record-details span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800; }
.chat-record-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.chat-record-actions button { min-height: 34px; padding: 0 10px; border-radius: 9px; font-size: 11px; font-weight: 800; }
.chat-record-control { border: 1px solid rgba(45,190,100,.35); background: var(--green-soft); color: var(--green-bright); }
.chat-record-delete { border: 1px solid rgba(255,115,115,.34); background: rgba(255,115,115,.08); color: var(--danger); }
@keyframes record-pulse { 50% { transform: scale(.9); opacity: .7; } }

/* Второй дизайн чата: знакомая мобильная геометрия без неработающих элементов. */
.chat-style-modern .chat-search { height: 42px; margin: 1px 2px 10px; border-color: transparent; border-radius: 12px; background: #171b18; }
.chat-style-modern .chat-search > span { color: #7f8982; }
.chat-style-modern .chat-search input { height: 40px; font-size: 16px; }
.chat-style-modern .chat-conversation-list,
.chat-style-modern .chat-people-list { gap: 0; }
.chat-style-modern .conversation-card { min-height: 72px; gap: 12px; padding: 9px 3px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); border-radius: 0; background: transparent; }
.chat-style-modern .conversation-card:active { background: rgba(255,255,255,.035); }
.chat-style-modern .conversation-emblem { width: 52px; height: 52px; flex-basis: 52px; border: 0; background: linear-gradient(145deg, #28352d, #1b241e); color: #8eeba9; font-size: 21px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.chat-style-modern .conversation-emblem.is-pinned { background: linear-gradient(145deg, #267f4d, #1f5e3d); color: #fff; }
.chat-style-modern .conversation-card[data-channel="urgent"] .conversation-emblem { background: linear-gradient(145deg, #a46719, #68400f); }
.chat-style-modern .conversation-card[data-channel="returns"] .conversation-emblem { background: linear-gradient(145deg, #477d77, #28524e); }
.chat-style-modern .conversation-card[data-channel="seniors"] .conversation-emblem { background: linear-gradient(145deg, #536b2d, #31451e); }
.chat-style-modern .conversation-main { gap: 5px; }
.chat-style-modern .conversation-main strong { color: #f4f7f4; font-size: 16px; letter-spacing: -.015em; }
.chat-style-modern .conversation-main small { color: #8d9690; font-size: 13px; }
.chat-style-modern .conversation-side { min-width: 35px; padding: 3px 1px; }
.chat-style-modern .conversation-side time { color: #7e8981; font-size: 11px; }
.chat-style-modern .conversation-unread { width: 20px; height: 20px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--green); color: transparent; font-size: 0; }
.chat-style-modern .conversation-unread::after { width: 5px; height: 5px; border-radius: 50%; background: #07120a; content: ""; }

.chat-style-modern.chat-thread-open .topbar { display: none; }
.chat-style-modern.chat-thread-open .page-chat { top: var(--chat-viewport-top, 0px); width: min(100%, 760px); height: var(--chat-viewport-height, 100dvh); padding: 0; background: var(--page); }
.chat-style-modern.chat-thread-open .chat-thread-view { height: 100%; min-height: 0; flex: 1 1 0; overflow: hidden; }
.chat-style-modern .chat-thread-head { min-height: calc(62px + env(safe-area-inset-top)); gap: 10px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; border-bottom-color: rgba(255,255,255,.07); background: rgba(14,18,15,.94); backdrop-filter: blur(20px); }
.chat-style-modern .chat-thread-head button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; background: rgba(31,36,32,.85); color: #f3f6f3; }
.chat-style-modern .chat-thread-head button svg { width: 26px; height: 26px; stroke-width: 2.3; }
.chat-style-modern .chat-thread-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; margin: 0; border-radius: 50%; background: linear-gradient(145deg, #267f4d, #1e5d3b); color: #fff; font-size: 17px; font-weight: 900; }
.chat-style-modern .chat-thread-avatar[data-channel="urgent"] { background: linear-gradient(145deg, #a46719, #68400f); }
.chat-style-modern .chat-thread-avatar[data-channel="returns"] { background: linear-gradient(145deg, #477d77, #28524e); }
.chat-style-modern .chat-thread-avatar[data-channel="seniors"] { background: linear-gradient(145deg, #536b2d, #31451e); }
.chat-style-modern .chat-thread-identity { display: grid; justify-items: start; gap: 3px; }
.chat-style-modern .chat-thread-identity strong { width: 100%; color: #f8faf8; font-size: 17px; line-height: 1.05; }
.chat-style-modern .chat-thread-identity > span { max-width: 100%; margin: 0; overflow: hidden; color: #89938c; font-size: 12px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.chat-style-modern .load-older { align-self: center; min-height: 31px; margin: 9px 0 0; border-color: rgba(255,255,255,.1); border-radius: 16px; background: rgba(20,24,21,.9); color: #b3bbb5; }
.chat-style-modern .chat-messages { gap: 3px; min-height: 0; flex: 1 1 0; margin-top: 0; padding: 10px 8px 8px; overflow-anchor: none; overscroll-behavior-y: none; scroll-behavior: auto; touch-action: pan-y; scrollbar-width: none; }
.chat-style-modern .chat-messages::-webkit-scrollbar { display: none; }
.chat-style-modern .chat-day-group { min-width: 0; display: grid; gap: 3px; }
.chat-style-modern .chat-day-group + .chat-day-group { margin-top: 5px; }
.chat-style-modern .chat-day-separator { position: sticky; z-index: 3; top: 5px; width: 132px; height: 34px; display: grid; place-items: center; justify-self: center; margin: 8px 0 7px; padding: 0 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: #0b0e0c; box-shadow: 0 2px 9px rgba(0,0,0,.38); color: #edf1ed; font-size: 12px; line-height: 1; white-space: nowrap; }
.chat-style-modern .chat-day-classic { display: none; }
.chat-style-modern .chat-day-modern { display: inline; }
.chat-style-modern .chat-bubble { position: relative; max-width: min(86%, 570px); min-width: 62px; padding: 7px 10px 5px; border: 0; border-radius: 15px 15px 15px 5px; background: #181c19; box-shadow: 0 1px 1px rgba(0,0,0,.18); }
.chat-style-modern .chat-bubble::after { position: absolute; bottom: 0; left: -5px; width: 11px; height: 12px; background: #181c19; content: ""; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.chat-style-modern .chat-bubble.is-own { margin-left: auto; border: 0; border-radius: 15px 15px 5px 15px; background: #237b4d; }
.chat-style-modern .chat-bubble.is-own::after { right: -5px; left: auto; background: #237b4d; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.chat-style-modern .chat-bubble-head { gap: 6px; margin: 0 0 3px; }
.chat-style-modern .chat-bubble-head strong { color: #65d98c; font-size: 12px; }
.chat-style-modern .chat-bubble-head small { color: #8b958e; font-size: 10px; }
.chat-style-modern .chat-bubble.is-own .chat-bubble-head strong { color: #c9f5d7; }
.chat-style-modern .chat-bubble.is-own .chat-bubble-head small { color: rgba(224,247,231,.7); }
.chat-style-modern .chat-bubble p { margin: 1px 0; color: #f5f7f5; font-size: 16px; line-height: 1.28; }
.chat-style-modern .chat-bubble img,
.chat-style-modern .chat-bubble video { width: 100%; max-height: 420px; margin: 2px 0 4px; border-radius: 10px; object-fit: cover; }
.chat-style-modern .chat-bubble-footer { min-height: 14px; margin: 2px 0 0 14px; color: #919a94; font-size: 10px; line-height: 1; }
.chat-style-modern .chat-bubble.is-own .chat-bubble-footer { color: rgba(224,247,231,.7); }
.chat-style-modern .chat-message-state { color: #a8eac0; }
.chat-style-modern .open-media-button { border: 0; background: rgba(0,0,0,.16); color: #dcf7e5; }
.chat-style-modern .chat-composer { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "reply reply reply" "attach text send" "record record record" "file file file"; gap: 6px; flex: 0 0 auto; margin: 0; padding: 7px max(8px, env(safe-area-inset-right)) 7px max(8px, env(safe-area-inset-left)); overflow-anchor: none; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.chat-style-modern.chat-media-enabled .chat-composer { grid-template-columns: 42px 34px 34px minmax(70px, 1fr) 42px; grid-template-areas: "reply reply reply reply reply" "attach voice circle text send" "record record record record record" "file file file file file"; }
.chat-style-modern .chat-composer textarea { grid-area: text; height: 42px; min-height: 42px; max-height: 104px; padding: 10px 14px; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #1a1e1b; font-size: 16px; line-height: 21px; }
.chat-style-modern .attach-button { grid-area: attach; width: 42px; height: 42px; border-color: rgba(255,255,255,.14); border-radius: 50%; background: #171b18; color: #eef3ef; }
.chat-style-modern #chat-voice-button { grid-area: voice; }
.chat-style-modern #chat-circle-button { grid-area: circle; }
.chat-style-modern .chat-record-panel { grid-area: record; }
.chat-style-modern .chat-composer .send-button { grid-area: send; width: 42px; height: 42px; min-height: 42px; border-radius: 50%; color: #07120a; }
.chat-style-modern .chat-composer .send-button svg { width: 20px; height: 20px; }
.chat-style-modern .chat-file-name { grid-area: file; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 9px; background: rgba(45,190,100,.12); color: #9de4b5; font-size: 11px; }
.chat-send-status { flex: 0 0 auto; margin: 4px 9px 0; padding: 7px 10px; border: 1px solid rgba(241,199,91,.4); border-radius: 10px; background: rgba(241,199,91,.1); color: var(--warning); font-size: 12px; font-weight: 750; line-height: 1.3; }
.chat-send-status.is-error { border-color: rgba(255,115,115,.5); background: rgba(255,115,115,.1); color: var(--danger); }
.chat-send-status.is-warning { color: var(--warning); }
.chat-send-status:empty { display: none; }
.notification-setup { position: fixed; z-index: 45; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; max-width: 430px; margin: 0 auto; padding: 16px; border: 1px solid rgba(45,190,100,.4); border-radius: 17px; background: #18221a; box-shadow: 0 18px 55px #000b; }
.notification-setup strong { font-size: 16px; }
.notification-setup p { margin: 8px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.notification-setup .notification-setup-error { color: var(--danger); }
.notification-setup > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notification-setup.is-info > div { grid-template-columns: 1fr; }
.notification-setup button { min-height: 42px; margin: 0; border-radius: 10px; }
.zone-tabs { display: flex; gap: 7px; margin: 0 -18px 0; padding: 0 18px 4px; overflow-x: auto; scrollbar-width: none; }
.zone-tabs::-webkit-scrollbar { display: none; }
.zone-tabs button { min-height: 42px; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800; }
.zone-tabs button.is-active { border-color: rgba(45,190,100,.48); background: var(--green-soft); color: var(--green-bright); }
.domophone-search { margin-top: 12px; }
.domophone-list { display: grid; gap: 10px; margin-top: 18px; }
.address-group { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: border-color .2s ease; }
.address-group.is-open { border-color: rgba(45,190,100,.36); }
.address-toggle { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 0; background: transparent; text-align: left; }
.address-heading { min-width: 0; display: block; }
.address-heading strong { font-size: 16px; line-height: 1.25; }
.address-arrow { position: relative; width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #0c100d; transition: transform .2s ease; }
.address-arrow::before { width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--green-bright); border-bottom: 2px solid var(--green-bright); content: ""; transform: rotate(45deg); }
.address-toggle[aria-expanded="true"] .address-arrow { transform: rotate(180deg); }
.address-panel { display: grid; border-top: 1px solid var(--line); }
.domophone-entry { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: #111512; }
.domophone-entry:last-child { border-bottom: 0; }
.domophone-entry h2 { margin: 0 0 9px; color: #c9d0ca; font-size: 13px; line-height: 1.25; }
.code-row { display: flex; align-items: center; gap: 12px; }
.code-row code { color: var(--green-bright); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 21px; font-weight: 850; letter-spacing: .04em; overflow-wrap: anywhere; }
.domophone-entry.needs-check { box-shadow: inset 3px 0 0 var(--warning); }
.domophone-note { margin: 13px 0 0; color: #bcc3bd; font-size: 13px; line-height: 1.45; }
.content-message { min-height: 0; margin-top: 14px; color: var(--muted); font-size: 13px; }
.content-message:empty { display: none; }
.domophone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.domophone-actions button { min-height: 50px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 850; }
.page-schedule { width: min(100%, 920px); padding-top: 18px; }
.schedule-head { display: grid; gap: 4px; margin-bottom: 14px; }
.schedule-head small { color: var(--muted); font-size: 12px; }
.schedule-week-picker { display: grid; gap: 6px; }
.schedule-week-picker span { color: var(--muted); font-size: 11px; font-weight: 800; }
.schedule-week-picker select { width: 100%; height: 46px; padding: 0 38px 0 13px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--surface); color: var(--text); font-size: 16px; font-weight: 800; }
.schedule-week-picker select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,190,100,.1); }
.schedule-list { display: grid; gap: 11px; margin-top: 16px; }
.schedule-card { min-width: 0; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.schedule-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.schedule-card-head strong { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.schedule-card-head a { flex: 0 0 auto; color: var(--green-bright); font-size: 11px; text-decoration: none; }
.schedule-week-strip { display: grid; grid-template-columns: repeat(7, minmax(68px, 1fr)); gap: 5px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.schedule-day { min-height: 72px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 10px; background: #0f1410; text-align: center; }
.schedule-day small { color: var(--muted); font-size: 10px; font-weight: 850; }
.schedule-day span { font-size: 11px; font-weight: 800; line-height: 1.2; white-space: pre-line; }
.schedule-day.is-work { border-color: rgba(45,190,100,.42); background: rgba(45,190,100,.1); }
.schedule-day.is-off { border-color: rgba(241,199,91,.52); background: rgba(241,199,91,.1); color: #ffe08b; }
.schedule-day.is-leave { border-color: rgba(83,190,222,.52); background: rgba(83,190,222,.1); color: #9ee8ff; }
.schedule-day.is-absence { border-color: rgba(255,115,115,.55); background: rgba(255,115,115,.1); color: #ffaaaa; }
.schedule-day.is-note { border-color: #455047; }
.schedule-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.home-schedule-widget { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.home-schedule-head, .schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-limits-widget { margin-top: 14px; padding: 14px; border: 1px solid rgba(241,199,91,.34); border-radius: 18px; background: var(--surface); }
.home-limits-widget h2 { margin: 0 0 11px; font-size: 15px; }
.home-schedule-days, .schedule-my-week { display: grid; grid-template-columns: repeat(7, minmax(82px, 1fr)); gap: 7px; overflow-x: auto; padding: 4px 0 3px; scrollbar-width: thin; }
.schedule-head { margin-bottom: 14px; }
.schedule-head .schedule-week-picker { min-width: 0; flex: 1; }
.schedule-add-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(45,190,100,.5); border-radius: 50%; background: var(--green-soft); color: var(--green-bright); }
.schedule-add-button span { display: block; margin-top: -2px; font-size: 29px; font-weight: 400; line-height: 1; }
.schedule-add-button:active { background: rgba(45,190,100,.22); }
.my-schedule-panel, .schedule-team-section { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.my-schedule-panel > strong, .schedule-team-section h2 { display: block; margin: 0 0 11px; font-size: 15px; }
.schedule-personal-day { min-height: 78px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: #0f1410; color: var(--text); text-align: center; }
.schedule-personal-day small, .schedule-personal-day strong { display: block; }
.schedule-personal-day small { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.schedule-personal-day strong { font-size: 11px; line-height: 1.3; }
.schedule-personal-day.is-work { border-color: rgba(45,190,100,.42); background: rgba(45,190,100,.09); }
.schedule-personal-day.is-day-off { border-color: rgba(241,199,91,.46); color: #ffe08b; }
.schedule-personal-day.is-sick { border-color: rgba(255,115,115,.48); color: #ffaaaa; }
.schedule-personal-day.is-vacation { border-color: rgba(83,190,222,.48); color: #9ee8ff; }
.schedule-grid-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
.schedule-team-grid { width: 100%; min-width: 780px; border-collapse: collapse; }
.schedule-team-grid th, .schedule-team-grid td { padding: 10px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; text-align: center; }
.schedule-team-grid thead th { background: #111612; color: var(--muted); }
.schedule-team-grid th:first-child { width: 128px; min-width: 128px; max-width: 128px; background: #111612; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.schedule-team-grid th strong, .schedule-team-grid th small { display: block; }
.schedule-team-grid th small { margin-top: 4px; color: var(--muted); }
.schedule-team-grid tbody tr { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.schedule-team-grid tbody tr.is-selected > * { background-color: rgba(45,190,100,.16); box-shadow: inset 0 1px rgba(70,212,122,.26), inset 0 -1px rgba(70,212,122,.26); }
.schedule-team-grid tbody tr:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.schedule-team-grid td.is-work { background: rgba(45,190,100,.08); }
.schedule-team-grid td.is-day-off { background: rgba(241,199,91,.08); color: #ffe08b; }
.schedule-team-grid td.is-sick { background: rgba(255,115,115,.08); color: #ffaaaa; }
.schedule-team-grid td.is-vacation { background: rgba(83,190,222,.08); color: #9ee8ff; }
.schedule-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-date-range label { min-width: 0; }
.schedule-date-range input { min-width: 0; }

.limits-section + .limits-section { margin-top: 22px; }
.limits-section h2 { margin: 0 0 11px; font-size: 15px; }
.limits-list { display: grid; gap: 10px; }
.limit-card { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.limit-card.is-active { border-color: rgba(241,199,91,.42); }
.limit-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.limit-card-heading strong, .limit-card-heading small { display: block; }
.limit-card-heading small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.limit-value { flex: 0 0 auto; color: var(--green-bright); font-size: 14px; font-weight: 900; }
.limit-status { display: inline-block; margin-top: 10px; padding: 5px 8px; border-radius: 8px; background: #202520; color: var(--muted); font-size: 10px; font-weight: 900; }
.limit-status.is-active { background: rgba(241,199,91,.12); color: #ffe08b; }
.limit-comment { margin: 11px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.limit-meta { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.limits-empty { margin: 0; padding: 18px 14px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.limit-form { display: grid; gap: 13px; }
.limit-form label { display: grid; gap: 7px; }
.limit-form label > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.limit-form input, .limit-form select, .limit-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--surface); color: var(--text); font: inherit; }
.limit-form input, .limit-form select { height: 48px; padding: 0 13px; }
.limit-form select { appearance: none; -webkit-appearance: none; padding: 0 50px 0 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346d47a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 17px center; background-repeat: no-repeat; background-size: 16px; }
.limit-form textarea { min-height: 100px; padding: 13px; resize: vertical; }
.limit-form input:focus, .limit-form select:focus, .limit-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,190,100,.1); }
.limit-expiry-preview { margin: -4px 0 0; color: #ffe08b; font-size: 11px; line-height: 1.4; }
.limit-form .primary-button { width: 100%; }
.stats-page { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
.stats-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.stats-controls label, .stats-control { width: 100%; min-width: 0; max-width: 100%; display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.stats-controls .stats-wide { grid-column: auto; }
.stats-controls input, .stats-controls select { width: 100%; min-width: 0; max-width: 100%; height: 46px; margin: 0; padding: 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; outline: 0; background-color: var(--surface); color: var(--text); font-size: 16px; }
.stats-controls input[type="date"], .stats-controls input[type="time"] { display: block; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; min-height: 46px; appearance: none; -webkit-appearance: none; line-height: 44px; }
.stats-controls input[type="date"]::-webkit-date-and-time-value,
.stats-controls input[type="time"]::-webkit-date-and-time-value { width: 100%; min-width: 0; height: 44px; display: flex; align-items: center; margin: 0; padding: 0; text-align: left; }
.stats-controls input[type="date"]::-webkit-datetime-edit,
.stats-controls input[type="time"]::-webkit-datetime-edit { min-width: 0; height: 44px; display: flex; align-items: center; padding: 0; line-height: 44px; }
.stats-controls input[type="date"]::-webkit-calendar-picker-indicator,
.stats-controls input[type="time"]::-webkit-calendar-picker-indicator { margin: 0; padding: 7px 2px 7px 10px; opacity: .75; }
.stats-controls select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346d47a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 15px center; background-repeat: no-repeat; }
.stats-courier-picker { position: relative; width: 100%; min-width: 0; max-width: 100%; }
.stats-courier-picker > input { padding-right: 48px; }
.stats-courier-toggle { position: absolute; z-index: 2; top: 0; right: 0; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--green-bright); }
.stats-courier-toggle i { width: 16px; height: 16px; display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346d47a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat; transition: transform .16s ease; }
.stats-courier-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.stats-courier-options { position: absolute; z-index: 35; top: calc(100% + 6px); right: 0; left: 0; max-height: 240px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #111512; box-shadow: 0 18px 45px rgba(0,0,0,.5); }
.stats-courier-options button { width: 100%; min-height: 39px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.stats-courier-options button:active, .stats-courier-options button:focus-visible { background: var(--green-soft); color: var(--green-bright); outline: 0; }
.stats-courier-options .stats-picker-empty { display: block; padding: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.stats-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
#orders-summary .stat-card:last-child { grid-column: 1 / -1; }
.stat-card { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-card strong { color: var(--green-bright); font-size: 24px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stats-chart { display: flex; align-items: end; gap: 7px; min-height: 154px; margin-top: 15px; padding: 10px 8px 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-bar-column { height: 130px; min-width: 34px; flex: 1 0 34px; display: grid; grid-template-rows: minmax(0, 1fr) 14px; justify-items: center; align-items: end; gap: 3px; }
.stat-bar-track { width: 100%; height: 100%; display: flex; align-items: end; justify-content: center; padding-top: 16px; }
.stat-bar-stack { position: relative; width: min(100%, 22px); min-height: 3px; }
.stat-bar-column .stat-bar { width: 100%; height: 100%; border-radius: 5px 5px 2px 2px; background: var(--green); }
.stat-bar-value { position: absolute; right: 50%; bottom: calc(100% + 3px); color: var(--text); font-size: 10px; line-height: 1; white-space: nowrap; transform: translateX(50%); }
.stat-bar-column span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.stats-hide-bar-values .stat-bar-value { display: none; }
.stats-list { display: grid; gap: 8px; margin-top: 15px; }
.stats-export { min-height: 36px; margin-top: 12px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--green-bright); font-size: 12px; font-weight: 800; }
.stats-row, .complaint-row { padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stats-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.stats-row strong { font-size: 13px; overflow-wrap: anywhere; }
.stats-row span { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.complaint-row summary { position: relative; padding-right: 32px; list-style: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.complaint-row summary::-webkit-details-marker { display: none; }
.complaint-row summary::after { position: absolute; top: 50%; right: 14px; width: 8px; height: 8px; border-right: 2px solid var(--green-bright); border-bottom: 2px solid var(--green-bright); content: ""; transform: translateY(-68%) rotate(45deg); transition: transform .16s ease; }
.complaint-row[open] summary::after { transform: translateY(-32%) rotate(225deg); }
.complaint-row small { display: block; margin-top: 8px; color: var(--green-bright); font-size: 11px; }
.complaint-row p { margin: 11px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.complaint-row .complaint-response { color: var(--muted); }
.complaint-row .complaint-order-context { color: #f2b662; }
.stats-hide-export .stats-export, .stats-hide-order-context .complaint-order-context { display: none; }

.stats-compact .stats-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats-compact #orders-summary .stat-card:last-child { grid-column: auto; }
.stats-compact .stat-card { gap: 4px; min-height: 72px; padding: 9px 7px; }
.stats-compact .stat-card strong { font-size: clamp(15px, 4.5vw, 19px); overflow-wrap: anywhere; }
.stats-compact .stat-card span { font-size: 10px; line-height: 1.2; }
.stats-compact .stats-chart { gap: 2px; min-height: 128px; padding: 8px 4px 5px; overflow-x: hidden; }
.stats-compact .stat-bar-column { height: 108px; min-width: 0; flex: 1 1 0; grid-template-rows: minmax(0, 1fr) 14px; gap: 3px; }
.stats-compact .stat-bar-stack { width: min(100%, 16px); }
.stats-compact .stat-bar-column .stat-bar { border-radius: 3px 3px 1px 1px; }
.stats-compact .stat-bar-value { font-size: clamp(7px, 2vw, 9px); }
.stats-compact .stat-bar-column span { visibility: hidden; font-size: 8px; }
.stats-compact .stat-bar-column:nth-child(4n + 1) span { visibility: visible; }
.stats-compact .stats-chart.is-dense .stat-bar-column span { visibility: hidden; }
.stats-compact .stats-chart.is-dense .stat-bar-column:first-child span,
.stats-compact .stats-chart.is-dense .stat-bar-column:last-child span { visibility: visible; }
.stats-compact .stats-list { gap: 5px; margin-top: 10px; }
.stats-compact .stats-row, .stats-compact .complaint-row { padding: 9px 10px; }

.page-tasks { padding-top: 18px; }
.tasks-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tasks-toolbar > div { min-width: 0; display: grid; gap: 3px; }
.tasks-toolbar strong { font-size: 19px; }
.tasks-toolbar small { color: var(--muted); font-size: 12px; }
.tasks-toolbar button { min-height: 42px; flex: 0 0 auto; padding: 0 13px; border-radius: 12px; font-size: 12px; font-weight: 850; }
.task-form { display: grid; gap: 11px; margin-top: 14px; padding: 14px; border: 1px solid rgba(45,190,100,.32); border-radius: 16px; background: var(--surface); }
.task-form label { display: grid; gap: 6px; }
.task-form label > span { color: #b7beb8; font-size: 12px; font-weight: 700; }
.task-form input, .task-form select, .task-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0d110e; color: var(--text); font-size: 16px; }
.task-form input, .task-form select { height: 46px; padding: 0 13px; }
.task-form select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346d47a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; }
.task-form textarea { min-height: 78px; padding: 11px 13px; resize: vertical; }
.task-form input:focus, .task-form select:focus, .task-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,190,100,.1); }
.task-form .form-message { margin: 0; min-height: 0; }
.task-form .form-message:empty { display: none; }
.task-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-form-actions button { min-height: 45px; margin: 0; border-radius: 12px; font-weight: 850; }
.tasks-list { display: grid; gap: 9px; margin-top: 15px; }
.task-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.task-card.is-complete { opacity: .62; }
.task-check { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #485249; border-radius: 50%; background: #0d110e; color: transparent; font-size: 18px; font-weight: 900; }
.task-card.is-complete .task-check { border-color: var(--green); background: var(--green); color: #07120a; }
.task-main { min-width: 0; display: grid; gap: 6px; }
.task-main strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.task-card.is-complete .task-main strong { text-decoration: line-through; }
.task-main p { margin: 0; color: #b8c0ba; font-size: 12px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.task-meta span { padding: 4px 7px; border-radius: 7px; background: rgba(45,190,100,.11); color: var(--green-bright); font-size: 10px; font-weight: 800; }
.task-meta .is-overdue { background: rgba(255,115,115,.11); color: #ff9d9d; }
.task-delete { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #8e9790; font-size: 20px; line-height: 1; }
.task-delete:active { background: rgba(255,115,115,.1); color: var(--danger); }
.secondary-action { border: 1px solid var(--line); background: var(--surface); color: #d8ddd8; }
.primary-action { border: 0; background: var(--green); color: #07120a; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: end center; padding-top: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal { width: min(100%, 520px); max-height: calc(100dvh - 20px); overflow-y: auto; padding: 22px 18px max(24px, calc(env(safe-area-inset-bottom) + 12px)); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; background: #111512; box-shadow: 0 -20px 70px #0009; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.modal-close { width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; }
.modal form { display: grid; gap: 15px; }
.modal .form-message:empty { display: none; }
.modal .form-message { min-height: 0; margin: 0; }
.modal .modal-hint + .primary-button { margin-top: 0; }
#report-modal .modal-head, #add-code-modal .modal-head { margin-bottom: 14px; }
#report-modal .modal form, #add-code-modal .modal form { gap: 11px; }
.modal label { display: grid; gap: 7px; }
.modal label > span { color: #b7beb8; font-size: 12px; font-weight: 700; }
.modal input, .modal select, .modal textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #0d110e; }
.modal input, .modal select { height: 49px; padding: 0 34px 0 13px; }
.modal select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346d47a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; }
.modal textarea { min-height: 86px; padding: 12px 13px; resize: vertical; }
.modal-hint { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.menu-backdrop { position: fixed; z-index: 39; inset: 0; width: 100vw; height: 100dvh; border: 0; outline: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(86vw, 340px); height: 100dvh; display: flex; flex-direction: column; padding: max(22px, calc(env(safe-area-inset-top) + 12px)) 16px max(32px, calc(env(safe-area-inset-bottom) + 22px)); border: 0; outline: 0; background: #101411; box-shadow: 24px 0 60px #0009; transform: translateX(-105%); transition: transform .24s ease; }
.drawer.is-open { transform: translateX(0); }
body.drawer-open { min-height: 100dvh; background: #101411; }
body.drawer-open.chat-page-active { height: 100dvh; min-height: 100dvh; }
body.drawer-open.chat-page-active .app-shell { height: 100dvh; overflow: visible; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 5px 4px 23px; }
.drawer-head strong { font-size: 20px; }
.round-button { position: relative; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.round-button::before, .round-button::after { position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transform-origin: center; }
.round-button::before { transform: translate(-50%, -50%) rotate(45deg); }
.round-button::after { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer-nav { min-height: 0; flex: 1 1 auto; display: grid; align-content: start; gap: 3px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.drawer-nav button { display: grid; gap: 3px; padding: 11px 15px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; }
.drawer-nav button span { font-size: 16px; font-weight: 800; }
.drawer-nav button i { color: var(--muted); font-size: 12px; font-style: normal; }
.drawer-nav button.is-active { border-color: rgba(45,190,100,.32); background: var(--green-soft); }
.drawer-spacer { flex: 0 0 12px; }
.install-button, .logout-button { min-height: 46px; border-radius: 13px; font-weight: 750; }
.install-button { margin-bottom: 8px; border: 0; background: var(--green); color: #07120a; }
.logout-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.settings-modal { display: grid; gap: 16px; }
.settings-modal .modal-head { margin-bottom: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.settings-row > div { min-width: 0; flex: 1; }
.settings-row strong { font-size: 14px; }
.settings-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.settings-row button { min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.password-change-button { width: 100%; margin: 0; }
.settings-switch { position: relative; width: 48px; height: 28px; flex: 0 0 48px; cursor: pointer; }
.settings-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.settings-switch i { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 999px; background: #0b0f0c; transition: border-color .16s ease, background .16s ease; }
.settings-switch i::after { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .16s ease, background .16s ease; }
.settings-switch input:checked + i { border-color: rgba(45,190,100,.6); background: var(--green-soft); }
.settings-switch input:checked + i::after { transform: translateX(20px); background: var(--green-bright); }
.settings-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(45,190,100,.16); }
.settings-version { margin: 0 2px; color: var(--muted); font-size: 12px; }
.settings-version strong { color: var(--text); }
.settings-logout { min-height: 44px; border: 1px solid rgba(255,115,115,.34); border-radius: 11px; background: rgba(255,115,115,.08); color: #ffaaaa; font-weight: 800; }

@media (max-width: 370px) { .auth-card { padding-inline: 16px; border-radius: 22px; } .name-grid { grid-template-columns: 1fr; } .page { padding-inline: 14px; } }
@media (max-width: 699px) { input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; } }
@media (max-width: 400px) { .topbar { --brand-size: 14px; gap: 5px; padding-inline: 9px; } .menu-button { width: 36px; flex-basis: 36px; } .offline-badge { font-size: 10px; padding: 6px; } .person-card { flex-wrap: wrap; } }
@media (min-width: 700px) { .auth-card { padding: 30px; } .page { padding-top: 48px; } .modal-backdrop { place-items: center; padding: 24px; } .modal { max-height: calc(100dvh - 48px); border-bottom: 1px solid var(--line); border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
