: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; }

.booking-picker { width: min(620px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.booking-picker::backdrop { background: rgba(31,41,33,.35); }
.booking-picker h2 { margin: 0 0 10px; font-size: 24px; color: var(--forest); }
.booking-picker-note { margin: 0 0 20px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.booking-picker-item { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; margin: 10px 0; padding: 16px; white-space: normal; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); cursor: pointer; }
.booking-picker-item:hover { border-color: var(--forest-2); background: var(--sage-2); }
.booking-picker-item.is-current { border: 2px solid var(--forest-2); background: var(--sage-2); }
.booking-picker-item strong { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.booking-picker-badge { padding: 3px 8px; border-radius: 7px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.is-current .booking-picker-badge { background: var(--forest); color: var(--paper); }
.booking-picker-dates { font-size: 14px; }
.booking-picker-item small { color: var(--muted); font-size: 12px; }
.booking-picker-close { margin-top: 12px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--sage); color: var(--forest); cursor: pointer; }
.booking-picker button:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.arrival-data-notice { padding: 12px 16px; border: 1px solid var(--warm); border-radius: 12px; background: #fff6df; color: #76521c; font-size: 14px; }

.app-shell {
  display: grid;
  grid-template-columns: 252px 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 16px 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 minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 50px; 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 > span:not(.nav-icon) { min-width: 0; overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.nav-item small { display: none; }
.nav-item b { min-width: 36px; max-width: 48px; overflow: hidden; padding: 4px 7px; border-radius: 999px; color: var(--forest); background: var(--warm); font-variant-numeric: tabular-nums; text-align: center; text-overflow: ellipsis; white-space: nowrap; 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; }
.guest-message-banner { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; margin: 0 0 13px; padding: 11px 12px; border: 1px solid #b8443d; border-radius: 11px; color: #6d2925; background: #fff0ee; text-align: left; cursor: pointer; }
.guest-message-banner:hover { background: #ffe7e3; }
.guest-message-banner-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8443d; box-shadow: 0 0 0 3px rgba(184,68,61,.13); }
.guest-message-banner strong, .guest-message-banner small { display: block; }
.guest-message-banner strong { font-size: 17px; }
.guest-message-banner small { margin-top: 6px; color: #795e5b; font-size: 15px; line-height: 1.4; overflow: hidden; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.guest-message-banner { position: fixed; z-index: 9999; top: 20px; right: 20px; width: min(520px, calc(100vw - 40px)); margin: 0; padding: 18px; box-shadow: 0 8px 32px #0003; }
.guest-message-banner[hidden] { display: none; }
.guest-message-banner-open { color: var(--forest); font-size: 11px; font-weight: 750; 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: 10px; height: 10px; border-radius: 50%; background: var(--urgent); box-shadow: 0 0 0 3px #f9e3e0; }
.manager-action-chip { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; background: var(--urgent); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.assignment-chip { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.assignment-mine { background: #dceddf; color: #27633d; }
.assignment-shared { background: #fff0c9; color: #775214; }
.assignment-other { background: #e8ebf0; color: #53606e; }
.conversation-card.manager-action-required { background: #fff8f6; box-shadow: inset 3px 0 var(--urgent); }
.conversation-card.manager-action-required.active { background: #f9ece8; }
.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; }
.dialog-object, .dialog-dates, .dialog-guest { display: block; white-space: normal; overflow-wrap: anywhere; margin-bottom: 4px; }
.dialog-object { color: var(--forest-2); font-size: 13px; font-weight: 600; line-height: 1.25; }
.dialog-booking-stage { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0 5px; }
.dialog-booking-stage:empty { display: none; }
.booking-stage-chip { display: inline-block; padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; font-family: var(--font-sans, sans-serif); font-size: 11px; font-weight: 700; line-height: 1.3; white-space: normal; }
.booking-stage-positive { color: #28543a; background: #e4efdf; border-color: #c9ddc5; }
.booking-stage-warning { color: #79531e; background: #f8edd6; border-color: #e8d8af; }
.booking-stage-neutral { color: #3c5d49; background: #edf1e8; border-color: #dce4d6; }
.booking-stage-muted { color: #686b65; background: #eeeee8; border-color: #dedfd6; }
.chat-title .booking-stage-chip { font-size: 12px; padding: 5px 10px; }
.dialog-dates { font-size: 11px; }
.dialog-guest { font-size: 12px; font-weight: 400; line-height: 1.25; text-transform: none; }
.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: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 11px; min-height: 83px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); }
.chat-header .guest-avatar { grid-column: 1; grid-row: 1; width: 46px; height: 46px; background: #e8ded0; }
.chat-title { grid-column: 2; grid-row: 1; min-width: 0; }
.title-row { display: flex; flex-wrap: wrap; min-width: 0; gap: 8px; align-items: center; }
.chat-title h2 { margin: 0; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; line-height: 1.3; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.chat-phone { display: inline-block; max-width: 100%; margin-top: 3px; color: var(--forest-2); font-size: 11px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.chat-phone:hover, .booking-details a:hover { text-decoration: underline; }
.chat-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.recipient-control { display: block; width: fit-content; max-width: 100%; margin-top: 5px; padding: 3px 7px; border-radius: 999px; color: #355b3d; background: #e9f3e6; font-size: 9px; line-height: 1.35; white-space: normal; }
.recipient-control.conflict { color: #8b2f24; background: #fbe8e4; }
.recipient-control.unverified { color: #7b5b1d; background: #fff4d9; }
.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-wrap: wrap; grid-column: 1 / -1; grid-row: 2; min-width: 0; gap: 7px; margin: 0; }
.secondary-button, .primary-button, .send-button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; }
.secondary-button { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); background: #fff; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.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; overflow-wrap: anywhere; word-break: break-word; 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-context-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.booking-context-heading .eyebrow { margin-bottom: 5px; }
.booking-context-close, .booking-context-toggle { display: none; }
.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 { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; font-size: 11px; font-weight: 650; }
.booking-details a { color: var(--forest-2); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.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 > *, .operation-body, .operation-source, .operation-actions { min-width: 0; }
.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 { max-width: 100%; padding: 4px 7px; border-radius: 999px; color: var(--forest-2); background: var(--sage-2); font-size: 10px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.operation-chip.warning { color: #7a571a; background: #fff2cf; }
.operation-chip.success { color: #31543a; background: #dff0e0; }
.operation-chip.error { color: #80322d; background: #f6dfdc; }
.operation-actions { display: grid; gap: 7px; min-width: 130px; }
.operation-actions input, .operation-actions select { width: 220px; max-width: 100%; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; 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-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.object-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(39,57,42,.04); overflow: hidden; }
.object-card > summary { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 17px; cursor: pointer; list-style: none; }
.object-card > summary::-webkit-details-marker { display: none; }
.object-card > summary:hover { background: #fafbf8; }
.object-card-heading { min-width: 0; }
.object-card-heading p { margin: 0 0 3px; color: var(--muted); font-size: 9px; }
.object-card-heading h2 { margin: 0; color: var(--forest); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.object-card-heading h2 + span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.object-card-summary-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.object-expand-hint { color: var(--forest); font-size: 9px; font-weight: 750; }
.object-card[open] .object-expand-hint { font-size: 0; }
.object-card[open] .object-expand-hint::after { content: "Свернуть"; font-size: 9px; }
.object-card-body { display: grid; gap: 13px; padding: 0 17px 17px; border-top: 1px solid var(--line); }
.object-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.object-facts span { padding: 4px 7px; border-radius: 999px; background: #eef3ea; color: var(--forest); font-size: 8px; font-weight: 750; }
.object-card-sections { display: grid; gap: 7px; }
.object-card-sections details { border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; overflow: hidden; }
.object-card-sections summary { padding: 10px 12px; color: var(--forest); font-size: 13px; font-weight: 750; cursor: pointer; }
.object-card-sections dl { display: grid; gap: 7px; margin: 0; padding: 0 12px 12px; }
.object-card-sections dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px 9px; border-radius: 7px; background: #f1f3ee; }
.object-card-sections dt { color: var(--muted); font-size: 12px; line-height: 1.4; }
.object-card-sections dd { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.object-card-sections .object-field-edit { width: 25px; min-height: 25px; align-self: center; border: 1px solid #cad5c7; border-radius: 7px; color: var(--forest); background: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.object-card-sections .object-field-edit:hover { background: var(--sage-2); }
.object-card-sections .object-field-edit:disabled { opacity: .5; cursor: default; }
.object-deposit { display: grid; grid-template-columns: 1fr auto minmax(110px, .8fr) auto; gap: 8px; align-items: end; padding-top: 11px; border-top: 1px solid var(--line); }
.object-deposit strong, .object-deposit small { display: block; }
.object-deposit strong { color: var(--forest); font-size: 9px; }
.object-deposit small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.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: 3px 6px; margin: 3px 0; border-radius: 5px; color: #765819; background: #fff4d6; font-size: 11px; line-height: 1.25; }
.financial-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 4px 0; }
.financial-badge { display: inline-block; padding: 3px 7px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.financial-positive { color: #28543a; background: #e4efdf; border-color: #c9ddc5; }
.financial-negative { color: #80322d; background: #f6dfdc; border-color: #e4bfba; }
.financial-warning { color: #79531e; background: #fff2cf; border-color: #e8d8af; }
.financial-muted { color: #686b65; background: #eeeee8; border-color: #dedfd6; }
.financial-returned { color: #465346; background: #fff; border-color: #cbd2c7; }
.app-back-button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--forest); font: inherit; cursor: pointer; text-align: left; flex-shrink: 0; }
.app-back-button[hidden] { display: none !important; }
.app-back-button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.main-nav > .app-back-button { margin-bottom: 8px; }
dialog > .app-back-button { margin: 0 0 12px; }
@media (max-width: 790px) { .mobile-toolbar { gap: 4px; } .mobile-toolbar > .app-back-button { min-height: 40px; padding: 6px 8px; font-size: 13px; } }
@media (max-width: 790px) {
  .mobile-toolbar > button { white-space: nowrap; padding: 6px; font-size: 12px; }
  .mobile-toolbar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
}
@media (min-width: 791px) and (max-width: 1100px) { .main-nav > .app-back-button { font-size: 12px; padding: 8px 4px; white-space: nowrap; } }
.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); }
.chat-link-button.danger { border-color: #d9aaa3; color: #9b352c; }
.chat-link-button.danger:hover { background: #fae9e6; }
.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 { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; 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-attention-reason.success { border-color: #a9cfaf; color: #31543a; background: #e8f5e9; }
.booking-attention-reason.error { border-color: #e2aba5; color: #80322d; background: #fdf0ee; }
.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.payment-status-success { background: #edf7ed; }
.related-item.payment-status-success span { color: #31543a; }
.related-item.payment-status-error { background: #fdf0ee; }
.related-item.payment-status-error span { color: #80322d; }
.related-item > * { min-width: 0; }
.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; }
.load-more-list-button { width: calc(100% - 18px); min-height: 40px; margin: 12px 9px 22px; border: 1px solid var(--forest); border-radius: 10px; color: var(--forest); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.load-more-list-button:hover { color: #fff; background: var(--forest); }
.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 .dialog-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 12px; margin-top: 24px; }
.conversation-start-dialog .dialog-actions button { width: auto; min-height: 46px; padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 700; }
.conversation-start-dialog .dialog-actions button[type="button"] { background: var(--sage); color: var(--forest); border: 1px solid var(--line); cursor: pointer; }
.conversation-start-dialog .dialog-actions .primary-button { flex: 1; }
.conversation-start-dialog label input { max-width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
@media (max-width: 480px) { .conversation-start-dialog .dialog-actions { flex-direction: column-reverse; } .conversation-start-dialog .dialog-actions button { width: 100%; } }
.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; }

/* A 13-inch MacBook normally provides a 1280px CSS viewport.  At that width
   a full text navigation squeezes labels into unreadable syllables; use the
   established icon navigation before the content columns start competing. */
/* A 13-inch MacBook may expose a 1440px CSS viewport.  Keep navigation
   compact before its labels begin wrapping into separate syllables. */
@media (max-width: 1512px) {
  .app-shell { grid-template-columns: 82px 340px minmax(420px, 1fr); }
  .app-shell.operations-open { grid-template-columns: 82px 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; min-height: 50px; padding: 0; }
  .nav-icon { display: block; }
  .nav-item b { position: absolute; top: 4px; right: 3px; min-width: 30px; max-width: 38px; padding-inline: 4px; }
  .profile-button { grid-template-columns: 1fr; justify-items: center; }
  /* The tablet chat keeps its full reading width.  Booking context is an
     intentional, dismissible drawer rather than a permanent overlap. */
  .booking-context-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .booking-context-close { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; margin: -8px -7px 0 0; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: #fff; font-size: 23px; line-height: 1; cursor: pointer; }
  .booking-column { display: none; position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(360px, calc(100vw - 96px)); padding: 25px 22px; border-left: 1px solid var(--line); box-shadow: -15px 0 40px rgba(40,55,43,.18); }
  .app-shell.booking-context-open .booking-column { display: block; }
}

.kanban-load-more { display: block; max-width: 300px; margin: 4px auto 28px; }

@media (max-width: 1450px) and (min-width: 791px) {
  .chat-header { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
  .chat-header .guest-avatar { grid-column: 1; }
  .chat-title { grid-column: 2; }
  .chat-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 4px 0 0; }
  .chat-actions .secondary-button { min-height: 35px; padding: 7px 9px; white-space: normal; }
  .chat-actions .secondary-button:last-child { grid-column: 1 / -1; }
  .booking-column { top: 0; }
}

.mobile-toolbar, .mobile-menu-close, .mobile-menu-backdrop { display: none; }
@media (max-width: 790px) {
  body { padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
  .mobile-toolbar { display: flex; position: fixed; z-index: 40; inset: 0 0 auto; height: calc(48px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0; align-items: center; justify-content: space-between; color: var(--forest); background: var(--warm); border-bottom: 1px solid var(--line); }
  .mobile-toolbar button, .mobile-menu-close { min-height: 44px; border: 0; border-radius: 8px; padding: 8px 12px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
  .mobile-menu-open .main-nav { display: flex; position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(310px, calc(100vw - 44px)); height: 100dvh; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow); }
  .mobile-menu-open .mobile-menu-close { display: block; flex-shrink: 0; align-self: flex-end; }
  .mobile-menu-open .mobile-menu-backdrop:not([hidden]) { display: block; position: fixed; z-index: 50; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(20,35,25,.5); }
  .mobile-menu-open .main-nav .brand span, .mobile-menu-open .nav-item > span:not(.nav-icon), .mobile-menu-open .profile-button > span:last-child { display: block; }
  .mobile-menu-open .nav-item { grid-template-columns: 28px minmax(0, 1fr); padding: 8px 12px; }
  .mobile-menu-open .nav-item b { position: static; grid-column: 2; }
  .mobile-menu-open .profile-button { grid-template-columns: 36px minmax(0, 1fr); }
  .app-shell { display: block; height: calc(100dvh - 48px - env(safe-area-inset-top, 0px)); min-height: 0; }
  .main-nav { display: none; }
  .inbox-column { height: calc(100dvh - 48px - env(safe-area-inset-top, 0px)); padding-top: 18px; }
  .chat-column { display: none; position: fixed; z-index: 10; inset: calc(48px + env(safe-area-inset-top, 0px)) 0 0; height: auto; }
  .app-shell.chat-open .inbox-column { display: none; }
  .app-shell.chat-open .chat-column { display: block; }
  .mobile-back { display: block; }
  .chat-header { display: grid; grid-template-columns: 32px 46px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 0; padding-block: 11px; }
  .mobile-back { grid-column: 1; grid-row: 1; }
  .chat-header .guest-avatar { grid-column: 2; }
  .chat-title { grid-column: 3; }
  .title-row { min-width: 0; flex-wrap: wrap; }
  .chat-title h2 { max-width: 100%; }
  .chat-title p { line-height: 1.3; }
  .chat-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 3px 0 0; }
  .chat-actions .secondary-button { min-height: 36px; padding: 7px 8px; white-space: normal; }
  .chat-actions .secondary-button:last-child { grid-column: 1 / -1; }
  .booking-column { display: none !important; }
  .booking-context-toggle { display: inline-flex; }
  .login-dialog input { font-size: 16px; }
  .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-card > summary { display: grid; padding: 12px 13px; }
  .object-card-summary-meta { justify-content: space-between; }
  .object-card-body { padding: 0 13px 13px; }
  .object-deposit { grid-template-columns: 1fr 1fr; }
  .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 { flex-direction: column; align-items: stretch; gap: 12px; }
  .booking-heading { min-width: 0; width: 100%; }
  .booking-page-header h1 { font-size: 25px; line-height: 1.2; overflow-wrap: break-word; }
  .wide-page, .operations-page { min-height: 0; height: 100%; }
  .booking-page-actions { align-self: stretch; justify-content: space-between; }
}

.call-filters { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.call-filters fieldset { display: flex; flex-wrap: wrap; gap: 12px 20px; border: 0; padding: 0; margin: 0; }
.call-filters legend { font-weight: 600; margin-bottom: 8px; }
.call-filters label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.call-filters input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #284c34; }
.call-filters small { color: var(--muted); max-width: 780px; }
.operation-card.marketing-editor-card { display: block; }
.marketing-editor-card h2 { font-size: 20px; margin: 0 0 12px; }
.marketing-editor-card h3 { font-size: 16px; margin: 0 0 8px; }
.marketing-editor-card form { padding-top: 20px; margin-top: 20px; border-top: 1px solid #deded7; }
.marketing-editor-card textarea { display: block; min-height: 140px; padding: 12px; margin-bottom: 12px; font: inherit; line-height: 1.5; border: 1px solid #bfc9bb; border-radius: 8px; resize: vertical; }
.marketing-editor-card button { padding: 10px 16px; border: 1px solid #98ac97; border-radius: 8px; background: #edf3e9; color: #294b31; font: inherit; cursor: pointer; }
.marketing-editor-card button:disabled { opacity: .65; cursor: wait; }
.marketing-editor-card [role="status"] { min-height: 1.5em; margin: 8px 0 0; }
.object-feature-editor { padding: 16px 0; }
.object-feature-editor h3 { font-size: 16px; margin: 0 0 12px; }
.object-feature-editor [data-object-feature] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.object-feature-editor label { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.object-feature-editor label span { min-width: 165px; }
.object-feature-editor select,.object-feature-editor button { font: inherit; border: 1px solid #bfc9bb; border-radius: 8px; padding: 8px 12px; background: #fff; }
.object-feature-editor [role=status] { font-size: 14px; color: #46674a; }
.payment-refresh-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.payment-refresh-toolbar .detail-subheading { margin:0; }
#payments-refresh-button { min-height:44px; padding:10px 16px; white-space:nowrap; }
#payments-updated-at { margin:8px 0 12px; }
#payment-attempt-history { margin-top:12px; color:#657060; }
#payment-attempt-history summary { cursor:pointer; min-height:44px; padding:12px 0; }

/* Keep the viewport fixed horizontally; wide content scrolls within its own area. */
@media (max-width: 790px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
  .app-shell { width: 100%; max-width: 100%; min-width: 0; }
  .wide-page, .operations-page, .messages { min-width: 0; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
  .booking-page-grid, .detail-card, .booking-page-actions { min-width: 0; max-width: 100%; }
  .booking-page-actions { flex-wrap: wrap; }
  .detail-card input, .detail-card select, .detail-card textarea { min-width: 0; max-width: 100%; }
  .kanban-board { min-width: 0; width: 100%; max-width: 100%; grid-auto-columns: minmax(270px, 85vw); overflow-x: auto; overscroll-behavior-x: contain; }
}
#booking-archive { margin-top: 1rem; min-width: 0; }
#booking-archive summary { cursor: pointer; font-weight: 600; }
.archive-message { border-top: 1px solid #ddd; padding: .75rem 0; overflow-wrap: anywhere; }
.archive-message p { white-space: pre-wrap; margin: .5rem 0; }
#booking-archive-status { margin: .75rem 0; overflow-wrap: anywhere; }

/* Booking filters only: matching controls, dates in the first desktop row. */
.kanban-filters {
  grid-template-columns: minmax(210px, 1.35fr) minmax(175px, 1fr) repeat(2, minmax(145px, .72fr));
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.kanban-filters > * { min-width: 0; }
.kanban-search-field, .kanban-filters .operations-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
}
.kanban-filters .operations-search,
.kanban-filters .operations-select select,
.kanban-filters input[type="date"],
.kanban-filters #kanban-clear-dates {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: normal;
}
.kanban-filters .operations-search { padding: 0 12px; }
.kanban-filters .operations-search input { min-width: 0; font-size: 13px; }
.kanban-filters .operations-select select { padding: 0 30px 0 12px; }
.kanban-filters input[type="date"] { padding: 0 10px; max-width: 100%; }
.kanban-filters input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.kanban-filters .operations-search:focus-within,
.kanban-filters select:focus-visible,
.kanban-filters input[type="date"]:focus-visible,
.kanban-filters #kanban-clear-dates:focus-visible {
  border-color: var(--forest-2);
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.kanban-filters > label:last-of-type {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}
.kanban-filters #kanban-include-cancelled { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.kanban-filters .operations-filter-count { grid-column: 2; grid-row: 2; padding: 0; align-self: center; font-size: 11px; white-space: normal; }
.kanban-filters #kanban-clear-dates {
  grid-column: 3 / 5;
  grid-row: 2;
  justify-self: end;
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  background: var(--sage-2);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.kanban-filters #kanban-clear-dates:hover { background: var(--sage); }
@media (max-width: 1000px) {
  .kanban-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kanban-filters > label:last-of-type { grid-row: 3; grid-column: 1; }
  .kanban-filters #kanban-clear-dates { grid-row: 3; grid-column: 2; }
  .kanban-filters .operations-filter-count { grid-row: 4; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .kanban-filters { padding: 12px; gap: 12px 10px; }
  .kanban-search-field, .kanban-filters > .operations-select:nth-child(2) { grid-column: 1 / -1; }
  .kanban-filters > label:last-of-type, .kanban-filters #kanban-clear-dates { grid-row: 4; }
  .kanban-filters .operations-filter-count { grid-row: 5; }
  .kanban-filters .operations-search input,
  .kanban-filters .operations-select select,
  .kanban-filters input[type="date"] { font-size: 16px; }
}
/* Manual extensions remain one AS stay; confirmation never creates money/code. */
.manual-extension { border: 1px solid #aacac0; border-radius: 12px; padding: 16px; margin: 16px 0; background: #f5fbf8; }
.manual-extension h3 { margin-top: 0; }
.manual-extension form { display: grid; gap: 12px; }
.manual-extension [hidden] { display: none !important; }
.manual-extension select { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 10px; }
.manual-extension button { justify-self: start; padding: 10px 14px; }
.manual-extension dl { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px 12px; margin: 0; }
.manual-extension dd { margin: 0; overflow-wrap: anywhere; }
.manual-extension dt { color: #52615e; }
.manual-extension-attestation { display: flex; gap: 10px; align-items: flex-start; }
.manual-extension-attestation input { margin-top: 4px; flex: 0 0 auto; }
.manual-extension [data-extension-error] { color: #9b2525; overflow-wrap: anywhere; }
@media (max-width: 600px) { .manual-extension dl { grid-template-columns: 1fr; gap: 4px; } .manual-extension dd { margin-bottom: 8px; } .manual-extension button { width: 100%; } }
