@charset "UTF-8";

/* Una interfaz tranquila, clara y cómoda también en el móvil. */
:root {
  --paper: #f7f6f2;
  --surface: #fff;
  --surface-soft: #fbfaf7;
  --ink: #30352f;
  --muted: #747a70;
  --line: #e8e9e2;
  --primary: #843d47;
  --primary-dark: #652d36;
  --primary-light: #f5e9e9;
  --sage: #eaf0e5;
  --sage-ink: #52684a;
  --sand: #f4ecd9;
  --amber: #996327;
  --radius: 18px;
  --shadow: 0 10px 30px #33382e05;
  --sidebar: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--primary); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
small { font-size: 12px; line-height: 1.45; }
strong { font-weight: 600; }
::selection { background: #e7d0d2; color: var(--primary-dark); }
:focus-visible { outline: 3px solid #a96d77; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px 18px; color: white; background: var(--primary); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell, .app-layout, .layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 32px 18px 22px; background: #fffefa; border-right: 1px solid var(--line); z-index: 20; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 12px 30px; color: var(--ink); text-decoration: none; }
.brand-mark, .logo-mark { width: 38px; height: 42px; display: grid; place-items: center; color: var(--primary); font-family: Georgia, "Songti SC", serif; font-size: 31px; line-height: 1; }
.brand-title, .brand strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.brand small, .brand-subtitle { display: block; margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav-label, .sidebar-label { padding: 12px 15px 8px; color: #8c9187; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.sidebar nav, .nav-list, .navigation { display: flex; flex-direction: column; gap: 5px; }
.nav-item, .nav-link, .sidebar nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #73796d; text-decoration: none; text-align: left; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover, .nav-link:hover, .sidebar nav button:hover { background: #f5f4ee; color: var(--ink); }
.nav-item.active, .nav-link.active, .sidebar nav button.active, .sidebar nav [aria-current="page"] { color: var(--primary); background: var(--primary-light); font-weight: 650; }
.nav-item svg, .nav-link svg, .sidebar nav button svg { width: 19px; height: 19px; opacity: .9; }
.nav-count { margin-left: auto; min-width: 23px; padding: 1px 6px; border-radius: 6px; background: #ebece5; font-size: 11px; }
.nav-item.active .nav-count { background: #e9cfd2; }
.sidebar-footer, .sidebar-bottom { margin-top: auto; padding: 24px 12px 0; }
.sidebar-note, .help-card { padding: 16px; border-radius: 12px; background: #f5f4ee; font-size: 12px; color: var(--muted); }
.sidebar-note strong, .help-card strong { display: block; margin-bottom: 5px; color: var(--ink); }
.sidebar-footer > small { display: block; margin-top: 18px; font-size: 11px; color: #92978d; }
.main, .main-content { min-width: 0; }
.topbar, .main-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 86px; padding: 20px 38px; border-bottom: 1px solid var(--line); background: #fdfcf9; }
.topbar-title, .breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb span { color: var(--ink); }
.topbar-left, .topbar-right, .topbar-actions { display: flex; gap: 14px; align-items: center; }
.lang-switch, .language-switch, .segmented { display: inline-flex; align-items: center; border: 1px solid #e4e5dc; background: #fff; border-radius: 9px; padding: 3px; gap: 2px; }
.lang-switch button, .language-switch button, .segmented button { min-height: 33px; min-width: 40px; padding: 5px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; }
.lang-switch button.active, .language-switch button.active, .segmented button.active, .segmented [aria-pressed="true"] { background: var(--primary-light); color: var(--primary); }
.avatar, .user-avatar { display: inline-flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: #eee9dc; color: #7c7159; font-size: 12px; font-weight: 600; }
.sync-status, .sync-indicator, .connection-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-dot, .sync-status::before, .sync-indicator::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: #91a384; flex-shrink: 0; }
.sync-status.error::before, .sync-status.offline::before { background: #c79f5f; }
.content, .page-content { max-width: 1530px; padding: 32px 38px 46px; margin: auto; }
.page-heading, .page-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 24px; }
.page-heading p, .page-header p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.eyebrow, .overline { display: block; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.muted, .text-muted, .subtle { color: var(--muted); }
.small { font-size: 12px; }
.text-right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.grow { flex: 1; }

.btn, button.primary, button.secondary, button.ghost, .button { min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dedfd6; border-radius: 9px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover, .button:hover, button.secondary:hover { background: #f8f8f3; border-color: #c9cbbf; }
.btn.primary, .btn-primary, button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 4px #843d4712; }
.btn.primary:hover, .btn-primary:hover, button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.ghost, button.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover, button.ghost:hover { background: #f3f3ed; color: var(--ink); }
.btn.danger, button.danger { color: #a04743; border-color: #eedbd8; background: #fffafa; }
.btn.small, .btn-sm { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.icon-btn, .icon-button { min-height: 42px; min-width: 42px; padding: 9px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 9px; }
.icon-btn:hover, .icon-button:hover { color: var(--primary); background: var(--primary-light); }
.actions, .button-row, .page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.text-btn, .text-link { padding: 6px 0; border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.text-btn:hover, .text-link:hover { text-decoration: underline; }
.btn svg, .button svg, .icon-btn svg { height: 17px; width: 17px; }

.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 185px; padding: 28px 34px; margin-bottom: 26px; overflow: hidden; border: 1px solid #eae6d9; border-radius: var(--radius); background: #efeee3; }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.hero .eyebrow { color: #87866e; margin-bottom: 12px; }
.hero h1, .hero h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; color: #474d3e; }
.hero p { max-width: 550px; margin-top: 11px; color: #7a7f6e; font-size: 14px; }
.hero .actions { margin-top: 20px; }
.hero-art { position: relative; display: grid; place-items: center; align-self: stretch; min-width: 190px; color: #a7ac94; font-family: Georgia, "Songti SC", serif; font-size: 115px; line-height: 1; opacity: .4; transform: rotate(-8deg); user-select: none; }
.hero-art::before { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid currentColor; border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; width: 203px; height: 203px; border: 1px solid currentColor; border-radius: 50%; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #d5d9c6; border-radius: 6px; background: #f9faf459; font-size: 10px; color: #777f68; }

.stats-grid, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card, .stat { min-width: 0; padding: 21px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.stat-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.stat-label, .stat-card > small { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #939b88; background: #f2f4ec; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-number, .stat-value, .stat-card > strong { display: block; margin-top: 14px; font-size: 31px; line-height: 1.1; font-weight: 550; letter-spacing: -.04em; color: #353d30; }
.stat-number span, .stat-value span { font-size: 16px; letter-spacing: 0; font-weight: 400; color: #a0a498; }
.stat-note, .stat-card > p { margin-top: 8px; font-size: 11px; color: #8a9082; }
.stat-note .good { color: #6f8861; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 22px; }
.dashboard-grid .wide { grid-column: 1 / -1; }
.panel, .card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header, .panel-head, .card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 25px 18px; }
.panel-header h2, .panel-head h2, .card-header h2 { font-size: 17px; }
.panel-header p, .panel-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.panel-body, .card-body { padding: 2px 25px 24px; }
.panel-footer, .card-footer { padding: 14px 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: #fdfdfa; }
.panel.padded, .card.padded { padding: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-title h2 { font-size: 19px; }
.section-title p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.badge, .tag, .pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; border-radius: 6px; background: #f0f1eb; color: #7a8170; font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.badge.green, .badge.success, .badge.sage, .tag.success, .pill.success, .status-ontime, .status-on_time { background: #edf3e8; color: #627e50; }
.badge.amber, .badge.warning, .tag.warning, .pill.warning, .status-delayed { background: #fbf1dc; color: #9a7434; }
.badge.red, .badge.danger, .tag.danger, .status-cancelled { background: #fae9e5; color: #a36353; }
.badge.blue, .status-early, .status-landed { background: #eaf0f4; color: #60839a; }
.badge.rose, .badge.primary { background: var(--primary-light); color: var(--primary); }
.badge.neutral, .badge.gray, .status-unknown, .status-unverified { background: #f0f1eb; color: #7f8774; }
.notice, .callout, .info-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 17px; margin-bottom: 20px; border: 1px solid #e5e8dc; border-radius: 11px; background: #f1f4eb; font-size: 13px; color: #6e7a60; }
.notice.warning, .callout.warning { background: #faf3e4; border-color: #f0e5ca; color: #8d763f; }
.notice p + p { margin-top: 6px; }
.notice svg, .callout svg { flex-shrink: 0; height: 18px; width: 18px; margin-top: 1px; }

.list, .activity-list { display: flex; flex-direction: column; }
.list-row, .activity-row, .arrival-row, .task-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #eeefe9; }
.list-row:last-child, .activity-row:last-child, .arrival-row:last-child, .task-row:last-child { border-bottom: 0; }
.list-row:first-child, .arrival-row:first-child { padding-top: 3px; }
.list-row p, .activity-row p, .arrival-row p { font-size: 13px; font-weight: 550; }
.list-row small, .activity-row small, .arrival-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.list-row .badge, .arrival-row .badge { margin-left: auto; }
.list-avatar, .guest-avatar { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #f2e9df; color: #9d8068; font-size: 11px; font-weight: 600; }
.list-avatar.sage, .guest-avatar.sage { background: #edf1e5; color: #839365; }
.time-block { min-width: 45px; color: var(--ink); font-size: 13px; font-weight: 600; }
.time-block small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.task-icon { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; border-radius: 8px; color: #ad8d52; background: #f8f0df; }
.task-row .grow strong { display: block; font-size: 12px; }
.task-row .grow small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.progress-bar, .progress { height: 5px; border-radius: 5px; background: #eff1e9; overflow: hidden; }
.progress-bar > span, .progress > span, .progress-bar > div, .progress > div { display: block; height: 100%; border-radius: inherit; background: #9da98c; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 35px 24px; text-align: center; color: var(--muted); }
.empty-state svg { height: 35px; width: 35px; color: #aeb7a4; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 7px; color: var(--ink); }
.empty-state p { max-width: 390px; font-size: 13px; }
.empty-state .btn { margin-top: 20px; }

.toolbar, .filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .search, .filters .search { flex: 1; min-width: 220px; }
.search, .search-field { position: relative; display: flex; align-items: center; }
.search > svg, .search-field > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: #9b9f92; pointer-events: none; }
.search input, .search-field input { padding-left: 41px; width: 100%; }
input, select, textarea { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #dedfd5; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #a0a598; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: #a9757d; outline-color: #b88991; }
select { cursor: pointer; padding-right: 26px; }
.toolbar > select, .filters > select { width: auto; min-width: 160px; }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; min-height: 19px; margin: 0; accent-color: var(--primary); cursor: pointer; }
input[type="color"] { padding: 5px; }
input[type="file"] { padding: 9px; background: var(--surface-soft); }
.table-wrap, .table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fbfcf8; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: #8b9180; }
td { padding: 16px 20px; border-bottom: 1px solid #eeefe9; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fdfdfa; }
td strong { display: block; font-size: 13px; font-weight: 550; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.guest-name, .person-cell { display: flex; align-items: center; gap: 10px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.table-actions .icon-btn { border-color: transparent; background: transparent; min-width: 38px; min-height: 38px; padding: 9px; }
.table-actions .icon-btn:hover { background: var(--primary-light); }
.guest-cards { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.flight-board { overflow: hidden; border: 1px solid #313a30; border-radius: var(--radius); color: #e5e9df; background: #273025; }
.flight-board .panel-header, .flight-board .panel-head, .flight-board-header { padding: 22px 25px; border-bottom: 1px solid #ffffff12; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flight-board h2 { color: #f3f3e8; font-size: 18px; }
.flight-board p, .flight-board small { color: #9fae95; }
.flight-board .eyebrow { color: #b1bc9f; }
.flight-board th { border-bottom-color: #ffffff12; background: #ffffff04; color: #8f9b84; }
.flight-board td { border-bottom-color: #ffffff10; color: #e0e6d9; }
.flight-board tbody tr:hover td { background: #ffffff05; }
.flight-board td small { color: #94a28a; }
.flight-board .badge { padding: 4px 8px; border: 1px solid #ffffff12; background: #414936; color: #c5d6a4; }
.flight-board .badge.warning, .flight-board .status-delayed { background: #5e512b; border-color: #7c6b34; color: #e8ce8a; }
.flight-board .badge.success, .flight-board .status-on_time, .flight-board .status-ontime { background: #3a4b32; color: #bfd5a7; }
.flight-board .badge.blue, .flight-board .status-early, .flight-board .status-landed { background: #354749; color: #b3d5d7; }
.flight-board .badge.neutral, .flight-board .status-unverified, .flight-board .status-unknown { background: #3c4437; color: #aeba9e; }
.flight-board .panel-footer, .flight-board-footer { padding: 14px 25px; background: #1d251b33; border-top-color: #ffffff10; color: #9ca88d; font-size: 11px; }
.flight-code, .flight-time, .board-time { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 550; letter-spacing: .03em; }
.flight-board .btn.ghost { color: #dbe5cf; }
.flight-board .btn.ghost:hover { background: #ffffff10; }
.flights-summary { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.flight-card { padding: 20px; border-top: 1px solid #ffffff12; }
.flight-card-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.flight-route { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.flight-passengers { margin-top: 15px; font-size: 12px; color: #b7c1aa; }

.hotel-grid, .hotels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hotel-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.hotel-visual, .hotel-cover { position: relative; min-height: 135px; display: flex; align-items: flex-end; padding: 22px 25px; background: #e6ebdf; color: #647451; overflow: hidden; }
.hotel-visual::after, .hotel-cover::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid #94a67c44; transform: rotate(45deg); right: 26px; top: 32px; border-radius: 16px; }
.hotel-card:nth-child(2) .hotel-visual, .hotel-card:nth-child(2) .hotel-cover { background: #eee4dc; color: #9b7a61; }
.hotel-card:nth-child(2) .hotel-visual::after, .hotel-card:nth-child(2) .hotel-cover::after { border-color: #b99a8055; }
.hotel-body { padding: 23px 25px; }
.hotel-body h3 { font-size: 19px; }
.hotel-body > p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.hotel-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 21px 0; gap: 15px; }
.hotel-stats strong { display: block; font-size: 24px; font-weight: 550; line-height: 1.2; color: #5f6b52; }
.hotel-stats small { display: block; font-size: 10px; margin-top: 5px; color: var(--muted); }
.room-list { margin-top: 20px; border-top: 1px solid var(--line); }
.room-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eeefe9; font-size: 12px; }
.room-row:last-child { border-bottom: 0; }
.room-row strong { font-size: 12px; }
.room-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.hotel-mini { margin-bottom: 18px; }
.hotel-mini:last-child { margin-bottom: 0; }
.hotel-mini-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.hotel-mini .progress { height: 6px; }
.hotel-mini p { margin-top: 7px; font-size: 10px; color: var(--muted); }

.transport-grid, .pickup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trip-card, .pickup-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.trip-header, .trip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.trip-header h3 { margin-bottom: 5px; }
.trip-meta, .trip-route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.trip-guests { margin: 17px 0; padding: 0; list-style: none; }
.trip-guests li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.trip-guests li:last-child { border-bottom: 0; }

.seating-layout, .seating-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.seating-toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.floorplan { position: relative; width: 100%; height: 580px; overflow: hidden; background-color: #fafaf6; background-image: radial-gradient(#ccd2c3 1px, transparent 1px); background-size: 22px 22px; touch-action: pan-x pan-y; }
.floor-label { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 6px 24px; border: 1px solid #dfe3d5; border-radius: 5px; color: #94a084; background: #f6f8f0; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.seat-table { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border: 2px solid #c7d1bb; border-radius: 50%; background: #edf1e5; color: #738363; box-shadow: 0 3px 7px #66745008; cursor: grab; user-select: none; touch-action: none; transition: box-shadow .16s, border-color .16s, background .16s; }
.seat-table:hover { border-color: #94a97e; box-shadow: 0 0 0 6px #dce5cf66; }
.seat-table.selected, .seat-table[aria-pressed="true"] { border-color: #a66d77; background: #f6e9e9; color: var(--primary); box-shadow: 0 0 0 6px #eedbde77; }
.seat-table.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 10px 18px #59664c22; }
.seat-table.rect, .seat-table.rectangle, .seat-table.long { width: 156px; height: 80px; border-radius: 13px; }
.seat-table.square { border-radius: 13px; }
.seat-table strong { font-size: 13px; line-height: 1.3; }
.seat-table small { display: block; margin-top: 5px; font-size: 10px; }
.seat-table .table-number { font-size: 24px; font-family: Georgia, serif; line-height: 1; }
.seat-table::before { content: ""; position: absolute; inset: -10px; border: 5px dotted #cfd7c3; border-radius: inherit; pointer-events: none; opacity: .9; }
.seat-table.selected::before { border-color: #d6b2b8; }
.seat-table .chair { position: absolute; width: 14px; height: 14px; border-radius: 5px; border: 1px solid #c7d2b9; background: #e5ecda; }
.seating-sidebar { display: flex; flex-direction: column; gap: 18px; }
.seating-sidebar .panel-body { padding: 0 20px 20px; }
.seating-sidebar .panel-header { padding: 20px; }
.unassigned-list { display: flex; flex-direction: column; gap: 8px; }
.unassigned-guest, .seat-guest { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #eceee5; border-radius: 9px; font-size: 12px; background: #fff; }
.unassigned-guest small, .seat-guest small { display: block; color: var(--muted); font-size: 10px; }
.table-detail { padding: 20px; }
.table-detail h3 { margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a8b797; }

.import-zone, .drop-zone { padding: 40px 24px; text-align: center; border: 1.5px dashed #cbd2bd; border-radius: 13px; background: #fafbf7; }
.import-zone > svg, .drop-zone > svg { width: 37px; height: 37px; color: #9dac8b; margin-bottom: 15px; }
.import-zone h3, .drop-zone h3 { margin-bottom: 8px; }
.import-zone p, .drop-zone p { max-width: 470px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; }
.import-zone input { display: block; max-width: 420px; margin: auto; text-align: left; }
.mapping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 22px; }
.settings-section + .settings-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.settings-section h3 { margin-bottom: 8px; }
.settings-section p { margin-bottom: 17px; font-size: 13px; color: var(--muted); }
code { padding: 2px 5px; border-radius: 5px; background: #f0f1eb; font-size: .88em; }

dialog { width: min(800px, calc(100vw - 40px)); max-height: calc(100dvh - 60px); margin: auto; padding: 0; border: 1px solid #e7e6dc; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 100px #26302033; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #26302065; backdrop-filter: blur(4px); }
.modal-header, .dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2, .dialog-header h2 { font-size: 22px; }
.modal-header p, .dialog-header p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.modal-body, .dialog-body { padding: 25px 28px; }
.modal-footer, .dialog-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field.full, .field.fullwidth, .field.wide, .form-grid > .full, .form-grid > .fullwidth, .form-grid > .wide { grid-column: 1 / -1; }
.field > label, label.field > span:first-child, .field-label { font-size: 12px; font-weight: 600; color: #606956; }
.field small, .field-hint { font-size: 11px; color: var(--muted); }
.form-section, .form-section-title { grid-column: 1 / -1; margin-top: 10px; padding-top: 19px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3, .form-section-title { font-size: 14px; color: #68775a; }
.check-field, .checkbox-field, .check-row { display: flex; align-items: center; gap: 11px; min-height: 44px; font-size: 13px; cursor: pointer; }
.check-field input, .checkbox-field input, .check-row input { flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 20px; }
.form-error { padding: 12px 15px; border: 1px solid #e9cbc7; border-radius: 9px; background: #fbefed; color: #a35c55; font-size: 13px; }
.danger-zone { padding: 16px; border: 1px solid #eadbd5; border-radius: 10px; background: #fffaf8; }
.danger-zone p { color: #9c7669; font-size: 12px; }
#toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar) / 2); z-index: 250; max-width: min(450px, calc(100vw - 32px)); padding: 13px 20px; border: 1px solid #e1e5d7; border-radius: 11px; background: #374632; color: #f2f4ec; box-shadow: 0 6px 25px #27392225; font-size: 13px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
#toast.show, #toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Application-specific components. */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.brand > span:last-child { font-family: Georgia, "Songti SC", serif; font-size: 23px; line-height: 1.1; letter-spacing: -.03em; }
.brand > span:last-child small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .14em; }
.nav-caption { padding: 7px 14px 14px; color: #9da08e; font-size: 8px; font-weight: 600; letter-spacing: .12em; }
.sidebar-footer { text-align: center; padding: 26px 8px 5px; color: #9c9f90; }
.sidebar-footer .tiny-heart { display: block; font-size: 22px; color: #ad7f84; margin-bottom: 10px; }
.sidebar-footer p { font-size: 11px; line-height: 1.7; }
.sidebar-footer strong { display: block; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); color: #8d9580; font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #93998b; }
.breadcrumbs > span { color: #b8beb0; }
.breadcrumbs > strong { font-weight: 500; color: #656e5c; }
.profile-avatar { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 50%; background: #eee8dc; color: #927c6e; font-size: 19px; }
.sync-status::before { background: #b6aa8f; }
.sync-status.online::before { background: #90a77d; }
.sync-status i { display: none; }
.page-heading .eyebrow { margin-bottom: 8px; color: #999e8e; font-size: 8px; letter-spacing: .16em; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding: 8px 13px; border: 1px solid #e6e3d4; border-radius: 8px; background: #f4f1e7; color: #98917b; font-size: 10px; }
.demo-banner > span { display: flex; align-items: center; gap: 8px; }
.demo-banner .icon { width: 14px; height: 14px; }
.demo-banner .btn { min-height: 26px; padding: 3px 0; font-size: 10px; white-space: nowrap; }
.btn.text { border: 0; box-shadow: none; background: transparent; min-height: 36px; padding: 7px 0; color: var(--primary); font-size: 11px; }
.btn.text:hover { background: transparent; color: var(--primary-dark); text-decoration: underline; }
.btn.text .icon { width: 14px; height: 14px; }
.hero-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 21px; color: #737c64; font-size: 11px; }
.hero-date .icon { width: 14px; height: 14px; }
.hero-date > span { padding-left: 10px; margin-left: 3px; border-left: 1px solid #c9cebc; color: #929883; font-size: 10px; }
.hero-art { min-width: 210px; transform: none; }
.hero-art > span { position: relative; z-index: 1; transform: rotate(-6deg); }
.hero-art > small { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 7px; letter-spacing: .22em; white-space: nowrap; }
.hero-art::before, .hero-art::after { border-radius: 45% 55% 48% 52%; }
.hero-art::before { transform: rotate(25deg); }
.hero-art::after { transform: rotate(-20deg); }
.stat-top > span { color: #7c8372; font-size: 11px; font-weight: 500; }
.stat-top > .icon { width: 18px; height: 18px; color: #a9b19a; }
.stat-card > small { display: block; margin-top: 7px; font-size: 10px; color: #9ba18f; }
.panel-header .eyebrow { margin-bottom: 6px; color: #9da58e; font-size: 8px; letter-spacing: .13em; }
.arrival-list { padding: 0 25px 8px; }
.arrival-row { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #eeefe9; padding: 18px 0; }
.arrival-row:hover { background: #fdfdf9; }
.arrival-row:first-child { padding-top: 10px; }
.arrival-row .avatar { width: 31px; height: 31px; font-size: 10px; background: #f1e9e1; color: #a08976; }
.arrival-row:nth-child(2n) .avatar { background: #ecf0e5; color: #8a9776; }
.arrival-day { min-width: 37px; padding-right: 13px; margin-right: 1px; border-right: 1px solid var(--line); text-align: center; }
.arrival-day > strong { display: block; color: #7c876c; font-size: 19px; line-height: 1.1; font-weight: 500; }
.arrival-day > small { color: #a4ab96; text-transform: uppercase; font-size: 8px; line-height: 1.1; margin-top: 5px; }
.row-person { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 110px; }
.guest-identity { display: block; }
.guest-identity > strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.3; }
.guest-identity > small { display: block; margin-top: 4px; font-size: 10px; color: #9ba28e; }
.arrival-route { min-width: 74px; }
.arrival-route > strong { display: block; font-size: 11px; font-weight: 550; }
.arrival-route > small { max-width: 100px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrival-hour { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 12px; font-weight: 550; }
.arrival-hour .badge { font-size: 8px; padding: 3px 5px; }
.soft-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #a8b395; background: #f3f5ed; border-radius: 50%; }
.soft-icon .icon { width: 16px; height: 16px; }
.checklist-panel .task-row { display: flex; width: calc(100% - 50px); margin: 0 25px; padding: 15px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #eeefe9; }
.checklist-panel .task-row:hover { background: #fcfdf8; }
.task-row > span:nth-child(2) { flex: 1; }
.task-row strong { display: block; font-size: 11px; font-weight: 550; }
.task-row small { display: block; margin-top: 5px; color: #9da58e; font-size: 9px; }
.task-row > .icon { width: 14px; height: 14px; color: #adb69d; }
.task-dot { height: 7px; width: 7px; border-radius: 50%; flex-shrink: 0; background: #b3947b; }
.task-dot.sage { background: #9fb085; }
.task-dot.gold { background: #d1bb7d; }
.diet-note { display: flex; align-items: center; gap: 10px; margin: 17px 20px 20px; padding: 13px 12px; border-radius: 8px; background: #faf5ef; color: #a78872; }
.diet-note > .icon { width: 16px; height: 16px; }
.diet-note > span { flex: 1; }
.diet-note strong { display: block; font-size: 10px; font-weight: 550; }
.diet-note small { display: block; margin-top: 3px; font-size: 8px; color: #b3a08a; }
.diet-note .btn { color: #a78872; font-size: 10px; }
.hotel-summary-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 3px 25px 24px; gap: 24px; }
.hotel-summary { display: flex; align-items: center; gap: 15px; padding: 19px 20px; border: 1px solid #eeefe6; border-radius: 12px; background: #fdfdfa; }
.hotel-summary > div { flex: 1; }
.hotel-summary h3 { font-size: 14px; }
.hotel-summary p { margin-top: 6px; font-size: 10px; color: #949d86; }
.hotel-summary > .icon { color: #b2bca3; width: 24px; height: 24px; }
.hotel-monogram { flex-shrink: 0; width: 45px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #eaf0e2; color: #8c9f70; font-family: Georgia, serif; font-size: 17px; }
.hotel-monogram.rose { background: #f1e6e1; color: #b2937f; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; max-width: 1530px; padding: 0 38px 23px; margin: auto; color: #acb19f; font-size: 9px; }
.app-footer > span { font-size: 8px; letter-spacing: .1em; }
.panel > .toolbar { margin: 0; padding: 22px 24px 13px; }
.search-box { position: relative; display: flex; align-items: center; flex: 1; max-width: 410px; }
.search-box > .icon { position: absolute; left: 13px; width: 16px; height: 16px; color: #a1a991; }
.search-box input { padding-left: 38px; border-color: #e6e9df; font-size: 13px; background: #fcfdf9; }
.filter-tabs { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.panel > .filter-tabs { padding: 2px 24px 16px; }
.filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid #e9ece0; border-radius: 7px; background: #fff; color: #929b83; font-size: 11px; }
.filter-chip:hover { background: #f7f8f1; }
.filter-chip.active { color: #84616a; background: #f7eded; border-color: #e8cfd3; font-weight: 600; }
.result-count { padding: 0 24px 13px; font-size: 10px; color: #9ca68d; }
.badge-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.badge.clay { background: #f7ede5; color: #a48971; }
.info-strip { display: flex; align-items: flex-start; gap: 9px; padding: 14px 17px; margin-bottom: 20px; border-radius: 10px; background: #ebefe4; color: #879476; font-size: 12px; }
.info-strip > .icon { width: 17px; height: 17px; margin-top: 1px; }
.board-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 26px; border-bottom: 1px solid #ffffff15; }
.board-header > div { display: flex; align-items: center; gap: 12px; }
.board-header > div > .icon { width: 22px; height: 22px; color: #b3bf9b; }
.board-header h2 { font-weight: 500; font-size: 21px; }
.board-header h2 span { margin-left: 12px; font-size: 9px; color: #879579; letter-spacing: .17em; }
.board-header > span { display: flex; align-items: center; gap: 10px; color: #b5c2a2; font-size: 10px; letter-spacing: .14em; }
.board-dot { width: 6px; height: 6px; border-radius: 50%; background: #beca9d; }
.board-name { min-height: 32px; padding: 4px 0; background: transparent; border: 0; color: #e4eadb; text-align: left; font-size: 13px; font-weight: 500; }
.board-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.board-footer { display: flex; gap: 9px; align-items: center; padding: 16px 24px; font-size: 10px; color: #9eac8c; background: #1d251b55; }
.board-footer > .icon { width: 13px; height: 13px; }
.fine-print { margin: 15px 2px 0; color: #a0a88f; font-size: 10px; line-height: 1.65; }
.toggle-row { position: relative; display: flex; align-items: center; gap: 15px; min-height: 62px; padding: 13px 15px; background: #f8faf4; border: 1px solid #e8ecdf; border-radius: 10px; cursor: pointer; }
.toggle-row > span:first-child { flex: 1; }
.toggle-row strong { display: block; font-size: 12px; font-weight: 550; }
.toggle-row small { display: block; color: #9ba68d; margin-top: 3px; font-size: 10px; }
.toggle-row input { position: absolute; right: 18px; width: 36px; height: 25px; opacity: 0; }
.toggle-track { position: relative; width: 35px; height: 21px; border: 1px solid #d3dac7; border-radius: 20px; background: #dce1d3; flex-shrink: 0; }
.toggle-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #46563725; transition: transform .15s; }
.toggle-row input:checked + .toggle-track { background: var(--primary); border-color: var(--primary); }
.toggle-row input:checked + .toggle-track::after { transform: translateX(14px); }
.toggle-row input:focus-visible + .toggle-track { outline: 3px solid #b88991; outline-offset: 3px; }
.content > .panel + .panel, .content > .hotel-detail-grid + .panel { margin-top: 22px; }
.stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-help { margin: 0; padding: 0 25px 20px; color: #939e85; font-size: 12px; line-height: 1.6; }
.trip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0 25px 24px; }
.trip-grid > .section-help { grid-column: 1 / -1; padding: 0; }
.trip-card { padding: 20px; border-radius: 12px; background: #fdfefa; border-color: #e5eadd; }
.trip-card.confirmed { background: #fbfcf7; }
.trip-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.trip-card-top > .icon { color: #a2b18b; }
.trip-card h3 { font-size: 16px; margin-bottom: 7px; }
.trip-card > p { margin-top: 5px; color: #929d83; font-size: 11px; }
.trip-people { display: flex; flex-wrap: wrap; gap: 5px; padding: 16px 0; }
.trip-people > span { padding: 4px 7px; border-radius: 4px; font-size: 10px; background: #edf1e6; color: #85956f; }
.trip-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 12px; border-top: 1px solid #e8edde; }
.trip-card-bottom > strong { font-size: 10px; color: #91a07d; }
.trip-card-bottom > .btn.secondary { font-size: 10px; padding: 7px 9px; min-height: 37px; }
.warning-strip { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 14px 25px; border-top: 1px solid #f0e4c9; background: #fcf7ea; color: #ad9867; font-size: 11px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 25px 24px; }
.pill-list > .section-help { padding: 0; }
.person-pill { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 42px; padding: 9px 12px; border: 1px solid #e6eadd; border-radius: 8px; background: #fcfdf8; color: #7a886b; font-size: 12px; text-align: left; }
.person-pill small { font-size: 9px; color: #a2ac94; }
.person-pill:hover { border-color: #bccea6; background: #f3f6ec; }
.hotel-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hotel-detail .hotel-cover { min-height: 130px; display: flex; gap: 13px; align-items: center; padding: 24px; background: #e9eede; }
.hotel-detail .hotel-cover > .hotel-monogram { width: 55px; height: 60px; font-size: 21px; background: #f4f7ec; color: #94a77a; }
.hotel-detail .hotel-cover > span { font-size: 8px; letter-spacing: .12em; color: #91a17c; }
.hotel-detail .hotel-cover > .icon { margin-left: auto; color: #b4c19d; width: 42px; height: 42px; }
.hotel-detail .hotel-cover.rose { background: #f0e6dd; }
.hotel-detail .hotel-cover.rose > .hotel-monogram { background: #faf3ed; color: #b69a82; }
.hotel-detail .hotel-cover.rose > span, .hotel-detail .hotel-cover.rose > .icon { color: #b39a83; }
.hotel-detail-body { padding: 24px; }
.hotel-detail-body h2 { font-size: 23px; font-weight: 500; }
.hotel-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.hotel-numbers > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.hotel-numbers strong { display: block; color: #7d8f68; font-size: 27px; line-height: 1.2; font-weight: 500; }
.hotel-numbers small { display: block; margin-top: 4px; font-size: 9px; color: #9da78f; }
.room-list { border-top: 0; margin-top: 0; }
.room-card { margin-bottom: 13px; border: 1px solid #e8edde; border-radius: 9px; overflow: hidden; }
.room-card > div { display: flex; align-items: center; gap: 7px; padding: 12px; background: #f7f9f1; }
.room-card > div strong { color: #869675; font-size: 11px; }
.room-card > div > span:last-child { margin-left: auto; color: #a3ad93; font-size: 8px; }
.room-icon .icon { width: 14px; height: 14px; color: #a2af90; }
.room-card > button { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; width: 100%; padding: 13px; border: 0; border-top: 1px solid #edf0e5; background: #fff; text-align: left; color: #7c8970; font-size: 11px; }
.room-card > button:hover { background: #fdfefa; }
.room-card > button > small { grid-row: 2; grid-column: 1; color: #9eaa8e; font-size: 9px; }
.room-card > button > .icon { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 15px; height: 15px; color: #bbc6ac; }
.pending-room { display: flex; gap: 12px; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid #ecefe4; color: #869176; background: #fff; font-size: 12px; text-align: left; }
.hotel-detail-body > .section-help { padding: 0; }
.floorplan-panel > .panel-header > span { color: #9da78e; font-size: 10px; }
.seat-table { transform: translate(-50%, -50%); }
.seat-table > span { font-size: 12px; font-weight: 500; }
.seat-table::before { display: none; }
.seat-table .chair.c1 { top: -16px; left: 35%; }
.seat-table .chair.c2 { top: -6px; right: -6px; transform: rotate(45deg); }
.seat-table .chair.c3 { bottom: 8px; right: -13px; transform: rotate(-45deg); }
.seat-table .chair.c4 { bottom: -15px; left: 42%; }
.seat-table .chair.c5 { bottom: 5px; left: -13px; transform: rotate(45deg); }
.seat-table .chair.c6 { top: -5px; left: -6px; transform: rotate(-45deg); }
.seat-table.rect .chair.c1 { top: -15px; left: 25%; }
.seat-table.rect .chair.c2 { top: -15px; right: 25%; transform: none; }
.seat-table.rect .chair.c3 { right: -15px; top: 40%; transform: none; }
.seat-table.rect .chair.c4 { bottom: -15px; left: 25%; }
.seat-table.rect .chair.c5 { bottom: -15px; left: auto; right: 25%; transform: none; }
.seat-table.rect .chair.c6 { left: -15px; top: 40%; transform: none; }
.seat-table.selected .chair { background: #efdadf; border-color: #dbb4bf; }
.seat-table.over-capacity { background: #fbe9dd; border-color: #c99468; }
.stage { position: absolute; top: 23px; left: 22%; right: 22%; height: 39px; display: grid; place-items: center; border: 1px solid #e1e6d5; border-radius: 7px 7px 16px 16px; background: #eef2e5; color: #a3af91; font-size: 8px; letter-spacing: .14em; }
.entrance { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #a3ae93; font-size: 9px; letter-spacing: .12em; }
.floorplan-legend { display: flex; align-items: center; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); color: #9ba88b; font-size: 9px; }
.floorplan-legend > span { display: flex; align-items: center; gap: 5px; }
.floorplan-legend > .btn { margin-left: auto; font-size: 9px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c5d2b5; }
.legend-dot.selected { background: #bb8e97; }
.panel.seating-sidebar { display: flex; flex-direction: column; gap: 0; }
.seat-hint { padding: 29px 23px; text-align: center; }
.seat-hint > .icon { width: 33px; height: 33px; color: #afbf9a; margin-bottom: 15px; }
.seat-hint h2 { font-size: 17px; margin-bottom: 9px; }
.seat-hint p { color: #a1ab92; font-size: 11px; line-height: 1.6; }
.unassigned { padding: 20px; border-top: 1px solid var(--line); }
.unassigned h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.unassigned h3 > span { color: #a1ae8d; font-size: 11px; }
.unassigned-person { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; padding: 13px 0; border: 0; border-top: 1px solid #eef1e6; background: #fff; color: #8b9a78; text-align: left; font-size: 11px; }
.unassigned-person small { display: block; margin-top: 4px; color: #b09b77; font-size: 9px; }
.unassigned-person .icon { width: 15px; height: 15px; }
.unassigned-person:disabled { opacity: .7; }
.unassigned-person:not(:disabled):hover { color: var(--primary); }
.unassigned > p { color: #9caa89; font-size: 11px; }
.move-controls { display: flex; gap: 6px; padding: 0 20px 20px; }
.move-controls .btn { min-width: 42px; padding: 8px; flex: 1; font-size: 16px; }
.seating-sidebar > h3 { padding: 0 20px 14px; font-size: 12px; }
.seated-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 20px; padding: 8px 0; border-top: 1px solid #eef0e7; }
.seated-person strong { display: block; font-size: 11px; }
.seated-person .icon-button { min-height: 30px; min-width: 30px; padding: 5px; border: 0; }
.seated-person .icon { width: 12px; height: 12px; }
.diet-text { display: block; font-size: 9px; color: #b39a71; margin-top: 3px; }
form > .form-grid, .settings-fields > .form-grid { padding: 0 25px 25px; }
dialog form > .form-grid { padding: 24px 28px; }
form > .field, .settings-fields > .field { margin: 0 25px 18px; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 25px; border-top: 1px solid var(--line); background: #fdfefa; }
.form-footer .btn.danger { margin-right: auto; }
dialog .form-footer { position: sticky; bottom: 0; z-index: 3; background: #fff; }
.settings-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 25px 25px; }
.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; margin: 0 25px; border-bottom: 1px solid #edf0e5; font-size: 12px; color: #879777; }
.settings-grid .fine-print { padding: 0 25px 23px; }
.modal-body .form-section { margin: 22px 0 0; padding-top: 23px; }
.modal-body .form-section:first-child { margin-top: 0; padding-top: 0; }
.form-section > h3 { margin-bottom: 17px; color: #a4af92; font-size: 12px; }
.form-section > h3 > span { margin-left: 11px; color: #637756; font-size: 15px; }
.modal-body .section-help { padding: 0 0 17px; font-size: 12px; }
.form-section > .toggle-row { margin-top: 12px; }
.form-section > h3 + .toggle-row { margin-top: 0; }
#hotel-fields { margin-top: 18px; }
.night-count { padding: 10px 13px; border-radius: 8px; background: #eff5e8; color: #7c9266; font-size: 12px; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin-top: 17px; }
.modal-body > h3 { margin-top: 24px; margin-bottom: 9px; font-size: 15px; }
.modal-footer { justify-content: space-between; }
.modal-footer > div { display: flex; gap: 9px; }
.btn.danger-text { color: #aa6d64; border-color: transparent; background: transparent; box-shadow: none; }
.btn.danger-text:hover { background: #fdf0ed; }
.passenger-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.passenger-option { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e5ebdc; border-radius: 8px; background: #fbfdf7; cursor: pointer; }
.passenger-option strong { display: block; font-size: 13px; }
.passenger-option small { display: block; margin-top: 4px; font-size: 10px; color: #9aa98a; }
.passenger-option input { flex-shrink: 0; }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 20px; border: 1.5px dashed #c5d2b6; border-radius: 12px; background: #fafcf6; text-align: center; cursor: pointer; }
.upload-zone > .icon { width: 32px; height: 32px; color: #a6b894; margin-bottom: 5px; }
.upload-zone strong { font-size: 16px; color: #7c9067; }
.upload-zone > span { font-size: 11px; color: #a0af8f; }
.upload-zone > input { max-width: 390px; margin-top: 12px; }
.import-summary { padding: 16px; margin: 20px 0; border-radius: 10px; background: #f1f5e9; color: #82966c; font-size: 13px; }
.import-result { margin-top: 20px; }
.import-result > h3 { margin-bottom: 12px; }
.mapping-grid { margin: 18px 0; }
.mapping-grid .field { padding: 0; margin: 0; }

@media (min-width: 1600px) {
  .content, .page-content { padding-top: 38px; }
  .hero { min-height: 200px; }
}

@media (max-width: 1100px) {
  :root { --sidebar: 210px; }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .brand { padding-left: 9px; padding-right: 9px; }
  .brand-title, .brand strong { font-size: 21px; }
  .content, .page-content { padding: 26px 25px 35px; }
  .topbar, .main-topbar { padding-left: 25px; padding-right: 25px; }
  .stats-grid, .stats { gap: 12px; }
  .stat-card, .stat { padding: 17px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(265px, 1fr); gap: 18px; }
  .panel-header, .panel-head, .card-header { padding: 20px; }
  .panel-body, .card-body { padding: 0 20px 20px; }
  .hero { padding: 26px; }
  .hero-art { min-width: 130px; font-size: 90px; }
  .hero-art::before { width: 140px; height: 140px; }
  .hero-art::after { width: 160px; height: 160px; }
  .seating-layout, .seating-grid { grid-template-columns: minmax(0, 1fr); }
  .seating-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  th, td { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  :root { --sidebar: 190px; }
  .nav-item, .nav-link, .sidebar nav button { gap: 9px; font-size: 13px; padding-left: 11px; padding-right: 11px; }
  .brand-title, .brand strong { font-size: 19px; }
  .brand small { font-size: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotel-grid, .hotels-grid, .transport-grid, .pickup-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .page-heading, .page-header { align-items: flex-start; }
  .topbar .sync-status, .topbar .sync-indicator { font-size: 10px; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  body { font-size: 15px; }
  .app-shell, .app-layout, .layout { display: block; }
  .sidebar { position: sticky; top: 0; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid #e6e7de; background: #fffefa; z-index: 30; }
  .brand { gap: 8px; padding: 14px 20px 10px; }
  .brand-mark, .logo-mark { height: 29px; width: 29px; font-size: 27px; }
  .brand-title, .brand strong { font-size: 21px; }
  .brand small, .brand-subtitle { display: none; }
  .sidebar nav, .nav-list, .navigation { flex-direction: row; gap: 5px; padding: 5px 15px 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .sidebar nav::-webkit-scrollbar, .nav-list::-webkit-scrollbar { display: none; }
  .nav-item, .nav-link, .sidebar nav button { flex: 0 0 auto; min-height: 43px; width: auto; padding: 10px 13px; gap: 7px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
  .nav-item svg, .nav-link svg, .sidebar nav button svg { width: 16px; height: 16px; }
  .nav-count, .nav-label, .sidebar-label, .sidebar-footer, .sidebar-bottom { display: none; }
  .topbar, .main-topbar { min-height: 65px; gap: 10px; padding: 13px 20px; background: var(--paper); border-bottom: 0; }
  .topbar-title, .breadcrumb { font-size: 12px; }
  .topbar-left, .topbar-right, .topbar-actions { gap: 9px; }
  .topbar .avatar, .topbar .user-avatar { display: none; }
  .sync-status, .sync-indicator, .connection-status { font-size: 10px; gap: 5px; }
  .lang-switch, .language-switch { padding: 2px; }
  .lang-switch button, .language-switch button { min-height: 35px; padding: 5px 8px; }
  .content, .page-content { padding: 9px 20px 35px; }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  .page-heading, .page-header { align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
  .page-heading p, .page-header p { font-size: 13px; max-width: 430px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .btn, button.primary, button.secondary, button.ghost, .button { min-height: 45px; font-size: 13px; padding: 10px 14px; }
  .hero { min-height: 185px; margin-bottom: 20px; padding: 24px; border-radius: 15px; }
  .hero h1, .hero h2 { font-size: 33px; max-width: 340px; }
  .hero p { font-size: 13px; max-width: 360px; }
  .hero .eyebrow { margin-bottom: 10px; font-size: 9px; }
  .hero-art { position: absolute; right: -42px; top: 18px; width: 160px; height: 160px; opacity: .14; font-size: 110px; }
  .hero-copy { width: 100%; }
  .stats-grid, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
  .stat-card, .stat { padding: 17px; border-radius: 12px; }
  .stat-label, .stat-card > small { font-size: 11px; }
  .stat-number, .stat-value, .stat-card > strong { font-size: 29px; margin-top: 12px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-icon svg { height: 15px; width: 15px; }
  .stat-note, .stat-card > p { font-size: 10px; margin-top: 7px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-grid .wide { grid-column: auto; }
  .panel, .card { border-radius: 14px; }
  .panel-header, .panel-head, .card-header { gap: 10px; padding: 20px 19px 17px; }
  .panel-header h2, .panel-head h2 { font-size: 17px; }
  .panel-body, .card-body { padding: 0 19px 20px; }
  .panel-footer, .card-footer { padding: 13px 19px; }
  .section-title { margin-bottom: 15px; }
  .section-title h2 { font-size: 18px; }
  .list-row, .activity-row, .arrival-row, .task-row { padding: 14px 0; }
  .list-row p, .arrival-row p { font-size: 13px; }
  .list-row small, .arrival-row small { font-size: 11px; }
  .toolbar, .filters { gap: 10px; margin-bottom: 17px; }
  .toolbar .search, .filters .search { min-width: 100%; }
  .toolbar > select, .filters > select { flex: 1; min-width: 130px; width: 0; }
  .toolbar > .btn { flex: 1; }
  .guest-cards { display: grid; gap: 12px; }
  .guest-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .guest-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .guest-card h3 { font-size: 16px; }
  .guest-card small { color: var(--muted); }
  .guest-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .guest-card-details > div > small { display: block; font-size: 10px; margin-bottom: 3px; }
  .guest-card-details > div > strong { font-size: 12px; font-weight: 500; }
  .guest-card .actions { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
  .guest-card .actions .btn { flex: 1; }
  .guest-table.has-cards, .desktop-table.has-cards, .guests-table.has-cards { display: none; }
  th { font-size: 9px; }
  td { font-size: 12px; }
  .table-wrap > table, .table-scroll > table { min-width: 620px; }
  .flight-board .table-wrap > table { min-width: 630px; }
  .flight-board .panel-header, .flight-board .panel-head, .flight-board-header { padding: 20px; align-items: flex-start; }
  .flight-board h2 { font-size: 17px; }
  .flight-board .panel-footer, .flight-board-footer { padding: 13px 20px; font-size: 10px; }
  .hotel-grid, .hotels-grid, .transport-grid, .pickup-grid { grid-template-columns: 1fr; gap: 18px; }
  .hotel-visual, .hotel-cover { min-height: 115px; padding: 20px; }
  .hotel-body { padding: 20px; }
  .hotel-stats { gap: 11px; }
  .hotel-stats strong { font-size: 25px; }
  .trip-card, .pickup-card { padding: 20px; }
  .seating-layout, .seating-grid { grid-template-columns: 1fr; gap: 18px; }
  .seating-sidebar { display: flex; flex-direction: column; }
  .floorplan { height: 460px; background-size: 20px 20px; }
  .seat-table { width: 86px; height: 86px; }
  .seat-table.rect, .seat-table.rectangle, .seat-table.long { width: 127px; height: 68px; }
  .seat-table strong { font-size: 12px; }
  .seat-table small { font-size: 9px; }
  .seat-table::before { inset: -8px; border-width: 4px; }
  .seating-toolbar { padding: 13px; gap: 8px; }
  .seating-toolbar .btn { font-size: 12px; min-height: 42px; padding: 9px 11px; }
  .legend { padding: 13px 16px; gap: 12px; font-size: 10px; }
  .mapping-grid, .settings-grid { grid-template-columns: 1fr; }
  .import-zone, .drop-zone { padding: 30px 20px; }
  dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .modal-header, .dialog-header { padding: 19px 20px; }
  .modal-header h2, .dialog-header h2 { font-size: 21px; }
  .modal-body, .dialog-body { padding: 22px 20px; }
  .modal-footer, .dialog-footer { padding: 16px 20px; }
  .modal-footer > .btn, .dialog-footer > .btn { flex: 1; }
  .form-grid { gap: 17px 14px; }
  .field > label, label.field > span:first-child, .field-label { font-size: 12px; }
  .notice, .callout, .info-banner { padding: 13px 14px; font-size: 12px; border-radius: 10px; }
  #toast { left: 50%; bottom: 18px; font-size: 13px; width: max-content; }
}

@media (max-width: 420px) {
  .content, .page-content { padding-left: 15px; padding-right: 15px; }
  .topbar, .main-topbar { padding-left: 15px; padding-right: 15px; }
  .brand { padding-left: 16px; }
  .hero { padding: 22px; }
  .hero h1, .hero h2 { font-size: 30px; }
  .stat-card, .stat { padding: 15px; }
  .stat-icon { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .topbar-left .sync-status { max-width: 145px; }
  .lang-switch button, .language-switch button { min-width: 35px; }
}

/* Keep the everyday details readable without zooming. */
.guest-identity > strong, .task-row strong, .person-pill, .trip-card > p,
.room-card > button, .unassigned-person, .seated-person strong { font-size: 13px; }
.guest-identity > small, .arrival-route > small, .task-row small, .hotel-summary p,
.room-card > button > small, .person-pill small, .trip-people > span,
.unassigned-person small, .diet-text, .diet-note strong { font-size: 11px; }
.stat-top > span, .arrival-route > strong, .hotel-numbers small,
.hotel-stats small, .stat-card > small, .section-help, .seat-hint p { font-size: 12px; }
.stat-card > small { font-size: 11px; }
.badge, .flight-board .badge { font-size: 11px; }
.diet-note small, .demo-banner, .demo-banner .btn, .fine-print { font-size: 11px; }
.hotel-summary h3 { font-size: 15px; }
.btn.text { font-size: 12px; }
.section-help { line-height: 1.6; }
.search-box input { font-size: 16px; }
.guest-identity > small, .task-row small, .hotel-summary p, .stat-card > small,
.stat-top > span, .arrival-route > small, .arrival-day > small, .section-help,
.hotel-numbers small, .room-card > button > small, .room-card > div > span:last-child,
.trip-card > p, .person-pill small, .seat-hint p, .unassigned-person small,
.toggle-row small, .passenger-option small, .result-count, .fine-print,
.breadcrumbs, .mobile-detail, .connection-row, .unassigned > p { color: #738067; }
.guest-identity > strong, .task-row strong, .room-card > button,
.person-pill, .unassigned-person, .seated-person strong { color: #4e5c44; }
.demo-banner { color: #81785e; }
.info-strip { color: #657655; }
.diet-note strong { color: #947157; }
.diet-note small { color: #9b8069; }
.filter-chip { color: #7c886e; }
th { color: #778268; }
.badge.neutral { color: #76816c; }
.badge.clay { color: #936e50; }
.badge.sage { color: #637d4f; }
.upload-zone > span { color: #778a62; }
.form-section > h3 > span { color: #526748; }
.form-section h3 { margin-bottom: 18px; }

@media (max-width: 1100px) {
  .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arrival-list { padding-left: 20px; padding-right: 20px; }
  .arrival-row { gap: 9px; }
  .arrival-row .avatar { display: none; }
  .arrival-day { padding-right: 9px; min-width: 31px; }
  .arrival-route { min-width: 58px; }
  .arrival-route > small { max-width: 70px; }
  .hotel-summary-grid { padding-left: 20px; padding-right: 20px; gap: 15px; }
  .hotel-summary { padding: 15px; }
  .hotel-summary > .icon { display: none; }
  .hotel-summary p { font-size: 10px; }
  .checklist-panel .task-row { width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
  .hero-art { min-width: 150px; }
}

@media (max-width: 760px) {
  .nav-caption { display: none; }
  .brand > span:last-child { font-size: 22px; }
  .breadcrumbs { font-size: 11px; gap: 8px; }
  .profile-avatar { display: none; }
  .demo-banner { align-items: flex-start; margin-bottom: 20px; padding: 11px 12px; font-size: 11px; }
  .demo-banner > span { align-items: flex-start; }
  .demo-banner > span > .icon { margin-top: 2px; }
  .demo-banner > .btn { font-size: 10px; white-space: normal; text-align: right; min-width: 74px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .page-heading .eyebrow { font-size: 9px; }
  .hero-art { min-width: 0; }
  .hero-art > small { display: none; }
  .hero-date { margin-top: 19px; font-size: 12px; }
  .hero-date > span { font-size: 10px; }
  .stat-top > span { font-size: 11px; }
  .stat-card > small { font-size: 11px; line-height: 1.4; }
  .stat-top > .icon { width: 17px; height: 17px; }
  .arrival-list { padding: 0 19px 9px; }
  .arrival-row { gap: 10px; padding: 16px 0; }
  .arrival-row .avatar { display: none; }
  .arrival-day { padding-right: 10px; }
  .row-person { min-width: 95px; }
  .guest-identity > strong { font-size: 13px; }
  .guest-identity > small { font-size: 11px; }
  .arrival-route { display: none; }
  .arrival-hour { gap: 5px; font-size: 13px; }
  .arrival-hour .badge { font-size: 9px; }
  .checklist-panel .task-row { width: calc(100% - 38px); margin: 0 19px; }
  .task-row strong { font-size: 13px; }
  .task-row small { font-size: 11px; }
  .diet-note { margin: 17px 15px; padding: 13px; }
  .diet-note strong { font-size: 11px; }
  .diet-note small { font-size: 10px; }
  .hotel-summary-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 19px 20px; }
  .hotel-summary { padding: 17px; }
  .hotel-summary p { font-size: 11px; }
  .hotel-summary > .icon { display: block; }
  .app-footer { padding: 0 20px 24px; font-size: 9px; }
  .panel > .toolbar { padding: 18px 17px 15px; flex-wrap: nowrap; gap: 10px; }
  .search-box { min-width: 0; }
  .search-box input { font-size: 16px; padding-right: 9px; }
  .panel > .toolbar > .btn { flex: 0 0 auto; padding: 10px 12px; font-size: 12px; }
  .panel > .toolbar > .btn .icon { display: none; }
  .panel > .filter-tabs { padding: 0 17px 15px; }
  .filter-chip { min-height: 40px; font-size: 12px; }
  .result-count { padding: 0 18px 13px; font-size: 11px; }
  .guest-table { display: none; }
  .guest-cards { padding: 0 13px 15px; }
  .guest-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 17px; background: #fdfefa; }
  .guest-card > .person-cell { margin-bottom: 15px; }
  .guest-card .person-cell > .icon { margin-left: auto; width: 15px; height: 15px; color: #b5bfa6; }
  .guest-card .guest-identity > strong { font-size: 16px; }
  .guest-card .guest-identity > small { font-size: 12px; }
  .guest-card .avatar { width: 37px; height: 37px; }
  .mobile-detail { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #839474; font-size: 12px; }
  .mobile-detail > .icon { width: 15px; height: 15px; color: #a7b895; }
  .guest-card > .badge-stack { margin-top: 14px; }
  .info-strip { padding: 13px 14px; font-size: 12px; }
  .board-header { padding: 21px 20px; gap: 12px; }
  .board-header h2 { font-size: 20px; }
  .board-header h2 span { display: none; }
  .board-header > span { font-size: 9px; }
  .board-footer { align-items: flex-start; padding: 15px 20px; font-size: 11px; }
  .board-footer > .icon { margin-top: 2px; }
  .fine-print { font-size: 11px; }
  .stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .stats-grid.three .stat-card { padding: 14px 11px; }
  .stats-grid.three .stat-top > .icon { display: none; }
  .stats-grid.three .stat-card > small { font-size: 10px; }
  .stats-grid.three .stat-top > span { font-size: 10px; }
  .trip-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 18px 20px; }
  .trip-card { padding: 19px; }
  .trip-card h3 { font-size: 18px; }
  .trip-card > p { font-size: 13px; }
  .trip-people > span { font-size: 12px; padding: 6px 8px; }
  .trip-card-bottom > strong { font-size: 12px; }
  .section-help { padding: 0 19px 19px; font-size: 12px; }
  .warning-strip { padding: 15px 19px; font-size: 11px; }
  .pill-list { padding: 0 19px 20px; }
  .person-pill { font-size: 13px; }
  .person-pill small { font-size: 11px; }
  .hotel-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .hotel-detail .hotel-cover { min-height: 112px; padding: 20px; }
  .hotel-detail-body { padding: 21px; }
  .hotel-detail-body h2 { font-size: 22px; }
  .hotel-numbers strong { font-size: 27px; }
  .hotel-numbers small { font-size: 11px; }
  .room-card > div strong { font-size: 13px; }
  .room-card > div > span:last-child { font-size: 10px; }
  .room-card > button { padding: 14px; font-size: 14px; }
  .room-card > button > small { font-size: 11px; }
  .pending-room { font-size: 13px; }
  .floorplan-panel > .panel-header > span { font-size: 9px; }
  .floorplan-panel > .panel-header h2 { font-size: 15px; }
  .seat-table > span { font-size: 11px; }
  .seat-table .chair { width: 11px; height: 11px; }
  .seat-table .chair.c1 { top: -13px; }
  .seat-table .chair.c3 { right: -11px; }
  .seat-table .chair.c4 { bottom: -13px; }
  .seat-table .chair.c5 { left: -11px; }
  .floorplan-legend { gap: 10px; padding: 13px 15px; flex-wrap: wrap; font-size: 10px; }
  .floorplan-legend > .btn { font-size: 10px; }
  .stage { left: 16%; right: 16%; font-size: 7px; }
  .seat-hint p, .seated-person strong, .unassigned-person { font-size: 13px; }
  .seat-hint h2 { font-size: 18px; }
  .unassigned h3, .seating-sidebar > h3 { font-size: 14px; }
  .seated-person .icon-button { min-width: 40px; min-height: 40px; }
  .unassigned-person { padding: 14px 0; }
  .unassigned-person small { font-size: 11px; }
  .seating-sidebar > .section-help { padding-left: 20px; }
  form > .form-grid, .settings-fields > .form-grid { padding: 0 20px 22px; }
  dialog form > .form-grid { padding: 22px 20px; }
  form > .field, .settings-fields > .field { margin: 0 20px 18px; }
  .form-footer { padding: 16px 20px; flex-wrap: wrap; }
  .form-footer .btn { flex: 1; }
  .toggle-row { min-height: 70px; padding: 13px; }
  .toggle-row strong { font-size: 13px; }
  .toggle-row small { font-size: 11px; }
  .settings-actions { padding: 0 20px 22px; align-items: stretch; }
  .connection-row { margin: 0 20px; font-size: 13px; }
  .settings-grid .fine-print { padding: 0 20px 22px; }
}

button.btn, a.btn, .btn.text, .btn.small, .btn-sm, .demo-banner .btn,
.icon-btn, .icon-button, .table-actions .icon-btn, .filter-chip,
.nav-item, .sidebar nav button, .language-switch button, .lang-switch button,
.seating-toolbar .btn, .seated-person .icon-button, .board-name { min-height: 44px; }
.icon-btn, .icon-button, .table-actions .icon-btn, .language-switch button,
.lang-switch button, .seated-person .icon-button { min-width: 44px; }

@media (max-width: 760px) {
  .passenger-list { grid-template-columns: 1fr; }
  .modal-footer { gap: 10px; flex-wrap: wrap; }
  .modal-footer > div { width: 100%; }
  .modal-footer > div > .btn { flex: 1; }
  .modal-footer > .btn.danger-text { flex: 0 0 auto; }
  .demo-banner .btn { min-width: 78px; }
  .mobile-detail { color: #738067; }
}

.diet-chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.diet-chip-row button { min-height: 44px; padding: 9px 13px; border: 1px solid #e4d6bf; border-radius: 8px; background: #fcf7ec; color: #8d7448; font-size: 12px; }
.diet-chip-row button:hover, .diet-chip-row button.active, .diet-chip-row button[aria-pressed="true"] { background: #f3e3c2; border-color: #c8ab72; color: #71562a; }
.mobile-flight-cards { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .sidebar nav, .nav-list, .navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 4px 12px 12px; overflow: visible; }
  .sidebar nav button, .nav-item, .nav-link { flex-direction: column; justify-content: center; gap: 5px; width: 100%; min-width: 0; min-height: 54px; padding: 8px 4px; font-size: 13px; line-height: 1.2; }
  .sidebar nav button svg, .nav-item svg, .nav-link svg { width: 17px; height: 17px; }
  .sidebar .brand { padding-bottom: 9px; }
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .page-heading p, .page-header p, .hero p, .section-help,
  .demo-banner, .demo-banner .btn, .stat-top > span, .stat-card > small,
  .stats-grid.three .stat-top > span, .stats-grid.three .stat-card > small,
  .guest-identity > small, .guest-card .guest-identity > small, .mobile-detail,
  .task-row small, .diet-note strong, .diet-note small, .hotel-summary p,
  .hotel-numbers small, .room-card > button > small, .room-card > div > span:last-child,
  .badge, .arrival-hour .badge, .flight-board .badge, .trip-people > span,
  .person-pill small, .info-strip, .fine-print, .board-footer,
  .warning-strip, .toggle-row small, .passenger-option small, .unassigned-person small,
  .diet-text, .form-section .section-help, .field small, .field > span:first-child,
  .import-summary, .diet-chip-row button, .seat-hint p, .upload-zone > span { font-size: 13px; }
  .guest-identity > strong, .guest-card .guest-identity > strong { font-size: 16px; }
  .mobile-detail, .guest-identity > small, .task-row small,
  .hotel-summary p, .stat-card > small, .stat-top > span,
  .section-help, .seat-hint p, .hotel-numbers small,
  .room-card > button > small, .fine-print { color: #56614e; }
  .arrival-row { gap: 9px; }
  .arrival-row .arrival-day { min-width: 30px; padding-right: 8px; }
  .row-person { min-width: 0; flex: 1; }
  .arrival-hour .badge { font-size: 11px; white-space: normal; text-align: center; max-width: 86px; }
  .arrival-hour { font-size: 14px; }
  .guest-identity { min-width: 0; }
  .guest-identity > strong { overflow-wrap: anywhere; }
  .diet-note { gap: 9px; }
  .diet-note > .icon { display: none; }
  .diet-note .btn { font-size: 13px; }
  .hotel-summary { align-items: flex-start; }
  .hotel-summary > .icon { display: none; }
  .hotel-summary p { line-height: 1.5; }
  .stats-grid.three { grid-template-columns: 1fr; }
  .stats-grid.three .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; padding: 16px 18px; }
  .stats-grid.three .stat-value { margin: 0; grid-column: 2; grid-row: 1 / 3; }
  .stats-grid.three .stat-card > small { margin: 0; }
  .stats-grid.three .stat-top > span { font-size: 14px; }
  .trip-card-bottom > strong, .trip-card-bottom > .btn.secondary { font-size: 13px; }
  .badge-stack .badge { white-space: normal; text-align: left; }
  .seating-sidebar .unassigned-person, .seated-person strong { font-size: 15px; }
  .floorplan .seat-table { width: 82px; height: 82px; }
  .floorplan .seat-table.rect { width: 106px; height: 68px; }
  .seat-table > span { max-width: 73px; font-size: 12px; line-height: 1.25; }
  .seat-table small { font-size: 12px; }
  .floorplan .seat-table.rect > span { max-width: 91px; }
  .mobile-flight-cards { display: grid; gap: 0; }
  .flight-board:has(.mobile-flight-cards) > .table-scroll { display: none; }
  .mobile-flight-card { padding: 20px; border-top: 1px solid #ffffff17; }
  .mobile-flight-card:first-child { border-top: 0; }
  .mobile-flight-card .flight-card-top, .mobile-flight-card .flight-card-head,
  .mobile-flight-card .flight-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
  .mobile-flight-card h3, .mobile-flight-card .board-name { font-size: 16px; color: #eef3e6; }
  .mobile-flight-card .flight-code { font-size: 17px; }
  .mobile-flight-card small, .mobile-flight-card p { font-size: 13px; color: #bac6ad; }
  .mobile-flight-card .flight-card-details, .mobile-flight-card .flight-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
  .mobile-flight-card .flight-card-details small, .mobile-flight-card .flight-details small { display: block; margin-bottom: 5px; }
  .mobile-flight-card .flight-card-details strong, .mobile-flight-card .flight-details strong { font-size: 16px; font-weight: 500; color: #e4ecd9; }
  .mobile-flight-card .badge-stack { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .sidebar, .topbar, .main-topbar, .toolbar, .page-actions, .actions, .icon-btn, #toast, .skip-link { display: none !important; }
  .app-shell, .app-layout, .layout { display: block; }
  .content, .page-content { max-width: none; padding: 0; }
  body { background: white; }
  .panel, .card, .stat-card, .hotel-card { break-inside: avoid; box-shadow: none; }
  .flight-board { color: #222; background: white; border-color: #ccc; }
  .flight-board h2, .flight-board td, .flight-board th, .flight-board p, .flight-board small { color: #333; }
  .table-wrap, .table-scroll { overflow: visible; }
  .table-wrap > table, .table-scroll > table { min-width: 0; }
}

/* El nombre abre la ficha; en móvil también responde toda la tarjeta. */
.guest-edit-trigger {
  width: 100%; min-height: 52px; padding: 8px 10px; margin: -8px -10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink);
  text-align: left; cursor: pointer;
}
.guest-edit-trigger .guest-identity > strong {
  color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: #843d4740; font-size: 15px;
}
.guest-edit-trigger > .icon { width: 17px; height: 17px; margin-left: auto; color: var(--primary); }
.guest-edit-trigger:hover, .guest-edit-trigger:focus-visible { background: var(--primary-light); }
.guest-card:hover, .guest-card:focus-visible { border-color: var(--primary); background: #fffaf8; }
.guest-card:active { background: var(--primary-light); }
.guest-edit-hint {
  display: flex; align-items: center; justify-content: flex-end; gap: 7px;
  margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--primary); font-size: 14px; font-weight: 600;
}
.guest-edit-hint .icon { width: 17px; height: 17px; }

/* Perfiles familiares: elegir una lista y reconocer de quién es cada invitado. */
.profile-gate {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 40px 42px;
  background: radial-gradient(ellipse at 50% 16%, #f0e9dc88, transparent 65%), var(--paper);
}
.profile-gate-header {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.profile-gate-header .brand { padding: 0; }
.profile-gate-header .language-switch button { min-height: 48px; min-width: 48px; font-size: 14px; }
.profile-welcome { width: min(650px, 100%); margin: 66px auto 36px; text-align: center; }
.profile-welcome .eyebrow { margin-bottom: 15px; font-size: 11px; letter-spacing: .14em; }
.profile-welcome h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 4vw, 46px); font-weight: 400; line-height: 1.15; color: #46523d; }
.profile-welcome p { max-width: 560px; margin: 17px auto 0; color: #66725c; font-size: 16px; line-height: 1.65; }
.profile-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; width: min(1160px, 100%); margin: 0 auto; }
.profile-choice {
  --profile-tint: #edf1e6;
  --profile-color: #667e50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 238px;
  padding: 25px;
  border: 2px solid #e6e8dd;
  border-radius: 18px;
  background: #fffefa;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 7px 20px #56614e04;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
[data-profile="mother"] { --profile-tint: #f4e7e4; --profile-color: #93695f; }
[data-profile="father"] { --profile-tint: #e9efdf; --profile-color: #657b4f; }
[data-profile="xinxin"] { --profile-tint: #f3e5e9; --profile-color: #985a70; }
[data-profile="junjie"] { --profile-tint: #e5ecea; --profile-color: #587b74; }
[data-profile="staff"] { --profile-tint: #fff0ce; --profile-color: #79531c; }
.profile-initial { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--profile-tint, #edf1e6); color: var(--profile-color, #667e50); font-size: 23px; font-weight: 500; line-height: 1; }
.profile-choice .profile-initial { margin-bottom: 22px; }
.profile-name, .profile-name strong { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.profile-name-zh { display: block; margin-top: 5px; font-size: 15px; color: #77816b; line-height: 1.35; }
.profile-list-label { display: block; margin-top: 20px; color: #77816b; font-size: 13px; line-height: 1.45; }
.profile-count { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; color: var(--profile-color, #667e50); font-size: 17px; font-weight: 600; line-height: 1.4; }
.profile-count > .icon { width: 18px; height: 18px; margin-left: auto; }
.profile-choice:hover { border-color: #b1bda3; background: #fffffc; box-shadow: 0 8px 24px #56614e0d; }
.profile-choice.selected, .profile-choice[aria-pressed="true"] { border-color: var(--primary); background: #fff9f7; box-shadow: 0 0 0 3px #843d470c; }
.profile-choice:active { background: var(--profile-tint, #edf1e6); }
.profile-gate-note { width: min(700px, 100%); margin: 27px auto 0; color: #7a826f; font-size: 13px; line-height: 1.65; text-align: center; }
.profile-gate-note .icon { width: 16px; height: 16px; margin-right: 5px; }
.profile-gate-note .btn { min-width: 48px; min-height: 48px; }
.active-profile-button { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; max-width: 260px; padding: 7px 11px; border: 1px solid #e3e6d9; border-radius: 10px; background: #fffefa; color: var(--ink); text-align: left; }
.active-profile-button > .profile-initial { width: 34px; height: 34px; font-size: 15px; }
.active-profile-button > span:not(.profile-initial) { min-width: 0; }
.active-profile-button strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.active-profile-button small { display: block; margin-top: 3px; color: var(--primary); font-size: 11px; line-height: 1.25; }
.active-profile-button > .icon { height: 15px; width: 15px; color: #8b997c; }
.active-profile-button:hover { border-color: #bc9c9f; background: #fff9f7; }
.topbar:has(.active-profile-button) { flex-wrap: wrap; }
.topbar:has(.active-profile-button) .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.owner-overview { margin-bottom: 23px; }
.owner-heading { padding: 22px 24px 18px; }
.owner-heading h2 { font-size: 18px; line-height: 1.25; }
.owner-heading p { margin-top: 7px; color: #707c65; font-size: 13px; line-height: 1.55; }
.owner-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 0 24px 24px; }
.owner-filter { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 70px; min-width: 0; padding: 15px 17px; border: 2px solid #e7eadd; border-radius: 11px; background: #fbfcf7; color: #617451; text-align: left; transition: border-color .15s, background .15s; }
.owner-filter-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.owner-filter-count { flex-shrink: 0; font-size: 23px; font-weight: 600; line-height: 1.2; }
.owner-filter:hover { border-color: #b3c2a2; background: #f5f8ee; }
.owner-filter.active, .owner-filter.selected, .owner-filter[aria-pressed="true"] { border-color: #b47c87; background: var(--primary-light); color: var(--primary-dark); }
.owner-filter.active .owner-filter-name, .owner-filter.selected .owner-filter-name, .owner-filter[aria-pressed="true"] .owner-filter-name { font-weight: 650; }
.owner-label { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 3px 7px; margin-top: 6px; border: 1px solid #e4e8d9; border-radius: 5px; background: #f2f5eb; color: #65784f; font-size: 11px; font-weight: 500; line-height: 1.4; }
.owner-label[data-profile] { background: var(--profile-tint, #f2f5eb); color: var(--profile-color, #65784f); border-color: transparent; }
.owner-scope-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; padding: 13px 24px; border-top: 1px solid var(--line); background: #fbfcf7; color: #6b7a5c; font-size: 13px; line-height: 1.5; }
.owner-scope-note .icon { width: 16px; height: 16px; }
.profile-choice:focus-visible, .owner-filter:focus-visible, .active-profile-button:focus-visible { outline: 3px solid #a96d77; outline-offset: 4px; }

@media (max-width: 1100px) {
  .profile-choices { max-width: 860px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .profile-choice { padding: 21px; min-height: 225px; }
  .profile-name, .profile-name strong { font-size: 19px; }
  .topbar:has(.active-profile-button) { gap: 12px; }
  .topbar:has(.active-profile-button) .topbar-actions { gap: 10px; }
}

@media (max-width: 760px) {
  .profile-gate { padding: 18px 20px 32px; }
  .profile-gate-header { gap: 13px; }
  .profile-gate-header .brand { gap: 6px; }
  .profile-gate-header .brand > span:last-child { font-size: 21px; }
  .profile-gate-header .brand-mark { width: 26px; font-size: 27px; }
  .profile-gate-header .language-switch { flex-shrink: 0; }
  .profile-gate-header .language-switch button { min-width: 48px; min-height: 48px; padding: 5px 8px; }
  .profile-welcome { margin: 38px auto 27px; }
  .profile-welcome .eyebrow { font-size: 11px; line-height: 1.6; margin-bottom: 13px; }
  .profile-welcome h1 { font-size: 35px; line-height: 1.15; }
  .profile-welcome p { font-size: 15px; line-height: 1.6; margin-top: 15px; }
  .profile-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .profile-choice { min-height: 215px; padding: 20px 17px; border-radius: 15px; }
  .profile-choice .profile-initial { width: 51px; height: 51px; margin-bottom: 16px; font-size: 21px; }
  .profile-name, .profile-name strong { font-size: 21px; }
  .profile-name-zh { font-size: 16px; }
  .profile-list-label { font-size: 13px; margin-top: 16px; }
  .profile-count { font-size: 16px; }
  .profile-gate-note { margin-top: 23px; font-size: 13px; color: #637155; }
  .topbar:has(.active-profile-button) { gap: 10px; padding-top: 12px; padding-bottom: 15px; }
  .topbar:has(.active-profile-button) > .breadcrumbs { width: 100%; font-size: 12px; }
  .topbar:has(.active-profile-button) .topbar-actions { width: 100%; justify-content: flex-start; gap: 9px; }
  .topbar .active-profile-button { order: 0; flex: 1; min-width: 160px; max-width: none; min-height: 55px; gap: 9px; }
  .active-profile-button strong { font-size: 15px; }
  .active-profile-button small { font-size: 13px; }
  .active-profile-button > .profile-initial { width: 35px; height: 35px; font-size: 16px; }
  .topbar:has(.active-profile-button) .language-switch { order: 1; flex-shrink: 0; margin-left: auto; }
  .topbar:has(.active-profile-button) .language-switch button { min-height: 48px; min-width: 48px; font-size: 13px; }
  .topbar:has(.active-profile-button) .sync-status { order: 2; flex-basis: 100%; font-size: 12px; padding-left: 2px; }
  .owner-overview { margin-bottom: 19px; }
  .owner-heading { padding: 20px 17px 16px; }
  .owner-heading h2 { font-size: 18px; }
  .owner-heading p { font-size: 13px; color: #56614e; }
  .owner-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 13px 18px; }
  .owner-filter { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 98px; padding: 14px 12px; border-radius: 10px; }
  .owner-filter-name { font-size: 20px; font-weight: 600; line-height: 1.35; }
  .owner-filter-count { font-size: 25px; }
  .owner-label { font-size: 13px; padding: 4px 7px; }
  .guest-card .person-cell { align-items: flex-start; }
  .guest-card .person-cell > .icon { margin-top: 11px; }
  .owner-scope-note { padding: 13px 17px; font-size: 13px; }
}

@media (max-width: 359px) {
  .profile-gate { padding-left: 16px; padding-right: 16px; }
  .profile-gate-header { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .profile-welcome { margin-top: 28px; }
  .profile-welcome h1 { font-size: 32px; }
  .profile-choices { grid-template-columns: 1fr; }
  .profile-choice { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 15px; min-height: 128px; padding: 19px; }
  .profile-choice .profile-initial { grid-row: 1 / span 4; align-self: center; margin: 0; }
  .profile-choice .profile-name, .profile-choice .profile-name-zh, .profile-choice .profile-list-label, .profile-choice .profile-count { grid-column: 2; }
  .profile-choice .profile-list-label { margin-top: 10px; }
  .profile-choice .profile-count { font-size: 16px; }
  .owner-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar .active-profile-button { min-width: 140px; padding-left: 8px; padding-right: 8px; }
  .active-profile-button > .profile-initial { width: 28px; height: 28px; font-size: 14px; }
}

@media print {
  .active-profile-button, .profile-gate-header .language-switch { display: none !important; }
  .owner-overview { break-inside: avoid; }
  .owner-filter { color: #333; border-color: #ccc; background: white; }
  .owner-filter.active, .owner-filter.selected { border-color: #333; background: #f1f1ee; color: #222; }
}

/* Explicit pending choices prevent a name-only guest from implying a booking or a declined transfer. */
.need-choice { min-width: 0; margin: 0; padding: 12px 15px 15px; border: 1px solid #e3e7db; border-radius: 12px; background: #f8faf4; }
.form-section > .need-choice { margin-top: 16px; }
.need-choice legend { max-width: 100%; padding: 0 5px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.need-choice-help { margin: 0 0 12px; color: #65705b; font-size: 13px; line-height: 1.5; }
.need-choice-options { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.need-choice-option { position: relative; min-width: 0; cursor: pointer; }
.need-choice-option input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.need-choice-option span { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 52px; padding: 10px 8px; border: 1px solid #c7cebf; border-radius: 9px; background: #fff; color: #4b5643; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.25; }
.need-choice-option input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.need-choice-option input:focus-visible + span { outline: 3px solid #b88991; outline-offset: 3px; }
@media(max-width:480px) { .need-choice { padding: 10px 10px 12px; } .need-choice-options { gap: 6px; } .need-choice-option span { padding-inline: 6px; } }

/* Datos pendientes, asistencia y estados de llegada siempre visibles. */
.guest-row-incomplete > td { background: #fffaf0; border-bottom-color: #eee4cc; }
.guest-row-incomplete > td:first-child { box-shadow: inset 3px 0 0 #cda658; }
.guest-row-incomplete:hover > td { background: #fff5e1; }
.guest-card.incomplete { border-color: #dec99a; background: #fffbf2; box-shadow: inset 3px 0 0 #cda658; }
.guest-card.incomplete:hover, .guest-card.incomplete:focus-visible { border-color: #b98a38; background: #fff5e3; }
.guest-row-declined > td { background: #f3f4ef; border-bottom-color: #e0e3d8; color: #68715f; }
.guest-row-declined > td:first-child { box-shadow: inset 3px 0 0 #b6bdac; }
.guest-row-declined:hover > td { background: #ecefe5; }
.guest-card.declined { border-color: #d3d8ca; background: #f3f4ef; box-shadow: inset 3px 0 0 #b6bdac; }
.guest-card.declined:hover, .guest-card.declined:focus-visible { border-color: #9aa78a; background: #ecefe5; }
.guest-row-declined .guest-identity > strong, .guest-card.declined .guest-identity > strong { color: #626d56; }
.guest-row-declined .avatar, .guest-card.declined .avatar { background: #e4e8dd; color: #68765a; }
.missing-details { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.missing-chip { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; max-width: 100%; min-height: 31px; padding: 5px 8px; border: 1px solid #e3d3a8; border-radius: 7px; background: #fff3d7; color: #795d26; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: normal; text-align: left; }
.missing-chip > .icon, .missing-chip > svg { flex-shrink: 0; width: 18px; height: 18px; }
.missing-chip > span { min-width: 0; overflow-wrap: anywhere; }
button.missing-chip { min-height: 44px; padding: 10px 12px; cursor: pointer; }
button.missing-chip:hover, button.missing-chip:focus-visible { background: #f5e3b4; border-color: #bea05e; color: #63491c; }
.guest-attendance { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; min-height: 28px; margin-top: 7px; padding: 4px 8px; border: 1px solid #e0e4d5; border-radius: 6px; background: #f0f3e9; color: #596e46; font-size: 12px; font-weight: 600; line-height: 1.4; }
.guest-attendance > .icon, .guest-attendance > svg { width: 16px; height: 16px; flex-shrink: 0; }
.guest-attendance.declined, .guest-row-declined .guest-attendance, .guest-card.declined .guest-attendance { border-color: #d5dbcb; background: #e8ecdf; color: #5f6d50; }
.guest-attendance.pending { border-color: #e3d3a8; background: #fff3d7; color: #795d26; }
.attendance-section { margin-top: 27px; padding-top: 24px; border-top: 1px solid #dce2d0; }
.attendance-section > h3 { margin-bottom: 9px; color: #4e6341; font-size: 16px; }
.attendance-section > p { margin-bottom: 16px; color: #66745a; font-size: 13px; line-height: 1.6; }
.attendance-section .actions, .attendance-section .attendance-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.attendance-section button { min-height: 48px; font-size: 14px; }
.attendance-section .actions > button, .attendance-section .attendance-actions > button { flex: 1 1 150px; }
.attendance-section button[aria-pressed="true"], .attendance-section button.active { border-color: #a26d79; background: var(--primary-light); color: var(--primary-dark); font-weight: 650; }
.missing-form-summary { padding: 17px 18px; margin: 0 0 25px; border: 1px solid #e3d1a3; border-radius: 12px; background: #fffaf0; color: #775c2c; }
.missing-form-summary > h2, .missing-form-summary > h3, .missing-form-summary > strong { display: block; margin-bottom: 7px; color: #6d5326; font-size: 15px; line-height: 1.4; font-weight: 600; }
.missing-form-summary > p { font-size: 13px; line-height: 1.6; color: #786442; }
.missing-form-summary .missing-details { margin-top: 13px; gap: 8px; }
.missing-form-summary button { min-width: 44px; min-height: 44px; font-size: 13px; }
.modal-body .field, .modal-body .need-choice { scroll-margin-top: 110px; scroll-margin-bottom: 100px; }
.flight-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.flight-summary-item { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; min-height: 106px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; box-shadow: var(--shadow); }
.flight-summary-item > strong, .flight-summary-count { display: block; font-size: 29px; font-weight: 550; line-height: 1.1; letter-spacing: -.025em; color: #4f6142; }
.flight-summary-item > span, .flight-summary-item > small, .flight-summary-label { display: block; color: #657457; font-size: 13px; font-weight: 500; line-height: 1.4; }
.flight-summary-item .flight-summary-count { font-size: 29px; font-weight: 550; line-height: 1.1; color: #4f6142; }
.flight-summary-item .icon { width: 18px; height: 18px; margin-right: 6px; }
.flight-summary-item[data-status="delayed"] { border-color: #e5d8b7; background: #fffaf0; }
.flight-summary-item[data-status="delayed"] > strong, .flight-summary-item[data-status="delayed"] .flight-summary-count { color: #8c682d; }
.flight-summary-item[data-status="cancelled"] { border-color: #e8d0cb; background: #fff7f4; }
.flight-summary-item[data-status="cancelled"] > strong, .flight-summary-item[data-status="cancelled"] .flight-summary-count { color: #9a6154; }
.flight-status-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 19px; }
.flight-status-filters > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid #dce3d1; border-radius: 8px; background: #fffefa; color: #60734e; font-size: 13px; font-weight: 500; line-height: 1.4; }
.flight-status-filters > button:hover { background: #f2f6e9; border-color: #acbd96; }
.flight-status-filters > button.active, .flight-status-filters > button[aria-pressed="true"] { background: var(--primary-light); border-color: #bd919c; color: var(--primary-dark); font-weight: 650; }
.flight-status-filters .icon { height: 18px; width: 18px; }
.flight-status-filters button > .badge, .flight-status-filters button > small { min-width: 20px; padding: 2px 5px; border-radius: 5px; background: #edf1e5; color: inherit; font-size: 12px; line-height: 1.4; }
.flight-status-filters > button.active > .badge, .flight-status-filters > button.active > small { background: #ead4d8; }
.flight-connection-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; margin: 0 0 20px; border: 1px solid #e0e6d6; border-radius: 9px; background: #f1f4eb; color: #60734e; font-size: 13px; line-height: 1.6; }
.flight-connection-note > .icon, .flight-connection-note > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.flight-connection-note strong { color: #4f6440; font-size: inherit; }
.flight-connection-note p + p { margin-top: 5px; }
.flight-connection-note button, .flight-connection-note .btn { min-height: 44px; flex-shrink: 0; font-size: 13px; }

@media (max-width: 1100px) {
  .flight-summary { gap: 10px; }
  .flight-summary-item { padding: 16px 13px; }
}

@media (max-width: 760px) {
  .missing-details { gap: 7px; margin-top: 13px; }
  .missing-chip { min-height: 33px; padding: 6px 9px; font-size: 13px; }
  button.missing-chip, .missing-form-summary button { min-height: 46px; padding: 10px 12px; font-size: 13px; }
  .guest-card .missing-details { margin-top: 14px; }
  .guest-card .guest-attendance { font-size: 13px; margin-top: 9px; padding: 5px 8px; }
  .guest-card.incomplete { border-color: #d6bc81; background: #fffbf1; }
  .guest-card.declined { border-color: #cdd5c1; background: #f0f3e9; }
  .guest-card.declined .mobile-detail, .guest-card.declined .guest-identity > small { color: #5e6c50; }
  .attendance-section { margin-top: 25px; padding-top: 22px; }
  .attendance-section > h3 { font-size: 17px; }
  .attendance-section > p { font-size: 14px; line-height: 1.6; }
  .attendance-section .actions, .attendance-section .attendance-actions { gap: 9px; }
  .attendance-section button { min-height: 48px; font-size: 14px; }
  .missing-form-summary { margin-bottom: 23px; padding: 16px; border-radius: 10px; }
  .missing-form-summary > h2, .missing-form-summary > h3, .missing-form-summary > strong { font-size: 16px; }
  .missing-form-summary > p { font-size: 13px; }
  .flight-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 20px; }
  .flight-summary-item { min-height: 104px; padding: 17px; }
  .flight-summary-item > strong, .flight-summary-count { font-size: 29px; }
  .flight-summary-item > span, .flight-summary-item > small, .flight-summary-label { font-size: 14px; color: #56694a; }
  .flight-summary-item:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 72px; }
  .flight-status-filters { gap: 8px; margin-bottom: 18px; }
  .flight-status-filters > button { min-height: 48px; padding: 10px 13px; font-size: 13px; }
  .flight-connection-note { flex-wrap: wrap; gap: 9px; padding: 14px; font-size: 13px; color: #56694a; }
  .flight-connection-note > span, .flight-connection-note > div { flex: 1; min-width: 0; }
  .flight-connection-note button, .flight-connection-note .btn { min-height: 48px; }
}

@media print {
  .guest-row-incomplete > td, .guest-card.incomplete { background: #fff9e9; }
  .guest-row-declined > td, .guest-card.declined { background: #f2f2ef; color: #444; }
  .missing-chip { border-color: #ad9769; color: #55401c; background: #fff9e9; }
  .flight-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flight-summary-item { min-height: 85px; box-shadow: none; break-inside: avoid; }
  .flight-summary-item:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .flight-status-filters { display: none; }
}

/* Seis estados seleccionables, con la misma distribución en cada fila. */
.flight-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flight-summary-item { align-items: flex-start; text-align: left; cursor: pointer; }
.flight-summary-item:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: flex-start; min-height: 106px; }
.flight-summary-item:hover { border-color: #a9b897; background: #f5f8ef; }
.flight-summary-item.active, .flight-summary-item[aria-pressed="true"] { border-color: #ad727f; background: var(--primary-light); box-shadow: inset 0 0 0 1px #ad727f; }
.flight-summary-item.active > strong, .flight-summary-item.active > span,
.flight-summary-item[aria-pressed="true"] > strong, .flight-summary-item[aria-pressed="true"] > span { color: var(--primary-dark); }
.flight-summary-item:focus-visible { outline: 3px solid #a96d77; outline-offset: 4px; }
.flight-board .flight-status-note { margin: 9px 0 13px; color: #c4cfba; font-size: 13px; line-height: 1.65; }
.flight-board .flight-status-note:empty { display: none; }
@media (max-width: 760px) {
  .flight-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-summary-item, .flight-summary-item:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: flex-start; min-height: 104px; }
  .flight-board .flight-status-note { font-size: 14px; color: #cdd7c4; }
}
.panel > .filter-tabs { flex-wrap: wrap; overflow: visible; }
.missing-form-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.missing-form-summary > strong { flex-basis: 100%; }
.missing-details > strong { display: inline-flex; align-items: center; gap: 5px; }

/* Una cuenta atrás discreta y un registro claro de invitaciones y sobres. */
.wedding-countdown {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 3px;
  padding: 15px 12px;
  margin-bottom: 18px;
  border: 1px solid #e4dec9;
  border-radius: 12px;
  background: #f5f2e7;
  text-align: center;
}
.wedding-countdown > small { grid-column: 1 / -1; color: #776d55; font-size: 12px; line-height: 1.45; }
.wedding-countdown > small:first-child { margin-bottom: 2px; font-size: 13px; font-weight: 500; }
.wedding-countdown .countdown-number { display: block; grid-column: 1; margin: 0; padding: 0; border: 0; color: var(--primary); font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wedding-countdown .countdown-unit { grid-column: 2; font-size: 14px; line-height: 1.4; color: #756b53; text-align: left; }
.wedding-countdown > small:last-child { margin-top: 3px; color: #807761; font-size: 11px; }
.mobile-countdown { display: none; }
.registry-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.registry-stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; min-height: 114px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; text-align: left; box-shadow: var(--shadow); }
.registry-stat > strong, .registry-stat .registry-count { display: block; color: #4e6240; font-size: 30px; font-weight: 550; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.registry-stat > span, .registry-stat > small { color: #66765b; font-size: 13px; font-weight: 500; line-height: 1.45; }
.registry-stat > .icon { color: #9eac8b; width: 19px; height: 19px; }
button.registry-stat { cursor: pointer; }
button.registry-stat:hover { border-color: #b4c3a2; background: #f7f9f1; }
.registry-stat.active, .registry-stat[aria-pressed="true"] { background: var(--primary-light); border-color: #b98690; box-shadow: inset 0 0 0 1px #b98690; }
.registry-stat.active > strong, .registry-stat.active > span, .registry-stat[aria-pressed="true"] > strong, .registry-stat[aria-pressed="true"] > span { color: var(--primary-dark); }
.registry-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 13px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.registry-toolbar .field { flex: 1 1 180px; margin: 0; min-width: 150px; }
.registry-toolbar > select { flex: 1 1 180px; width: auto; min-width: 150px; }
.registry-toolbar .field > span { color: #5f7053; font-size: 13px; font-weight: 600; }
.registry-toolbar input, .registry-toolbar select { min-height: 48px; font-size: 16px; }
.registry-toolbar .search-box { flex: 1 1 250px; max-width: none; }
.registry-toolbar > .btn { flex-shrink: 0; min-height: 48px; }
.registry-toolbar .filter-tabs { flex-wrap: wrap; flex-basis: 100%; padding: 0; margin: 0; overflow: visible; }
.registry-toolbar .filter-chip { min-height: 44px; font-size: 13px; }
.registry-toolbar [data-filter="declined"], .registry-toolbar [data-status="declined"], .registry-toolbar [data-attendance="declined"] { border-color: #c7d0bb; background: #edf1e6; color: #536646; font-weight: 600; }
.registry-toolbar [data-filter="declined"].active, .registry-toolbar [data-status="declined"].active, .registry-toolbar [data-attendance="declined"].active { border-color: #a87480; background: var(--primary-light); color: var(--primary-dark); }
.registry-table { overflow-x: auto; width: 100%; }
.registry-table table { min-width: 740px; }
.registry-table th { font-size: 11px; }
.registry-table td { font-size: 13px; }
.registry-table td > strong { font-size: 13px; }
.registry-table .guest-edit-trigger { min-width: 175px; min-height: 52px; }
.registry-table .guest-identity > strong { font-size: 15px; }
.registry-table .guest-identity > small { font-size: 12px; }
.registry-meta { display: block; margin-top: 6px; color: #67765b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.registry-meta > strong { color: #526647; font-size: inherit; font-weight: 600; }
.registry-meta > .icon { width: 16px; height: 16px; margin-right: 5px; vertical-align: text-bottom; }
.registry-cards { display: none; }
.registry-card { min-width: 0; padding: 18px; border: 1px solid #e1e7d7; border-radius: 13px; background: #fffefa; text-align: left; }
.registry-card.declined { border-color: #cfd7c4; background: #f0f3e9; box-shadow: inset 3px 0 0 #b0bda1; }
.registry-card > header, .registry-card .registry-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.registry-card .guest-edit-trigger { min-height: 52px; min-width: 0; padding: 0 0 12px; margin: 0; }
.registry-card .guest-edit-trigger .guest-identity > strong { font-size: 16px; }
.registry-card .guest-edit-trigger .guest-identity > small { font-size: 13px; }
.registry-card .guest-edit-trigger > .icon { width: 18px; height: 18px; }
.registry-card .guest-attendance { margin-top: 0; margin-bottom: 6px; }
.registry-card .registry-meta { margin-top: 10px; font-size: 13px; }
.registry-card .registry-meta + .registry-meta { margin-top: 7px; }
.registry-card .badge-stack { gap: 7px; margin: 11px 0; }
.registry-card .actions { gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #e3e8d9; }
.registry-card .actions > .btn { flex: 1; min-height: 48px; }
.envelope-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 5px 9px; border: 1px solid #e1d2ce; border-radius: 7px; background: #f7eeea; color: #885e53; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: normal; }
.envelope-badge > .icon, .envelope-badge > svg { width: 17px; height: 17px; flex-shrink: 0; }
.envelope-badge.pending { border-color: #e4d3a3; background: #fff3d7; color: #795d26; }
.envelope-badge.received { border-color: #cbd9bb; background: #edf4e4; color: #52703e; }
.envelope-badge.not_received { border-color: #d8ddd0; background: #eff2e9; color: #637354; }
button.envelope-badge { min-height: 44px; min-width: 44px; cursor: pointer; }
button.envelope-badge:hover { border-color: #aa867e; }

@media (min-width: 761px) and (max-height: 900px) {
  .sidebar:has(.wedding-countdown) { overflow-y: auto; scrollbar-width: thin; }
  .sidebar-footer:has(.wedding-countdown) { padding-top: 18px; }
  .sidebar-footer .wedding-countdown { margin-bottom: 13px; }
}

@media (max-width: 1100px) {
  .registry-summary { gap: 12px; }
  .registry-stat { padding: 18px 16px; }
  .registry-toolbar { padding: 20px; }
}

@media (max-width: 760px) {
  .mobile-countdown { display: grid; }
  .wedding-countdown.mobile-countdown { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; row-gap: 4px; margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; text-align: left; }
  .wedding-countdown.mobile-countdown > small:first-child { grid-column: 1; grid-row: 1; margin: 0; font-size: 14px; }
  .wedding-countdown.mobile-countdown > small:last-child { grid-column: 1; grid-row: 2; margin: 0; font-size: 13px; color: #71674f; }
  .wedding-countdown.mobile-countdown .countdown-number { grid-column: 2; grid-row: 1 / 3; font-size: 37px; }
  .wedding-countdown.mobile-countdown .countdown-unit { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 14px; }
  .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .sidebar nav button { min-height: 54px; padding: 8px 4px; font-size: 13px; }
  .registry-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 20px; }
  .registry-summary > :first-child { grid-column: 1 / -1; }
  .registry-stat { min-height: 110px; padding: 17px; gap: 10px; }
  .registry-stat > strong, .registry-stat .registry-count { font-size: 29px; }
  .registry-stat > span, .registry-stat > small { font-size: 13px; color: #56694a; }
  .registry-toolbar { align-items: stretch; padding: 18px 16px; gap: 14px; }
  .registry-toolbar .field { flex: 1 1 100%; min-width: 0; }
  .registry-toolbar > select { flex: 1 1 100%; min-width: 0; }
  .registry-toolbar .field > span { font-size: 14px; }
  .registry-toolbar .search-box { flex: 1 1 100%; min-width: 0; }
  .registry-toolbar > .btn { flex: 1; min-height: 48px; }
  .registry-toolbar .filter-tabs { gap: 8px; }
  .registry-toolbar .filter-chip { min-height: 48px; padding: 10px 12px; font-size: 13px; }
  .registry-table { display: none; }
  .registry-cards { display: grid; gap: 12px; padding: 16px 13px; }
  .registry-card { padding: 17px; }
  .registry-card .guest-edit-trigger { min-height: 56px; }
  .registry-card .guest-edit-trigger .guest-identity > strong { font-size: 16px; }
  .registry-card .registry-meta { font-size: 13px; color: #56694a; }
  .registry-card .guest-attendance, .registry-card .badge { font-size: 13px; }
  .registry-card .envelope-badge { margin-top: 8px; padding: 6px 9px; font-size: 13px; }
  .envelope-badge { font-size: 13px; }
  button.envelope-badge { min-height: 48px; }
}

@media (max-width: 359px) {
  .wedding-countdown.mobile-countdown { padding: 15px; column-gap: 6px; }
  .wedding-countdown.mobile-countdown > small:first-child { font-size: 13px; }
  .wedding-countdown.mobile-countdown > small:last-child { font-size: 12px; }
  .wedding-countdown.mobile-countdown .countdown-number { font-size: 32px; }
  .registry-stat { padding: 15px; }
}

@media print {
  .mobile-countdown, .registry-toolbar { display: none !important; }
  .registry-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registry-summary > :first-child { grid-column: auto; }
  .registry-stat, .registry-card { break-inside: avoid; box-shadow: none; }
  .registry-table { display: block; overflow: visible; }
  .registry-table table { min-width: 0; }
  .registry-cards { display: none; }
  .envelope-badge { border-color: #aaa; background: white; color: #333; }
}

.registry-toolbar .filter-tabs > .btn { min-height: 48px; font-size: 13px; }
.registry-toolbar [data-filter="declined"][aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: white; }
.registry-card .registry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 5px 0 16px; }
.registry-card .registry-meta .envelope-badge { margin: 0; }
.registry-card > .btn { width: 100%; min-height: 48px; font-size: 14px; }
.guest-conflict-panel { margin: 22px 0 8px; padding: 18px; border: 1px solid #dccb9a; border-radius: 12px; background: #fffbef; color: #554b35; }
.guest-conflict-panel h3 { margin: 0 0 10px; font-size: 18px; }
.guest-conflict-panel > p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.guest-conflict-choice + .guest-conflict-choice { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e4d8b6; }
.guest-conflict-choice h4 { margin: 0 0 10px; font-size: 16px; }
.guest-conflict-values { padding: 12px; margin-bottom: 10px; background: white; border-radius: 8px; }
.guest-conflict-values > strong { font-size: 14px; }
.guest-conflict-values p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-conflict-values p > span { display: block; color: #7b725f; font-size: 12px; font-weight: 600; }
.guest-conflict-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.guest-conflict-actions .btn { flex: 1 1 180px; min-height: 48px; white-space: normal; font-size: 14px; line-height: 1.4; }

/* Habitaciones configuradas, capacidad y compañeros de estancia. */
.registry-table .guest-edit-trigger { padding: 8px 10px; margin: -8px -10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; }
.registry-table .guest-edit-trigger:hover, .registry-table .guest-edit-trigger:focus-visible { background: var(--primary-light); }
.hotel-inventory-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; padding: 18px; border: 1px solid #e1e7d6; border-radius: 12px; background: #f7f9f2; }
.hotel-inventory-card > h3 { grid-column: 1 / -1; margin: 0 0 2px; color: #4f6442; font-size: 16px; line-height: 1.35; }
.hotel-inventory-card > p, .hotel-inventory-card > small { grid-column: 1 / -1; color: #68795a; font-size: 13px; line-height: 1.6; }
.hotel-inventory-card .room-type-grid, .hotel-inventory-card > div:has(> .room-type-summary) { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.room-type-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 7px; min-width: 0; padding: 15px 13px; border: 1px solid #e0e7d4; border-radius: 9px; background: #fffefa; }
.room-type-summary > strong { display: block; margin-bottom: 2px; color: #617c4c; font-size: 28px; font-weight: 550; line-height: 1.1; font-variant-numeric: tabular-nums; }
.room-type-summary > span, .room-type-summary > label { display: block; color: #4e6340; font-size: 13px; font-weight: 600; line-height: 1.4; }
.room-type-summary > small, .room-type-summary > p { display: block; color: #6d7d5f; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.hotel-inventory-card > .btn, .hotel-inventory-card > button { grid-column: 1 / -1; min-height: 48px; margin-top: 2px; font-size: 13px; }
.hotel-inventory-card > .actions { grid-column: 1 / -1; }
.hotel-inventory-card .actions > .btn { min-height: 48px; flex: 1; }
.room-card.empty-room { border-style: dashed; border-color: #d1dbc3; background: #fcfdf9; }
/* Each night has its own reservation and occupancy count. */
.hotel-night-card { grid-column: 1 / -1; min-width: 0; padding: 16px; border: 1px solid #d7e1ca; border-radius: 12px; background: #fffefa; }
.hotel-night-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hotel-night-heading > div:first-child > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #75816b; }
.hotel-night-heading h4 { margin: 6px 0 0; color: #3f5735; font-size: 18px; line-height: 1.45; }
.hotel-night-heading h4 > span { color: #8a9b7b; }
.hotel-night-total { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px; border-radius: 10px; background: #edf3e5; color: #526c3e; }
.hotel-night-total strong { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hotel-night-total > span { margin-top: 3px; font-size: 11px; }
.hotel-night-card .room-type-summary { padding: 12px; background: #f9faf5; }
@media(max-width: 640px) {
  .hotel-night-card { padding: 13px; }
  .hotel-night-heading { gap: 8px; }
  .hotel-night-heading h4 { font-size: 17px; }
  .hotel-inventory-card .hotel-night-card .room-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotel-night-card .room-type-summary { padding: 10px; }
  .hotel-night-card .room-type-summary > small { font-size: 12px; }
}
.room-card.empty-room > div { background: #f3f7ec; }
.room-card.empty-room > p { padding: 13px; margin: 0; color: #6b7e59; font-size: 13px; line-height: 1.5; }
.room-card.empty-room > small { display: block; padding: 12px 13px; color: #6b7e59; font-size: 12px; line-height: 1.5; }
.room-card.full-room { border-color: #c4d3b2; }
.room-card.full-room > div { background: #edf3e4; }
.room-card.full-room > div .badge { color: #597342; background: #e3edd7; border: 1px solid #cbdabb; font-size: 12px; }
.room-card > div > strong { min-width: 0; line-height: 1.4; }
.room-card > div > .badge { flex-shrink: 0; }
#room-selection { grid-column: 1 / -1; min-width: 0; }
#room-selection > .field { margin: 0; }
#hotel-fields input, #hotel-fields select { min-height: 48px; font-size: 16px; }
#room-selection select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
#room-selection .field > small, #room-selection > small { color: #657857; font-size: 12px; line-height: 1.55; }
#room-occupants { grid-column: 1 / -1; }
.room-occupants-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; padding: 14px; border: 1px solid #dce6cf; border-radius: 10px; background: #f5f9ee; color: #576d47; font-size: 13px; line-height: 1.5; }
.room-occupants-preview:empty { display: none; }
.room-occupants-preview > strong { flex-basis: 100%; color: #4f673e; font-size: 13px; font-weight: 600; }
.room-occupants-preview > p, .room-occupants-preview > small { flex-basis: 100%; color: #637956; font-size: 12px; line-height: 1.6; }
.room-occupants-preview .guest-chip, .room-occupants-preview .occupant-chip, .room-occupants-preview > span:not(.badge) { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid #d8e3ca; border-radius: 7px; background: #fffefa; color: #536e40; font-size: 13px; font-weight: 500; line-height: 1.4; }
.room-occupants-preview .icon { width: 16px; height: 16px; flex-shrink: 0; }
.room-occupants-preview button { min-height: 48px; font-size: 13px; }
#hotel-inventory-form .field > span { font-size: 14px; line-height: 1.45; }
#hotel-inventory-form .field > small { font-size: 12px; color: #657857; line-height: 1.55; }
#hotel-inventory-form input[type="number"] { min-height: 50px; padding: 11px 13px; font-size: 18px; font-variant-numeric: tabular-nums; }
#hotel-inventory-form .warning-strip, #hotel-inventory-form .inventory-warning { display: block; margin: 17px 0 0; padding: 14px 15px; border: 1px solid #e6d6ac; border-radius: 9px; background: #fff8e9; color: #7a6335; font-size: 13px; line-height: 1.6; }
#hotel-inventory-form .modal-footer .btn, #hotel-inventory-form .form-footer .btn { min-height: 48px; }

@media (max-width: 760px) {
  .hotel-inventory-card { gap: 11px; padding: 15px; margin: 21px 0; }
  .hotel-inventory-card > h3 { font-size: 16px; }
  .hotel-inventory-card .room-type-grid, .hotel-inventory-card > div:has(> .room-type-summary) { gap: 10px; }
  .room-type-summary { padding: 14px 11px; gap: 7px; }
  .room-type-summary > strong { font-size: 28px; }
  .room-type-summary > span, .room-type-summary > label { font-size: 13px; }
  .room-type-summary > small, .room-type-summary > p { font-size: 13px; color: #596e49; }
  .hotel-inventory-card > .btn, .hotel-inventory-card > button { font-size: 14px; }
  .room-card.empty-room > p, .room-card.empty-room > small { font-size: 13px; }
  .room-card.full-room > div .badge { font-size: 12px; }
  .room-card > div { flex-wrap: wrap; gap: 8px; }
  .room-card > div > span:last-child { margin-left: 0; }
  .room-card > div > strong { font-size: 13px; }
  .room-card > button { min-height: 52px; }
  #room-selection .field > small, #room-selection > small { font-size: 13px; }
  .room-occupants-preview { padding: 14px; gap: 9px; }
  .room-occupants-preview > strong { font-size: 14px; }
  .room-occupants-preview > p, .room-occupants-preview > small { font-size: 13px; color: #566e47; }
  .room-occupants-preview .guest-chip, .room-occupants-preview .occupant-chip, .room-occupants-preview > span:not(.badge) { font-size: 14px; }
  #hotel-inventory-form .field > small { font-size: 13px; }
  #hotel-inventory-form .warning-strip, #hotel-inventory-form .inventory-warning { font-size: 13px; }
}

@media (max-width: 359px) {
  .hotel-inventory-card, .hotel-inventory-card .room-type-grid, .hotel-inventory-card > div:has(> .room-type-summary) { grid-template-columns: 1fr; }
  .room-type-summary { display: grid; grid-template-columns: auto 1fr; gap: 5px 13px; align-items: center; }
  .room-type-summary > strong { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .room-type-summary > span, .room-type-summary > label, .room-type-summary > small, .room-type-summary > p { grid-column: 2; }
}

@media print {
  .hotel-inventory-card { break-inside: avoid; background: #fafbf7; }
  .hotel-inventory-card .btn, .hotel-inventory-card > button { display: none; }
  .room-card, .room-type-summary { break-inside: avoid; }
  .room-card.empty-room { border-color: #aaa; }
}

/* Catálogo por tipo de habitación y tramos de reserva. */
.hotel-room-type { margin: 13px 0; border: 1px solid #dce5d1; border-radius: 11px; background: #fffefa; }
.hotel-room-type > summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 54px; padding: 15px; border-radius: 10px; color: #526b42; background: #f7f9f1; font-size: 14px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.hotel-room-type > summary::-webkit-details-marker { display: none; }
.hotel-room-type > summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-left: auto; border: 1px solid #d3dfc5; border-radius: 50%; color: #6e855b; background: #fffefa; font-size: 18px; font-weight: 400; line-height: 1; }
.hotel-room-type[open] > summary { border-bottom: 1px solid #e0e8d6; border-radius: 10px 10px 0 0; background: #eff4e7; }
.hotel-room-type[open] > summary::after { content: "−"; }
.hotel-room-type > summary:hover { color: #435d34; background: #edf3e3; }
.hotel-room-type > summary:focus-visible { outline: 3px solid #a96d77; outline-offset: -3px; }
.hotel-room-type > .room-list { margin: 0; padding: 13px; border-radius: 0 0 10px 10px; background: #fcfdf9; }
.hotel-room-type > .room-list > .room-card:last-child { margin-bottom: 0; }
.room-card > .room-booking-dates, .room-card.empty-room > .room-booking-dates { margin: 0; padding: 10px 13px; border-bottom: 1px solid #e8edde; background: #fafcf5; color: #5d7350; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.room-card.empty-room > .section-help { padding: 13px; color: #6a7e58; font-size: 13px; }
#booking-blocks { margin: 16px 0; }
.reservation-block { padding: 18px; margin-bottom: 15px; border: 1px solid #d9e3ce; border-radius: 12px; background: #fafcf6; }
.reservation-block:last-child { margin-bottom: 0; }
.reservation-block:focus-within { border-color: #b3c69f; box-shadow: 0 0 0 2px #aabc910c; }
.reservation-block > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 17px; padding: 0; }
.reservation-block > .form-grid > .field:first-child { grid-column: 1 / -1; }
.reservation-block .field { min-width: 0; }
.reservation-block input, .reservation-block select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; background: #fffefa; }
.reservation-block input[type="date"] { padding-left: 10px; padding-right: 10px; font-variant-numeric: tabular-nums; }
.reservation-block > .btn.text { display: flex; width: fit-content; min-height: 48px; margin: 12px -8px -5px auto; padding: 9px 8px; border-radius: 7px; color: #976357; font-size: 13px; }
.reservation-block > .btn.text:hover { color: #844c40; background: #f8eae5; text-decoration: none; }
#hotel-inventory-form .reservation-block .field > span { font-size: 13px; color: #566e47; line-height: 1.5; }
#hotel-inventory-form [data-action="add-room-block"] { width: 100%; min-height: 48px; padding: 12px 15px; border-color: #bbcca8; background: #fffefa; color: #5e7949; font-size: 14px; }
#hotel-inventory-form [data-action="add-room-block"]:hover { background: #f2f7e9; border-color: #9eb585; }
#hotel-inventory-form .modal-body > h3 { margin-top: 27px; margin-bottom: 11px; color: #51683f; font-size: 16px; }
#hotel-inventory-form .modal-body > .section-help { color: #647856; font-size: 13px; line-height: 1.65; }

@media (max-width: 760px) {
  .hotel-room-type { margin: 13px 0; }
  .hotel-room-type > summary { min-height: 56px; padding: 14px 13px; font-size: 14px; }
  .hotel-room-type > .room-list { padding: 10px; }
  .room-card > .room-booking-dates, .room-card.empty-room > .room-booking-dates { padding: 11px 12px; font-size: 13px; }
  .reservation-block { padding: 15px 14px; border-radius: 10px; }
  .reservation-block > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
  .reservation-block > .form-grid > .field:first-child { grid-column: 1 / -1; }
  #hotel-inventory-form .reservation-block input[type="number"] { min-height: 48px; padding: 10px 12px; font-size: 16px; }
  #hotel-inventory-form .reservation-block .field > span { font-size: 13px; }
  .reservation-block > .btn.text { min-height: 48px; font-size: 14px; }
  #hotel-inventory-form .modal-body > h3 { font-size: 16px; }
}

@media (max-width: 359px) {
  .reservation-block > .form-grid { grid-template-columns: 1fr; }
  .reservation-block > .form-grid > .field { grid-column: 1; }
}

@media print {
  .hotel-room-type { break-inside: avoid; border-color: #b9c1b0; }
  .hotel-room-type > summary { color: #3d4e31; background: #f1f4eb; }
  .hotel-room-type > summary::after { display: none; }
  .room-card > .room-booking-dates { color: #3d4e31; }
}

/* Evita comprimir los tipos de habitación junto a la barra lateral. */
.room-type-summary > small, .room-type-summary > p { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 1100px) {
  .hotel-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.room-occupants-preview .badge { white-space: normal; max-width: 100%; display: inline-block; overflow-wrap: anywhere; line-height: 1.5; text-align: left; }

/* El color del invitado identifica su lista, también en llegadas y cancelaciones. */
.avatar[data-owner="father"], .owner-filter[data-owner="father"], .seating-owner-filter[data-owner="father"] { --owner-background: #dcecf8; --owner-foreground: #285477; --owner-marker: #477ca4; }
.avatar[data-owner="mother"], .owner-filter[data-owner="mother"], .seating-owner-filter[data-owner="mother"] { --owner-background: #f7e0e8; --owner-foreground: #813b56; --owner-marker: #b96082; }
.avatar[data-owner="xinxin"], .owner-filter[data-owner="xinxin"], .seating-owner-filter[data-owner="xinxin"] { --owner-background: #ece3fa; --owner-foreground: #654382; --owner-marker: #8e66b4; }
.avatar[data-owner="junjie"], .owner-filter[data-owner="junjie"], .seating-owner-filter[data-owner="junjie"] { --owner-background: #deeee5; --owner-foreground: #31634b; --owner-marker: #53866b; }
.avatar[data-owner="staff"], .owner-filter[data-owner="staff"], .seating-owner-filter[data-owner="staff"] { --owner-background: #fff0ce; --owner-foreground: #79531c; --owner-marker: #b88a39; }
.avatar[data-owner="unassigned"] { --owner-background: #eceee9; --owner-foreground: #586052; }
.avatar[data-owner], .arrival-row .avatar[data-owner], .guest-row-declined .avatar[data-owner], .guest-card.declined .avatar[data-owner] { background: var(--owner-background, #eceee9); color: var(--owner-foreground, #586052); }
.owner-filter:is([data-owner="father"], [data-owner="mother"], [data-owner="xinxin"], [data-owner="junjie"], [data-owner="staff"]) .owner-filter-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--owner-marker); vertical-align: 1px; }

/* Plano proporcional del salón: las mesas conservan un tamaño cómodo al desplazarlo. */
.seating-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.seating-layout > *, .floorplan-panel { min-width: 0; }
.seating-layout .seating-sidebar { display: flex; flex-direction: column; }
.seating-layout .panel-header h2 { color: #26354b; font-size: 24px; font-weight: 700; line-height: 1.3; }
.seating-layout .seating-sidebar .eyebrow { color: #526176; font-size: 14px; }
.seating-layout .seating-sidebar > h3,
.seating-layout .unassigned h3 { color: #26354b; font-size: 22px; font-weight: 700; line-height: 1.35; }
.seating-layout .unassigned h3 { gap: 12px; }
.seating-layout .unassigned h3 > span { flex-shrink: 0; padding: 3px 10px; border-radius: 8px; background: #edf1f7; color: #3b506d; font-size: 18px; font-weight: 700; }
.seating-layout .seating-sidebar .section-help { font-size: 15px; line-height: 1.5; }
.floorplan-panel > .panel-header { gap: 18px; flex-wrap: wrap; }
.floorplan-panel > .panel-header > span { color: #65715e; font-size: 12px; }
.seating-toolbar { align-items: center; gap: 10px; padding: 16px 22px; background: #fffefa; }
.seating-toolbar .btn { min-height: 44px; min-width: 44px; }
.seating-toolbar .btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.seating-toolbar > small, .seating-toolbar .section-help { color: #65715e; font-size: 12px; line-height: 1.5; }
.seating-plan-note { padding: 12px 22px; border-bottom: 1px solid var(--line); background: #f9faf5; color: #637358; font-size: 13px; line-height: 1.6; }
.seating-unassigned-list { max-height: 400px; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-color: #b8c2ab #f3f5ed; }
.seating-table-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 20px; color: #526448; font-size: 13px; font-weight: 600; }
.seating-table-picker select { min-width: 160px; min-height: 48px; max-width: 100%; border: 1px solid #cfd8c4; border-radius: 9px; padding: 10px 34px 10px 12px; background: white; color: #36452e; font-size: 16px; }
.seating-guest-search { display: grid; gap: 10px; width: 100%; margin: 0 0 20px; padding: 0; border: 0; background: transparent; color: #26354b; font-size: 20px; font-weight: 700; line-height: 1.4; }
.seating-search-control { position: relative; min-width: 0; }
.seating-guest-search input { display: block; width: 100%; min-width: 0; min-height: 56px; padding: 12px 58px 12px 14px; border: 2px solid #5777ac; border-radius: 10px; background: #f8fbff; color: #26354b; font-size: 18px; font-weight: 400; line-height: 1.4; }
.seating-guest-search input::placeholder { color: #53657d; opacity: 1; }
.seating-guest-search input:focus { border-color: #315d9e; outline: 3px solid #aac6ed; outline-offset: 2px; box-shadow: none; }
.seating-guest-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.seating-search-clear { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: #e8eef7; color: #315d9e; font-size: 28px; font-weight: 600; line-height: 1; cursor: pointer; }
.seating-search-clear:hover { background: #dce7f5; }
.seating-search-clear:focus-visible { outline: 3px solid #315d9e; outline-offset: 1px; }
.floorplan-viewport { width: 100%; max-width: 100%; max-height: clamp(260px, 60vh, 560px); overflow: auto; overscroll-behavior: auto; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-overflow-scrolling: touch; background: #f7f7f1; scrollbar-color: #b8c2ab #eeefe7; scrollbar-width: auto; }
.floorplan-viewport:has(.venue-room.is-editing), .floorplan-viewport.is-interactive { touch-action: none; }
.floorplan-viewport:focus-visible { outline-offset: -4px; }
.venue-canvas { width: max(100%, var(--plan-width, 1100px)); max-width: none; padding: 56px 76px 82px; }
.floorplan.venue-room { position: relative; width: 100%; height: auto; aspect-ratio: 35.36 / 15.35; overflow: visible; border: 3px solid #818e76; border-radius: 3px; background-color: #fffefa; background-image: none; box-shadow: 0 4px 16px #5262430b; isolation: isolate; touch-action: pan-x pan-y; }
.venue-stage { position: absolute; z-index: 1; top: 0; right: 0; width: 10.3733%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px 8px; border-left: 2px solid #bcc5af; background: #e7eddf; color: #435839; text-align: center; }
.venue-stage strong, .venue-stage > span { font-size: 13px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.venue-stage small { font-size: 11px; line-height: 1.5; color: #5b6f4f; }
.venue-stage .icon { width: 23px; height: 23px; color: #687e5b; }
.venue-room .seat-table { z-index: 2; width: 5.09%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 1; padding: 3px 1px; border: 2px solid #a7b79b; border-radius: 50%; background: #edf2e7; color: #425637; box-shadow: 0 2px 4px #4558360c; cursor: pointer; touch-action: pan-x pan-y; }
.venue-room .seat-table.rect, .venue-room .seat-table.rectangle, .venue-room .seat-table.long { width: 6.3%; min-width: 0; height: auto; aspect-ratio: 1.4; border-radius: 9px; }
.venue-room .seat-table.square { border-radius: 8px; }
.venue-room .seat-table > span.table-number { position: relative; z-index: 1; display: block; max-width: 100%; font-size: 16px; line-height: 1.1; font-family: inherit; font-weight: 700; }
.venue-room .seat-table > small { position: relative; z-index: 1; margin-top: 3px; font-size: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.venue-room .seat-table { container-type: inline-size; }
.venue-room .seat-table > small.table-full { display: block; margin-top: 2px; font-size: 8px; font-size: clamp(5px, 24cqw, 10px); font-weight: 700; line-height: 1; }
@media (max-width: 640px), (pointer: coarse) {
  .venue-canvas:not(.is-compact) .venue-room .seat-table > span.table-number { font-size: 19px; }
  .venue-canvas:not(.is-compact) .venue-room .seat-table > small { font-size: 14px; line-height: 1.1; }
}
.venue-room .seat-table:hover { border-color: #68875a; background: #e8f0df; box-shadow: 0 0 0 4px #c8d6b85c; }
.venue-room .seat-table.selected, .venue-room .seat-table[aria-pressed="true"] { z-index: 3; border-color: #995765; background: #f5e3e7; color: #793d4a; box-shadow: 0 0 0 5px #e5c4cd69; }
.venue-room .seat-table:focus-visible { z-index: 4; outline: 3px solid #843d47; outline-offset: 8px; }
.venue-room .seat-table.over-capacity { border-color: #ba7844; background: #fcf0de; color: #845025; }
.venue-room.is-editing .seat-table, .venue-room[data-move-mode="true"] .seat-table { cursor: grab; touch-action: none; }
.venue-room .seat-table.dragging { z-index: 5; cursor: grabbing; box-shadow: 0 6px 12px #44573730; }
.venue-chairs { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.venue-chairs i { position: absolute; top: 50%; left: 50%; width: 20%; height: 14%; min-width: 8px; min-height: 6px; border: 1px solid #aeba9f; border-radius: 3px 3px 2px 2px; background: #dfe8d6; transform: translate(-50%, -50%) rotate(var(--angle, var(--chair-angle, 0deg))) translateY(-420%); }
.venue-room .seat-table.selected .venue-chairs i, .venue-room .seat-table[aria-pressed="true"] .venue-chairs i { border-color: #bc8a96; background: #e7cbd2; }
.venue-room .seat-table.over-capacity .venue-chairs i { border-color: #c49b6a; background: #eed9b7; }
.venue-door { position: absolute; z-index: 4; color: #556b45; font-size: 12px; line-height: 1.4; font-weight: 600; pointer-events: none; }
.venue-door strong, .venue-door span { display: block; }
.venue-door small { display: block; margin-top: 2px; color: #68795a; font-size: 10px; font-weight: 400; }
.venue-door .icon { width: 17px; height: 17px; }
.door-main-left { top: 50%; transform: translateY(-50%); }
.door-main-left { left: -57px; width: 45px; text-align: right; }
.door-main-left::after { content: ""; position: absolute; top: 50%; width: 7px; height: 48px; transform: translateY(-50%); border-top: 2px solid #818e76; border-bottom: 2px solid #818e76; background: #fffefa; }
.door-main-left::after { right: -16px; }
.door-room2, .door-restroom-men, .door-restroom-women { top: calc(100% + 12px); width: 150px; transform: translateX(-50%); text-align: center; }
.door-room2 { left: 28.5%; }
.door-restroom-men { left: 68.8%; }
.door-restroom-women { left: 83.1%; }
.door-room2::before, .door-restroom-men::before, .door-restroom-women::before { content: ""; position: absolute; top: -16px; left: 50%; width: 40px; height: 7px; transform: translateX(-50%); border-left: 2px solid #818e76; border-right: 2px solid #818e76; background: #fffefa; }
.venue-dimension { position: absolute; color: #7c8573; font-size: 11px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; }
.venue-dimension.dimension-width, .venue-dimension-width { left: 0; bottom: -65px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; }
.venue-dimension.dimension-width::before, .venue-dimension.dimension-width::after, .venue-dimension-width::before, .venue-dimension-width::after { content: ""; flex: 1; border-top: 1px solid #b9c3af; }
.venue-dimension.dimension-height, .venue-dimension-height { top: 0; bottom: 0; left: -73px; display: flex; align-items: center; justify-content: center; gap: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
.venue-dimension.dimension-height::before, .venue-dimension.dimension-height::after, .venue-dimension-height::before, .venue-dimension-height::after { content: ""; flex: 1; border-left: 1px solid #b9c3af; }
.seating-layout .floorplan-legend { gap: 13px 22px; flex-wrap: wrap; padding: 15px 22px; color: #607351; font-size: 12px; }
.seating-layout .floorplan-legend > span { gap: 7px; }
.seating-layout .legend-dot { width: 9px; height: 9px; }
.seating-layout .seating-sidebar .unassigned { min-width: 0; }
.seating-layout .seating-sidebar .unassigned-person { min-height: 52px; gap: 14px; font-size: 14px; }
.seating-layout .seating-sidebar .unassigned-person > span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; flex: 1; }
.seating-layout .seating-sidebar .unassigned-person .guest-identity { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.seating-layout .seating-sidebar .unassigned-person > span > .diet-text { flex-basis: 100%; padding-left: 48px; margin-top: 0; }
.seating-layout .seating-sidebar .unassigned-person small { color: #6b795e; font-size: 12px; }
.seating-layout .seating-sidebar .unassigned-person:focus-visible { outline-offset: -3px; }
.seating-layout .seating-sidebar .seated-person { min-height: 54px; gap: 12px; }
.seating-layout .seating-sidebar .seated-person .icon-button { min-width: 44px; min-height: 44px; }
.seating-layout .seating-sidebar .move-controls .btn { min-width: 44px; min-height: 44px; }

.venue-canvas.is-overview, .floorplan-viewport.is-overview .venue-canvas { width: 100%; padding: 38px 40px 66px; }
:is(.is-overview, .is-compact) .venue-room .seat-table, .venue-room:is(.is-overview, .is-compact) .seat-table { min-width: 0; min-height: 0; padding: 0; border-width: 1px; }
:is(.is-overview, .is-compact) .venue-room .seat-table > span.table-number, .venue-room:is(.is-overview, .is-compact) .seat-table > span.table-number { font-size: clamp(7px, 1vw, 14px); line-height: 1; }
:is(.is-overview, .is-compact) .venue-room .seat-table > small, .venue-room:is(.is-overview, .is-compact) .seat-table > small { display: none; }
:is(.is-overview, .is-compact) .venue-room .seat-table > small.table-full, .venue-room:is(.is-overview, .is-compact) .seat-table > small.table-full { display: block; margin-top: 0; }
:is(.is-overview, .is-compact) .venue-chairs i { min-width: 0; min-height: 0; border-width: .5px; border-radius: 1px; }
:is(.is-overview, .is-compact) .venue-stage { gap: 4px; padding: 4px 2px; border-left-width: 1px; }
:is(.is-overview, .is-compact) .venue-stage strong, :is(.is-overview, .is-compact) .venue-stage > span { font-size: clamp(7px, 1vw, 12px); writing-mode: vertical-rl; text-orientation: mixed; }
:is(.is-overview, .is-compact) .venue-stage small { display: none; }
:is(.is-overview, .is-compact) .venue-stage .icon { width: 14px; height: 14px; }
:is(.is-overview, .is-compact) .door-main-left { width: 21px; font-size: 0; }
:is(.is-overview, .is-compact) .door-main-left { left: -26px; }
:is(.is-overview, .is-compact) .door-main-left::before { content: "↔"; display: block; font-size: 16px; line-height: 1; color: #526b41; }
:is(.is-overview, .is-compact) .door-main-left small, :is(.is-overview, .is-compact) .door-main-left .icon { display: none; }
:is(.is-overview, .is-compact) .door-main-left::after { right: -9px; height: 24px; }
:is(.is-overview, .is-compact) .door-room2, :is(.is-overview, .is-compact) .door-restroom-men, :is(.is-overview, .is-compact) .door-restroom-women { top: calc(100% + 9px); width: 70px; font-size: 8px; }
:is(.is-overview, .is-compact) .door-restroom-men, :is(.is-overview, .is-compact) .door-restroom-women { width: 13%; font-size: 7px; overflow-wrap: anywhere; }
:is(.is-overview, .is-compact) .door-room2::before, :is(.is-overview, .is-compact) .door-restroom-men::before, :is(.is-overview, .is-compact) .door-restroom-women::before { top: -13px; width: 20px; }
:is(.is-overview, .is-compact) .venue-door small { font-size: 7px; }
:is(.is-overview, .is-compact) .venue-dimension { font-size: 9px; }
:is(.is-overview, .is-compact) .venue-dimension.dimension-height, :is(.is-overview, .is-compact) .venue-dimension-height { left: -36px; gap: 8px; }
:is(.is-overview, .is-compact) .venue-dimension.dimension-width, :is(.is-overview, .is-compact) .venue-dimension-width { bottom: -55px; }

/* One page scroll on stacked layouts: swiping guest names also moves the page. */
.seating-back-plan { display: none; }
@media (max-width: 1600px) {
  .seating-layout .seating-unassigned-list { max-height: none; overflow: visible; }
  .seating-layout { padding-bottom: 72px; }
  .seating-back-plan { display: inline-flex; position: fixed; right: 22px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; min-height: 48px; padding: 12px 18px; border-radius: 30px; box-shadow: 0 4px 20px #26302026; font-size: 15px; }
}
@media print { .seating-back-plan { display: none; } }

@media (min-width: 1601px) {
  .seating-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .seating-layout .seating-sidebar { position: sticky; top: 20px; }
}

@media (max-width: 760px) {
  .seating-layout { gap: 18px; }
  .seating-toolbar { gap: 9px; padding: 14px; }
  .seating-plan-note { padding: 11px 14px; font-size: 12px; }
  .seating-toolbar .btn { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .seating-table-picker { width: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 14px; }
  .seating-table-picker select { flex: none; width: 100%; min-width: 0; max-width: none; }
  .seating-toolbar > small, .seating-toolbar .section-help { width: 100%; font-size: 12px; }
  .seating-layout .floorplan-legend { padding: 14px; font-size: 12px; }
  .seating-layout .seating-sidebar .unassigned-person { font-size: 15px; }
  .seating-layout .seating-sidebar .panel-header { flex-wrap: wrap; gap: 12px; }
}

@media print {
  .seating-layout { display: block; }
  .floorplan-viewport { overflow: visible; height: auto !important; max-height: none; }
  .venue-canvas { width: 100%; padding: 45px 65px 75px; }
  .venue-room .seat-table { min-width: 0; min-height: 0; }
  .venue-room .seat-table > span.table-number { font-size: 10px; }
  .venue-room .seat-table > small { font-size: 7px; }
  .venue-chairs i { min-width: 0; min-height: 0; }
  .venue-stage strong, .venue-stage > span, .venue-door { font-size: 9px; }
  .venue-door small, .venue-stage small { font-size: 8px; }
  .seating-toolbar, .seating-guest-search { display: none; }
}

/* Read-only settings stay legible for family profiles. Downloads are outside the fieldsets. */
.settings-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-fields:disabled input { opacity: 1; color: #59644f; -webkit-text-fill-color: #59644f; background: #f3f4ef; cursor: default; }

/* Chair geometry follows the whole table at every zoom level. */
.venue-room .seat-table > .venue-chairs { max-width: none; }
.venue-room .venue-chairs .rect-chair { transform: translate(-50%, -50%) rotate(var(--angle)); }

/* Selección combinable de listas para encontrar invitados sin mesa. */
.seating-owner-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 10px; }
.seating-owner-filter { display: grid; grid-template-columns: 10px minmax(0, 1fr) 16px; align-items: center; gap: 7px; min-width: 0; min-height: 48px; padding: 10px; border: 2px solid #dde3d6; border-radius: 10px; background: #fffefa; color: #526448; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: left; transition: border-color .15s, background .15s; }
.seating-owner-filter > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.seating-owner-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--owner-marker, #7b8475); }
.seating-owner-check { visibility: hidden; width: 16px; font-size: 16px; font-weight: 750; text-align: center; }
.seating-owner-filter:hover { border-color: var(--owner-marker, #7b8475); }
.seating-owner-filter.active, .seating-owner-filter[aria-pressed="true"] { border-color: var(--owner-marker, #7b8475); background: var(--owner-background, #eceee9); color: var(--owner-foreground, #586052); font-weight: 650; }
.seating-owner-filter.active .seating-owner-check, .seating-owner-filter[aria-pressed="true"] .seating-owner-check { visibility: visible; }
.seating-owner-filter:focus-visible { outline: 3px solid var(--owner-foreground, #586052); outline-offset: 3px; }
.seating-filter-help { margin: 0 0 16px; color: #68765d; font-size: 12px; line-height: 1.6; }

@media (min-width: 1100px) and (max-width: 1600px) {
  .seating-owner-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media print {
  .seating-owner-filters, .seating-filter-help { display: none; }
}

/* Herramientas del plano: la edición se presenta separada de la vista familiar. */
.plan-editor-tools { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid #e2deeb; background: #fbfaff; }
.plan-editor-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; padding: 14px 20px; }
.plan-editor-row + .plan-editor-row { border-top: 1px solid #e9e5f0; }
.plan-editor-row > strong, .plan-editor-row > label { color: #5c4c75; font-size: 13px; }
.plan-editor-tools .btn, .plan-group-actions .btn { min-height: 44px; min-width: 44px; padding: 10px 13px; font-size: 13px; white-space: normal; }
.plan-editor-tools .btn[aria-pressed="true"] { border-color: #8c76b0; background: #ece6f5; color: #594477; }
.plan-editor-options { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.plan-editor-tools > .plan-editor-options, .plan-editor-tools > .plan-group-actions { padding: 0 20px 14px; }
.plan-editor-options > .section-help { flex: 1 1 260px; min-width: 0; margin: 0; padding: 0; color: #756981; font-size: 12px; line-height: 1.6; }
.plan-editor-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; color: #5d5470; font-size: 13px; line-height: 1.4; }
.plan-editor-options input[type="checkbox"], .plan-selection-grid input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: #725592; }
.plan-editor-options input[type="number"], .plan-editor-options select { min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #d5ccdf; border-radius: 8px; background: white; color: #493b5d; font-size: 16px; }
.plan-selection-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 12px 20px; border-top: 1px solid #e5deee; background: #f2eef8; color: #5b4778; font-size: 13px; line-height: 1.5; }
.plan-selection-summary strong { font-weight: 650; }
.plan-group-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.plan-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; min-width: 0; padding: 0 20px 16px; }
.plan-selection-grid > button, .plan-selection-grid > label { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 9px 8px; border: 1px solid #dcd5e6; border-radius: 8px; background: white; color: #61536f; font-size: 13px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.plan-selection-grid > button[aria-pressed="true"], .plan-selection-grid > button.active, .plan-selection-grid > label:has(input:checked) { border-color: #927ab1; background: #eee7f8; color: #563c78; font-weight: 650; }
.plan-selection-grid > button:hover, .plan-selection-grid > label:hover { border-color: #a18abb; }
.plan-selection-grid > label:focus-within { outline: 3px solid #927ab1; outline-offset: 2px; }
.plan-position-form { min-width: 0; margin: 0; padding: 0; border: 0; }
.plan-position-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
.plan-position-form .modal-body > p { overflow-wrap: anywhere; }
.plan-position-form .field { min-width: 0; }
.plan-position-form input, .plan-position-form select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.plan-position-form .btn { min-height: 44px; }
.plan-spacing-report { min-width: 0; margin: 0 20px 20px; border: 1px solid #e6d8bd; border-radius: 11px; background: #fffaf1; color: #79582f; }
.plan-spacing-report > summary { padding: 14px 15px; cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1.5; }
.plan-spacing-report > summary:focus-visible { outline-offset: -3px; border-radius: inherit; }
.plan-spacing-report > p { padding: 0 15px 13px; font-size: 12px; line-height: 1.6; }
.plan-issue-list { list-style: none; margin: 0; padding: 0 15px 13px; }
.plan-issue-list > li, .plan-issue-list > .plan-issue-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 11px 0; border-top: 1px solid #eee3cf; font-size: 12px; line-height: 1.5; }
.plan-issue-list .btn, .plan-issue-list button { min-height: 44px; max-width: 100%; white-space: normal; }
.plan-issue-list > button.btn { display: flex; justify-content: flex-start; width: 100%; gap: 8px; padding: 12px 0; border: 0; border-top: 1px solid #eee3cf; border-radius: 0; background: transparent; color: #79582f; font-size: 12px; line-height: 1.5; text-align: left; }
.plan-issue-list strong { color: #74502a; }
.plan-spacing-report > summary .icon { width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px; }
.plan-import-preview { width: 100%; min-width: 0; margin: 18px 0; overflow: hidden; border: 1px solid #e2e4db; border-radius: 10px; background: #f9f7f1; }
.plan-import-preview > svg { display: block; width: 100%; max-width: 100%; height: auto; }

/* El paso libre se distingue de las zonas ocupadas por mesas y sillas. */
.plan-aisles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.venue-room .plan-aisle { position: absolute; z-index: 0; display: flex; align-items: center; justify-content: center; border: 1px dashed #9fb9d4; background-color: #eef5fa; background-image: repeating-linear-gradient(135deg, transparent 0, transparent 7px, #a6c1dc55 7px, #a6c1dc55 8px); color: #4f7597; pointer-events: none; }
.venue-room .plan-aisle > span { max-width: 100%; padding: 2px 6px; border-radius: 3px; background: #eff6fbd9; color: #486b8c; font-size: 11px; line-height: 1.35; text-align: center; }
.venue-room .plan-aisle > span > small { display: block; margin-top: 2px; font-size: 9px; line-height: 1.4; }
.venue-room .plan-aisle.is-vertical > span { writing-mode: vertical-rl; text-orientation: mixed; }
.venue-room .plan-entry-label { position: absolute; z-index: 1; left: 0; top: 50%; width: 12%; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); padding: 0 3px; color: #47698a; font-size: 10px; line-height: 1.2; text-align: center; pointer-events: none; }
.venue-room .plan-entry-label > strong { display: block; max-width: 100%; padding: 2px 4px; border-radius: 3px; background: #fffefae8; font-size: inherit; font-weight: 600; overflow-wrap: anywhere; }
.plan-measurements { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan-measurements .plan-clearance-halo { fill: #8baac00c; stroke: #8faec8; stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.plan-measurements .plan-clearance-halo.has-conflict { fill: #d79a4212; stroke: #bd853b; stroke-width: 1.5; }
.plan-measurements line, .plan-measurements path { fill: none; stroke: #678cad; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-measurements .has-conflict line, .plan-measurements line.has-conflict, .plan-measurements path.has-conflict { stroke: #bd853b; }
.plan-measurements text { fill: #4b6e8c; stroke: #fffefae8; stroke-width: 11px; paint-order: stroke; stroke-linejoin: round; font-family: inherit; font-size: 44px; font-weight: 600; text-anchor: middle; }

/* Sillas INGOLF: anchura y fondo físicos suministrados por la configuración del plano. */
.venue-room .seat-table { --table-fill: #edf2e7; --table-rim: #a7b79b; --table-rim-width: 2px; width: var(--table-diameter, 5.09%); border-color: var(--table-rim); background: var(--table-fill); }
.venue-room .seat-table::after { content: ""; position: absolute; inset: calc(-1 * var(--table-rim-width)); z-index: 2; border: var(--table-rim-width) solid var(--table-rim); border-radius: inherit; background: var(--table-fill); pointer-events: none; }
.venue-room .seat-table > span.table-number, .venue-room .seat-table > small { z-index: 3; }
.venue-room .seat-table > .venue-chairs { inset: calc(-1 * var(--table-rim-width)); z-index: 1; }
.venue-room .venue-chairs i { width: var(--chair-width, 23.8889%); height: var(--chair-depth, 28.8889%); min-width: 0; min-height: 0; border: 1px solid #b2b9aa; border-radius: 3px; background: #f1f0e8; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(calc(-100% * var(--chair-orbit, 2.030769))); }
.venue-room .venue-chairs .rect-chair { transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); }
.venue-room .seat-table:hover { --table-fill: #e8f0df; --table-rim: #68875a; }
.venue-room .seat-table.selected, .venue-room .seat-table[aria-pressed="true"] { --table-fill: #f5e3e7; --table-rim: #995765; }
.venue-room .seat-table.over-capacity { --table-fill: #fcf0de; --table-rim: #ba7844; }
.venue-room .seat-table.in-edit-selection { --table-fill: #eee8f8; --table-rim: #7960a5; z-index: 3; color: #5c437f; box-shadow: 0 0 0 4px #aa93cc54; }
.venue-room .seat-table.in-edit-selection .venue-chairs i { border-color: #a591be; background: #e6dced; }
.venue-room .seat-table.space-warning { --table-rim: #bd853b; }
.venue-room .seat-table.in-edit-selection > .table-number::after { content: "✓"; position: absolute; left: calc(100% + 2px); top: -1px; color: #6b4a94; font-size: 9px; font-weight: 750; }
.venue-room .seat-table.dragging { z-index: 5; }

:is(.is-overview, .is-compact) .venue-room .plan-aisle > span { padding: 1px 3px; font-size: clamp(6px, .8vw, 10px); }
:is(.is-overview, .is-compact) .venue-room .plan-aisle > span > small { display: none; }
:is(.is-overview, .is-compact) .venue-room .plan-entry-label { padding: 0 1px; font-size: clamp(5px, .65vw, 8px); line-height: 1.1; }
:is(.is-overview, .is-compact) .venue-room .plan-entry-label > strong { padding: 1px 2px; }
:is(.is-overview, .is-compact) .plan-measurements text { display: none; }
:is(.is-overview, .is-compact) .venue-room .seat-table { --table-rim-width: 1px; }
:is(.is-overview, .is-compact) .venue-room .venue-chairs i { border-width: .5px; border-radius: 1px; }
:is(.is-overview, .is-compact) .venue-room .seat-table.in-edit-selection { box-shadow: 0 0 0 2px #aa93cc70; }
:is(.is-overview, .is-compact) .venue-room .seat-table.in-edit-selection > .table-number::after { font-size: 6px; left: calc(100% + 1px); }

@media (max-width: 760px) {
  .plan-editor-row { gap: 8px; padding: 12px 14px; }
  .plan-editor-tools .btn, .plan-group-actions .btn { padding: 10px; font-size: 12px; }
  .plan-editor-options { width: 100%; gap: 6px 12px; }
  .plan-editor-tools > .plan-editor-options, .plan-editor-tools > .plan-group-actions { padding: 0 14px 14px; }
  .plan-editor-options label { font-size: 12px; }
  .plan-selection-summary { padding: 12px 14px; }
  .plan-group-actions { width: 100%; }
  .plan-selection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 14px 14px; }
  .plan-position-form { padding: 0; }
  .plan-spacing-report { margin: 0 14px 16px; }
  .plan-spacing-report > summary { padding: 12px; }
  .plan-issue-list { padding: 0 12px 10px; }
}

@media (max-width: 480px) {
  .plan-position-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .plan-editor-tools, .plan-position-form, .plan-spacing-report { display: none; }
  .venue-room .plan-aisle { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.plan-selection-list { width:100%; min-width:0; }
.plan-selection-list > summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:13px; font-weight:600; color:#655477; }
.plan-selection-list .plan-selection-grid { margin-top:6px; }

/* Reserva orientativa para pantallas junto a la entrada. */
.venue-room .plan-screen-zone { position: absolute; z-index: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #b6a3ca; background-color: #f3eff955; background-image: repeating-linear-gradient(135deg, transparent 0, transparent 8px, #ad96c837 8px, #ad96c837 9px); color: #806395; pointer-events: none; }
.venue-room .plan-screen-zone > span { max-width: 100%; max-height: 100%; padding: 4px; background: #f6f2fad9; color: #76558d; font-size: 10px; line-height: 1.4; text-align: center; writing-mode: vertical-rl; text-orientation: mixed; }
.venue-room .plan-screen-zone > span > small { display: block; margin-top: 3px; color: #8a739b; font-size: 9px; line-height: 1.4; }
:is(.is-overview, .is-compact) .venue-room .plan-screen-zone > span { display: none; }
.plan-auto-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 18px 0; }
.plan-auto-summary > * { min-width: 0; padding: 14px 15px; border: 1px solid #e4dfeb; border-radius: 11px; background: #fcfafc; overflow-wrap: anywhere; }
.plan-auto-summary strong { display: block; margin: 5px 0; color: #654b7f; font-size: 24px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-auto-summary span, .plan-auto-summary small { display: block; color: #74677f; font-size: 12px; line-height: 1.5; }
.plan-auto-note { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid #b09bc5; border-radius: 0 8px 8px 0; background: #f5f1f8; color: #655273; font-size: 13px; line-height: 1.65; }
.plan-auto-form { min-width: 0; }
.plan-auto-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 18px 0 0; padding: 0; }
.plan-auto-form .field { min-width: 0; }
.plan-auto-form input, .plan-auto-form select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.plan-auto-preview-count { display: block; margin: 12px 0; color: #675976; font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .plan-auto-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .plan-auto-summary > * { padding: 12px; }
  .plan-auto-summary strong { font-size: 22px; }
  .plan-auto-note { padding: 11px 12px; font-size: 12px; }
  .plan-auto-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .venue-room .plan-screen-zone { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Días de llegada: tres fechas principales y filtros secundarios compactos. */
.arrival-date-panel { margin-bottom: 20px; }
.arrival-date-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; padding: 18px 20px 13px; }
.arrival-date-heading h2 { margin-top: 4px; font-size: 19px; line-height: 1.25; }
.arrival-date-heading > p { max-width: 350px; color: #74806a; font-size: 12px; line-height: 1.5; }
.arrival-date-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 20px 12px; }
.arrival-date-option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 6px; min-width: 0; min-height: 56px; padding: 10px 12px; border: 2px solid #e4e7dd; border-radius: 11px; background: #fffefa; color: #6d7761; text-align: left; transition: border-color .15s, background .15s; }
.arrival-date-option > span { min-width: 0; grid-row: 1 / 3; font-size: 13px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.arrival-date-option > strong { display: block; font-size: 21px; font-weight: 600; line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums; }
.arrival-date-option > small { display: block; color: inherit; font-size: 10px; line-height: 1.3; text-align: center; }
.arrival-date-option.is-primary-day { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 103px; padding: 12px; border-color: #dbe3d0; background: #f6f9f0; color: #526746; text-align: center; }
.arrival-date-option.is-primary-day > span { font-size: 14px; font-weight: 600; }
.arrival-date-option.is-primary-day > strong { font-size: 30px; line-height: 1.1; }
.arrival-date-option.is-primary-day > small { font-size: 11px; }
.arrival-date-option:hover { border-color: #acbd98; background: #f5f8ee; }
.arrival-date-option.active, .arrival-date-option[aria-pressed="true"] { border-color: #ac7381; background: #f5e8ec; color: #713a49; box-shadow: inset 0 0 0 1px #ac738112; }
.arrival-date-option.active > span, .arrival-date-option[aria-pressed="true"] > span { font-weight: 700; }
.arrival-date-option:focus-visible { outline: 3px solid #a96d77; outline-offset: 3px; }
.arrival-date-help { margin: 0; padding: 0 20px 16px; color: #77816d; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .arrival-date-panel { margin-bottom: 17px; }
  .arrival-date-heading { gap: 7px; padding: 16px 14px 12px; }
  .arrival-date-heading h2 { font-size: 18px; }
  .arrival-date-heading > p { max-width: none; font-size: 12px; }
  .arrival-date-options { gap: 8px; padding: 0 14px 11px; }
  .arrival-date-option { gap: 0 4px; min-height: 56px; padding: 9px 7px; border-radius: 9px; }
  .arrival-date-option > span { font-size: 11px; }
  .arrival-date-option > strong { font-size: 18px; }
  .arrival-date-option > small { font-size: 9px; }
  .arrival-date-option.is-primary-day { min-height: 99px; padding: 10px 6px; }
  .arrival-date-option.is-primary-day > span { min-height: 32px; display: flex; align-items: center; font-size: 12px; line-height: 1.3; }
  .arrival-date-option.is-primary-day > strong { font-size: 26px; }
  .arrival-date-option.is-primary-day > small { font-size: 10px; }
  .arrival-date-help { padding: 0 14px 14px; font-size: 11px; }
}

@media (max-width: 359px) {
  .arrival-date-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arrival-date-option.is-primary-day { min-height: 90px; }
}

/* Acceso familiar y preparación inicial: controles cómodos también en móvil. */
.auth-status{max-width:680px;margin:0 auto 24px;padding:16px 20px;border-radius:14px;background:var(--sage-light,#edf2ed);color:var(--ink,#354038);font-size:15px;line-height:1.6;text-align:center}
.auth-status.auth-error{background:#fff3e3;color:#78502e;border:1px solid #ebd5b4}
.profile-choice:disabled{cursor:wait;opacity:.65}
.shared-setup-panel{max-width:780px;margin:40px auto;padding:32px}
.shared-setup-panel h1{font-size:clamp(25px,4vw,36px);line-height:1.25;margin:12px 0 18px}
.shared-setup-panel>p{color:var(--muted,#6f766b);line-height:1.7;margin:12px 0 24px}
.shared-setup-panel h2{font-size:18px;margin-top:28px}
.shared-migration-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 20px}
.shared-migration-summary>div{min-width:0;padding:18px 12px;background:#f3f5ef;border:1px solid #e3e7dc;border-radius:14px;text-align:center}
.shared-migration-summary strong{display:block;font-size:28px;line-height:1.2;margin-bottom:8px;font-weight:600;color:#45614b}
.shared-migration-summary span{display:block;font-size:13px;line-height:1.5;color:#5d685c;overflow-wrap:anywhere}
.shared-setup-panel>.btn{min-height:48px;white-space:normal;text-align:center}
.shared-setup-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--line,#e5e6df)}
#admin-login-form .field input{min-height:48px}
@media(max-width:600px){.shared-setup-panel{padding:22px 18px;margin:24px auto}.shared-migration-summary{gap:7px}.shared-migration-summary>div{padding:15px 6px}.shared-migration-summary strong{font-size:25px}.shared-migration-summary span{font-size:12px}.shared-setup-panel>.btn{width:100%}.auth-status{padding:14px;font-size:14px}}
.sync-status.reconnecting{color:#806135}
.sync-status.reconnecting i{background:#b48b45}
.family-invite-link{width:100%;min-height:108px;resize:vertical;font-size:14px;line-height:1.6;word-break:break-all}
.family-invite-actions .btn{white-space:normal;min-height:48px}

.guest-edit-loading { padding: 32px 24px; color: var(--muted); }
.guest-edit-blocked { text-align: center; padding: 32px 24px; }
.guest-edit-blocked h3 { font-size: 21px; line-height: 1.5; margin: 16px 0 12px; }
.guest-edit-blocked p { line-height: 1.65; color: var(--muted); }
.guest-edit-icon { display: inline-flex; padding: 16px; border-radius: 50%; background: #f4e9e9; color: #814650; }
.guest-edit-icon .icon { width: 30px; height: 30px; }
.guest-edit-notice { margin: 18px 24px 0; padding: 18px; border-radius: 12px; background: #fffbef; border: 1px solid #dccb9a; line-height: 1.5; }
.guest-edit-notice p { margin: 10px 0 14px; }
.guest-edit-notice .btn { min-height: 48px; }
#guest-form[inert] { opacity: .7; }

/* Children share a family itinerary and room; their own needs remain editable. */
.need-choice-options.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guest-kind-choice { margin-top: 3px; }
.guest-kind-choice .need-choice-help, .child-hotel-section .need-choice-help { margin: 10px 0 0; }
.child-family-fields > .section-help { margin: 10px 0 4px; }
.child-owner-note { color: var(--muted); font-size: 13px; }
.inherited-value { display: flex; align-items: center; min-height: 48px; padding: 11px 13px; border: 1px solid #dfe4d7; border-radius: 9px; background: #f5f7f1; color: #43503b; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.child-room-summary { padding: 14px 16px; margin: 14px 0; background: #f5f7f1; border: 1px solid #dfe4d7; border-radius: 12px; line-height: 1.5; }
.child-room-summary strong { font-size: 16px; }
.child-room-summary p { margin: 5px 0; font-size: 14px; }
