:root {
  --forest: #28472f;
  --forest-2: #365d3f;
  --sage: #dfe8d6;
  --sage-2: #eef3e9;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --ink: #1f2921;
  --muted: #69736a;
  --line: #dfe3da;
  --warm: #e8b75d;
  --urgent: #9e3f34;
  --shadow: 0 16px 50px rgba(39, 57, 42, .10);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, textarea { font: inherit; }
button { color: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 200px minmax(300px, 360px) minmax(410px, 1fr) minmax(270px, 292px);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.main-nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 18px 18px;
  color: #f8f4e9;
  background: var(--forest);
  scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: .08em; }
.brand img, .login-brand img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: #f8f4e9; }
.main-nav nav { display: grid; gap: 7px; }
.nav-item { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 48px; padding: 0 12px; color: rgba(255,255,255,.72); border-radius: 12px; text-decoration: none; font-size: 15px; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item.disabled { cursor: default; }
.nav-item small { font-size: 10px; color: rgba(255,255,255,.45); }
.nav-item b { min-width: 20px; padding: 3px 6px; border-radius: 999px; color: var(--forest); background: var(--warm); text-align: center; font-size: 11px; }
.nav-icon { font-size: 22px; line-height: 1; text-align: center; }
.profile-button { display: grid; grid-template-columns: 39px 1fr; gap: 10px; align-items: center; width: 100%; margin-top: auto; padding: 12px 9px; border: 0; border-top: 1px solid rgba(255,255,255,.14); color: #fff; background: transparent; text-align: left; cursor: pointer; }
.profile-button strong, .profile-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button strong { font-size: 13px; }
.profile-button small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 11px; }
.avatar, .guest-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 750; }
.avatar { width: 36px; height: 36px; color: var(--forest); background: var(--sage); }

.inbox-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; padding: 25px 18px 0; border-right: 1px solid var(--line); background: var(--paper); }
.inbox-header { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 17px; }
.inbox-header-actions { display: flex; gap: 7px; align-items: center; }
.new-dialog-button { min-height: 38px; padding: 0 10px; border: 1px solid var(--forest); border-radius: 10px; color: var(--forest); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.new-dialog-button:hover { color: #fff; background: var(--forest); }
.new-dialog-button:disabled { cursor: default; opacity: .45; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.inbox-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: 21px; }
.icon-button:hover { border-color: #bac7b6; background: var(--sage-2); }
.mode-banner { display: flex; gap: 10px; align-items: center; margin: 0 0 13px; padding: 10px 12px; border: 1px solid #ebd7a8; border-radius: 11px; background: #fff7df; font-size: 12px; }
.mode-banner > span { color: #c68a1d; font-size: 9px; }
.mode-banner small { color: #74684e; }
.channel-status { display: flex; gap: 10px; align-items: center; margin: 0 0 13px; padding: 10px 12px; border: 1px solid #cadbc8; border-radius: 11px; color: var(--forest); background: #f0f6ee; font-size: 11px; }
.channel-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4e8a4b; box-shadow: 0 0 0 3px rgba(78,138,75,.12); }
.channel-status div { display: grid; gap: 2px; min-width: 0; }
.channel-status small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.view-tabs { display: flex; gap: 4px; margin: 14px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.view-tabs button { flex: 1; padding: 8px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; white-space: nowrap; }
.view-tabs button.active { color: var(--forest); background: var(--sage-2); font-weight: 700; }
.view-tabs span { display: inline-grid; place-items: center; min-width: 17px; min-height: 17px; padding: 1px 4px; margin-left: 2px; border-radius: 999px; background: #e9ece6; font-size: 10px; }
.conversation-list { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; margin: 0 -18px; padding: 0 9px 25px; scrollbar-width: thin; }
.conversation-card { display: grid; grid-template-columns: 43px minmax(0, 1fr) 82px; gap: 10px; align-items: start; width: 100%; min-width: 0; min-height: 91px; padding: 14px 10px; border: 0; border-bottom: 1px solid #ecefe9; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.conversation-card:hover { background: #f5f7f2; }
.conversation-card.active { background: var(--sage-2); box-shadow: inset 3px 0 var(--forest-2); }
.conversation-card .guest-avatar { width: 43px; height: 43px; background: #e8ded0; font-size: 14px; }
.conversation-card.urgent .guest-avatar { color: var(--urgent); background: #f4dedb; }
.card-body { display: block; min-width: 0; overflow: hidden; }
.card-title { display: flex; gap: 7px; align-items: center; min-width: 0; }
.card-title strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.unread-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--urgent); }
.apartment-line, .message-line { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.apartment-line { margin: 4px 0; color: var(--forest-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.message-line { display: -webkit-box; color: var(--muted); font-size: 12px; line-height: 1.25; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; position: relative; z-index: 1; flex-direction: column; align-items: flex-end; justify-content: space-between; width: 82px; min-width: 0; min-height: 63px; color: var(--muted); font-size: 10px; }
.card-meta time { display: block; line-height: 1.2; }
.channel-pill { display: block; overflow: hidden; max-width: 82px; padding: 4px 7px; border-radius: 999px; color: var(--forest-2); background: #e7eee3; font-size: 9px; font-weight: 700; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.list-empty { padding: 48px 24px; color: var(--muted); text-align: center; font-size: 13px; }

.chat-column { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: #f4f1e9; }
.empty-state { display: grid; place-items: center; align-content: center; height: 100%; padding: 40px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid #c9d3c5; border-radius: 24px; color: var(--forest); background: var(--sage); font-family: Georgia, serif; font-size: 37px; }
.empty-state h2 { margin: 20px 0 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.empty-state p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.chat-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; }
.chat-header { display: flex; align-items: center; gap: 11px; min-height: 83px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); }
.chat-header .guest-avatar { flex: 0 0 auto; width: 46px; height: 46px; background: #e8ded0; }
.chat-title { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.title-row { display: flex; gap: 8px; align-items: center; }
.chat-title h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.chat-phone { display: inline-block; margin-top: 3px; color: var(--forest-2); font-size: 11px; font-weight: 700; text-decoration: none; }
.chat-phone:hover, .booking-details a:hover { text-decoration: underline; }
.chat-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.channel-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #66a973; }
.priority-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: var(--urgent); background: #f7dfdb; font-size: 10px; font-weight: 700; }
.chat-actions { display: flex; flex: 0 0 auto; gap: 7px; margin-left: auto; }
.secondary-button, .primary-button, .send-button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; }
.secondary-button { padding: 9px 11px; border: 1px solid var(--line); background: #fff; font-size: 11px; }
.secondary-button:hover { background: var(--sage-2); }
.secondary-button:disabled { cursor: default; opacity: .45; }
.assignment-bar { min-height: 34px; padding: 9px 22px; border-bottom: 1px solid #e5e0d5; color: #675f51; background: #fff8e8; font-size: 11px; text-align: center; }
.messages { overflow-y: auto; padding: 26px clamp(18px, 5vw, 56px) 18px; }
.day-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; color: var(--muted); font-size: 10px; }
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: #ddd9cf; }
.message { display: flex; margin: 0 0 13px; }
.message.outbound { justify-content: flex-end; }
.bubble { max-width: min(520px, 82%); padding: 11px 13px 8px; border: 1px solid #e2ded4; border-radius: 5px 15px 15px 15px; background: #fff; box-shadow: 0 3px 12px rgba(59, 64, 55, .04); }
.message.outbound .bubble { border-color: #cddbc7; border-radius: 15px 5px 15px 15px; background: #e5eddf; }
.bubble .sender { display: block; margin-bottom: 5px; color: var(--forest-2); font-size: 10px; font-weight: 700; }
.bubble p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.48; }
.bubble footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.delivery.preview { color: #986c19; }
.delivery.failed { color: var(--urgent); }
.composer { padding: 12px 17px 13px; border-top: 1px solid var(--line); background: var(--paper); }
.preview-warning { margin: -2px 0 9px; padding: 7px 10px; border-radius: 8px; color: #765819; background: #fff4d5; font-size: 10px; }
.live-send-warning { margin: -2px 0 9px; padding: 7px 10px; border: 1px solid #e2c783; border-radius: 8px; color: #6a5110; background: #fff8df; font-size: 10px; line-height: 1.35; }
.live-send-warning.training { border-color: #b9d4ae; color: #31572d; background: #edf7e8; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 45px; max-height: 120px; resize: none; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #fafbf8; font-size: 13px; line-height: 1.4; }
.composer textarea:focus { border-color: #93aa8d; box-shadow: 0 0 0 3px rgba(80, 112, 76, .09); }
.send-button, .primary-button { color: #fff; background: var(--forest); }
.send-button { min-height: 45px; padding: 0 16px; font-size: 12px; }
.send-button:hover, .primary-button:hover { background: #1d3824; }
.send-button:disabled { cursor: default; opacity: .5; }
.composer-meta { display: flex; justify-content: space-between; margin: 7px 3px 0; color: var(--muted); font-size: 9px; }
.mobile-back { display: none; border: 0; background: transparent; font-size: 23px; }

.booking-column { min-width: 0; min-height: 0; height: 100%; overflow-x: hidden; overflow-y: auto; padding: 25px 22px; border-left: 1px solid var(--line); background: var(--paper); }
.booking-column h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.25; }
.booking-status { display: inline-block; margin: 17px 0 20px; padding: 6px 9px; border-radius: 999px; color: var(--forest-2); background: var(--sage-2); font-size: 10px; font-weight: 750; }
.booking-details { display: grid; gap: 0; margin: 0 0 20px; }
.booking-details div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.booking-details dt { color: var(--muted); font-size: 11px; }
.booking-details dd { margin: 0; text-align: right; font-size: 11px; font-weight: 650; }
.booking-details a { color: var(--forest-2); text-decoration: none; white-space: nowrap; }
.context-card { margin: 13px 0 0; padding: 14px; border-radius: 12px; background: var(--sage-2); }
.context-card.muted { background: #f4f2ec; }
.context-card h3 { margin: 0 0 7px; font-size: 11px; }
.context-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.knowledge-draft-card { border: 1px solid #dfc989; background: #fff8df; }
.knowledge-draft-card small { display: block; margin-top: 9px; color: #765819; font-size: 9px; line-height: 1.4; }
.knowledge-draft-card button { width: 100%; margin-top: 10px; padding: 8px 9px; border: 1px solid #9a7627; border-radius: 8px; color: #72571c; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.knowledge-draft-card button:hover { color: #fff; background: #8a6820; }
.knowledge-handoff-card { border: 1px solid #d7c7a6; background: #fffaf0; }
.knowledge-handoff-card.critical { border-color: #d5897f; background: #fff1ef; }
.knowledge-handoff-card.high { border-color: #dfb76b; background: #fff7e4; }
.knowledge-handoff-card small { display: block; margin-top: 9px; color: #765819; font-size: 9px; line-height: 1.4; font-weight: 750; }
.knowledge-no-reply-card { border: 1px solid #cbd8c4; background: #f2f5ef; }
.knowledge-no-reply-card small { display: block; margin-top: 9px; color: #587052; font-size: 9px; line-height: 1.4; }
.booking-open-button { width: 100%; min-height: 42px; margin-top: 15px; border: 1px solid var(--forest); border-radius: 10px; color: var(--forest); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.booking-open-button:hover { color: #fff; background: var(--forest); }
.booking-open-button.unlinked { border-color: #b17b22; color: #825d1b; }
.booking-open-button.unlinked:hover { color: #fff; background: #825d1b; }

.operations-page { grid-column: 2 / -1; overflow-y: auto; padding: 34px clamp(24px, 5vw, 72px); background: var(--paper); }
.operations-header { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; }
.operations-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.operations-intro { max-width: 900px; margin: 14px auto 26px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.operations-filters { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto; gap: 12px; align-items: end; max-width: 1080px; margin: -10px auto 22px; }
.operations-search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; }
.operations-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.operations-select { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.operations-select select { min-height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-size: 12px; }
.operations-filter-count { padding: 0 0 12px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.operations-list { display: grid; gap: 12px; max-width: 1080px; margin: 0 auto; }
.notification-card { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 16px; align-items: stretch; padding: 18px 20px 18px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); overflow: hidden; }
.notification-card.overdue { box-shadow: 0 0 0 2px rgba(181,120,55,.16), 0 4px 18px rgba(39,57,42,.04); }
.notification-indicator { width: 5px; min-height: 100%; background: #87968a; }
.severity-critical .notification-indicator { background: #a6463d; }
.severity-warning .notification-indicator { background: #c58a35; }
.severity-normal .notification-indicator { background: var(--forest); }
.severity-info .notification-indicator { background: #8093a5; }
.notification-body { min-width: 0; }
.notification-body header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.notification-body h2 { margin: 0 0 3px; font-size: 15px; }
.notification-body header p, .notification-body header time { margin: 0; color: var(--muted); font-size: 10px; }
.notification-body > p { margin: 11px 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.notification-actions { display: flex; flex-direction: column; gap: 7px; align-self: center; }
.notification-actions button { min-width: 104px; }
.operation-chip.notification-critical { color: #80322d; background: #f6dfdc; }
.operation-chip.notification-warning { color: #79511f; background: #f8ead3; }
.operation-chip.notification-normal { color: var(--forest); background: var(--sage); }
.operation-chip.notification-info { color: #52697a; background: #e7edf1; }
.nav-item b.critical { color: #fff; background: #a6463d; }
.operation-card { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.operation-card.needs-link { border-left: 4px solid var(--warm); }
.task-match-reason { margin-top: 9px !important; padding: 8px 9px; border-radius: 8px; color: #765819 !important; background: #fff3d1; font-size: 10px !important; }
.task-candidates { display: grid; gap: 8px; margin-top: 12px; }
.task-candidates strong { color: var(--muted); font-size: 11px; }
.task-candidates button { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; color: var(--ink); text-align: left; white-space: normal; }
.task-candidates button:hover, .task-candidates button:focus-visible { border-color: var(--forest-2); background: var(--sage-2); }
.operation-link { display: inline-grid; place-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 750; text-decoration: none; }
.operation-source { display: grid; gap: 6px; }
.operation-source strong { color: var(--forest); font-size: 13px; }
.operation-source time, .operation-source small { color: var(--muted); font-size: 10px; }
.operation-body h2 { margin: 0 0 7px; font-size: 15px; }
.operation-body p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.operation-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.operation-chip { padding: 4px 7px; border-radius: 999px; color: var(--forest-2); background: var(--sage-2); font-size: 10px; font-weight: 700; }
.operation-chip.warning { color: #7a571a; background: #fff2cf; }
.operation-actions { display: grid; gap: 7px; min-width: 130px; }
.operation-actions input { width: 150px; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.operation-actions button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 700; cursor: pointer; }
.lock-catalog-section { max-width: 1080px; margin: 0 auto 26px; }
.lock-budget-banner { margin: 0 0 12px; }
.lock-budget-banner.warning { border-color: #e1b3aa; color: #77382f; background: #fff1ed; }
.subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.subsection-heading h2 { margin: 1px 0 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.subsection-heading > small { color: var(--muted); font-size: 9px; }
.subsection-heading.activity-heading { margin-top: 28px; }
.lock-catalog-list { display: grid; gap: 12px; }
.lock-catalog-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.lock-catalog-card.lock-health-red { border-left: 4px solid #a6463d; }
.lock-catalog-card.lock-health-yellow { border-left: 4px solid #c58a35; }
.lock-catalog-card.lock-health-green { border-left: 4px solid var(--forest); }
.lock-header-chips, .lock-footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.lock-severity-chip.red { color: #80322d; background: #f6dfdc; }
.lock-severity-chip.yellow { color: #79511f; background: #f8ead3; }
.lock-severity-chip.green { color: var(--forest); background: var(--sage); }
.lock-severity-chip.unknown { color: #52697a; background: #e7edf1; }
.lock-catalog-card > header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.lock-catalog-card h2 { margin: 0 0 4px; font-size: 15px; }
.lock-catalog-card header p { margin: 0; color: var(--muted); font-size: 10px; }
.lock-health { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.lock-health span { display: grid; gap: 2px; padding: 6px 9px; border-radius: 9px; color: var(--muted); background: #f5f6f2; font-size: 10px; }
.lock-health strong { color: var(--ink); }
.lock-health small { color: var(--muted); font-size: 8px; }
.lock-catalog-card details { border-top: 1px solid var(--line); }
.lock-catalog-card summary { padding: 12px 0 4px; color: var(--forest); font-size: 10px; font-weight: 750; cursor: pointer; }
.lock-code-list { display: grid; gap: 7px; margin-top: 7px; }
.lock-code-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .9fr); gap: 14px; padding: 9px 10px; border-radius: 9px; background: #f7f7f4; }
.lock-code-row strong, .lock-code-row span, .lock-code-row small { display: block; }
.lock-code-row strong { font-size: 10px; }
.lock-code-row span, .lock-code-row small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.lock-code-row > div:last-child { text-align: right; }
.lock-catalog-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.lock-catalog-card > footer button { min-height: 30px; padding: 0 9px; border: 1px solid var(--forest); border-radius: 8px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.lock-catalog-card > footer button:hover { color: #fff; background: var(--forest); }
.lock-catalog-card > footer button:disabled { border-color: var(--line); color: var(--muted); background: #f7f7f4; cursor: default; }
.knowledge-panel { max-width: 1080px; margin: 0 auto; }
.knowledge-warning { margin-top: -8px; }
.knowledge-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.knowledge-stat { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.knowledge-stat strong, .knowledge-stat span { display: block; }
.knowledge-stat strong { color: var(--forest); font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.knowledge-stat span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.knowledge-filters { margin-top: 0; }
.knowledge-candidate { margin: 0 0 24px; }
.knowledge-shadow-coverage { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #cbd8c8; border-radius: 13px; background: #f3f7f0; }
.knowledge-shadow-coverage > header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.knowledge-shadow-coverage h3 { margin: 2px 0 0; color: var(--forest); font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.knowledge-shadow-coverage > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.knowledge-shadow-coverage > div span { padding: 7px 9px; border-radius: 9px; color: var(--muted); background: #fff; font-size: 9px; }
.knowledge-shadow-coverage > div strong { color: var(--forest); }
.knowledge-shadow-coverage > p { margin: 9px 0 0; color: var(--muted); font-size: 8px; }
.knowledge-candidate-empty { display: grid; gap: 4px; margin-bottom: 20px; padding: 13px 15px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: #fafaf7; font-size: 10px; }
.knowledge-candidate-empty strong { color: var(--ink); font-size: 11px; }
.knowledge-candidate-heading { margin: 0 0 10px; }
.knowledge-candidate-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.knowledge-candidate-stats span { padding: 7px 9px; border-radius: 9px; color: var(--muted); background: #f2f4ee; font-size: 9px; }
.knowledge-candidate-stats strong { color: var(--forest); }
.knowledge-candidate-columns { display: grid; gap: 9px; }
.knowledge-candidate-columns > details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.knowledge-candidate-columns > details > summary { padding: 12px 14px; color: var(--forest); font-size: 10px; font-weight: 750; cursor: pointer; }
.knowledge-answer-list { display: grid; gap: 9px; padding: 0 12px 12px; }
.knowledge-answer-card { padding: 13px 14px; border-radius: 10px; background: #f7f7f4; }
.knowledge-answer-card > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.knowledge-answer-card header strong, .knowledge-answer-card header small { display: block; }
.knowledge-answer-card header strong { font-size: 11px; }
.knowledge-answer-card header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.knowledge-answer-card header > span { color: var(--muted); font-size: 8px; }
.knowledge-answer-card dl { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 8px; margin: 10px 0 0; }
.knowledge-answer-card dl div { padding: 8px 9px; border-radius: 8px; background: #fff; }
.knowledge-answer-card dt { color: var(--muted); font-size: 8px; }
.knowledge-answer-card dd { margin: 3px 0 0; font-size: 9px; line-height: 1.45; }
.knowledge-answer-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 8px; }
.knowledge-answer-card footer button { min-height: 28px; padding: 0 8px; border: 1px solid var(--forest); border-radius: 8px; color: var(--forest); background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; }
.knowledge-answer-card.escalation { background: #fff7df; }
.knowledge-candidate-note { margin: 9px 2px 0; color: var(--muted); font-size: 8px; }
.knowledge-issues { margin: -8px 0 18px; }
.knowledge-issues details { padding: 11px 13px; border: 1px solid #ebd7a8; border-radius: 11px; color: #74684e; background: #fff7df; font-size: 10px; }
.knowledge-issues summary { cursor: pointer; font-weight: 750; }
.knowledge-issues ul { margin: 9px 0 0; padding-left: 18px; line-height: 1.55; }
.knowledge-list { display: grid; gap: 12px; }
.knowledge-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.knowledge-card > header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.knowledge-card h2 { margin: 0 0 4px; font-size: 15px; }
.knowledge-card header p { margin: 0; color: var(--muted); font-size: 10px; }
.knowledge-card details { margin-top: 13px; border-top: 1px solid var(--line); }
.knowledge-card summary { padding: 12px 0 2px; color: var(--forest); font-size: 10px; font-weight: 750; cursor: pointer; }
.knowledge-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 10px 0 0; }
.knowledge-fields div { padding: 9px 10px; border-radius: 9px; background: #f7f7f4; }
.knowledge-fields dt { color: var(--muted); font-size: 9px; }
.knowledge-fields dd { margin: 4px 0 0; font-size: 10px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.knowledge-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.knowledge-card > footer button { min-height: 30px; padding: 0 9px; border: 1px solid var(--forest); border-radius: 8px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.knowledge-card > footer button:hover { color: #fff; background: var(--forest); }
.feedback-panel { max-width: 1080px; margin: 0 auto; }
.feedback-form { display: grid; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.feedback-form-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(180px, .8fr); gap: 12px; }
.feedback-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfbf8; font: inherit; font-size: 12px; }
.feedback-form select, .feedback-form input { min-height: 42px; }
.feedback-form textarea { resize: vertical; line-height: 1.45; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: #8da387; box-shadow: 0 0 0 3px rgba(80,112,76,.09); }
.feedback-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.feedback-submit-row span { color: var(--muted); font-size: 10px; }
.feedback-submit-row button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 750; cursor: pointer; }
.feedback-submit-row button:disabled { cursor: default; opacity: .5; }
.feedback-history-heading { margin-top: 28px; }
.feedback-list { display: grid; gap: 10px; }
.feedback-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.feedback-card header, .feedback-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-card header strong { font-size: 13px; }
.feedback-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feedback-card p b { color: var(--ink); }
.feedback-card footer { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.object-policy-card { display: grid; gap: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.object-policy-card > header { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.object-policy-card h2 { margin: 0 0 4px; font-size: 15px; }
.object-policy-card header p, .object-policy-card footer { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.object-policy-fields { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto; gap: 13px; align-items: end; }
.object-policy-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.object-policy-fields input[type="text"] { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.object-policy-toggle { grid-template-columns: auto 1fr !important; align-items: center; align-self: center; }
.object-policy-toggle input { width: 18px; height: 18px; accent-color: var(--forest); }
.object-policy-fields button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 10px; font-weight: 750; cursor: pointer; }
.object-policy-fields button:disabled { opacity: .45; cursor: default; }
.object-catalog-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.object-catalog-summary > div { display: grid; gap: 3px; }
.object-catalog-summary strong { color: var(--forest); font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.object-catalog-summary span, .object-catalog-summary p { color: var(--muted); font-size: 9px; }
.object-catalog-summary p { grid-column: 1 / -1; margin: 3px 0 0; }
.object-catalog-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.object-catalog-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.object-catalog-table th { padding: 11px 12px; color: var(--muted); background: #f4f5f0; font-size: 9px; text-align: left; }
.object-catalog-table td { padding: 13px 12px; border-top: 1px solid var(--line); font-size: 10px; vertical-align: top; }
.object-catalog-table td:first-child { min-width: 270px; }
.object-catalog-table td:nth-child(3) { min-width: 220px; }
.object-catalog-table td:nth-child(4) { min-width: 185px; }
.object-catalog-table td > strong, .object-catalog-table td > span { display: block; }
.object-catalog-table td > span { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.object-catalog-table details { margin-top: 9px; }
.object-catalog-table summary { color: var(--forest); font-size: 9px; font-weight: 750; cursor: pointer; }
.object-catalog-table details section { margin-top: 10px; }
.object-catalog-table details h4 { margin: 0 0 6px; font-size: 9px; }
.object-catalog-table details dl { display: grid; gap: 5px; margin: 0; }
.object-catalog-table details dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px; padding: 6px 7px; border-radius: 7px; background: #f7f7f4; }
.object-catalog-table details dt { color: var(--muted); font-size: 8px; }
.object-catalog-table details dd { margin: 0; font-size: 8px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.object-fact { display: inline-block !important; margin: 0 4px 4px 0 !important; padding: 4px 6px; border-radius: 999px; color: var(--forest) !important; background: var(--sage); font-size: 8px; }
.object-catalog-table .object-policy-toggle { display: flex; gap: 6px; margin-bottom: 7px; }
.object-catalog-table .object-amount { display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.object-catalog-table .object-amount input { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.deposit-policy-source { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.deposit-policy-source.needs-review { color: #925d15; font-weight: 700; }
.object-catalog-table [data-save-object-policy] { min-height: 30px; margin-top: 7px; padding: 0 9px; border: 0; border-radius: 7px; color: #fff; background: var(--forest); font-size: 8px; font-weight: 750; cursor: pointer; }
.object-catalog-table [data-save-object-policy]:disabled { opacity: .45; cursor: default; }
.app-shell.operations-open .inbox-column, .app-shell.operations-open .chat-column, .app-shell.operations-open .booking-column { display: none !important; }
.app-shell.operations-open { grid-template-columns: 200px minmax(0, 1fr); }

.wide-page { grid-column: 2 / -1; overflow: auto; min-width: 0; padding: 34px clamp(24px, 4vw, 64px) 46px; background: var(--paper); }
.wide-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; margin: 0 auto; }
.wide-page-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.readonly-banner { display: flex; gap: 10px; align-items: center; max-width: 1440px; margin: 18px auto; padding: 10px 13px; border: 1px solid #ebd7a8; border-radius: 11px; color: #74684e; background: #fff7df; font-size: 11px; }
.readonly-banner strong { color: #765819; }
.operational-max-banner { flex-wrap: wrap; max-width: none; margin: 0; }
.operational-max-banner > span:not(.operational-max-candidates) { flex: 1 1 360px; }
.operational-max-candidates { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.kanban-filters { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto; gap: 12px; align-items: end; max-width: 1440px; margin: 0 auto 20px; }
.kanban-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; align-items: start; min-width: 1180px; max-width: 1800px; margin: 0 auto; overflow-x: auto; padding: 0 0 18px; }
.kanban-stage-note { margin: -3px 2px 10px; color: #815f22; font-size: 9px; line-height: 1.35; }
.kanban-column { min-height: 240px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #f6f5ef; }
.kanban-column-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 11px; }
.kanban-column-header h2 { margin: 0; font-size: 13px; }
.kanban-column-header span { display: inline-grid; place-items: center; min-width: 23px; min-height: 23px; padding: 2px 6px; border-radius: 999px; color: var(--forest); background: var(--sage); font-size: 10px; font-weight: 800; }
.kanban-cards { display: grid; gap: 9px; }
.kanban-empty { padding: 26px 10px; color: var(--muted); text-align: center; font-size: 10px; }
.kanban-card { display: grid; gap: 9px; width: 100%; padding: 13px; border: 1px solid #e1e4dc; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(39,57,42,.05); text-align: left; cursor: pointer; }
.kanban-card:hover { border-color: #b9c7b6; box-shadow: 0 8px 22px rgba(39,57,42,.09); }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card.is-dragging { opacity: .45; cursor: grabbing; }
.kanban-column.is-drop-target { border-color: var(--forest); background: #edf4e8; box-shadow: inset 0 0 0 2px rgba(38,79,49,.12); }
.kanban-card-top, .kanban-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-card strong { font-size: 12px; line-height: 1.35; }
.kanban-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.kanban-card .kanban-attention-reason { padding: 8px 9px; border-radius: 8px; color: #765819; background: #fff4d6; }
.kanban-card .kanban-attention-reason strong { font-size: inherit; }
.kanban-card small { color: var(--muted); font-size: 9px; }
.source-tag { padding: 3px 6px; border-radius: 999px; color: var(--forest-2); background: var(--sage-2); font-size: 8px; font-weight: 800; }
.chat-link-button { min-height: 28px; padding: 0 8px; border: 1px solid #cad5c7; border-radius: 8px; color: var(--forest); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.chat-link-button:hover { background: var(--sage-2); }
.booking-page-header { align-items: flex-end; }
.booking-heading { display: grid; justify-items: start; }
.back-button { margin: 0 0 16px; padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.booking-page-actions { display: flex; gap: 10px; align-items: center; }
.booking-page-actions .booking-status { margin: 0; }
.primary-action { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 750; cursor: pointer; }
.booking-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1440px; margin: 0 auto; }
.detail-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); }
.detail-card h2 { margin: 0 0 15px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.detail-main { grid-row: span 2; }
.detail-list { display: grid; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; text-align: right; font-size: 11px; font-weight: 700; }
.booking-stage-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin-top: 16px; }
.booking-stage-control label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.booking-stage-control select { min-height: 40px; width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.booking-stage-control button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 10px; font-weight: 750; cursor: pointer; }
.booking-stage-control button:disabled { opacity: .45; cursor: default; }
.booking-attention-reason { margin: 12px 0 0; padding: 11px 12px; border: 1px solid #ebd7a8; border-radius: 10px; color: #765819; background: #fff7df; font-size: 11px; line-height: 1.45; }
.booking-stage-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.detail-lead { margin: -5px 0 13px; color: var(--forest); font-size: 13px; font-weight: 750; }
.detail-contact { margin: -8px 0 12px; }
.detail-contact a { color: var(--forest); font-size: 13px; font-weight: 750; }
.detail-comment { margin: 0 0 14px; padding: 11px 12px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 12px; line-height: 1.45; }
.guest-contact-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 9px; }
.guest-contact-list:empty { display: none; }
.guest-contact-list a { padding: 6px 9px; border-radius: 999px; color: var(--forest); background: var(--sage-2); font-size: 12px; font-weight: 700; text-decoration: none; }
.guest-data-empty { color: var(--muted); font-size: 11px; }
.guest-counts { margin: 8px 0 12px; color: var(--muted); font-size: 11px; }
.guest-blacklist-warning { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid #d9a19b; border-radius: 10px; background: #fff0ed; color: #8b2c23; font-size: 12px; font-weight: 700; }
.detail-subheading { margin: 18px 0 10px; font-size: 12px; }
.service-model-summary { display: grid; gap: 4px; margin-bottom: 10px; padding: 12px; border-radius: 11px; background: var(--pale); }
.service-model-summary strong { color: var(--forest); }
.service-model-summary span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.service-model-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin: 10px 0 4px; }
.service-model-control label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.service-model-control select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.service-model-control button { min-height: 38px; padding: 0 11px; border: 1px solid var(--forest); border-radius: 9px; color: var(--forest); background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.detail-list.compact div { padding: 9px 0; }
.payment-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.payment-preview-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.payment-preview-grid input { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: #fff; }
.payment-preview-grid button { padding: 9px 10px; border: 1px solid var(--forest); border-radius: 9px; color: var(--forest); background: #fff; font-weight: 700; cursor: pointer; }
.payment-preview-grid button:disabled { opacity: .45; cursor: default; }
.payment-preview-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.payment-preview-result { margin-top: 10px; padding: 11px; border-radius: 10px; background: var(--pale); color: var(--forest); font-size: 11px; line-height: 1.45; }
.deposit-release-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.deposit-release-row button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid #8f5b38; border-radius: 9px; color: #7a4028; background: #fff8f2; font-weight: 750; cursor: pointer; }
.deposit-release-row button:disabled { opacity: .45; cursor: default; }
.deposit-release-row span { flex: 1 1 220px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.deposit-resolution-summary { display: grid; gap: 7px; margin: 12px 0; padding: 12px; border-radius: 10px; background: var(--pale); }
.deposit-resolution-summary div { display: flex; justify-content: space-between; gap: 12px; }
.deposit-resolution-summary dt { color: var(--muted); }
.deposit-resolution-summary dd { margin: 0; color: var(--forest); font-weight: 800; }
.identity-document-note { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.identity-upload-link-row { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.identity-upload-link-row > button { justify-self: start; }
.identity-upload-link-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.identity-upload-link-row input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--pale); font: inherit; font-size: 10px; }
.identity-upload-link-row small { grid-column: 1 / -1; color: var(--muted); }
.guest-stats { margin-top: 10px; }
.vr-device-card { padding: 18px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px; background: var(--paper); }
.vr-device-card + .vr-device-card { margin-top: 12px; }
.vr-device-card header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.vr-device-card h2 { margin: 0 0 5px; font-size: 16px; }
.vr-device-card p { margin: 0; color: var(--muted); }
.vr-red { border-left-color: #bb3c31; }
.vr-yellow { border-left-color: #d49b25; }
.vr-green { border-left-color: #4d8c5b; }
.vr-unknown { border-left-color: #92958e; }
.vr-status { padding: 5px 9px; border-radius: 999px; background: #f2f0e9; font-size: 11px; font-weight: 750; white-space: nowrap; }
.vr-device-values { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin: 16px 0 0; }
.vr-device-values div { display: grid; gap: 4px; }
.vr-device-values dt { color: var(--muted); font-size: 11px; }
.vr-device-values dd { margin: 0; font-weight: 700; }
@media (max-width: 900px) { .vr-device-values { grid-template-columns: repeat(2, minmax(120px, 1fr)); } }
.call-player { margin-top: 10px; }
.call-player audio { display: block; width: min(100%, 420px); height: 38px; }
.work-rule-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.work-rule-card + .work-rule-card { margin-top: 12px; }
.work-rule-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.work-rule-card h2 { margin: 0 0 5px; font-size: 16px; }
.work-rule-card p { color: var(--muted); line-height: 1.5; }
.work-rule-card ul { margin: 12px 0 0; padding-left: 22px; }
.work-rule-card li + li { margin-top: 7px; }
.related-list { display: grid; gap: 8px; }
.related-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 10px; background: #f6f7f3; }
.related-item strong, .related-item span, .related-item small { display: block; }
.related-item strong { font-size: 11px; }
.related-item span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.related-item small { color: var(--muted); font-size: 9px; }
.related-empty { padding: 17px 8px; color: var(--muted); text-align: center; font-size: 10px; }
.message-schedule-note { margin: -6px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.schedule-status { padding: 4px 7px; border-radius: 999px; background: var(--sage-2); color: var(--forest); font-size: 9px; font-weight: 750; white-space: nowrap; }
.schedule-status.schedule-due, .schedule-status.schedule-queued_shadow { background: #fff1c9; color: #765819; }
.schedule-status.schedule-missed, .schedule-status.schedule-failed_manual_review { background: #ffe0dc; color: #8b2c23; }
.schedule-status.schedule-delivered { background: #dceedd; color: #24552e; }
.schedule-status.schedule-active_bot { background: #dceedd; color: #24552e; }
.schedule-status.schedule-invitation_shadow { background: #fff1c9; color: #765819; }
.schedule-status.schedule-manager_review { background: #ffe0dc; color: #8b2c23; }
.pilot-readiness-summary { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 10px; line-height: 1.45; }
.pilot-readiness-summary.ready { color: #24552e; background: #dceedd; }
.pilot-readiness-summary.blocked { color: #765819; background: #fff1c9; }
.pilot-readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pilot-readiness-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f6f7f3; font-size: 9px; }
.pilot-readiness-item span { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; font-weight: 800; }
.pilot-readiness-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot-readiness-item.ready span { color: #24552e; background: #dceedd; }
.pilot-readiness-item.blocked span { color: #8b2c23; background: #ffe0dc; }
@media (max-width: 720px) { .pilot-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.login-dialog { width: min(430px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
.login-dialog::backdrop { background: rgba(25, 39, 29, .58); backdrop-filter: blur(4px); }
.login-dialog form { padding: 30px; }
.login-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; color: var(--forest); font-weight: 800; letter-spacing: .08em; }
.login-dialog h2 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.login-dialog form > p:not(.eyebrow):not(.form-error) { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.login-dialog label { display: grid; gap: 6px; margin: 0 0 13px; color: var(--muted); font-size: 11px; font-weight: 650; }
.login-dialog input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fbfbf8; }
.login-dialog input:focus { border-color: #8da387; }
.lock-action-dialog { width: min(960px, calc(100vw - 30px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
.lock-action-dialog::backdrop { background: rgba(25, 39, 29, .58); backdrop-filter: blur(4px); }
.lock-action-shell { display: grid; gap: 14px; padding: 25px; }
.lock-action-shell > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.lock-action-shell h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.lock-action-banner { margin: 0; }
.lock-action-field { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.lock-action-field input, .lock-action-field select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfbf8; font: inherit; font-size: 11px; }
.lock-action-field input:focus, .lock-action-field select:focus { border-color: #8da387; outline: 0; box-shadow: 0 0 0 3px rgba(80,112,76,.09); }
.lock-action-booking-note { margin: -7px 0 0; color: var(--muted); font-size: 10px; }
.lock-action-block { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(350px, 1.2fr) auto; gap: 13px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8f8f4; }
.lock-action-block h3 { margin: 0 0 5px; font-size: 12px; }
.lock-action-block p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.lock-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lock-action-block button { min-height: 40px; padding: 0 11px; border: 0; border-radius: 9px; color: #fff; background: var(--forest); font-size: 10px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.lock-action-block button:hover { background: #1d3824; }
.lock-action-block button:disabled { cursor: default; opacity: .42; }
.lock-action-result { padding: 11px 13px; border-radius: 10px; color: #5d594f; background: #f2efe6; font-size: 10px; line-height: 1.45; }
.lock-action-result.success { color: #31543a; background: var(--sage-2); }
.lock-action-result.error { color: var(--urgent); background: #f8e5e2; }
.form-error { min-height: 17px; margin: 0 0 5px; color: var(--urgent); font-size: 11px; }
.primary-button { width: 100%; min-height: 46px; }
.conversation-start-dialog { width: min(620px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.conversation-start-dialog::backdrop { background: rgba(24,37,27,.48); }
.conversation-start-dialog form { padding: 22px; }
.conversation-start-dialog header, .conversation-start-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conversation-start-dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.dialog-explainer { margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.conversation-start-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.conversation-start-grid label, .conversation-start-booking { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.conversation-start-grid input, .conversation-start-booking select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; }
.conversation-start-grid button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; background: var(--forest); font-size: 11px; font-weight: 700; cursor: pointer; }
.conversation-start-booking { margin: 14px 0; }
.conversation-start-dialog fieldset { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.conversation-start-dialog fieldset legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.max-route { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #d9c48e; border-radius: 10px; background: #fff8e7; }
.max-route.active { border-color: #b9d2b4; background: #eff7ec; }
.max-route strong { color: var(--forest); font-size: 12px; }
.max-route small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.channel-choice { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 9px 10px; border-radius: 9px; background: #f5f7f2; cursor: pointer; }
.channel-choice strong, .channel-choice small { display: block; }
.channel-choice small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.conversation-start-note { min-height: 18px; margin: 0 0 12px; color: #7b5b1d; font-size: 10px; }
.conversation-start-dialog footer { justify-content: flex-end; padding-top: 4px; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: 340px; padding: 12px 15px; border-radius: 11px; color: #fff; background: #26382b; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #823b32; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 76px 340px minmax(420px, 1fr); }
  .app-shell.operations-open { grid-template-columns: 76px minmax(0, 1fr); }
  .main-nav { padding: 22px 10px 16px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand span, .nav-item > span:not(.nav-icon), .nav-item small, .profile-button > span:last-child { display: none; }
  .nav-item { grid-template-columns: 1fr; padding: 0; }
  .nav-icon { display: block; }
  .nav-item b { position: absolute; top: 5px; right: 5px; }
  .profile-button { grid-template-columns: 1fr; justify-items: center; }
  .booking-column { position: absolute; z-index: 5; top: 82px; right: 0; bottom: 0; width: 285px; box-shadow: -15px 0 40px rgba(40,55,43,.08); }
}

@media (max-width: 790px) {
  .app-shell { display: block; min-height: 100vh; }
  .main-nav { display: none; }
  .inbox-column { height: 100vh; padding-top: 18px; }
  .chat-column { display: none; position: fixed; z-index: 10; inset: 0; }
  .app-shell.chat-open .inbox-column { display: none; }
  .app-shell.chat-open .chat-column { display: block; }
  .mobile-back { display: block; }
  .chat-actions { gap: 4px; }
  .secondary-button { padding: 8px; }
  .booking-column { display: none !important; }
  .messages { padding-inline: 14px; }
  .bubble { max-width: 90%; }
  .chat-header { padding-inline: 10px; }
  .operations-page { min-height: 100vh; padding: 24px 14px; }
  .operations-filters { grid-template-columns: 1fr; align-items: stretch; }
  .operations-filter-count { padding: 0; }
  .operation-card { grid-template-columns: 1fr; }
  .operation-actions input { width: 100%; }
  .subsection-heading { align-items: start; }
  .lock-code-row { grid-template-columns: 1fr; }
  .lock-code-row > div:last-child { text-align: left; }
  .lock-catalog-card > footer { align-items: start; flex-direction: column; }
  .lock-header-chips, .lock-footer-actions { justify-content: flex-start; }
  .knowledge-summary, .knowledge-fields, .knowledge-answer-card dl { grid-template-columns: 1fr; }
  .knowledge-card > header, .knowledge-card > footer { align-items: start; flex-direction: column; }
  .feedback-form-grid { grid-template-columns: 1fr; }
  .feedback-submit-row { align-items: stretch; flex-direction: column; }
  .object-policy-card > header { align-items: start; flex-direction: column; }
  .object-policy-fields { grid-template-columns: 1fr; }
  .object-catalog-summary { grid-template-columns: 1fr; }
  .object-catalog-summary p { grid-column: auto; }
  .object-catalog-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .object-catalog-table, .object-catalog-table tbody, .object-catalog-table tr, .object-catalog-table td { display: block; width: 100%; min-width: 0; }
  .object-catalog-table thead { display: none; }
  .object-catalog-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
  .object-catalog-table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 9px; min-width: 0 !important; padding: 10px 11px; }
  .object-catalog-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 750; }
  .object-catalog-table td > * { min-width: 0; }
  .object-catalog-table details { grid-column: 1 / -1; }
  .conversation-start-grid { grid-template-columns: 1fr; }
  .lock-action-shell { padding: 18px; }
  .lock-action-block { grid-template-columns: 1fr; }
  .lock-action-grid { grid-template-columns: 1fr; }
  .wide-page { min-height: 100vh; padding: 24px 14px; }
  .kanban-filters, .booking-page-grid, .payment-preview-grid, .service-model-control { grid-template-columns: 1fr; }
  .booking-page-header { align-items: flex-start; }
  .booking-page-actions { align-self: stretch; justify-content: space-between; }
}
