/* Innotel UI — framework-free replacement for Metronic 5.5.5
   Load order: tokens/*.css (design tokens) → innotel.css (this file)
   Markup contract: every component is a class; no Bootstrap, no jQuery. */

/* Token files are not covered by innotelUiAssetVersion(): the ?v= on the imports below is the only
   cache-buster they get. Bump it on every import whose file you change, or browsers combine the new
   innotel.css with a cached old token file and the new tokens resolve to nothing. */
@import url("tokens/fonts.css");
@import url("tokens/colors.css?v=20261118f");
@import url("tokens/components.css?v=20261118f");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/radii.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");
@import url("tokens/theme-dark.css?v=20261118f") screen; /* dark values; screen only, so print stays light */

/* In-product token overrides. The DS maps --secondary-100/200 to Verde for marketing
   surfaces; inside the app those tokens are structural hairlines and must be neutral.
   Verde is applied explicitly via var(--verde) where it is a deliberate highlight. */
:root {
  color-scheme: light;
  --secondary-50: #f4f4f1; --secondary-100: #e8e8e3; --secondary-200: #d8d8d1;
  /* Ink tokens: the ONLY colours allowed on text under ~16px. The raw --success /
     --danger / --verde tokens are fill colours and fail 4.5:1 as small text. */
  --ink-muted: var(--secondary-600);
  --ink-success: #12813b;
  --ink-danger: #b3181c;
  --ink-warning: var(--warning-text);
  --ink-on-brand: #ffffff;
}
body { background: var(--surface-app); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--secondary-50); color: var(--secondary-600); font-family: var(--font-body); font-size: 14px; line-height: 1.45; letter-spacing: -0.025em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--secondary-900); letter-spacing: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0; }
a { color: var(--text-link); text-decoration: none; } a:hover { color: var(--text-link-hover); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: transparent; }
::placeholder { color: var(--secondary-400); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
/* --secondary-400 (#94a3b8) is reserved for icons, hairlines, placeholders and
   struck-through/disabled text. All live text uses --secondary-500 or darker. */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary-600); }

/* ---------- App layout ---------- */
.app { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { padding: 28px; max-width: 1560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; color: var(--secondary-600); }
.actions { display: flex; align-items: center; gap: 10px; }

/* Rail (collapsed sidebar) */
.rail-tooltip { position: fixed; z-index: 70; max-width: min(240px, calc(100vw - 96px)); padding: 7px 10px; border-radius: 6px; background: var(--surface-inverse); color: var(--text-inverse); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; pointer-events: none; box-shadow: var(--shadow-dropdown); }
.rail-tooltip[hidden] { display: none; }
.rail { position: sticky; top: 0; align-self: flex-start; width: 72px; height: 100vh; flex: none; display: flex; flex-direction: column; gap: 0; padding: 14px 0 14px; background: var(--surface-rail); box-shadow: inset -1px 0 0 var(--rail-edge); z-index: 40; }
.rail-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent); }
.rail-nav::-webkit-scrollbar { width: 0; }
.rail-logo { display: flex; align-items: center; justify-content: center; height: 44px; margin-bottom: 6px; }
.rail-logo img { width: 26px; height: 36px; }
.rail-group { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.rail-group::before { content: ""; width: 24px; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 4px; }
.rail-item { position: relative; width: 48px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); color: rgba(255,255,255,.62); transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.rail-item:hover, .rail-item:focus-visible { background: rgba(255,255,255,.1); color: var(--text-on-brand); }
.rail-item.is-active { background: var(--primary-600); color: var(--text-on-brand); }
.rail-item svg { width: 20px; height: 20px; }
.rail-item .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 999px; }
.rail-item .dot--info { background: var(--primary-400); } .rail-item .dot--verde { background: var(--verde); }

.rail-property { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: var(--radius-lg); background: var(--verde); color: var(--text-on-verde); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.rail-property:hover, .rail-property:focus-visible { background: #f3f3b0; }
.rail-bottom { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; }
.rail-bottom::before { content: ""; width: 24px; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 4px; }
.rail-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: 4px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 12.5px; font-weight: 700; }
.rail-avatar:hover, .rail-avatar:focus-visible { background: var(--primary-700); }
/* Expanded rail (toggle at the bottom, cookie innotel_rail): labels next to the icons, desktop only. */
.rail-label { display: none; }
.rail-logo-full { display: none; }
.rail-toggle .rail-toggle-open, .rail-toggle .rail-toggle-close { display: inline-flex; }
.rail-toggle .rail-toggle-close, body.rail-expanded .rail-toggle .rail-toggle-open { display: none; }
body.rail-expanded .rail-toggle .rail-toggle-close { display: inline-flex; }
@media (min-width: 801px) {
  body.rail-expanded .rail { width: 232px; }
  body.rail-expanded .popover { left: 238px; }
  body.rail-expanded .rail-logo { justify-content: flex-start; padding-left: 18px; }
  body.rail-expanded .rail-logo-icon { display: none; }
  body.rail-expanded .rail-logo-full { display: block; width: 124px; height: auto; }
  body.rail-expanded .rail-group, body.rail-expanded .rail-bottom { align-items: stretch; padding-left: 12px; padding-right: 12px; }
  body.rail-expanded .rail-group::before, body.rail-expanded .rail-bottom::before { width: auto; margin: 0 8px 4px; }
  body.rail-expanded .rail-item { width: 100%; justify-content: flex-start; gap: 12px; padding: 0 12px; }
  body.rail-expanded .rail-item svg { flex: none; }
  body.rail-expanded .rail-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
  body.rail-expanded .rail-item .dot { position: static; flex: none; margin-left: auto; }
  body.rail-expanded .rail-property { width: auto; margin: 0 12px 6px; padding: 0 12px; justify-content: flex-start; gap: 10px; }
  body.rail-expanded .rail-property .rail-label { font-size: 13px; font-weight: 600; }
  body.rail-expanded .rail-property > span:not(.rail-label) { display: none; }
  body.rail-expanded .rail-avatar { width: 100%; height: 44px; margin-top: 4px; padding: 0 12px 0 6px; justify-content: flex-start; gap: 10px; border-radius: var(--radius-lg); background: transparent; color: rgba(255,255,255,.85); }
  body.rail-expanded .rail-avatar:hover, body.rail-expanded .rail-avatar:focus-visible { background: rgba(255,255,255,.1); }
  body.rail-expanded .rail-avatar-initials { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); }
}
@media (max-width: 800px) { .rail-toggle { display: none !important; } }
/* "New" pill on the Help menu's What's new entry (innotel.js). */
.popover-list .popover-new { margin-left: auto; }
/* System-admin pages: dark horizontal menu across the top (innotelUiRenderAdminBar). */
.admin-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; min-height: 52px; padding: 0 24px; background: var(--surface-rail); color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-bar-links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.admin-bar-links::-webkit-scrollbar { height: 0; }
.admin-bar-link { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.72); text-decoration: none; white-space: nowrap; }
.admin-bar-link:hover, .admin-bar-link:focus-visible { background: rgba(255,255,255,.1); color: var(--text-on-brand); text-decoration: none; }
.admin-bar-link.is-active { background: rgba(255,255,255,.14); color: var(--text-on-brand); box-shadow: inset 0 -2px 0 var(--primary-400); }
@media (max-width: 800px) { .admin-bar { padding: 0 12px; } }
@media print { .admin-bar { display: none; } }
.popover-list a svg { width: 16px; height: 16px; flex: none; }
.popover-list a:has(svg)::before { display: none; }
.popover--property .popover-list a.is-active::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 999px; background: var(--primary-600); }
/* Notifications bell: layout B panel (tabs, grouped list, footer) and the rail count badge. */
.rail-badge { position: absolute; top: 2px; right: 3px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--verde); color: var(--text-on-verde); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--border-rail); }
.rail-badge[hidden] { display: none; }
body.rail-expanded .rail-item .rail-badge { position: static; flex: none; margin-left: auto; box-shadow: none; }
.popover.popover--notifications { display: flex; flex-direction: column; width: 380px; max-width: min(380px, calc(100vw - 96px)); overflow: hidden; }
@media (max-width: 800px) { .popover.popover--notifications { max-height: calc(100dvh - 100px); } }
.popover-head.popover-head--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.notif-markall { font-size: 12px; font-weight: 600; color: var(--text-link); } .notif-markall:hover { color: var(--text-link-hover); text-decoration: underline; }
.notif-markall[hidden] { display: none; }
.tabs.tabs--pills.notif-tabs { flex: none; width: auto; padding: 0 0 8px; gap: 0; border-bottom: 1px solid var(--secondary-100); }
.tabs.tabs--pills.notif-tabs button { height: 28px; padding: 0 5px; gap: 3px; font-size: 11.5px; }
.tabs.notif-tabs button .count { font-size: 11px; font-weight: 700; color: inherit; opacity: .85; }
.tabs.notif-tabs button .count[hidden] { display: none; }
.notif-list:focus { outline: none; }
.notif-list { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 2px; }
.notif-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-500); }
.notif { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 9px 10px; border-radius: var(--radius-md); color: var(--secondary-600); }
.notif:hover, .notif:focus-visible { background: var(--primary-50); }
.notif-ic { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--secondary-100); color: var(--secondary-600); }
.notif-ic svg { width: 15px; height: 15px; }
.notif[data-category="reservations"] .notif-ic { background: var(--primary-50); color: var(--text-link-hover); }
.notif[data-kind="reservation_cancelled"] .notif-ic { background: var(--danger-soft); color: var(--ink-danger); }
.notif[data-category="messages"] .notif-ic { background: var(--success-soft); color: var(--ink-success); }
.notif[data-category="reviews"] .notif-ic { background: var(--warning-soft); color: var(--warning-text); }
.notif[data-category="announcements"] .notif-ic { background: var(--verde); color: var(--text-on-verde); }
.notif-title { grid-column: 2; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--secondary-900); overflow-wrap: anywhere; }
.notif.is-unread .notif-title { font-weight: 700; }
.notif-time { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--secondary-500); white-space: nowrap; }
.notif.is-unread .notif-time::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--primary-600); }
.notif-detail { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; line-height: 1.35; color: var(--secondary-600); overflow-wrap: anywhere; }
.notif-hotel { font-weight: 600; color: var(--secondary-700); }
.notif .pill { padding: 1px 7px; font-size: 10px; letter-spacing: 0.02em; text-transform: none; }
.notif-more { flex: none; align-self: center; margin: 4px 0; }
.notif-more[hidden] { display: none; }
.notif-foot { flex: none; display: flex; justify-content: space-between; margin-top: 4px; padding: 8px 10px 2px; border-top: 1px solid var(--secondary-100); font-size: 12px; font-weight: 600; }
.notif-foot a { color: var(--text-link); } .notif-foot a:hover { color: var(--text-link-hover); text-decoration: underline; }

.popover--tip { left: auto; min-width: 244px; max-width: 300px; transform: translateY(-6px); }
.popover--tip.is-open { transform: none; }
.popover--tip .popover-head { padding-bottom: 6px; }
.popover--tip .popover--account .eyebrow, .popover--account .popover-title { overflow-wrap: anywhere; }
.rail-item[aria-expanded="true"] { background: rgba(255,255,255,.1); color: var(--text-on-brand); }
.popover-list.theme-switch { flex-direction: row; gap: 4px; margin-top: 4px; }
.theme-switch button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius-md); font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--secondary-600); overflow-wrap: anywhere; }
.theme-switch button svg { width: 16px; height: 16px; flex: none; }
.theme-switch button:hover { background: var(--primary-50); color: var(--text-link-hover); }
.theme-switch button[aria-checked="true"] { background: var(--primary-100); color: var(--text-link-hover); font-weight: 600; }
.theme-hint { margin: 2px 0 8px; padding: 0 10px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.popover-hint { padding: 0 10px 8px; }
.popover--tip .popover-list { margin-top: 2px; }
.popover--tip .notif-list { border-top: 1px solid var(--secondary-100); }
@media (max-width: 800px) { .popover--tip { left: 12px !important; right: 12px; max-width: none; } }

/* Command palette */
.cmdk { position: fixed; inset: 0; z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: var(--scrim); backdrop-filter: blur(4px); }
.cmdk.is-open { display: flex; }
.cmdk-panel { width: 100%; max-width: 640px; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-modal); overflow: hidden; animation: menu-enter var(--duration-base) var(--ease-out); }
.cmdk-input { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--secondary-100); color: var(--secondary-400); }
.cmdk-input svg { width: 18px; height: 18px; flex: none; }
.cmdk-input input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--secondary-900); } .cmdk-input input:focus { outline: none; }
.cmdk-list { max-height: 60vh; overflow-y: auto; padding: 8px; }
.cmdk-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-500); }
.cmdk-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--secondary-700); }
.cmdk-list a svg { width: 16px; height: 16px; color: var(--text-link); flex: none; }
.cmdk-list a .kbd, .cmdk-list a .muted { margin-left: auto; font-size: 12.5px; }
.cmdk-list a:hover, .cmdk-list a.is-active { background: var(--primary-50); color: var(--text-link-hover); }

/* Popover attached to rail items (positioned by innotel.js) */
.popover { position: fixed; left: 78px; z-index: 60; min-width: 232px; max-width: 280px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 10px; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-dropdown); opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.popover.is-open { opacity: 1; transform: none; pointer-events: auto; }
.popover-head { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px 10px; }
.popover-search { padding: 0 4px 8px; }
.popover-search .search { background: var(--surface-card); border: 1px solid var(--border-default); }
.popover-empty { padding: 10px; font-size: 13px; color: var(--secondary-500); }
.popover--property .popover-list--props { max-height: min(270px, calc(100dvh - 280px)); overflow-y: auto; overscroll-behavior: contain; }
.popover--property .popover-list--props a { flex-shrink: 0; overflow-wrap: anywhere; }
.popover--property .popover-list a.is-active::after { flex-shrink: 0; }
/* System admins see each property's id; searchable, since the filter reads the link text. */
.popover--property .prop-id { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--secondary-400); font-variant-numeric: tabular-nums; }
.popover--property .popover-list a.is-active:has(.prop-id)::after { margin-left: 0; }
.popover-property-manage { margin-top: 6px; }
.popover-property-settings + .popover-search { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--secondary-100); }
.popover-property-settings + .popover-search + .popover-list--props { border-top: 0; padding-top: 0; }
/* The property card stands for the property's own settings pages too. */
.rail-property.is-active { box-shadow: 0 0 0 2px var(--primary-400); }
.popover-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--secondary-900); }
.popover-list { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--secondary-100); padding-top: 8px; }
.popover-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 500; color: var(--secondary-600); }
.popover-list a::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--secondary-300); flex: none; }
.popover-list a:hover, .popover-list a.is-active { background: var(--primary-50); color: var(--text-link-hover); }
.popover-list a.is-active::before { background: var(--primary-600); }
.popover-hint { padding: 0 10px 6px; font-size: 12.5px; color: var(--secondary-600); }


/* ---------- Search field ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--secondary-50); border-radius: var(--radius-md); color: var(--secondary-400); box-sizing: border-box; }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; appearance: none; -webkit-appearance: none; border: 0; background: none; font-size: 14px; color: var(--secondary-900); }
.search input:focus { outline: none; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.search--sm { height: 34px; } .search--sm input { font-size: 13.5px; }
.kbd { flex: none; padding: 2px 6px; border: 1px solid var(--secondary-200); border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--secondary-500); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 13px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--primary-600); color: var(--text-on-brand); } .btn--primary:hover { background: var(--primary-700); color: var(--text-on-brand); }
a.btn:hover { color: inherit; }
a.btn--primary:hover, a.btn--danger:hover, a.btn--danger-solid:hover { color: var(--text-on-brand); }
a.btn--secondary:hover { color: var(--text-link); }
a.btn--soft:hover { color: var(--text-link); }
a.btn--ghost:hover { color: var(--text-link); }
.btn--secondary { background: var(--surface-card); color: var(--secondary-700); border: 1px solid var(--border-default); box-shadow: var(--shadow-xs); } .btn--secondary:hover { background: var(--primary-50); color: var(--text-link); border-color: var(--primary-200); }
.btn--soft { background: var(--primary-50); color: var(--text-link); } .btn--soft:hover { background: var(--primary-100); }
.btn--ghost { color: var(--secondary-600); } .btn--ghost:hover { background: var(--surface-hover); color: var(--text-link); }
.btn--danger { background: var(--danger); color: var(--text-on-brand); } .btn--danger:hover { filter: brightness(.92); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: var(--radius-xl); }
.btn--icon { width: 38px; padding: 0; color: var(--secondary-500); } .btn--icon:hover { background: var(--surface-hover); color: var(--text-link); }
.btn--icon svg { width: 18px; height: 18px; }
.btn--icon .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.btn--icon { position: relative; }
.btn--primary.btn--icon { color: var(--text-on-brand); } .btn--primary.btn--icon:hover { background: var(--primary-700); color: var(--text-on-brand); }
.btn--danger-solid.btn--icon { color: var(--text-on-brand); }
.btn--secondary.btn--icon { color: var(--text-link); }

/* Segmented control */
.segmented { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--secondary-500); }
.segmented button svg { width: 14px; height: 14px; }
.segmented button:hover { background: var(--surface-hover); }
.segmented button.is-active { background: var(--primary-600); color: var(--text-on-brand); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--secondary-600); }
.field .hint { font-size: 12.5px; color: var(--secondary-600); }
.field.is-invalid .input, .field.is-invalid .select, .field:has(label.error) .input, .field:has(label.error) .select { border-color: var(--ink-danger); }
.field.is-invalid .hint, .field label.error { color: var(--ink-danger); }
.field.is-invalid .input-group, .field:has(label.error) .input-group { border-color: var(--ink-danger); }
.field.is-invalid .input-group > .prefix, .field:has(label.error) .input-group > .prefix { color: var(--ink-danger); background: var(--danger-soft); }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 12px; font-size: 14.5px; color: var(--secondary-900); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--secondary-600); background: var(--secondary-50); }
.input--sm, .select--sm { height: 34px; font-size: 13px; border-radius: var(--radius-md); }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.input-group { display: flex; align-items: center; height: 40px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); }
.input-group > .prefix { display: flex; align-items: center; align-self: stretch; padding: 0 10px; font-size: 13px; color: var(--secondary-600); background: var(--secondary-50); }
.input-group > input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; color: var(--secondary-900); }
.input-group > .country-dial { flex: none; width: 48px; padding: 0 6px 0 0; border-right: 1px solid var(--secondary-200); font-variant-numeric: tabular-nums; }
.input-group > .prefix + .country-dial { padding-left: 0; }
.input-group:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.input-group > input:focus { outline: none; }
.field.is-invalid .input-group:focus-within, .field:has(label.error) .input-group:focus-within { outline-color: var(--ink-danger); }
.form-grid { display: grid; gap: 16px; } .form-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .form-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.settings-section { background: var(--surface-card); padding: 24px; border-bottom: 1px solid var(--secondary-200); }
.settings-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.settings-section-head h2, .settings-section-head h3 { margin: 0 auto 0 0; font-size: 18px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--secondary-100); }
.settings-row small { display: block; color: var(--ink-muted); margin-top: 6px; font-size: 13px; }
.settings-row > .input { max-width: 320px; }
.settings-row .switch { flex: none; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 20px; }
.settings-actions [role="status"] { margin-right: auto; font-size: 13px; }
@media (max-width: 600px) {
 .settings-section { padding: 16px; }
 .settings-row { flex-wrap: wrap; gap: 12px; }
 .settings-row > label:not(.switch) { flex: 1; min-width: 180px; }
 .settings-row > .input { max-width: none; }
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-neutral-strong); border-radius: 999px; transition: background var(--duration-fast) var(--ease-out); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--surface-knob); transition: transform var(--duration-fast) var(--ease-out); }
.switch input:checked + .track { background: var(--primary-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface-card); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); overflow: hidden; }
.worklist { overflow-x: auto; }
.card--pad { padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--secondary-100); }
.card-head .sub { margin-top: 3px; font-size: 13px; color: var(--secondary-600); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px; background: var(--secondary-50); font-size: 13px; color: var(--secondary-600); }
.grid { display: grid; gap: 20px; } .grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.kpi { background: var(--surface-card); border-radius: var(--radius-2xl); padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.kpi .value { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; color: var(--secondary-900); }
.kpi .note { font-size: 12.5px; color: var(--secondary-600); }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); font-size: 13px; }
.notice::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex: none; }
.notice--warning { background: var(--warning-soft); color: var(--warning-text); }
.notice--info { background: var(--primary-50); color: var(--text-link-hover); }
.notice--success { background: var(--success-soft); color: var(--ink-success); }
.notice--banner { gap: 12px; padding: 9px 20px; border-radius: 0; border-bottom: 1px solid var(--warning-text); border-bottom-color: color-mix(in srgb, var(--warning-text) 22%, transparent); color: var(--secondary-900); }
.notice--banner::before { display: none; }
.notice--banner .notice-label { flex: none; color: var(--warning-text); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.notice--banner .notice-text { flex: 1; min-width: 0; font-weight: 500; }
.notice--banner .notice-link { flex: none; font-weight: 700; color: var(--text-link); }
.notice--banner .notice-close { width: 28px; height: 28px; flex: none; }
.notice--banner .notice-close svg { width: 16px; height: 16px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--secondary-200); overflow-x: auto; overflow-y: hidden; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--secondary-500); white-space: nowrap; }
.tabs button .count { font-size: 12px; color: var(--secondary-500); }
.tabs button:hover { color: var(--secondary-900); }
.tabs button.is-active { color: var(--text-link); border-bottom-color: var(--primary-600); }
.tab-panel[hidden] { display: none !important; }
.tab-panel.stack-20 { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pill--neutral { background: var(--secondary-100); color: var(--secondary-600); }
.pill--brand { background: var(--primary-50); color: var(--text-link-hover); }
.pill--success { background: var(--success-soft); color: var(--ink-success); }
.pill--warning { background: var(--warning-soft); color: var(--warning-text); }
.pill--danger { background: var(--danger-soft); color: var(--ink-danger); }
.pill--verde { background: var(--verde); color: var(--text-on-verde); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; font-size: 13px; font-weight: 500; color: var(--secondary-600); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 999px; }
.chip.is-on { background: var(--primary-600); border-color: var(--primary-600); color: var(--text-on-brand); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 20px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-600); background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); white-space: nowrap; }
.table th.sortable { cursor: pointer; } .table th.sortable:hover, .table th.is-sorted { color: var(--text-link); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--secondary-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody tr.is-dirty { background: var(--primary-50); }
.table .primary { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); }
.table .secondary { font-size: 12px; color: var(--secondary-600); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table--compact td { padding: 8px 20px; }
.table .select--sm, .table .input--sm { min-width: 0; }

/* ---------- Progress ---------- */
.progress { height: 5px; border-radius: 999px; background: var(--secondary-50); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary-600); }

/* ---------- Dropdown menu ---------- */
.menu { position: absolute; z-index: 50; min-width: 200px; padding: 6px; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-dropdown); display: none; animation: menu-enter var(--duration-fast) var(--ease-out); }
.menu.is-open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 500; color: var(--secondary-600); text-align: left; white-space: nowrap; }
.menu a svg, .menu button svg { width: 16px; height: 16px; flex: none; }
.menu.menu--fixed { position: fixed; right: auto; bottom: auto; z-index: 9100; }
.menu a:hover, .menu button:hover { background: var(--primary-50); color: var(--text-link-hover); }
.menu hr { border: 0; border-top: 1px solid var(--secondary-100); margin: 6px 0; }
.has-menu { position: relative; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--scrim); backdrop-filter: var(--scrim-blur); }
.modal.is-open { display: flex; }
.modal-panel { width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow: auto; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-modal); animation: menu-enter var(--duration-base) var(--ease-out); }
.modal-panel .card-head { align-items: center; }
.modal-panel .card-foot { justify-content: flex-end; gap: 8px; }
.modal--lg .modal-panel { max-width: 760px; }

/* ---------- Group manager (modal) ---------- */
.modal--lg .modal-panel { max-width: 880px; }
.groups-body { display: grid; grid-template-columns: 300px minmax(0,1fr); }
.groups-side { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-right: 1px solid var(--secondary-100); }
.grouplist { display: flex; flex-direction: column; gap: 4px; }
.group-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 2px; border-radius: var(--radius-md); }
.group-row:hover { background: var(--surface-hover); }
.group-row.is-active { background: var(--primary-50); }
.group-drag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 28px; color: var(--secondary-400); cursor: grab; flex: none; }
.group-drag svg { width: 14px; height: 14px; }
.group-name { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius-md); background: none; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.group-name:hover { border-color: var(--secondary-200); background: var(--surface-card); }
.group-name:focus { border-color: transparent; background: var(--surface-card); }
.group-name-static { flex: 1; min-width: 0; padding: 0 8px; font-size: 13.5px; font-weight: 500; color: var(--secondary-500); font-style: italic; }
.group-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--secondary-100); font-size: 11.5px; font-weight: 700; color: var(--secondary-600); text-align: center; flex: none; }
.group-row.is-active .group-count { background: var(--primary-600); color: var(--text-on-brand); }
.group-del { width: 28px; height: 28px; flex: none; opacity: 0; }
.group-row:hover .group-del, .group-del:focus-visible { opacity: 1; }
.group-del:hover { color: var(--ink-danger); background: var(--warning-soft); }
.group-del svg { width: 15px; height: 15px; }
.group-add { display: flex; gap: 6px; padding-top: 6px; border-top: 1px solid var(--secondary-100); }
.group-add .input { flex: 1; min-width: 0; }
.groups-main { display: flex; flex-direction: column; min-width: 0; }
.groups-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 20px 12px; }
.roomlist { flex: 1; overflow-y: auto; max-height: 340px; border-top: 1px solid var(--secondary-100); }
.roomlist-head { display: flex; align-items: center; gap: 10px; padding: 9px 20px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-600); }
.room-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--secondary-100); font-size: 13.5px; color: var(--secondary-700); cursor: pointer; }
.room-row:hover { background: var(--surface-hover); }
.room-row.is-picked { background: var(--primary-50); }
.room-row b { min-width: 42px; font-size: 14.5px; color: var(--secondary-900); }
.bulk-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--secondary-100); background: var(--secondary-50); font-size: 13px; color: var(--secondary-600); }
.bulk-inline b { color: var(--secondary-900); }
.bulk-inline .btn { margin-left: auto; }
.menu button { font: inherit; }
@media (max-width: 800px) { .groups-body { grid-template-columns: 1fr; } .groups-side { border-right: 0; border-bottom: 1px solid var(--secondary-100); } .roomlist { max-height: 220px; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 10001; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-modal); font-size: 14px; font-weight: 500; color: var(--secondary-900); pointer-events: auto; animation: toast-in var(--duration-base) var(--ease-out); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-success); flex: none; }
.toast--error::before { background: var(--danger); } .toast--info::before { background: var(--primary-600); }
.toast-action { margin-left: 4px; color: var(--text-link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.toast-action:hover { text-decoration: underline; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Save bar (dirty-state) */
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; justify-content: center; padding: 0 28px 24px; pointer-events: none; }
.savebar.is-open { display: flex; }
.savebar > div { display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 20px; background: var(--surface-inverse); color: var(--text-inverse); border-radius: var(--radius-2xl); box-shadow: 0 18px 60px rgba(0,0,0,.32); pointer-events: auto; animation: toast-in var(--duration-base) var(--ease-out); }
.savebar .muted, .savebar [data-detail] { color: rgba(255,255,255,.78); }
.savebar .btn--ghost { color: var(--text-inverse); } .savebar .btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--text-inverse); }

/* ---------- Empty state / pagination ---------- */
.empty { padding: 56px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { font-size: 18px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; color: var(--secondary-600); }
.pagination button:hover { background: var(--surface-hover); }
.pagination button.is-active { background: var(--primary-600); color: var(--text-on-brand); }

/* ---------- Toolbar (icon cluster, e.g. calendar tools) ---------- */
.toolbar { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.toolbar > button, .toolbar > .has-menu > button, .toolbar > a { position: relative; width: 38px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--secondary-500); }
.toolbar > button svg, .toolbar > .has-menu > button svg, .toolbar > a svg { width: 18px; height: 18px; }
.toolbar > button:hover, .toolbar > .has-menu > button:hover, .toolbar > a:hover, .toolbar > button:focus-visible, .toolbar > .has-menu > button:focus-visible, .toolbar > a:focus-visible { background: var(--primary-50); color: var(--text-link); }
.toolbar > button.is-active { background: var(--primary-600); color: var(--text-on-brand); }
.toolbar > button.is-verde { background: var(--verde); color: var(--text-on-verde); }
.toolbar > button.is-danger { color: var(--ink-danger); } .toolbar > button.is-danger:hover { background: var(--danger-soft); }
.toolbar > button.is-admin { color: var(--secondary-400); } .toolbar > button.is-admin::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 12px; height: 2px; border-radius: 999px; background: var(--secondary-300); }
.badge-count { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--verde); color: var(--text-on-verde); font-size: 9.5px; font-weight: 800; }
.popover--tip code { padding: 1px 5px; border-radius: 4px; background: var(--secondary-50); font-size: 12px; }
.toolbar > hr { width: 1px; height: 22px; margin: 0 4px; border: 0; background: var(--secondary-200); }

/* ---------- Stat tiles (selectable filters) ---------- */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 16px; }
.stats--3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 560px; }
.stats--4 { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 820px; }
.stats--4 .stat { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 14px 18px; text-align: left; }
.stats--4 .stat .value { font-size: 24px; } .stats--4 .stat .label { letter-spacing: 0.1em; }
.stats--3 .stat { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 14px 18px; text-align: left; }
.stats--3 .stat .value { font-size: 24px; } .stats--3 .stat .label { letter-spacing: 0.1em; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; background: var(--surface-card); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); border: 2px solid transparent; text-align: center; cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.stat:hover { box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(0,0,0,.12)); }
.stat.is-active { border-color: var(--primary-600); }
.stat .value { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.stat .label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary-700); }
.stat--brand .value { color: var(--text-link); } .stat--danger .value { color: var(--ink-danger); } .stat--success .value { color: var(--ink-success); } .stat--muted .value { color: var(--secondary-300); } .stat--warning .value { color: var(--warning-text); }

/* ---------- Section band (e.g. Bloco 1) ---------- */
.band { background: var(--surface-card); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); overflow: hidden; }
.band-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-700); }
.band-body { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.band-edit { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 10px; border-radius: var(--radius-md); color: var(--secondary-400); flex: none; }
.band-edit svg { width: 14px; height: 14px; }
.band-edit:hover { background: var(--surface-card); color: var(--text-link); }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 12px; font-weight: 700; letter-spacing: 0; }

/* ---------- Room card (housekeeping) ---------- */
.room { position: relative; display: flex; flex-direction: column; background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); border: 1px solid var(--secondary-100); overflow: hidden; transition: box-shadow var(--duration-base) var(--ease-out); }
.room:hover { box-shadow: var(--shadow-card); }
.room::before { content: ""; height: 4px; background: var(--secondary-100); }
.room--dirty::before { background: var(--danger); }
.room--inhouse::before { background: var(--primary-600); }
.room--arrival::before { background: var(--verde); }
.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.room-number { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; color: var(--secondary-900); }
.room-number.is-brand { color: var(--text-link); }
.room-type { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-600); }
.room-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room-guest { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.room-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--secondary-600); }
.room-meta svg { width: 14px; height: 14px; }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--secondary-100); background: var(--secondary-50); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary-600); }
.room-foot .state { display: inline-flex; align-items: center; gap: 6px; }
.room-foot .state svg { width: 14px; height: 14px; }
.room-foot .state--inhouse { color: var(--ink-success); } .room-foot .state--arrival { color: var(--text-link-hover); }
.room-foot .nights { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; }

/* ---------- Room rack (map view) ---------- */
.rack-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.room-detail { position: sticky; top: 20px; }
.detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--secondary-600); }
.detail-row b { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; padding: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 10px; border-radius: var(--radius-lg); border: 1px solid transparent; text-align: left; transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.tile:hover { box-shadow: var(--shadow-card); }
.tile:active { transform: scale(0.98); }
.tile.is-active { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--secondary-500); }
.tile-top svg { width: 14px; height: 14px; }
.tile-num { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1; color: var(--secondary-900); letter-spacing: 0; }
.tile-type { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-foot { margin-top: auto; font-size: 11.5px; color: var(--secondary-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile--sujo, .tile--dirty { background: var(--danger-soft); border-color: var(--hk-tile-dirty-line); }
.tile--limpeza, .tile--cleaning { background: var(--warning-soft); border-color: var(--hk-tile-cleaning-line); }
.tile--limpo, .tile--clean { background: var(--success-soft); border-color: var(--hk-tile-clean-line); }
.tile--vistoriado, .tile--inspected { background: var(--primary-50); border-color: var(--hk-tile-inspected-line); }
.tile.is-blocked { background: repeating-linear-gradient(135deg, var(--hk-blocked-a), var(--hk-blocked-a) 6px, var(--hk-blocked-b) 6px, var(--hk-blocked-b) 12px); border-color: var(--hk-blocked-line); }
.tile.is-blocked .tile-num { color: var(--secondary-500); }

/* ---------- Cleaning flow (kanban) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 4px; align-items: start; }
.board-col { background: var(--secondary-50); border-radius: var(--radius-2xl); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.board-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-700); }
.board-body { display: flex; flex-direction: column; gap: 8px; }
.board-empty { padding: 18px 4px; text-align: center; font-size: 13px; color: var(--secondary-600); }
.board-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); cursor: grab; }
.board-card[draggable="false"] { cursor: default; }
.board-card:hover { box-shadow: var(--shadow-card); }
.board-card.is-priority { box-shadow: inset 3px 0 0 var(--primary-600), var(--shadow-xs); }
.board-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-num { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1; color: var(--secondary-900); letter-spacing: 0; }
.board-type { font-size: 12px; color: var(--secondary-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.count-pill--danger { background: var(--danger); } .count-pill--warning { background: var(--warning-text); } .count-pill--success { background: var(--success); } .count-pill--brand { background: var(--primary-600); }
.mini-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 10.5px; font-weight: 700; flex: none; }

/* ---------- Shared bits: status dot, filters row, checkbox ---------- */
.dot-status { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 999px; background: var(--secondary-300); flex: none; }
.dot-status--sujo { background: var(--danger); } .dot-status--limpeza { background: var(--warning-text); } .dot-status--limpo { background: var(--success); } .dot-status--vistoriado { background: var(--primary-600); }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--secondary-100); }
.filters .search, .inbox-tools .search { background: var(--surface-card); border: 1px solid var(--border-default); }
.check { display: inline-flex; align-items: center; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check span { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--border-neutral-strong); background: var(--surface-card); }
.check input:checked + span { border-color: var(--primary-600); background: var(--primary-600) center/11px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.check input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--secondary-50); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary-600); }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--secondary-700); }
.table--rooms td { padding: 10px 16px; } .table--rooms th { padding: 9px 16px; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--secondary-500); }
.segmented a svg { width: 14px; height: 14px; }
.segmented a:hover { background: var(--secondary-50); color: var(--secondary-700); }
.segmented a.is-active { background: var(--primary-600); color: var(--text-on-brand); }

/* ---------- Task card (maintenance) ---------- */
.task { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface-card); border-radius: var(--radius-xl); border: 1px solid var(--secondary-100); box-shadow: var(--shadow-xs); }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-title { font-size: 15px; font-weight: 600; color: var(--secondary-900); }
.task--done .task-title { color: var(--secondary-400); text-decoration: line-through; }
.task--high { border-color: var(--ink-danger); }
.task-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--secondary-600); }
.task-meta span { display: inline-flex; align-items: center; gap: 6px; } .task-meta svg { width: 14px; height: 14px; }

/* ---------- Worklist (maintenance queue) ---------- */
.wl-group { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-600); }
.wl-row { display: grid; grid-template-columns: 8px minmax(200px, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--secondary-100); }
.wl-main { min-width: 0; }
.wl-count { margin-left: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--secondary-600); }
.wl-done > summary { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-600); cursor: pointer; list-style: none; }
.wl-done > summary::-webkit-details-marker { display: none; }
.wl-done > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--secondary-400); border-bottom: 1.5px solid var(--secondary-400); transform: rotate(45deg); }
.wl-done[open] > summary::after { transform: rotate(-135deg); }
.wl-done > summary:hover { color: var(--text-link); }
.wl-row:hover { background: var(--secondary-50); }
.wl-row.is-active { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary-600); }
.wl-prio { width: 8px; height: 8px; border-radius: 999px; }
.prio--alta { background: var(--danger); } .prio--media { background: var(--warning-text); } .prio--baixa { background: var(--secondary-300); }
.wl-room { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.wl-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--secondary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-sub { display: block; font-size: 12px; color: var(--secondary-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-sub b { font-weight: 600; color: var(--secondary-700); }
.wl-row.is-done .wl-title { color: var(--secondary-400); text-decoration: line-through; }
.wl-flags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wl-flags .pill svg { width: 11px; height: 11px; }
.wl-due { font-size: 12px; color: var(--secondary-600); } .wl-due.is-late { color: var(--ink-danger); font-weight: 600; }
.wl-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary-600); }

/* Maintenance detail follows the quiet, sequential action rail: fields remain
   part of the record rather than looking like a second card inside it. */
.mt-update-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.mt-update-form .field { gap: 7px; }
.mt-update-form .field > label { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mt-update-form .select { background-color: var(--surface-card); }
.mt-update-form .textarea { min-height: 96px; background: var(--surface-card); line-height: 1.45; }
.mt-update-tools { display: flex; }
.mt-photo-action { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 96px; height: 76px; border: 1px dashed var(--primary-600); border-radius: var(--radius-lg); color: var(--text-link); font-size: 12px; font-weight: 600; }
.mt-photo-action svg { width: 16px; height: 16px; }
.mt-photo-action:disabled { opacity: .7; cursor: not-allowed; }
.mt-update-form .actions { width: 100%; margin-top: 0; }
.mt-update-form .btn { width: 100%; }

/* Timeline + photo slots */
.timeline { display: flex; flex-direction: column; }
.tl-item { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 1px; background: var(--secondary-200); }
.tl-item:last-child { padding-bottom: 0; } .tl-item:last-child::before { display: none; }
.tl-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; background: var(--primary-50); flex: none; }
.tl-dot svg { width: 10px; height: 10px; color: var(--text-link); }
.tl-body b { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.tl-body span { display: block; font-size: 12.5px; color: var(--secondary-600); }
.tl-body time { font-size: 11.5px; color: var(--secondary-500); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 96px; height: 76px; border-radius: var(--radius-lg); background: var(--secondary-50); font-size: 11.5px; color: var(--secondary-600); text-align: center; padding: 6px; }
.photo-slot svg { width: 16px; height: 16px; }
.photo-slot--add { border: 1px dashed var(--secondary-200); background: none; } .photo-slot--add:hover { border-color: var(--primary-600); color: var(--text-link); }

/* ---------- Filter chips with brand marks ---------- */
.chip svg, .chip img { width: 16px; height: 16px; }
.chip .mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 800; color: var(--text-on-brand); }
.mark--booking { background: #003580; } .mark--airbnb { background: #c9353a; } .mark--whatsapp { background: #0d7a4f; } .mark--expedia { background: #fbcc33; color: #1e1e1e; }

/* ---------- Inbox (two-pane) ---------- */
.inbox { display: grid; grid-template-columns: 360px minmax(0,1fr); height: 100vh; background: var(--surface-card); }
.inbox-list { display: flex; flex-direction: column; border-right: 1px solid var(--secondary-100); min-height: 0; }
.inbox-tools { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-bottom: 1px solid var(--secondary-100); }
.inbox-tools .search { width: 100%; }
.inbox-tools .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inbox-scroll { overflow-y: auto; flex: 1; }
.convo { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--secondary-100); }
.convo:hover { background: var(--secondary-50); }
.convo.is-active { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary-600); }
.convo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.convo-name { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.is-unread .convo-name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 999px; background: var(--primary-600); vertical-align: middle; }
.convo-time { font-size: 12px; color: var(--secondary-600); white-space: nowrap; }
.convo-source { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--secondary-600); }
.convo-source .mark { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--text-on-brand); flex: none; }
.convo-preview { font-size: 13.5px; color: var(--secondary-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-pane { display: flex; flex-direction: column; min-height: 0; }
.inbox-pane .empty { flex: 1; justify-content: center; color: var(--secondary-500); }
.inbox-pane .empty svg { width: 48px; height: 48px; color: var(--secondary-200); }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--secondary-100); }
.inbox-head > :first-child { flex: 1; min-width: 0; }
.inbox-head .inbox-title { font-size: 15px; font-weight: 600; color: var(--secondary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-head .convo-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-head .actions { flex: none; flex-wrap: wrap; justify-content: flex-end; }
.message-summary { margin: 12px 20px 0; white-space: pre-wrap; align-items: flex-start; }
.message-summary[hidden] { display: none; }
@container inbox-pane (max-width: 720px) { .inbox-head .btn--sm .label { display: none; } .inbox-head .btn--sm { width: 32px; padding: 0; } }
[data-agent-simulator] .inbox-head { flex-wrap: wrap; }
[data-agent-simulator] .inbox-head > :first-child { flex: 1 1 240px; }
[data-agent-simulator] .inbox-head [data-simulator-reset] { width: auto; padding: 0 12px; white-space: nowrap; flex-shrink: 0; }
.inbox-pane { container-type: inline-size; container-name: inbox-pane; }
.thread { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.bubble { max-width: 68%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; background: var(--surface-card); color: var(--secondary-900); box-shadow: var(--shadow-xs); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: var(--primary-600); color: var(--text-on-brand); border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.bubble--agent { background: var(--verde); color: var(--text-on-verde); }
.bubble time { display: block; margin-top: 4px; font-size: 11px; color: var(--secondary-500); }
.composer { display: flex; flex-direction: column; gap: 0; padding: 12px 16px 14px; }
.composer-field { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 8px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); }
.composer-field:focus-within { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); }
.composer-field textarea { flex: 1; min-width: 0; min-height: 66px; max-height: 180px; padding: 9px 6px; border: 0; background: none; resize: none; font-size: 14px; line-height: 1.5; color: var(--secondary-900); }
.composer-field textarea:focus { outline: none; }
.composer-field .btn--icon { flex: none; margin-bottom: 1px; }
.btn--send { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-lg); flex: none; }
.btn--send svg { width: 18px; height: 18px; }
.composer--draft .composer-field { background: var(--primary-50); border-color: var(--primary-100); }
.draft-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-link-hover); }
.draft-tag svg { width: 13px; height: 13px; }
.draft-tag .pill { background: var(--verde); color: var(--text-on-verde); }
.draft-tag button { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--secondary-600); } .draft-tag button:hover { color: var(--text-link); }

/* ---------- Dashboard charts (static) ---------- */
.page--wide { max-width: none; }
.kpi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kpi-row .value { font-size: 26px; }
.chart-card { display: flex; flex-direction: column; gap: 18px; }
.chart-card .sub { margin-top: 3px; font-size: 13px; color: var(--secondary-600); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 22px; border-bottom: 1px solid var(--secondary-100); }
.bars .bar { flex: 1 1 0; min-width: 0; position: relative; height: 100%; display: flex; align-items: flex-end; }
.bars .bar > span { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--primary-300); position: relative; }
.bars .bar > span:hover { background: var(--primary-600); }
.bars .bar b { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--text-on-brand); white-space: nowrap; }
.bar-tip, .line-tip { position: absolute; z-index: 2; display: block; width: max-content; max-width: min(220px, calc(100vw - 32px)); padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-inverse); color: var(--text-inverse); font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: 0; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.bar-tip { left: 50%; bottom: calc(100% + 8px); }
.bar-tip::after, .line-tip::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; background: var(--surface-inverse); transform: translateX(-50%) rotate(45deg); }
.bar-tip::after { top: calc(100% - 4px); }
.bars .bar:hover .bar-tip, .bars .bar:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.line-chart { position: relative; height: 200px; }
.chart-line { width: 100%; height: 100%; }
.line-point { position: absolute; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 3px solid var(--surface-card); border-radius: 999px; background: var(--primary-600); box-shadow: 0 1px 3px rgba(0, 0, 0, .16); }
.line-tip { left: 50%; bottom: calc(100% + 10px); }
.line-tip::after { top: calc(100% - 4px); }
.line-point:hover .line-tip, .line-point:focus-visible .line-tip { opacity: 1; transform: translate(-50%, 0); }
.line-point.is-edge-start .line-tip { left: 0; transform: translate(0, 4px); }
.line-point.is-edge-start .line-tip::after { left: 8px; transform: rotate(45deg); }
.line-point.is-edge-start:hover .line-tip, .line-point.is-edge-start:focus-visible .line-tip { transform: translate(0, 0); }
.line-point.is-edge-end .line-tip { left: auto; right: 0; transform: translate(0, 4px); }
.line-point.is-edge-end .line-tip::after { left: auto; right: 4px; transform: rotate(45deg); }
.line-point.is-edge-end:hover .line-tip, .line-point.is-edge-end:focus-visible .line-tip { transform: translate(0, 0); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--secondary-600); }
.donut-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--secondary-900); }
.donut-center small { font-size: 11px; color: var(--secondary-500); }
.legend { display: flex; flex-direction: column; gap: 12px; flex: 1 1 120px; min-width: 0; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--secondary-600); }
.legend-item span { width: 18px; height: 4px; border-radius: 999px; flex: none; }
.metric { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--secondary-100); }
.metric:last-child { border-bottom: 0; }
.metric .primary { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); } .metric .secondary, .card .secondary { font-size: 12.5px; color: var(--secondary-600); }
.metric-val { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.metric-val b { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.metric-val small { font-size: 11.5px; font-weight: 600; }

/* ---------- Calendar page chrome ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--secondary-100); }
.tabs--pills { border-bottom: 0; gap: 2px; }
.tabs--pills button { padding: 0 13px; height: 34px; margin: 0; border-bottom: 0; border-radius: var(--radius-md); color: var(--secondary-600); font-weight: 500; }
.tabs--pills button:hover { background: var(--primary-50); color: var(--text-link-hover); }
.tabs--pills button.is-active { background: var(--primary-600); color: var(--text-on-brand); font-weight: 600; }
.cal-legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; border-left-width: 3px; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: 244px 1320px; font-size: 12px; }
.cal-corner { grid-column: 1; grid-row: 1 / span 2; height: 58px !important; box-sizing: border-box; }
.cal-corner .innotel_corner_inner { height: 100%; }
.cal-month { border-bottom: 1px solid var(--secondary-100); }
.cal-month { grid-column: 2; grid-row: 1; height: 26px; display: flex; align-items: center; justify-content: flex-start; padding-left: 12px; border-bottom: 1px solid var(--cal-line-grid); font-weight: 600; color: var(--secondary-500); background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.cal-dayhead { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(30, 44px); }
.cal-grid .innotel_timeheadercol { height: 32px; position: relative; } .cal-grid .innotel_timeheadercol_inner { height: 100%; }
.today-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); }
.cal-grid .innotel_rowheader_level0 { height: 34px; }
.cal-grid .innotel_rowheader { grid-column: 1; box-sizing: border-box; }
.cal-grid .innotel_rowheader_level0 .innotel_rowheader_inner { padding-left: 12px; font-weight: 600; color: var(--secondary-900); display: flex; align-items: center; overflow: hidden; }
.cal-grid .innotel_rowheader_level0 .innotel_rowheader_inner > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-grid .innotel_rowheader_level0 .innotel_rowheader_inner .innotel_tree_image_collapse { flex: none; }
.cal-grid .innotel_rowheader_inner { white-space: nowrap; overflow: hidden; }
.cal-grid .innotel_cell { box-sizing: border-box; } .cal-grid .innotel_rowheader_inner { height: 100%; gap: 8px; }
.cal-grid .innotel_rowheader_inner.sub { font-size: 12px; color: var(--secondary-600); font-weight: 400; }
.cal-group-spacer { grid-column: 2; height: 34px; background: var(--secondary-50); border-bottom: 1px solid var(--cal-line-grid); }
.cal-row { grid-column: 2; position: relative; display: grid; grid-template-columns: repeat(30, 44px); height: 40px; border-bottom: 1px solid var(--cal-line-grid); }
.cal-row--28 { height: 28px; } .cal-row--28 .innotel_cell { height: 28px; }
.cal-grid .innotel_avail, .cal-grid .innotel_price { height: 28px; }
.room-note { margin-left: 8px; font-size: 11.5px; color: var(--secondary-500); font-weight: 400; }
.innotel_event_inner .mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 3px; font-size: 9px; font-weight: 800; color: var(--text-on-brand); }

.split-card { display: grid; grid-template-columns: 320px minmax(0,1fr); }
.split-card-aside { padding: 8px 24px; border-right: 1px solid var(--secondary-100); }
.grid--charts { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr); }

/* ---------- Inbox: 3-pane, agent mode, suggestion, context ---------- */
.inbox--3 { grid-template-columns: 320px minmax(0,1fr) 280px; }
.inbox-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-filters .select { flex: 1 1 100%; min-width: 0; }
.convo-ch { width: 13px; height: 13px; color: var(--secondary-500); flex: none; }
.inbox-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--secondary-100); background: var(--secondary-50); }
.agent-mode { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.agent-behavior-title { display: flex; align-items: center; gap: 8px; }
.agent-brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--verde); flex: none; }
.agent-brand-badge svg { width: 22px; height: 22px; }
.message-actions { position: relative; }
.message-actions > summary { list-style: none; cursor: pointer; }
.message-actions > summary::-webkit-details-marker { display: none; }
.message-actions-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 200px; padding: 6px; z-index: 50; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-dropdown); }
.message-actions-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-md); color: var(--secondary-600); text-align: left; }
.message-actions-menu button:hover { background: var(--primary-50); }
.message-actions-menu svg { width: 20px; height: 20px; flex: none; }
.message-debug-dialog { margin: auto; width: min(720px, calc(100vw - 32px)); max-height: 85dvh; padding: 20px; border: 1px solid var(--secondary-100); border-radius: var(--radius-xl); background: var(--surface-raised); }

.message-debug-dialog header { display: flex; justify-content: space-between; align-items: center; }
.message-debug-dialog h2 { font-size: 20px; }
.message-debug-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 16px; font-size: 12px; }
.agent-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--secondary-600); }
.agent-mode button svg { width: 13px; height: 13px; }
.agent-mode button:hover { background: var(--secondary-50); }
.agent-mode button.is-active { background: var(--primary-600); color: var(--text-on-brand); }
.agent-mode button:disabled { opacity: .45; cursor: not-allowed; }
[data-agent-mode-feedback]:empty { display: none; }
[data-agent-mode-feedback] { margin: 8px 0 0; line-height: 1.5; }
[data-agent-mode-feedback] a { color: var(--text-link); font-weight: 600; }
.agent-hint { font-size: 12px; color: var(--secondary-600); }
.chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 10.5px; font-weight: 700; }
.chip.is-on .chip-count { background: rgba(255,255,255,.25); }
.segmented--sm { padding: 3px; } .segmented--sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.mark--engine { background: var(--primary-600); }
.date-sep { display: flex; align-items: center; gap: 12px; margin: 6px 0; color: var(--secondary-600); font-size: 12px; }
.date-sep::before, .date-sep::after { content: ""; flex: 1; height: 1px; background: var(--secondary-200); }
.msg { display: flex; align-items: center; gap: 8px; }
.msg--in { justify-content: flex-start; } .msg--out, .msg--agent { flex-direction: row-reverse; justify-content: flex-start; }
.msg .bubble { max-width: 560px; }
.msg--out .bubble { background: var(--primary-600); color: var(--text-on-brand); border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.msg--agent .bubble { background: var(--primary-50); color: var(--secondary-900); border: 1px solid var(--primary-100); border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
[data-agent-simulator] .msg--agent { flex-direction: row; justify-content: flex-start; }
[data-agent-simulator] .msg--agent .bubble { border-bottom-left-radius: 6px; border-bottom-right-radius: 16px; }
.bubble-who { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--secondary-600); }
.msg--out .bubble time { color: var(--ink-on-brand); }
.msg--out .bubble-who { color: var(--ink-on-brand); }
.msg--agent .bubble-who { color: var(--text-link-hover); }
.msg--agent .bubble time { color: var(--secondary-600); }
.msg-tools { display: flex; gap: 2px; opacity: 0; transition: opacity var(--duration-fast) var(--ease-out); }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { opacity: 1; }
@media (hover: none) { .msg-tools { opacity: .55; } }
.msg-tools .btn--icon { width: 28px; height: 28px; } .msg-tools .btn--icon svg { width: 15px; height: 15px; }
.suggestion { display: flex; flex-direction: column; gap: 10px; margin: 0 16px 12px; padding: 14px 16px; background: var(--primary-50); border-radius: var(--radius-xl); }
.suggestion-head { display: flex; align-items: center; gap: 10px; }
.suggestion p { font-size: 14px; color: var(--secondary-900); }
.inbox-ctx { border-left: 1px solid var(--secondary-100); background: var(--surface-card); overflow-y: auto; display: flex; flex-direction: column; }
.ctx-block { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-bottom: 1px solid var(--secondary-100); }
[data-message-summary] { line-height: 1.55; overflow-wrap: anywhere; }
[data-message-summary] p { margin: 0 0 10px; }
[data-message-summary] ul, [data-message-summary] ol { margin: 0 0 10px; padding-left: 18px; }
[data-message-summary] li + li { margin-top: 10px; }
[data-message-summary] strong { font-weight: 600; color: var(--secondary-800); }
[data-message-summary] > :last-child { margin-bottom: 0; }
.ctx-res { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--secondary-50); border-radius: var(--radius-lg); }
.ctx-res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ctx-res-top b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--secondary-900); }
.memories { display: flex; flex-direction: column; gap: 6px; }
.memory { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: var(--radius-md); background: var(--secondary-50); font-size: 13px; color: var(--secondary-700); }
.memory svg { width: 14px; height: 14px; color: var(--text-link); flex: none; margin-top: 2px; }
.memory.is-pending { background: var(--warning-soft); }
.memory .pill { margin-left: auto; }

/* Messages is an operational workspace, not a card inside a content page.
   The page itself must never grow beyond the viewport: list, thread and
   context each own their scroll area, leaving the agent controls pinned. */
body[data-page="messages"] { overflow: hidden; }
body[data-page="messages"] .app { height: 100vh; min-height: 0; }
body[data-page="messages"] .app-main { height: 100vh; min-height: 0; overflow: hidden; }
body[data-page="messages"] .page { flex: 1; height: 100%; min-height: 0; max-width: none; margin: 0; padding: 0; gap: 0; overflow: hidden; }
body[data-page="messages"] .inbox { flex: 1; height: 100%; min-height: 0; overflow: hidden; }

/* ---------- Status strip (feature already configured) ---------- */
.statusbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); font-size: 13px; color: var(--secondary-700); }
.statusbar-on { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--success-soft); color: var(--ink-success); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.statusbar-on svg { width: 12px; height: 12px; }
.statusbar-link { margin-left: auto; font-size: 13px; font-weight: 600; }
.pager { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--secondary-600); }
.qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px; }
.qitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); font-size: 13.5px; color: var(--secondary-700); cursor: pointer; }
.qitem:hover { background: var(--secondary-50); }
.table tr.is-muted td { opacity: .6; }
.th-help { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 999px; color: var(--secondary-500); vertical-align: middle; }
.th-help svg { width: 14px; height: 14px; }
.th-help:hover, .th-help:focus-visible { background: var(--surface-card); color: var(--text-link); }
.table .num .btn--icon { margin-left: 4px; }

/* ---------- Neutral chrome (product default) ---------- */
body { background: var(--surface-app); }
.rail { background: var(--surface-rail); }
.rail-property { background: var(--verde); }
.stats .stat { border-color: transparent; }
.stats .stat.is-active { border-color: var(--primary-600); }
.band-head { background: var(--surface-sunken); color: var(--secondary-600); }
.wl-group, .table th, .card-foot, .cal-nav, .filters { background: var(--surface-sunken); }
.tile--limpo { background: #edf7f0; border-color: #d3e9da; }
.tile--vistoriado { background: #eaf3fa; border-color: #cfe3f2; }
.tile--limpeza { background: #fdf5e3; border-color: #f0e2bd; }
.tile--sujo { background: #fdeaea; border-color: #f2cfcf; }
.pill--verde { background: var(--verde); }

/* calendar: neutral hairlines and headers */
.innotel_corner, .innotel_timeheadercol, .cal-month, .innotel_rowheader_level0, .cal-group-spacer { background: var(--surface-sunken) !important; }
.innotel_timeheadercol.innotel_weekend { background: rgba(237,237,148,.18) !important; }
.innotel_cell.innotel_weekend { background: rgba(237,237,148,.08); }
/* boards */
.board-col { background: var(--surface-muted); }
/* tabs */
.tabs { border-bottom-color: var(--border-divider); }

/* ---------- Backlink + print sheet ---------- */
.backlink { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--secondary-600); }
.backlink svg { width: 14px; height: 14px; }
.backlink:hover { color: var(--text-link); }
.w-40 { width: 40px; }
.print-head { display: none; }
@media print {
  @page { margin: 14mm; }
  .rail, .page-head .actions, .stats, .no-print, .band-note, .backlink { display: none !important; }
  body { background: #fff; padding: 0; }
  /* min-height: 100vh pushed the content to a second page, leaving the first one blank. */
  .app { display: block; min-height: 0; }
  .page { padding: 0; max-width: none; gap: 10px; }
  .page-head { display: none; }
  .print-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1.5px solid #000; }
  .print-head b { display: block; font-family: var(--font-display); font-size: 18px; color: #000; }
  .print-head span { font-size: 12px; color: #333; }
  .print-sign { display: flex; align-items: flex-end; gap: 8px; }
  .print-line { display: block; width: 180px; border-bottom: 1px solid #000; }
  .card, .band { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .band-head { background: #f2f2f2; color: #000; }
  .table th { background: #f7f7f7; color: #000; }
  .pill { border: 1px solid #999; background: none !important; color: #000 !important; }
  .check span { border-color: #000; }
  .table td, .table th { padding: 6px 10px; }
}

/* ---------- Utilities (the only sanctioned one-offs) ---------- */
.t-xs { font-size: 12px; } .t-sm { font-size: 12.5px; } .t-md { font-size: 14px; }
.w-500 { font-weight: 500; } .w-600 { font-weight: 600; }
.is-ok { color: var(--ink-success); font-weight: 600; } .is-due { color: var(--ink-warning); font-weight: 600; }
.c-brand { color: var(--text-link); }
.w-74 { width: 74px; flex: none; } .w-92 { width: 92px; flex: none; } .w-150 { width: 150px; flex: none; } .w-160 { width: 160px; flex: none; } .w-170 { width: 170px; flex: none; } .w-200 { width: 200px; flex: none; }
.grow { flex: 1; min-width: 200px; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .self-start { align-self: flex-start; } .ta-r { text-align: right; }
.mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mt-8 { margin-top: 8px; }
.stack-6, .stack-8, .stack-10, .stack-14, .stack-16 { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; }
.row-between { display: flex; justify-content: space-between; gap: 16px; }
.span-all { grid-column: 1 / -1; }
.i-12 svg, svg.i-12 { width: 12px; height: 12px; } .i-14 svg, svg.i-14 { width: 14px; height: 14px; }
.i-12 { width: 12px; height: 12px; } .i-14 { width: 14px; height: 14px; }
.num-lg { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--secondary-900); letter-spacing: 0; }
.chart-line { display: block; width: 100%; height: 200px; overflow: visible; }
.sticky-l { position: sticky; left: 12px; }
.menu--right { top: 44px; right: 0; } .menu--left { top: 46px; left: 0; }
.band-note { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--secondary-600); }
.dot--danger { background: var(--danger); }
.toolbar > button .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 999px; }


/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--charts { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--charts > :first-child { grid-column: 1 / -1; }
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats:not(.stats--3):not(.stats--4) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stats--4 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 560px; }
  .split-card { grid-template-columns: 1fr; } .split-card-aside { border-right: 0; border-bottom: 1px solid var(--secondary-100); }
  .rack-layout { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 1000px) {
  .wl-row { grid-template-columns: 8px minmax(0,1fr); align-items: start; padding: 12px 14px; }
  .wl-row > .wl-flags { grid-row: 2; grid-column: 2; }
  .wl-group, .wl-done > summary { padding: 10px 14px; }
  .stats--3, .stats--4 { max-width: none; }
}
@media (max-width: 1024px) {
  .rack-layout { grid-template-columns: 1fr; }
  .room-detail { position: static; }
  .grid--3 { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
  .page-head .actions { flex-wrap: wrap; }
  .inbox, .inbox--3 { grid-template-columns: 320px minmax(0,1fr); }
  .inbox-ctx { display: none; }
}
@media (max-width: 800px) {
  body { padding-bottom: 64px; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 0; padding: 0 8px; box-shadow: inset 0 1px 0 var(--rail-edge), 0 -4px 20px rgba(0,0,0,.12); }
  .rail-logo, .rail-group::before, .rail-bottom::before { display: none; }
  .rail-property { width: 44px; height: 40px; margin: 0 4px 0 0; flex: none; }
  .rail-bottom { flex-direction: row; padding: 0; gap: 0; flex: none; }
  .rail-bottom::before { display: none; }
  .rail-avatar { width: 34px; height: 34px; margin: 0 4px; }
  .cmdk { padding: 8px; align-items: flex-start; }
  #pop-notifications { min-width: 0; }
  .rail-nav { flex: 1; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 14px), transparent); }
  .rail-group { flex-direction: row; padding: 0; flex: none; }
  .rail-item { width: 52px; height: 48px; }
  .popover { left: 12px; right: 12px; max-width: none; top: auto !important; bottom: 76px; }
  .page { padding: 16px 12px 24px; gap: 14px; }
  h1 { font-size: 24px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .page-head .actions .segmented { grid-column: 1 / -1; display: grid; grid-auto-flow: column; }
  .page-head .actions .btn { width: 100%; }
  .page-head .actions .toolbar { grid-column: 1 / -1; justify-content: space-between; }
  .page-head .actions .has-menu { display: contents; }
  .grid--2, .grid--3, .grid--4, .grid--charts, .form-grid--2, .form-grid--3 { grid-template-columns: 1fr; }
  .stats, .stats--4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .stat { padding: 14px 10px; } .stat .value { font-size: 26px; }
  .kpi { padding: 14px 16px; }
  .band-body { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .rack-layout { grid-template-columns: 1fr; }
  .room-detail { position: static; }
  .rack { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; padding: 12px; }
  .tile { min-height: 96px; padding: 12px; } .tile-num { font-size: 21px; }
  .board-card { padding: 14px; } .board-num { font-size: 20px; }
  .table--rooms td { padding: 12px 14px; } .table--rooms .btn--sm { height: 36px; padding: 0 14px; }
  .check span { width: 22px; height: 22px; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; }
  .filters { padding: 12px; } .filters .select { flex: 1; min-width: 130px; }
  .table--rooms th:nth-child(6), .table--rooms td:nth-child(6), .table--rooms th:nth-child(7), .table--rooms td:nth-child(7) { display: none; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
  .table td { padding: 12px 14px; } .table th { padding: 8px 14px; }
  .tabs button { padding: 12px 12px; font-size: 13.5px; }
  .card-head, .card-body, .card--pad { padding: 16px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-width: none; max-height: 92vh; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; }
  .savebar { padding: 0 12px 76px; } .savebar > div { flex-wrap: wrap; gap: 10px; width: 100%; }
  .savebar [data-detail] { display: none; }
  .toasts { bottom: 76px; }
  .cal-nav { padding: 10px 12px; } .cal-legend { display: none; }
  .tabs--pills { width: 100%; overflow-x: auto; }
  .cal-grid { grid-template-columns: 140px 1320px; }
  .cal-grid .innotel_rowheader_inner { padding-left: 20px; font-size: 12.5px; } .room-note { display: none; }
  .cal-grid .innotel_rowheader_level0 .innotel_rowheader_inner { padding-left: 10px; font-size: 12px; }
  .inbox, .inbox--3 { grid-template-columns: 1fr; height: auto; }
  .inbox-pane { display: none; }
  .qlist { grid-template-columns: 1fr; }
  .statusbar { font-size: 12.5px; } .statusbar-link { margin-left: 0; }
  .donut { width: 108px; height: 108px; }
}
@media (max-width: 480px) {
  .table th:nth-child(5), .table td:nth-child(5) { display: none; }
  .page-head .actions { grid-template-columns: 1fr; }
}


/* ---------- Drawer (painel lateral direito) ----------
   <div class="drawer" id="drawer-x"><div class="drawer-scrim" data-drawer-close></div>
     <aside class="drawer-panel"><div class="drawer-head">…</div><div class="drawer-body">…</div><div class="drawer-foot">…</div></aside></div>
   Abrir: [data-drawer-open="#drawer-x"] ou InnoUI.drawer.open('#drawer-x'). .drawer--wide = 880px. */
.drawer { position: fixed; inset: 0; z-index: 9000; display: none; }
.drawer.is-open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: var(--scrim-blur); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); display: flex; flex-direction: column; background: var(--surface-raised); box-shadow: var(--shadow-modal); animation: drawer-in .2s ease-out; }
.drawer-panel > form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.drawer--wide .drawer-panel { width: min(880px, 100%); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--secondary-100); flex: none; }
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--secondary-900); }
.drawer-head .sub { margin-top: 4px; font-size: 13.5px; color: var(--secondary-600); }
.drawer-head .sub b { font-weight: 600; color: var(--secondary-700); letter-spacing: .04em; }
.res-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--secondary-600); }
.res-meta span { display: inline-flex; align-items: center; gap: 6px; }
.res-meta svg { width: 13px; height: 13px; color: var(--secondary-400); }
.res-meta a { color: var(--text-link); font-weight: 600; text-decoration: none; }
.res-meta code { padding: 2px 6px; border-radius: 5px; background: var(--secondary-50); font-size: 11.5px; }
.res-meta .sep { color: var(--secondary-300); }
.drawer-head .actions { display: flex; align-items: center; gap: 8px; flex: none; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.drawer-body > * { flex: none; }
.drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--secondary-100); background: var(--surface-raised); flex: none; }
.drawer-foot .meta { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 12.5px; color: var(--secondary-600); }
.drawer-foot .meta a { color: var(--text-link); text-decoration: none; }
/* modo demonstração (catálogo): painel estático, sem scrim */
.drawer--demo { position: static; display: block; }
.drawer--demo .drawer-scrim { display: none; }
.drawer--demo .drawer-panel { position: relative; width: 100%; border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); animation: none; overflow: hidden; }
.drawer--demo .drawer-body { overflow: visible; }

/* Passos (wizard) */
.steps { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--secondary-500); }
.step + .step::before { content: ""; width: 22px; height: 1px; background: var(--secondary-200); margin-right: 6px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--secondary-300); font-size: 12px; font-weight: 700; color: var(--secondary-600); }
.step-n svg { width: 13px; height: 13px; }
.step.is-active { color: var(--secondary-900); } .step.is-active .step-n { border-color: var(--primary-600); color: var(--text-link); }
.step.is-done .step-n { background: var(--primary-600); border-color: var(--primary-600); color: var(--text-on-brand); }

/* Seções internas do drawer */
.sect { border: 1px solid var(--secondary-100); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-card); }
.sect-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 16px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.sect-head .eyebrow small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--secondary-500); margin-left: 6px; }
.sect-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sect-body--flush { padding: 0; gap: 0; }
.sect-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.sect-foot .meta { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 12.5px; color: var(--secondary-600); }
.sect-foot .meta svg { width: 14px; height: 14px; color: var(--secondary-400); flex: none; }

/* Identificação da reserva + tabs no drawer */
.res-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.res-id b { font-size: 17px; color: var(--secondary-900); }
.res-id a { color: var(--text-link); font-weight: 600; text-decoration: none; }
.res-id code { padding: 3px 8px; border-radius: 6px; background: var(--secondary-50); font-size: 12px; color: var(--secondary-600); }
.res-id .chan { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--primary-50); color: var(--text-link); }
.res-id .chan svg { width: 13px; height: 13px; }

/* Cabeçalho de quarto e filtros de ocupação (nova reserva) */
.room-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px; }
.room-head b { font-size: 15.5px; color: var(--secondary-900); }
.room-head .cap { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--secondary-600); }
.room-head .cap svg { width: 14px; height: 14px; }
.room-head a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.room-head.is-unavailable b { color: var(--secondary-600); }
.occupancy { display: grid; grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr)); gap: 12px; padding: 0 16px 16px; border-bottom: 1px solid var(--secondary-100); }
.occupancy .field > label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.occupancy-extra { display: flex; gap: 12px; flex-wrap: wrap; grid-column: 1 / -1; }
.occupancy-extra .field { width: 150px; }

/* Planos tarifários (lista de seleção) */
.plans { display: flex; flex-direction: column; }
.plan { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 16px; border-top: 1px solid var(--secondary-100); cursor: pointer; }
.plan:first-child { border-top: 0; }
.plan:hover { background: var(--secondary-50); }
.plan.is-selected { background: var(--primary-50); }
.plan-radio { display: inline-flex; padding-top: 2px; }
.plan-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary-600); }
.plan-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13.5px; color: var(--secondary-600); }
.plan-main > b { font-size: 15px; color: var(--secondary-900); }
.plan-promo { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-success); }
.plan-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 12.5px; color: var(--secondary-600); white-space: nowrap; }
.plan-price > b { font-size: 17px; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.plan-price s { margin-right: 6px; font-weight: 500; color: var(--secondary-400); font-size: 13px; }
.sect-foot .meta b { color: var(--secondary-900); }

/* Ofertas (planos tarifários) */
.offer { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) auto; gap: 20px; padding: 18px 16px; border-top: 1px solid var(--secondary-100); }
.offer:first-child { border-top: 0; }
.offer.is-selected { background: var(--primary-50); }
.offer-plan { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.offer-plan .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--secondary-600); }
.offer-plan .promo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-success); }
.offer-plan .promo > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.offer-plan .promo svg { width: 14px; height: 14px; }
.offer-plan .promo label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--secondary-700); cursor: pointer; }
.offer-plan .inc { font-size: 13.5px; color: var(--secondary-700); }
.offer-nights { display: flex; flex-direction: column; min-width: 0; }
.night-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--secondary-200); font-size: 13.5px; color: var(--secondary-600); }
.night-row .price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--secondary-900); }
.night-row .price s { font-weight: 500; color: var(--secondary-400); margin-right: 6px; }
.night-row.is-total { border-bottom: 0; padding-top: 10px; font-weight: 600; color: var(--secondary-700); }
.night-row.is-total .price { font-size: 15px; }
.night-row.is-avg { border-bottom: 0; }
.offer-total { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 160px; }
.offer-total .amount { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--secondary-900); display: inline-flex; align-items: center; gap: 8px; }
.offer-total .amount svg { width: 18px; height: 18px; color: var(--ink-success); }
.offer-total .fee { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-success); }
.offer-total .fee svg { width: 14px; height: 14px; }
.offer-total .adjust { display: flex; gap: 6px; }

/* Comparação (alterar reserva) */
.compare { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 12px; align-items: start; }
.compare-arrow { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 120px; color: var(--secondary-400); }
.compare-arrow svg { width: 22px; height: 22px; }
.compare .sect-body .title { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--secondary-900); }
.compare .sect-body .title .pill { font-size: 11px; }
.delta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--secondary-50); font-size: 13.5px; color: var(--secondary-600); }
.delta-val { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: flex-end; white-space: nowrap; }
.delta b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--secondary-900); }
.delta .down { color: var(--ink-success); font-weight: 600; } .delta .up { color: var(--ink-danger); font-weight: 600; }

/* Detalhe de reserva */
.res-summary { display: grid; grid-template-columns: repeat(3, auto) minmax(0,1fr) 230px; gap: 12px 24px; align-items: center; padding: 14px 28px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); flex: none; }
.res-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.res-summary b { font-size: 15px; color: var(--secondary-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.res-summary b small { font-size: 13px; font-weight: 500; color: var(--secondary-600); }
.res-summary-status .select { background-color: var(--surface-card); }
@media (max-width: 800px) { .res-summary { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 14px 16px; } .res-summary > div:nth-child(4), .res-summary-status { grid-column: 1 / -1; } }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--secondary-100); }
.stats3 b { display: block; margin-top: 4px; font-size: 17px; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.inline-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--secondary-700); }
.inline-meta b { color: var(--secondary-900); }
.inline-meta .sep { color: var(--secondary-300); }
.kv { display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--secondary-100); }
.kv:last-child { border-bottom: 0; padding-bottom: 0; } .kv:first-child { padding-top: 0; }
.kv > span { font-size: 13.5px; color: var(--secondary-600); }
.status-pick { position: relative; }
.status-pick::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 999px; background: var(--secondary-400); pointer-events: none; }
.status-pick .select { padding-left: 30px; font-weight: 600; }
.status-pick.is-success::before { background: var(--success); }
.status-pick.is-warning::before { background: var(--warning-text); }
.status-pick.is-blocked::before { background: var(--secondary-700); }
/* Reservation drawer facts (docs/design/kit/reservation-drawer.html). */
.res-ids { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.res-ids > span { display: inline-flex; align-items: baseline; gap: 5px; }
.res-ids .lbl { font-size: 12px; color: var(--secondary-500); }
.res-ids .sep { color: var(--secondary-300); }
.res-channel { gap: 6px !important; color: var(--secondary-700); font-weight: 500; } .res-channel svg { color: var(--secondary-400); }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 2px; border: 0; border-radius: 6px; background: none; color: var(--secondary-500); cursor: pointer; align-self: center; } .copy-btn:hover { background: var(--secondary-100); color: var(--text-link); } .copy-btn svg { width: 13px; height: 13px; }
@media (max-width: 800px) { .drawer-head:has(.res-ids) { flex-wrap: wrap; } .drawer-head:has(.res-ids) .actions { flex-wrap: wrap; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; padding: 16px; }
.facts > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.facts > div > b { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts > div > b a { color: var(--text-link); text-decoration: none; }
.facts > div > small { font-size: 12.5px; color: var(--secondary-600); }
.facts > .facts-wide { grid-column: span 2; }
@media (max-width: 480px) { .facts > .facts-wide { grid-column: auto; } }
.t-warn { color: var(--warning-text) !important; }
.t-ok { color: var(--ink-success) !important; }
.rate-box { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--secondary-50); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--secondary-700); }
.rate-box .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--secondary-900); }
.rate-box .fine { font-size: 12.5px; color: var(--secondary-500); }
.guest-line { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.guest-line a { color: var(--text-link); text-decoration: none; }
.guest-line span { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary-700); }
.guest-line svg { width: 14px; height: 14px; color: var(--secondary-400); }
.summary { width: 100%; border-collapse: collapse; }
.summary th { padding: 8px 0; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary-600); border-bottom: 1px solid var(--secondary-100); }
.summary td { padding: 12px 0; vertical-align: top; font-size: 14px; color: var(--secondary-700); }
.summary td b { display: block; color: var(--secondary-900); }
.summary td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--secondary-600); }
.summary td a { font-size: 13px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.summary .num { text-align: right; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  .drawer-panel { width: 100%; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .offer { grid-template-columns: 1fr; gap: 14px; }
  .occupancy { grid-template-columns: repeat(3, minmax(0,1fr)); } .occupancy .field:first-child { grid-column: 1 / -1; }
  .compare { grid-template-columns: 1fr; } .compare-arrow { min-height: 0; transform: rotate(90deg); }
  .kv { grid-template-columns: 1fr; gap: 6px; }
}

/* Escopo (tipo de quarto · plano · período · dias) — tarifas, disponibilidade, promoções */
.scope { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 28px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); flex: none; }
.scope-what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scope-what b { font-size: 15px; color: var(--secondary-900); }
.scope-range { display: flex; gap: 8px; }
.scope-date { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); background: var(--surface-card); min-width: 120px; }
.scope-date .eyebrow { font-size: 10px; }
.scope-date b { font-size: 14px; color: var(--secondary-900); white-space: nowrap; }
.scope-days { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
.daypills { display: inline-flex; gap: 4px; }
.daypills label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--secondary-200); background: var(--surface-card); font-size: 12.5px; font-weight: 600; color: var(--secondary-500); cursor: pointer; user-select: none; }
.daypills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.daypills label:has(input:checked) { background: var(--primary-600); border-color: var(--primary-600); color: var(--text-on-brand); }
.daypills label:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
@media (max-width: 800px) { .scope { padding: 14px 16px; } .scope-days { margin-left: 0; } }

/* Stepper numérico */
.stepper { display: flex; align-items: stretch; height: 40px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); }
.stepper button { width: 40px; border: 0; background: var(--secondary-50); color: var(--secondary-600); font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--secondary-100); color: var(--text-link); }
.stepper input { flex: 1; min-width: 0; padding: 0; border: 0; text-align: center; -moz-appearance: textfield; font-size: 15px; font-weight: 600; color: var(--secondary-900); background: none; }
.stepper input:focus { outline: none; }
/* The number needs the whole middle: .input padding and the native spinners hid it in narrow steppers (bed count). */
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { height: 34px; } .stepper--sm button { width: 34px; font-size: 16px; }

/* Preço base / pessoa extra */
.price-field { display: flex; flex-direction: column; gap: 8px; }
.price-field .segmented { align-self: flex-start; background: var(--secondary-50); box-shadow: none; }
.price-field .input-group input { font-size: 17px; font-weight: 600; }
.derived { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--primary-50); display: flex; flex-direction: column; gap: 2px; }
.derived b { font-size: 20px; color: var(--text-link-hover); font-variant-numeric: tabular-nums; }
.derived span { font-size: 12.5px; color: var(--secondary-600); }

/* Disclosure + linhas de restrição (edição em massa: só o que estiver marcado é atualizado) */
.disclosure { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.disclosure svg { width: 16px; height: 16px; transition: transform .2s; }
.disclosure.is-open svg { transform: rotate(180deg); }
.restrict { display: flex; flex-direction: column; }
.restrict-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.restrict-row:first-child { border-top: 0; }
.restrict-row .lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--secondary-700); }
.restrict-row .lbl svg { width: 15px; height: 15px; color: var(--secondary-400); }
.restrict-row .lbl small { display: block; font-size: 12.5px; color: var(--secondary-600); }
.restrict-row:not(.is-edit) .ctrl { opacity: .45; pointer-events: none; }
.restrict-row .ctrl { display: flex; justify-content: flex-end; }
.restrict-row .ctrl .input, .restrict-row .ctrl .stepper { width: 140px; }

/* Linhas com switch (canais, políticas) */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.switch-row:first-child { border-top: 0; }
.switch-row .lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--secondary-800); }
.switch-row .lbl svg { width: 15px; height: 15px; color: var(--secondary-400); }
.switch-row .lbl small { display: block; font-size: 12.5px; color: var(--secondary-600); }
.switch-row .always { font-size: 12px; font-weight: 600; color: var(--secondary-500); }

/* Alvos da promoção (tipo de quarto × plano) */
.targets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.targets .target-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); font-size: 14px; color: var(--secondary-900); grid-column: 1 / -1; }
.targets .target-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--secondary-600); cursor: pointer; }
.targets .target-row b { flex: 1; }
.targets .target-row .plans-pick { display: inline-flex; gap: 14px; }
.targets .target-row:first-child { border-top: 0; }
@media (max-width: 800px) { .restrict-row .ctrl .input, .restrict-row .ctrl .stepper { width: 110px; } }

[hidden] { display: none !important; }
.disclosure-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.disclosure-row .hint { font-size: 12.5px; color: var(--secondary-600); }
.switch-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--secondary-600); cursor: pointer; }
.range-field { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.range-field .dash { color: var(--secondary-400); }
.field .hint b { color: var(--secondary-900); font-weight: 600; }


/* ---------- Agent page ---------- */
.agent-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,1fr); gap: 24px; align-items: start; }
.agent-main, .agent-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field--end { justify-content: flex-end; flex-direction: row; align-items: center; gap: 8px; }
.field > label .opt { font-weight: 500; color: var(--secondary-500); margin-left: 4px; }
.prompt-editor { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; min-height: 120px; }
.raw-head { display: flex; align-items: center; justify-content: space-between; }
.raw-yaml { margin: 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--secondary-50); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; color: var(--secondary-700); white-space: pre-wrap; }
.sect-head .hint { font-size: 12.5px; color: var(--secondary-600); font-weight: 500; }
.sect-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.sect-head .actions { gap: 6px; }
.sect-foot .meta .sep { color: var(--secondary-300); }
.switch-row .lbl { min-width: 0; }
.switch-row .switch { flex: none; }
.switch-row .lbl > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-row .lbl > span > b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--secondary-900); }
.switch-row .lbl > span > small { font-size: 12.5px; color: var(--secondary-600); line-height: 1.45; }
.switch-row .lbl > span > small a { color: var(--text-link); text-decoration: none; }
.switch-row .lbl > svg { flex: none; width: 18px; height: 18px; color: var(--text-link); }
.switch-row .lbl > .lbl-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.switch-row--top { align-items: flex-start; }
.switch-row--top .switch { margin-top: 2px; }
.switch.is-disabled { opacity: .45; }
.sub-block { padding: 14px 16px 16px 46px; border-top: 1px solid var(--secondary-100); background: var(--secondary-50); display: flex; flex-direction: column; gap: 14px; }
.sub-block.is-disabled .form-grid { opacity: .55; }
.form-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.input-group .suffix { background: var(--surface-card); border-left: 1px solid var(--secondary-200); white-space: nowrap; }
.input-group .input { border: 0; height: 100%; }
.range-pair { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary-600); }
.color-dot { width: 20px; height: 20px; margin: 0 0 0 10px; border-radius: 6px; padding: 0; }
.input-group .color-dot + .input { padding-left: 8px; }
.snippet { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: var(--radius-lg); background: var(--secondary-50); border: 1px solid var(--secondary-200); }
.snippet code { flex: 1; min-width: 0; overflow-x: auto; font-size: 12.5px; color: var(--secondary-700); white-space: nowrap; }
.tabs button .tab-flag { display: inline-flex; color: var(--warning-text); }
.tabs button .tab-flag svg { width: 15px; height: 15px; }
.notice--action { justify-content: space-between; gap: 16px; }
.notice--action > div { flex: 1; }
.notice--action b { font-weight: 600; }
.statusbar .switch-lbl { color: var(--secondary-700); }
.statusbar-off { background: var(--secondary-100); color: var(--secondary-600); }
/* Create agent drawer */
.type-grid { display: flex; flex-direction: column; gap: 10px; }
.type-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--secondary-200); border-radius: var(--radius-xl); background: var(--surface-card); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.type-card:hover { box-shadow: var(--shadow-card); }
.type-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.type-card.is-picked { border-color: var(--primary-600); background: var(--primary-50); }
.type-card.is-disabled { cursor: not-allowed; opacity: .6; }
.type-card .type-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.type-card .type-body b { font-size: 15px; color: var(--secondary-900); display: flex; align-items: center; gap: 8px; }
.type-card .type-body small { font-size: 13px; color: var(--secondary-600); line-height: 1.4; }
.type-card .type-check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--secondary-300); color: transparent; }
.type-card .type-check svg { width: 14px; height: 14px; }
.type-card.is-picked .type-check { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.na-step { display: flex; flex-direction: column; gap: 16px; }
.check-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; padding: 10px 0; cursor: pointer; }
.check-row + .check-row { border-top: 1px solid var(--secondary-100); }
.check-row .check { margin-top: 2px; }
.check-row b { display: block; font-size: 14px; color: var(--secondary-900); } .check-row small { display: block; font-size: 12.5px; color: var(--secondary-600); margin-top: 2px; }
/* Agent set-up checklist */
.setup-steps { display: flex; flex-direction: column; }
.setup-step { display: grid; grid-template-columns: 28px minmax(0,1fr) auto 16px; align-items: center; gap: 14px; width: 100%; padding: 14px 24px; border-top: 1px solid var(--secondary-100); text-align: left; color: inherit; text-decoration: none; }
.setup-step:first-child { border-top: 0; }
.setup-step:hover { background: var(--secondary-50); }
.setup-step .step-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--secondary-300); font-size: 13px; font-weight: 700; color: var(--secondary-600); }
.setup-step .step-n svg { width: 14px; height: 14px; }
.setup-step.is-done .step-n { background: var(--success); border-color: var(--success); color: #fff; }
.setup-step.is-todo:first-child .step-n { border-color: var(--warning-text); color: var(--warning-text); }
.setup-step .step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-step .step-body b { font-size: 14.5px; color: var(--secondary-900); }
.setup-step .step-body small { font-size: 13px; color: var(--secondary-600); }
.setup-step.is-done .step-body b { color: var(--secondary-600); }
.setup-step > svg { width: 16px; height: 16px; color: var(--secondary-400); }
.agent-tips { gap: 10px; } .agent-tips p { font-size: 13.5px; color: var(--secondary-700); } .agent-tips p b { color: var(--secondary-900); }
.file-row.is-missing { color: var(--secondary-500); } .file-row.is-missing svg { color: var(--warning-text); } .file-row.is-missing .meta { color: var(--warning-text); font-weight: 600; }
.sect-foot .meta a { color: var(--text-link); font-weight: 600; }
@media (max-width: 800px) { .setup-step { grid-template-columns: 28px minmax(0,1fr) 16px; padding: 12px 16px; } .setup-step > .pill { display: none; } }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); font-size: 14px; }
.file-row:first-child { border-top: 0; }
.file-row > svg { width: 18px; height: 18px; color: var(--secondary-400); flex: none; }
.file-row .name { color: var(--secondary-900); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .meta { margin-left: auto; font-size: 12.5px; color: var(--secondary-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mem-group { display: flex; flex-direction: column; gap: 8px; }
.mem-group + .mem-group { padding-top: 14px; border-top: 1px solid var(--secondary-100); }
.mem-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--secondary-800); }
.mem-title svg { width: 16px; height: 16px; color: var(--secondary-400); }
.mem-note { margin: 0; font-size: 13px; color: var(--secondary-600); }
.mem-note a { color: var(--text-link); text-decoration: none; }
.code-value { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: var(--radius-md); background: var(--secondary-50); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--secondary-800); width: fit-content; max-width: 100%; }
.code-value small { font-family: var(--font-body, Inter, sans-serif); font-size: 12px; color: var(--secondary-500); margin-left: 6px; }
.code-value .btn--icon { width: 28px; height: 28px; }
.code-value .btn--icon:first-of-type { margin-left: 6px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--danger-line); border-radius: var(--radius-xl); }
.danger-zone > div { display: flex; flex-direction: column; gap: 3px; }
.danger-zone b { font-weight: 600; color: var(--secondary-900); }
.danger-zone span { font-size: 13px; color: var(--secondary-600); }
.btn--danger-outline { color: var(--ink-danger); border-color: var(--danger-line); }
.btn--danger-outline:hover { background: var(--danger-soft); color: var(--ink-danger); }
@media (max-width: 1100px) { .agent-layout { grid-template-columns: 1fr; } .form-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--mem { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .form-grid--4, .form-grid--3 { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } .danger-zone { flex-direction: column; align-items: flex-start; } }

/* ---------- Agents overview ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--secondary-600); text-decoration: none; margin-bottom: 6px; }
.back-link:hover { color: var(--text-link); }
.back-link svg { width: 14px; height: 14px; }
.grid--agents { align-items: stretch; }
.agent-card { display: flex; flex-direction: column; }
.agent-card-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.agent-icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-xl); background: var(--primary-50); color: var(--text-link); display: grid; place-items: center; }
.agent-icon svg { width: 22px; height: 22px; }
.agent-icon--manager { background: var(--verde); color: var(--text-on-verde); }
.agent-icon--social { background: var(--secondary-100); color: var(--secondary-600); }
.agent-title h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-title h2 .statusbar-on { font-family: var(--font-body); }
.agent-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agent-facts li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondary-700); }
.agent-facts li svg { width: 16px; height: 16px; color: var(--text-link); flex: none; }
.agent-card--soon .agent-facts li svg { color: var(--secondary-400); }
.agent-example { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--secondary-50); }
.agent-example q { font-size: 14px; color: var(--secondary-800); font-style: italic; quotes: "“" "”"; }
.statusbar-off { background: var(--secondary-100); color: var(--secondary-600); }
/* Create agent drawer */
.type-grid { display: flex; flex-direction: column; gap: 10px; }
.type-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--secondary-200); border-radius: var(--radius-xl); background: var(--surface-card); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.type-card:hover { box-shadow: var(--shadow-card); }
.type-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.type-card.is-picked { border-color: var(--primary-600); background: var(--primary-50); }
.type-card.is-disabled { cursor: not-allowed; opacity: .6; }
.type-card .type-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.type-card .type-body b { font-size: 15px; color: var(--secondary-900); display: flex; align-items: center; gap: 8px; }
.type-card .type-body small { font-size: 13px; color: var(--secondary-600); line-height: 1.4; }
.type-card .type-check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--secondary-300); color: transparent; }
.type-card .type-check svg { width: 14px; height: 14px; }
.type-card.is-picked .type-check { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.na-step { display: flex; flex-direction: column; gap: 16px; }
.check-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; padding: 10px 0; cursor: pointer; }
.check-row + .check-row { border-top: 1px solid var(--secondary-100); }
.check-row .check { margin-top: 2px; }
.check-row b { display: block; font-size: 14px; color: var(--secondary-900); } .check-row small { display: block; font-size: 12.5px; color: var(--secondary-600); margin-top: 2px; }
/* Agent set-up checklist */
.setup-steps { display: flex; flex-direction: column; }
.setup-step { display: grid; grid-template-columns: 28px minmax(0,1fr) auto 16px; align-items: center; gap: 14px; width: 100%; padding: 14px 24px; border-top: 1px solid var(--secondary-100); text-align: left; color: inherit; text-decoration: none; }
.setup-step:first-child { border-top: 0; }
.setup-step:hover { background: var(--secondary-50); }
.setup-step .step-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--secondary-300); font-size: 13px; font-weight: 700; color: var(--secondary-600); }
.setup-step .step-n svg { width: 14px; height: 14px; }
.setup-step.is-done .step-n { background: var(--success); border-color: var(--success); color: #fff; }
.setup-step.is-todo:first-child .step-n { border-color: var(--warning-text); color: var(--warning-text); }
.setup-step .step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-step .step-body b { font-size: 14.5px; color: var(--secondary-900); }
.setup-step .step-body small { font-size: 13px; color: var(--secondary-600); }
.setup-step.is-done .step-body b { color: var(--secondary-600); }
.setup-step > svg { width: 16px; height: 16px; color: var(--secondary-400); }
.agent-tips { gap: 10px; } .agent-tips p { font-size: 13.5px; color: var(--secondary-700); } .agent-tips p b { color: var(--secondary-900); }
.file-row.is-missing { color: var(--secondary-500); } .file-row.is-missing svg { color: var(--warning-text); } .file-row.is-missing .meta { color: var(--warning-text); font-weight: 600; }
.sect-foot .meta a { color: var(--text-link); font-weight: 600; }
@media (max-width: 800px) { .setup-step { grid-template-columns: 28px minmax(0,1fr) 16px; padding: 12px 16px; } .setup-step > .pill { display: none; } }
.agent-card--soon .agent-title h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent-card--soon .switch { opacity: .45; cursor: not-allowed; }
.agent-card--soon .tool-chips .chip { color: var(--secondary-500); } .agent-card--soon .tool-chips .chip svg { color: var(--secondary-400); }
.agent-title { flex: 1; min-width: 0; }
.agent-title h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--secondary-900); margin: 0; }
.agent-title p { margin: 4px 0 0; font-size: 13.5px; color: var(--secondary-600); line-height: 1.45; }
.agent-card-head .switch { flex: none; margin-top: 4px; }
.agent-card-body { display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 24px; flex: 1; }
.kv-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--secondary-50); }
.kv-strip > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kv-strip span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.kv-strip b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.kv-strip .statusbar-on { width: fit-content; }
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips .chip { cursor: default; }
.tool-chips .chip svg { width: 14px; height: 14px; color: var(--text-link); }
.agent-card .notice a { color: inherit; font-weight: 600; margin-left: 4px; }
.card-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot > span svg { width: 14px; height: 14px; color: var(--secondary-400); }
.res-group { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.res-group + .switch-row { border-top: 0; }
.res-group small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--secondary-500); }
.switch-row + .res-group { border-top: 1px solid var(--secondary-100); margin-top: 4px; }
@media (max-width: 1100px) { .grid--agents { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kv-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Reviews ---------- */
.mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 800; color: var(--text-on-brand); flex: none; }
/* Dark letter on the yellow brands; more specific than .mark and .chip .mark, which set white. */
.mark.mark--expedia { color: #1e1e1e; }
/* Channel logo as the mark (calendar): the icon file fills the square and brings its own colours. */
.mark.mark--logo { background: transparent; padding: 0; }
.mark.mark--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* AI agent bookings: our green spark on the dark launcher colour, as on the Ask button. */
.mark.mark--ai { background: var(--surface-inverse); color: var(--verde); }
.mark.mark--ai svg { width: 72%; height: 72%; }
.rv-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.rv-summary { display: flex; align-items: center; gap: 20px; }
.rv-summary > span { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--secondary-600); }
.rv-summary b { font-size: 16px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.rv-summary .is-attention b { color: var(--ink-danger); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mark-img { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: var(--secondary-50); flex: none; }
.mark-img img { width: 13px; height: 13px; object-fit: contain; }
.rv-group { display: flex; flex-direction: column; gap: 4px; }
.rv-group-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--secondary-100); }
.rv-group-head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--secondary-900); margin: 0; }
.rv-group-head span { font-size: 12.5px; color: var(--secondary-600); }
.rv-items { display: flex; flex-direction: column; }
.rv-item { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--secondary-100); }
.rv-item:last-child { border-bottom: 0; }
.rv-item.is-focus { margin: 0 -12px; padding: 18px 12px; border-radius: var(--radius-md); background: var(--primary-50); outline: none; }
.rv-item-head { display: flex; align-items: center; gap: 10px; }
.rv-item-head .mark, .rv-item-head .mark-img { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.rv-item-head .mark-img img { width: 15px; height: 15px; }
[data-reviews-v2] .chip .mark svg { width: 12px; height: 12px; flex: none; }
[data-reviews-v2] .rv-item-head .mark svg { width: 14px; height: 14px; flex: none; }
.rv-stars { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; margin: -2px -4px; background: none; border: 0; border-radius: var(--radius-md); cursor: pointer; }
.rv-stars:hover { background: var(--secondary-50); }
.rv-stars svg { width: 15px; height: 15px; color: var(--secondary-300); fill: none; }
.rv-stars svg.is-on, .kpi-value svg.is-on, .rv-dist-star svg.is-on { color: #ffb822; fill: #ffb822; }
.rv-name { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.rv-date { font-size: 12.5px; color: var(--secondary-500); font-variant-numeric: tabular-nums; }
.rv-item-head .rv-archive { margin-left: auto; }
.rv-comment { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--secondary-700); max-width: 76ch; text-wrap: pretty; }
.rv-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--secondary-50); }
.rv-note svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; margin-top: 3px; }
.rv-note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--secondary-600); }
.rv-reply { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--primary-50); }
.rv-reply p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--secondary-800); }
.rv-reply-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-link-hover); font-weight: 600; }
.rv-reply-label svg { width: 13px; height: 13px; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.kpi-value { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.kpi-value svg { width: 20px; height: 20px; }
.kpi-foot { font-size: 12.5px; color: var(--secondary-600); }
.grid--rv-charts { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.rv-chart { position: relative; padding: 0 0 22px 28px; }
.rv-chart svg { display: block; width: 100%; height: 220px; }
.rv-chart-grid { stroke: var(--border-divider); }
.rv-chart-area { fill: var(--rv-chart-area); }
.rv-chart-line { fill: none; stroke: #ffb822; }
.rv-chart-points { fill: var(--surface-card); stroke: #ffb822; }
.rv-chart-y { position: absolute; left: 0; top: 0; height: 220px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--secondary-500); }
.rv-chart-x { display: flex; justify-content: space-between; padding-top: 8px; font-size: 11.5px; color: var(--secondary-500); }
.rv-dist { display: flex; flex-direction: column; gap: 10px; }
.rv-dist-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: center; gap: 10px; }
.rv-dist-star { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--secondary-700); }
.rv-dist-star svg { width: 13px; height: 13px; }
.rv-dist-track { height: 8px; border-radius: 999px; background: var(--secondary-100); overflow: hidden; }
.rv-dist-fill { display: block; height: 100%; border-radius: 999px; background: #ffb822; }
.rv-dist-count { font-size: 12.5px; color: var(--secondary-600); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .grid--rv-charts { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Automations ---------- */
.au-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.au-head > div { max-width: 78ch; display: flex; flex-direction: column; gap: 8px; }
.au-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--secondary-900); margin: 0; }
.au-head p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--secondary-600); text-wrap: pretty; }
.au-head .au-sub { color: var(--secondary-500); }
.au-head > .switch { flex: none; margin-top: 2px; }
.au-divider { height: 1px; background: var(--secondary-100); }
.au-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.au-row-text h3 { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); margin: 0 0 6px; }
.au-row-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--secondary-600); max-width: 70ch; text-wrap: pretty; }
.au-row-fields { align-self: center; }
.ch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ch-row .switch-lbl { gap: 8px; font-size: 13.5px; color: var(--secondary-800); }
.ch-row .switch-lbl small { color: var(--secondary-500); font-size: 12px; }
.table--matrix th[scope="col"] { vertical-align: bottom; }
.table--matrix { min-width: 940px; }
.table--matrix th[scope="col"] + th[scope="col"] { text-align: center; width: 190px; padding-left: 14px; padding-right: 14px; }
.table--matrix .mx-col { display: block; font-size: 13px; font-weight: 600; color: var(--secondary-800); text-transform: none; letter-spacing: 0; }
.table--matrix th[scope="col"] small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; color: var(--secondary-500); text-transform: none; letter-spacing: 0; line-height: 1.4; overflow-wrap: break-word; }
.table--matrix th[scope="row"] { text-align: left; font-weight: 500; padding-top: 16px; padding-bottom: 16px; text-transform: none; letter-spacing: -0.025em; }
.table--matrix .mx-name { display: block; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.table--matrix th[scope="row"] a { font-size: 12.5px; color: var(--text-link); text-decoration: none; }
.table--matrix td { text-align: center; }
.table--matrix .mx-blocked { font-size: 13px; color: var(--secondary-500); text-align: center; }
.table--matrix .mx-blocked a { color: var(--text-link); text-decoration: none; font-weight: 600; margin-left: 4px; }
.sub-block.is-disabled { opacity: .5; pointer-events: none; }
.tpl-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tpl-side, .tpl-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tpl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-top: 1px solid var(--secondary-100); background: none; font: inherit; font-size: 13.5px; color: var(--secondary-700); text-align: left; text-decoration: none; cursor: pointer; }
.tpl-item:first-child { border-top: 0; }
.tpl-item svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.tpl-item:hover { background: var(--secondary-50); color: var(--secondary-900); }
.tpl-item.is-active { background: var(--primary-50); color: var(--text-link-hover); font-weight: 600; }
.tpl-item.is-active svg { color: var(--text-link); }
.ph-list { display: flex; flex-direction: column; gap: 4px; }
.ph { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 0; border-radius: var(--radius-md); background: none; font: inherit; text-align: left; cursor: pointer; }
.ph:hover { background: var(--secondary-50); }
.ph code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: var(--primary-50); color: var(--text-link-hover); white-space: nowrap; }
.ph span { font-size: 12.5px; color: var(--secondary-600); }
.tpl-editor { border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); }
.tpl-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 8px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-200); }
.tpl-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--secondary-200); }
.tpl-body { padding: 20px 22px; min-height: 340px; font-size: 14.5px; line-height: 1.6; color: var(--secondary-800); }
.tpl-body:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--primary-600); }
.tpl-body p { margin: 0 0 14px; }
.tpl-body h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--secondary-900); margin: 0 0 10px; }
.ph-inline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--primary-50); color: var(--text-link-hover); }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tpl-foot .actions { display: flex; gap: 8px; }
@media (max-width: 1100px) { .tpl-layout, .au-row { grid-template-columns: 1fr; } }

/* ---------- Global rules + sticky save bar ---------- */
.au-rules .card-title { display: flex; align-items: center; gap: 8px; }
.au-rules .card-title svg { width: 17px; height: 17px; color: var(--text-link); }
.au-rules-body { gap: 0; padding: 0; }
.au-rule { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 24px; }
.au-rules-body .au-rule + .au-rule { border-top: 1px solid var(--secondary-100); }
.au-rule-text { display: flex; flex-direction: column; gap: 3px; max-width: 68ch; }
.au-rule-text b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.au-rule-text b small { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--secondary-500); }
.au-rule-text span { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }
.ch-status { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.ch-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-success); font-weight: 600; }
.ch-ok svg { width: 14px; height: 14px; }
.ch-status a { color: var(--text-link); text-decoration: none; }
.mx-when-col { width: 210px; }
.mx-when { text-align: left !important; }
.mx-links { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
.mx-test { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--secondary-600); cursor: pointer; }
.mx-test:hover { color: var(--text-link); }
.mx-test svg { width: 12px; height: 12px; }
.cell-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--secondary-500); }
.savebar.savebar--inline:not([hidden]) { display: flex; pointer-events: auto; }
.savebar--inline { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 0 20px 20px; padding: 12px 18px; border-radius: var(--radius-xl); background: var(--surface-inverse); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.savebar--inline .savebar-text { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.72); }
.savebar--inline .savebar-text svg { width: 16px; height: 16px; color: var(--verde); }
.savebar-text b { font-size: 14px; font-weight: 600; color: var(--text-inverse); }
.savebar .actions { display: flex; gap: 8px; }
.savebar .btn--ghost { color: rgba(255,255,255,.8); }
.savebar .btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--text-inverse); }

/* ---------- Web check-in settings ---------- */
.wc-config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 28px; align-items: start; }
.wc-config-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.q-list { display: flex; flex-direction: column; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--secondary-100); }
.q-row:last-child { border-bottom: 0; }
.q-grip { display: inline-flex; color: var(--secondary-300); cursor: grab; }
.q-grip svg { width: 15px; height: 15px; }
.q-name { flex: 1; min-width: 0; font-size: 14px; color: var(--secondary-800); }
.q-locked { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--secondary-500); }
.q-locked svg { width: 12px; height: 12px; }
.q-state { flex: none; }
.kv-strip .is-danger { color: var(--ink-danger); }
.wc-preview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.wc-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phone { border: 8px solid var(--surface-ink); border-radius: 30px; overflow: hidden; background: var(--surface-ink); box-shadow: var(--shadow-card); }
.phone-screen { background: var(--surface-preview); max-height: 460px; overflow: hidden; }
.gf-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--verde); }
.gf-hotel { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.gf-lang { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--secondary-700); }
.gf-lang svg { width: 12px; height: 12px; }
.gf-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.gf-step { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-link); }
.gf-body h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--secondary-900); margin: 0; }
.gf-body > p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--secondary-600); }
.gf-field { display: flex; flex-direction: column; gap: 4px; }
.gf-field label { font-size: 11.5px; font-weight: 600; color: var(--secondary-700); }
.gf-field label b { color: var(--ink-danger); }
.gf-input { padding: 8px 10px; border: 1px solid var(--secondary-200); border-radius: var(--radius-md); font-size: 12.5px; color: var(--secondary-800); background: var(--surface-preview); }
.gf-input--empty { color: var(--secondary-400); }
.gf-cta { margin-top: 6px; padding: 10px; border-radius: var(--radius-md); background: var(--primary-600); color: var(--text-on-brand); font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 1100px) { .wc-config { grid-template-columns: 1fr; } .wc-preview { position: static; max-width: 340px; } }
@media (max-width: 700px) { .q-row { flex-wrap: wrap; } .q-state { width: 100%; } }

/* rail: pages not designed yet — visible but non-navigating */
.rail-item--soon { opacity: .45; cursor: default; }
.rail-item--soon:hover { opacity: .7; background: transparent; }
.popover-list a.is-soon { color: var(--secondary-400); }

/* consequence rows in confirmation drawers */
.cons { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--secondary-100); }
.cons:first-child { border-top: 0; }
.cons > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 3px; border-radius: 999px; background: var(--danger-soft); color: var(--ink-danger); box-sizing: content-box; }
.cons.is-keep > svg { background: var(--success-soft); color: var(--ink-success); }
.cons > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cons b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.cons span { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }

/* radio list */
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); background: var(--surface-card); cursor: pointer; }
.radio-item:hover { border-color: var(--primary-600); }
.radio-item.is-selected { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); background: var(--primary-50); }
.radio-item input { margin: 2px 0 0; accent-color: var(--primary-600); flex: none; }
.radio-item > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.radio-item b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.radio-item small { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }

/* ---------- Sales channels ---------- */
.grid--channels { align-items: start; }
.ch-card { display: flex; flex-direction: column; }
.ch-card--attention { box-shadow: 0 0 0 1px var(--warning-border, #f0e2bd), var(--shadow-card); }
.ch-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 0; }
.ch-logo { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--secondary-50); flex: none; overflow: hidden; }
.ch-logo img { width: 24px; height: 24px; object-fit: contain; }
.ch-logo svg { width: 20px; height: 20px; }
.ch-logo--img { background: var(--surface-logo); } /* a channel's own logo image: stays on a light tile in dark */
.ch-logo--engine { background: var(--surface-ink); }
.ch-logo--engine img { width: 22px; height: 22px; }
.ch-logo--agent { background: var(--primary-50); color: var(--text-link); }
.ch-logo--dot { background: var(--secondary-100); color: var(--secondary-500); }
.ch-logo--airbnb-x { background: #ff5a5f; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.ch-id { flex: 1; min-width: 0; }
.ch-id h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--secondary-900); }
.ch-id p { margin: 3px 0 0; font-size: 13px; color: var(--secondary-600); }
.ch-code { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--secondary-600); font-variant-numeric: tabular-nums; cursor: pointer; }
.ch-code:hover { color: var(--text-link); }
.ch-code svg { width: 12px; height: 12px; }
.ch-head > .pill, .ch-head > .statusbar-on { flex: none; margin-top: 2px; }
.ch-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 24px 20px; flex: 1; }
.ch-trail { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.trail-step { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--secondary-50); color: var(--secondary-500); }
.trail-step svg { width: 12px; height: 12px; }
.trail-step.is-done { background: var(--success-soft); color: var(--ink-success); }
.trail-step.is-now { background: var(--warning-soft); color: var(--warning-text); }
.trail-step.is-todo { color: var(--secondary-500); }
.ch-caps { display: flex; flex-direction: column; }
.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--secondary-100); font-size: 13.5px; color: var(--secondary-800); }
.cap-row:first-child { border-top: 0; }
.cap-row.is-na { color: var(--secondary-500); }
.cap-na { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--secondary-500); cursor: help; }
.cap-na svg { width: 13px; height: 13px; color: var(--secondary-400); }
.cap-read { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary-500); }
.cap-read.is-on { color: var(--ink-success); }
.cap-read small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--secondary-500); }
.cap-blocked { font-size: 12.5px; font-weight: 600; color: var(--warning-text); text-decoration: none; }
.cap-blocked:hover { text-decoration: underline; }
.ch-activity { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--secondary-50); }
.ch-activity > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ch-activity span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.ch-activity b { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.switch--sm { transform: scale(.9); transform-origin: right center; }
.disclosure-row--card { padding: 16px 24px; }
.notice--danger-soft { background: var(--danger-soft); color: var(--ink-danger); }
.btn--danger-solid { background: var(--surface-danger-strong); border-color: var(--surface-danger-strong); color: var(--text-on-brand); }
.btn--danger-solid:hover { background: #a51f1f; border-color: #a51f1f; }
.req { color: var(--ink-danger); }

/* connect drawer: provider tiles */
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pv-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); background: var(--surface-card); text-align: left; cursor: pointer; }
a.pv-tile { color: inherit; text-decoration: none; }
.pv-tile:hover { border-color: var(--primary-600); }
.pv-tile.is-selected { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); }
.pv-name { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.pv-note { font-size: 12px; color: var(--secondary-600); }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--secondary-700); }

/* room mapping rows inside drawers */
.map-rows { display: flex; flex-direction: column; }
.sect-body--flush .map-rows { padding: 0 16px; }
.sect-body--flush .map-rows .map-row:last-child { border-bottom: 0; }
.map-group { padding: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.map-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--secondary-100); }
.map-group + .map-row { border-top: 0; }
.map-ext { display: flex; flex-direction: column; gap: 2px; width: 210px; flex: none; min-width: 0; }
.map-ext b { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.map-ext span { font-size: 12px; color: var(--secondary-500); font-variant-numeric: tabular-nums; }
.map-row > svg { width: 15px; height: 15px; color: var(--secondary-300); flex: none; }
.map-row > .select { flex: 1; min-width: 140px; }
.map-row > .statusbar-on, .map-row > .btn--soft, .map-row > .map-hint { width: 190px; flex: none; justify-content: center; }
.map-row > .map-hint { text-align: center; }
.map-row.is-unmapped > .select { border-color: var(--warning-text); }
.map-hint { font-size: 12px; color: var(--warning-text); font-weight: 600; white-space: nowrap; }
.map-acts { display: flex; gap: 2px; flex: none; }

/* mapping companion matrix */
.table--map { min-width: 1080px; }
.table--map th[scope="col"] { vertical-align: bottom; }
.mp-col { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: -0.025em; font-size: 12.5px; }
.mp-col .ch-logo { width: 26px; height: 26px; border-radius: 6px; }
.mp-col .ch-logo img { width: 16px; height: 16px; }
.mp-col .ch-logo svg { width: 14px; height: 14px; }
.table--map th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; width: 220px; }
.mp-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.mp-id { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--secondary-500); font-variant-numeric: tabular-nums; }
.mp-id .btn--icon { width: 24px; height: 24px; }
.mp-group th { padding: 10px 20px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary-600); background: var(--secondary-50); }
.mp-cell { min-width: 190px; }
.mp-cell .select { width: 100%; }
.mp-cell.is-unmapped .select { border-color: var(--warning-text); color: var(--warning-text); }
.mp-cell.is-auto { display: table-cell; }
.mp-auto { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--ink-success); }
.mp-auto svg { width: 13px; height: 13px; }
.mp-cell.is-none a { font-size: 12.5px; font-weight: 600; color: var(--warning-text); text-decoration: none; }
.mp-legend { display: inline-flex; align-items: center; gap: 16px; font-size: 12px; color: var(--secondary-600); }
.mp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--secondary-300); }
.mp-dot--ok { background: var(--success); }
.mp-dot--no { background: var(--warning-text); }
.mp-dot--auto { background: var(--primary-600); }
@media (max-width: 1100px) { .grid--channels { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .map-row { flex-wrap: wrap; } .map-ext { width: 100%; } .map-row > .statusbar-on, .map-row > .btn--soft, .map-row > .map-hint { width: auto; } .ch-head { flex-wrap: wrap; } }

.sect-body--flush .cap-row { padding: 11px 16px; border-top: 1px solid var(--secondary-100); }
.sect-body--flush .cap-row:first-child { border-top: 0; }

/* ---------- Booking engine ---------- */
.tabs--scroll { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.tabs--scroll button { flex: none; }
.be-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px, 380px); gap: 28px; align-items: start; }
.be-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.be-preview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.be-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.be-preview-head .actions { display: flex; gap: 2px; }
.be-preview-head .btn--icon { width: 32px; height: 32px; }
.hint-inline { font-size: 12px; font-weight: 500; color: var(--secondary-500); margin-left: 6px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--secondary-200); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--primary-600); border: 3px solid var(--surface-card); box-shadow: var(--shadow-xs); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--surface-card); border-radius: 999px; background: var(--primary-600); cursor: pointer; }
.range-val { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--text-link); font-variant-numeric: tabular-nums; }
.logo-pair { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.logo-slot { display: flex; flex-direction: column; gap: 6px; }
.logo-box { display: flex; align-items: center; justify-content: center; gap: 6px; width: 140px; height: 64px; border-radius: var(--radius-lg); background: var(--secondary-50); border: 1px solid var(--secondary-200); }
.logo-box img { width: 32px; height: 32px; }
.logo-box--dark { background: var(--surface-ink); border-color: var(--surface-ink); color: rgba(255,255,255,.6); }
.logo-box--empty { font-size: 12px; }
.logo-box--empty svg { width: 15px; height: 15px; }
.swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: var(--radius-md); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); cursor: pointer; }
.sw.is-on { border-color: var(--secondary-900); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--radius-lg); background: none; cursor: pointer; }
.thumb.is-selected { border-color: var(--primary-600); }
.thumb-ph { display: flex; align-items: center; justify-content: center; width: 84px; height: 60px; border-radius: var(--radius-md); background: var(--secondary-100); color: var(--secondary-400); }
.thumb-ph svg { width: 18px; height: 18px; }
.thumb-flag { position: absolute; bottom: 4px; left: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: var(--primary-600); color: var(--text-on-brand); font-size: 10px; font-weight: 700; }
.thumb-flag svg { width: 10px; height: 10px; }
/* Booking engine: site version (v1/v2) and the v2 theme tiles and palettes */
.be-version { display: inline-flex; border: 1px solid var(--secondary-200); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 6px; }
.be-seg { position: relative; cursor: pointer; }
.be-seg input { position: absolute; opacity: 0; pointer-events: none; }
.be-seg span { display: block; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.be-seg input:checked + span { background: var(--primary-600); color: var(--text-on-brand); }
.be-seg input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.be-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.be-theme { position: relative; display: flex; flex-direction: column; border: 2px solid var(--secondary-200); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.be-theme.is-on { border-color: var(--primary-600); }
.be-theme input, .be-palette input { position: absolute; opacity: 0; pointer-events: none; }
.be-theme:focus-within, .be-palette:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.be-theme-spec { display: flex; align-items: center; justify-content: center; height: 56px; font-size: 26px; line-height: 1; }
.be-theme-name { padding: 6px 8px 0; font-size: 12px; font-weight: 600; }
.be-theme-style { padding: 0 8px 8px; font-size: 11px; color: var(--secondary-500); }
.be-palettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.be-palettes[hidden] { display: none; }
.be-palette { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 2px solid var(--secondary-200); border-radius: var(--radius-md); font-size: 12px; cursor: pointer; }
.be-palette.is-on { border-color: var(--primary-600); }
.be-palette-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.be-v2-brand { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.be-v2-brand[hidden] { display: none; }
@media (max-width: 720px) { .be-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-field { display: flex; align-items: flex-start; gap: 8px; }
.ai-field > .textarea, .ai-field > .input { flex: 1; min-width: 0; }
.ai-field > .btn { flex: none; }
/* fake site preview */
.be-frame { border: 1px solid var(--secondary-200); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-preview); box-shadow: var(--shadow-card); }
.be-frame.is-editing { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.be-frame-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.be-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--secondary-300); }
.be-url { margin-left: 8px; font-size: 11px; color: var(--secondary-500); }
.be-site { display: flex; flex-direction: column; }
.be-site-nav { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--secondary-100); }
.be-logo { width: 44px; height: 12px; border-radius: 3px; background: var(--surface-ink); }
.be-links { display: flex; gap: 6px; margin-left: auto; }
.be-links i { display: block; width: 26px; height: 6px; border-radius: 3px; background: var(--secondary-200); }
.be-cta { padding: 4px 10px; border-radius: 5px; background: var(--primary-600); color: var(--text-on-brand); font-size: 10px; font-weight: 600; }
.be-hero { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; height: 150px; padding: 14px; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)), var(--verde); }
.be-hero-h { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-on-brand); text-align: center; }
.be-hero-p { font-size: 10.5px; color: rgba(255,255,255,.85); }
.be-hero-search { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px; border-radius: 8px; background: var(--surface-preview); }
.be-hero-search i { display: block; width: 44px; height: 14px; border-radius: 4px; background: var(--secondary-100); }
.be-site-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.be-room { height: 54px; border-radius: 8px; background: var(--secondary-100); }
/* content sub-nav */
.be-content { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: start; }
.be-sub { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.be-sub button { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--radius-md); border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--secondary-600); text-align: left; cursor: pointer; }
.be-sub button svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.be-sub button:hover { background: var(--secondary-50); color: var(--secondary-900); }
.be-sub button.is-active { background: var(--primary-50); color: var(--text-link-hover); font-weight: 600; }
.be-sub button.is-active svg { color: var(--text-link); }
.be-sub .count { margin-left: auto; font-size: 11.5px; color: var(--secondary-500); }
.be-sub-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sub-panel { display: flex; flex-direction: column; gap: 20px; }
.sub-panel[hidden] { display: none; }
.map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 200px; border-radius: var(--radius-lg); background: var(--secondary-50); border: 1px dashed var(--secondary-200); color: var(--secondary-500); font-size: 13px; }
.map-ph svg { width: 20px; height: 20px; color: var(--text-link); }
.poi-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--secondary-100); }
.poi-row:first-child { border-top: 0; }
.poi-row .input { flex: 1; min-width: 0; }
.cs-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--secondary-100); background: none; font: inherit; text-align: left; cursor: pointer; }
.cs-row:first-child { border-top: 0; }
.cs-row:hover { background: var(--secondary-50); }
.cs-row > svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.cs-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--secondary-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-when { font-size: 12.5px; color: var(--secondary-600); white-space: nowrap; }
.blk { border-top: 1px solid var(--secondary-100); }
.blk:first-child { border-top: 0; }
.blk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.blk-name { flex: 1; min-width: 160px; }
.blk-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px; }
.rooms-list { display: flex; flex-direction: column; gap: 16px; }
.rm-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--secondary-200); border-radius: var(--radius-xl); }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rm-head h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--secondary-900); }
.rm-head p { margin: 3px 0 0; font-size: 13px; color: var(--secondary-600); }
.rm-head .actions { display: flex; gap: 6px; }
.rm-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--secondary-700); max-width: 76ch; }
.serp { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--secondary-50); max-width: 620px; }
.serp-url { font-size: 12px; color: var(--secondary-600); }
.serp-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #1a0dab; }
.serp-desc { font-size: 13px; line-height: 1.5; color: var(--secondary-700); }
.grid--5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.grid--5 .kpi, .grid--4 .kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-card); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-bottom: 4px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar-track { display: flex; align-items: flex-end; width: 100%; flex: 1; min-height: 0; }
.bar-track::before { content: ""; flex: none; width: 100%; height: var(--h); border-radius: 6px 6px 0 0; background: var(--primary-600); }
.bar span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-top: 7px; font-size: 11px; color: var(--secondary-500); }
.bar b { font-size: 12px; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; gap: 4px; }
.fn-step { display: flex; flex-direction: column; gap: 4px; }
.fn-bar { display: block; height: 22px; border-radius: 5px; background: var(--primary-600); min-width: 3px; }
.fn-bar--end { background: var(--success); }
.fn-lbl { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--secondary-600); }
.fn-lbl b { font-size: 14px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.fn-lbl small { color: var(--secondary-500); }
.fn-drop { padding: 2px 0 6px 10px; font-size: 11.5px; color: var(--ink-warning, var(--warning-text)); font-weight: 600; }
/* widget preview */
.wg-preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 14px; border-radius: var(--radius-xl); background: var(--surface-preview); border: 1px solid var(--secondary-200); box-shadow: var(--shadow-xs); }
.wg-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 92px; }
.wg-lbl { font-size: 10.5px; font-weight: 600; color: var(--secondary-600); }
.wg-input { padding: 7px 9px; border: 1px solid var(--secondary-200); border-radius: var(--radius-md); font-size: 12.5px; color: var(--secondary-800); }
.wg-btn { padding: 9px 14px; border-radius: var(--radius-md); background: var(--primary-600); color: var(--text-on-brand); font-size: 12.5px; font-weight: 600; }
/* photo dialogs */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border: 1px dashed var(--secondary-200); border-radius: var(--radius-xl); background: var(--secondary-50); text-align: center; }
.dropzone svg { width: 24px; height: 24px; color: var(--text-link); }
.dropzone b { font-size: 14px; color: var(--secondary-900); }
.dropzone span { font-size: 12.5px; color: var(--secondary-600); }
.dropzone .btn { margin-top: 6px; }
.ph-grid { display: flex; flex-direction: column; }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--secondary-100); }
.ph-item:first-child { border-top: 0; }
.ph-item .input { flex: 1; min-width: 0; }
.ph-grip { display: inline-flex; color: var(--secondary-300); cursor: grab; }
.ph-grip svg { width: 15px; height: 15px; }
.ph-item .thumb-ph { width: 64px; height: 46px; flex: none; }
.ph-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--secondary-100); overflow: hidden; }
.ph-progress > span { display: block; height: 100%; background: var(--primary-600); }
.rte { border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); overflow: hidden; }
.rte-bar { display: flex; gap: 2px; padding: 5px 6px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.rte-bar .btn--icon { width: 30px; height: 30px; }
.rte .textarea { border: 0; border-radius: 0; }
@media (max-width: 1200px) { .grid--5 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1100px) { .be-layout { grid-template-columns: 1fr; } .be-preview { position: static; max-width: 420px; } .be-content { grid-template-columns: 1fr; } .be-sub { position: static; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 700px) { .grid--5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .poi-row { flex-wrap: wrap; } }

/* ---------- Promotions & coupons ---------- */
.table--promos th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.pm-name { display: block; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.pm-meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--secondary-600); }
.pm-meta .sep { color: var(--secondary-300); }
.pm-disc { font-size: 15px; font-weight: 600; color: var(--ink-success); font-variant-numeric: tabular-nums; }
.pm-chans { display: inline-flex; gap: 4px; }
.pm-chans .ch-logo { width: 28px; height: 28px; border-radius: 7px; }
.pm-chans .ch-logo img { width: 16px; height: 16px; }
.pm-chans .ch-logo svg { width: 15px; height: 15px; }
.table tr.is-off th[scope="row"] .pm-name, .table tr.is-off .cp-code { color: var(--secondary-500); }
.table tr.is-off .pm-disc { color: var(--secondary-500); }
.cp-code { padding: 3px 8px; border-radius: var(--radius-md); background: var(--secondary-50); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600; color: var(--secondary-900); }
.i-ok { width: 16px; height: 16px; color: var(--ink-success); display: inline-block; }
.actions--end { justify-content: flex-end; }
.day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pill { min-width: 46px; height: 34px; padding: 0 10px; border: 1px solid var(--secondary-200); border-radius: var(--radius-md); background: var(--surface-card); font: inherit; font-size: 13px; font-weight: 600; color: var(--secondary-600); cursor: pointer; }
.day-pill:hover { border-color: var(--primary-600); color: var(--text-link); }
.day-pill.is-on { background: var(--primary-600); border-color: var(--primary-600); color: var(--text-on-brand); }
.tg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tg-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--secondary-100); cursor: pointer; }
.tg-row:hover { background: var(--secondary-50); }
.tg-room { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.tg-plan { margin-left: auto; font-size: 12px; color: var(--secondary-600); }
.cap-row > span > b { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.cap-row > span > small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--secondary-600); }
.cp-gen { display: flex; gap: 8px; }
.cp-gen .input { flex: 1; min-width: 0; }
.drawer-head .switch-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--secondary-700); }

/* ---------- Revenue management ---------- */
.rc-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--secondary-50); }
.rc-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc-summary span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.rc-summary b { font-size: 17px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.is-up { color: var(--ink-success); } .is-down { color: var(--ink-danger); }
.run-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--primary-50); }
.run-strip > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.run-strip b { font-size: 13.5px; font-weight: 600; color: var(--text-link-hover); }
.run-strip span { font-size: 12.5px; color: var(--secondary-600); }
.run-spin svg, .rm-spin svg { width: 18px; height: 18px; color: var(--text-link); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); border: 1px solid var(--secondary-200); background: var(--surface-card); font-size: 13.5px; color: var(--secondary-600); }
.bulk-bar b { color: var(--secondary-900); }
.bulk-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-groups { display: flex; flex-direction: column; gap: 10px; }
.rc-group { border: 1px solid var(--secondary-200); border-radius: var(--radius-xl); overflow: hidden; }
.rc-group-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: var(--surface-card); font: inherit; text-align: left; cursor: pointer; }
.rc-group.is-open .rc-group-head { border-bottom: 1px solid var(--secondary-100); background: var(--secondary-50); }
.rc-group-head > svg { width: 16px; height: 16px; color: var(--secondary-400); flex: none; }
.rc-date { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.rc-date small { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--secondary-600); }
.rc-count { font-size: 12.5px; color: var(--secondary-600); }
.rc-avg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-group-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.rc-group-body { display: flex; flex-direction: column; }
.rc-row { display: grid; grid-template-columns: 74px minmax(120px,1.1fr) 92px 20px 116px 62px minmax(160px,1.6fr) auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.rc-row:first-child { border-top: 0; }
.rc-conf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--secondary-600); cursor: help; }
.rc-conf i { width: 8px; height: 8px; border-radius: 999px; background: var(--secondary-300); flex: none; }
.rc-conf--high i { background: var(--success); } .rc-conf--mid i { background: var(--warning-text); } .rc-conf--low i { background: var(--secondary-400); }
.rc-room { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rc-room b { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.rc-room small { font-size: 12px; color: var(--secondary-600); }
.rc-cur, .rc-sug { display: flex; flex-direction: column; gap: 2px; }
.rc-cur small, .rc-sug small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary-500); }
.rc-cur { font-size: 13.5px; color: var(--secondary-600); font-variant-numeric: tabular-nums; }
.rc-arrow svg { width: 15px; height: 15px; color: var(--secondary-300); }
.rc-chg { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-why { font-size: 12.5px; line-height: 1.45; color: var(--secondary-600); }
.rc-why .pill { margin-left: 4px; }
.rc-acts { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.rs-row { display: grid; grid-template-columns: 76px minmax(120px,1fr) minmax(160px,1fr) minmax(160px,1.4fr) auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.rs-row:first-child { border-top: 0; }
.rs-date { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.rs-date small { display: block; font-size: 11.5px; font-weight: 500; color: var(--secondary-600); }
.rs-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-why { font-size: 12.5px; line-height: 1.45; color: var(--secondary-600); }
.table--forecast th[scope="row"] { text-align: left; font-weight: 600; text-transform: none; letter-spacing: -0.025em; color: var(--secondary-900); }
.table--forecast th[scope="row"] small { display: block; font-size: 11.5px; font-weight: 500; color: var(--secondary-600); }
.table tr.is-weekend th[scope="row"] { color: var(--text-link-hover); }
.pace { font-size: 13px; font-weight: 600; color: var(--secondary-600); font-variant-numeric: tabular-nums; }
.pace.is-up { color: var(--ink-success); } .pace.is-down { color: var(--ink-danger); } .pace.is-flat { color: var(--secondary-600); }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; }
.ob-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--secondary-100); }
.ob-label { font-size: 13.5px; color: var(--secondary-700); font-variant-numeric: tabular-nums; }
.form-grid--1 { grid-template-columns: 1fr; }
#rv-auto.is-muted { opacity: .55; }
.kpi--big .kpi-value { font-size: 34px; }
.grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.rm-intro { gap: 24px; }
.rm-intro-head { display: flex; align-items: flex-start; gap: 16px; }
.rm-intro-head h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--secondary-900); }
.rm-intro-head p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--secondary-600); max-width: 70ch; }
.rm-feat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-xl); background: var(--secondary-50); }
.rm-feat b { font-size: 14.5px; font-weight: 600; color: var(--secondary-900); }
.rm-feat span { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }
.rm-pending { align-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.rm-pending h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--secondary-900); }
.rm-pending p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--secondary-600); max-width: 56ch; }
.rm-bar { width: min(320px, 100%); height: 6px; margin-top: 8px; border-radius: 999px; background: var(--secondary-100); overflow: hidden; }
.rm-bar > span { display: block; height: 100%; background: var(--primary-600); }
.rv-dist-row--word { grid-template-columns: 78px minmax(0,1fr) 40px; }
.rv-dist-row--word .rv-dist-star { font-size: 13px; }
.table td.tnum, .table th.tnum { white-space: nowrap; }
@media (max-width: 1200px) { .rc-row { grid-template-columns: 74px minmax(110px,1fr) 88px 16px 110px 58px; } .rc-why { grid-column: 1 / -1; } .rc-acts { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 900px) { .rc-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--3 { grid-template-columns: 1fr; } .rc-group-acts { width: 100%; margin-left: 0; } .rs-row { grid-template-columns: 76px 1fr; } .rs-tags, .rs-why, .rs-row .rc-acts { grid-column: 1 / -1; } }

/* ---------- Opportunities ---------- */
.op-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); align-items: start; }
.op-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--secondary-100); position: sticky; top: 0; }
.op-nav button { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 0; border-radius: var(--radius-md); background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--secondary-600); text-align: left; cursor: pointer; }
.op-nav button > svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.op-nav button > span { flex: 1; min-width: 0; }
.op-nav button:hover { background: var(--secondary-50); color: var(--secondary-900); }
.op-nav button.is-active { background: var(--primary-50); color: var(--text-link-hover); font-weight: 600; }
.op-nav button.is-active > svg { color: var(--text-link); }
.op-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--secondary-200); flex: none; }
.op-dot.is-active { background: var(--success); } .op-dot.is-partial { background: var(--warning-text); } .op-dot.is-wait { background: var(--primary-600); }
.op-body { padding: 24px; min-width: 0; }
.op-panel { display: flex; flex-direction: column; gap: 20px; }
.op-panel[hidden] { display: none; }
.op-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border: 1px solid var(--secondary-200); border-radius: var(--radius-xl); }
.op-card.is-waiting { background: var(--secondary-50); }
.op-card-head { display: flex; align-items: flex-start; gap: 14px; }
.op-card-id { flex: 1; min-width: 0; }
.op-card-id h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--secondary-900); }
.op-card-id p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--secondary-600); max-width: 70ch; }
.op-card-head > .pill, .op-card-head > .statusbar-on { flex: none; margin-top: 2px; }
.op-hl { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--primary-50); font-size: 13px; color: var(--text-link-hover); }
.op-hl svg { width: 15px; height: 15px; flex: none; }
.op-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.op-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary-500); }
.op-check svg { width: 15px; height: 15px; flex: none; color: var(--secondary-300); }
.op-check.is-on { color: var(--secondary-800); }
.op-check.is-on svg { color: var(--ink-success); }
.op-card-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.op-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--secondary-50); font-size: 13px; color: var(--secondary-700); }
.op-list b { margin-right: 6px; font-weight: 600; color: var(--secondary-900); }
.op-list small { color: var(--secondary-500); }
.op-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.op-ch { display: inline-flex; align-items: center; gap: 9px; }
.op-ch .ch-logo { width: 26px; height: 26px; border-radius: 6px; }
.op-ch .ch-logo img { width: 16px; height: 16px; }
.op-ch .ch-logo svg { width: 14px; height: 14px; }
.op-on { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-success); }
.op-off { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary-500); }
.op-avail { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-link); }
.op-warn { font-weight: 600; color: var(--warning-text); }
.mat { display: flex; align-items: center; gap: 16px; }
.mat-val { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.mat-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--secondary-100); overflow: hidden; }
.mat-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--primary-600); }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.cl-row:first-child { border-top: 0; }
.cl-row > svg { width: 17px; height: 17px; flex: none; color: var(--secondary-300); }
.cl-row.is-done > svg { color: var(--ink-success); }
.cl-row.is-done .cl-name { color: var(--secondary-500); }
.cl-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--secondary-900); }
.cl-why { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.cl-why-body { padding: 0 16px 14px 45px; display: flex; flex-direction: column; gap: 6px; }
.cl-why-body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--secondary-600); max-width: 72ch; }
.cl-why-body a { font-size: 12.5px; font-weight: 600; }
.next-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--secondary-100); text-decoration: none; }
.next-row:first-child { border-top: 0; }
.next-row:hover { background: var(--secondary-50); }
.next-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.next-txt b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.next-txt span { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }
.next-row > .pill { flex: none; }
.next-row > svg { width: 16px; height: 16px; color: var(--secondary-400); flex: none; }
.agent-icon svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .op-layout { grid-template-columns: 1fr; } .op-nav { position: static; border-right: 0; border-bottom: 1px solid var(--secondary-100); flex-direction: row; flex-wrap: wrap; } .op-nav button > span { flex: none; } }

/* ---------- Reports & charts ---------- */
.rp-sub { padding: 14px 16px 0; }
.be-sub--row { flex-direction: row; flex-wrap: wrap; position: static; }
.be-sub--row button > span { flex: none; }
.filters--report { align-items: flex-end; gap: 12px 14px; }
.field--inline { display: flex; flex-direction: column; gap: 4px; }
.field--inline > label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.filters--report .switch-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary-700); padding-bottom: 9px; }
.filters--report .btn { margin-bottom: 0; }
.rp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 18px 20px; background: var(--secondary-50); }
.rp-sum-card { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-xs); }
.rp-sum-card .kpi-value { font-size: 22px; }
.rp-sum-card--wide { grid-column: span 2; }
.pay-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; }
.pay-split span { display: flex; flex-direction: column; gap: 2px; }
.pay-split small { font-size: 11px; color: var(--secondary-500); }
.pay-split b { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.table--report { min-width: 1400px; }
.table--report td, .table--report th { white-space: nowrap; }
.table tr.is-cancelled td, .table tr.is-cancelled th { color: var(--secondary-400); text-decoration: line-through; }
.table tr.is-cancelled .pill { opacity: .6; }
.rp-total td { font-weight: 600; color: var(--secondary-900); background: var(--secondary-50); border-top: 1px solid var(--secondary-200); }
.rp-foot { display: flex; padding: 12px 20px; border-top: 1px solid var(--secondary-100); font-size: 12.5px; color: var(--secondary-600); }
.rp-foot span { display: inline-flex; align-items: center; gap: 6px; }
.rp-foot svg { width: 14px; height: 14px; color: var(--secondary-400); }
.sect-head > div:not(.segmented):not(.actions) { display: flex; flex-direction: column; gap: 3px; }
.rev-total { display: flex; flex-direction: column; gap: 4px; }
.rev-value { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.mix { display: flex; flex-direction: column; gap: 10px; }
.mix-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 120px; align-items: center; gap: 12px; }
.mix-lbl { font-size: 13.5px; color: var(--secondary-700); }
.mix-track { height: 10px; border-radius: 999px; background: var(--secondary-100); overflow: hidden; }
.mix-fill { display: block; height: 100%; border-radius: 999px; }
.mix-val { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.mix-val small { font-weight: 500; color: var(--secondary-500); }
.spark { display: block; margin-top: 4px; }
.spark svg { width: 100%; height: 28px; }
.chart-legend, .donut-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--secondary-600); }
.chart-legend span, .donut-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend { flex-direction: column; gap: 8px; }
.donut-legend b { margin-left: auto; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
svg.donut { width: 150px; height: 150px; flex: none; transform: rotate(-90deg); }
.donut-ring { fill: none; stroke: var(--secondary-100); stroke-width: 5; }
.donut-seg { fill: none; stroke-width: 5; }
.donut-legend { flex: 1; min-width: 180px; }
.bars--year { height: 220px; max-width: 420px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; }
.empty h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--secondary-900); }
.empty p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--secondary-600); max-width: 58ch; }
@media (max-width: 900px) { .rp-sum-card--wide { grid-column: span 1; } .mix-row { grid-template-columns: 100px minmax(0,1fr) 100px; } }

/* reports: flatter hierarchy */
.rp-mode-panel[hidden] { display: none; }
.filters--report { gap: 10px; }
.filters--more { padding-top: 0; background: var(--secondary-50); }
.rp-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-bottom: 1px solid var(--secondary-100); }
.rp-strip > div { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px; border-right: 1px solid var(--secondary-100); min-width: 0; }
.rp-strip > div:nth-child(4) { border-right: 0; }
.rp-strip span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.rp-strip b { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.rp-strip small { font-size: 12.5px; color: var(--secondary-600); }
.rp-strip-pay { grid-column: 1 / -1; flex-direction: row !important; align-items: baseline; gap: 14px !important; border-top: 1px solid var(--secondary-100); border-right: 0 !important; padding: 12px 20px !important; }
.rp-strip-pay small { font-size: 13px; }
.rp-strip-pay small b { font-family: inherit; font-size: 13px; color: var(--secondary-900); }
@media (max-width: 900px) { .rp-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } .rp-strip > div:nth-child(2) { border-right: 0; } .rp-strip > div:nth-child(3), .rp-strip > div:nth-child(4) { border-top: 1px solid var(--secondary-100); } }

.filters--report .rp-search { margin-left: auto; }
.rp-strip-pay small { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rp-strip-pay em { font-style: normal; white-space: nowrap; }

/* ---------- Pagar.me report ---------- */
.pg-head { display: flex; flex-direction: column; gap: 0; }
.pg-balance { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid var(--secondary-100); }
.pg-bal-card { display: flex; flex-direction: column; gap: 5px; padding: 20px 24px; border-right: 1px solid var(--secondary-100); }
.pg-bal-card:last-child { border-right: 0; }
.pg-bal-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.05; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.pg-bal-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; }
.pg-bal-meta .secondary { color: var(--secondary-600); }
.ch-off { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--secondary-500); }
.ch-off svg { width: 14px; height: 14px; }
.pg-account { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; padding: 0 24px 20px; }
.table--pg { min-width: 1080px; }
.table--pg td, .table--pg th { white-space: nowrap; }
.pg-toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--secondary-200); border-radius: var(--radius-md); background: var(--surface-card); color: var(--secondary-500); cursor: pointer; }
.pg-toggle:hover { border-color: var(--primary-600); color: var(--text-link); }
.pg-toggle svg { width: 14px; height: 14px; }
.pg-row.is-open td { background: var(--secondary-50); }
.pg-detail > td { padding: 0 !important; background: var(--secondary-50); white-space: normal !important; }
.pg-detail-wrap { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pg-tiles span { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--secondary-200); }
.pg-tiles small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary-500); }
.pg-tiles b { font-size: 14px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pg-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--secondary-200); }
.pg-card .eyebrow { margin-bottom: 6px; }
.pg-inst { display: flex; flex-direction: column; gap: 8px; }
.pg-inst .table-wrap { background: var(--surface-card); border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); overflow: hidden; }
.table--sm th { padding: 8px 14px; }
.table--sm td { padding: 8px 14px; }
.pg-disc { display: flex; flex-direction: column; gap: 8px; }
.pg-totals { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--secondary-100); }
.pg-totals > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-right: 1px solid var(--secondary-100); }
.pg-totals > div:last-child { border-right: 0; }
.pg-totals b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.pg-totals small { font-size: 13px; color: var(--secondary-700); }
@media (max-width: 900px) { .pg-balance, .pg-account, .pg-totals { grid-template-columns: 1fr; } .pg-bal-card, .pg-totals > div { border-right: 0; border-bottom: 1px solid var(--secondary-100); } }

.pg-account .sect-body { gap: 0; padding-top: 4px; padding-bottom: 8px; }
.pg-account .kv { padding: 9px 0; }
.pg-account .kv > span { flex: none; width: 130px; }
.pg-head .disclosure-row { padding: 14px 20px; border-bottom: 1px solid var(--secondary-100); }
.rp-mode-panel .sub-panel { gap: 0; }
.table--report th:first-child, .table--report td:first-child, .table--pg th:first-child, .table--pg td:first-child { width: 34px; padding-right: 0; }
.table--report td:nth-child(2), .table--report th:nth-child(2) { padding-left: 12px; }
/* Guest column: long multi-guest names wrap (two lines at most, full name on hover) instead of pushing the other columns off screen. */
.table--report td:nth-child(2) { white-space: normal; min-width: 180px; }
.table--report .rt-guest { max-width: 300px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
/* compact report rows */
.table--report { min-width: 900px; }
.table--pg { min-width: 880px; }
.rt-guest { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); text-decoration: none; }
.rt-guest:hover { color: var(--text-link); }
.rt-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--secondary-500); }
.rt-stay { display: block; font-size: 13px; color: var(--secondary-800); }
.rt-pax { font-size: 13px; color: var(--secondary-800); white-space: nowrap; }
.rt-pax small { margin-left: 2px; font-size: 10.5px; color: var(--secondary-500); }
.rt-money { font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.rt-status { display: inline-flex; gap: 4px; }
.dot-lbl { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: var(--secondary-100); color: var(--secondary-600); cursor: help; }
.dot-lbl::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--secondary-300); }
.dot-lbl--done { background: var(--success-soft); color: var(--ink-success); }
.dot-lbl--done::before { background: var(--success); }
.dot-lbl--pend { background: var(--warning-soft); color: var(--warning-text); }
.dot-lbl--pend::before { background: var(--warning-text); }
.dot-lbl--fail { background: var(--danger-soft); color: var(--ink-danger); }
.dot-lbl--fail::before { background: var(--danger); }
.menu--cols { min-width: 250px; }
.menu-head { display: block; padding: 4px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-500); }
.menu-hint { display: block; padding: 4px 12px 2px; font-size: 12px; line-height: 1.45; color: var(--secondary-500); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-md); font-size: 13.5px; color: var(--secondary-700); cursor: pointer; }
.check-row:hover { background: var(--secondary-50); }

/* ---------- Taxes & pet policy ---------- */
.pref-row { padding: 18px 20px; border-bottom: 1px solid var(--secondary-100); }
.pref-row .switch-lbl { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.pref-row .check { margin-top: 2px; }
.pref-row b { display: block; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.pref-row small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--secondary-600); max-width: 78ch; }
.table--taxes th[scope="row"], .table--pets th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.scope-all { font-size: 13px; color: var(--secondary-600); }
.card-foot--stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.card-foot--stack span { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.card-foot--stack svg { margin-top: 2px; }

/* ---------- Property info ---------- */
.hint.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-success); font-weight: 600; }
.hint.saved svg { width: 13px; height: 13px; }
.hint.is-error { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-danger); font-weight: 600; }
.hint.is-error svg { width: 13px; height: 13px; }
.field.is-missing .input { border-color: var(--missing-line); background: var(--warning-soft); }
.switch-lbl.compact { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary-700); cursor: pointer; }
.am-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--secondary-100); }
.am-total { font-size: 13px; color: var(--secondary-600); }
.am-total b { font-weight: 600; color: var(--secondary-900); }
.am-list { display: flex; flex-direction: column; gap: 8px; }
.am-cat { border: 1px solid var(--secondary-200); border-radius: var(--radius-xl); overflow: hidden; }
.am-cat[hidden] { display: none; }
.am-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: var(--surface-card); font: inherit; text-align: left; cursor: pointer; }
.am-cat.is-open .am-head { border-bottom: 1px solid var(--secondary-100); background: var(--secondary-50); }
.am-head > svg { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.am-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--primary-50); color: var(--text-link); flex: none; }
.am-icon svg { width: 15px; height: 15px; }
.am-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.am-count { font-size: 12.5px; font-weight: 600; color: var(--secondary-600); font-variant-numeric: tabular-nums; }
.am-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; padding: 12px 16px; }
.am-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--secondary-700); cursor: pointer; }
.am-item[hidden] { display: none; }
.card-foot .actions { display: flex; gap: 8px; }

/* ---------- Room types workspace ---------- */
.rt-layout { display: grid; grid-template-columns: 268px minmax(0,1fr); align-items: start; }
.rt-tree { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-right: 1px solid var(--secondary-100); position: sticky; top: 0; }
.rt-tree-head { padding: 4px 10px 8px; }
.rt-group { display: flex; flex-direction: column; gap: 2px; }
.rt-node { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: none; font: inherit; font-size: 13.5px; color: var(--secondary-700); text-align: left; cursor: pointer; }
.rt-node > svg:first-child { width: 14px; height: 14px; color: var(--secondary-400); flex: none; }
.rt-ic { width: 15px; height: 15px; color: var(--secondary-400); flex: none; }
.rt-node > span:not(.rt-badge):not(.pill):not(.rt-off) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-node--type { font-weight: 600; color: var(--secondary-900); }
.rt-node:hover { background: var(--secondary-50); }
.rt-node.is-active { background: var(--primary-50); color: var(--text-link-hover); }
.rt-node.is-active .rt-ic { color: var(--text-link); }
.rt-node.is-disabled { color: var(--secondary-500); }
.rt-badge { flex: none; font-size: 11.5px; font-weight: 600; color: var(--secondary-500); font-variant-numeric: tabular-nums; }
.rt-pet { width: 13px; height: 13px; color: var(--text-link); flex: none; cursor: help; }
.rt-off { flex: none; padding: 1px 6px; border-radius: 999px; background: var(--secondary-100); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary-500); cursor: help; }
.rt-children { display: flex; flex-direction: column; gap: 2px; padding-left: 22px; }
.rt-empty { margin: 4px 0 8px 10px; font-size: 12.5px; color: var(--secondary-500); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.rt-editor { min-width: 0; }
.rt-pane[hidden] { display: none; }
.rt-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px 16px; border-bottom: 1px solid var(--secondary-100); }
.rt-pane-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--secondary-900); }
.rt-pane-head .sub { margin-top: 3px; font-size: 13px; color: var(--secondary-600); }
.rt-pane-body { display: flex; flex-direction: column; gap: 20px; padding: 22px 24px; }
.rt-pane-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--secondary-100); }
.rt-pane-foot .btn--primary { margin-left: auto; }
.bed-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--secondary-100); }
.bed-row:first-child { border-top: 0; }
.bed-row .select { flex: 1; min-width: 160px; }
.w-120 { width: 120px; flex: none; }
@media (max-width: 1000px) { .rt-layout { grid-template-columns: 1fr; } .rt-tree { position: static; border-right: 0; border-bottom: 1px solid var(--secondary-100); } }

.rt-tree-head { display: flex; flex-direction: column; gap: 4px; }
.rt-tree-head .hint { font-size: 12px; line-height: 1.45; }
.rt-type-row, .rt-room-row { display: flex; align-items: center; gap: 2px; border-radius: var(--radius-md); }
.rt-type-row > .rt-node, .rt-room-row > .rt-node { flex: 1; min-width: 0; }
.rt-grip { display: inline-flex; align-items: center; justify-content: center; width: 16px; color: transparent; cursor: grab; flex: none; }
.rt-grip svg { width: 13px; height: 13px; }
.rt-type-row:hover .rt-grip, .rt-room-row:hover .rt-grip { color: var(--secondary-300); }
.rt-group.is-dragging, .rt-room-row.is-dragging { opacity: .45; }
.rt-group.drop-before, .rt-room-row.drop-before { box-shadow: 0 -2px 0 var(--primary-600); }
.rt-group.drop-after, .rt-room-row.drop-after { box-shadow: 0 2px 0 var(--primary-600); }
.rt-children { padding-left: 18px; }

.table--products th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.dup-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 2px 7px; border-radius: 999px; background: var(--warning-soft); color: var(--warning-text); font-size: 11px; font-weight: 700; cursor: help; }
.dup-flag svg { width: 12px; height: 12px; }
.tabs button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Payment methods ---------- */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px 16px; border-bottom: 1px solid var(--secondary-100); }
.card-head .card-title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--secondary-900); }
.card-head .sub { margin-top: 3px; font-size: 13.5px; color: var(--secondary-600); max-width: 74ch; }
.card-head .switch-lbl { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--secondary-700); flex: none; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cb-tile { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); background: var(--surface-card); font: inherit; font-size: 13.5px; color: var(--secondary-700); cursor: pointer; }
.cb-tile:hover { border-color: var(--primary-600); }
.cb-tile.is-on { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); color: var(--secondary-900); font-weight: 600; }
.cb-tile > span:not(.cb-mark) { flex: 1; min-width: 0; text-align: left; }
.cb-tile svg { width: 15px; height: 15px; color: var(--text-link); flex: none; }
.cb-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 4px; background: var(--secondary-100); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary-600); flex: none; }
.am-body--flush { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.inst-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.inst-row { display: flex; align-items: center; gap: 10px; }
.inst-n { width: 34px; font-size: 13.5px; font-weight: 600; color: var(--secondary-700); font-variant-numeric: tabular-nums; }
.card-foot { flex-wrap: wrap; }
.card-foot > .btn { margin-left: auto; }

/* ---------- Rate plans & policies ---------- */
.table--plans th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.rp-policy { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--secondary-700); }
.rp-meal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--secondary-700); }
.rp-meal svg { width: 14px; height: 14px; color: var(--secondary-400); }
.rp-none { font-size: 13px; color: var(--warning-text); }
.rule-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--secondary-700); }
.pol-count { font-size: 13px; color: var(--secondary-600); }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pol-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--radius-2xl); background: var(--surface-card); box-shadow: var(--shadow-card); border: 1px solid transparent; }
.pol-card.is-default { border-color: var(--primary-600); }
.pol-head { display: flex; align-items: flex-start; gap: 10px; }
.pol-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pol-id h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--secondary-900); }
.pol-code { align-self: flex-start; padding: 2px 7px; border-radius: var(--radius-md); background: var(--secondary-50); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--secondary-600); }
.pol-acts { display: flex; gap: 2px; flex: none; }
.pol-acts .btn--icon { width: 30px; height: 30px; }
.pol-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--secondary-700); }
.pol-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.pol-tags .chip { font-size: 12px; cursor: default; }
.chip--used { background: var(--primary-50); border-color: var(--primary-50); color: var(--text-link-hover); cursor: help; }
.chip--used svg { width: 12px; height: 12px; }
.segmented.is-locked { opacity: .55; pointer-events: none; }
#pol-locked { display: flex; align-items: flex-start; gap: 10px; }
#pol-locked svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.card-foot > .actions { margin-left: auto; }

.table-wrap.is-muted { opacity: .5; }

/* ---------- Children policy ---------- */
.table--chd th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.age-cell { font-size: 13.5px; color: var(--secondary-700); }
.age-cell small { color: var(--secondary-500); }
.age-bar { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.age-track { position: relative; height: 8px; border-radius: 999px; background: var(--secondary-100); }
.age-fill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--primary-600); }
.age-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--secondary-500); font-variant-numeric: tabular-nums; }
.chg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.chg-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); background: var(--surface-card); text-align: left; cursor: pointer; }
.chg-tile:hover { border-color: var(--primary-600); }
.chg-tile.is-on { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); }
.chg-tile svg { width: 18px; height: 18px; color: var(--text-link); }
.chg-tile b { font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.chg-tile span { font-size: 12px; line-height: 1.45; color: var(--secondary-600); }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- Contacts ---------- */
.table--contacts { min-width: 900px; }
.table--contacts th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.co-ota { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--primary-50); color: var(--text-link-hover); font-size: 11px; font-weight: 700; cursor: help; }
.co-ota svg { width: 11px; height: 11px; }

/* ---------- Team ---------- */
.rt-sub.is-warn { color: var(--warning-text); font-weight: 600; }
.table--contacts th[scope="row"] .pill { margin-left: 8px; }
.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--secondary-100); }
.prop-row:first-child { border-top: 0; }
.prop-row .switch-lbl { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.prop-row b { display: block; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.prop-row small { display: block; font-size: 12px; color: var(--secondary-500); }
.prop-row.is-on { background: var(--primary-50); }
.switch-lbl.compact input[type="radio"] { accent-color: var(--primary-600); }
.switch-lbl.is-muted { opacity: .45; }
.btn:disabled { pointer-events: auto; }

/* ---------- Workspace ---------- */
.ro-value { display: inline-flex; align-items: center; height: 40px; font-size: 14px; color: var(--secondary-700); }
.table--ws { min-width: 980px; }
.table--ws th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; white-space: nowrap; }
.table--ws td { font-size: 12.5px; }
@media (min-width: 600px) {
  [data-workspace-v2] .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.svc-list { display: flex; flex-wrap: wrap; gap: 5px; max-width: 460px; }
.svc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--ink-success); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.svc small { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 9.5px; }
.svc--pending { background: var(--warning-soft); color: var(--warning-text); }
.card-head .card-title .count-pill { margin-left: 8px; vertical-align: middle; }

/* ---------- Notifications ---------- */
.sms-bal { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.sms-bal b { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.sms-bal b.is-low { color: var(--warning-text); }
.cap-row--sub { padding-left: 46px; }
.table--mail { min-width: 860px; }
.table--mail th[scope="row"] { text-align: left; font-weight: 500; text-transform: none; letter-spacing: -0.025em; }
.mail-subj { display: block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary-800); cursor: help; }
.cp-gen .input-group.grow { flex: 1; min-width: 0; }

.sect-body--flush .cap-row--sub { padding-left: 46px; }
.table--mail .mail-status { min-width: 200px; }
.table--mail .mail-to { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table--mail .cell-note { white-space: normal; }

/* ---------- Notifications matrix ---------- */
.table--notif th[scope="row"] { text-align: left; text-transform: none; letter-spacing: -0.025em; font-weight: 500; }
.table--notif .nt-col { width: 220px; text-align: center; }
.table--notif thead .nt-col { text-align: center; }
.nt-head { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-transform: none; letter-spacing: -0.025em; font-size: 13px; font-weight: 600; color: var(--secondary-900); }
.nt-head svg { width: 16px; height: 16px; color: var(--text-link); margin-bottom: 2px; }
.nt-head small { font-weight: 400; font-size: 12px; color: var(--secondary-500); }
.nt-ev { display: inline-flex; align-items: center; gap: 12px; }
.nt-ev svg { width: 18px; height: 18px; color: var(--secondary-500); flex: none; }
.nt-ev b { display: block; font-size: 14px; font-weight: 600; color: var(--secondary-900); }
.nt-ev small { display: block; font-size: 12px; color: var(--secondary-500); }
.nt-fixed { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: var(--success-bg, #dcfce7); color: var(--success-text, #16a34a); }
.nt-fixed svg { width: 14px; height: 14px; }
.nt-none { color: var(--secondary-300); }
.table--notif td .switch { vertical-align: middle; }

/* ---------- Integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 980px) { .int-grid { grid-template-columns: 1fr; } }
.int-card--wide { grid-column: 1 / -1; }
.int-card .card-head { align-items: center; }
.int-id { display: flex; align-items: center; gap: 12px; }
.int-id .ch-logo { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--text-link); flex: none; }
.int-id .ch-logo svg { width: 20px; height: 20px; }
.int-id .ch-logo img { width: 24px; height: 24px; }
.ch-logo--wa { background: var(--wa-soft); color: var(--wa-ink); }
.ch-logo--complior { background: var(--complior-soft); color: var(--secondary-700); }
.int-status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.int-status > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.int-status > div { flex: 1; min-width: 0; }
.int-status b { display: block; font-size: 14px; font-weight: 600; }
.int-status span { display: block; font-size: 13px; line-height: 1.45; margin-top: 2px; }
.int-status .btn { flex: none; align-self: center; }
.int-status.is-ok { background: var(--int-ok-bg); color: var(--int-ok-ink); }
.int-status.is-ok span { color: var(--int-ok-sub); }
.int-status.is-pending { background: var(--secondary-50); color: var(--secondary-800); }
.int-status.is-pending span { color: var(--secondary-600); }
.int-status.is-warn { background: var(--int-warn-bg); color: var(--int-warn-ink); }
.int-status.is-warn span { color: var(--int-warn-sub); }
.int-test { display: inline-flex; align-items: center; gap: 10px; }
.int-result { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--secondary-600); }
.int-result svg { width: 14px; height: 14px; }
.int-result.is-ok { color: var(--int-result-ok); }
.int-result.is-fail { color: var(--ink-danger); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv-list { display: grid; gap: 6px; margin-bottom: 16px; }
.kv-list .kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.kv-list .kv span { color: var(--secondary-500); }
.kv-list .kv b { font-weight: 500; color: var(--secondary-900); }
.wa-body { display: grid; grid-template-columns: minmax(0, 480px) 200px; gap: 32px; align-items: start; }
.wa-body .btn { margin-top: 4px; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-ph { width: 200px; height: 200px; border: 1px dashed var(--secondary-200); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--secondary-500); font-size: 13px; padding: 20px; }
.qr-ph svg { width: 32px; height: 32px; color: var(--secondary-300); }
.qr-code { width: 200px; height: 200px; border-radius: 12px; background: repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 0 0 / 20px 20px; border: 8px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px var(--secondary-200); }
.int-adv { display: block; border-top: 1px solid var(--secondary-100); margin-top: 8px; }
.int-adv summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--secondary-700); }
.int-adv summary::-webkit-details-marker { display: none; }
.int-adv summary svg { width: 16px; height: 16px; transition: transform .2s; }
.int-adv[open] summary svg { transform: rotate(90deg); }
.int-adv-body { padding-bottom: 12px; }
.split-rule, .phone-intl { display: flex; gap: 8px; }
.split-rule .select, .phone-intl .select { flex: none; width: 84px; }
.phone-intl--country .select { width: 190px; }
.split-rule .input, .phone-intl .input { flex: 1; min-width: 0; }
:root { --success-bg: #dcfce7; --success-text: #16a34a; }
.sect-body.is-muted { opacity: .5; }
.partner { border: 1px solid var(--secondary-100); border-radius: 12px; padding: 16px; }
.partner-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.steps--clickable { margin-bottom: 20px; } .steps--clickable .step { cursor: pointer; }
.step-panel { display: none; } .step-panel.is-active { display: block; }
.btn--ghost-danger { color: var(--ink-danger); } .btn--ghost-danger:hover { background: var(--danger-hover-soft); color: var(--ink-danger); }
.tabs--page { margin-bottom: 20px; }
.tabs > .tabs__end { margin-left: auto; }
.int-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.int-balance > div { display: flex; flex-direction: column; gap: 2px; }
.int-balance b { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; color: var(--secondary-900); font-variant-numeric: tabular-nums; }
.int-balance b.is-low { color: var(--warning-text); }
.form-grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 720px) { .wa-body { grid-template-columns: 1fr; } .int-grid { grid-template-columns: 1fr; } }

/* ---------- Preferences ---------- */
.bar-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bar-opt { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--secondary-200); border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--secondary-700); }
.bar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bar-opt.is-selected { border-color: var(--primary-600); box-shadow: 0 0 0 1px var(--primary-600); color: var(--text-link); }
.bar-demo { display: block; height: 28px; background: var(--primary-600); color: #fff; font-size: 12px; line-height: 28px; padding: 0 10px; font-style: normal; position: relative; margin: 0 10px; }
.bar-demo i { font-style: normal; }
.bar-demo--square { border-radius: 2px; }
.bar-demo--round { border-radius: 999px; }
.bar-demo--arrow { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); padding-left: 18px; }
.af-panel { transition: opacity .2s; }
.af-panel.is-muted { opacity: .45; pointer-events: none; }
.af-stats { display: flex; gap: 28px; margin-bottom: 14px; }
.af-stats b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--secondary-900); display: block; line-height: 1.1; }
.af-stats span { font-size: 12px; color: var(--secondary-500); }
.totp-setup { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.qr-code--sm { width: 160px; height: 160px; background-size: 16px 16px; }
.totp-key { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: .04em; background: var(--secondary-50); border: 1px solid var(--secondary-200); border-radius: 6px; padding: 6px 10px; margin: 8px 0 14px; }
.qa-list { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; gap: 6px; }
.qa-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; border: 1px solid var(--secondary-100); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; color: var(--secondary-900); }
.qa-list li > svg { width: 18px; height: 18px; color: var(--text-link); }
.qa-list li > span:nth-of-type(2) { flex: 1; }
.qa-grip { color: var(--secondary-300); cursor: grab; display: inline-flex; }
.qa-grip svg { width: 16px; height: 16px; }
.qa-empty { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 28px; border: 1px dashed var(--secondary-200); border-radius: 12px; color: var(--secondary-500); font-size: 13px; margin: 16px 0 8px; }
.qa-empty svg { width: 18px; height: 18px; }
.table th[scope="row"] .pill { margin-left: 8px; }

.ch-caps .cap-read { font-size: 13px; color: var(--secondary-600); }
.ch-card .card-foot > span { font-size: 12.5px; color: var(--secondary-500); }
.ch-card .card-foot .actions { display: flex; align-items: center; gap: 8px; }

.ch-card { overflow: visible; }
.ch-card .card-foot { border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); }
.ch-card .card-foot .menu--right { top: auto; bottom: calc(100% + 6px); }

/* ---------- Support center ---------- */
.sup-hero { border-radius: var(--radius-2xl); padding: 44px 32px 32px; text-align: center; background: linear-gradient(var(--sup-hero-top), var(--surface-card)); background-image: radial-gradient(rgba(0,114,183,.08) 1px, transparent 1px), linear-gradient(var(--sup-hero-top), var(--surface-card)); background-size: 18px 18px, 100% 100%; display: flex; flex-direction: column; align-items: center; }
.sup-hero-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sup-hero-icon svg { width: 28px; height: 28px; }
.sup-hero h1 { font-size: 34px; color: var(--secondary-900); margin: 0; }
.sup-hero p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--secondary-600); max-width: 56ch; text-wrap: pretty; }
.sup-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; margin: 24px 0 16px; padding: 0 16px; height: 50px; border-radius: 999px; background: var(--surface-card); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.sup-search svg { width: 18px; height: 18px; color: var(--secondary-400); flex: none; }
.sup-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; color: var(--secondary-900); background: none; }
.sup-clear { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--secondary-400); display: inline-flex; }
.sup-clear svg { width: 16px; height: 16px; }
.sup-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sup-btn-light { background: var(--surface-card); color: var(--text-link-hover); } .sup-btn-light:hover { background: var(--verde); color: var(--text-on-verde); }
.sup-btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: var(--text-on-brand); } .sup-btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--text-on-brand); }
.sup-btn-ghost svg:last-child { width: 14px; height: 14px; opacity: .8; }
.sup-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sup-qa { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 20px; border: 0; border-radius: var(--radius-2xl); background: var(--surface-card); box-shadow: var(--shadow-card); cursor: pointer; font: inherit; transition: box-shadow .5s, transform .2s; }
.sup-qa:hover { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.sup-qa:hover .sup-qa-icon { transform: scale(1.1); }
.sup-qa:hover b { color: var(--text-link); }
.sup-qa-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(var(--primary-50), var(--primary-100)); color: var(--text-link); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: transform .2s; }
.sup-qa-icon svg { width: 20px; height: 20px; }
.sup-qa b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--secondary-900); }
.sup-qa b svg { width: 13px; height: 13px; color: var(--secondary-400); }
.sup-qa > span:last-child { font-size: 13px; line-height: 1.5; color: var(--secondary-600); }
.kb-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.kb-body.is-searching { grid-template-columns: minmax(0, 1fr); }
.kb-body.is-searching .kb-nav { display: none; }
.kb-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--secondary-100); }
.kb-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: var(--radius-lg); font: inherit; font-size: 13.5px; font-weight: 500; color: var(--secondary-600); text-align: left; cursor: pointer; }
.kb-nav-item svg { width: 16px; height: 16px; flex: none; color: var(--secondary-400); }
.kb-nav-item:hover { background: var(--secondary-50); color: var(--secondary-900); }
.kb-nav-item.is-active { background: var(--primary-50); color: var(--text-link-hover); font-weight: 600; }
.kb-nav-item.is-active svg { color: var(--text-link); }
.kb-content { padding: 24px; }
.kb-cat-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--secondary-900); margin: 0 0 14px; }
.kb-body.is-searching .kb-cat + .kb-cat { margin-top: 26px; }
.kb-acc { display: flex; flex-direction: column; gap: 8px; }
.kb-q { border: 1px solid var(--secondary-100); border-radius: var(--radius-lg); overflow: hidden; }
.kb-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; background: var(--secondary-50); font-size: 14px; font-weight: 500; color: var(--secondary-900); }
.kb-q summary::-webkit-details-marker { display: none; }
.kb-q summary:hover { color: var(--text-link); }
.kb-q summary svg { width: 16px; height: 16px; flex: none; color: var(--secondary-400); transition: transform .2s; }
.kb-q[open] summary { background: var(--primary-50); color: var(--text-link-hover); }
.kb-q[open] summary svg { transform: rotate(180deg); color: var(--text-link); }
.kb-a { padding: 14px 16px 16px; }
.kb-a p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--secondary-600); max-width: 74ch; text-wrap: pretty; }
.kb-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.kb-link svg { width: 14px; height: 14px; }
#kb-empty svg { width: 30px; height: 30px; color: var(--secondary-300); }
.sup-contact { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 24px; align-items: start; }
.sup-form { display: flex; flex-direction: column; gap: 16px; }
.sup-form textarea.input { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.sup-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.sup-sent { grid-column: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 20px; }
.sup-sent-icon { width: 48px; height: 48px; border-radius: 999px; background: var(--success-bg); color: var(--success-text); display: inline-flex; align-items: center; justify-content: center; }
.sup-sent h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 6px 0 0; }
.sup-sent p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--secondary-600); max-width: 52ch; }
.sup-aside { display: flex; flex-direction: column; gap: 8px; }
.sup-aside .eyebrow { margin-bottom: 4px; }
.sup-way { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--secondary-100); color: inherit; }
a.sup-way:hover { background: var(--primary-50); border-color: var(--primary-100); color: inherit; }
.sup-way-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--text-link); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sup-way-icon svg { width: 17px; height: 17px; }
.sup-way-icon.is-wa { background: var(--wa-soft); color: var(--wa-ink); }
.sup-way b { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); }
.sup-way small { display: block; font-size: 12.5px; color: var(--secondary-600); }
.sup-way > span:nth-child(2) { flex: 1; min-width: 0; }
.sup-way > svg:last-child { width: 14px; height: 14px; color: var(--secondary-400); }
.ih-thread { display: flex; flex-direction: column; gap: 12px; }
.ih-msg { max-width: 86%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.ih-msg p { margin: 0; }
.ih-msg.is-bot { background: var(--secondary-50); color: var(--secondary-800); border-bottom-left-radius: 4px; align-self: flex-start; }
.ih-msg.is-me { background: var(--primary-600); color: var(--text-on-brand); border-bottom-right-radius: 4px; align-self: flex-end; }
.ih-msg.is-typing { display: flex; gap: 4px; }
.ih-msg.is-typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--secondary-400); animation: ih-blink 1.2s infinite; }
.ih-msg.is-typing span:nth-child(2) { animation-delay: .2s; } .ih-msg.is-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ih-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.ih-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ih-foot { display: block; }
.ih-input { display: flex; align-items: center; gap: 8px; }
.ih-input input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--secondary-200); border-radius: var(--radius-lg); font: inherit; font-size: 14px; outline: none; }
.ih-input input:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--primary-600); }
@media (max-width: 1100px) { .sup-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sup-contact { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sup-quick { grid-template-columns: 1fr; } .kb-body { grid-template-columns: 1fr; } .kb-nav { border-right: 0; border-bottom: 1px solid var(--secondary-100); } }

.sup-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--secondary-500); }
.sup-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sup-way-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--radius-2xl); background: var(--surface-card); box-shadow: var(--shadow-card); cursor: pointer; font: inherit; color: inherit; transition: box-shadow .5s; }
.sup-way-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.12); color: inherit; }
.sup-way-card:hover b { color: var(--text-link); }
.sup-way-card .sup-qa-icon { margin: 0; flex: none; }
.sup-way-card .sup-qa-icon.is-wa { background: var(--wa-soft); color: var(--wa-ink); }
.sup-way-card > span:nth-child(2) { flex: 1; min-width: 0; }
.sup-way-card b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--secondary-900); }
.sup-way-card small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--secondary-600); }
.sup-way-card > svg:last-child { width: 16px; height: 16px; color: var(--secondary-400); flex: none; }
@media (max-width: 1100px) { .sup-ways { grid-template-columns: 1fr; } }

/* ---------- What's new ---------- */
.wn-feed { display: flex; flex-direction: column; gap: 36px; margin-top: 8px; }
.wn-release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.wn-date { position: sticky; top: 84px; }
.wn-date time { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--secondary-900); padding-top: 22px; }
.wn-items { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.wn-item { padding: 22px 24px; }
.wn-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wn-area { font-size: 12.5px; color: var(--secondary-500); }
.wn-item h2 { font-size: 19px; margin: 0 0 6px; }
.wn-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--secondary-600); text-wrap: pretty; }
.wn-media { margin-top: 14px; aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; background: var(--secondary-50); }
.wn-media image-slot { display: block; width: 100%; height: 100%; }
.wn-end { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; font-size: 13px; color: var(--secondary-500); }
.wn-end svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .wn-release { grid-template-columns: 1fr; gap: 8px; } .wn-date { position: static; } .wn-date time { padding-top: 0; } }

/* ---------- Manager agent launcher (global) ---------- */
.agent-fab { position: fixed; right: 24px; bottom: 24px; z-index: 8000; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--surface-inverse); color: var(--text-inverse); font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.18); transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.agent-fab:hover { background: var(--primary-600); transform: translateY(-1px); }
.agent-fab:active { transform: scale(.97); }
.agent-fab svg { width: 18px; height: 18px; color: var(--verde); }
.agent-fab .kbd { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
body.agent-open .agent-fab { opacity: 0; pointer-events: none; }
body:has(.savebar:not([hidden])) .agent-fab, body:has(.savebar.is-open) .agent-fab { bottom: 96px; }
/* Room editor: its Save button can sit bottom right, where the launcher is. innohelp.js sets
   fab-lift only while that footer is in the launcher's corner. */
@media (min-width: 801px) { body.fab-lift .agent-fab { bottom: 96px; } }
.agent-box { position: fixed; inset: 0; z-index: 9500; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(0,0,0,.3); backdrop-filter: blur(6px); }
.agent-box.is-open { display: flex; }
.agent-panel { width: 100%; max-width: 680px; max-height: 80vh; display: flex; flex-direction: column; background: var(--surface-raised); border-radius: var(--radius-2xl); box-shadow: var(--shadow-modal); overflow: hidden; animation: menu-enter var(--duration-base) var(--ease-out); }
.agent-panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--secondary-100); }
.agent-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--secondary-900); }
.agent-brand svg { width: 18px; height: 18px; color: var(--text-link); }
.agent-ctx { margin-left: auto; font-size: 12.5px; color: var(--secondary-500); }
.agent-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--secondary-50); border-bottom: 1px solid var(--secondary-100); }
.agent-msg { max-width: 82%; font-size: 14px; line-height: 1.5; }
.agent-msg p { margin: 0; }
.agent-msg--me { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 6px 16px; background: var(--primary-600); color: var(--text-on-brand); }
.agent-msg--bot { align-self: flex-start; padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: var(--surface-card); color: var(--secondary-900); box-shadow: var(--shadow-xs); }
.agent-msg--bot:has(.agent-card-prop) { padding: 0; background: none; box-shadow: none; max-width: 100%; }
.agent-card-prop { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--surface-card); border: 1.5px solid var(--primary-200); box-shadow: var(--shadow-xs); }
.agent-card-prop > b { font-size: 14.5px; color: var(--secondary-900); }
.agent-card-prop > span { font-size: 13.5px; color: var(--secondary-600); }
.agent-card-prop .actions { margin-top: 6px; }
.agent-card-prop.is-done { border-color: #cfe8d8; } .agent-card-prop.is-cancelled { opacity: .6; }
.agent-card-prop .is-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .agent-card-prop .is-ok svg { width: 14px; height: 14px; }
.agent-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 12px 18px; }
.agent-input textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; font-size: 16px; line-height: 1.5; color: var(--secondary-900); padding: 8px 0; max-height: 140px; }
.agent-input textarea:focus { outline: none; }
.agent-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.agent-suggest button { padding: 6px 12px; border-radius: 999px; background: var(--secondary-50); font-size: 13px; font-weight: 500; color: var(--secondary-700); }
.agent-suggest button:hover { background: var(--primary-50); color: var(--text-link-hover); }
.agent-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--secondary-100); background: var(--secondary-50); font-size: 12px; color: var(--secondary-500); }
@media (max-width: 800px) { .agent-fab { bottom: 76px; right: 12px; } .agent-fab .kbd { display: none; } .agent-box { padding: 8px; } .agent-panel { max-height: calc(100dvh - 90px); } .agent-ctx { display: none; } }

/* booking engine: leaner design tab + settings sub-panels */
.brand-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.brand-row .logo-box { width: 112px; height: 52px; }
.brand-row .logo-slot .hint { font-size: 12px; }
.be-sub-body .sub-panel > .card-body { padding: 0; }
.be-sub-body .sub-panel > .card-foot { border-radius: var(--radius-lg); }
.be-preview-head .btn--icon.is-active { background: var(--primary-600); color: var(--text-on-brand); }
.ai-field > .btn--icon { margin-top: 2px; }

/* revenue: single insight line */
.rv-insight { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--primary-50); font-size: 14px; line-height: 1.5; color: var(--secondary-800); }
.rv-insight > svg { width: 18px; height: 18px; color: var(--text-link); flex: none; margin-top: 2px; }
.rv-insight .is-up { color: var(--ink-success); }
.statusbar-dismiss { width: 30px; height: 30px; margin: -4px -6px -4px 4px; color: var(--secondary-500); flex: none; }
.rc-group-acts .btn--icon.btn--sm { width: 32px; height: 32px; }

/* ---------- Shared feedback: confirm dialog, save state, toasts ---------- */
.drawer--confirm { z-index: 10000; }
.drawer--confirm .drawer-panel { width: min(480px, 100%); }
.drawer--confirm .drawer-body { gap: 14px; }
.drawer--confirm [data-confirm-body] { margin: 0; color: var(--secondary-700); line-height: 1.5; }
.drawer--confirm [data-confirm-status].is-error, .savebar [data-save-status].is-error { color: var(--ink-danger); font-weight: 600; }
.savebar--inline [data-save-status] { flex-basis: 100%; margin: 0; font-size: 12.5px; color: rgba(255,255,255,.78); }
.savebar--inline [data-save-status]:empty { display: none; }
.savebar--inline [data-save-status].is-error { color: #ffb4b4; }
.hint.is-saving { display: inline-flex; align-items: center; gap: 5px; color: var(--secondary-600); }
.hint.is-saving svg { width: 13px; height: 13px; }
.save-state { margin-left: 8px; }
.toast--warning::before { background: var(--ink-warning); }

/* One backdrop for every overlay: drawers, modals and native <dialog>. */
:root { --scrim: rgba(0,0,0,.3); --scrim-blur: blur(4px); }
dialog::backdrop { background: var(--scrim); backdrop-filter: var(--scrim-blur); }

/* Access and verification notices replace the page body: keep the standard
   page spacing on pages that are otherwise full-bleed (messages, rooms). */
body[data-app] .page.page--notice { flex: initial; height: auto; overflow: visible; padding: 28px; max-width: 1560px; width: 100%; margin: 0 auto; gap: 20px; }
body[data-page="messages"]:has(.page--notice), body[data-page="messages"]:has(.page--notice) .app, body[data-page="messages"]:has(.page--notice) .app-main { height: auto; overflow: visible; }

/* Email verification result line (verification notice and My profile). */
.verify-status { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; color: var(--secondary-600); }
.verify-status[hidden] { display: none; }
.verify-status svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.verify-status.is-ok { color: var(--ink-success); } .verify-status.is-fail { color: var(--ink-danger); }

/* Success toasts are solid green so a confirmation is hard to miss
   (white on --ink-success is about 4.9:1); the dot becomes a white check. */
.toast--success { background: var(--surface-success-strong); color: var(--text-on-brand); }
.toast--success::before { width: 5px; height: 10px; margin: -3px 3px 0 3px; border-radius: 0; background: none; border: solid var(--text-on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }


.drawer--stepup { z-index: 10001; }

/* ---------- Period picker (InnoUI.periodPicker): one field for a date range ---------- */
.period-wrap { position: relative; }
.period-field { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14.5px; text-align: left; color: var(--secondary-900); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); cursor: pointer; }
.period-field:hover { border-color: var(--secondary-300); }
.period-field:focus-visible, .period-field[aria-expanded="true"] { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100); }
.period-field svg { width: 16px; height: 16px; flex: none; color: var(--secondary-500); }
.period-field [data-period-text] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.period-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; padding: 12px 14px 14px; background: var(--surface-raised); border-radius: var(--radius-xl); box-shadow: var(--shadow-dropdown, 0 12px 32px rgba(15, 23, 42, .16)); }
.period-pop[hidden] { display: none; }
.period-nav { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.period-nav .btn { pointer-events: auto; }
.period-months { display: flex; gap: 24px; }
.period-month-name { padding: 6px 0 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--secondary-900); text-transform: capitalize; }
.period-grid { display: grid; grid-template-columns: repeat(7, 36px); row-gap: 2px; }
.period-wd { padding-bottom: 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--secondary-500); text-transform: uppercase; }
.period-day { height: 36px; padding: 0; font: inherit; font-size: 13px; color: var(--secondary-800); background: none; border: 0; border-radius: 0; cursor: pointer; font-variant-numeric: tabular-nums; }
.period-day:hover { background: var(--secondary-50); border-radius: var(--radius-md); }
.period-day:focus-visible { outline: 2px solid var(--primary-500); outline-offset: -2px; border-radius: var(--radius-md); }
.period-day.is-today { font-weight: 700; color: var(--text-link); }
.period-day.is-between { background: var(--primary-50); color: var(--text-link-hover); border-radius: 0; }
.period-day.is-start, .period-day.is-end { background: var(--primary-600); color: var(--text-on-brand); font-weight: 600; }
.period-day.is-start { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.period-day.is-end { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.period-day.is-start.is-single { border-radius: var(--radius-md); }
@media (max-width: 640px) { .period-grid { grid-template-columns: repeat(7, minmax(32px, 1fr)); } .period-pop { left: 0; right: 0; } }

/* Frame loading skeleton (InnoUI.frameLoading): stands in for the reservation drawer page while it loads. */
.frame-host { position: relative; }
.frame-host > iframe.is-loading { opacity: 0; }
.frame-skeleton { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface-raised); overflow: hidden; pointer-events: none; }
.frame-skeleton[hidden] { display: none; }
.frame-skeleton .sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--secondary-100) 0%, var(--secondary-50) 50%, var(--secondary-100) 100%); background-size: 200% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
.frame-skeleton .sk--title { width: 46%; height: 22px; }
.frame-skeleton .sk--sub { width: 64%; margin-top: -4px; }
.frame-skeleton .sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--secondary-100); border-bottom: 1px solid var(--secondary-100); }
.frame-skeleton .sk--stat { height: 30px; }
.frame-skeleton .sk-row--tabs { grid-template-columns: repeat(4, 72px); padding: 0 0 12px; border-top: 0; }
.frame-skeleton .sk--tab { height: 14px; }
.frame-skeleton .sk-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--secondary-100); border-radius: var(--radius-lg); }
.frame-skeleton .sk--head { width: 30%; height: 10px; margin-bottom: 4px; }
.frame-skeleton .sk--short { width: 55%; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .frame-skeleton .sk { animation: none; } }
