:root {
  --ink: #141c3a;
  --ink-soft: #46516d;
  --muted: #8992a8;
  --line: #e9edf4;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --gold: #ffd98a;
  --orange: #f5a83d;
  --violet: #7665d8;
  --blue: #4f91dd;
  --green: #35ae82;
  --red: #e76d74;
  --shadow: 0 12px 34px rgba(20, 28, 58, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(245,168,61,.42); outline-offset: 2px; }

.app-shell { max-width: 560px; min-height: 100vh; margin: 0 auto; background: var(--canvas); position: relative; overflow: hidden; }
.hidden { display: none !important; }
.login-shell { max-width: 560px; min-height: 100vh; margin: 0 auto; padding: 72px 20px 32px; background: var(--canvas); }
.login-shell h1 { max-width: 360px; }
.login-shell .form-card { margin-top: 28px; }
.topbar { height: 76px; padding: max(14px, env(safe-area-inset-top)) 20px 10px; display: flex; align-items: center; justify-content: space-between; background: rgba(246,247,251,.94); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand-button { display: flex; align-items: center; gap: 9px; background: transparent; text-align: left; padding: 0; }
.brand-mark { width: 39px; height: 39px; display: inline-grid; place-items: center; color: var(--ink); }
.brand-mark svg { width: 39px; height: 39px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: Georgia, serif; font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.role-pill, .header-counter, .native-label, .geo-lock, .admin-label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.72); font-size: 10px; white-space: nowrap; }
.status-dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(53,174,130,.12); }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(20,28,58,.08); position: relative; font-size: 21px; line-height: 1; }
.icon-button.small { width: 30px; height: 30px; box-shadow: none; background: transparent; color: var(--muted); font-size: 20px; }
.dark-icon { background: var(--ink); color: #fff; box-shadow: none; }
.notification-dot { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); border: 1px solid #fff; }
.main-content { padding: 15px 20px 112px; }
.screen { display: none; animation: rise .24s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { color: var(--muted); margin: 0 3px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 9px; font: 400 31px/1.05 Georgia, serif; letter-spacing: -.04em; }
h2 { font-size: 16px; letter-spacing: -.02em; }
.lead { margin-top: 9px; color: var(--muted); font-size: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 13px; }
.compact-heading { margin-top: 27px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: transparent; color: var(--orange); font-size: 12px; font-weight: 700; }
.text-button span { font-size: 16px; }

.hero-card { min-height: 220px; margin-top: 25px; position: relative; overflow: hidden; border-radius: 28px; color: #fff; background: radial-gradient(circle at 88% 8%, rgba(255,217,138,.25), transparent 25%), linear-gradient(135deg, #1b2550 0%, #141c3a 65%, #10152d 100%); box-shadow: 0 18px 42px rgba(20,28,58,.2); }
.hero-card-content { position: relative; z-index: 2; padding: 25px 24px; max-width: 355px; }
.hero-label { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 11px; }
.hero-status { margin-top: 12px; font: 400 25px/1.08 Georgia, serif; letter-spacing: -.03em; }
.hero-meta { margin-top: 8px; color: rgba(255,255,255,.64); font-size: 12px; }
.hero-moon { position: absolute; right: 31px; top: 35px; color: var(--gold); font-size: 52px; opacity: .86; text-shadow: 0 0 30px rgba(255,217,138,.45); transform: rotate(18deg); }
.hero-orbit { position: absolute; border: 1px solid rgba(255,217,138,.25); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 270px; height: 120px; right: -98px; top: 32px; }
.orbit-two { width: 310px; height: 142px; right: -118px; top: 21px; border-color: rgba(255,255,255,.12); }
.primary-button, .secondary-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 11px 17px; border-radius: 13px; font-size: 12px; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.primary-button { color: #fff; background: var(--ink); box-shadow: 0 8px 18px rgba(20,28,58,.17); }
.primary-button:active, .secondary-button:active, .quick-card:active, .module-row:active { transform: scale(.98); }
.primary-button span { font-size: 18px; font-weight: 400; }
.light-button { margin-top: 22px; color: var(--ink); background: #fff; box-shadow: none; }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card { min-height: 127px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 17px; border-radius: 20px; text-align: left; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.quick-card strong { font-size: 14px; }
.quick-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.quick-icon { position: absolute; right: 17px; top: 13px; font-size: 29px; font-weight: 200; }
.quick-location .quick-icon { color: var(--orange); }.quick-chat .quick-icon { color: var(--violet); }.quick-schedule .quick-icon { color: var(--blue); }.quick-docs .quick-icon { color: var(--green); }
.badge { position: absolute; right: 15px; bottom: 14px; min-width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--violet); border-radius: 50%; font-size: 10px; }
.notice-card, .info-strip, .note-card, .warning-card, .process-card, .location-audit, .notification-list, .profile-card { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.notice-card { margin-top: 10px; box-shadow: 0 7px 20px rgba(20,28,58,.04); }
.notice-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: var(--orange); background: #fff3df; border-radius: 10px; font-weight: 800; }
.muted-notice .notice-icon { color: var(--green); background: #e7f7f0; }.notice-card strong { font-size: 12px; }.notice-card p { margin-top: 4px; color: var(--muted); font-size: 10px; }.notice-card .icon-button { margin-left: auto; }

.screen-header { display: flex; align-items: center; gap: 13px; min-height: 58px; margin-bottom: 23px; }.screen-header > div { flex: 1; }.screen-header h1 { margin-top: 4px; font-size: 29px; }.screen-header > .icon-button, .screen-header > .header-counter, .screen-header > .admin-label, .screen-header > .native-label, .screen-header > .geo-lock { flex: 0 0 auto; }
.back-button { width: 35px; height: 35px; display: grid; place-items: center; background: transparent; color: var(--ink); font-size: 25px; font-weight: 200; }
.header-counter { color: var(--orange); border-color: #f8e2bf; background: #fffaf2; }.geo-lock, .native-label { font-size: 9px; color: var(--green); border-color: #cdeee0; background: #f3fcf8; }.admin-label { color: var(--violet); border-color: #dfdaf8; background: #faf9ff; }

.chat-tabs, .document-type-picker { display: flex; gap: 8px; padding: 4px; margin-bottom: 17px; border-radius: 13px; background: #e9edf4; }.chat-tab, .document-type { flex: 1; padding: 10px 8px; border-radius: 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }.chat-tab.active, .document-type.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(20,28,58,.08); }.chat-tab span { margin-left: 3px; color: var(--violet); }
.chat-list { display: flex; flex-direction: column; gap: 10px; }.chat-row { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }.chat-avatar { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, #7665d8, #a998ef); }.chat-avatar.orange { background: linear-gradient(135deg, #e89a34, #ffd98a); color: var(--ink); }.chat-avatar.gray { background: linear-gradient(135deg, #66718b, #abb4c7); }.chat-row-copy { min-width: 0; flex: 1; }.chat-row-copy strong { display: block; font-size: 13px; }.chat-row-copy p { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.chat-row-meta { align-self: flex-start; color: var(--muted); font-size: 9px; white-space: nowrap; }.chat-row-meta b { display: block; margin-top: 7px; margin-left: auto; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--violet); font-size: 9px; }.info-strip { margin-top: 22px; align-items: flex-start; background: #fdfaf3; border-color: #f6e7c7; }.info-strip > span { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--orange); border: 1px solid #f5c87d; font-size: 11px; }.info-strip p { flex: 1; color: var(--muted); font-size: 10px; line-height: 1.5; }.info-strip strong { color: var(--ink); }.info-strip .text-button { font-size: 11px; }
.chat-thread-panel { position: fixed; z-index: 25; inset: 76px 0 76px; max-width: 560px; margin: 0 auto; padding: 0 20px; background: var(--canvas); }.thread-header { min-height: 61px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }.thread-header > div { flex: 1; }.thread-header strong, .thread-header small { display: block; }.thread-header strong { font-size: 14px; }.thread-header small { margin-top: 3px; color: var(--muted); font-size: 10px; }.online-indicator { color: var(--green); font-size: 9px; }.message-list { height: calc(100% - 118px); overflow-y: auto; padding: 18px 3px; }.message { max-width: 82%; margin-bottom: 12px; padding: 10px 12px; border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 5px 15px rgba(20,28,58,.05); }.message.own { margin-left: auto; border-radius: 15px 15px 4px 15px; color: #fff; background: var(--ink); }.message-author { margin-bottom: 4px; color: var(--violet); font-size: 9px; font-weight: 800; }.message.own .message-author { color: var(--gold); }.message p { font-size: 12px; line-height: 1.4; }.message time { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; text-align: right; }.message.own time { color: rgba(255,255,255,.65); }.composer { display: flex; gap: 8px; align-items: center; min-height: 56px; }.composer input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: #fff; }.send-button { width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--orange); font-size: 20px; }

.schedule-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 19px; color: #fff; background: linear-gradient(135deg, #1b2550, #29366d); box-shadow: var(--shadow); }.schedule-summary span { display: block; color: rgba(255,255,255,.65); font-size: 11px; }.schedule-summary strong { display: block; margin-top: 7px; font: 400 22px Georgia, serif; }.calendar-mark { color: var(--gold) !important; font-size: 36px !important; }.schedule-list { display: flex; flex-direction: column; gap: 9px; margin-top: 17px; }.shift-row { display: flex; align-items: center; gap: 13px; padding: 14px 12px; border-bottom: 1px solid var(--line); }.shift-date { width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 5px 15px rgba(20,28,58,.06); text-align: center; }.shift-date b { font: 400 19px Georgia, serif; }.shift-date small { color: var(--muted); font-size: 8px; text-transform: uppercase; }.shift-copy { flex: 1; }.shift-copy strong { display: block; font-size: 13px; }.shift-copy p { margin-top: 4px; color: var(--muted); font-size: 11px; }.shift-kind { padding: 6px 8px; border-radius: 8px; color: var(--violet); background: #f1effd; font-size: 9px; font-weight: 800; }.shift-kind.day { color: var(--orange); background: #fff4e2; }.inline-form, .form-card { margin-top: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }.form-title { margin-bottom: 13px; font-size: 14px; font-weight: 800; }.inline-form label, .form-card label, .modal-card label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 700; }.inline-form input, .inline-form select, .form-card input, .form-card textarea, .modal-card input { width: 100%; display: block; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: #fbfcfe; font-size: 13px; }.inline-form .primary-button { width: 100%; margin-top: 3px; }.note-card { margin-top: 18px; align-items: flex-start; color: var(--muted); background: #fafbfe; }.note-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; color: var(--violet); border-radius: 8px; background: #eeecfb; font-size: 11px; }.note-card p { font-size: 11px; line-height: 1.5; }.note-card strong { color: var(--ink); }

.upload-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 19px; color: #fff; background: linear-gradient(135deg, #1b2550, #29366d); }.upload-orbit { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,217,138,.4); border-radius: 50%; color: var(--gold); font-size: 20px; }.upload-card > div:nth-child(2) { flex: 1; }.upload-card strong { font-size: 13px; }.upload-card p { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 10px; }.upload-button { position: relative; padding: 10px 11px; border-radius: 10px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }.document-type-picker { margin-top: 17px; }.document-preview { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 18px; border: 1px solid #dcefe7; border-radius: 15px; background: #f6fcf9; }.document-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #e5eee9; }.document-preview > div { flex: 1; min-width: 0; }.document-preview strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.document-preview p { margin: 4px 0; color: var(--muted); font-size: 9px; }.status-chip { display: inline-flex; padding: 4px 6px; border-radius: 6px; font-size: 8px; font-weight: 800; }.status-chip.pending { color: #9d6b1c; background: #fff0d0; }.muted-label { color: var(--muted); font-size: 10px; }.document-list { display: flex; flex-direction: column; gap: 9px; }.document-row { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-bottom: 1px solid var(--line); }.document-icon { width: 38px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--orange); background: #fff4df; font-size: 18px; }.document-row.banquet .document-icon { color: var(--violet); background: #f1effd; }.document-row > div:nth-child(2) { min-width: 0; flex: 1; }.document-row strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.document-row p { margin-top: 4px; color: var(--muted); font-size: 10px; }.document-row .status-chip { margin-top: 6px; }.process-card { display: block; margin-top: 21px; background: #fffdfa; border-color: #f4e9d4; }.process-line { display: flex; align-items: center; }.process-step { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #dfe3eb; border-radius: 50%; color: var(--muted); font-size: 10px; }.process-step.done, .process-step.active { color: #fff; border-color: var(--orange); background: var(--orange); }.process-step.active { box-shadow: 0 0 0 4px rgba(245,168,61,.15); }.process-connector { height: 1px; flex: 1; background: #e0e3ea; }.process-copy { margin-top: 11px; }.process-copy strong { font-size: 11px; }.process-copy p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.location-card { display: flex; align-items: center; gap: 15px; padding: 20px 16px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 15% 10%, rgba(255,217,138,.3), transparent 32%), linear-gradient(135deg, #1b2550, #141c3a); box-shadow: var(--shadow); }.location-radar { width: 66px; height: 66px; position: relative; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,217,138,.55); border-radius: 50%; color: var(--gold); font-size: 24px; }.location-radar:before, .location-radar:after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,217,138,.3); border-radius: 50%; }.location-radar:after { inset: 17px; border-color: rgba(255,217,138,.2); }.location-radar span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px rgba(255,217,138,.1); }.location-radar i { position: relative; z-index: 1; font-style: normal; }.location-card-copy { min-width: 0; }.status-label { display: block; color: var(--gold); font-size: 10px; font-weight: 800; }.location-card-copy strong { display: block; margin-top: 7px; font: 400 17px Georgia, serif; }.location-card-copy p { margin-top: 6px; color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.35; }.location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }.location-actions .primary-button, .location-actions .secondary-button { width: 100%; }.location-audit { display: block; margin-top: 25px; }.audit-title { display: flex; justify-content: space-between; align-items: center; }.audit-title strong { font-size: 13px; }.audit-title span { color: var(--muted); font-size: 10px; }.empty-state { padding: 21px 0 7px; color: var(--muted); font-size: 11px; }.audit-row { display: flex; gap: 10px; align-items: center; padding: 13px 0 2px; border-top: 1px solid var(--line); margin-top: 12px; }.audit-row > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }.audit-row.warning > span { background: var(--orange); }.audit-row strong { font-size: 11px; }.audit-row p { margin-top: 3px; color: var(--muted); font-size: 9px; }.audit-row time { margin-left: auto; color: var(--muted); font-size: 10px; }.warning-card { margin-top: 15px; align-items: flex-start; color: #956b2b; border-color: #f4e3c1; background: #fffbf3; }.warning-card > span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff0cf; color: var(--orange); font-weight: 800; font-size: 11px; }.warning-card p { font-size: 10px; line-height: 1.48; }.warning-card strong { color: var(--ink); }

.sms-intro, .notification-hero, .platform-banner { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }.sms-icon, .notification-bell, .platform-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: var(--orange); background: #fff3df; font-size: 22px; }.sms-intro strong, .notification-hero strong, .platform-banner strong { font-size: 12px; }.sms-intro p, .notification-hero p, .platform-banner p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }.form-card { margin-top: 14px; }.form-card label { margin-bottom: 17px; }.form-card textarea { resize: vertical; min-height: 110px; }.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 400; }.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 3px; }.privacy-note { color: var(--muted); font-size: 9px; }.form-footer .primary-button { white-space: nowrap; }.notification-hero .notification-bell { color: var(--violet); background: #f1effd; }.admin-panel { margin-top: 15px; padding: 4px 15px 13px; border-radius: 18px; background: #fff; border: 1px solid #ddd8f7; }.panel-row { display: flex; align-items: center; gap: 10px; min-height: 62px; border-bottom: 1px solid var(--line); }.panel-row > div { flex: 1; }.panel-row strong { font-size: 11px; }.panel-row p { margin-top: 4px; color: var(--muted); font-size: 9px; }.switch { width: 44px; height: 25px; position: relative; padding: 3px; border-radius: 99px; background: #d9deea; transition: background .2s; }.switch span { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(20,28,58,.22); transition: transform .2s; }.switch.active { background: var(--green); }.switch.active span { transform: translateX(19px); }.verified-mark { color: var(--green); font-size: 9px; font-weight: 800; }.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 13px; }.panel-actions .secondary-button { min-height: 38px; padding: 8px 11px; font-size: 10px; }.panel-actions .text-button { font-size: 10px; }.notification-list { display: block; margin-top: 16px; padding: 4px 15px; }.notification-row { display: flex; align-items: center; gap: 11px; min-height: 58px; border-bottom: 1px solid var(--line); }.notification-row:last-child { border-bottom: 0; }.event-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }.event-dot.red { background: var(--red); }.event-dot.gold { background: var(--orange); }.event-dot.blue { background: var(--blue); }.notification-row > div { flex: 1; }.notification-row strong { font-size: 11px; }.notification-row p { margin-top: 3px; color: var(--muted); font-size: 9px; }.mandatory { color: var(--red); font-size: 8px; font-weight: 800; }

.platform-banner .platform-mark { color: var(--gold); background: var(--ink); }.platform-frame-wrap { min-height: 355px; position: relative; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }.platform-frame-wrap iframe { width: 100%; height: 355px; display: block; border: 0; background: #fff; }.frame-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: linear-gradient(150deg, #fff 0%, #f6f7fb 100%); }.frame-placeholder > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--ink); font-size: 29px; }.frame-placeholder strong { margin-top: 14px; font: 400 19px Georgia, serif; }.frame-placeholder p { max-width: 230px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }.frame-placeholder .primary-button { margin-top: 18px; }.frame-placeholder small { margin-top: 12px; color: var(--muted); font-size: 9px; }.module-list { display: flex; flex-direction: column; gap: 8px; }.module-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; background: #fff; border: 1px solid var(--line); }.module-row > div { flex: 1; }.module-row strong { font-size: 12px; }.module-row p { margin-top: 4px; color: var(--muted); font-size: 10px; }.module-row > span:last-child { color: var(--muted); font-size: 17px; }.module-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 19px; }.module-icon.indigo { color: #fff; background: var(--ink); }.module-icon.orange { color: #9b651b; background: #fff0d2; }.module-icon.violet { color: var(--violet); background: #f1effd; }.module-icon.blue { color: var(--blue); background: #eaf3fd; }.module-icon.gold { color: #ad7720; background: #fff4df; }.module-icon.green { color: var(--green); background: #e8f8f1; }.module-icon.red { color: var(--red); background: #fff0f1; }.profile-card { margin-top: 20px; }.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--gold); font-size: 10px; font-weight: 900; }.profile-card > div:nth-child(2) { flex: 1; }.profile-card strong { font-size: 12px; }.profile-card p { margin-top: 4px; color: var(--muted); font-size: 10px; }.server-check { color: var(--green); font-weight: 900; }

.bottom-nav { height: calc(76px + env(safe-area-inset-bottom)); position: fixed; z-index: 20; bottom: 0; left: 50%; width: min(560px, 100%); padding: 8px 16px env(safe-area-inset-bottom); display: flex; justify-content: space-around; transform: translateX(-50%); background: rgba(255,255,255,.93); border-top: 1px solid rgba(224,228,237,.85); backdrop-filter: blur(18px); }.nav-item { min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 12px; color: var(--muted); background: transparent; }.nav-item span { min-height: 20px; font-size: 20px; line-height: 1; }.nav-item small { font-size: 9px; }.nav-item.active { color: var(--ink); }.nav-item.active span { color: var(--orange); }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgba(20,28,58,.38); backdrop-filter: blur(5px); }.modal-card { width: min(520px, 100%); position: relative; padding: 25px 20px 20px; border-radius: 24px 24px 18px 18px; background: #fff; box-shadow: 0 20px 50px rgba(20,28,58,.2); animation: modal-up .2s ease both; }.modal-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); background: var(--canvas); font-size: 20px; }.modal-kicker { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .14em; }.modal-card h2 { margin-top: 6px; font: 400 24px Georgia, serif; }.modal-card form { margin-top: 20px; }.modal-card .primary-button { width: 100%; margin-top: 4px; }.checkbox-line { display: flex !important; align-items: center; gap: 8px; color: var(--ink-soft) !important; font-size: 11px !important; }.checkbox-line input { width: 17px; height: 17px; margin: 0; }.modal-help { margin: 13px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.45; }.confirm-card { text-align: center; }.confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--green); background: #e9f8f1; font-size: 22px; }.confirm-card h2 { margin-top: 8px; }.confirm-card p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }.confirm-actions button { width: 100%; }.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(91px + env(safe-area-inset-bottom)); max-width: calc(100% - 36px); padding: 12px 15px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: 0 12px 26px rgba(20,28,58,.24); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes modal-up { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 561px) { .app-shell { box-shadow: 0 0 0 1px rgba(20,28,58,.04), 0 20px 70px rgba(20,28,58,.08); } .topbar { border-radius: 14px 14px 0 0; } }
@media (max-width: 365px) { .role-pill { display: none; } h1 { font-size: 28px; }.hero-card-content { padding-left: 20px; }.location-card { align-items: flex-start; }.geo-lock, .native-label { display: none; }.form-footer { align-items: flex-end; flex-direction: column; }.form-footer .primary-button { width: 100%; } }

/* Галaктика Бар · итерация 2 */
.source-banner, .settings-hero { display: flex; align-items: flex-start; gap: 12px; padding: 15px; margin-bottom: 16px; border: 1px solid #ddd8f7; border-radius: 18px; background: #faf9ff; }
.source-banner strong, .settings-hero strong { font-size: 12px; }.source-banner p, .settings-hero p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.source-icon, .settings-mark { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--violet); background: #f1effd; font-size: 20px; font-weight: 800; }.source-icon.red { color: var(--red); background: #fff0f1; }.source-icon.orange { color: var(--orange); background: #fff3df; }.source-icon.violet { color: var(--violet); background: #f1effd; }.source-icon.blue { color: var(--blue); background: #eaf3fd; }.settings-mark { color: var(--gold); background: var(--ink); }
.topic-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.topic-home-card { min-height: 119px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; text-align: left; background: #fff; box-shadow: var(--shadow); }.topic-home-card strong { font-size: 13px; }.topic-home-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; }.topic-home-card.disabled { opacity: .45; }.topic-home-icon { position: absolute; top: 12px; right: 14px; font-size: 28px; font-weight: 300; }.topic-home-card.red .topic-home-icon { color: var(--red); }.topic-home-card.orange .topic-home-icon { color: var(--orange); }.topic-home-card.violet .topic-home-icon { color: var(--violet); }.topic-home-card.blue .topic-home-icon { color: var(--blue); }
.topic-list { display: flex; flex-direction: column; gap: 4px; }.topic-row { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }.topic-row:active { background: #fff; }.topic-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; font-size: 19px; font-weight: 800; }.topic-avatar.red { color: var(--red); background: #fff0f1; }.topic-avatar.orange { color: #a96e1c; background: #fff3df; }.topic-avatar.violet { color: var(--violet); background: #f1effd; }.topic-avatar.blue { color: var(--blue); background: #eaf3fd; }.topic-row-copy { min-width: 0; flex: 1; }.topic-row-copy strong, .topic-row-copy small, .topic-row-copy em { display: block; }.topic-row-copy strong { font-size: 14px; }.topic-row-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }.topic-row-copy em { margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; }.topic-arrow { color: var(--muted); font-size: 25px; font-weight: 200; }
.topic-thread-panel { position: fixed; z-index: 25; inset: 76px 0 0; width: min(560px, 100%); margin: 0 auto; display: flex; flex-direction: column; padding: 0 20px env(safe-area-inset-bottom); background: var(--canvas); }.topic-thread-panel .thread-header { flex: 0 0 auto; min-height: 68px; }.topic-thread-panel .thread-header strong { font-size: 16px; }.topic-thread-panel .thread-header small { font-size: 11px; }.topic-thread-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 15px 0 10px; -webkit-overflow-scrolling: touch; }.topic-thread-panel .composer { flex: 0 0 auto; min-height: 70px; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--canvas); }.topic-thread-panel .composer input { min-height: 48px; font-size: 15px; }.topic-thread-panel .send-button { width: 48px; height: 48px; }.topic-source-card { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.topic-source-card strong { display: block; font-size: 11px; }.topic-source-card p { margin-top: 4px; color: var(--muted); font-size: 10px; }.topic-source-card .source-icon { width: 34px; height: 34px; font-size: 16px; }.topic-messages { margin-top: 18px; }.topic-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.topic-section-heading h2 { font-size: 15px; }.topic-messages .message-list { height: auto; max-height: none; overflow: visible; padding: 0 2px 8px; }.topic-messages .message { max-width: 91%; margin-bottom: 13px; padding: 13px 14px; border-radius: 17px 17px 17px 5px; }.topic-messages .message p { font-size: 15px; line-height: 1.42; }.topic-messages .message-author { margin-bottom: 6px; font-size: 10px; }.topic-messages .message time { font-size: 10px; }.topic-messages .message.system { border: 1px dashed #ddd8f7; color: var(--ink-soft); background: #faf9ff; box-shadow: none; }.topic-messages .message.system .message-author { color: var(--violet); }.topic-messages .empty-state { padding: 13px 4px 18px; }
.stop-list-board { padding: 14px; border: 1px solid #f4e3c1; border-radius: 18px; background: #fffdfa; }.stop-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.stop-list-head h2 { margin-top: 5px; font: 400 21px Georgia, serif; }.stop-list-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }.compact-button { min-height: 34px; padding: 7px 10px; border-radius: 10px; font-size: 10px; white-space: nowrap; }.stop-list-source { display: flex; gap: 8px; align-items: flex-start; padding: 10px; margin-top: 13px; border-radius: 12px; color: #956b2b; background: #fff5e3; }.source-status-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--orange); }.stop-list-source strong { display: block; color: var(--ink); font-size: 10px; }.stop-list-source p { margin-top: 4px; font-size: 9px; line-height: 1.4; }.stop-items { margin-top: 10px; }.stop-item-row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #f0eadf; }.stop-status { min-width: 53px; padding: 5px 4px; border-radius: 7px; text-align: center; font-size: 8px; font-weight: 900; }.stop-status.ok { color: var(--green); background: #e8f8f1; }.stop-status.low { color: #a96e1c; background: #fff0d0; }.stop-status.stop { color: var(--red); background: #fff0f1; }.stop-item-copy { min-width: 0; flex: 1; }.stop-item-copy strong { display: block; font-size: 12px; }.stop-item-copy p { margin-top: 4px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }.stop-edit-button { font-size: 10px; }.stop-item-form { margin-top: 13px; padding: 13px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }.form-actions button { min-height: 39px; }.audit-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0eadf; }.audit-box .audit-title { margin-bottom: 8px; }.audit-box .audit-title span { font-size: 8px; }.audit-log-row { padding: 9px 0; border-top: 1px solid #f0eadf; }.audit-log-row strong { font-size: 10px; }.audit-log-row p { margin-top: 3px; font-size: 9px; line-height: 1.35; }.audit-log-row time { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }.stop-empty { padding: 14px 0; line-height: 1.45; }
.docs-inbox-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow); }.docs-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }.docs-inbox-head strong { font-size: 12px; }.docs-inbox-head p { max-width: 230px; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }.docs-inbox-frame-wrap { min-height: 480px; position: relative; background: #f7f8fb; }.docs-inbox-frame-wrap iframe { width: 100%; height: 480px; display: block; border: 0; background: #fff; }.docs-inbox-frame-wrap .frame-placeholder { z-index: 1; }.docs-inbox-bottom-bar { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-top: 1px solid var(--line); background: #fff; }.docs-inbox-bottom-bar > span:first-child { color: var(--green); font-size: 9px; font-weight: 800; }.docs-inbox-bottom-bar .text-button { margin-left: auto; font-size: 10px; }.docs-inbox-manual { color: var(--muted); font-size: 8px; }
.settings-section { margin-top: 18px; }.settings-section .section-heading { margin: 0 0 10px; }.module-toggles { display: flex; flex-direction: column; gap: 7px; }.module-toggle { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.module-toggle > span { flex: 1; }.module-toggle strong, .module-toggle small { display: block; }.module-toggle strong { font-size: 11px; }.module-toggle small { margin-top: 4px; color: var(--muted); font-size: 9px; }.module-toggle input { position: absolute; opacity: 0; pointer-events: none; }.module-toggle i { width: 42px; height: 24px; position: relative; flex: 0 0 auto; border-radius: 99px; background: #d9deea; }.module-toggle i:after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20,28,58,.18); transition: transform .2s; }.module-toggle input:checked + i { background: var(--green); }.module-toggle input:checked + i:after { transform: translateX(18px); }.matrix-help { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; color: var(--muted); background: #fafbfe; font-size: 9px; line-height: 1.4; }.permission-matrix { display: flex; flex-direction: column; gap: 8px; }.permission-row { padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.permission-copy strong, .permission-copy small { display: block; }.permission-copy strong { font-size: 11px; }.permission-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }.permission-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }.permission-controls label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; }.permission-controls select { width: 100%; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcfe; font-size: 9px; }.closed-groups { display: flex; flex-direction: column; gap: 8px; }.closed-group-row { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.closed-group-row > div:first-child { min-width: 0; flex: 1; }.closed-group-row strong { display: block; font-size: 11px; }.closed-group-row p { margin-top: 4px; color: var(--muted); font-size: 9px; }.closed-group-row code { display: inline-block; margin-top: 7px; padding: 4px 6px; border-radius: 6px; color: var(--ink); background: #f2f4f8; font: 700 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: .08em; }.code-used { display: block; margin-top: 4px; color: var(--red); font-size: 8px; }.closed-group-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }.recipient-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); background: #fff; }.recipient-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--gold); font-weight: 800; }.recipient-row > div { flex: 1; }.recipient-row strong { font-size: 11px; }.recipient-row p { margin-top: 3px; color: var(--muted); font-size: 9px; }.verified-mark { color: var(--green); font-size: 8px; font-weight: 800; }.recipient-form { margin-top: 10px; }.recipient-form .primary-button { width: 100%; }
@media (max-width: 365px) { .topic-thread-panel { padding-left: 14px; padding-right: 14px; }.stop-list-head { flex-direction: column; }.stop-list-actions { width: 100%; flex-direction: row; align-items: center; }.stop-list-actions button { flex: 1; }.permission-controls { grid-template-columns: 1fr; }.closed-group-row { align-items: flex-start; flex-direction: column; }.closed-group-actions { width: 100%; flex-direction: row; }.closed-group-actions button { flex: 1; } }
